]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - contrib/ntp/configure
MFC r290326:
[FreeBSD/stable/8.git] / contrib / ntp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for ntp 4.2.4p5.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME='ntp'
423 PACKAGE_TARNAME='ntp'
424 PACKAGE_VERSION='4.2.4p5'
425 PACKAGE_STRING='ntp 4.2.4p5'
426 PACKAGE_BUGREPORT=''
427
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 #  include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 #  include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 #  include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 ac_subdirs_all="$ac_subdirs_all arlib"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 CPP EGREP LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS BINSUBDIR subdirs ARLIB_DIR LN_S ECHO AR 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 PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB LCRYPTO EF_PROGS EF_LIBS MAKE_CHECK_LAYOUT TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM LIBOBJS LTLIBOBJS'
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 ntp 4.2.4p5 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 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020   case $ac_init_help in
1021      short | recursive ) echo "Configuration of ntp 4.2.4p5:";;
1022    esac
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --disable-dependency-tracking  speeds up one-time build
1029   --enable-dependency-tracking   do not reject slow dependency extractors
1030   --enable-local-libopts  Force using the supplied libopts tearoff code
1031   --disable-libopts-install
1032                           Do not install libopts with client installation
1033   --disable-optional-args not wanting optional option args
1034   --enable-clockctl       s Use /dev/clockctl for non-root clock control
1035   --enable-linuxcaps      s Use Linux capabilities for non-root clock control
1036   --enable-shared[=PKGS]
1037                           build shared libraries [default=no]
1038   --enable-static[=PKGS]
1039                           build static libraries [default=yes]
1040   --enable-fast-install[=PKGS]
1041                           optimize for fast installation [default=yes]
1042   --disable-libtool-lock  avoid locking (might break parallel builds)
1043   --enable-getifaddrs     s Enable the use of getifaddrs() [yes|no|glibc].
1044                           glibc: Use getifaddrs() in glibc if you know it
1045                           supports IPv6.
1046   --enable-debugging      + include debugging code
1047   --enable-debug-timing   - include processing time debugging code (costs
1048                           performance)
1049   --enable-dst-minutes=60 + minutes per DST adjustment
1050   --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1051   --enable-GPSVME         - TrueTime GPS receiver/VME interface
1052   --enable-all-clocks     + include all suitable non-PARSE clocks:
1053   --enable-ACTS           s ACTS modem service
1054   --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1055   --enable-ARCRON-MSF     + Arcron MSF receiver
1056   --enable-AS2201         + Austron 2200A/2201A GPS receiver
1057   --enable-ATOM           s ATOM PPS interface
1058   --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1059   --enable-CHU            + CHU modem/decoder
1060   --enable-AUDIO-CHU      s CHU audio/decoder
1061   --enable-DATUM          s Datum Programmable Time System
1062   --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1063   --enable-FG             + Forum Graphic GPS
1064   --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1065   --enable-HOPFSERIAL     + hopf serial clock device
1066   --enable-HOPFPCI        + hopf 6039 PCI board
1067   --enable-HPGPS          + HP 58503A GPS receiver
1068   --enable-IRIG           s IRIG audio decoder
1069   --enable-JJY            + JJY receiver
1070   --enable-JUPITER        s Rockwell Jupiter GPS receiver
1071   --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1072   --enable-LOCAL-CLOCK    + local clock reference
1073   --enable-MX4200         s Magnavox MX4200 GPS receiver
1074   --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1075   --enable-NMEA           + NMEA GPS receiver
1076   --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1077   --enable-PALISADE       s Palisade clock
1078   --enable-PCF            + Conrad parallel port radio clock
1079   --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1080   --enable-RIPENCC        - RIPENCC specific Trimble driver
1081   --enable-SHM            s SHM clock attached thru shared memory
1082   --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1083   --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1084   --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1085   --enable-TT560          - TrueTime 560 IRIG-B decoder
1086   --enable-ULINK          + Ultralink WWVB receiver
1087   --enable-WWV            s WWV Audio receiver
1088   --enable-ZYFER          + Zyfer GPStarplus receiver
1089   --enable-parse-clocks   - include all suitable PARSE clocks:
1090   --enable-COMPUTIME      s Diem Computime Radio Clock
1091   --enable-DCF7000        s ELV/DCF7000 clock
1092   --enable-HOPF6021       s HOPF 6021 clock
1093   --enable-MEINBERG       s Meinberg clocks
1094   --enable-RAWDCF         s DCF77 raw time code
1095   --enable-RCC8000        s RCC 8000 clock
1096   --enable-SCHMID         s Schmid DCF77 clock
1097   --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1098   --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1099   --enable-WHARTON        s WHARTON 400A Series clock
1100   --enable-VARITEXT       s VARITEXT clock
1101   --enable-kmem           s read /dev/kmem for tick and/or tickadj
1102   --enable-accurate-adjtime
1103                           s the adjtime() call is accurate
1104   --enable-tick=VALUE     s force a value for 'tick'
1105   --enable-tickadj=VALUE  s force a value for 'tickadj'
1106   --enable-simulator      - build/install the NTPD simulator?
1107   --enable-slew-always    s always slew the time
1108   --enable-step-slew      s step and slew the time
1109   --enable-ntpdate-step   s if ntpdate should step the time
1110   --enable-hourly-todr-sync
1111                           s if we should sync TODR hourly
1112   --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1113   --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1114   --enable-nist           - if we should enable the NIST lockclock scheme
1115   --enable-ipv6           s use IPv6?
1116
1117 Optional Packages:
1118   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1119   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1120   --with-autoopts-config  specify the config-info script
1121   --with-regex-header     a reg expr header is specified
1122   --with-libregex         libregex installation prefix
1123   --with-libregex-cflags  libregex compile flags
1124   --with-libregex-libs    libregex link command arguments
1125   --with-binsubdir        bin ={bin,sbin}
1126   --with-arlib            - Compile the async resolver library?
1127   --without-rpath         s Disable auto-added -R linker paths
1128   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129   --with-pic              try to use only PIC/non-PIC objects [default=use
1130                           both]
1131   --with-tags[=TAGS]
1132                           include additional configurations [automatic]
1133   --with-openssl-libdir   + =/something/reasonable
1134   --with-openssl-incdir   + =/something/reasonable
1135   --with-crypto           + =openssl
1136   --with-electricfence    - compile with ElectricFence malloc debugger
1137   --with-kame             - =/usr/local/v6
1138
1139 Some influential environment variables:
1140   CC          C compiler command
1141   CFLAGS      C compiler flags
1142   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1143               nonstandard directory <lib dir>
1144   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1145               headers in a nonstandard directory <include dir>
1146   CPP         C preprocessor
1147   CXX         C++ compiler command
1148   CXXFLAGS    C++ compiler flags
1149   CXXCPP      C++ preprocessor
1150   F77         Fortran 77 compiler command
1151   FFLAGS      Fortran 77 compiler flags
1152
1153 Use these variables to override the choices made by `configure' or to help
1154 it to find libraries and programs with nonstandard names/locations.
1155
1156 _ACEOF
1157 fi
1158
1159 if test "$ac_init_help" = "recursive"; then
1160   # If there are subdirs, report their specific --help.
1161   ac_popdir=`pwd`
1162   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1163     test -d $ac_dir || continue
1164     ac_builddir=.
1165
1166 if test "$ac_dir" != .; then
1167   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1168   # A "../" for each directory in $ac_dir_suffix.
1169   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1170 else
1171   ac_dir_suffix= ac_top_builddir=
1172 fi
1173
1174 case $srcdir in
1175   .)  # No --srcdir option.  We are building in place.
1176     ac_srcdir=.
1177     if test -z "$ac_top_builddir"; then
1178        ac_top_srcdir=.
1179     else
1180        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1181     fi ;;
1182   [\\/]* | ?:[\\/]* )  # Absolute path.
1183     ac_srcdir=$srcdir$ac_dir_suffix;
1184     ac_top_srcdir=$srcdir ;;
1185   *) # Relative path.
1186     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1187     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1188 esac
1189
1190 # Do not use `cd foo && pwd` to compute absolute paths, because
1191 # the directories may not exist.
1192 case `pwd` in
1193 .) ac_abs_builddir="$ac_dir";;
1194 *)
1195   case "$ac_dir" in
1196   .) ac_abs_builddir=`pwd`;;
1197   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1198   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1199   esac;;
1200 esac
1201 case $ac_abs_builddir in
1202 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1203 *)
1204   case ${ac_top_builddir}. in
1205   .) ac_abs_top_builddir=$ac_abs_builddir;;
1206   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1207   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1208   esac;;
1209 esac
1210 case $ac_abs_builddir in
1211 .) ac_abs_srcdir=$ac_srcdir;;
1212 *)
1213   case $ac_srcdir in
1214   .) ac_abs_srcdir=$ac_abs_builddir;;
1215   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1216   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1217   esac;;
1218 esac
1219 case $ac_abs_builddir in
1220 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1221 *)
1222   case $ac_top_srcdir in
1223   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1224   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1225   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1226   esac;;
1227 esac
1228
1229     cd $ac_dir
1230     # Check for guested configure; otherwise get Cygnus style configure.
1231     if test -f $ac_srcdir/configure.gnu; then
1232       echo
1233       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1234     elif test -f $ac_srcdir/configure; then
1235       echo
1236       $SHELL $ac_srcdir/configure  --help=recursive
1237     elif test -f $ac_srcdir/configure.ac ||
1238            test -f $ac_srcdir/configure.in; then
1239       echo
1240       $ac_configure --help
1241     else
1242       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1243     fi
1244     cd $ac_popdir
1245   done
1246 fi
1247
1248 test -n "$ac_init_help" && exit 0
1249 if $ac_init_version; then
1250   cat <<\_ACEOF
1251 ntp configure 4.2.4p5
1252 generated by GNU Autoconf 2.59
1253
1254 Copyright (C) 2003 Free Software Foundation, Inc.
1255 This configure script is free software; the Free Software Foundation
1256 gives unlimited permission to copy, distribute and modify it.
1257 _ACEOF
1258   exit 0
1259 fi
1260 exec 5>config.log
1261 cat >&5 <<_ACEOF
1262 This file contains any messages produced by compilers while
1263 running configure, to aid debugging if configure makes a mistake.
1264
1265 It was created by ntp $as_me 4.2.4p5, which was
1266 generated by GNU Autoconf 2.59.  Invocation command line was
1267
1268   $ $0 $@
1269
1270 _ACEOF
1271 {
1272 cat <<_ASUNAME
1273 ## --------- ##
1274 ## Platform. ##
1275 ## --------- ##
1276
1277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1282
1283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1284 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1285
1286 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1287 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1289 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1290 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1291 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1292 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1293
1294 _ASUNAME
1295
1296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297 for as_dir in $PATH
1298 do
1299   IFS=$as_save_IFS
1300   test -z "$as_dir" && as_dir=.
1301   echo "PATH: $as_dir"
1302 done
1303
1304 } >&5
1305
1306 cat >&5 <<_ACEOF
1307
1308
1309 ## ----------- ##
1310 ## Core tests. ##
1311 ## ----------- ##
1312
1313 _ACEOF
1314
1315
1316 # Keep a trace of the command line.
1317 # Strip out --no-create and --no-recursion so they do not pile up.
1318 # Strip out --silent because we don't want to record it for future runs.
1319 # Also quote any args containing shell meta-characters.
1320 # Make two passes to allow for proper duplicate-argument suppression.
1321 ac_configure_args=
1322 ac_configure_args0=
1323 ac_configure_args1=
1324 ac_sep=
1325 ac_must_keep_next=false
1326 for ac_pass in 1 2
1327 do
1328   for ac_arg
1329   do
1330     case $ac_arg in
1331     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1332     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1333     | -silent | --silent | --silen | --sile | --sil)
1334       continue ;;
1335     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1337     esac
1338     case $ac_pass in
1339     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1340     2)
1341       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1342       if test $ac_must_keep_next = true; then
1343         ac_must_keep_next=false # Got value, back to normal.
1344       else
1345         case $ac_arg in
1346           *=* | --config-cache | -C | -disable-* | --disable-* \
1347           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1348           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1349           | -with-* | --with-* | -without-* | --without-* | --x)
1350             case "$ac_configure_args0 " in
1351               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1352             esac
1353             ;;
1354           -* ) ac_must_keep_next=true ;;
1355         esac
1356       fi
1357       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1358       # Get rid of the leading space.
1359       ac_sep=" "
1360       ;;
1361     esac
1362   done
1363 done
1364 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1365 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1366
1367 # When interrupted or exit'd, cleanup temporary files, and complete
1368 # config.log.  We remove comments because anyway the quotes in there
1369 # would cause problems or look ugly.
1370 # WARNING: Be sure not to use single quotes in there, as some shells,
1371 # such as our DU 5.0 friend, will then `close' the trap.
1372 trap 'exit_status=$?
1373   # Save into config.log some information that might help in debugging.
1374   {
1375     echo
1376
1377     cat <<\_ASBOX
1378 ## ---------------- ##
1379 ## Cache variables. ##
1380 ## ---------------- ##
1381 _ASBOX
1382     echo
1383     # The following way of writing the cache mishandles newlines in values,
1384 {
1385   (set) 2>&1 |
1386     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1387     *ac_space=\ *)
1388       sed -n \
1389         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1390           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1391       ;;
1392     *)
1393       sed -n \
1394         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1395       ;;
1396     esac;
1397 }
1398     echo
1399
1400     cat <<\_ASBOX
1401 ## ----------------- ##
1402 ## Output variables. ##
1403 ## ----------------- ##
1404 _ASBOX
1405     echo
1406     for ac_var in $ac_subst_vars
1407     do
1408       eval ac_val=$`echo $ac_var`
1409       echo "$ac_var='"'"'$ac_val'"'"'"
1410     done | sort
1411     echo
1412
1413     if test -n "$ac_subst_files"; then
1414       cat <<\_ASBOX
1415 ## ------------- ##
1416 ## Output files. ##
1417 ## ------------- ##
1418 _ASBOX
1419       echo
1420       for ac_var in $ac_subst_files
1421       do
1422         eval ac_val=$`echo $ac_var`
1423         echo "$ac_var='"'"'$ac_val'"'"'"
1424       done | sort
1425       echo
1426     fi
1427
1428     if test -s confdefs.h; then
1429       cat <<\_ASBOX
1430 ## ----------- ##
1431 ## confdefs.h. ##
1432 ## ----------- ##
1433 _ASBOX
1434       echo
1435       sed "/^$/d" confdefs.h | sort
1436       echo
1437     fi
1438     test "$ac_signal" != 0 &&
1439       echo "$as_me: caught signal $ac_signal"
1440     echo "$as_me: exit $exit_status"
1441   } >&5
1442   rm -f core *.core &&
1443   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1444     exit $exit_status
1445      ' 0
1446 for ac_signal in 1 2 13 15; do
1447   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1448 done
1449 ac_signal=0
1450
1451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1452 rm -rf conftest* confdefs.h
1453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1454 echo >confdefs.h
1455
1456 # Predefined preprocessor variables.
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_NAME "$PACKAGE_NAME"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1465 _ACEOF
1466
1467
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1470 _ACEOF
1471
1472
1473 cat >>confdefs.h <<_ACEOF
1474 #define PACKAGE_STRING "$PACKAGE_STRING"
1475 _ACEOF
1476
1477
1478 cat >>confdefs.h <<_ACEOF
1479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1480 _ACEOF
1481
1482
1483 # Let the site file select an alternate cache file if it wants to.
1484 # Prefer explicitly selected file to automatically selected ones.
1485 if test -z "$CONFIG_SITE"; then
1486   if test "x$prefix" != xNONE; then
1487     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1488   else
1489     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1490   fi
1491 fi
1492 for ac_site_file in $CONFIG_SITE; do
1493   if test -r "$ac_site_file"; then
1494     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1495 echo "$as_me: loading site script $ac_site_file" >&6;}
1496     sed 's/^/| /' "$ac_site_file" >&5
1497     . "$ac_site_file"
1498   fi
1499 done
1500
1501 if test -r "$cache_file"; then
1502   # Some versions of bash will fail to source /dev/null (special
1503   # files actually), so we avoid doing that.
1504   if test -f "$cache_file"; then
1505     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1506 echo "$as_me: loading cache $cache_file" >&6;}
1507     case $cache_file in
1508       [\\/]* | ?:[\\/]* ) . $cache_file;;
1509       *)                      . ./$cache_file;;
1510     esac
1511   fi
1512 else
1513   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1514 echo "$as_me: creating cache $cache_file" >&6;}
1515   >$cache_file
1516 fi
1517
1518 # Check that the precious variables saved in the cache have kept the same
1519 # value.
1520 ac_cache_corrupted=false
1521 for ac_var in `(set) 2>&1 |
1522                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1523   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1524   eval ac_new_set=\$ac_env_${ac_var}_set
1525   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1526   eval ac_new_val="\$ac_env_${ac_var}_value"
1527   case $ac_old_set,$ac_new_set in
1528     set,)
1529       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1530 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1531       ac_cache_corrupted=: ;;
1532     ,set)
1533       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1534 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1535       ac_cache_corrupted=: ;;
1536     ,);;
1537     *)
1538       if test "x$ac_old_val" != "x$ac_new_val"; then
1539         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1540 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1541         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1542 echo "$as_me:   former value:  $ac_old_val" >&2;}
1543         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1544 echo "$as_me:   current value: $ac_new_val" >&2;}
1545         ac_cache_corrupted=:
1546       fi;;
1547   esac
1548   # Pass precious variables to config.status.
1549   if test "$ac_new_set" = set; then
1550     case $ac_new_val in
1551     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1552       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1553     *) ac_arg=$ac_var=$ac_new_val ;;
1554     esac
1555     case " $ac_configure_args " in
1556       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1557       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558     esac
1559   fi
1560 done
1561 if $ac_cache_corrupted; then
1562   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1563 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1564   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1565 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1566    { (exit 1); exit 1; }; }
1567 fi
1568
1569 ac_ext=c
1570 ac_cpp='$CPP $CPPFLAGS'
1571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601 am__api_version="1.9"
1602 ac_aux_dir=
1603 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1604   if test -f $ac_dir/install-sh; then
1605     ac_aux_dir=$ac_dir
1606     ac_install_sh="$ac_aux_dir/install-sh -c"
1607     break
1608   elif test -f $ac_dir/install.sh; then
1609     ac_aux_dir=$ac_dir
1610     ac_install_sh="$ac_aux_dir/install.sh -c"
1611     break
1612   elif test -f $ac_dir/shtool; then
1613     ac_aux_dir=$ac_dir
1614     ac_install_sh="$ac_aux_dir/shtool install -c"
1615     break
1616   fi
1617 done
1618 if test -z "$ac_aux_dir"; then
1619   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1620 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1621    { (exit 1); exit 1; }; }
1622 fi
1623 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1624 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1625 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1626
1627 # Find a good install program.  We prefer a C program (faster),
1628 # so one script is as good as another.  But avoid the broken or
1629 # incompatible versions:
1630 # SysV /etc/install, /usr/sbin/install
1631 # SunOS /usr/etc/install
1632 # IRIX /sbin/install
1633 # AIX /bin/install
1634 # AmigaOS /C/install, which installs bootblocks on floppy discs
1635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1638 # OS/2's system install, which has a completely different semantic
1639 # ./install, which can be erroneously created by make from ./install.sh.
1640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1642 if test -z "$INSTALL"; then
1643 if test "${ac_cv_path_install+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   # Account for people who put trailing slashes in PATH elements.
1652 case $as_dir/ in
1653   ./ | .// | /cC/* | \
1654   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1655   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1656   /usr/ucb/* ) ;;
1657   *)
1658     # OSF1 and SCO ODT 3.0 have their own names for install.
1659     # Don't use installbsd from OSF since it installs stuff as root
1660     # by default.
1661     for ac_prog in ginstall scoinst install; do
1662       for ac_exec_ext in '' $ac_executable_extensions; do
1663         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1664           if test $ac_prog = install &&
1665             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1666             # AIX install.  It has an incompatible calling convention.
1667             :
1668           elif test $ac_prog = install &&
1669             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1670             # program-specific install script used by HP pwplus--don't use.
1671             :
1672           else
1673             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1674             break 3
1675           fi
1676         fi
1677       done
1678     done
1679     ;;
1680 esac
1681 done
1682
1683
1684 fi
1685   if test "${ac_cv_path_install+set}" = set; then
1686     INSTALL=$ac_cv_path_install
1687   else
1688     # As a last resort, use the slow shell script.  We don't cache a
1689     # path for INSTALL within a source directory, because that will
1690     # break other packages using the cache if that directory is
1691     # removed, or if the path is relative.
1692     INSTALL=$ac_install_sh
1693   fi
1694 fi
1695 echo "$as_me:$LINENO: result: $INSTALL" >&5
1696 echo "${ECHO_T}$INSTALL" >&6
1697
1698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1699 # It thinks the first close brace ends the variable substitution.
1700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1701
1702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1703
1704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1705
1706 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1707 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1708 # Just in case
1709 sleep 1
1710 echo timestamp > conftest.file
1711 # Do `set' in a subshell so we don't clobber the current shell's
1712 # arguments.  Must try -L first in case configure is actually a
1713 # symlink; some systems play weird games with the mod time of symlinks
1714 # (eg FreeBSD returns the mod time of the symlink's containing
1715 # directory).
1716 if (
1717    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1718    if test "$*" = "X"; then
1719       # -L didn't work.
1720       set X `ls -t $srcdir/configure conftest.file`
1721    fi
1722    rm -f conftest.file
1723    if test "$*" != "X $srcdir/configure conftest.file" \
1724       && test "$*" != "X conftest.file $srcdir/configure"; then
1725
1726       # If neither matched, then we have a broken ls.  This can happen
1727       # if, for instance, CONFIG_SHELL is bash and it inherits a
1728       # broken ls alias from the environment.  This has actually
1729       # happened.  Such a system could not be considered "sane".
1730       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1731 alias in your environment" >&5
1732 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1733 alias in your environment" >&2;}
1734    { (exit 1); exit 1; }; }
1735    fi
1736
1737    test "$2" = conftest.file
1738    )
1739 then
1740    # Ok.
1741    :
1742 else
1743    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1744 Check your system clock" >&5
1745 echo "$as_me: error: newly created file is older than distributed files!
1746 Check your system clock" >&2;}
1747    { (exit 1); exit 1; }; }
1748 fi
1749 echo "$as_me:$LINENO: result: yes" >&5
1750 echo "${ECHO_T}yes" >&6
1751 test "$program_prefix" != NONE &&
1752   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1753 # Use a double $ so make ignores it.
1754 test "$program_suffix" != NONE &&
1755   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1756 # Double any \ or $.  echo might interpret backslashes.
1757 # By default was `s,x,x', remove it if useless.
1758 cat <<\_ACEOF >conftest.sed
1759 s/[\\$]/&&/g;s/;s,x,x,$//
1760 _ACEOF
1761 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1762 rm conftest.sed
1763
1764 # expand $ac_aux_dir to an absolute path
1765 am_aux_dir=`cd $ac_aux_dir && pwd`
1766
1767 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1768 # Use eval to expand $SHELL
1769 if eval "$MISSING --run true"; then
1770   am_missing_run="$MISSING --run "
1771 else
1772   am_missing_run=
1773   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1774 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1775 fi
1776
1777 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1778   # We used to keeping the `.' as first argument, in order to
1779   # allow $(mkdir_p) to be used without argument.  As in
1780   #   $(mkdir_p) $(somedir)
1781   # where $(somedir) is conditionally defined.  However this is wrong
1782   # for two reasons:
1783   #  1. if the package is installed by a user who cannot write `.'
1784   #     make install will fail,
1785   #  2. the above comment should most certainly read
1786   #     $(mkdir_p) $(DESTDIR)$(somedir)
1787   #     so it does not work when $(somedir) is undefined and
1788   #     $(DESTDIR) is not.
1789   #  To support the latter case, we have to write
1790   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1791   #  so the `.' trick is pointless.
1792   mkdir_p='mkdir -p --'
1793 else
1794   # On NextStep and OpenStep, the `mkdir' command does not
1795   # recognize any option.  It will interpret all options as
1796   # directories to create, and then abort because `.' already
1797   # exists.
1798   for d in ./-p ./--version;
1799   do
1800     test -d $d && rmdir $d
1801   done
1802   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1803   if test -f "$ac_aux_dir/mkinstalldirs"; then
1804     mkdir_p='$(mkinstalldirs)'
1805   else
1806     mkdir_p='$(install_sh) -d'
1807   fi
1808 fi
1809
1810 for ac_prog in gawk mawk nawk awk
1811 do
1812   # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_AWK+set}" = set; then
1817   echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819   if test -n "$AWK"; then
1820   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825   IFS=$as_save_IFS
1826   test -z "$as_dir" && as_dir=.
1827   for ac_exec_ext in '' $ac_executable_extensions; do
1828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829     ac_cv_prog_AWK="$ac_prog"
1830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831     break 2
1832   fi
1833 done
1834 done
1835
1836 fi
1837 fi
1838 AWK=$ac_cv_prog_AWK
1839 if test -n "$AWK"; then
1840   echo "$as_me:$LINENO: result: $AWK" >&5
1841 echo "${ECHO_T}$AWK" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847   test -n "$AWK" && break
1848 done
1849
1850 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1851 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1852 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1853 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   cat >conftest.make <<\_ACEOF
1857 all:
1858         @echo 'ac_maketemp="$(MAKE)"'
1859 _ACEOF
1860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1861 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1862 if test -n "$ac_maketemp"; then
1863   eval ac_cv_prog_make_${ac_make}_set=yes
1864 else
1865   eval ac_cv_prog_make_${ac_make}_set=no
1866 fi
1867 rm -f conftest.make
1868 fi
1869 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1870   echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6
1872   SET_MAKE=
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876   SET_MAKE="MAKE=${MAKE-make}"
1877 fi
1878
1879 rm -rf .tst 2>/dev/null
1880 mkdir .tst 2>/dev/null
1881 if test -d .tst; then
1882   am__leading_dot=.
1883 else
1884   am__leading_dot=_
1885 fi
1886 rmdir .tst 2>/dev/null
1887
1888 # test to see if srcdir already configured
1889 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1890    test -f $srcdir/config.status; then
1891   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1892 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896 # test whether we have cygpath
1897 if test -z "$CYGPATH_W"; then
1898   if (cygpath --version) >/dev/null 2>/dev/null; then
1899     CYGPATH_W='cygpath -w'
1900   else
1901     CYGPATH_W=echo
1902   fi
1903 fi
1904
1905
1906 # Define the identity of the package.
1907  PACKAGE='ntp'
1908  VERSION='4.2.4p5'
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE "$PACKAGE"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define VERSION "$VERSION"
1918 _ACEOF
1919
1920 # Some tools Automake needs.
1921
1922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1923
1924
1925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1926
1927
1928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1929
1930
1931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1932
1933
1934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1935
1936 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1937
1938 # Installed binaries are usually stripped using `strip' when the user
1939 # run `make install-strip'.  However `strip' might not be the right
1940 # tool to use in cross-compilation environments, therefore Automake
1941 # will honor the `STRIP' environment variable to overrule this program.
1942 if test "$cross_compiling" != no; then
1943   if test -n "$ac_tool_prefix"; then
1944   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1945 set dummy ${ac_tool_prefix}strip; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_STRIP+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$STRIP"; then
1952   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 STRIP=$ac_cv_prog_STRIP
1971 if test -n "$STRIP"; then
1972   echo "$as_me:$LINENO: result: $STRIP" >&5
1973 echo "${ECHO_T}$STRIP" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979 fi
1980 if test -z "$ac_cv_prog_STRIP"; then
1981   ac_ct_STRIP=$STRIP
1982   # Extract the first word of "strip", so it can be a program name with args.
1983 set dummy strip; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$ac_ct_STRIP"; then
1990   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999     ac_cv_prog_ac_ct_STRIP="strip"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005
2006   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2007 fi
2008 fi
2009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2010 if test -n "$ac_ct_STRIP"; then
2011   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2012 echo "${ECHO_T}$ac_ct_STRIP" >&6
2013 else
2014   echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018   STRIP=$ac_ct_STRIP
2019 else
2020   STRIP="$ac_cv_prog_STRIP"
2021 fi
2022
2023 fi
2024 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2025
2026 # We need awk for the "check" target.  The system "awk" is bad on
2027 # some platforms.
2028 # Always define AMTAR for backward compatibility.
2029
2030 AMTAR=${AMTAR-"${am_missing_run}tar"}
2031
2032 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2033
2034
2035
2036
2037
2038 # Make sure we can run config.sub.
2039 $ac_config_sub sun4 >/dev/null 2>&1 ||
2040   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2041 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 echo "$as_me:$LINENO: checking build system type" >&5
2045 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2046 if test "${ac_cv_build+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   ac_cv_build_alias=$build_alias
2050 test -z "$ac_cv_build_alias" &&
2051   ac_cv_build_alias=`$ac_config_guess`
2052 test -z "$ac_cv_build_alias" &&
2053   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2054 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2055    { (exit 1); exit 1; }; }
2056 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2057   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2058 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2059    { (exit 1); exit 1; }; }
2060
2061 fi
2062 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2063 echo "${ECHO_T}$ac_cv_build" >&6
2064 build=$ac_cv_build
2065 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2066 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2067 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2068
2069
2070 echo "$as_me:$LINENO: checking host system type" >&5
2071 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2072 if test "${ac_cv_host+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   ac_cv_host_alias=$host_alias
2076 test -z "$ac_cv_host_alias" &&
2077   ac_cv_host_alias=$ac_cv_build_alias
2078 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2079   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2080 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 fi
2084 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2085 echo "${ECHO_T}$ac_cv_host" >&6
2086 host=$ac_cv_host
2087 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2088 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2089 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2090
2091
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define STR_SYSTEM "$host"
2095 _ACEOF
2096
2097           ac_config_headers="$ac_config_headers config.h"
2098
2099
2100
2101 ac_cv_var_atom_ok=no
2102 ac_cv_var_oncore_ok=no
2103 ac_cv_var_parse_ok=no
2104 ac_cv_var_ripe_ncc_ok=no
2105 ac_cv_var_jupiter_ok=no
2106
2107 iCFLAGS="$CFLAGS"
2108
2109 DEPDIR="${am__leading_dot}deps"
2110
2111           ac_config_commands="$ac_config_commands depfiles"
2112
2113
2114 am_make=${MAKE-make}
2115 cat > confinc << 'END'
2116 am__doit:
2117         @echo done
2118 .PHONY: am__doit
2119 END
2120 # If we don't find an include directive, just comment out the code.
2121 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2122 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2123 am__include="#"
2124 am__quote=
2125 _am_result=none
2126 # First try GNU make style include.
2127 echo "include confinc" > confmf
2128 # We grep out `Entering directory' and `Leaving directory'
2129 # messages which can occur if `w' ends up in MAKEFLAGS.
2130 # In particular we don't look at `^make:' because GNU make might
2131 # be invoked under some other name (usually "gmake"), in which
2132 # case it prints its new name instead of `make'.
2133 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2134    am__include=include
2135    am__quote=
2136    _am_result=GNU
2137 fi
2138 # Now try BSD make style include.
2139 if test "$am__include" = "#"; then
2140    echo '.include "confinc"' > confmf
2141    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2142       am__include=.include
2143       am__quote="\""
2144       _am_result=BSD
2145    fi
2146 fi
2147
2148
2149 echo "$as_me:$LINENO: result: $_am_result" >&5
2150 echo "${ECHO_T}$_am_result" >&6
2151 rm -f confinc confmf
2152
2153 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2154 if test "${enable_dependency_tracking+set}" = set; then
2155   enableval="$enable_dependency_tracking"
2156
2157 fi;
2158 if test "x$enable_dependency_tracking" != xno; then
2159   am_depcomp="$ac_aux_dir/depcomp"
2160   AMDEPBACKSLASH='\'
2161 fi
2162
2163
2164 if test "x$enable_dependency_tracking" != xno; then
2165   AMDEP_TRUE=
2166   AMDEP_FALSE='#'
2167 else
2168   AMDEP_TRUE='#'
2169   AMDEP_FALSE=
2170 fi
2171
2172
2173
2174 ac_ext=c
2175 ac_cpp='$CPP $CPPFLAGS'
2176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179 if test -n "$ac_tool_prefix"; then
2180   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$CC"; then
2188   ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203
2204 fi
2205 fi
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208   echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211   echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2214
2215 fi
2216 if test -z "$ac_cv_prog_CC"; then
2217   ac_ct_CC=$CC
2218   # Extract the first word of "gcc", so it can be a program name with args.
2219 set dummy gcc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$ac_ct_CC"; then
2226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231   IFS=$as_save_IFS
2232   test -z "$as_dir" && as_dir=.
2233   for ac_exec_ext in '' $ac_executable_extensions; do
2234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235     ac_cv_prog_ac_ct_CC="gcc"
2236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237     break 2
2238   fi
2239 done
2240 done
2241
2242 fi
2243 fi
2244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2245 if test -n "$ac_ct_CC"; then
2246   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2247 echo "${ECHO_T}$ac_ct_CC" >&6
2248 else
2249   echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253   CC=$ac_ct_CC
2254 else
2255   CC="$ac_cv_prog_CC"
2256 fi
2257
2258 if test -z "$CC"; then
2259   if test -n "$ac_tool_prefix"; then
2260   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}cc; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   if test -n "$CC"; then
2268   ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_prog_CC="${ac_tool_prefix}cc"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6
2290 else
2291   echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6
2293 fi
2294
2295 fi
2296 if test -z "$ac_cv_prog_CC"; then
2297   ac_ct_CC=$CC
2298   # Extract the first word of "cc", so it can be a program name with args.
2299 set dummy cc; ac_word=$2
2300 echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$ac_ct_CC"; then
2306   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2315     ac_cv_prog_ac_ct_CC="cc"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321
2322 fi
2323 fi
2324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2325 if test -n "$ac_ct_CC"; then
2326   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2327 echo "${ECHO_T}$ac_ct_CC" >&6
2328 else
2329   echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2331 fi
2332
2333   CC=$ac_ct_CC
2334 else
2335   CC="$ac_cv_prog_CC"
2336 fi
2337
2338 fi
2339 if test -z "$CC"; then
2340   # Extract the first word of "cc", so it can be a program name with args.
2341 set dummy cc; ac_word=$2
2342 echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2344 if test "${ac_cv_prog_CC+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   if test -n "$CC"; then
2348   ac_cv_prog_CC="$CC" # Let the user override the test.
2349 else
2350   ac_prog_rejected=no
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2359        ac_prog_rejected=yes
2360        continue
2361      fi
2362     ac_cv_prog_CC="cc"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368
2369 if test $ac_prog_rejected = yes; then
2370   # We found a bogon in the path, so make sure we never use it.
2371   set dummy $ac_cv_prog_CC
2372   shift
2373   if test $# != 0; then
2374     # We chose a different compiler from the bogus one.
2375     # However, it has the same basename, so the bogon will be chosen
2376     # first if we set CC to just the basename; use the full file name.
2377     shift
2378     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2379   fi
2380 fi
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6
2387 else
2388   echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2390 fi
2391
2392 fi
2393 if test -z "$CC"; then
2394   if test -n "$ac_tool_prefix"; then
2395   for ac_prog in cl
2396   do
2397     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$CC"; then
2405   ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420
2421 fi
2422 fi
2423 CC=$ac_cv_prog_CC
2424 if test -n "$CC"; then
2425   echo "$as_me:$LINENO: result: $CC" >&5
2426 echo "${ECHO_T}$CC" >&6
2427 else
2428   echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2430 fi
2431
2432     test -n "$CC" && break
2433   done
2434 fi
2435 if test -z "$CC"; then
2436   ac_ct_CC=$CC
2437   for ac_prog in cl
2438 do
2439   # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$ac_ct_CC"; then
2447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456     ac_cv_prog_ac_ct_CC="$ac_prog"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462
2463 fi
2464 fi
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6
2469 else
2470   echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2472 fi
2473
2474   test -n "$ac_ct_CC" && break
2475 done
2476
2477   CC=$ac_ct_CC
2478 fi
2479
2480 fi
2481
2482
2483 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: no acceptable C compiler found in \$PATH
2486 See \`config.log' for more details." >&2;}
2487    { (exit 1); exit 1; }; }
2488
2489 # Provide some information about the compiler.
2490 echo "$as_me:$LINENO:" \
2491      "checking for C compiler version" >&5
2492 ac_compiler=`set X $ac_compile; echo $2`
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2494   (eval $ac_compiler --version </dev/null >&5) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2499   (eval $ac_compiler -v </dev/null >&5) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }
2503 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2504   (eval $ac_compiler -V </dev/null >&5) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }
2508
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 ac_clean_files_save=$ac_clean_files
2525 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2526 # Try to create an executable without -o first, disregard a.out.
2527 # It will help us diagnose broken compilers, and finding out an intuition
2528 # of exeext.
2529 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2530 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2531 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2533   (eval $ac_link_default) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; then
2537   # Find the output, starting from the most likely.  This scheme is
2538 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2539 # resort.
2540
2541 # Be careful to initialize this variable, since it used to be cached.
2542 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2543 ac_cv_exeext=
2544 # b.out is created by i960 compilers.
2545 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2546 do
2547   test -f "$ac_file" || continue
2548   case $ac_file in
2549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2550         ;;
2551     conftest.$ac_ext )
2552         # This is the source file.
2553         ;;
2554     [ab].out )
2555         # We found the default executable, but exeext='' is most
2556         # certainly right.
2557         break;;
2558     *.* )
2559         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560         # FIXME: I believe we export ac_cv_exeext for Libtool,
2561         # but it would be cool to find out if it's true.  Does anybody
2562         # maintain Libtool? --akim.
2563         export ac_cv_exeext
2564         break;;
2565     * )
2566         break;;
2567   esac
2568 done
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&2;}
2577    { (exit 77); exit 77; }; }
2578 fi
2579
2580 ac_exeext=$ac_cv_exeext
2581 echo "$as_me:$LINENO: result: $ac_file" >&5
2582 echo "${ECHO_T}$ac_file" >&6
2583
2584 # Check the compiler produces executables we can run.  If not, either
2585 # the compiler is broken, or we cross compile.
2586 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591   if { ac_try='./$ac_file'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597     cross_compiling=no
2598   else
2599     if test "$cross_compiling" = maybe; then
2600         cross_compiling=yes
2601     else
2602         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2603 If you meant to cross compile, use \`--host'.
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&2;}
2608    { (exit 1); exit 1; }; }
2609     fi
2610   fi
2611 fi
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614
2615 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2616 ac_clean_files=$ac_clean_files_save
2617 # Check the compiler produces executables we can run.  If not, either
2618 # the compiler is broken, or we cross compile.
2619 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2620 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2621 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2622 echo "${ECHO_T}$cross_compiling" >&6
2623
2624 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2625 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627   (eval $ac_link) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; then
2631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2633 # work properly (i.e., refer to `conftest.exe'), while it won't with
2634 # `rm'.
2635 for ac_file in conftest.exe conftest conftest.*; do
2636   test -f "$ac_file" || continue
2637   case $ac_file in
2638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640           export ac_cv_exeext
2641           break;;
2642     * ) break;;
2643   esac
2644 done
2645 else
2646   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details." >&2;}
2650    { (exit 1); exit 1; }; }
2651 fi
2652
2653 rm -f conftest$ac_cv_exeext
2654 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2655 echo "${ECHO_T}$ac_cv_exeext" >&6
2656
2657 rm -f conftest.$ac_ext
2658 EXEEXT=$ac_cv_exeext
2659 ac_exeext=$EXEEXT
2660 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2661 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2662 if test "${ac_cv_objext+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671
2672 int
2673 main ()
2674 {
2675
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 rm -f conftest.o conftest.obj
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; then
2686   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2687   case $ac_file in
2688     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2689     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2690        break;;
2691   esac
2692 done
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2700 See \`config.log' for more details." >&2;}
2701    { (exit 1); exit 1; }; }
2702 fi
2703
2704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2705 fi
2706 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2707 echo "${ECHO_T}$ac_cv_objext" >&6
2708 OBJEXT=$ac_cv_objext
2709 ac_objext=$OBJEXT
2710 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2711 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2712 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721
2722 int
2723 main ()
2724 {
2725 #ifndef __GNUC__
2726        choke me
2727 #endif
2728
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 rm -f conftest.$ac_objext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735   (eval $ac_compile) 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -z "$ac_c_werror_flag"
2743                          || test ! -s conftest.err'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; } &&
2749          { ac_try='test -s conftest.$ac_objext'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; }; then
2755   ac_compiler_gnu=yes
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_compiler_gnu=no
2761 fi
2762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2764
2765 fi
2766 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2767 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2768 GCC=`test $ac_compiler_gnu = yes && echo yes`
2769 ac_test_CFLAGS=${CFLAGS+set}
2770 ac_save_CFLAGS=$CFLAGS
2771 CFLAGS="-g"
2772 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2773 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cc_g+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783
2784 int
2785 main ()
2786 {
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -z "$ac_c_werror_flag"
2802                          || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   ac_cv_prog_cc_g=yes
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 ac_cv_prog_cc_g=no
2820 fi
2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822 fi
2823 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2824 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2825 if test "$ac_test_CFLAGS" = set; then
2826   CFLAGS=$ac_save_CFLAGS
2827 elif test $ac_cv_prog_cc_g = yes; then
2828   if test "$GCC" = yes; then
2829     CFLAGS="-g -O2"
2830   else
2831     CFLAGS="-g"
2832   fi
2833 else
2834   if test "$GCC" = yes; then
2835     CFLAGS="-O2"
2836   else
2837     CFLAGS=
2838   fi
2839 fi
2840 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   ac_cv_prog_cc_stdc=no
2846 ac_save_CC=$CC
2847 cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #include <stdarg.h>
2854 #include <stdio.h>
2855 #include <sys/types.h>
2856 #include <sys/stat.h>
2857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2858 struct buf { int x; };
2859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2860 static char *e (p, i)
2861      char **p;
2862      int i;
2863 {
2864   return p[i];
2865 }
2866 static char *f (char * (*g) (char **, int), char **p, ...)
2867 {
2868   char *s;
2869   va_list v;
2870   va_start (v,p);
2871   s = g (p, va_arg (v,int));
2872   va_end (v);
2873   return s;
2874 }
2875
2876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2877    function prototypes and stuff, but not '\xHH' hex character constants.
2878    These don't provoke an error unfortunately, instead are silently treated
2879    as 'x'.  The following induces an error, until -std1 is added to get
2880    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2881    array size at least.  It's necessary to write '\x00'==0 to get something
2882    that's true only with -std1.  */
2883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2884
2885 int test (int i, double x);
2886 struct s1 {int (*f) (int a);};
2887 struct s2 {int (*f) (double a);};
2888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2889 int argc;
2890 char **argv;
2891 int
2892 main ()
2893 {
2894 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2895   ;
2896   return 0;
2897 }
2898 _ACEOF
2899 # Don't try gcc -ansi; that turns off useful extensions and
2900 # breaks some systems' header files.
2901 # AIX                   -qlanglvl=ansi
2902 # Ultrix and OSF/1      -std1
2903 # HP-UX 10.20 and later -Ae
2904 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2905 # SVR4                  -Xc -D__EXTENSIONS__
2906 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2907 do
2908   CC="$ac_save_CC $ac_arg"
2909   rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -z "$ac_c_werror_flag"
2919                          || test ! -s conftest.err'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_cv_prog_cc_stdc=$ac_arg
2932 break
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 fi
2938 rm -f conftest.err conftest.$ac_objext
2939 done
2940 rm -f conftest.$ac_ext conftest.$ac_objext
2941 CC=$ac_save_CC
2942
2943 fi
2944
2945 case "x$ac_cv_prog_cc_stdc" in
2946   x|xno)
2947     echo "$as_me:$LINENO: result: none needed" >&5
2948 echo "${ECHO_T}none needed" >&6 ;;
2949   *)
2950     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2951 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2952     CC="$CC $ac_cv_prog_cc_stdc" ;;
2953 esac
2954
2955 # Some people use a C++ compiler to compile C.  Since we use `exit',
2956 # in C++ we need to declare it.  In case someone uses the same compiler
2957 # for both compiling C and C++ we need to have the C++ compiler decide
2958 # the declaration of exit, since it's the most demanding environment.
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #ifndef __cplusplus
2961   choke me
2962 #endif
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966   (eval $ac_compile) 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -z "$ac_c_werror_flag"
2974                          || test ! -s conftest.err'
2975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976   (eval $ac_try) 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; } &&
2980          { ac_try='test -s conftest.$ac_objext'
2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   for ac_declaration in \
2987    '' \
2988    'extern "C" void std::exit (int) throw (); using std::exit;' \
2989    'extern "C" void std::exit (int); using std::exit;' \
2990    'extern "C" void exit (int) throw ();' \
2991    'extern "C" void exit (int);' \
2992    'void exit (int);'
2993 do
2994   cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 $ac_declaration
3001 #include <stdlib.h>
3002 int
3003 main ()
3004 {
3005 exit (42);
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012   (eval $ac_compile) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag"
3020                          || test ! -s conftest.err'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; } &&
3026          { ac_try='test -s conftest.$ac_objext'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; }; then
3032   :
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 continue
3038 fi
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040   cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046 $ac_declaration
3047 int
3048 main ()
3049 {
3050 exit (42);
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057   (eval $ac_compile) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } &&
3064          { ac_try='test -z "$ac_c_werror_flag"
3065                          || test ! -s conftest.err'
3066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067   (eval $ac_try) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; } &&
3071          { ac_try='test -s conftest.$ac_objext'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; }; then
3077   break
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 done
3085 rm -f conftest*
3086 if test -n "$ac_declaration"; then
3087   echo '#ifdef __cplusplus' >>confdefs.h
3088   echo $ac_declaration      >>confdefs.h
3089   echo '#endif'             >>confdefs.h
3090 fi
3091
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 fi
3097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104 depcc="$CC"   am_compiler_list=
3105
3106 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3107 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3108 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3112   # We make a subdir and do the tests there.  Otherwise we can end up
3113   # making bogus files that we don't know about and never remove.  For
3114   # instance it was reported that on HP-UX the gcc test will end up
3115   # making a dummy file named `D' -- because `-MD' means `put the output
3116   # in D'.
3117   mkdir conftest.dir
3118   # Copy depcomp to subdir because otherwise we won't find it if we're
3119   # using a relative directory.
3120   cp "$am_depcomp" conftest.dir
3121   cd conftest.dir
3122   # We will build objects and dependencies in a subdirectory because
3123   # it helps to detect inapplicable dependency modes.  For instance
3124   # both Tru64's cc and ICC support -MD to output dependencies as a
3125   # side effect of compilation, but ICC will put the dependencies in
3126   # the current directory while Tru64 will put them in the object
3127   # directory.
3128   mkdir sub
3129
3130   am_cv_CC_dependencies_compiler_type=none
3131   if test "$am_compiler_list" = ""; then
3132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3133   fi
3134   for depmode in $am_compiler_list; do
3135     # Setup a source with many dependencies, because some compilers
3136     # like to wrap large dependency lists on column 80 (with \), and
3137     # we should not choose a depcomp mode which is confused by this.
3138     #
3139     # We need to recreate these files for each test, as the compiler may
3140     # overwrite some of them when testing with obscure command lines.
3141     # This happens at least with the AIX C compiler.
3142     : > sub/conftest.c
3143     for i in 1 2 3 4 5 6; do
3144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3146       # Solaris 8's {/usr,}/bin/sh.
3147       touch sub/conftst$i.h
3148     done
3149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3150
3151     case $depmode in
3152     nosideeffect)
3153       # after this tag, mechanisms are not by side-effect, so they'll
3154       # only be used when explicitly requested
3155       if test "x$enable_dependency_tracking" = xyes; then
3156         continue
3157       else
3158         break
3159       fi
3160       ;;
3161     none) break ;;
3162     esac
3163     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3164     # mode.  It turns out that the SunPro C++ compiler does not properly
3165     # handle `-M -o', and we need to detect this.
3166     if depmode=$depmode \
3167        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3168        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3169        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3170          >/dev/null 2>conftest.err &&
3171        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3172        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3173        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3174       # icc doesn't choke on unknown options, it will just issue warnings
3175       # or remarks (even with -Werror).  So we grep stderr for any message
3176       # that says an option was ignored or not supported.
3177       # When given -MP, icc 7.0 and 7.1 complain thusly:
3178       #   icc: Command line warning: ignoring option '-M'; no argument required
3179       # The diagnosis changed in icc 8.0:
3180       #   icc: Command line remark: option '-MP' not supported
3181       if (grep 'ignoring option' conftest.err ||
3182           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3183         am_cv_CC_dependencies_compiler_type=$depmode
3184         break
3185       fi
3186     fi
3187   done
3188
3189   cd ..
3190   rm -rf conftest.dir
3191 else
3192   am_cv_CC_dependencies_compiler_type=none
3193 fi
3194
3195 fi
3196 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3197 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3198 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3199
3200
3201
3202 if
3203   test "x$enable_dependency_tracking" != xno \
3204   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3205   am__fastdepCC_TRUE=
3206   am__fastdepCC_FALSE='#'
3207 else
3208   am__fastdepCC_TRUE='#'
3209   am__fastdepCC_FALSE=
3210 fi
3211
3212
3213
3214 ac_ext=c
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3220 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3221 # On Suns, sometimes $CPP names a directory.
3222 if test -n "$CPP" && test -d "$CPP"; then
3223   CPP=
3224 fi
3225 if test -z "$CPP"; then
3226   if test "${ac_cv_prog_CPP+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229       # Double quotes because CPP needs to be expanded
3230     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231     do
3232       ac_preproc_ok=false
3233 for ac_c_preproc_warn_flag in '' yes
3234 do
3235   # Use a header file that comes with gcc, so configuring glibc
3236   # with a fresh cross-compiler works.
3237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238   # <limits.h> exists even on freestanding compilers.
3239   # On the NeXT, cc -E runs the code through the compiler's parser,
3240   # not just through cpp. "Syntax error" is here to catch this case.
3241   cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h.  */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h.  */
3247 #ifdef __STDC__
3248 # include <limits.h>
3249 #else
3250 # include <assert.h>
3251 #endif
3252                      Syntax error
3253 _ACEOF
3254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } >/dev/null; then
3262   if test -s conftest.err; then
3263     ac_cpp_err=$ac_c_preproc_warn_flag
3264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265   else
3266     ac_cpp_err=
3267   fi
3268 else
3269   ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272   :
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277   # Broken: fails on valid input.
3278 continue
3279 fi
3280 rm -f conftest.err conftest.$ac_ext
3281
3282   # OK, works on sane cases.  Now check whether non-existent headers
3283   # can be detected and how.
3284   cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290 #include <ac_nonexistent.h>
3291 _ACEOF
3292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } >/dev/null; then
3300   if test -s conftest.err; then
3301     ac_cpp_err=$ac_c_preproc_warn_flag
3302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303   else
3304     ac_cpp_err=
3305   fi
3306 else
3307   ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310   # Broken: success on invalid input.
3311 continue
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316   # Passes both tests.
3317 ac_preproc_ok=:
3318 break
3319 fi
3320 rm -f conftest.err conftest.$ac_ext
3321
3322 done
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3326   break
3327 fi
3328
3329     done
3330     ac_cv_prog_CPP=$CPP
3331
3332 fi
3333   CPP=$ac_cv_prog_CPP
3334 else
3335   ac_cv_prog_CPP=$CPP
3336 fi
3337 echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6
3339 ac_preproc_ok=false
3340 for ac_c_preproc_warn_flag in '' yes
3341 do
3342   # Use a header file that comes with gcc, so configuring glibc
3343   # with a fresh cross-compiler works.
3344   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345   # <limits.h> exists even on freestanding compilers.
3346   # On the NeXT, cc -E runs the code through the compiler's parser,
3347   # not just through cpp. "Syntax error" is here to catch this case.
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #ifdef __STDC__
3355 # include <limits.h>
3356 #else
3357 # include <assert.h>
3358 #endif
3359                      Syntax error
3360 _ACEOF
3361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } >/dev/null; then
3369   if test -s conftest.err; then
3370     ac_cpp_err=$ac_c_preproc_warn_flag
3371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372   else
3373     ac_cpp_err=
3374   fi
3375 else
3376   ac_cpp_err=yes
3377 fi
3378 if test -z "$ac_cpp_err"; then
3379   :
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384   # Broken: fails on valid input.
3385 continue
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388
3389   # OK, works on sane cases.  Now check whether non-existent headers
3390   # can be detected and how.
3391   cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <ac_nonexistent.h>
3398 _ACEOF
3399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } >/dev/null; then
3407   if test -s conftest.err; then
3408     ac_cpp_err=$ac_c_preproc_warn_flag
3409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410   else
3411     ac_cpp_err=
3412   fi
3413 else
3414   ac_cpp_err=yes
3415 fi
3416 if test -z "$ac_cpp_err"; then
3417   # Broken: success on invalid input.
3418 continue
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Passes both tests.
3424 ac_preproc_ok=:
3425 break
3426 fi
3427 rm -f conftest.err conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433   :
3434 else
3435   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449 echo "$as_me:$LINENO: checking for egrep" >&5
3450 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451 if test "${ac_cv_prog_egrep+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455     then ac_cv_prog_egrep='grep -E'
3456     else ac_cv_prog_egrep='egrep'
3457     fi
3458 fi
3459 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461  EGREP=$ac_cv_prog_egrep
3462
3463
3464
3465 echo "$as_me:$LINENO: checking for AIX" >&5
3466 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473 #ifdef _AIX
3474   yes
3475 #endif
3476
3477 _ACEOF
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479   $EGREP "yes" >/dev/null 2>&1; then
3480   echo "$as_me:$LINENO: result: yes" >&5
3481 echo "${ECHO_T}yes" >&6
3482 cat >>confdefs.h <<\_ACEOF
3483 #define _ALL_SOURCE 1
3484 _ACEOF
3485
3486 else
3487   echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3489 fi
3490 rm -f conftest*
3491
3492
3493 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3494 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3495 if test "${ac_cv_header_stdc+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <stdlib.h>
3505 #include <stdarg.h>
3506 #include <string.h>
3507 #include <float.h>
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519   (eval $ac_compile) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag"
3527                          || test ! -s conftest.err'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; } &&
3533          { ac_try='test -s conftest.$ac_objext'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; }; then
3539   ac_cv_header_stdc=yes
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 ac_cv_header_stdc=no
3545 fi
3546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547
3548 if test $ac_cv_header_stdc = yes; then
3549   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3550   cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #include <string.h>
3557
3558 _ACEOF
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560   $EGREP "memchr" >/dev/null 2>&1; then
3561   :
3562 else
3563   ac_cv_header_stdc=no
3564 fi
3565 rm -f conftest*
3566
3567 fi
3568
3569 if test $ac_cv_header_stdc = yes; then
3570   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #include <stdlib.h>
3578
3579 _ACEOF
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581   $EGREP "free" >/dev/null 2>&1; then
3582   :
3583 else
3584   ac_cv_header_stdc=no
3585 fi
3586 rm -f conftest*
3587
3588 fi
3589
3590 if test $ac_cv_header_stdc = yes; then
3591   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3592   if test "$cross_compiling" = yes; then
3593   :
3594 else
3595   cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601 #include <ctype.h>
3602 #if ((' ' & 0x0FF) == 0x020)
3603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3605 #else
3606 # define ISLOWER(c) \
3607                    (('a' <= (c) && (c) <= 'i') \
3608                      || ('j' <= (c) && (c) <= 'r') \
3609                      || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611 #endif
3612
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614 int
3615 main ()
3616 {
3617   int i;
3618   for (i = 0; i < 256; i++)
3619     if (XOR (islower (i), ISLOWER (i))
3620         || toupper (i) != TOUPPER (i))
3621       exit(2);
3622   exit (0);
3623 }
3624 _ACEOF
3625 rm -f conftest$ac_exeext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3627   (eval $ac_link) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636   :
3637 else
3638   echo "$as_me: program exited with status $ac_status" >&5
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 ( exit $ac_status )
3643 ac_cv_header_stdc=no
3644 fi
3645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 fi
3648 fi
3649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3651 if test $ac_cv_header_stdc = yes; then
3652
3653 cat >>confdefs.h <<\_ACEOF
3654 #define STDC_HEADERS 1
3655 _ACEOF
3656
3657 fi
3658
3659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3670                   inttypes.h stdint.h unistd.h
3671 do
3672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3673 echo "$as_me:$LINENO: checking for $ac_header" >&5
3674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684 $ac_includes_default
3685
3686 #include <$ac_header>
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690   (eval $ac_compile) 2>conftest.er1
3691   ac_status=$?
3692   grep -v '^ *+' conftest.er1 >conftest.err
3693   rm -f conftest.er1
3694   cat conftest.err >&5
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } &&
3697          { ac_try='test -z "$ac_c_werror_flag"
3698                          || test ! -s conftest.err'
3699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700   (eval $ac_try) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); }; } &&
3704          { ac_try='test -s conftest.$ac_objext'
3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706   (eval $ac_try) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; }; then
3710   eval "$as_ac_Header=yes"
3711 else
3712   echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 eval "$as_ac_Header=no"
3716 fi
3717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3722   cat >>confdefs.h <<_ACEOF
3723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3724 _ACEOF
3725
3726 fi
3727
3728 done
3729
3730
3731 if test "${ac_cv_header_minix_config_h+set}" = set; then
3732   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3733 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3734 if test "${ac_cv_header_minix_config_h+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 fi
3737 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3738 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3739 else
3740   # Is the header compilable?
3741 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3742 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749 $ac_includes_default
3750 #include <minix/config.h>
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754   (eval $ac_compile) 2>conftest.er1
3755   ac_status=$?
3756   grep -v '^ *+' conftest.er1 >conftest.err
3757   rm -f conftest.er1
3758   cat conftest.err >&5
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } &&
3761          { ac_try='test -z "$ac_c_werror_flag"
3762                          || test ! -s conftest.err'
3763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764   (eval $ac_try) 2>&5
3765   ac_status=$?
3766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767   (exit $ac_status); }; } &&
3768          { ac_try='test -s conftest.$ac_objext'
3769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770   (eval $ac_try) 2>&5
3771   ac_status=$?
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); }; }; then
3774   ac_header_compiler=yes
3775 else
3776   echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 ac_header_compiler=no
3780 fi
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3783 echo "${ECHO_T}$ac_header_compiler" >&6
3784
3785 # Is the header present?
3786 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3787 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 #include <minix/config.h>
3795 _ACEOF
3796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } >/dev/null; then
3804   if test -s conftest.err; then
3805     ac_cpp_err=$ac_c_preproc_warn_flag
3806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3807   else
3808     ac_cpp_err=
3809   fi
3810 else
3811   ac_cpp_err=yes
3812 fi
3813 if test -z "$ac_cpp_err"; then
3814   ac_header_preproc=yes
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819   ac_header_preproc=no
3820 fi
3821 rm -f conftest.err conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3823 echo "${ECHO_T}$ac_header_preproc" >&6
3824
3825 # So?  What about this header?
3826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3827   yes:no: )
3828     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3829 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3830     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3831 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3832     ac_header_preproc=yes
3833     ;;
3834   no:yes:* )
3835     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3836 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3837     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3838 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3839     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3840 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3841     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3842 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3843     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3844 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3845     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3846 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3847     (
3848       cat <<\_ASBOX
3849 ## ------------------------------ ##
3850 ## Report this to the ntp lists.  ##
3851 ## ------------------------------ ##
3852 _ASBOX
3853     ) |
3854       sed "s/^/$as_me: WARNING:     /" >&2
3855     ;;
3856 esac
3857 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3858 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3859 if test "${ac_cv_header_minix_config_h+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   ac_cv_header_minix_config_h=$ac_header_preproc
3863 fi
3864 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3865 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3866
3867 fi
3868 if test $ac_cv_header_minix_config_h = yes; then
3869   MINIX=yes
3870 else
3871   MINIX=
3872 fi
3873
3874
3875 if test "$MINIX" = yes; then
3876
3877 cat >>confdefs.h <<\_ACEOF
3878 #define _POSIX_SOURCE 1
3879 _ACEOF
3880
3881
3882 cat >>confdefs.h <<\_ACEOF
3883 #define _POSIX_1_SOURCE 2
3884 _ACEOF
3885
3886
3887 cat >>confdefs.h <<\_ACEOF
3888 #define _MINIX 1
3889 _ACEOF
3890
3891 fi
3892
3893
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   if test -n "$CC"; then
3908   ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924 fi
3925 fi
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928   echo "$as_me:$LINENO: result: $CC" >&5
3929 echo "${ECHO_T}$CC" >&6
3930 else
3931   echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 fi
3934
3935 fi
3936 if test -z "$ac_cv_prog_CC"; then
3937   ac_ct_CC=$CC
3938   # Extract the first word of "gcc", so it can be a program name with args.
3939 set dummy gcc; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   if test -n "$ac_ct_CC"; then
3946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_prog_ac_ct_CC="gcc"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962 fi
3963 fi
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3967 echo "${ECHO_T}$ac_ct_CC" >&6
3968 else
3969   echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3971 fi
3972
3973   CC=$ac_ct_CC
3974 else
3975   CC="$ac_cv_prog_CC"
3976 fi
3977
3978 if test -z "$CC"; then
3979   if test -n "$ac_tool_prefix"; then
3980   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}cc; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$CC"; then
3988   ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CC="${ac_tool_prefix}cc"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4010 else
4011   echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015 fi
4016 if test -z "$ac_cv_prog_CC"; then
4017   ac_ct_CC=$CC
4018   # Extract the first word of "cc", so it can be a program name with args.
4019 set dummy cc; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$ac_ct_CC"; then
4026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_prog_ac_ct_CC="cc"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041
4042 fi
4043 fi
4044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4045 if test -n "$ac_ct_CC"; then
4046   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4047 echo "${ECHO_T}$ac_ct_CC" >&6
4048 else
4049   echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053   CC=$ac_ct_CC
4054 else
4055   CC="$ac_cv_prog_CC"
4056 fi
4057
4058 fi
4059 if test -z "$CC"; then
4060   # Extract the first word of "cc", so it can be a program name with args.
4061 set dummy cc; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_CC+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test -n "$CC"; then
4068   ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070   ac_prog_rejected=no
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_exec_ext in '' $ac_executable_extensions; do
4077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4079        ac_prog_rejected=yes
4080        continue
4081      fi
4082     ac_cv_prog_CC="cc"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089 if test $ac_prog_rejected = yes; then
4090   # We found a bogon in the path, so make sure we never use it.
4091   set dummy $ac_cv_prog_CC
4092   shift
4093   if test $# != 0; then
4094     # We chose a different compiler from the bogus one.
4095     # However, it has the same basename, so the bogon will be chosen
4096     # first if we set CC to just the basename; use the full file name.
4097     shift
4098     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4099   fi
4100 fi
4101 fi
4102 fi
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105   echo "$as_me:$LINENO: result: $CC" >&5
4106 echo "${ECHO_T}$CC" >&6
4107 else
4108   echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4110 fi
4111
4112 fi
4113 if test -z "$CC"; then
4114   if test -n "$ac_tool_prefix"; then
4115   for ac_prog in cl
4116   do
4117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_CC+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$CC"; then
4125   ac_cv_prog_CC="$CC" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141 fi
4142 fi
4143 CC=$ac_cv_prog_CC
4144 if test -n "$CC"; then
4145   echo "$as_me:$LINENO: result: $CC" >&5
4146 echo "${ECHO_T}$CC" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152     test -n "$CC" && break
4153   done
4154 fi
4155 if test -z "$CC"; then
4156   ac_ct_CC=$CC
4157   for ac_prog in cl
4158 do
4159   # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -n "$ac_ct_CC"; then
4167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174   for ac_exec_ext in '' $ac_executable_extensions; do
4175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176     ac_cv_prog_ac_ct_CC="$ac_prog"
4177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181 done
4182
4183 fi
4184 fi
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4188 echo "${ECHO_T}$ac_ct_CC" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194   test -n "$ac_ct_CC" && break
4195 done
4196
4197   CC=$ac_ct_CC
4198 fi
4199
4200 fi
4201
4202
4203 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4204 See \`config.log' for more details." >&5
4205 echo "$as_me: error: no acceptable C compiler found in \$PATH
4206 See \`config.log' for more details." >&2;}
4207    { (exit 1); exit 1; }; }
4208
4209 # Provide some information about the compiler.
4210 echo "$as_me:$LINENO:" \
4211      "checking for C compiler version" >&5
4212 ac_compiler=`set X $ac_compile; echo $2`
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4214   (eval $ac_compiler --version </dev/null >&5) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }
4218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4219   (eval $ac_compiler -v </dev/null >&5) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }
4223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4224   (eval $ac_compiler -V </dev/null >&5) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }
4228
4229 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4230 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4231 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244 #ifndef __GNUC__
4245        choke me
4246 #endif
4247
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254   (eval $ac_compile) 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag"
4262                          || test ! -s conftest.err'
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); }; } &&
4268          { ac_try='test -s conftest.$ac_objext'
4269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270   (eval $ac_try) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   ac_compiler_gnu=yes
4275 else
4276   echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 ac_compiler_gnu=no
4280 fi
4281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4283
4284 fi
4285 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4286 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4287 GCC=`test $ac_compiler_gnu = yes && echo yes`
4288 ac_test_CFLAGS=${CFLAGS+set}
4289 ac_save_CFLAGS=$CFLAGS
4290 CFLAGS="-g"
4291 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4292 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4293 if test "${ac_cv_prog_cc_g+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302
4303 int
4304 main ()
4305 {
4306
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313   (eval $ac_compile) 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag"
4321                          || test ! -s conftest.err'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest.$ac_objext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   ac_cv_prog_cc_g=yes
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ac_cv_prog_cc_g=no
4339 fi
4340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4343 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4344 if test "$ac_test_CFLAGS" = set; then
4345   CFLAGS=$ac_save_CFLAGS
4346 elif test $ac_cv_prog_cc_g = yes; then
4347   if test "$GCC" = yes; then
4348     CFLAGS="-g -O2"
4349   else
4350     CFLAGS="-g"
4351   fi
4352 else
4353   if test "$GCC" = yes; then
4354     CFLAGS="-O2"
4355   else
4356     CFLAGS=
4357   fi
4358 fi
4359 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4360 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4361 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   ac_cv_prog_cc_stdc=no
4365 ac_save_CC=$CC
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #include <stdarg.h>
4373 #include <stdio.h>
4374 #include <sys/types.h>
4375 #include <sys/stat.h>
4376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4377 struct buf { int x; };
4378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4379 static char *e (p, i)
4380      char **p;
4381      int i;
4382 {
4383   return p[i];
4384 }
4385 static char *f (char * (*g) (char **, int), char **p, ...)
4386 {
4387   char *s;
4388   va_list v;
4389   va_start (v,p);
4390   s = g (p, va_arg (v,int));
4391   va_end (v);
4392   return s;
4393 }
4394
4395 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4396    function prototypes and stuff, but not '\xHH' hex character constants.
4397    These don't provoke an error unfortunately, instead are silently treated
4398    as 'x'.  The following induces an error, until -std1 is added to get
4399    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4400    array size at least.  It's necessary to write '\x00'==0 to get something
4401    that's true only with -std1.  */
4402 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4403
4404 int test (int i, double x);
4405 struct s1 {int (*f) (int a);};
4406 struct s2 {int (*f) (double a);};
4407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4408 int argc;
4409 char **argv;
4410 int
4411 main ()
4412 {
4413 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 # Don't try gcc -ansi; that turns off useful extensions and
4419 # breaks some systems' header files.
4420 # AIX                   -qlanglvl=ansi
4421 # Ultrix and OSF/1      -std1
4422 # HP-UX 10.20 and later -Ae
4423 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4424 # SVR4                  -Xc -D__EXTENSIONS__
4425 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4426 do
4427   CC="$ac_save_CC $ac_arg"
4428   rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430   (eval $ac_compile) 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } &&
4437          { ac_try='test -z "$ac_c_werror_flag"
4438                          || test ! -s conftest.err'
4439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440   (eval $ac_try) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); }; } &&
4444          { ac_try='test -s conftest.$ac_objext'
4445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446   (eval $ac_try) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; }; then
4450   ac_cv_prog_cc_stdc=$ac_arg
4451 break
4452 else
4453   echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 fi
4457 rm -f conftest.err conftest.$ac_objext
4458 done
4459 rm -f conftest.$ac_ext conftest.$ac_objext
4460 CC=$ac_save_CC
4461
4462 fi
4463
4464 case "x$ac_cv_prog_cc_stdc" in
4465   x|xno)
4466     echo "$as_me:$LINENO: result: none needed" >&5
4467 echo "${ECHO_T}none needed" >&6 ;;
4468   *)
4469     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4470 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4471     CC="$CC $ac_cv_prog_cc_stdc" ;;
4472 esac
4473
4474 # Some people use a C++ compiler to compile C.  Since we use `exit',
4475 # in C++ we need to declare it.  In case someone uses the same compiler
4476 # for both compiling C and C++ we need to have the C++ compiler decide
4477 # the declaration of exit, since it's the most demanding environment.
4478 cat >conftest.$ac_ext <<_ACEOF
4479 #ifndef __cplusplus
4480   choke me
4481 #endif
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485   (eval $ac_compile) 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag"
4493                          || test ! -s conftest.err'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; } &&
4499          { ac_try='test -s conftest.$ac_objext'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   for ac_declaration in \
4506    '' \
4507    'extern "C" void std::exit (int) throw (); using std::exit;' \
4508    'extern "C" void std::exit (int); using std::exit;' \
4509    'extern "C" void exit (int) throw ();' \
4510    'extern "C" void exit (int);' \
4511    'void exit (int);'
4512 do
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 $ac_declaration
4520 #include <stdlib.h>
4521 int
4522 main ()
4523 {
4524 exit (42);
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531   (eval $ac_compile) 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } &&
4538          { ac_try='test -z "$ac_c_werror_flag"
4539                          || test ! -s conftest.err'
4540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541   (eval $ac_try) 2>&5
4542   ac_status=$?
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); }; } &&
4545          { ac_try='test -s conftest.$ac_objext'
4546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; }; then
4551   :
4552 else
4553   echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 continue
4557 fi
4558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559   cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 $ac_declaration
4566 int
4567 main ()
4568 {
4569 exit (42);
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576   (eval $ac_compile) 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } &&
4583          { ac_try='test -z "$ac_c_werror_flag"
4584                          || test ! -s conftest.err'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; } &&
4590          { ac_try='test -s conftest.$ac_objext'
4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592   (eval $ac_try) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; }; then
4596   break
4597 else
4598   echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601 fi
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 done
4604 rm -f conftest*
4605 if test -n "$ac_declaration"; then
4606   echo '#ifdef __cplusplus' >>confdefs.h
4607   echo $ac_declaration      >>confdefs.h
4608   echo '#endif'             >>confdefs.h
4609 fi
4610
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 fi
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 # Ralf Wildenhues: With per-target flags we need CC_C_O
4733 if test "x$CC" != xcc; then
4734   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4735 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4736 else
4737   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4738 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4739 fi
4740 set dummy $CC; ac_cc=`echo $2 |
4741                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4742 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h.  */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h.  */
4751
4752 int
4753 main ()
4754 {
4755
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 # Make sure it works both with $CC and with simple cc.
4761 # We do the test twice because some compilers refuse to overwrite an
4762 # existing .o file with -o, though they will create one.
4763 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4764 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765   (eval $ac_try) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } &&
4769    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); };
4774 then
4775   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4776   if test "x$CC" != xcc; then
4777     # Test first that cc exists at all.
4778     if { ac_try='cc -c conftest.$ac_ext >&5'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; }; then
4784       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4785       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); };
4795       then
4796         # cc works too.
4797         :
4798       else
4799         # cc exists but doesn't like -o.
4800         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4801       fi
4802     fi
4803   fi
4804 else
4805   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4806 fi
4807 rm -f conftest*
4808
4809 fi
4810 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4811   echo "$as_me:$LINENO: result: yes" >&5
4812 echo "${ECHO_T}yes" >&6
4813 else
4814   echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4816
4817 cat >>confdefs.h <<\_ACEOF
4818 #define NO_MINUS_C_MINUS_O 1
4819 _ACEOF
4820
4821 fi
4822
4823
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4830 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4831 # On Suns, sometimes $CPP names a directory.
4832 if test -n "$CPP" && test -d "$CPP"; then
4833   CPP=
4834 fi
4835 if test -z "$CPP"; then
4836   if test "${ac_cv_prog_CPP+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839       # Double quotes because CPP needs to be expanded
4840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4841     do
4842       ac_preproc_ok=false
4843 for ac_c_preproc_warn_flag in '' yes
4844 do
4845   # Use a header file that comes with gcc, so configuring glibc
4846   # with a fresh cross-compiler works.
4847   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4848   # <limits.h> exists even on freestanding compilers.
4849   # On the NeXT, cc -E runs the code through the compiler's parser,
4850   # not just through cpp. "Syntax error" is here to catch this case.
4851   cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #ifdef __STDC__
4858 # include <limits.h>
4859 #else
4860 # include <assert.h>
4861 #endif
4862                      Syntax error
4863 _ACEOF
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } >/dev/null; then
4872   if test -s conftest.err; then
4873     ac_cpp_err=$ac_c_preproc_warn_flag
4874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4875   else
4876     ac_cpp_err=
4877   fi
4878 else
4879   ac_cpp_err=yes
4880 fi
4881 if test -z "$ac_cpp_err"; then
4882   :
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887   # Broken: fails on valid input.
4888 continue
4889 fi
4890 rm -f conftest.err conftest.$ac_ext
4891
4892   # OK, works on sane cases.  Now check whether non-existent headers
4893   # can be detected and how.
4894   cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 #include <ac_nonexistent.h>
4901 _ACEOF
4902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } >/dev/null; then
4910   if test -s conftest.err; then
4911     ac_cpp_err=$ac_c_preproc_warn_flag
4912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4913   else
4914     ac_cpp_err=
4915   fi
4916 else
4917   ac_cpp_err=yes
4918 fi
4919 if test -z "$ac_cpp_err"; then
4920   # Broken: success on invalid input.
4921 continue
4922 else
4923   echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926   # Passes both tests.
4927 ac_preproc_ok=:
4928 break
4929 fi
4930 rm -f conftest.err conftest.$ac_ext
4931
4932 done
4933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4934 rm -f conftest.err conftest.$ac_ext
4935 if $ac_preproc_ok; then
4936   break
4937 fi
4938
4939     done
4940     ac_cv_prog_CPP=$CPP
4941
4942 fi
4943   CPP=$ac_cv_prog_CPP
4944 else
4945   ac_cv_prog_CPP=$CPP
4946 fi
4947 echo "$as_me:$LINENO: result: $CPP" >&5
4948 echo "${ECHO_T}$CPP" >&6
4949 ac_preproc_ok=false
4950 for ac_c_preproc_warn_flag in '' yes
4951 do
4952   # Use a header file that comes with gcc, so configuring glibc
4953   # with a fresh cross-compiler works.
4954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955   # <limits.h> exists even on freestanding compilers.
4956   # On the NeXT, cc -E runs the code through the compiler's parser,
4957   # not just through cpp. "Syntax error" is here to catch this case.
4958   cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 #ifdef __STDC__
4965 # include <limits.h>
4966 #else
4967 # include <assert.h>
4968 #endif
4969                      Syntax error
4970 _ACEOF
4971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } >/dev/null; then
4979   if test -s conftest.err; then
4980     ac_cpp_err=$ac_c_preproc_warn_flag
4981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4982   else
4983     ac_cpp_err=
4984   fi
4985 else
4986   ac_cpp_err=yes
4987 fi
4988 if test -z "$ac_cpp_err"; then
4989   :
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994   # Broken: fails on valid input.
4995 continue
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999   # OK, works on sane cases.  Now check whether non-existent headers
5000   # can be detected and how.
5001   cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <ac_nonexistent.h>
5008 _ACEOF
5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } >/dev/null; then
5017   if test -s conftest.err; then
5018     ac_cpp_err=$ac_c_preproc_warn_flag
5019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5020   else
5021     ac_cpp_err=
5022   fi
5023 else
5024   ac_cpp_err=yes
5025 fi
5026 if test -z "$ac_cpp_err"; then
5027   # Broken: success on invalid input.
5028 continue
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033   # Passes both tests.
5034 ac_preproc_ok=:
5035 break
5036 fi
5037 rm -f conftest.err conftest.$ac_ext
5038
5039 done
5040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041 rm -f conftest.err conftest.$ac_ext
5042 if $ac_preproc_ok; then
5043   :
5044 else
5045   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5046 See \`config.log' for more details." >&5
5047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5048 See \`config.log' for more details." >&2;}
5049    { (exit 1); exit 1; }; }
5050 fi
5051
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057
5058
5059 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
5060 case "$host" in
5061  *-*-amigaos)
5062     CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
5063     ;;
5064  *-*-hpux10.*)  # at least for hppa2.0-hp-hpux10.20
5065     case "$GCC" in
5066      yes)
5067         ;;
5068      *) CFLAGS="$CFLAGS -Wp,-H18816"
5069         ;;
5070     esac
5071     ;;
5072  *-pc-cygwin*)
5073     CFLAGS="$CFLAGS -DSYS_CYGWIN32"
5074     ;;
5075  i386-sequent-sysv4)
5076     case "$CC" in
5077      cc)
5078         CFLAGS="$CFLAGS -Wc,+abi-socket"
5079         ;;
5080     esac
5081     ;;
5082  *-*-mpeix*)
5083     CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
5084     LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
5085     LIBS="$LIBS -lcurses"
5086     ;;
5087  *-*-solaris*)
5088     # see "man standards".
5089     # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
5090     # -D_XOPEN_SOURCE=600 seems OK for c99
5091     #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
5092     CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
5093     libxnet=-lxnet
5094     ;;
5095 esac
5096
5097
5098 echo "$as_me:$LINENO: checking additional compiler flags" >&5
5099 echo $ECHO_N "checking additional compiler flags... $ECHO_C" >&6
5100 if test "${ac_cv_os_cflags+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103
5104 case "${host_os}" in
5105         irix6* )
5106                 case "${CC}" in
5107                         cc )
5108                                 # do not use 64-bit compiler
5109                                 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
5110                                 ;;
5111                 esac
5112                 ;;
5113 # HMS: am-utils needed this but we don't (apparently)
5114 #       osf[[1-3]]* )
5115 #               # get the right version of struct sockaddr
5116 #               case "${CC}" in
5117 #                       cc )
5118 #                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
5119 #                               ;;
5120 #                       * )
5121 #                               ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
5122 #                               ;;
5123 #               esac
5124 #               ;;
5125 #       osf* )
5126 #               # get the right version of struct sockaddr
5127 #               case "${CC}" in
5128 #                       cc )
5129 #                               ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
5130 #                               ;;
5131 #                       * )
5132 #                               ac_cv_os_cflags="-D_SOCKADDR_LEN"
5133 #                               ;;
5134 #               esac
5135 #               ;;
5136         aix[1-3]* )
5137                 ac_cv_os_cflags="" ;;
5138         aix4.[0-2]* )
5139                 # turn on additional headers
5140                 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5141                 ;;
5142         aix* )
5143                 # avoid circular dependencies in yp headers
5144                 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5145                 ;;
5146         OFF-sunos4* )
5147                 # make sure passing whole structures is handled in gcc
5148                 case "${CC}" in
5149                         gcc )
5150                                 ac_cv_os_cflags="-fpcc-struct-return"
5151                                 ;;
5152                 esac
5153                 ;;
5154         sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* )
5155                 ac_cv_os_cflags="" ;;
5156         solaris* | sunos* )
5157                 # turn on 64-bit file offset interface
5158                 case "${CC}" in
5159                         * )
5160                                 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
5161                                 ;;
5162                 esac
5163                 ;;
5164         hpux* )
5165                 # use Ansi compiler on HPUX
5166                 case "${CC}" in
5167                         cc )
5168                                 ac_cv_os_cflags="-Ae"
5169                                 ;;
5170                 esac
5171                 ;;
5172         darwin* | rhapsody* )
5173                 ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
5174                 ;;
5175         * )
5176                 ac_cv_os_cflags=""
5177                 ;;
5178 esac
5179
5180 fi
5181 echo "$as_me:$LINENO: result: $ac_cv_os_cflags" >&5
5182 echo "${ECHO_T}$ac_cv_os_cflags" >&6
5183 CFLAGS="$CFLAGS $ac_cv_os_cflags"
5184
5185
5186 # NTP has (so far) been relying on leading-edge autogen.
5187 # Therefore, by default:
5188 # - use the version we ship with
5189 # - do not install it
5190 # - build a static copy (AC_DISABLE_SHARED - done earlier)
5191 case "${enable_local_libopts+set}" in
5192  set) ;;
5193  *) enable_local_libopts=yes ;;
5194 esac
5195 case "${enable_libopts_install+set}" in
5196  set) ;;
5197  *) enable_libopts_install=no ;;
5198 esac
5199
5200   NEED_LIBOPTS_DIR=''
5201
5202   LIBOPTS_DIR=libopts
5203
5204   # Check whether --enable-local-libopts or --disable-local-libopts was given.
5205 if test "${enable_local_libopts+set}" = set; then
5206   enableval="$enable_local_libopts"
5207
5208     if test x$enableval = xyes ; then
5209        { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
5210 echo "$as_me: Using supplied libopts tearoff" >&6;}
5211        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5212        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5213        NEED_LIBOPTS_DIR=true
5214     fi
5215 fi;
5216
5217   # Check whether --enable-libopts-install or --disable-libopts-install was given.
5218 if test "${enable_libopts_install+set}" = set; then
5219   enableval="$enable_libopts_install"
5220
5221 fi;
5222
5223
5224 if test "X${enable_libopts_install}" != Xno; then
5225   INSTALL_LIBOPTS_TRUE=
5226   INSTALL_LIBOPTS_FALSE='#'
5227 else
5228   INSTALL_LIBOPTS_TRUE='#'
5229   INSTALL_LIBOPTS_FALSE=
5230 fi
5231
5232
5233   if test -z "${NEED_LIBOPTS_DIR}" ; then
5234      echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
5235 echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
5236
5237 # Check whether --with-autoopts-config or --without-autoopts-config was given.
5238 if test "${with_autoopts_config+set}" = set; then
5239   withval="$with_autoopts_config"
5240   lo_cv_with_autoopts_config=${with_autoopts_config}
5241 else
5242   echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
5243 echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
5244 if test "${lo_cv_with_autoopts_config+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if autoopts-config --help 2>/dev/null 1>&2
5248         then lo_cv_with_autoopts_config=autoopts-config
5249         elif libopts-config --help 2>/dev/null 1>&2
5250         then lo_cv_with_autoopts_config=libopts-config
5251         else lo_cv_with_autoopts_config=no ; fi
5252 fi
5253 echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
5254 echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
5255
5256 fi;  # end of AC_ARG_WITH
5257
5258      if test "${lo_cv_test_autoopts+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261
5262         if test -z "${lo_cv_with_autoopts_config}" \
5263                 -o X"${lo_cv_with_autoopts_config}" = Xno
5264         then
5265            if autoopts-config --help 2>/dev/null 1>&2
5266            then lo_cv_with_autoopts_config=autoopts-config
5267            elif libopts-config --help 2>/dev/null 1>&2
5268            then lo_cv_with_autoopts_config=libopts-config
5269            else lo_cv_with_autoopts_config=false ; fi
5270         fi
5271         lo_cv_test_autoopts=`
5272             ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
5273         if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
5274         then lo_cv_test_autoopts=no ; fi
5275
5276 fi
5277  # end of CACHE_VAL
5278      echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
5279 echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
5280
5281      if test "X${lo_cv_test_autoopts}" != Xno
5282      then
5283         LIBOPTS_LDADD="${lo_cv_test_autoopts}"
5284         LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
5285      else
5286         LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5287         LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5288         NEED_LIBOPTS_DIR=true
5289      fi
5290   fi # end of if test -z "${NEED_LIBOPTS_DIR}"
5291
5292
5293
5294 if test -n "${NEED_LIBOPTS_DIR}"; then
5295   NEED_LIBOPTS_TRUE=
5296   NEED_LIBOPTS_FALSE='#'
5297 else
5298   NEED_LIBOPTS_TRUE='#'
5299   NEED_LIBOPTS_FALSE=
5300 fi
5301
5302
5303
5304   LIBOPTS_DIR=libopts
5305
5306             ac_config_files="$ac_config_files libopts/Makefile"
5307
5308
5309
5310   if test -n "${NEED_LIBOPTS_DIR}" ; then
5311
5312
5313 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
5314   # =================
5315   # AC_HEADER_STDC
5316   # =================
5317   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5319 if test "${ac_cv_header_stdc+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 #include <stdlib.h>
5329 #include <stdarg.h>
5330 #include <string.h>
5331 #include <float.h>
5332
5333 int
5334 main ()
5335 {
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5343   (eval $ac_compile) 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -z "$ac_c_werror_flag"
5351                          || test ! -s conftest.err'
5352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; } &&
5357          { ac_try='test -s conftest.$ac_objext'
5358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359   (eval $ac_try) 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }; }; then
5363   ac_cv_header_stdc=yes
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_cv_header_stdc=no
5369 fi
5370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371
5372 if test $ac_cv_header_stdc = yes; then
5373   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5374   cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 #include <string.h>
5381
5382 _ACEOF
5383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384   $EGREP "memchr" >/dev/null 2>&1; then
5385   :
5386 else
5387   ac_cv_header_stdc=no
5388 fi
5389 rm -f conftest*
5390
5391 fi
5392
5393 if test $ac_cv_header_stdc = yes; then
5394   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5395   cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 #include <stdlib.h>
5402
5403 _ACEOF
5404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5405   $EGREP "free" >/dev/null 2>&1; then
5406   :
5407 else
5408   ac_cv_header_stdc=no
5409 fi
5410 rm -f conftest*
5411
5412 fi
5413
5414 if test $ac_cv_header_stdc = yes; then
5415   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5416   if test "$cross_compiling" = yes; then
5417   :
5418 else
5419   cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h.  */
5425 #include <ctype.h>
5426 #if ((' ' & 0x0FF) == 0x020)
5427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5429 #else
5430 # define ISLOWER(c) \
5431                    (('a' <= (c) && (c) <= 'i') \
5432                      || ('j' <= (c) && (c) <= 'r') \
5433                      || ('s' <= (c) && (c) <= 'z'))
5434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5435 #endif
5436
5437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5438 int
5439 main ()
5440 {
5441   int i;
5442   for (i = 0; i < 256; i++)
5443     if (XOR (islower (i), ISLOWER (i))
5444         || toupper (i) != TOUPPER (i))
5445       exit(2);
5446   exit (0);
5447 }
5448 _ACEOF
5449 rm -f conftest$ac_exeext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451   (eval $ac_link) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   :
5461 else
5462   echo "$as_me: program exited with status $ac_status" >&5
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ( exit $ac_status )
5467 ac_cv_header_stdc=no
5468 fi
5469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5470 fi
5471 fi
5472 fi
5473 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5474 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5475 if test $ac_cv_header_stdc = yes; then
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define STDC_HEADERS 1
5479 _ACEOF
5480
5481 fi
5482
5483   # =================
5484   # AC_HEADER_DIRENT
5485   # =================
5486
5487
5488
5489
5490
5491 ac_header_dirent=no
5492 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5493   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5494 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5495 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505 #include <sys/types.h>
5506 #include <$ac_hdr>
5507
5508 int
5509 main ()
5510 {
5511 if ((DIR *) 0)
5512 return 0;
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5519   (eval $ac_compile) 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } &&
5526          { ac_try='test -z "$ac_c_werror_flag"
5527                          || test ! -s conftest.err'
5528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529   (eval $ac_try) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); }; } &&
5533          { ac_try='test -s conftest.$ac_objext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   eval "$as_ac_Header=yes"
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 eval "$as_ac_Header=no"
5545 fi
5546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5551   cat >>confdefs.h <<_ACEOF
5552 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5553 _ACEOF
5554
5555 ac_header_dirent=$ac_hdr; break
5556 fi
5557
5558 done
5559 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5560 if test $ac_header_dirent = dirent.h; then
5561   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5562 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5563 if test "${ac_cv_search_opendir+set}" = set; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   ac_func_search_save_LIBS=$LIBS
5567 ac_cv_search_opendir=no
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h.  */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h.  */
5574
5575 /* Override any gcc2 internal prototype to avoid an error.  */
5576 #ifdef __cplusplus
5577 extern "C"
5578 #endif
5579 /* We use char because int might match the return type of a gcc2
5580    builtin and then its argument prototype would still apply.  */
5581 char opendir ();
5582 int
5583 main ()
5584 {
5585 opendir ();
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592   (eval $ac_link) 2>conftest.er1
5593   ac_status=$?
5594   grep -v '^ *+' conftest.er1 >conftest.err
5595   rm -f conftest.er1
5596   cat conftest.err >&5
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } &&
5599          { ac_try='test -z "$ac_c_werror_flag"
5600                          || test ! -s conftest.err'
5601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602   (eval $ac_try) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }; } &&
5606          { ac_try='test -s conftest$ac_exeext'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   ac_cv_search_opendir="none required"
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 fi
5618 rm -f conftest.err conftest.$ac_objext \
5619       conftest$ac_exeext conftest.$ac_ext
5620 if test "$ac_cv_search_opendir" = no; then
5621   for ac_lib in dir; do
5622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5623     cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629
5630 /* Override any gcc2 internal prototype to avoid an error.  */
5631 #ifdef __cplusplus
5632 extern "C"
5633 #endif
5634 /* We use char because int might match the return type of a gcc2
5635    builtin and then its argument prototype would still apply.  */
5636 char opendir ();
5637 int
5638 main ()
5639 {
5640 opendir ();
5641   ;
5642   return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext conftest$ac_exeext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647   (eval $ac_link) 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -z "$ac_c_werror_flag"
5655                          || test ! -s conftest.err'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; } &&
5661          { ac_try='test -s conftest$ac_exeext'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; }; then
5667   ac_cv_search_opendir="-l$ac_lib"
5668 break
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 fi
5674 rm -f conftest.err conftest.$ac_objext \
5675       conftest$ac_exeext conftest.$ac_ext
5676   done
5677 fi
5678 LIBS=$ac_func_search_save_LIBS
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5681 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5682 if test "$ac_cv_search_opendir" != no; then
5683   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5684
5685 fi
5686
5687 else
5688   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5689 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5690 if test "${ac_cv_search_opendir+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   ac_func_search_save_LIBS=$LIBS
5694 ac_cv_search_opendir=no
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701
5702 /* Override any gcc2 internal prototype to avoid an error.  */
5703 #ifdef __cplusplus
5704 extern "C"
5705 #endif
5706 /* We use char because int might match the return type of a gcc2
5707    builtin and then its argument prototype would still apply.  */
5708 char opendir ();
5709 int
5710 main ()
5711 {
5712 opendir ();
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>conftest.er1
5720   ac_status=$?
5721   grep -v '^ *+' conftest.er1 >conftest.err
5722   rm -f conftest.er1
5723   cat conftest.err >&5
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } &&
5726          { ac_try='test -z "$ac_c_werror_flag"
5727                          || test ! -s conftest.err'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; } &&
5733          { ac_try='test -s conftest$ac_exeext'
5734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735   (eval $ac_try) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }; }; then
5739   ac_cv_search_opendir="none required"
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 fi
5745 rm -f conftest.err conftest.$ac_objext \
5746       conftest$ac_exeext conftest.$ac_ext
5747 if test "$ac_cv_search_opendir" = no; then
5748   for ac_lib in x; do
5749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5750     cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756
5757 /* Override any gcc2 internal prototype to avoid an error.  */
5758 #ifdef __cplusplus
5759 extern "C"
5760 #endif
5761 /* We use char because int might match the return type of a gcc2
5762    builtin and then its argument prototype would still apply.  */
5763 char opendir ();
5764 int
5765 main ()
5766 {
5767 opendir ();
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774   (eval $ac_link) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } &&
5781          { ac_try='test -z "$ac_c_werror_flag"
5782                          || test ! -s conftest.err'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; } &&
5788          { ac_try='test -s conftest$ac_exeext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   ac_cv_search_opendir="-l$ac_lib"
5795 break
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 fi
5801 rm -f conftest.err conftest.$ac_objext \
5802       conftest$ac_exeext conftest.$ac_ext
5803   done
5804 fi
5805 LIBS=$ac_func_search_save_LIBS
5806 fi
5807 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5808 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5809 if test "$ac_cv_search_opendir" != no; then
5810   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5811
5812 fi
5813
5814 fi
5815
5816
5817   # =================
5818   # AC_CHECK_HEADERS
5819   # =================
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
5841     setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
5842     sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
5843     utime.h sysexits.h
5844 do
5845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5847   echo "$as_me:$LINENO: checking for $ac_header" >&5
5848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 fi
5852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5854 else
5855   # Is the header compilable?
5856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h.  */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h.  */
5864 $ac_includes_default
5865 #include <$ac_header>
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -z "$ac_c_werror_flag"
5877                          || test ! -s conftest.err'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; } &&
5883          { ac_try='test -s conftest.$ac_objext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_header_compiler=yes
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_header_compiler=no
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5898 echo "${ECHO_T}$ac_header_compiler" >&6
5899
5900 # Is the header present?
5901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 #include <$ac_header>
5910 _ACEOF
5911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } >/dev/null; then
5919   if test -s conftest.err; then
5920     ac_cpp_err=$ac_c_preproc_warn_flag
5921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5922   else
5923     ac_cpp_err=
5924   fi
5925 else
5926   ac_cpp_err=yes
5927 fi
5928 if test -z "$ac_cpp_err"; then
5929   ac_header_preproc=yes
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934   ac_header_preproc=no
5935 fi
5936 rm -f conftest.err conftest.$ac_ext
5937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5938 echo "${ECHO_T}$ac_header_preproc" >&6
5939
5940 # So?  What about this header?
5941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5942   yes:no: )
5943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5947     ac_header_preproc=yes
5948     ;;
5949   no:yes:* )
5950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5962     (
5963       cat <<\_ASBOX
5964 ## ------------------------------ ##
5965 ## Report this to the ntp lists.  ##
5966 ## ------------------------------ ##
5967 _ASBOX
5968     ) |
5969       sed "s/^/$as_me: WARNING:     /" >&2
5970     ;;
5971 esac
5972 echo "$as_me:$LINENO: checking for $ac_header" >&5
5973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   eval "$as_ac_Header=\$ac_header_preproc"
5978 fi
5979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5981
5982 fi
5983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5984   cat >>confdefs.h <<_ACEOF
5985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5986 _ACEOF
5987
5988 fi
5989
5990 done
5991
5992
5993   # --------------------------------------------
5994   # Verify certain entries from AC_CHECK_HEADERS
5995   # --------------------------------------------
5996   for f in sys_types sys_mman sys_param sys_stat sys_wait \
5997            string errno stdlib memory setjmp
5998   do eval as_ac_var=\${ac_cv_header_${f}_h+set}
5999      test "${as_ac_var}" = set || \
6000        { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
6001 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
6002    { (exit 1); exit 1; }; }
6003   done
6004
6005   # ================================================
6006   # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6007   # if varargs.h is present define HAVE_VARARGS_H.
6008   # ================================================
6009
6010
6011 for ac_header in stdarg.h varargs.h
6012 do
6013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015   echo "$as_me:$LINENO: checking for $ac_header" >&5
6016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 fi
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 else
6023   # Is the header compilable?
6024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 $ac_includes_default
6033 #include <$ac_header>
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037   (eval $ac_compile) 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -z "$ac_c_werror_flag"
6045                          || test ! -s conftest.err'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; } &&
6051          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6057   ac_header_compiler=yes
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_header_compiler=no
6063 fi
6064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6
6067
6068 # Is the header present?
6069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077 #include <$ac_header>
6078 _ACEOF
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } >/dev/null; then
6087   if test -s conftest.err; then
6088     ac_cpp_err=$ac_c_preproc_warn_flag
6089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6090   else
6091     ac_cpp_err=
6092   fi
6093 else
6094   ac_cpp_err=yes
6095 fi
6096 if test -z "$ac_cpp_err"; then
6097   ac_header_preproc=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102   ac_header_preproc=no
6103 fi
6104 rm -f conftest.err conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106 echo "${ECHO_T}$ac_header_preproc" >&6
6107
6108 # So?  What about this header?
6109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6110   yes:no: )
6111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6115     ac_header_preproc=yes
6116     ;;
6117   no:yes:* )
6118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6130     (
6131       cat <<\_ASBOX
6132 ## ------------------------------ ##
6133 ## Report this to the ntp lists.  ##
6134 ## ------------------------------ ##
6135 _ASBOX
6136     ) |
6137       sed "s/^/$as_me: WARNING:     /" >&2
6138     ;;
6139 esac
6140 echo "$as_me:$LINENO: checking for $ac_header" >&5
6141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   eval "$as_ac_Header=\$ac_header_preproc"
6146 fi
6147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6149
6150 fi
6151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6152   cat >>confdefs.h <<_ACEOF
6153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6154 _ACEOF
6155  break
6156 fi
6157
6158 done
6159
6160   if test `eval echo '${'$as_ac_Header'}'` != yes; then
6161     { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
6162 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
6163    { (exit 1); exit 1; }; }
6164   fi
6165
6166   # ================================================
6167   # Similarly for the string.h and strings.h headers
6168   # ================================================
6169
6170
6171 for ac_header in string.h strings.h
6172 do
6173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6175   echo "$as_me:$LINENO: checking for $ac_header" >&5
6176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 fi
6180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6182 else
6183   # Is the header compilable?
6184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 $ac_includes_default
6193 #include <$ac_header>
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197   (eval $ac_compile) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -z "$ac_c_werror_flag"
6205                          || test ! -s conftest.err'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; } &&
6211          { ac_try='test -s conftest.$ac_objext'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217   ac_header_compiler=yes
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_header_compiler=no
6223 fi
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6226 echo "${ECHO_T}$ac_header_compiler" >&6
6227
6228 # Is the header present?
6229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237 #include <$ac_header>
6238 _ACEOF
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null; then
6247   if test -s conftest.err; then
6248     ac_cpp_err=$ac_c_preproc_warn_flag
6249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6250   else
6251     ac_cpp_err=
6252   fi
6253 else
6254   ac_cpp_err=yes
6255 fi
6256 if test -z "$ac_cpp_err"; then
6257   ac_header_preproc=yes
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262   ac_header_preproc=no
6263 fi
6264 rm -f conftest.err conftest.$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6266 echo "${ECHO_T}$ac_header_preproc" >&6
6267
6268 # So?  What about this header?
6269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270   yes:no: )
6271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6275     ac_header_preproc=yes
6276     ;;
6277   no:yes:* )
6278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6290     (
6291       cat <<\_ASBOX
6292 ## ------------------------------ ##
6293 ## Report this to the ntp lists.  ##
6294 ## ------------------------------ ##
6295 _ASBOX
6296     ) |
6297       sed "s/^/$as_me: WARNING:     /" >&2
6298     ;;
6299 esac
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   eval "$as_ac_Header=\$ac_header_preproc"
6306 fi
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309
6310 fi
6311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6312   cat >>confdefs.h <<_ACEOF
6313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6314 _ACEOF
6315  break
6316 fi
6317
6318 done
6319
6320   if test `eval echo '${'$as_ac_Header'}'` != yes; then
6321     { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
6322 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
6323    { (exit 1); exit 1; }; }
6324   fi
6325
6326   # =====================
6327   # ...and limits headers
6328   # =====================
6329
6330
6331
6332 for ac_header in limits.h sys/limits.h values.h
6333 do
6334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336   echo "$as_me:$LINENO: checking for $ac_header" >&5
6337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6339   echo $ECHO_N "(cached) $ECHO_C" >&6
6340 fi
6341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343 else
6344   # Is the header compilable?
6345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h.  */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h.  */
6353 $ac_includes_default
6354 #include <$ac_header>
6355 _ACEOF
6356 rm -f conftest.$ac_objext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358   (eval $ac_compile) 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -z "$ac_c_werror_flag"
6366                          || test ! -s conftest.err'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; } &&
6372          { ac_try='test -s conftest.$ac_objext'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; }; then
6378   ac_header_compiler=yes
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_header_compiler=no
6384 fi
6385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6387 echo "${ECHO_T}$ac_header_compiler" >&6
6388
6389 # Is the header present?
6390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 #include <$ac_header>
6399 _ACEOF
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } >/dev/null; then
6408   if test -s conftest.err; then
6409     ac_cpp_err=$ac_c_preproc_warn_flag
6410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411   else
6412     ac_cpp_err=
6413   fi
6414 else
6415   ac_cpp_err=yes
6416 fi
6417 if test -z "$ac_cpp_err"; then
6418   ac_header_preproc=yes
6419 else
6420   echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6422
6423   ac_header_preproc=no
6424 fi
6425 rm -f conftest.err conftest.$ac_ext
6426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6427 echo "${ECHO_T}$ac_header_preproc" >&6
6428
6429 # So?  What about this header?
6430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6431   yes:no: )
6432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6436     ac_header_preproc=yes
6437     ;;
6438   no:yes:* )
6439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6451     (
6452       cat <<\_ASBOX
6453 ## ------------------------------ ##
6454 ## Report this to the ntp lists.  ##
6455 ## ------------------------------ ##
6456 _ASBOX
6457     ) |
6458       sed "s/^/$as_me: WARNING:     /" >&2
6459     ;;
6460 esac
6461 echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   eval "$as_ac_Header=\$ac_header_preproc"
6467 fi
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470
6471 fi
6472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6473   cat >>confdefs.h <<_ACEOF
6474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475 _ACEOF
6476  break
6477 fi
6478
6479 done
6480
6481   if test `eval echo '${'$as_ac_Header'}'` != yes; then
6482     { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
6483 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
6484    { (exit 1); exit 1; }; }
6485   fi
6486
6487   # ========================
6488   # ...and int types headers
6489   # ========================
6490
6491
6492 for ac_header in stdint.h inttypes.h
6493 do
6494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6496   echo "$as_me:$LINENO: checking for $ac_header" >&5
6497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 fi
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6503 else
6504   # Is the header compilable?
6505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 $ac_includes_default
6514 #include <$ac_header>
6515 _ACEOF
6516 rm -f conftest.$ac_objext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518   (eval $ac_compile) 2>conftest.er1
6519   ac_status=$?
6520   grep -v '^ *+' conftest.er1 >conftest.err
6521   rm -f conftest.er1
6522   cat conftest.err >&5
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } &&
6525          { ac_try='test -z "$ac_c_werror_flag"
6526                          || test ! -s conftest.err'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; } &&
6532          { ac_try='test -s conftest.$ac_objext'
6533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534   (eval $ac_try) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; }; then
6538   ac_header_compiler=yes
6539 else
6540   echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 ac_header_compiler=no
6544 fi
6545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6547 echo "${ECHO_T}$ac_header_compiler" >&6
6548
6549 # Is the header present?
6550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 #include <$ac_header>
6559 _ACEOF
6560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } >/dev/null; then
6568   if test -s conftest.err; then
6569     ac_cpp_err=$ac_c_preproc_warn_flag
6570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6571   else
6572     ac_cpp_err=
6573   fi
6574 else
6575   ac_cpp_err=yes
6576 fi
6577 if test -z "$ac_cpp_err"; then
6578   ac_header_preproc=yes
6579 else
6580   echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583   ac_header_preproc=no
6584 fi
6585 rm -f conftest.err conftest.$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6587 echo "${ECHO_T}$ac_header_preproc" >&6
6588
6589 # So?  What about this header?
6590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6591   yes:no: )
6592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6596     ac_header_preproc=yes
6597     ;;
6598   no:yes:* )
6599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6611     (
6612       cat <<\_ASBOX
6613 ## ------------------------------ ##
6614 ## Report this to the ntp lists.  ##
6615 ## ------------------------------ ##
6616 _ASBOX
6617     ) |
6618       sed "s/^/$as_me: WARNING:     /" >&2
6619     ;;
6620 esac
6621 echo "$as_me:$LINENO: checking for $ac_header" >&5
6622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   eval "$as_ac_Header=\$ac_header_preproc"
6627 fi
6628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630
6631 fi
6632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6633   cat >>confdefs.h <<_ACEOF
6634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6635 _ACEOF
6636  break
6637 fi
6638
6639 done
6640
6641   echo "$as_me:$LINENO: checking for int8_t" >&5
6642 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
6643 if test "${ac_cv_type_int8_t+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652 $ac_includes_default
6653 int
6654 main ()
6655 {
6656 if ((int8_t *) 0)
6657   return 0;
6658 if (sizeof (int8_t))
6659   return 0;
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666   (eval $ac_compile) 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -z "$ac_c_werror_flag"
6674                          || test ! -s conftest.err'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; } &&
6680          { ac_try='test -s conftest.$ac_objext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   ac_cv_type_int8_t=yes
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_cv_type_int8_t=no
6692 fi
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
6696 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
6697 if test $ac_cv_type_int8_t = yes; then
6698
6699 cat >>confdefs.h <<_ACEOF
6700 #define HAVE_INT8_T 1
6701 _ACEOF
6702
6703
6704 fi
6705 echo "$as_me:$LINENO: checking for uint8_t" >&5
6706 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
6707 if test "${ac_cv_type_uint8_t+set}" = set; then
6708   echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710   cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 $ac_includes_default
6717 int
6718 main ()
6719 {
6720 if ((uint8_t *) 0)
6721   return 0;
6722 if (sizeof (uint8_t))
6723   return 0;
6724   ;
6725   return 0;
6726 }
6727 _ACEOF
6728 rm -f conftest.$ac_objext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730   (eval $ac_compile) 2>conftest.er1
6731   ac_status=$?
6732   grep -v '^ *+' conftest.er1 >conftest.err
6733   rm -f conftest.er1
6734   cat conftest.err >&5
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } &&
6737          { ac_try='test -z "$ac_c_werror_flag"
6738                          || test ! -s conftest.err'
6739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740   (eval $ac_try) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); }; } &&
6744          { ac_try='test -s conftest.$ac_objext'
6745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746   (eval $ac_try) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); }; }; then
6750   ac_cv_type_uint8_t=yes
6751 else
6752   echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755 ac_cv_type_uint8_t=no
6756 fi
6757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6760 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
6761 if test $ac_cv_type_uint8_t = yes; then
6762
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_UINT8_T 1
6765 _ACEOF
6766
6767
6768 fi
6769 echo "$as_me:$LINENO: checking for int16_t" >&5
6770 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6771 if test "${ac_cv_type_int16_t+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h.  */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h.  */
6780 $ac_includes_default
6781 int
6782 main ()
6783 {
6784 if ((int16_t *) 0)
6785   return 0;
6786 if (sizeof (int16_t))
6787   return 0;
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794   (eval $ac_compile) 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } &&
6801          { ac_try='test -z "$ac_c_werror_flag"
6802                          || test ! -s conftest.err'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; } &&
6808          { ac_try='test -s conftest.$ac_objext'
6809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810   (eval $ac_try) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); }; }; then
6814   ac_cv_type_int16_t=yes
6815 else
6816   echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ac_cv_type_int16_t=no
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6824 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6825 if test $ac_cv_type_int16_t = yes; then
6826
6827 cat >>confdefs.h <<_ACEOF
6828 #define HAVE_INT16_T 1
6829 _ACEOF
6830
6831
6832 fi
6833 echo "$as_me:$LINENO: checking for uint16_t" >&5
6834 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6835 if test "${ac_cv_type_uint16_t+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h.  */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h.  */
6844 $ac_includes_default
6845 int
6846 main ()
6847 {
6848 if ((uint16_t *) 0)
6849   return 0;
6850 if (sizeof (uint16_t))
6851   return 0;
6852   ;
6853   return 0;
6854 }
6855 _ACEOF
6856 rm -f conftest.$ac_objext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858   (eval $ac_compile) 2>conftest.er1
6859   ac_status=$?
6860   grep -v '^ *+' conftest.er1 >conftest.err
6861   rm -f conftest.er1
6862   cat conftest.err >&5
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -z "$ac_c_werror_flag"
6866                          || test ! -s conftest.err'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; } &&
6872          { ac_try='test -s conftest.$ac_objext'
6873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874   (eval $ac_try) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; }; then
6878   ac_cv_type_uint16_t=yes
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 ac_cv_type_uint16_t=no
6884 fi
6885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6886 fi
6887 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6888 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6889 if test $ac_cv_type_uint16_t = yes; then
6890
6891 cat >>confdefs.h <<_ACEOF
6892 #define HAVE_UINT16_T 1
6893 _ACEOF
6894
6895
6896 fi
6897 echo "$as_me:$LINENO: checking for int32_t" >&5
6898 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6899 if test "${ac_cv_type_int32_t+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908 $ac_includes_default
6909 int
6910 main ()
6911 {
6912 if ((int32_t *) 0)
6913   return 0;
6914 if (sizeof (int32_t))
6915   return 0;
6916   ;
6917   return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922   (eval $ac_compile) 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } &&
6929          { ac_try='test -z "$ac_c_werror_flag"
6930                          || test ! -s conftest.err'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; } &&
6936          { ac_try='test -s conftest.$ac_objext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942   ac_cv_type_int32_t=yes
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_cv_type_int32_t=no
6948 fi
6949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6952 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6953 if test $ac_cv_type_int32_t = yes; then
6954
6955 cat >>confdefs.h <<_ACEOF
6956 #define HAVE_INT32_T 1
6957 _ACEOF
6958
6959
6960 fi
6961 echo "$as_me:$LINENO: checking for uint32_t" >&5
6962 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6963 if test "${ac_cv_type_uint32_t+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h.  */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h.  */
6972 $ac_includes_default
6973 int
6974 main ()
6975 {
6976 if ((uint32_t *) 0)
6977   return 0;
6978 if (sizeof (uint32_t))
6979   return 0;
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986   (eval $ac_compile) 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } &&
6993          { ac_try='test -z "$ac_c_werror_flag"
6994                          || test ! -s conftest.err'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; } &&
7000          { ac_try='test -s conftest.$ac_objext'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; }; then
7006   ac_cv_type_uint32_t=yes
7007 else
7008   echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_cv_type_uint32_t=no
7012 fi
7013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014 fi
7015 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7016 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7017 if test $ac_cv_type_uint32_t = yes; then
7018
7019 cat >>confdefs.h <<_ACEOF
7020 #define HAVE_UINT32_T 1
7021 _ACEOF
7022
7023
7024 fi
7025 echo "$as_me:$LINENO: checking for intptr_t" >&5
7026 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
7027 if test "${ac_cv_type_intptr_t+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036 $ac_includes_default
7037 int
7038 main ()
7039 {
7040 if ((intptr_t *) 0)
7041   return 0;
7042 if (sizeof (intptr_t))
7043   return 0;
7044   ;
7045   return 0;
7046 }
7047 _ACEOF
7048 rm -f conftest.$ac_objext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050   (eval $ac_compile) 2>conftest.er1
7051   ac_status=$?
7052   grep -v '^ *+' conftest.er1 >conftest.err
7053   rm -f conftest.er1
7054   cat conftest.err >&5
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); } &&
7057          { ac_try='test -z "$ac_c_werror_flag"
7058                          || test ! -s conftest.err'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; } &&
7064          { ac_try='test -s conftest.$ac_objext'
7065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066   (eval $ac_try) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); }; }; then
7070   ac_cv_type_intptr_t=yes
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075 ac_cv_type_intptr_t=no
7076 fi
7077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7078 fi
7079 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
7080 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
7081 if test $ac_cv_type_intptr_t = yes; then
7082
7083 cat >>confdefs.h <<_ACEOF
7084 #define HAVE_INTPTR_T 1
7085 _ACEOF
7086
7087
7088 fi
7089 echo "$as_me:$LINENO: checking for uint_t" >&5
7090 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
7091 if test "${ac_cv_type_uint_t+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h.  */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h.  */
7100 $ac_includes_default
7101 int
7102 main ()
7103 {
7104 if ((uint_t *) 0)
7105   return 0;
7106 if (sizeof (uint_t))
7107   return 0;
7108   ;
7109   return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114   (eval $ac_compile) 2>conftest.er1
7115   ac_status=$?
7116   grep -v '^ *+' conftest.er1 >conftest.err
7117   rm -f conftest.er1
7118   cat conftest.err >&5
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } &&
7121          { ac_try='test -z "$ac_c_werror_flag"
7122                          || test ! -s conftest.err'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; } &&
7128          { ac_try='test -s conftest.$ac_objext'
7129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130   (eval $ac_try) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); }; }; then
7134   ac_cv_type_uint_t=yes
7135 else
7136   echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7138
7139 ac_cv_type_uint_t=no
7140 fi
7141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
7144 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
7145 if test $ac_cv_type_uint_t = yes; then
7146
7147 cat >>confdefs.h <<_ACEOF
7148 #define HAVE_UINT_T 1
7149 _ACEOF
7150
7151
7152 fi
7153
7154
7155   # ====================
7156   # uintptr type & sizes
7157   # ====================
7158   echo "$as_me:$LINENO: checking for uintptr_t" >&5
7159 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
7160 if test "${ac_cv_type_uintptr_t+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 $ac_includes_default
7170 int
7171 main ()
7172 {
7173 if ((uintptr_t *) 0)
7174   return 0;
7175 if (sizeof (uintptr_t))
7176   return 0;
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183   (eval $ac_compile) 2>conftest.er1
7184   ac_status=$?
7185   grep -v '^ *+' conftest.er1 >conftest.err
7186   rm -f conftest.er1
7187   cat conftest.err >&5
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); } &&
7190          { ac_try='test -z "$ac_c_werror_flag"
7191                          || test ! -s conftest.err'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; } &&
7197          { ac_try='test -s conftest.$ac_objext'
7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199   (eval $ac_try) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; }; then
7203   ac_cv_type_uintptr_t=yes
7204 else
7205   echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 ac_cv_type_uintptr_t=no
7209 fi
7210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7213 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
7214 if test $ac_cv_type_uintptr_t = yes; then
7215
7216 cat >>confdefs.h <<_ACEOF
7217 #define HAVE_UINTPTR_T 1
7218 _ACEOF
7219
7220
7221 else
7222
7223 cat >>confdefs.h <<\_ACEOF
7224 #define uintptr_t unsigned long
7225 _ACEOF
7226
7227 fi
7228
7229   echo "$as_me:$LINENO: checking for char*" >&5
7230 echo $ECHO_N "checking for char*... $ECHO_C" >&6
7231 if test "${ac_cv_type_charp+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 $ac_includes_default
7241 int
7242 main ()
7243 {
7244 if ((char* *) 0)
7245   return 0;
7246 if (sizeof (char*))
7247   return 0;
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -z "$ac_c_werror_flag"
7262                          || test ! -s conftest.err'
7263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264   (eval $ac_try) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; } &&
7268          { ac_try='test -s conftest.$ac_objext'
7269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270   (eval $ac_try) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); }; }; then
7274   ac_cv_type_charp=yes
7275 else
7276   echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279 ac_cv_type_charp=no
7280 fi
7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282 fi
7283 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
7284 echo "${ECHO_T}$ac_cv_type_charp" >&6
7285
7286 echo "$as_me:$LINENO: checking size of char*" >&5
7287 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
7288 if test "${ac_cv_sizeof_charp+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   if test "$ac_cv_type_charp" = yes; then
7292   # The cast to unsigned long works around a bug in the HP C Compiler
7293   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7294   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7295   # This bug is HP SR number 8606223364.
7296   if test "$cross_compiling" = yes; then
7297   # Depending upon the size, compute the lo and hi bounds.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 $ac_includes_default
7305 int
7306 main ()
7307 {
7308 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
7309 test_array [0] = 0
7310
7311   ;
7312   return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317   (eval $ac_compile) 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } &&
7324          { ac_try='test -z "$ac_c_werror_flag"
7325                          || test ! -s conftest.err'
7326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327   (eval $ac_try) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; } &&
7331          { ac_try='test -s conftest.$ac_objext'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; }; then
7337   ac_lo=0 ac_mid=0
7338   while :; do
7339     cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 $ac_includes_default
7346 int
7347 main ()
7348 {
7349 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
7350 test_array [0] = 0
7351
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358   (eval $ac_compile) 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } &&
7365          { ac_try='test -z "$ac_c_werror_flag"
7366                          || test ! -s conftest.err'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; } &&
7372          { ac_try='test -s conftest.$ac_objext'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; }; then
7378   ac_hi=$ac_mid; break
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383 ac_lo=`expr $ac_mid + 1`
7384                     if test $ac_lo -le $ac_mid; then
7385                       ac_lo= ac_hi=
7386                       break
7387                     fi
7388                     ac_mid=`expr 2 '*' $ac_mid + 1`
7389 fi
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391   done
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402 $ac_includes_default
7403 int
7404 main ()
7405 {
7406 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
7407 test_array [0] = 0
7408
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } &&
7422          { ac_try='test -z "$ac_c_werror_flag"
7423                          || test ! -s conftest.err'
7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; } &&
7429          { ac_try='test -s conftest.$ac_objext'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; }; then
7435   ac_hi=-1 ac_mid=-1
7436   while :; do
7437     cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443 $ac_includes_default
7444 int
7445 main ()
7446 {
7447 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
7448 test_array [0] = 0
7449
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456   (eval $ac_compile) 2>conftest.er1
7457   ac_status=$?
7458   grep -v '^ *+' conftest.er1 >conftest.err
7459   rm -f conftest.er1
7460   cat conftest.err >&5
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } &&
7463          { ac_try='test -z "$ac_c_werror_flag"
7464                          || test ! -s conftest.err'
7465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466   (eval $ac_try) 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); }; } &&
7470          { ac_try='test -s conftest.$ac_objext'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; }; then
7476   ac_lo=$ac_mid; break
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_hi=`expr '(' $ac_mid ')' - 1`
7482                        if test $ac_mid -le $ac_hi; then
7483                          ac_lo= ac_hi=
7484                          break
7485                        fi
7486                        ac_mid=`expr 2 '*' $ac_mid`
7487 fi
7488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7489   done
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_lo= ac_hi=
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 # Binary search between lo and hi bounds.
7500 while test "x$ac_lo" != "x$ac_hi"; do
7501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7502   cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h.  */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h.  */
7508 $ac_includes_default
7509 int
7510 main ()
7511 {
7512 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
7513 test_array [0] = 0
7514
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521   (eval $ac_compile) 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } &&
7528          { ac_try='test -z "$ac_c_werror_flag"
7529                          || test ! -s conftest.err'
7530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531   (eval $ac_try) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; } &&
7535          { ac_try='test -s conftest.$ac_objext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   ac_hi=$ac_mid
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_lo=`expr '(' $ac_mid ')' + 1`
7547 fi
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 done
7550 case $ac_lo in
7551 ?*) ac_cv_sizeof_charp=$ac_lo;;
7552 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
7553 See \`config.log' for more details." >&5
7554 echo "$as_me: error: cannot compute sizeof (char*), 77
7555 See \`config.log' for more details." >&2;}
7556    { (exit 1); exit 1; }; } ;;
7557 esac
7558 else
7559   if test "$cross_compiling" = yes; then
7560   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7561 See \`config.log' for more details." >&5
7562 echo "$as_me: error: cannot run test program while cross compiling
7563 See \`config.log' for more details." >&2;}
7564    { (exit 1); exit 1; }; }
7565 else
7566   cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h.  */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h.  */
7572 $ac_includes_default
7573 long longval () { return (long) (sizeof (char*)); }
7574 unsigned long ulongval () { return (long) (sizeof (char*)); }
7575 #include <stdio.h>
7576 #include <stdlib.h>
7577 int
7578 main ()
7579 {
7580
7581   FILE *f = fopen ("conftest.val", "w");
7582   if (! f)
7583     exit (1);
7584   if (((long) (sizeof (char*))) < 0)
7585     {
7586       long i = longval ();
7587       if (i != ((long) (sizeof (char*))))
7588         exit (1);
7589       fprintf (f, "%ld\n", i);
7590     }
7591   else
7592     {
7593       unsigned long i = ulongval ();
7594       if (i != ((long) (sizeof (char*))))
7595         exit (1);
7596       fprintf (f, "%lu\n", i);
7597     }
7598   exit (ferror (f) || fclose (f) != 0);
7599
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606   (eval $ac_link) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611   (eval $ac_try) 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); }; }; then
7615   ac_cv_sizeof_charp=`cat conftest.val`
7616 else
7617   echo "$as_me: program exited with status $ac_status" >&5
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621 ( exit $ac_status )
7622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
7623 See \`config.log' for more details." >&5
7624 echo "$as_me: error: cannot compute sizeof (char*), 77
7625 See \`config.log' for more details." >&2;}
7626    { (exit 1); exit 1; }; }
7627 fi
7628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7629 fi
7630 fi
7631 rm -f conftest.val
7632 else
7633   ac_cv_sizeof_charp=0
7634 fi
7635 fi
7636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
7637 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
7638 cat >>confdefs.h <<_ACEOF
7639 #define SIZEOF_CHARP $ac_cv_sizeof_charp
7640 _ACEOF
7641
7642
7643   echo "$as_me:$LINENO: checking for int" >&5
7644 echo $ECHO_N "checking for int... $ECHO_C" >&6
7645 if test "${ac_cv_type_int+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h.  */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h.  */
7654 $ac_includes_default
7655 int
7656 main ()
7657 {
7658 if ((int *) 0)
7659   return 0;
7660 if (sizeof (int))
7661   return 0;
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7668   (eval $ac_compile) 2>conftest.er1
7669   ac_status=$?
7670   grep -v '^ *+' conftest.er1 >conftest.err
7671   rm -f conftest.er1
7672   cat conftest.err >&5
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } &&
7675          { ac_try='test -z "$ac_c_werror_flag"
7676                          || test ! -s conftest.err'
7677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678   (eval $ac_try) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; } &&
7682          { ac_try='test -s conftest.$ac_objext'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; }; then
7688   ac_cv_type_int=yes
7689 else
7690   echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ac_cv_type_int=no
7694 fi
7695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7698 echo "${ECHO_T}$ac_cv_type_int" >&6
7699
7700 echo "$as_me:$LINENO: checking size of int" >&5
7701 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7702 if test "${ac_cv_sizeof_int+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   if test "$ac_cv_type_int" = yes; then
7706   # The cast to unsigned long works around a bug in the HP C Compiler
7707   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7708   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7709   # This bug is HP SR number 8606223364.
7710   if test "$cross_compiling" = yes; then
7711   # Depending upon the size, compute the lo and hi bounds.
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718 $ac_includes_default
7719 int
7720 main ()
7721 {
7722 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7723 test_array [0] = 0
7724
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731   (eval $ac_compile) 2>conftest.er1
7732   ac_status=$?
7733   grep -v '^ *+' conftest.er1 >conftest.err
7734   rm -f conftest.er1
7735   cat conftest.err >&5
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); } &&
7738          { ac_try='test -z "$ac_c_werror_flag"
7739                          || test ! -s conftest.err'
7740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741   (eval $ac_try) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); }; } &&
7745          { ac_try='test -s conftest.$ac_objext'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; }; then
7751   ac_lo=0 ac_mid=0
7752   while :; do
7753     cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759 $ac_includes_default
7760 int
7761 main ()
7762 {
7763 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7764 test_array [0] = 0
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772   (eval $ac_compile) 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -z "$ac_c_werror_flag"
7780                          || test ! -s conftest.err'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; } &&
7786          { ac_try='test -s conftest.$ac_objext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   ac_hi=$ac_mid; break
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ac_lo=`expr $ac_mid + 1`
7798                     if test $ac_lo -le $ac_mid; then
7799                       ac_lo= ac_hi=
7800                       break
7801                     fi
7802                     ac_mid=`expr 2 '*' $ac_mid + 1`
7803 fi
7804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7805   done
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816 $ac_includes_default
7817 int
7818 main ()
7819 {
7820 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7821 test_array [0] = 0
7822
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"
7837                          || test ! -s conftest.err'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest.$ac_objext'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   ac_hi=-1 ac_mid=-1
7850   while :; do
7851     cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h.  */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h.  */
7857 $ac_includes_default
7858 int
7859 main ()
7860 {
7861 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7862 test_array [0] = 0
7863
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870   (eval $ac_compile) 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } &&
7877          { ac_try='test -z "$ac_c_werror_flag"
7878                          || test ! -s conftest.err'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; } &&
7884          { ac_try='test -s conftest.$ac_objext'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; }; then
7890   ac_lo=$ac_mid; break
7891 else
7892   echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ac_hi=`expr '(' $ac_mid ')' - 1`
7896                        if test $ac_mid -le $ac_hi; then
7897                          ac_lo= ac_hi=
7898                          break
7899                        fi
7900                        ac_mid=`expr 2 '*' $ac_mid`
7901 fi
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7903   done
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 ac_lo= ac_hi=
7909 fi
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 fi
7912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 # Binary search between lo and hi bounds.
7914 while test "x$ac_lo" != "x$ac_hi"; do
7915   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7916   cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 $ac_includes_default
7923 int
7924 main ()
7925 {
7926 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7927 test_array [0] = 0
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935   (eval $ac_compile) 2>conftest.er1
7936   ac_status=$?
7937   grep -v '^ *+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
7939   cat conftest.err >&5
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } &&
7942          { ac_try='test -z "$ac_c_werror_flag"
7943                          || test ! -s conftest.err'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; } &&
7949          { ac_try='test -s conftest.$ac_objext'
7950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951   (eval $ac_try) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; }; then
7955   ac_hi=$ac_mid
7956 else
7957   echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 ac_lo=`expr '(' $ac_mid ')' + 1`
7961 fi
7962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963 done
7964 case $ac_lo in
7965 ?*) ac_cv_sizeof_int=$ac_lo;;
7966 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7967 See \`config.log' for more details." >&5
7968 echo "$as_me: error: cannot compute sizeof (int), 77
7969 See \`config.log' for more details." >&2;}
7970    { (exit 1); exit 1; }; } ;;
7971 esac
7972 else
7973   if test "$cross_compiling" = yes; then
7974   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7975 See \`config.log' for more details." >&5
7976 echo "$as_me: error: cannot run test program while cross compiling
7977 See \`config.log' for more details." >&2;}
7978    { (exit 1); exit 1; }; }
7979 else
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 $ac_includes_default
7987 long longval () { return (long) (sizeof (int)); }
7988 unsigned long ulongval () { return (long) (sizeof (int)); }
7989 #include <stdio.h>
7990 #include <stdlib.h>
7991 int
7992 main ()
7993 {
7994
7995   FILE *f = fopen ("conftest.val", "w");
7996   if (! f)
7997     exit (1);
7998   if (((long) (sizeof (int))) < 0)
7999     {
8000       long i = longval ();
8001       if (i != ((long) (sizeof (int))))
8002         exit (1);
8003       fprintf (f, "%ld\n", i);
8004     }
8005   else
8006     {
8007       unsigned long i = ulongval ();
8008       if (i != ((long) (sizeof (int))))
8009         exit (1);
8010       fprintf (f, "%lu\n", i);
8011     }
8012   exit (ferror (f) || fclose (f) != 0);
8013
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest$ac_exeext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020   (eval $ac_link) 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; }; then
8029   ac_cv_sizeof_int=`cat conftest.val`
8030 else
8031   echo "$as_me: program exited with status $ac_status" >&5
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035 ( exit $ac_status )
8036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8037 See \`config.log' for more details." >&5
8038 echo "$as_me: error: cannot compute sizeof (int), 77
8039 See \`config.log' for more details." >&2;}
8040    { (exit 1); exit 1; }; }
8041 fi
8042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 fi
8045 rm -f conftest.val
8046 else
8047   ac_cv_sizeof_int=0
8048 fi
8049 fi
8050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8051 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8052 cat >>confdefs.h <<_ACEOF
8053 #define SIZEOF_INT $ac_cv_sizeof_int
8054 _ACEOF
8055
8056
8057   echo "$as_me:$LINENO: checking for long" >&5
8058 echo $ECHO_N "checking for long... $ECHO_C" >&6
8059 if test "${ac_cv_type_long+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062   cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068 $ac_includes_default
8069 int
8070 main ()
8071 {
8072 if ((long *) 0)
8073   return 0;
8074 if (sizeof (long))
8075   return 0;
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082   (eval $ac_compile) 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } &&
8089          { ac_try='test -z "$ac_c_werror_flag"
8090                          || test ! -s conftest.err'
8091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092   (eval $ac_try) 2>&5
8093   ac_status=$?
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); }; } &&
8096          { ac_try='test -s conftest.$ac_objext'
8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098   (eval $ac_try) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; }; then
8102   ac_cv_type_long=yes
8103 else
8104   echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107 ac_cv_type_long=no
8108 fi
8109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8112 echo "${ECHO_T}$ac_cv_type_long" >&6
8113
8114 echo "$as_me:$LINENO: checking size of long" >&5
8115 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8116 if test "${ac_cv_sizeof_long+set}" = set; then
8117   echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119   if test "$ac_cv_type_long" = yes; then
8120   # The cast to unsigned long works around a bug in the HP C Compiler
8121   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8122   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8123   # This bug is HP SR number 8606223364.
8124   if test "$cross_compiling" = yes; then
8125   # Depending upon the size, compute the lo and hi bounds.
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132 $ac_includes_default
8133 int
8134 main ()
8135 {
8136 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8137 test_array [0] = 0
8138
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145   (eval $ac_compile) 2>conftest.er1
8146   ac_status=$?
8147   grep -v '^ *+' conftest.er1 >conftest.err
8148   rm -f conftest.er1
8149   cat conftest.err >&5
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } &&
8152          { ac_try='test -z "$ac_c_werror_flag"
8153                          || test ! -s conftest.err'
8154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155   (eval $ac_try) 2>&5
8156   ac_status=$?
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); }; } &&
8159          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8165   ac_lo=0 ac_mid=0
8166   while :; do
8167     cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 $ac_includes_default
8174 int
8175 main ()
8176 {
8177 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8178 test_array [0] = 0
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_c_werror_flag"
8194                          || test ! -s conftest.err'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest.$ac_objext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   ac_hi=$ac_mid; break
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_lo=`expr $ac_mid + 1`
8212                     if test $ac_lo -le $ac_mid; then
8213                       ac_lo= ac_hi=
8214                       break
8215                     fi
8216                     ac_mid=`expr 2 '*' $ac_mid + 1`
8217 fi
8218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8219   done
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h.  */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h.  */
8230 $ac_includes_default
8231 int
8232 main ()
8233 {
8234 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8235 test_array [0] = 0
8236
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243   (eval $ac_compile) 2>conftest.er1
8244   ac_status=$?
8245   grep -v '^ *+' conftest.er1 >conftest.err
8246   rm -f conftest.er1
8247   cat conftest.err >&5
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); } &&
8250          { ac_try='test -z "$ac_c_werror_flag"
8251                          || test ! -s conftest.err'
8252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253   (eval $ac_try) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; } &&
8257          { ac_try='test -s conftest.$ac_objext'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   ac_hi=-1 ac_mid=-1
8264   while :; do
8265     cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 $ac_includes_default
8272 int
8273 main ()
8274 {
8275 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8276 test_array [0] = 0
8277
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284   (eval $ac_compile) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"
8292                          || test ! -s conftest.err'
8293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_lo=$ac_mid; break
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 ac_hi=`expr '(' $ac_mid ')' - 1`
8310                        if test $ac_mid -le $ac_hi; then
8311                          ac_lo= ac_hi=
8312                          break
8313                        fi
8314                        ac_mid=`expr 2 '*' $ac_mid`
8315 fi
8316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317   done
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_lo= ac_hi=
8323 fi
8324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327 # Binary search between lo and hi bounds.
8328 while test "x$ac_lo" != "x$ac_hi"; do
8329   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8330   cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336 $ac_includes_default
8337 int
8338 main ()
8339 {
8340 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8341 test_array [0] = 0
8342
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349   (eval $ac_compile) 2>conftest.er1
8350   ac_status=$?
8351   grep -v '^ *+' conftest.er1 >conftest.err
8352   rm -f conftest.er1
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -z "$ac_c_werror_flag"
8357                          || test ! -s conftest.err'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; } &&
8363          { ac_try='test -s conftest.$ac_objext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_hi=$ac_mid
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 ac_lo=`expr '(' $ac_mid ')' + 1`
8375 fi
8376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8377 done
8378 case $ac_lo in
8379 ?*) ac_cv_sizeof_long=$ac_lo;;
8380 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8381 See \`config.log' for more details." >&5
8382 echo "$as_me: error: cannot compute sizeof (long), 77
8383 See \`config.log' for more details." >&2;}
8384    { (exit 1); exit 1; }; } ;;
8385 esac
8386 else
8387   if test "$cross_compiling" = yes; then
8388   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8389 See \`config.log' for more details." >&5
8390 echo "$as_me: error: cannot run test program while cross compiling
8391 See \`config.log' for more details." >&2;}
8392    { (exit 1); exit 1; }; }
8393 else
8394   cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h.  */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h.  */
8400 $ac_includes_default
8401 long longval () { return (long) (sizeof (long)); }
8402 unsigned long ulongval () { return (long) (sizeof (long)); }
8403 #include <stdio.h>
8404 #include <stdlib.h>
8405 int
8406 main ()
8407 {
8408
8409   FILE *f = fopen ("conftest.val", "w");
8410   if (! f)
8411     exit (1);
8412   if (((long) (sizeof (long))) < 0)
8413     {
8414       long i = longval ();
8415       if (i != ((long) (sizeof (long))))
8416         exit (1);
8417       fprintf (f, "%ld\n", i);
8418     }
8419   else
8420     {
8421       unsigned long i = ulongval ();
8422       if (i != ((long) (sizeof (long))))
8423         exit (1);
8424       fprintf (f, "%lu\n", i);
8425     }
8426   exit (ferror (f) || fclose (f) != 0);
8427
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest$ac_exeext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434   (eval $ac_link) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_sizeof_long=`cat conftest.val`
8444 else
8445   echo "$as_me: program exited with status $ac_status" >&5
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ( exit $ac_status )
8450 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8451 See \`config.log' for more details." >&5
8452 echo "$as_me: error: cannot compute sizeof (long), 77
8453 See \`config.log' for more details." >&2;}
8454    { (exit 1); exit 1; }; }
8455 fi
8456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8457 fi
8458 fi
8459 rm -f conftest.val
8460 else
8461   ac_cv_sizeof_long=0
8462 fi
8463 fi
8464 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8465 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8466 cat >>confdefs.h <<_ACEOF
8467 #define SIZEOF_LONG $ac_cv_sizeof_long
8468 _ACEOF
8469
8470
8471   echo "$as_me:$LINENO: checking for short" >&5
8472 echo $ECHO_N "checking for short... $ECHO_C" >&6
8473 if test "${ac_cv_type_short+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476   cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482 $ac_includes_default
8483 int
8484 main ()
8485 {
8486 if ((short *) 0)
8487   return 0;
8488 if (sizeof (short))
8489   return 0;
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"
8504                          || test ! -s conftest.err'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest.$ac_objext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_type_short=yes
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_cv_type_short=no
8522 fi
8523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8526 echo "${ECHO_T}$ac_cv_type_short" >&6
8527
8528 echo "$as_me:$LINENO: checking size of short" >&5
8529 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8530 if test "${ac_cv_sizeof_short+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   if test "$ac_cv_type_short" = yes; then
8534   # The cast to unsigned long works around a bug in the HP C Compiler
8535   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8536   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8537   # This bug is HP SR number 8606223364.
8538   if test "$cross_compiling" = yes; then
8539   # Depending upon the size, compute the lo and hi bounds.
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546 $ac_includes_default
8547 int
8548 main ()
8549 {
8550 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8551 test_array [0] = 0
8552
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559   (eval $ac_compile) 2>conftest.er1
8560   ac_status=$?
8561   grep -v '^ *+' conftest.er1 >conftest.err
8562   rm -f conftest.er1
8563   cat conftest.err >&5
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -z "$ac_c_werror_flag"
8567                          || test ! -s conftest.err'
8568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569   (eval $ac_try) 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; } &&
8573          { ac_try='test -s conftest.$ac_objext'
8574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); }; }; then
8579   ac_lo=0 ac_mid=0
8580   while :; do
8581     cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587 $ac_includes_default
8588 int
8589 main ()
8590 {
8591 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8592 test_array [0] = 0
8593
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600   (eval $ac_compile) 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } &&
8607          { ac_try='test -z "$ac_c_werror_flag"
8608                          || test ! -s conftest.err'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; } &&
8614          { ac_try='test -s conftest.$ac_objext'
8615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616   (eval $ac_try) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; }; then
8620   ac_hi=$ac_mid; break
8621 else
8622   echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625 ac_lo=`expr $ac_mid + 1`
8626                     if test $ac_lo -le $ac_mid; then
8627                       ac_lo= ac_hi=
8628                       break
8629                     fi
8630                     ac_mid=`expr 2 '*' $ac_mid + 1`
8631 fi
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633   done
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644 $ac_includes_default
8645 int
8646 main ()
8647 {
8648 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8649 test_array [0] = 0
8650
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657   (eval $ac_compile) 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -z "$ac_c_werror_flag"
8665                          || test ! -s conftest.err'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; } &&
8671          { ac_try='test -s conftest.$ac_objext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_hi=-1 ac_mid=-1
8678   while :; do
8679     cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685 $ac_includes_default
8686 int
8687 main ()
8688 {
8689 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8690 test_array [0] = 0
8691
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698   (eval $ac_compile) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"
8706                          || test ! -s conftest.err'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; } &&
8712          { ac_try='test -s conftest.$ac_objext'
8713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714   (eval $ac_try) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   ac_lo=$ac_mid; break
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_hi=`expr '(' $ac_mid ')' - 1`
8724                        if test $ac_mid -le $ac_hi; then
8725                          ac_lo= ac_hi=
8726                          break
8727                        fi
8728                        ac_mid=`expr 2 '*' $ac_mid`
8729 fi
8730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8731   done
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_lo= ac_hi=
8737 fi
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741 # Binary search between lo and hi bounds.
8742 while test "x$ac_lo" != "x$ac_hi"; do
8743   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8744   cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750 $ac_includes_default
8751 int
8752 main ()
8753 {
8754 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8755 test_array [0] = 0
8756
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763   (eval $ac_compile) 2>conftest.er1
8764   ac_status=$?
8765   grep -v '^ *+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } &&
8770          { ac_try='test -z "$ac_c_werror_flag"
8771                          || test ! -s conftest.err'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest.$ac_objext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_hi=$ac_mid
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ac_lo=`expr '(' $ac_mid ')' + 1`
8789 fi
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 done
8792 case $ac_lo in
8793 ?*) ac_cv_sizeof_short=$ac_lo;;
8794 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8795 See \`config.log' for more details." >&5
8796 echo "$as_me: error: cannot compute sizeof (short), 77
8797 See \`config.log' for more details." >&2;}
8798    { (exit 1); exit 1; }; } ;;
8799 esac
8800 else
8801   if test "$cross_compiling" = yes; then
8802   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8803 See \`config.log' for more details." >&5
8804 echo "$as_me: error: cannot run test program while cross compiling
8805 See \`config.log' for more details." >&2;}
8806    { (exit 1); exit 1; }; }
8807 else
8808   cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 $ac_includes_default
8815 long longval () { return (long) (sizeof (short)); }
8816 unsigned long ulongval () { return (long) (sizeof (short)); }
8817 #include <stdio.h>
8818 #include <stdlib.h>
8819 int
8820 main ()
8821 {
8822
8823   FILE *f = fopen ("conftest.val", "w");
8824   if (! f)
8825     exit (1);
8826   if (((long) (sizeof (short))) < 0)
8827     {
8828       long i = longval ();
8829       if (i != ((long) (sizeof (short))))
8830         exit (1);
8831       fprintf (f, "%ld\n", i);
8832     }
8833   else
8834     {
8835       unsigned long i = ulongval ();
8836       if (i != ((long) (sizeof (short))))
8837         exit (1);
8838       fprintf (f, "%lu\n", i);
8839     }
8840   exit (ferror (f) || fclose (f) != 0);
8841
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848   (eval $ac_link) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_cv_sizeof_short=`cat conftest.val`
8858 else
8859   echo "$as_me: program exited with status $ac_status" >&5
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863 ( exit $ac_status )
8864 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8865 See \`config.log' for more details." >&5
8866 echo "$as_me: error: cannot compute sizeof (short), 77
8867 See \`config.log' for more details." >&2;}
8868    { (exit 1); exit 1; }; }
8869 fi
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 fi
8873 rm -f conftest.val
8874 else
8875   ac_cv_sizeof_short=0
8876 fi
8877 fi
8878 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8879 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8880 cat >>confdefs.h <<_ACEOF
8881 #define SIZEOF_SHORT $ac_cv_sizeof_short
8882 _ACEOF
8883
8884
8885
8886   # ----------------------------------------------------------------------
8887   # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
8888   # ----------------------------------------------------------------------
8889
8890 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
8891 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
8892 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   ac_check_lib_save_LIBS=$LIBS
8896 LIBS="-lgen  $LIBS"
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903
8904 /* Override any gcc2 internal prototype to avoid an error.  */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 /* We use char because int might match the return type of a gcc2
8909    builtin and then its argument prototype would still apply.  */
8910 char pathfind ();
8911 int
8912 main ()
8913 {
8914 pathfind ();
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921   (eval $ac_link) 2>conftest.er1
8922   ac_status=$?
8923   grep -v '^ *+' conftest.er1 >conftest.err
8924   rm -f conftest.er1
8925   cat conftest.err >&5
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -z "$ac_c_werror_flag"
8929                          || test ! -s conftest.err'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; } &&
8935          { ac_try='test -s conftest$ac_exeext'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; }; then
8941   ac_cv_lib_gen_pathfind=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ac_cv_lib_gen_pathfind=no
8947 fi
8948 rm -f conftest.err conftest.$ac_objext \
8949       conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
8953 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
8954 if test $ac_cv_lib_gen_pathfind = yes; then
8955   cat >>confdefs.h <<_ACEOF
8956 #define HAVE_LIBGEN 1
8957 _ACEOF
8958
8959   LIBS="-lgen $LIBS"
8960
8961 fi
8962
8963
8964 for ac_func in vprintf
8965 do
8966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8967 echo "$as_me:$LINENO: checking for $ac_func" >&5
8968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8969 if eval "test \"\${$as_ac_var+set}\" = set"; then
8970   echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972   cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8980 #define $ac_func innocuous_$ac_func
8981
8982 /* System header to define __stub macros and hopefully few prototypes,
8983     which can conflict with char $ac_func (); below.
8984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8985     <limits.h> exists even on freestanding compilers.  */
8986
8987 #ifdef __STDC__
8988 # include <limits.h>
8989 #else
8990 # include <assert.h>
8991 #endif
8992
8993 #undef $ac_func
8994
8995 /* Override any gcc2 internal prototype to avoid an error.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 {
8999 #endif
9000 /* We use char because int might match the return type of a gcc2
9001    builtin and then its argument prototype would still apply.  */
9002 char $ac_func ();
9003 /* The GNU C library defines this for functions which it implements
9004     to always fail with ENOSYS.  Some functions are actually named
9005     something starting with __ and the normal name is an alias.  */
9006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9007 choke me
9008 #else
9009 char (*f) () = $ac_func;
9010 #endif
9011 #ifdef __cplusplus
9012 }
9013 #endif
9014
9015 int
9016 main ()
9017 {
9018 return f != $ac_func;
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 rm -f conftest.$ac_objext conftest$ac_exeext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025   (eval $ac_link) 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } &&
9032          { ac_try='test -z "$ac_c_werror_flag"
9033                          || test ! -s conftest.err'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   eval "$as_ac_var=yes"
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 eval "$as_ac_var=no"
9051 fi
9052 rm -f conftest.err conftest.$ac_objext \
9053       conftest$ac_exeext conftest.$ac_ext
9054 fi
9055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9057 if test `eval echo '${'$as_ac_var'}'` = yes; then
9058   cat >>confdefs.h <<_ACEOF
9059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9060 _ACEOF
9061
9062 echo "$as_me:$LINENO: checking for _doprnt" >&5
9063 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9064 if test "${ac_cv_func__doprnt+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9075 #define _doprnt innocuous__doprnt
9076
9077 /* System header to define __stub macros and hopefully few prototypes,
9078     which can conflict with char _doprnt (); below.
9079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9080     <limits.h> exists even on freestanding compilers.  */
9081
9082 #ifdef __STDC__
9083 # include <limits.h>
9084 #else
9085 # include <assert.h>
9086 #endif
9087
9088 #undef _doprnt
9089
9090 /* Override any gcc2 internal prototype to avoid an error.  */
9091 #ifdef __cplusplus
9092 extern "C"
9093 {
9094 #endif
9095 /* We use char because int might match the return type of a gcc2
9096    builtin and then its argument prototype would still apply.  */
9097 char _doprnt ();
9098 /* The GNU C library defines this for functions which it implements
9099     to always fail with ENOSYS.  Some functions are actually named
9100     something starting with __ and the normal name is an alias.  */
9101 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9102 choke me
9103 #else
9104 char (*f) () = _doprnt;
9105 #endif
9106 #ifdef __cplusplus
9107 }
9108 #endif
9109
9110 int
9111 main ()
9112 {
9113 return f != _doprnt;
9114   ;
9115   return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120   (eval $ac_link) 2>conftest.er1
9121   ac_status=$?
9122   grep -v '^ *+' conftest.er1 >conftest.err
9123   rm -f conftest.er1
9124   cat conftest.err >&5
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -z "$ac_c_werror_flag"
9128                          || test ! -s conftest.err'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; } &&
9134          { ac_try='test -s conftest$ac_exeext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_cv_func__doprnt=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_cv_func__doprnt=no
9146 fi
9147 rm -f conftest.err conftest.$ac_objext \
9148       conftest$ac_exeext conftest.$ac_ext
9149 fi
9150 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9151 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9152 if test $ac_cv_func__doprnt = yes; then
9153
9154 cat >>confdefs.h <<\_ACEOF
9155 #define HAVE_DOPRNT 1
9156 _ACEOF
9157
9158 fi
9159
9160 fi
9161 done
9162
9163
9164
9165
9166
9167
9168
9169
9170 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
9171 do
9172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9173 echo "$as_me:$LINENO: checking for $ac_func" >&5
9174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_var+set}\" = set"; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h.  */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h.  */
9184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9186 #define $ac_func innocuous_$ac_func
9187
9188 /* System header to define __stub macros and hopefully few prototypes,
9189     which can conflict with char $ac_func (); below.
9190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9191     <limits.h> exists even on freestanding compilers.  */
9192
9193 #ifdef __STDC__
9194 # include <limits.h>
9195 #else
9196 # include <assert.h>
9197 #endif
9198
9199 #undef $ac_func
9200
9201 /* Override any gcc2 internal prototype to avoid an error.  */
9202 #ifdef __cplusplus
9203 extern "C"
9204 {
9205 #endif
9206 /* We use char because int might match the return type of a gcc2
9207    builtin and then its argument prototype would still apply.  */
9208 char $ac_func ();
9209 /* The GNU C library defines this for functions which it implements
9210     to always fail with ENOSYS.  Some functions are actually named
9211     something starting with __ and the normal name is an alias.  */
9212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9213 choke me
9214 #else
9215 char (*f) () = $ac_func;
9216 #endif
9217 #ifdef __cplusplus
9218 }
9219 #endif
9220
9221 int
9222 main ()
9223 {
9224 return f != $ac_func;
9225   ;
9226   return 0;
9227 }
9228 _ACEOF
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9231   (eval $ac_link) 2>conftest.er1
9232   ac_status=$?
9233   grep -v '^ *+' conftest.er1 >conftest.err
9234   rm -f conftest.er1
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } &&
9238          { ac_try='test -z "$ac_c_werror_flag"
9239                          || test ! -s conftest.err'
9240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241   (eval $ac_try) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); }; } &&
9245          { ac_try='test -s conftest$ac_exeext'
9246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247   (eval $ac_try) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }; }; then
9251   eval "$as_ac_var=yes"
9252 else
9253   echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 eval "$as_ac_var=no"
9257 fi
9258 rm -f conftest.err conftest.$ac_objext \
9259       conftest$ac_exeext conftest.$ac_ext
9260 fi
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9263 if test `eval echo '${'$as_ac_var'}'` = yes; then
9264   cat >>confdefs.h <<_ACEOF
9265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9266 _ACEOF
9267
9268 fi
9269 done
9270
9271   INVOKE_LIBOPTS_MACROS_FIRST_done=yes
9272 fi
9273   # Check to see if a reg expr header is specified.
9274
9275
9276 # Check whether --with-regex-header or --without-regex-header was given.
9277 if test "${with_regex_header+set}" = set; then
9278   withval="$with_regex_header"
9279   libopts_cv_with_regex_header=${with_regex_header}
9280 else
9281   echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
9282 echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
9283 if test "${libopts_cv_with_regex_header+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   libopts_cv_with_regex_header=no
9287 fi
9288 echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
9289 echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
9290
9291 fi;  # end of AC_ARG_WITH
9292
9293   if test "X${libopts_cv_with_regex_header}" != Xno
9294   then
9295     cat >>confdefs.h <<_ACEOF
9296 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
9297 _ACEOF
9298
9299   else
9300
9301 cat >>confdefs.h <<\_ACEOF
9302 #define REGEX_HEADER <regex.h>
9303 _ACEOF
9304
9305   fi
9306
9307
9308
9309   # Check to see if a working libregex can be found.
9310
9311
9312 # Check whether --with-libregex or --without-libregex was given.
9313 if test "${with_libregex+set}" = set; then
9314   withval="$with_libregex"
9315   libopts_cv_with_libregex_root=${with_libregex}
9316 else
9317   echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
9318 echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
9319 if test "${libopts_cv_with_libregex_root+set}" = set; then
9320   echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322   libopts_cv_with_libregex_root=no
9323 fi
9324 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
9325 echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
9326
9327 fi;  # end of AC_ARG_WITH libregex
9328
9329   if test "${with_libguile+set}" = set && \
9330      test "${withval}" = no
9331   then ## disabled by request
9332     libopts_cv_with_libregex_root=no
9333     libopts_cv_with_libregex_cflags=no
9334     libopts_cv_with_libregex_libs=no
9335   else
9336
9337
9338 # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
9339 if test "${with_libregex_cflags+set}" = set; then
9340   withval="$with_libregex_cflags"
9341   libopts_cv_with_libregex_cflags=${with_regex_cflags}
9342 else
9343   echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
9344 echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
9345 if test "${libopts_cv_with_libregex_cflags+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   libopts_cv_with_libregex_cflags=no
9349 fi
9350 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
9351 echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
9352
9353 fi;  # end of AC_ARG_WITH libregex-cflags
9354
9355
9356 # Check whether --with-libregex-libs or --without-libregex-libs was given.
9357 if test "${with_libregex_libs+set}" = set; then
9358   withval="$with_libregex_libs"
9359   libopts_cv_with_libregex_libs=${with_regex_libs}
9360 else
9361   echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
9362 echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
9363 if test "${libopts_cv_with_libregex_libs+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   libopts_cv_with_libregex_libs=no
9367 fi
9368 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
9369 echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
9370
9371 fi;  # end of AC_ARG_WITH libregex-libs
9372
9373   case "X${libopts_cv_with_libregex_cflags}" in
9374   Xyes|Xno|X )
9375     case "X${libopts_cv_with_libregex_root}" in
9376     Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
9377     * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
9378     esac
9379   esac
9380   case "X${libopts_cv_with_libregex_libs}" in
9381   Xyes|Xno|X )
9382     case "X${libopts_cv_with_libregex_root}" in
9383     Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
9384     * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
9385     esac
9386   esac
9387   libopts_save_CPPFLAGS="${CPPFLAGS}"
9388   libopts_save_LIBS="${LIBS}"
9389   fi ## disabled by request
9390
9391   case "X${libopts_cv_with_libregex_cflags}" in
9392   Xyes|Xno|X )
9393     libopts_cv_with_libregex_cflags="" ;;
9394   * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
9395   esac
9396   case "X${libopts_cv_with_libregex_libs}" in
9397   Xyes|Xno|X )
9398     libopts_cv_with_libregex_libs="" ;;
9399   * )
9400     LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
9401   esac
9402   LIBREGEX_CFLAGS=""
9403   LIBREGEX_LIBS=""
9404   echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
9405 echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
9406   if test "${libopts_cv_with_libregex+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409
9410   if test "$cross_compiling" = yes; then
9411   libopts_cv_with_libregex=no
9412 else
9413   cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419 #include <stdio.h>
9420 #include <stdlib.h>
9421 #include <sys/types.h>
9422 #include REGEX_HEADER
9423 static regex_t re;
9424 void comp_re( char const* pzPat ) {
9425   int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
9426   if (res == 0) return;
9427   exit( res ); }
9428 int main() {
9429   regmatch_t m[2];
9430   comp_re( "^.*\$"   );
9431   comp_re( "()|no.*" );
9432   comp_re( "."       );
9433   if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
9434   if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
9435     fputs( "error: regex -->.<-- did not match\n", stderr );
9436     return 1;
9437   }
9438   return 0; }
9439 _ACEOF
9440 rm -f conftest$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442   (eval $ac_link) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; }; then
9451   libopts_cv_with_libregex=yes
9452 else
9453   echo "$as_me: program exited with status $ac_status" >&5
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 ( exit $ac_status )
9458 libopts_cv_with_libregex=no
9459 fi
9460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9461 fi # end of AC_TRY_RUN
9462
9463 fi
9464  # end of AC_CACHE_VAL for libopts_cv_with_libregex
9465   echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
9466 echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
9467
9468   if test "X${libopts_cv_with_libregex}" != Xno
9469   then
9470
9471 cat >>confdefs.h <<\_ACEOF
9472 #define WITH_LIBREGEX 1
9473 _ACEOF
9474
9475   else
9476     CPPFLAGS="${libopts_save_CPPFLAGS}"
9477     LIBS="${libopts_save_LIBS}"
9478   fi
9479
9480
9481
9482   # Check to see if pathfind(3) works.
9483
9484   echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
9485 echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
9486   if test "${libopts_cv_run_pathfind+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489
9490   if test "$cross_compiling" = yes; then
9491   libopts_cv_run_pathfind=no
9492
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500 #include <string.h>
9501 #include <stdlib.h>
9502 int main (int argc, char** argv) {
9503    char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
9504    return (pz == 0) ? 1 : 0;
9505 }
9506 _ACEOF
9507 rm -f conftest$ac_exeext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9509   (eval $ac_link) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   libopts_cv_run_pathfind=yes
9519 else
9520   echo "$as_me: program exited with status $ac_status" >&5
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524 ( exit $ac_status )
9525 libopts_cv_run_pathfind=no
9526 fi
9527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9528 fi # end of TRY_RUN
9529
9530 fi
9531  # end of AC_CACHE_VAL for libopts_cv_run_pathfind
9532   echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
9533 echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
9534
9535   if test "X${libopts_cv_run_pathfind}" != Xno
9536   then
9537
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_PATHFIND 1
9540 _ACEOF
9541
9542   fi
9543
9544
9545
9546   # Check to see if /dev/zero is readable device.
9547
9548   echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
9549 echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
9550   if test "${libopts_cv_test_dev_zero+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553
9554     libopts_cv_test_dev_zero=`exec 2> /dev/null
9555 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
9556 test -z "${dzero}" && exit 1
9557 echo ${dzero}`
9558     if test $? -ne 0
9559     then libopts_cv_test_dev_zero=no
9560     elif test -z "$libopts_cv_test_dev_zero"
9561     then libopts_cv_test_dev_zero=no
9562     fi
9563
9564 fi
9565  # end of CACHE_VAL of libopts_cv_test_dev_zero
9566   echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
9567 echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
9568
9569   if test "X${libopts_cv_test_dev_zero}" != Xno
9570   then
9571
9572 cat >>confdefs.h <<\_ACEOF
9573 #define HAVE_DEV_ZERO 1
9574 _ACEOF
9575
9576   fi
9577
9578
9579
9580   # Check to see if we have a functional realpath(3C).
9581
9582   echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
9583 echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
9584   if test "${libopts_cv_run_realpath+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587
9588   if test "$cross_compiling" = yes; then
9589   libopts_cv_run_realpath=no
9590
9591 else
9592   cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 #include <limits.h>
9599 #include <stdlib.h>
9600 int main (int argc, char** argv) {
9601 #ifndef PATH_MAX
9602 choke me!!
9603 #else
9604    char zPath[PATH_MAX+1];
9605 #endif
9606    char *pz = realpath(argv[0], zPath);
9607    return (pz == zPath) ? 0 : 1;
9608 }
9609 _ACEOF
9610 rm -f conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612   (eval $ac_link) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617   (eval $ac_try) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; }; then
9621   libopts_cv_run_realpath=yes
9622 else
9623   echo "$as_me: program exited with status $ac_status" >&5
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9626
9627 ( exit $ac_status )
9628 libopts_cv_run_realpath=no
9629 fi
9630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9631 fi # end of TRY_RUN
9632
9633 fi
9634  # end of AC_CACHE_VAL for libopts_cv_run_realpath
9635   echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
9636 echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
9637
9638   if test "X${libopts_cv_run_realpath}" != Xno
9639   then
9640
9641 cat >>confdefs.h <<\_ACEOF
9642 #define HAVE_REALPATH 1
9643 _ACEOF
9644
9645   fi
9646
9647
9648
9649   # Check to see if strftime() works.
9650
9651   echo "$as_me:$LINENO: checking whether strftime() works" >&5
9652 echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
9653   if test "${libopts_cv_run_strftime+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656
9657   if test "$cross_compiling" = yes; then
9658   libopts_cv_run_strftime=no
9659
9660 else
9661   cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667 #include <time.h>
9668 #include <string.h>
9669 char t_buf[ 64 ];
9670 int main() {
9671   static char const z[] = "Thursday Aug 28 240";
9672   struct tm tm;
9673   tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
9674   tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
9675   tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
9676   tm.tm_mday  = 28;  /* day of the month [1, 31] */
9677   tm.tm_mon   =  7;  /* months since January [0, 11] */
9678   tm.tm_year  = 86;  /* years since 1900 */
9679   tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
9680   tm.tm_yday  = 239; /* days since January 1 [0, 365] */
9681   tm.tm_isdst =  1;  /* flag for daylight savings time */
9682   strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
9683   return (strcmp( t_buf, z ) != 0); }
9684 _ACEOF
9685 rm -f conftest$ac_exeext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687   (eval $ac_link) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   libopts_cv_run_strftime=yes
9697 else
9698   echo "$as_me: program exited with status $ac_status" >&5
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 ( exit $ac_status )
9703 libopts_cv_run_strftime=no
9704 fi
9705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9706 fi # end of TRY_RUN
9707
9708 fi
9709  # end of AC_CACHE_VAL for libopts_cv_run_strftime
9710   echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
9711 echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
9712
9713   if test "X${libopts_cv_run_strftime}" != Xno
9714   then
9715
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_STRFTIME 1
9718 _ACEOF
9719
9720   fi
9721
9722
9723
9724   # Check to see if fopen accepts "b" mode.
9725
9726   echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
9727 echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
9728   if test "${libopts_cv_run_fopen_binary+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731
9732   if test "$cross_compiling" = yes; then
9733   libopts_cv_run_fopen_binary=no
9734
9735 else
9736   cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 #include <stdio.h>
9743 int main (int argc, char** argv) {
9744 FILE* fp = fopen("conftest.$ac_ext", "rb");
9745 return (fp == NULL) ? 1 : fclose(fp); }
9746 _ACEOF
9747 rm -f conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749   (eval $ac_link) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   libopts_cv_run_fopen_binary=yes
9759 else
9760   echo "$as_me: program exited with status $ac_status" >&5
9761 echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764 ( exit $ac_status )
9765 libopts_cv_run_fopen_binary=no
9766 fi
9767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9768 fi # end of TRY_RUN
9769
9770 fi
9771  # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
9772   echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
9773 echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
9774
9775   if test "X${libopts_cv_run_fopen_binary}" != Xno
9776   then
9777
9778 cat >>confdefs.h <<\_ACEOF
9779 #define FOPEN_BINARY_FLAG "b"
9780 _ACEOF
9781
9782   else
9783
9784 cat >>confdefs.h <<\_ACEOF
9785 #define FOPEN_BINARY_FLAG ""
9786 _ACEOF
9787
9788   fi
9789
9790
9791
9792   # Check to see if fopen accepts "t" mode.
9793
9794   echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
9795 echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
9796   if test "${libopts_cv_run_fopen_text+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799
9800   if test "$cross_compiling" = yes; then
9801   libopts_cv_run_fopen_text=no
9802
9803 else
9804   cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810 #include <stdio.h>
9811 int main (int argc, char** argv) {
9812 FILE* fp = fopen("conftest.$ac_ext", "rt");
9813 return (fp == NULL) ? 1 : fclose(fp); }
9814 _ACEOF
9815 rm -f conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817   (eval $ac_link) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; }; then
9826   libopts_cv_run_fopen_text=yes
9827 else
9828   echo "$as_me: program exited with status $ac_status" >&5
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832 ( exit $ac_status )
9833 libopts_cv_run_fopen_text=no
9834 fi
9835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9836 fi # end of TRY_RUN
9837
9838 fi
9839  # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
9840   echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
9841 echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
9842
9843   if test "X${libopts_cv_run_fopen_text}" != Xno
9844   then
9845
9846 cat >>confdefs.h <<\_ACEOF
9847 #define FOPEN_TEXT_FLAG "t"
9848 _ACEOF
9849
9850   else
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define FOPEN_TEXT_FLAG ""
9854 _ACEOF
9855
9856   fi
9857
9858
9859
9860   # Check to see if not wanting optional option args.
9861
9862   # Check whether --enable-optional-args or --disable-optional-args was given.
9863 if test "${enable_optional_args+set}" = set; then
9864   enableval="$enable_optional_args"
9865   libopts_cv_enable_optional_args=${enable_optional_args}
9866 else
9867   echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
9868 echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6
9869 if test "${libopts_cv_enable_optional_args+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   libopts_cv_enable_optional_args=yes
9873 fi
9874 echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
9875 echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6
9876
9877 fi;  # end of AC_ARG_ENABLE
9878
9879   if test "X${libopts_cv_enable_optional_args}" = Xno
9880   then
9881
9882 cat >>confdefs.h <<\_ACEOF
9883 #define NO_OPTIONAL_OPT_ARGS 1
9884 _ACEOF
9885
9886   fi
9887
9888
9889
9890
9891   else
9892
9893 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
9894   # =================
9895   # AC_HEADER_STDC
9896   # =================
9897   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9898 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9899 if test "${ac_cv_header_stdc+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908 #include <stdlib.h>
9909 #include <stdarg.h>
9910 #include <string.h>
9911 #include <float.h>
9912
9913 int
9914 main ()
9915 {
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923   (eval $ac_compile) 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } &&
9930          { ac_try='test -z "$ac_c_werror_flag"
9931                          || test ! -s conftest.err'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest.$ac_objext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_header_stdc=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_header_stdc=no
9949 fi
9950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9951
9952 if test $ac_cv_header_stdc = yes; then
9953   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9954   cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960 #include <string.h>
9961
9962 _ACEOF
9963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9964   $EGREP "memchr" >/dev/null 2>&1; then
9965   :
9966 else
9967   ac_cv_header_stdc=no
9968 fi
9969 rm -f conftest*
9970
9971 fi
9972
9973 if test $ac_cv_header_stdc = yes; then
9974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9975   cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981 #include <stdlib.h>
9982
9983 _ACEOF
9984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9985   $EGREP "free" >/dev/null 2>&1; then
9986   :
9987 else
9988   ac_cv_header_stdc=no
9989 fi
9990 rm -f conftest*
9991
9992 fi
9993
9994 if test $ac_cv_header_stdc = yes; then
9995   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9996   if test "$cross_compiling" = yes; then
9997   :
9998 else
9999   cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h.  */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h.  */
10005 #include <ctype.h>
10006 #if ((' ' & 0x0FF) == 0x020)
10007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10009 #else
10010 # define ISLOWER(c) \
10011                    (('a' <= (c) && (c) <= 'i') \
10012                      || ('j' <= (c) && (c) <= 'r') \
10013                      || ('s' <= (c) && (c) <= 'z'))
10014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10015 #endif
10016
10017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10018 int
10019 main ()
10020 {
10021   int i;
10022   for (i = 0; i < 256; i++)
10023     if (XOR (islower (i), ISLOWER (i))
10024         || toupper (i) != TOUPPER (i))
10025       exit(2);
10026   exit (0);
10027 }
10028 _ACEOF
10029 rm -f conftest$ac_exeext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031   (eval $ac_link) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   :
10041 else
10042   echo "$as_me: program exited with status $ac_status" >&5
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 ( exit $ac_status )
10047 ac_cv_header_stdc=no
10048 fi
10049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10050 fi
10051 fi
10052 fi
10053 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10054 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10055 if test $ac_cv_header_stdc = yes; then
10056
10057 cat >>confdefs.h <<\_ACEOF
10058 #define STDC_HEADERS 1
10059 _ACEOF
10060
10061 fi
10062
10063   # =================
10064   # AC_HEADER_DIRENT
10065   # =================
10066
10067
10068
10069
10070
10071 ac_header_dirent=no
10072 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10073   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10075 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 #include <sys/types.h>
10086 #include <$ac_hdr>
10087
10088 int
10089 main ()
10090 {
10091 if ((DIR *) 0)
10092 return 0;
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -z "$ac_c_werror_flag"
10107                          || test ! -s conftest.err'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; } &&
10113          { ac_try='test -s conftest.$ac_objext'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   eval "$as_ac_Header=yes"
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 eval "$as_ac_Header=no"
10125 fi
10126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10127 fi
10128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10131   cat >>confdefs.h <<_ACEOF
10132 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10133 _ACEOF
10134
10135 ac_header_dirent=$ac_hdr; break
10136 fi
10137
10138 done
10139 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10140 if test $ac_header_dirent = dirent.h; then
10141   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10142 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10143 if test "${ac_cv_search_opendir+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_func_search_save_LIBS=$LIBS
10147 ac_cv_search_opendir=no
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any gcc2 internal prototype to avoid an error.  */
10156 #ifdef __cplusplus
10157 extern "C"
10158 #endif
10159 /* We use char because int might match the return type of a gcc2
10160    builtin and then its argument prototype would still apply.  */
10161 char opendir ();
10162 int
10163 main ()
10164 {
10165 opendir ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"
10180                          || test ! -s conftest.err'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; } &&
10186          { ac_try='test -s conftest$ac_exeext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_cv_search_opendir="none required"
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 fi
10198 rm -f conftest.err conftest.$ac_objext \
10199       conftest$ac_exeext conftest.$ac_ext
10200 if test "$ac_cv_search_opendir" = no; then
10201   for ac_lib in dir; do
10202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10203     cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209
10210 /* Override any gcc2 internal prototype to avoid an error.  */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 /* We use char because int might match the return type of a gcc2
10215    builtin and then its argument prototype would still apply.  */
10216 char opendir ();
10217 int
10218 main ()
10219 {
10220 opendir ();
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227   (eval $ac_link) 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -z "$ac_c_werror_flag"
10235                          || test ! -s conftest.err'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest$ac_exeext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   ac_cv_search_opendir="-l$ac_lib"
10248 break
10249 else
10250   echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253 fi
10254 rm -f conftest.err conftest.$ac_objext \
10255       conftest$ac_exeext conftest.$ac_ext
10256   done
10257 fi
10258 LIBS=$ac_func_search_save_LIBS
10259 fi
10260 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10261 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10262 if test "$ac_cv_search_opendir" != no; then
10263   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10264
10265 fi
10266
10267 else
10268   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10270 if test "${ac_cv_search_opendir+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   ac_func_search_save_LIBS=$LIBS
10274 ac_cv_search_opendir=no
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281
10282 /* Override any gcc2 internal prototype to avoid an error.  */
10283 #ifdef __cplusplus
10284 extern "C"
10285 #endif
10286 /* We use char because int might match the return type of a gcc2
10287    builtin and then its argument prototype would still apply.  */
10288 char opendir ();
10289 int
10290 main ()
10291 {
10292 opendir ();
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299   (eval $ac_link) 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -z "$ac_c_werror_flag"
10307                          || test ! -s conftest.err'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; } &&
10313          { ac_try='test -s conftest$ac_exeext'
10314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315   (eval $ac_try) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319   ac_cv_search_opendir="none required"
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 fi
10325 rm -f conftest.err conftest.$ac_objext \
10326       conftest$ac_exeext conftest.$ac_ext
10327 if test "$ac_cv_search_opendir" = no; then
10328   for ac_lib in x; do
10329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10330     cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h.  */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h.  */
10336
10337 /* Override any gcc2 internal prototype to avoid an error.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 /* We use char because int might match the return type of a gcc2
10342    builtin and then its argument prototype would still apply.  */
10343 char opendir ();
10344 int
10345 main ()
10346 {
10347 opendir ();
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext conftest$ac_exeext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354   (eval $ac_link) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -z "$ac_c_werror_flag"
10362                          || test ! -s conftest.err'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; } &&
10368          { ac_try='test -s conftest$ac_exeext'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   ac_cv_search_opendir="-l$ac_lib"
10375 break
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 fi
10381 rm -f conftest.err conftest.$ac_objext \
10382       conftest$ac_exeext conftest.$ac_ext
10383   done
10384 fi
10385 LIBS=$ac_func_search_save_LIBS
10386 fi
10387 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10388 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10389 if test "$ac_cv_search_opendir" != no; then
10390   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10391
10392 fi
10393
10394 fi
10395
10396
10397   # =================
10398   # AC_CHECK_HEADERS
10399   # =================
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
10421     setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
10422     sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
10423     utime.h sysexits.h
10424 do
10425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10427   echo "$as_me:$LINENO: checking for $ac_header" >&5
10428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10430   echo $ECHO_N "(cached) $ECHO_C" >&6
10431 fi
10432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10434 else
10435   # Is the header compilable?
10436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444 $ac_includes_default
10445 #include <$ac_header>
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -z "$ac_c_werror_flag"
10457                          || test ! -s conftest.err'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; } &&
10463          { ac_try='test -s conftest.$ac_objext'
10464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465   (eval $ac_try) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; }; then
10469   ac_header_compiler=yes
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_header_compiler=no
10475 fi
10476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10478 echo "${ECHO_T}$ac_header_compiler" >&6
10479
10480 # Is the header present?
10481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h.  */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h.  */
10489 #include <$ac_header>
10490 _ACEOF
10491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } >/dev/null; then
10499   if test -s conftest.err; then
10500     ac_cpp_err=$ac_c_preproc_warn_flag
10501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10502   else
10503     ac_cpp_err=
10504   fi
10505 else
10506   ac_cpp_err=yes
10507 fi
10508 if test -z "$ac_cpp_err"; then
10509   ac_header_preproc=yes
10510 else
10511   echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514   ac_header_preproc=no
10515 fi
10516 rm -f conftest.err conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10518 echo "${ECHO_T}$ac_header_preproc" >&6
10519
10520 # So?  What about this header?
10521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10522   yes:no: )
10523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10527     ac_header_preproc=yes
10528     ;;
10529   no:yes:* )
10530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10542     (
10543       cat <<\_ASBOX
10544 ## ------------------------------ ##
10545 ## Report this to the ntp lists.  ##
10546 ## ------------------------------ ##
10547 _ASBOX
10548     ) |
10549       sed "s/^/$as_me: WARNING:     /" >&2
10550     ;;
10551 esac
10552 echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   eval "$as_ac_Header=\$ac_header_preproc"
10558 fi
10559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10561
10562 fi
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564   cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 _ACEOF
10567
10568 fi
10569
10570 done
10571
10572
10573   # --------------------------------------------
10574   # Verify certain entries from AC_CHECK_HEADERS
10575   # --------------------------------------------
10576   for f in sys_types sys_mman sys_param sys_stat sys_wait \
10577            string errno stdlib memory setjmp
10578   do eval as_ac_var=\${ac_cv_header_${f}_h+set}
10579      test "${as_ac_var}" = set || \
10580        { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
10581 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
10582    { (exit 1); exit 1; }; }
10583   done
10584
10585   # ================================================
10586   # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
10587   # if varargs.h is present define HAVE_VARARGS_H.
10588   # ================================================
10589
10590
10591 for ac_header in stdarg.h varargs.h
10592 do
10593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10595   echo "$as_me:$LINENO: checking for $ac_header" >&5
10596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 fi
10600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10602 else
10603   # Is the header compilable?
10604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612 $ac_includes_default
10613 #include <$ac_header>
10614 _ACEOF
10615 rm -f conftest.$ac_objext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617   (eval $ac_compile) 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag"
10625                          || test ! -s conftest.err'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; } &&
10631          { ac_try='test -s conftest.$ac_objext'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   ac_header_compiler=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ac_header_compiler=no
10643 fi
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10646 echo "${ECHO_T}$ac_header_compiler" >&6
10647
10648 # Is the header present?
10649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657 #include <$ac_header>
10658 _ACEOF
10659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10661   ac_status=$?
10662   grep -v '^ *+' conftest.er1 >conftest.err
10663   rm -f conftest.er1
10664   cat conftest.err >&5
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); } >/dev/null; then
10667   if test -s conftest.err; then
10668     ac_cpp_err=$ac_c_preproc_warn_flag
10669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10670   else
10671     ac_cpp_err=
10672   fi
10673 else
10674   ac_cpp_err=yes
10675 fi
10676 if test -z "$ac_cpp_err"; then
10677   ac_header_preproc=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682   ac_header_preproc=no
10683 fi
10684 rm -f conftest.err conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10686 echo "${ECHO_T}$ac_header_preproc" >&6
10687
10688 # So?  What about this header?
10689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10690   yes:no: )
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10695     ac_header_preproc=yes
10696     ;;
10697   no:yes:* )
10698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10710     (
10711       cat <<\_ASBOX
10712 ## ------------------------------ ##
10713 ## Report this to the ntp lists.  ##
10714 ## ------------------------------ ##
10715 _ASBOX
10716     ) |
10717       sed "s/^/$as_me: WARNING:     /" >&2
10718     ;;
10719 esac
10720 echo "$as_me:$LINENO: checking for $ac_header" >&5
10721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   eval "$as_ac_Header=\$ac_header_preproc"
10726 fi
10727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10729
10730 fi
10731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10732   cat >>confdefs.h <<_ACEOF
10733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10734 _ACEOF
10735  break
10736 fi
10737
10738 done
10739
10740   if test `eval echo '${'$as_ac_Header'}'` != yes; then
10741     { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
10742 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
10743    { (exit 1); exit 1; }; }
10744   fi
10745
10746   # ================================================
10747   # Similarly for the string.h and strings.h headers
10748   # ================================================
10749
10750
10751 for ac_header in string.h strings.h
10752 do
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10755   echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 fi
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10762 else
10763   # Is the header compilable?
10764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 $ac_includes_default
10773 #include <$ac_header>
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777   (eval $ac_compile) 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } &&
10784          { ac_try='test -z "$ac_c_werror_flag"
10785                          || test ! -s conftest.err'
10786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787   (eval $ac_try) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; } &&
10791          { ac_try='test -s conftest.$ac_objext'
10792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793   (eval $ac_try) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; }; then
10797   ac_header_compiler=yes
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 ac_header_compiler=no
10803 fi
10804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 echo "${ECHO_T}$ac_header_compiler" >&6
10807
10808 # Is the header present?
10809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <$ac_header>
10818 _ACEOF
10819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } >/dev/null; then
10827   if test -s conftest.err; then
10828     ac_cpp_err=$ac_c_preproc_warn_flag
10829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10830   else
10831     ac_cpp_err=
10832   fi
10833 else
10834   ac_cpp_err=yes
10835 fi
10836 if test -z "$ac_cpp_err"; then
10837   ac_header_preproc=yes
10838 else
10839   echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842   ac_header_preproc=no
10843 fi
10844 rm -f conftest.err conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6
10847
10848 # So?  What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850   yes:no: )
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855     ac_header_preproc=yes
10856     ;;
10857   no:yes:* )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870     (
10871       cat <<\_ASBOX
10872 ## ------------------------------ ##
10873 ## Report this to the ntp lists.  ##
10874 ## ------------------------------ ##
10875 _ASBOX
10876     ) |
10877       sed "s/^/$as_me: WARNING:     /" >&2
10878     ;;
10879 esac
10880 echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   eval "$as_ac_Header=\$ac_header_preproc"
10886 fi
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889
10890 fi
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892   cat >>confdefs.h <<_ACEOF
10893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894 _ACEOF
10895  break
10896 fi
10897
10898 done
10899
10900   if test `eval echo '${'$as_ac_Header'}'` != yes; then
10901     { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
10902 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
10903    { (exit 1); exit 1; }; }
10904   fi
10905
10906   # =====================
10907   # ...and limits headers
10908   # =====================
10909
10910
10911
10912 for ac_header in limits.h sys/limits.h values.h
10913 do
10914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916   echo "$as_me:$LINENO: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919   echo $ECHO_N "(cached) $ECHO_C" >&6
10920 fi
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10923 else
10924   # Is the header compilable?
10925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933 $ac_includes_default
10934 #include <$ac_header>
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938   (eval $ac_compile) 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } &&
10945          { ac_try='test -z "$ac_c_werror_flag"
10946                          || test ! -s conftest.err'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; } &&
10952          { ac_try='test -s conftest.$ac_objext'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_header_compiler=yes
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963 ac_header_compiler=no
10964 fi
10965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10967 echo "${ECHO_T}$ac_header_compiler" >&6
10968
10969 # Is the header present?
10970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h.  */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h.  */
10978 #include <$ac_header>
10979 _ACEOF
10980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } >/dev/null; then
10988   if test -s conftest.err; then
10989     ac_cpp_err=$ac_c_preproc_warn_flag
10990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10991   else
10992     ac_cpp_err=
10993   fi
10994 else
10995   ac_cpp_err=yes
10996 fi
10997 if test -z "$ac_cpp_err"; then
10998   ac_header_preproc=yes
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003   ac_header_preproc=no
11004 fi
11005 rm -f conftest.err conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007 echo "${ECHO_T}$ac_header_preproc" >&6
11008
11009 # So?  What about this header?
11010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011   yes:no: )
11012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016     ac_header_preproc=yes
11017     ;;
11018   no:yes:* )
11019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11031     (
11032       cat <<\_ASBOX
11033 ## ------------------------------ ##
11034 ## Report this to the ntp lists.  ##
11035 ## ------------------------------ ##
11036 _ASBOX
11037     ) |
11038       sed "s/^/$as_me: WARNING:     /" >&2
11039     ;;
11040 esac
11041 echo "$as_me:$LINENO: checking for $ac_header" >&5
11042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   eval "$as_ac_Header=\$ac_header_preproc"
11047 fi
11048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11050
11051 fi
11052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053   cat >>confdefs.h <<_ACEOF
11054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055 _ACEOF
11056  break
11057 fi
11058
11059 done
11060
11061   if test `eval echo '${'$as_ac_Header'}'` != yes; then
11062     { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
11063 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
11064    { (exit 1); exit 1; }; }
11065   fi
11066
11067   # ========================
11068   # ...and int types headers
11069   # ========================
11070
11071
11072 for ac_header in stdint.h inttypes.h
11073 do
11074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076   echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 fi
11081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11083 else
11084   # Is the header compilable?
11085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h.  */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h.  */
11093 $ac_includes_default
11094 #include <$ac_header>
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098   (eval $ac_compile) 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -z "$ac_c_werror_flag"
11106                          || test ! -s conftest.err'
11107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108   (eval $ac_try) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; } &&
11112          { ac_try='test -s conftest.$ac_objext'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   ac_header_compiler=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ac_header_compiler=no
11124 fi
11125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6
11128
11129 # Is the header present?
11130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <$ac_header>
11139 _ACEOF
11140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } >/dev/null; then
11148   if test -s conftest.err; then
11149     ac_cpp_err=$ac_c_preproc_warn_flag
11150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11151   else
11152     ac_cpp_err=
11153   fi
11154 else
11155   ac_cpp_err=yes
11156 fi
11157 if test -z "$ac_cpp_err"; then
11158   ac_header_preproc=yes
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163   ac_header_preproc=no
11164 fi
11165 rm -f conftest.err conftest.$ac_ext
11166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6
11168
11169 # So?  What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11171   yes:no: )
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176     ac_header_preproc=yes
11177     ;;
11178   no:yes:* )
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11191     (
11192       cat <<\_ASBOX
11193 ## ------------------------------ ##
11194 ## Report this to the ntp lists.  ##
11195 ## ------------------------------ ##
11196 _ASBOX
11197     ) |
11198       sed "s/^/$as_me: WARNING:     /" >&2
11199     ;;
11200 esac
11201 echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206   eval "$as_ac_Header=\$ac_header_preproc"
11207 fi
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11210
11211 fi
11212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11213   cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11215 _ACEOF
11216  break
11217 fi
11218
11219 done
11220
11221   echo "$as_me:$LINENO: checking for int8_t" >&5
11222 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11223 if test "${ac_cv_type_int8_t+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226   cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232 $ac_includes_default
11233 int
11234 main ()
11235 {
11236 if ((int8_t *) 0)
11237   return 0;
11238 if (sizeof (int8_t))
11239   return 0;
11240   ;
11241   return 0;
11242 }
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246   (eval $ac_compile) 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } &&
11253          { ac_try='test -z "$ac_c_werror_flag"
11254                          || test ! -s conftest.err'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; } &&
11260          { ac_try='test -s conftest.$ac_objext'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; }; then
11266   ac_cv_type_int8_t=yes
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ac_cv_type_int8_t=no
11272 fi
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11276 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11277 if test $ac_cv_type_int8_t = yes; then
11278
11279 cat >>confdefs.h <<_ACEOF
11280 #define HAVE_INT8_T 1
11281 _ACEOF
11282
11283
11284 fi
11285 echo "$as_me:$LINENO: checking for uint8_t" >&5
11286 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
11287 if test "${ac_cv_type_uint8_t+set}" = set; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296 $ac_includes_default
11297 int
11298 main ()
11299 {
11300 if ((uint8_t *) 0)
11301   return 0;
11302 if (sizeof (uint8_t))
11303   return 0;
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310   (eval $ac_compile) 2>conftest.er1
11311   ac_status=$?
11312   grep -v '^ *+' conftest.er1 >conftest.err
11313   rm -f conftest.er1
11314   cat conftest.err >&5
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); } &&
11317          { ac_try='test -z "$ac_c_werror_flag"
11318                          || test ! -s conftest.err'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; } &&
11324          { ac_try='test -s conftest.$ac_objext'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; }; then
11330   ac_cv_type_uint8_t=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_cv_type_uint8_t=no
11336 fi
11337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11338 fi
11339 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11340 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
11341 if test $ac_cv_type_uint8_t = yes; then
11342
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_UINT8_T 1
11345 _ACEOF
11346
11347
11348 fi
11349 echo "$as_me:$LINENO: checking for int16_t" >&5
11350 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11351 if test "${ac_cv_type_int16_t+set}" = set; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360 $ac_includes_default
11361 int
11362 main ()
11363 {
11364 if ((int16_t *) 0)
11365   return 0;
11366 if (sizeof (int16_t))
11367   return 0;
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374   (eval $ac_compile) 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } &&
11381          { ac_try='test -z "$ac_c_werror_flag"
11382                          || test ! -s conftest.err'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; } &&
11388          { ac_try='test -s conftest.$ac_objext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   ac_cv_type_int16_t=yes
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_cv_type_int16_t=no
11400 fi
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11404 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11405 if test $ac_cv_type_int16_t = yes; then
11406
11407 cat >>confdefs.h <<_ACEOF
11408 #define HAVE_INT16_T 1
11409 _ACEOF
11410
11411
11412 fi
11413 echo "$as_me:$LINENO: checking for uint16_t" >&5
11414 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
11415 if test "${ac_cv_type_uint16_t+set}" = set; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h.  */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h.  */
11424 $ac_includes_default
11425 int
11426 main ()
11427 {
11428 if ((uint16_t *) 0)
11429   return 0;
11430 if (sizeof (uint16_t))
11431   return 0;
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438   (eval $ac_compile) 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } &&
11445          { ac_try='test -z "$ac_c_werror_flag"
11446                          || test ! -s conftest.err'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; } &&
11452          { ac_try='test -s conftest.$ac_objext'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_cv_type_uint16_t=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_cv_type_uint16_t=no
11464 fi
11465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11468 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
11469 if test $ac_cv_type_uint16_t = yes; then
11470
11471 cat >>confdefs.h <<_ACEOF
11472 #define HAVE_UINT16_T 1
11473 _ACEOF
11474
11475
11476 fi
11477 echo "$as_me:$LINENO: checking for int32_t" >&5
11478 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11479 if test "${ac_cv_type_int32_t+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 $ac_includes_default
11489 int
11490 main ()
11491 {
11492 if ((int32_t *) 0)
11493   return 0;
11494 if (sizeof (int32_t))
11495   return 0;
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502   (eval $ac_compile) 2>conftest.er1
11503   ac_status=$?
11504   grep -v '^ *+' conftest.er1 >conftest.err
11505   rm -f conftest.er1
11506   cat conftest.err >&5
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); } &&
11509          { ac_try='test -z "$ac_c_werror_flag"
11510                          || test ! -s conftest.err'
11511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512   (eval $ac_try) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; } &&
11516          { ac_try='test -s conftest.$ac_objext'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; }; then
11522   ac_cv_type_int32_t=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527 ac_cv_type_int32_t=no
11528 fi
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 fi
11531 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11532 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11533 if test $ac_cv_type_int32_t = yes; then
11534
11535 cat >>confdefs.h <<_ACEOF
11536 #define HAVE_INT32_T 1
11537 _ACEOF
11538
11539
11540 fi
11541 echo "$as_me:$LINENO: checking for uint32_t" >&5
11542 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11543 if test "${ac_cv_type_uint32_t+set}" = set; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 $ac_includes_default
11553 int
11554 main ()
11555 {
11556 if ((uint32_t *) 0)
11557   return 0;
11558 if (sizeof (uint32_t))
11559   return 0;
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566   (eval $ac_compile) 2>conftest.er1
11567   ac_status=$?
11568   grep -v '^ *+' conftest.er1 >conftest.err
11569   rm -f conftest.er1
11570   cat conftest.err >&5
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); } &&
11573          { ac_try='test -z "$ac_c_werror_flag"
11574                          || test ! -s conftest.err'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; } &&
11580          { ac_try='test -s conftest.$ac_objext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   ac_cv_type_uint32_t=yes
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 ac_cv_type_uint32_t=no
11592 fi
11593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594 fi
11595 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11596 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11597 if test $ac_cv_type_uint32_t = yes; then
11598
11599 cat >>confdefs.h <<_ACEOF
11600 #define HAVE_UINT32_T 1
11601 _ACEOF
11602
11603
11604 fi
11605 echo "$as_me:$LINENO: checking for intptr_t" >&5
11606 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
11607 if test "${ac_cv_type_intptr_t+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 $ac_includes_default
11617 int
11618 main ()
11619 {
11620 if ((intptr_t *) 0)
11621   return 0;
11622 if (sizeof (intptr_t))
11623   return 0;
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630   (eval $ac_compile) 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -z "$ac_c_werror_flag"
11638                          || test ! -s conftest.err'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; } &&
11644          { ac_try='test -s conftest.$ac_objext'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   ac_cv_type_intptr_t=yes
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_cv_type_intptr_t=no
11656 fi
11657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11658 fi
11659 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11660 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
11661 if test $ac_cv_type_intptr_t = yes; then
11662
11663 cat >>confdefs.h <<_ACEOF
11664 #define HAVE_INTPTR_T 1
11665 _ACEOF
11666
11667
11668 fi
11669 echo "$as_me:$LINENO: checking for uint_t" >&5
11670 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
11671 if test "${ac_cv_type_uint_t+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h.  */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h.  */
11680 $ac_includes_default
11681 int
11682 main ()
11683 {
11684 if ((uint_t *) 0)
11685   return 0;
11686 if (sizeof (uint_t))
11687   return 0;
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11694   (eval $ac_compile) 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } &&
11701          { ac_try='test -z "$ac_c_werror_flag"
11702                          || test ! -s conftest.err'
11703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704   (eval $ac_try) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); }; } &&
11708          { ac_try='test -s conftest.$ac_objext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   ac_cv_type_uint_t=yes
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719 ac_cv_type_uint_t=no
11720 fi
11721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11722 fi
11723 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
11724 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
11725 if test $ac_cv_type_uint_t = yes; then
11726
11727 cat >>confdefs.h <<_ACEOF
11728 #define HAVE_UINT_T 1
11729 _ACEOF
11730
11731
11732 fi
11733
11734
11735   # ====================
11736   # uintptr type & sizes
11737   # ====================
11738   echo "$as_me:$LINENO: checking for uintptr_t" >&5
11739 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11740 if test "${ac_cv_type_uintptr_t+set}" = set; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 $ac_includes_default
11750 int
11751 main ()
11752 {
11753 if ((uintptr_t *) 0)
11754   return 0;
11755 if (sizeof (uintptr_t))
11756   return 0;
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763   (eval $ac_compile) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_c_werror_flag"
11771                          || test ! -s conftest.err'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; } &&
11777          { ac_try='test -s conftest.$ac_objext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   ac_cv_type_uintptr_t=yes
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 ac_cv_type_uintptr_t=no
11789 fi
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 fi
11792 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11793 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11794 if test $ac_cv_type_uintptr_t = yes; then
11795
11796 cat >>confdefs.h <<_ACEOF
11797 #define HAVE_UINTPTR_T 1
11798 _ACEOF
11799
11800
11801 else
11802
11803 cat >>confdefs.h <<\_ACEOF
11804 #define uintptr_t unsigned long
11805 _ACEOF
11806
11807 fi
11808
11809   echo "$as_me:$LINENO: checking for char*" >&5
11810 echo $ECHO_N "checking for char*... $ECHO_C" >&6
11811 if test "${ac_cv_type_charp+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 $ac_includes_default
11821 int
11822 main ()
11823 {
11824 if ((char* *) 0)
11825   return 0;
11826 if (sizeof (char*))
11827   return 0;
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834   (eval $ac_compile) 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } &&
11841          { ac_try='test -z "$ac_c_werror_flag"
11842                          || test ! -s conftest.err'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; } &&
11848          { ac_try='test -s conftest.$ac_objext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   ac_cv_type_charp=yes
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_cv_type_charp=no
11860 fi
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 fi
11863 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
11864 echo "${ECHO_T}$ac_cv_type_charp" >&6
11865
11866 echo "$as_me:$LINENO: checking size of char*" >&5
11867 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
11868 if test "${ac_cv_sizeof_charp+set}" = set; then
11869   echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871   if test "$ac_cv_type_charp" = yes; then
11872   # The cast to unsigned long works around a bug in the HP C Compiler
11873   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11874   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11875   # This bug is HP SR number 8606223364.
11876   if test "$cross_compiling" = yes; then
11877   # Depending upon the size, compute the lo and hi bounds.
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h.  */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h.  */
11884 $ac_includes_default
11885 int
11886 main ()
11887 {
11888 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
11889 test_array [0] = 0
11890
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 rm -f conftest.$ac_objext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11897   (eval $ac_compile) 2>conftest.er1
11898   ac_status=$?
11899   grep -v '^ *+' conftest.er1 >conftest.err
11900   rm -f conftest.er1
11901   cat conftest.err >&5
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } &&
11904          { ac_try='test -z "$ac_c_werror_flag"
11905                          || test ! -s conftest.err'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; } &&
11911          { ac_try='test -s conftest.$ac_objext'
11912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913   (eval $ac_try) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; }; then
11917   ac_lo=0 ac_mid=0
11918   while :; do
11919     cat >conftest.$ac_ext <<_ACEOF
11920 /* confdefs.h.  */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h.  */
11925 $ac_includes_default
11926 int
11927 main ()
11928 {
11929 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
11930 test_array [0] = 0
11931
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938   (eval $ac_compile) 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -z "$ac_c_werror_flag"
11946                          || test ! -s conftest.err'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; } &&
11952          { ac_try='test -s conftest.$ac_objext'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; }; then
11958   ac_hi=$ac_mid; break
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 ac_lo=`expr $ac_mid + 1`
11964                     if test $ac_lo -le $ac_mid; then
11965                       ac_lo= ac_hi=
11966                       break
11967                     fi
11968                     ac_mid=`expr 2 '*' $ac_mid + 1`
11969 fi
11970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971   done
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 $ac_includes_default
11983 int
11984 main ()
11985 {
11986 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
11987 test_array [0] = 0
11988
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995   (eval $ac_compile) 2>conftest.er1
11996   ac_status=$?
11997   grep -v '^ *+' conftest.er1 >conftest.err
11998   rm -f conftest.er1
11999   cat conftest.err >&5
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } &&
12002          { ac_try='test -z "$ac_c_werror_flag"
12003                          || test ! -s conftest.err'
12004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005   (eval $ac_try) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; } &&
12009          { ac_try='test -s conftest.$ac_objext'
12010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011   (eval $ac_try) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; }; then
12015   ac_hi=-1 ac_mid=-1
12016   while :; do
12017     cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023 $ac_includes_default
12024 int
12025 main ()
12026 {
12027 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
12028 test_array [0] = 0
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036   (eval $ac_compile) 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } &&
12043          { ac_try='test -z "$ac_c_werror_flag"
12044                          || test ! -s conftest.err'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; } &&
12050          { ac_try='test -s conftest.$ac_objext'
12051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052   (eval $ac_try) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   ac_lo=$ac_mid; break
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 ac_hi=`expr '(' $ac_mid ')' - 1`
12062                        if test $ac_mid -le $ac_hi; then
12063                          ac_lo= ac_hi=
12064                          break
12065                        fi
12066                        ac_mid=`expr 2 '*' $ac_mid`
12067 fi
12068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069   done
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ac_lo= ac_hi=
12075 fi
12076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12077 fi
12078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12079 # Binary search between lo and hi bounds.
12080 while test "x$ac_lo" != "x$ac_hi"; do
12081   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12082   cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h.  */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h.  */
12088 $ac_includes_default
12089 int
12090 main ()
12091 {
12092 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
12093 test_array [0] = 0
12094
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101   (eval $ac_compile) 2>conftest.er1
12102   ac_status=$?
12103   grep -v '^ *+' conftest.er1 >conftest.err
12104   rm -f conftest.er1
12105   cat conftest.err >&5
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); } &&
12108          { ac_try='test -z "$ac_c_werror_flag"
12109                          || test ! -s conftest.err'
12110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111   (eval $ac_try) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; } &&
12115          { ac_try='test -s conftest.$ac_objext'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; }; then
12121   ac_hi=$ac_mid
12122 else
12123   echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 ac_lo=`expr '(' $ac_mid ')' + 1`
12127 fi
12128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12129 done
12130 case $ac_lo in
12131 ?*) ac_cv_sizeof_charp=$ac_lo;;
12132 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
12133 See \`config.log' for more details." >&5
12134 echo "$as_me: error: cannot compute sizeof (char*), 77
12135 See \`config.log' for more details." >&2;}
12136    { (exit 1); exit 1; }; } ;;
12137 esac
12138 else
12139   if test "$cross_compiling" = yes; then
12140   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12141 See \`config.log' for more details." >&5
12142 echo "$as_me: error: cannot run test program while cross compiling
12143 See \`config.log' for more details." >&2;}
12144    { (exit 1); exit 1; }; }
12145 else
12146   cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 $ac_includes_default
12153 long longval () { return (long) (sizeof (char*)); }
12154 unsigned long ulongval () { return (long) (sizeof (char*)); }
12155 #include <stdio.h>
12156 #include <stdlib.h>
12157 int
12158 main ()
12159 {
12160
12161   FILE *f = fopen ("conftest.val", "w");
12162   if (! f)
12163     exit (1);
12164   if (((long) (sizeof (char*))) < 0)
12165     {
12166       long i = longval ();
12167       if (i != ((long) (sizeof (char*))))
12168         exit (1);
12169       fprintf (f, "%ld\n", i);
12170     }
12171   else
12172     {
12173       unsigned long i = ulongval ();
12174       if (i != ((long) (sizeof (char*))))
12175         exit (1);
12176       fprintf (f, "%lu\n", i);
12177     }
12178   exit (ferror (f) || fclose (f) != 0);
12179
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186   (eval $ac_link) 2>&5
12187   ac_status=$?
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; }; then
12195   ac_cv_sizeof_charp=`cat conftest.val`
12196 else
12197   echo "$as_me: program exited with status $ac_status" >&5
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ( exit $ac_status )
12202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
12203 See \`config.log' for more details." >&5
12204 echo "$as_me: error: cannot compute sizeof (char*), 77
12205 See \`config.log' for more details." >&2;}
12206    { (exit 1); exit 1; }; }
12207 fi
12208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12209 fi
12210 fi
12211 rm -f conftest.val
12212 else
12213   ac_cv_sizeof_charp=0
12214 fi
12215 fi
12216 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
12217 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
12218 cat >>confdefs.h <<_ACEOF
12219 #define SIZEOF_CHARP $ac_cv_sizeof_charp
12220 _ACEOF
12221
12222
12223   echo "$as_me:$LINENO: checking for int" >&5
12224 echo $ECHO_N "checking for int... $ECHO_C" >&6
12225 if test "${ac_cv_type_int+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 $ac_includes_default
12235 int
12236 main ()
12237 {
12238 if ((int *) 0)
12239   return 0;
12240 if (sizeof (int))
12241   return 0;
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248   (eval $ac_compile) 2>conftest.er1
12249   ac_status=$?
12250   grep -v '^ *+' conftest.er1 >conftest.err
12251   rm -f conftest.er1
12252   cat conftest.err >&5
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } &&
12255          { ac_try='test -z "$ac_c_werror_flag"
12256                          || test ! -s conftest.err'
12257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258   (eval $ac_try) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; } &&
12262          { ac_try='test -s conftest.$ac_objext'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; }; then
12268   ac_cv_type_int=yes
12269 else
12270   echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273 ac_cv_type_int=no
12274 fi
12275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12276 fi
12277 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12278 echo "${ECHO_T}$ac_cv_type_int" >&6
12279
12280 echo "$as_me:$LINENO: checking size of int" >&5
12281 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12282 if test "${ac_cv_sizeof_int+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   if test "$ac_cv_type_int" = yes; then
12286   # The cast to unsigned long works around a bug in the HP C Compiler
12287   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12288   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12289   # This bug is HP SR number 8606223364.
12290   if test "$cross_compiling" = yes; then
12291   # Depending upon the size, compute the lo and hi bounds.
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 $ac_includes_default
12299 int
12300 main ()
12301 {
12302 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12303 test_array [0] = 0
12304
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311   (eval $ac_compile) 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag"
12319                          || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest.$ac_objext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_lo=0 ac_mid=0
12332   while :; do
12333     cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 $ac_includes_default
12340 int
12341 main ()
12342 {
12343 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12344 test_array [0] = 0
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -z "$ac_c_werror_flag"
12360                          || test ! -s conftest.err'
12361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362   (eval $ac_try) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; } &&
12366          { ac_try='test -s conftest.$ac_objext'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; }; then
12372   ac_hi=$ac_mid; break
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_lo=`expr $ac_mid + 1`
12378                     if test $ac_lo -le $ac_mid; then
12379                       ac_lo= ac_hi=
12380                       break
12381                     fi
12382                     ac_mid=`expr 2 '*' $ac_mid + 1`
12383 fi
12384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12385   done
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 $ac_includes_default
12397 int
12398 main ()
12399 {
12400 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12401 test_array [0] = 0
12402
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409   (eval $ac_compile) 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -z "$ac_c_werror_flag"
12417                          || test ! -s conftest.err'
12418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419   (eval $ac_try) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; } &&
12423          { ac_try='test -s conftest.$ac_objext'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429   ac_hi=-1 ac_mid=-1
12430   while :; do
12431     cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437 $ac_includes_default
12438 int
12439 main ()
12440 {
12441 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12442 test_array [0] = 0
12443
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450   (eval $ac_compile) 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } &&
12457          { ac_try='test -z "$ac_c_werror_flag"
12458                          || test ! -s conftest.err'
12459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; } &&
12464          { ac_try='test -s conftest.$ac_objext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470   ac_lo=$ac_mid; break
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475 ac_hi=`expr '(' $ac_mid ')' - 1`
12476                        if test $ac_mid -le $ac_hi; then
12477                          ac_lo= ac_hi=
12478                          break
12479                        fi
12480                        ac_mid=`expr 2 '*' $ac_mid`
12481 fi
12482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12483   done
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ac_lo= ac_hi=
12489 fi
12490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12491 fi
12492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12493 # Binary search between lo and hi bounds.
12494 while test "x$ac_lo" != "x$ac_hi"; do
12495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12496   cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502 $ac_includes_default
12503 int
12504 main ()
12505 {
12506 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12507 test_array [0] = 0
12508
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515   (eval $ac_compile) 2>conftest.er1
12516   ac_status=$?
12517   grep -v '^ *+' conftest.er1 >conftest.err
12518   rm -f conftest.er1
12519   cat conftest.err >&5
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } &&
12522          { ac_try='test -z "$ac_c_werror_flag"
12523                          || test ! -s conftest.err'
12524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525   (eval $ac_try) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; } &&
12529          { ac_try='test -s conftest.$ac_objext'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; }; then
12535   ac_hi=$ac_mid
12536 else
12537   echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 ac_lo=`expr '(' $ac_mid ')' + 1`
12541 fi
12542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12543 done
12544 case $ac_lo in
12545 ?*) ac_cv_sizeof_int=$ac_lo;;
12546 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12547 See \`config.log' for more details." >&5
12548 echo "$as_me: error: cannot compute sizeof (int), 77
12549 See \`config.log' for more details." >&2;}
12550    { (exit 1); exit 1; }; } ;;
12551 esac
12552 else
12553   if test "$cross_compiling" = yes; then
12554   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12555 See \`config.log' for more details." >&5
12556 echo "$as_me: error: cannot run test program while cross compiling
12557 See \`config.log' for more details." >&2;}
12558    { (exit 1); exit 1; }; }
12559 else
12560   cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566 $ac_includes_default
12567 long longval () { return (long) (sizeof (int)); }
12568 unsigned long ulongval () { return (long) (sizeof (int)); }
12569 #include <stdio.h>
12570 #include <stdlib.h>
12571 int
12572 main ()
12573 {
12574
12575   FILE *f = fopen ("conftest.val", "w");
12576   if (! f)
12577     exit (1);
12578   if (((long) (sizeof (int))) < 0)
12579     {
12580       long i = longval ();
12581       if (i != ((long) (sizeof (int))))
12582         exit (1);
12583       fprintf (f, "%ld\n", i);
12584     }
12585   else
12586     {
12587       unsigned long i = ulongval ();
12588       if (i != ((long) (sizeof (int))))
12589         exit (1);
12590       fprintf (f, "%lu\n", i);
12591     }
12592   exit (ferror (f) || fclose (f) != 0);
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600   (eval $ac_link) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_cv_sizeof_int=`cat conftest.val`
12610 else
12611   echo "$as_me: program exited with status $ac_status" >&5
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 ( exit $ac_status )
12616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12617 See \`config.log' for more details." >&5
12618 echo "$as_me: error: cannot compute sizeof (int), 77
12619 See \`config.log' for more details." >&2;}
12620    { (exit 1); exit 1; }; }
12621 fi
12622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12623 fi
12624 fi
12625 rm -f conftest.val
12626 else
12627   ac_cv_sizeof_int=0
12628 fi
12629 fi
12630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12632 cat >>confdefs.h <<_ACEOF
12633 #define SIZEOF_INT $ac_cv_sizeof_int
12634 _ACEOF
12635
12636
12637   echo "$as_me:$LINENO: checking for long" >&5
12638 echo $ECHO_N "checking for long... $ECHO_C" >&6
12639 if test "${ac_cv_type_long+set}" = set; then
12640   echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642   cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 $ac_includes_default
12649 int
12650 main ()
12651 {
12652 if ((long *) 0)
12653   return 0;
12654 if (sizeof (long))
12655   return 0;
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 rm -f conftest.$ac_objext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12662   (eval $ac_compile) 2>conftest.er1
12663   ac_status=$?
12664   grep -v '^ *+' conftest.er1 >conftest.err
12665   rm -f conftest.er1
12666   cat conftest.err >&5
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } &&
12669          { ac_try='test -z "$ac_c_werror_flag"
12670                          || test ! -s conftest.err'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; } &&
12676          { ac_try='test -s conftest.$ac_objext'
12677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678   (eval $ac_try) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; }; then
12682   ac_cv_type_long=yes
12683 else
12684   echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687 ac_cv_type_long=no
12688 fi
12689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12690 fi
12691 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12692 echo "${ECHO_T}$ac_cv_type_long" >&6
12693
12694 echo "$as_me:$LINENO: checking size of long" >&5
12695 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12696 if test "${ac_cv_sizeof_long+set}" = set; then
12697   echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699   if test "$ac_cv_type_long" = yes; then
12700   # The cast to unsigned long works around a bug in the HP C Compiler
12701   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12702   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12703   # This bug is HP SR number 8606223364.
12704   if test "$cross_compiling" = yes; then
12705   # Depending upon the size, compute the lo and hi bounds.
12706 cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712 $ac_includes_default
12713 int
12714 main ()
12715 {
12716 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12717 test_array [0] = 0
12718
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725   (eval $ac_compile) 2>conftest.er1
12726   ac_status=$?
12727   grep -v '^ *+' conftest.er1 >conftest.err
12728   rm -f conftest.er1
12729   cat conftest.err >&5
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } &&
12732          { ac_try='test -z "$ac_c_werror_flag"
12733                          || test ! -s conftest.err'
12734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735   (eval $ac_try) 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); }; } &&
12739          { ac_try='test -s conftest.$ac_objext'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; }; then
12745   ac_lo=0 ac_mid=0
12746   while :; do
12747     cat >conftest.$ac_ext <<_ACEOF
12748 /* confdefs.h.  */
12749 _ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h.  */
12753 $ac_includes_default
12754 int
12755 main ()
12756 {
12757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12758 test_array [0] = 0
12759
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 rm -f conftest.$ac_objext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766   (eval $ac_compile) 2>conftest.er1
12767   ac_status=$?
12768   grep -v '^ *+' conftest.er1 >conftest.err
12769   rm -f conftest.er1
12770   cat conftest.err >&5
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } &&
12773          { ac_try='test -z "$ac_c_werror_flag"
12774                          || test ! -s conftest.err'
12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776   (eval $ac_try) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; } &&
12780          { ac_try='test -s conftest.$ac_objext'
12781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782   (eval $ac_try) 2>&5
12783   ac_status=$?
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); }; }; then
12786   ac_hi=$ac_mid; break
12787 else
12788   echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_lo=`expr $ac_mid + 1`
12792                     if test $ac_lo -le $ac_mid; then
12793                       ac_lo= ac_hi=
12794                       break
12795                     fi
12796                     ac_mid=`expr 2 '*' $ac_mid + 1`
12797 fi
12798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12799   done
12800 else
12801   echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810 $ac_includes_default
12811 int
12812 main ()
12813 {
12814 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12815 test_array [0] = 0
12816
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823   (eval $ac_compile) 2>conftest.er1
12824   ac_status=$?
12825   grep -v '^ *+' conftest.er1 >conftest.err
12826   rm -f conftest.er1
12827   cat conftest.err >&5
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); } &&
12830          { ac_try='test -z "$ac_c_werror_flag"
12831                          || test ! -s conftest.err'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; } &&
12837          { ac_try='test -s conftest.$ac_objext'
12838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839   (eval $ac_try) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); }; }; then
12843   ac_hi=-1 ac_mid=-1
12844   while :; do
12845     cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h.  */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h.  */
12851 $ac_includes_default
12852 int
12853 main ()
12854 {
12855 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12856 test_array [0] = 0
12857
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864   (eval $ac_compile) 2>conftest.er1
12865   ac_status=$?
12866   grep -v '^ *+' conftest.er1 >conftest.err
12867   rm -f conftest.er1
12868   cat conftest.err >&5
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); } &&
12871          { ac_try='test -z "$ac_c_werror_flag"
12872                          || test ! -s conftest.err'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; } &&
12878          { ac_try='test -s conftest.$ac_objext'
12879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880   (eval $ac_try) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; }; then
12884   ac_lo=$ac_mid; break
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 ac_hi=`expr '(' $ac_mid ')' - 1`
12890                        if test $ac_mid -le $ac_hi; then
12891                          ac_lo= ac_hi=
12892                          break
12893                        fi
12894                        ac_mid=`expr 2 '*' $ac_mid`
12895 fi
12896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12897   done
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902 ac_lo= ac_hi=
12903 fi
12904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12905 fi
12906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12907 # Binary search between lo and hi bounds.
12908 while test "x$ac_lo" != "x$ac_hi"; do
12909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12910   cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916 $ac_includes_default
12917 int
12918 main ()
12919 {
12920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12921 test_array [0] = 0
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929   (eval $ac_compile) 2>conftest.er1
12930   ac_status=$?
12931   grep -v '^ *+' conftest.er1 >conftest.err
12932   rm -f conftest.er1
12933   cat conftest.err >&5
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } &&
12936          { ac_try='test -z "$ac_c_werror_flag"
12937                          || test ! -s conftest.err'
12938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939   (eval $ac_try) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; } &&
12943          { ac_try='test -s conftest.$ac_objext'
12944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945   (eval $ac_try) 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; }; then
12949   ac_hi=$ac_mid
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_lo=`expr '(' $ac_mid ')' + 1`
12955 fi
12956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12957 done
12958 case $ac_lo in
12959 ?*) ac_cv_sizeof_long=$ac_lo;;
12960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12961 See \`config.log' for more details." >&5
12962 echo "$as_me: error: cannot compute sizeof (long), 77
12963 See \`config.log' for more details." >&2;}
12964    { (exit 1); exit 1; }; } ;;
12965 esac
12966 else
12967   if test "$cross_compiling" = yes; then
12968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12969 See \`config.log' for more details." >&5
12970 echo "$as_me: error: cannot run test program while cross compiling
12971 See \`config.log' for more details." >&2;}
12972    { (exit 1); exit 1; }; }
12973 else
12974   cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h.  */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h.  */
12980 $ac_includes_default
12981 long longval () { return (long) (sizeof (long)); }
12982 unsigned long ulongval () { return (long) (sizeof (long)); }
12983 #include <stdio.h>
12984 #include <stdlib.h>
12985 int
12986 main ()
12987 {
12988
12989   FILE *f = fopen ("conftest.val", "w");
12990   if (! f)
12991     exit (1);
12992   if (((long) (sizeof (long))) < 0)
12993     {
12994       long i = longval ();
12995       if (i != ((long) (sizeof (long))))
12996         exit (1);
12997       fprintf (f, "%ld\n", i);
12998     }
12999   else
13000     {
13001       unsigned long i = ulongval ();
13002       if (i != ((long) (sizeof (long))))
13003         exit (1);
13004       fprintf (f, "%lu\n", i);
13005     }
13006   exit (ferror (f) || fclose (f) != 0);
13007
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 rm -f conftest$ac_exeext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13014   (eval $ac_link) 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019   (eval $ac_try) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; }; then
13023   ac_cv_sizeof_long=`cat conftest.val`
13024 else
13025   echo "$as_me: program exited with status $ac_status" >&5
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ( exit $ac_status )
13030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13031 See \`config.log' for more details." >&5
13032 echo "$as_me: error: cannot compute sizeof (long), 77
13033 See \`config.log' for more details." >&2;}
13034    { (exit 1); exit 1; }; }
13035 fi
13036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13037 fi
13038 fi
13039 rm -f conftest.val
13040 else
13041   ac_cv_sizeof_long=0
13042 fi
13043 fi
13044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13045 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13046 cat >>confdefs.h <<_ACEOF
13047 #define SIZEOF_LONG $ac_cv_sizeof_long
13048 _ACEOF
13049
13050
13051   echo "$as_me:$LINENO: checking for short" >&5
13052 echo $ECHO_N "checking for short... $ECHO_C" >&6
13053 if test "${ac_cv_type_short+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h.  */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h.  */
13062 $ac_includes_default
13063 int
13064 main ()
13065 {
13066 if ((short *) 0)
13067   return 0;
13068 if (sizeof (short))
13069   return 0;
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076   (eval $ac_compile) 2>conftest.er1
13077   ac_status=$?
13078   grep -v '^ *+' conftest.er1 >conftest.err
13079   rm -f conftest.er1
13080   cat conftest.err >&5
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } &&
13083          { ac_try='test -z "$ac_c_werror_flag"
13084                          || test ! -s conftest.err'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; } &&
13090          { ac_try='test -s conftest.$ac_objext'
13091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092   (eval $ac_try) 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_type_short=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ac_cv_type_short=no
13102 fi
13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104 fi
13105 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13106 echo "${ECHO_T}$ac_cv_type_short" >&6
13107
13108 echo "$as_me:$LINENO: checking size of short" >&5
13109 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13110 if test "${ac_cv_sizeof_short+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   if test "$ac_cv_type_short" = yes; then
13114   # The cast to unsigned long works around a bug in the HP C Compiler
13115   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13116   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13117   # This bug is HP SR number 8606223364.
13118   if test "$cross_compiling" = yes; then
13119   # Depending upon the size, compute the lo and hi bounds.
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h.  */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h.  */
13126 $ac_includes_default
13127 int
13128 main ()
13129 {
13130 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13131 test_array [0] = 0
13132
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13139   (eval $ac_compile) 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -z "$ac_c_werror_flag"
13147                          || test ! -s conftest.err'
13148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149   (eval $ac_try) 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; } &&
13153          { ac_try='test -s conftest.$ac_objext'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; }; then
13159   ac_lo=0 ac_mid=0
13160   while :; do
13161     cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167 $ac_includes_default
13168 int
13169 main ()
13170 {
13171 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13172 test_array [0] = 0
13173
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 rm -f conftest.$ac_objext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180   (eval $ac_compile) 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -z "$ac_c_werror_flag"
13188                          || test ! -s conftest.err'
13189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190   (eval $ac_try) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; } &&
13194          { ac_try='test -s conftest.$ac_objext'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; }; then
13200   ac_hi=$ac_mid; break
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_lo=`expr $ac_mid + 1`
13206                     if test $ac_lo -le $ac_mid; then
13207                       ac_lo= ac_hi=
13208                       break
13209                     fi
13210                     ac_mid=`expr 2 '*' $ac_mid + 1`
13211 fi
13212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13213   done
13214 else
13215   echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 $ac_includes_default
13225 int
13226 main ()
13227 {
13228 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13229 test_array [0] = 0
13230
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237   (eval $ac_compile) 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -z "$ac_c_werror_flag"
13245                          || test ! -s conftest.err'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; } &&
13251          { ac_try='test -s conftest.$ac_objext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_hi=-1 ac_mid=-1
13258   while :; do
13259     cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h.  */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h.  */
13265 $ac_includes_default
13266 int
13267 main ()
13268 {
13269 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13270 test_array [0] = 0
13271
13272   ;
13273   return 0;
13274 }
13275 _ACEOF
13276 rm -f conftest.$ac_objext
13277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13278   (eval $ac_compile) 2>conftest.er1
13279   ac_status=$?
13280   grep -v '^ *+' conftest.er1 >conftest.err
13281   rm -f conftest.er1
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } &&
13285          { ac_try='test -z "$ac_c_werror_flag"
13286                          || test ! -s conftest.err'
13287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288   (eval $ac_try) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; } &&
13292          { ac_try='test -s conftest.$ac_objext'
13293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294   (eval $ac_try) 2>&5
13295   ac_status=$?
13296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297   (exit $ac_status); }; }; then
13298   ac_lo=$ac_mid; break
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13302
13303 ac_hi=`expr '(' $ac_mid ')' - 1`
13304                        if test $ac_mid -le $ac_hi; then
13305                          ac_lo= ac_hi=
13306                          break
13307                        fi
13308                        ac_mid=`expr 2 '*' $ac_mid`
13309 fi
13310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13311   done
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_lo= ac_hi=
13317 fi
13318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13319 fi
13320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13321 # Binary search between lo and hi bounds.
13322 while test "x$ac_lo" != "x$ac_hi"; do
13323   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13324   cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330 $ac_includes_default
13331 int
13332 main ()
13333 {
13334 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13335 test_array [0] = 0
13336
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343   (eval $ac_compile) 2>conftest.er1
13344   ac_status=$?
13345   grep -v '^ *+' conftest.er1 >conftest.err
13346   rm -f conftest.er1
13347   cat conftest.err >&5
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } &&
13350          { ac_try='test -z "$ac_c_werror_flag"
13351                          || test ! -s conftest.err'
13352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353   (eval $ac_try) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; } &&
13357          { ac_try='test -s conftest.$ac_objext'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   ac_hi=$ac_mid
13364 else
13365   echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 ac_lo=`expr '(' $ac_mid ')' + 1`
13369 fi
13370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13371 done
13372 case $ac_lo in
13373 ?*) ac_cv_sizeof_short=$ac_lo;;
13374 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13375 See \`config.log' for more details." >&5
13376 echo "$as_me: error: cannot compute sizeof (short), 77
13377 See \`config.log' for more details." >&2;}
13378    { (exit 1); exit 1; }; } ;;
13379 esac
13380 else
13381   if test "$cross_compiling" = yes; then
13382   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13383 See \`config.log' for more details." >&5
13384 echo "$as_me: error: cannot run test program while cross compiling
13385 See \`config.log' for more details." >&2;}
13386    { (exit 1); exit 1; }; }
13387 else
13388   cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394 $ac_includes_default
13395 long longval () { return (long) (sizeof (short)); }
13396 unsigned long ulongval () { return (long) (sizeof (short)); }
13397 #include <stdio.h>
13398 #include <stdlib.h>
13399 int
13400 main ()
13401 {
13402
13403   FILE *f = fopen ("conftest.val", "w");
13404   if (! f)
13405     exit (1);
13406   if (((long) (sizeof (short))) < 0)
13407     {
13408       long i = longval ();
13409       if (i != ((long) (sizeof (short))))
13410         exit (1);
13411       fprintf (f, "%ld\n", i);
13412     }
13413   else
13414     {
13415       unsigned long i = ulongval ();
13416       if (i != ((long) (sizeof (short))))
13417         exit (1);
13418       fprintf (f, "%lu\n", i);
13419     }
13420   exit (ferror (f) || fclose (f) != 0);
13421
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428   (eval $ac_link) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433   (eval $ac_try) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_sizeof_short=`cat conftest.val`
13438 else
13439   echo "$as_me: program exited with status $ac_status" >&5
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 ( exit $ac_status )
13444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13445 See \`config.log' for more details." >&5
13446 echo "$as_me: error: cannot compute sizeof (short), 77
13447 See \`config.log' for more details." >&2;}
13448    { (exit 1); exit 1; }; }
13449 fi
13450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13451 fi
13452 fi
13453 rm -f conftest.val
13454 else
13455   ac_cv_sizeof_short=0
13456 fi
13457 fi
13458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13459 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13460 cat >>confdefs.h <<_ACEOF
13461 #define SIZEOF_SHORT $ac_cv_sizeof_short
13462 _ACEOF
13463
13464
13465
13466   # ----------------------------------------------------------------------
13467   # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
13468   # ----------------------------------------------------------------------
13469
13470 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
13471 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
13472 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
13473   echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475   ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lgen  $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483
13484 /* Override any gcc2 internal prototype to avoid an error.  */
13485 #ifdef __cplusplus
13486 extern "C"
13487 #endif
13488 /* We use char because int might match the return type of a gcc2
13489    builtin and then its argument prototype would still apply.  */
13490 char pathfind ();
13491 int
13492 main ()
13493 {
13494 pathfind ();
13495   ;
13496   return 0;
13497 }
13498 _ACEOF
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501   (eval $ac_link) 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } &&
13508          { ac_try='test -z "$ac_c_werror_flag"
13509                          || test ! -s conftest.err'
13510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511   (eval $ac_try) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); }; } &&
13515          { ac_try='test -s conftest$ac_exeext'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }; then
13521   ac_cv_lib_gen_pathfind=yes
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ac_cv_lib_gen_pathfind=no
13527 fi
13528 rm -f conftest.err conftest.$ac_objext \
13529       conftest$ac_exeext conftest.$ac_ext
13530 LIBS=$ac_check_lib_save_LIBS
13531 fi
13532 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
13533 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
13534 if test $ac_cv_lib_gen_pathfind = yes; then
13535   cat >>confdefs.h <<_ACEOF
13536 #define HAVE_LIBGEN 1
13537 _ACEOF
13538
13539   LIBS="-lgen $LIBS"
13540
13541 fi
13542
13543
13544 for ac_func in vprintf
13545 do
13546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13547 echo "$as_me:$LINENO: checking for $ac_func" >&5
13548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_var+set}\" = set"; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13560 #define $ac_func innocuous_$ac_func
13561
13562 /* System header to define __stub macros and hopefully few prototypes,
13563     which can conflict with char $ac_func (); below.
13564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565     <limits.h> exists even on freestanding compilers.  */
13566
13567 #ifdef __STDC__
13568 # include <limits.h>
13569 #else
13570 # include <assert.h>
13571 #endif
13572
13573 #undef $ac_func
13574
13575 /* Override any gcc2 internal prototype to avoid an error.  */
13576 #ifdef __cplusplus
13577 extern "C"
13578 {
13579 #endif
13580 /* We use char because int might match the return type of a gcc2
13581    builtin and then its argument prototype would still apply.  */
13582 char $ac_func ();
13583 /* The GNU C library defines this for functions which it implements
13584     to always fail with ENOSYS.  Some functions are actually named
13585     something starting with __ and the normal name is an alias.  */
13586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13587 choke me
13588 #else
13589 char (*f) () = $ac_func;
13590 #endif
13591 #ifdef __cplusplus
13592 }
13593 #endif
13594
13595 int
13596 main ()
13597 {
13598 return f != $ac_func;
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605   (eval $ac_link) 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -z "$ac_c_werror_flag"
13613                          || test ! -s conftest.err'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; } &&
13619          { ac_try='test -s conftest$ac_exeext'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   eval "$as_ac_var=yes"
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 eval "$as_ac_var=no"
13631 fi
13632 rm -f conftest.err conftest.$ac_objext \
13633       conftest$ac_exeext conftest.$ac_ext
13634 fi
13635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13637 if test `eval echo '${'$as_ac_var'}'` = yes; then
13638   cat >>confdefs.h <<_ACEOF
13639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13640 _ACEOF
13641
13642 echo "$as_me:$LINENO: checking for _doprnt" >&5
13643 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13644 if test "${ac_cv_func__doprnt+set}" = set; then
13645   echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647   cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13655 #define _doprnt innocuous__doprnt
13656
13657 /* System header to define __stub macros and hopefully few prototypes,
13658     which can conflict with char _doprnt (); below.
13659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13660     <limits.h> exists even on freestanding compilers.  */
13661
13662 #ifdef __STDC__
13663 # include <limits.h>
13664 #else
13665 # include <assert.h>
13666 #endif
13667
13668 #undef _doprnt
13669
13670 /* Override any gcc2 internal prototype to avoid an error.  */
13671 #ifdef __cplusplus
13672 extern "C"
13673 {
13674 #endif
13675 /* We use char because int might match the return type of a gcc2
13676    builtin and then its argument prototype would still apply.  */
13677 char _doprnt ();
13678 /* The GNU C library defines this for functions which it implements
13679     to always fail with ENOSYS.  Some functions are actually named
13680     something starting with __ and the normal name is an alias.  */
13681 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13682 choke me
13683 #else
13684 char (*f) () = _doprnt;
13685 #endif
13686 #ifdef __cplusplus
13687 }
13688 #endif
13689
13690 int
13691 main ()
13692 {
13693 return f != _doprnt;
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext conftest$ac_exeext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700   (eval $ac_link) 2>conftest.er1
13701   ac_status=$?
13702   grep -v '^ *+' conftest.er1 >conftest.err
13703   rm -f conftest.er1
13704   cat conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } &&
13707          { ac_try='test -z "$ac_c_werror_flag"
13708                          || test ! -s conftest.err'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; } &&
13714          { ac_try='test -s conftest$ac_exeext'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; }; then
13720   ac_cv_func__doprnt=yes
13721 else
13722   echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725 ac_cv_func__doprnt=no
13726 fi
13727 rm -f conftest.err conftest.$ac_objext \
13728       conftest$ac_exeext conftest.$ac_ext
13729 fi
13730 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13731 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13732 if test $ac_cv_func__doprnt = yes; then
13733
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_DOPRNT 1
13736 _ACEOF
13737
13738 fi
13739
13740 fi
13741 done
13742
13743
13744
13745
13746
13747
13748
13749
13750 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
13751 do
13752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13753 echo "$as_me:$LINENO: checking for $ac_func" >&5
13754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13755 if eval "test \"\${$as_ac_var+set}\" = set"; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13766 #define $ac_func innocuous_$ac_func
13767
13768 /* System header to define __stub macros and hopefully few prototypes,
13769     which can conflict with char $ac_func (); below.
13770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13771     <limits.h> exists even on freestanding compilers.  */
13772
13773 #ifdef __STDC__
13774 # include <limits.h>
13775 #else
13776 # include <assert.h>
13777 #endif
13778
13779 #undef $ac_func
13780
13781 /* Override any gcc2 internal prototype to avoid an error.  */
13782 #ifdef __cplusplus
13783 extern "C"
13784 {
13785 #endif
13786 /* We use char because int might match the return type of a gcc2
13787    builtin and then its argument prototype would still apply.  */
13788 char $ac_func ();
13789 /* The GNU C library defines this for functions which it implements
13790     to always fail with ENOSYS.  Some functions are actually named
13791     something starting with __ and the normal name is an alias.  */
13792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13793 choke me
13794 #else
13795 char (*f) () = $ac_func;
13796 #endif
13797 #ifdef __cplusplus
13798 }
13799 #endif
13800
13801 int
13802 main ()
13803 {
13804 return f != $ac_func;
13805   ;
13806   return 0;
13807 }
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13811   (eval $ac_link) 2>conftest.er1
13812   ac_status=$?
13813   grep -v '^ *+' conftest.er1 >conftest.err
13814   rm -f conftest.er1
13815   cat conftest.err >&5
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -z "$ac_c_werror_flag"
13819                          || test ! -s conftest.err'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; } &&
13825          { ac_try='test -s conftest$ac_exeext'
13826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827   (eval $ac_try) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; }; then
13831   eval "$as_ac_var=yes"
13832 else
13833   echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 eval "$as_ac_var=no"
13837 fi
13838 rm -f conftest.err conftest.$ac_objext \
13839       conftest$ac_exeext conftest.$ac_ext
13840 fi
13841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13843 if test `eval echo '${'$as_ac_var'}'` = yes; then
13844   cat >>confdefs.h <<_ACEOF
13845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13846 _ACEOF
13847
13848 fi
13849 done
13850
13851   INVOKE_LIBOPTS_MACROS_FIRST_done=yes
13852 fi
13853   fi
13854 # end of AC_DEFUN of LIBOPTS_CHECK
13855
13856
13857 echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5
13858 echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6
13859 cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h.  */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h.  */
13865
13866 int
13867 main ()
13868 {
13869 #warning foo
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876   (eval $ac_compile) 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } &&
13883          { ac_try='test -z "$ac_c_werror_flag"
13884                          || test ! -s conftest.err'
13885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886   (eval $ac_try) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest.$ac_objext'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; }; then
13896   ac_cv_cpp_warning=yes
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_cv_cpp_warning=no
13902 fi
13903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5
13905 echo "${ECHO_T}$ac_cv_cpp_warning" >&6
13906
13907 case "$ac_cv_cpp_warning" in
13908  no)
13909
13910 cat >>confdefs.h <<\_ACEOF
13911 #define NO_OPTION_NAME_WARNINGS 1
13912 _ACEOF
13913
13914     echo "$as_me:$LINENO: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
13915 echo "${ECHO_T}Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6
13916     ;;
13917 esac
13918
13919 echo "$as_me:$LINENO: checking for bin subdirectory" >&5
13920 echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6
13921
13922 # Check whether --with-binsubdir or --without-binsubdir was given.
13923 if test "${with_binsubdir+set}" = set; then
13924   withval="$with_binsubdir"
13925   use_binsubdir="$withval"
13926 else
13927   use_binsubdir="bin"
13928 fi;
13929
13930 case "$use_binsubdir" in
13931  bin)
13932     ;;
13933  sbin)
13934     ;;
13935  *)
13936     { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5
13937 echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;}
13938    { (exit 1); exit 1; }; }
13939     ;;
13940 esac
13941 echo "$as_me:$LINENO: result: $use_binsubdir" >&5
13942 echo "${ECHO_T}$use_binsubdir" >&6
13943 BINSUBDIR=$use_binsubdir
13944
13945
13946 echo "$as_me:$LINENO: checking if we want to use arlib" >&5
13947 echo $ECHO_N "checking if we want to use arlib... $ECHO_C" >&6
13948
13949 # Check whether --with-arlib or --without-arlib was given.
13950 if test "${with_arlib+set}" = set; then
13951   withval="$with_arlib"
13952   ans=$withval
13953 else
13954   ans=no
13955 fi;
13956 echo "$as_me:$LINENO: result: $ans" >&5
13957 echo "${ECHO_T}$ans" >&6
13958
13959 if test -d $srcdir/arlib
13960 then
13961     case "$ans" in
13962      yes)
13963         ARLIB_DIR=arlib
13964
13965
13966 subdirs="$subdirs arlib"
13967
13968         ;;
13969     esac
13970 fi
13971
13972
13973
13974 # Check whether --with-rpath or --without-rpath was given.
13975 if test "${with_rpath+set}" = set; then
13976   withval="$with_rpath"
13977   ans=$withval
13978 else
13979   ans=x
13980 fi;
13981 case "$ans" in
13982  no)
13983     need_dash_r=
13984     ;;
13985  yes)
13986     need_dash_r=1
13987     ;;
13988 esac
13989 # HMS: Why isn't this $build?
13990 # Well, that depends on if we need this for the build toolchain or
13991 # for info in the host executable...
13992 # I still have no idea which way this should go, but nobody has complained.
13993 case "$host" in
13994  *-*-netbsd*)
13995     case "$need_dash_r" in
13996      no) ;;
13997      *)  need_dash_r=1
13998          ;;
13999     esac
14000     ;;
14001  *-*-solaris*)
14002     case "$need_dash_r" in
14003      no) ;;
14004      *)  need_dash_r=1
14005          ;;
14006     esac
14007     ;;
14008 esac
14009
14010 echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5
14011 echo $ECHO_N "checking if we should use /dev/clockctl... $ECHO_C" >&6
14012 if test "${ac_clockctl+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   # Check whether --enable-clockctl or --disable-clockctl was given.
14016 if test "${enable_clockctl+set}" = set; then
14017   enableval="$enable_clockctl"
14018   ans=$enableval
14019 else
14020   case "$host" in
14021       *-*-netbsd*)
14022          ans=yes
14023          ;;
14024       *) ans=no
14025          ;;
14026      esac
14027
14028 fi;
14029 ac_clockctl=$ans
14030 fi
14031 echo "$as_me:$LINENO: result: $ac_clockctl" >&5
14032 echo "${ECHO_T}$ac_clockctl" >&6
14033 # End of AC_CACHE_CHECK for clockctl
14034
14035 for ac_header in sys/clockctl.h
14036 do
14037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14039   echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 fi
14044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14046 else
14047   # Is the header compilable?
14048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056 $ac_includes_default
14057 #include <$ac_header>
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061   (eval $ac_compile) 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -z "$ac_c_werror_flag"
14069                          || test ! -s conftest.err'
14070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071   (eval $ac_try) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; } &&
14075          { ac_try='test -s conftest.$ac_objext'
14076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077   (eval $ac_try) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; }; then
14081   ac_header_compiler=yes
14082 else
14083   echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_compiler=no
14087 fi
14088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14090 echo "${ECHO_T}$ac_header_compiler" >&6
14091
14092 # Is the header present?
14093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h.  */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h.  */
14101 #include <$ac_header>
14102 _ACEOF
14103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } >/dev/null; then
14111   if test -s conftest.err; then
14112     ac_cpp_err=$ac_c_preproc_warn_flag
14113     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14114   else
14115     ac_cpp_err=
14116   fi
14117 else
14118   ac_cpp_err=yes
14119 fi
14120 if test -z "$ac_cpp_err"; then
14121   ac_header_preproc=yes
14122 else
14123   echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126   ac_header_preproc=no
14127 fi
14128 rm -f conftest.err conftest.$ac_ext
14129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130 echo "${ECHO_T}$ac_header_preproc" >&6
14131
14132 # So?  What about this header?
14133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14134   yes:no: )
14135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14139     ac_header_preproc=yes
14140     ;;
14141   no:yes:* )
14142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14154     (
14155       cat <<\_ASBOX
14156 ## ------------------------------ ##
14157 ## Report this to the ntp lists.  ##
14158 ## ------------------------------ ##
14159 _ASBOX
14160     ) |
14161       sed "s/^/$as_me: WARNING:     /" >&2
14162     ;;
14163 esac
14164 echo "$as_me:$LINENO: checking for $ac_header" >&5
14165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   eval "$as_ac_Header=\$ac_header_preproc"
14170 fi
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14173
14174 fi
14175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14176   cat >>confdefs.h <<_ACEOF
14177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178 _ACEOF
14179
14180 fi
14181
14182 done
14183
14184 case "$ac_clockctl$ac_cv_header_sys_clockctl_h" in
14185  yesyes)
14186
14187 cat >>confdefs.h <<\_ACEOF
14188 #define HAVE_DROPROOT
14189 _ACEOF
14190
14191     ;;
14192 esac
14193
14194 echo "$as_me:$LINENO: checking if we have linux capabilities (libcap)" >&5
14195 echo $ECHO_N "checking if we have linux capabilities (libcap)... $ECHO_C" >&6
14196 if test "${ac_linuxcaps+set}" = set; then
14197   echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199   # Check whether --enable-linuxcaps or --disable-linuxcaps was given.
14200 if test "${enable_linuxcaps+set}" = set; then
14201   enableval="$enable_linuxcaps"
14202   ans=$enableval
14203 else
14204   ans=no
14205 fi;
14206 ac_linuxcaps=$ans
14207 fi
14208 echo "$as_me:$LINENO: result: $ac_linuxcaps" >&5
14209 echo "${ECHO_T}$ac_linuxcaps" >&6
14210 # End of AC_CACHE_CHECK for linuxcaps
14211
14212 for ac_header in sys/capability.h
14213 do
14214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216   echo "$as_me:$LINENO: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 fi
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 else
14224   # Is the header compilable?
14225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 $ac_includes_default
14234 #include <$ac_header>
14235 _ACEOF
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238   (eval $ac_compile) 2>conftest.er1
14239   ac_status=$?
14240   grep -v '^ *+' conftest.er1 >conftest.err
14241   rm -f conftest.er1
14242   cat conftest.err >&5
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -z "$ac_c_werror_flag"
14246                          || test ! -s conftest.err'
14247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248   (eval $ac_try) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_header_compiler=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_header_compiler=no
14264 fi
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267 echo "${ECHO_T}$ac_header_compiler" >&6
14268
14269 # Is the header present?
14270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 #include <$ac_header>
14279 _ACEOF
14280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14282   ac_status=$?
14283   grep -v '^ *+' conftest.er1 >conftest.err
14284   rm -f conftest.er1
14285   cat conftest.err >&5
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } >/dev/null; then
14288   if test -s conftest.err; then
14289     ac_cpp_err=$ac_c_preproc_warn_flag
14290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14291   else
14292     ac_cpp_err=
14293   fi
14294 else
14295   ac_cpp_err=yes
14296 fi
14297 if test -z "$ac_cpp_err"; then
14298   ac_header_preproc=yes
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303   ac_header_preproc=no
14304 fi
14305 rm -f conftest.err conftest.$ac_ext
14306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14307 echo "${ECHO_T}$ac_header_preproc" >&6
14308
14309 # So?  What about this header?
14310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311   yes:no: )
14312     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14316     ac_header_preproc=yes
14317     ;;
14318   no:yes:* )
14319     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14321     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14322 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14323     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14325     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14326 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14329     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14331     (
14332       cat <<\_ASBOX
14333 ## ------------------------------ ##
14334 ## Report this to the ntp lists.  ##
14335 ## ------------------------------ ##
14336 _ASBOX
14337     ) |
14338       sed "s/^/$as_me: WARNING:     /" >&2
14339     ;;
14340 esac
14341 echo "$as_me:$LINENO: checking for $ac_header" >&5
14342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14344   echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346   eval "$as_ac_Header=\$ac_header_preproc"
14347 fi
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14350
14351 fi
14352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353   cat >>confdefs.h <<_ACEOF
14354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14355 _ACEOF
14356
14357 fi
14358
14359 done
14360
14361
14362 for ac_header in sys/prctl.h
14363 do
14364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14366   echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 fi
14371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14373 else
14374   # Is the header compilable?
14375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h.  */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h.  */
14383 $ac_includes_default
14384 #include <$ac_header>
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388   (eval $ac_compile) 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -z "$ac_c_werror_flag"
14396                          || test ! -s conftest.err'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; } &&
14402          { ac_try='test -s conftest.$ac_objext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_header_compiler=yes
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_header_compiler=no
14414 fi
14415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14417 echo "${ECHO_T}$ac_header_compiler" >&6
14418
14419 # Is the header present?
14420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14422 cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428 #include <$ac_header>
14429 _ACEOF
14430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } >/dev/null; then
14438   if test -s conftest.err; then
14439     ac_cpp_err=$ac_c_preproc_warn_flag
14440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14441   else
14442     ac_cpp_err=
14443   fi
14444 else
14445   ac_cpp_err=yes
14446 fi
14447 if test -z "$ac_cpp_err"; then
14448   ac_header_preproc=yes
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453   ac_header_preproc=no
14454 fi
14455 rm -f conftest.err conftest.$ac_ext
14456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14457 echo "${ECHO_T}$ac_header_preproc" >&6
14458
14459 # So?  What about this header?
14460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14461   yes:no: )
14462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14466     ac_header_preproc=yes
14467     ;;
14468   no:yes:* )
14469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14481     (
14482       cat <<\_ASBOX
14483 ## ------------------------------ ##
14484 ## Report this to the ntp lists.  ##
14485 ## ------------------------------ ##
14486 _ASBOX
14487     ) |
14488       sed "s/^/$as_me: WARNING:     /" >&2
14489     ;;
14490 esac
14491 echo "$as_me:$LINENO: checking for $ac_header" >&5
14492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14494   echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496   eval "$as_ac_Header=\$ac_header_preproc"
14497 fi
14498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14500
14501 fi
14502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14503   cat >>confdefs.h <<_ACEOF
14504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14505 _ACEOF
14506
14507 fi
14508
14509 done
14510
14511 case "$ac_linuxcaps$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
14512  yesyesyes)
14513
14514 cat >>confdefs.h <<\_ACEOF
14515 #define HAVE_LINUX_CAPABILITIES
14516 _ACEOF
14517
14518
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_DROPROOT
14521 _ACEOF
14522
14523     LIBS="$LIBS -lcap"
14524     ;;
14525 esac
14526
14527 case "$build" in
14528  $host)
14529     ;;
14530  *) case "$host" in
14531      *-*-vxworks*)
14532         # Quick and dirty sanity check
14533         case "$VX_KERNEL" in
14534          '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/build/hints/vxworks.html!" >&5
14535 echo "$as_me: error: Please follow the directions in html/build/hints/vxworks.html!" >&2;}
14536    { (exit 1); exit 1; }; }
14537             ;;
14538         esac
14539         CFLAGS="$CFLAGS -DSYS_VXWORKS"
14540         ;;
14541     esac
14542     ;;
14543 esac
14544
14545 for ac_prog in gawk mawk nawk awk
14546 do
14547   # Extract the first word of "$ac_prog", so it can be a program name with args.
14548 set dummy $ac_prog; ac_word=$2
14549 echo "$as_me:$LINENO: checking for $ac_word" >&5
14550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14551 if test "${ac_cv_prog_AWK+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   if test -n "$AWK"; then
14555   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14556 else
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14559 do
14560   IFS=$as_save_IFS
14561   test -z "$as_dir" && as_dir=.
14562   for ac_exec_ext in '' $ac_executable_extensions; do
14563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14564     ac_cv_prog_AWK="$ac_prog"
14565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14566     break 2
14567   fi
14568 done
14569 done
14570
14571 fi
14572 fi
14573 AWK=$ac_cv_prog_AWK
14574 if test -n "$AWK"; then
14575   echo "$as_me:$LINENO: result: $AWK" >&5
14576 echo "${ECHO_T}$AWK" >&6
14577 else
14578   echo "$as_me:$LINENO: result: no" >&5
14579 echo "${ECHO_T}no" >&6
14580 fi
14581
14582   test -n "$AWK" && break
14583 done
14584
14585 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14586 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
14587 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
14588 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
14589   echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591   cat >conftest.make <<\_ACEOF
14592 all:
14593         @echo 'ac_maketemp="$(MAKE)"'
14594 _ACEOF
14595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14596 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
14597 if test -n "$ac_maketemp"; then
14598   eval ac_cv_prog_make_${ac_make}_set=yes
14599 else
14600   eval ac_cv_prog_make_${ac_make}_set=no
14601 fi
14602 rm -f conftest.make
14603 fi
14604 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
14605   echo "$as_me:$LINENO: result: yes" >&5
14606 echo "${ECHO_T}yes" >&6
14607   SET_MAKE=
14608 else
14609   echo "$as_me:$LINENO: result: no" >&5
14610 echo "${ECHO_T}no" >&6
14611   SET_MAKE="MAKE=${MAKE-make}"
14612 fi
14613
14614
14615 rm -f conftest*
14616
14617 case "$GCC" in
14618  yes)
14619     CFLAGS="$CFLAGS -Wall"
14620     # CFLAGS="$CFLAGS -Wcast-align"
14621     CFLAGS="$CFLAGS -Wcast-qual"
14622     # CFLAGS="$CFLAGS -Wconversion"
14623     # CFLAGS="$CFLAGS -Werror"
14624     # CFLAGS="$CFLAGS -Wextra"
14625     # CFLAGS="$CFLAGS -Wfloat-equal"
14626     CFLAGS="$CFLAGS -Wmissing-prototypes"
14627     CFLAGS="$CFLAGS -Wpointer-arith"
14628     CFLAGS="$CFLAGS -Wshadow"
14629     CFLAGS="$CFLAGS -Wstrict-prototypes"
14630     # CFLAGS="$CFLAGS -Wtraditional"
14631     # CFLAGS="$CFLAGS -Wwrite-strings"
14632
14633     ;;
14634 esac
14635
14636 case "$host" in
14637  *-next-nextstep3)
14638     CFLAGS="$CFLAGS -posix"
14639     ;;
14640 esac
14641
14642 ac_busted_vpath_in_make=no
14643
14644 case "$build" in
14645  *-*-irix6.1*)  # 64 bit only
14646     # busted vpath?
14647     ;;
14648  *-*-irix6*)    # 6.2 (and later?)
14649     ac_busted_vpath_in_make=yes
14650     ;;
14651  *-*-solaris2.5.1)
14652     ac_busted_vpath_in_make=yes
14653     ;;
14654  *-*-unicosmp*)
14655     ac_busted_vpath_in_make=yes
14656     ;;
14657 esac
14658
14659 case "$ac_busted_vpath_in_make$srcdir" in
14660  no*) ;;
14661  yes.) ;;
14662  *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
14663      '')
14664         { { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5
14665 echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
14666    { (exit 1); exit 1; }; }
14667         ;;
14668      *) ;;
14669     esac
14670     ;;
14671 esac
14672
14673
14674 # HMS: From bunnylou/cowbird
14675 case "$host" in
14676  alpha-dec-osf4.0)
14677     # Check whether --enable-shared or --disable-shared was given.
14678 if test "${enable_shared+set}" = set; then
14679   enableval="$enable_shared"
14680   p=${PACKAGE-default}
14681     case $enableval in
14682     yes) enable_shared=yes ;;
14683     no) enable_shared=no ;;
14684     *)
14685       enable_shared=no
14686       # Look at the argument we got.  We use all the common list separators.
14687       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14688       for pkg in $enableval; do
14689         IFS="$lt_save_ifs"
14690         if test "X$pkg" = "X$p"; then
14691           enable_shared=yes
14692         fi
14693       done
14694       IFS="$lt_save_ifs"
14695       ;;
14696     esac
14697 else
14698   enable_shared=no
14699 fi;
14700
14701
14702     ;;
14703  *) # So far, the only shared library we might use is libopts.
14704     # It's a small library - we might as well use a static version of it.
14705     # Check whether --enable-shared or --disable-shared was given.
14706 if test "${enable_shared+set}" = set; then
14707   enableval="$enable_shared"
14708   p=${PACKAGE-default}
14709     case $enableval in
14710     yes) enable_shared=yes ;;
14711     no) enable_shared=no ;;
14712     *)
14713       enable_shared=no
14714       # Look at the argument we got.  We use all the common list separators.
14715       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14716       for pkg in $enableval; do
14717         IFS="$lt_save_ifs"
14718         if test "X$pkg" = "X$p"; then
14719           enable_shared=yes
14720         fi
14721       done
14722       IFS="$lt_save_ifs"
14723       ;;
14724     esac
14725 else
14726   enable_shared=no
14727 fi;
14728
14729
14730     ;;
14731 esac
14732
14733 # Check whether --enable-static or --disable-static was given.
14734 if test "${enable_static+set}" = set; then
14735   enableval="$enable_static"
14736   p=${PACKAGE-default}
14737     case $enableval in
14738     yes) enable_static=yes ;;
14739     no) enable_static=no ;;
14740     *)
14741      enable_static=no
14742       # Look at the argument we got.  We use all the common list separators.
14743       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14744       for pkg in $enableval; do
14745         IFS="$lt_save_ifs"
14746         if test "X$pkg" = "X$p"; then
14747           enable_static=yes
14748         fi
14749       done
14750       IFS="$lt_save_ifs"
14751       ;;
14752     esac
14753 else
14754   enable_static=yes
14755 fi;
14756
14757 # Check whether --enable-fast-install or --disable-fast-install was given.
14758 if test "${enable_fast_install+set}" = set; then
14759   enableval="$enable_fast_install"
14760   p=${PACKAGE-default}
14761     case $enableval in
14762     yes) enable_fast_install=yes ;;
14763     no) enable_fast_install=no ;;
14764     *)
14765       enable_fast_install=no
14766       # Look at the argument we got.  We use all the common list separators.
14767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14768       for pkg in $enableval; do
14769         IFS="$lt_save_ifs"
14770         if test "X$pkg" = "X$p"; then
14771           enable_fast_install=yes
14772         fi
14773       done
14774       IFS="$lt_save_ifs"
14775       ;;
14776     esac
14777 else
14778   enable_fast_install=yes
14779 fi;
14780
14781 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14782 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14783 if test "${lt_cv_path_SED+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   # Loop through the user's path and test for sed and gsed.
14787 # Then use that list of sed's as ones to test for truncation.
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14790 do
14791   IFS=$as_save_IFS
14792   test -z "$as_dir" && as_dir=.
14793   for lt_ac_prog in sed gsed; do
14794     for ac_exec_ext in '' $ac_executable_extensions; do
14795       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14796         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14797       fi
14798     done
14799   done
14800 done
14801 lt_ac_max=0
14802 lt_ac_count=0
14803 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14804 # along with /bin/sed that truncates output.
14805 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14806   test ! -f $lt_ac_sed && continue
14807   cat /dev/null > conftest.in
14808   lt_ac_count=0
14809   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14810   # Check for GNU sed and select it if it is found.
14811   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14812     lt_cv_path_SED=$lt_ac_sed
14813     break
14814   fi
14815   while true; do
14816     cat conftest.in conftest.in >conftest.tmp
14817     mv conftest.tmp conftest.in
14818     cp conftest.in conftest.nl
14819     echo >>conftest.nl
14820     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14821     cmp -s conftest.out conftest.nl || break
14822     # 10000 chars as input seems more than enough
14823     test $lt_ac_count -gt 10 && break
14824     lt_ac_count=`expr $lt_ac_count + 1`
14825     if test $lt_ac_count -gt $lt_ac_max; then
14826       lt_ac_max=$lt_ac_count
14827       lt_cv_path_SED=$lt_ac_sed
14828     fi
14829   done
14830 done
14831
14832 fi
14833
14834 SED=$lt_cv_path_SED
14835 echo "$as_me:$LINENO: result: $SED" >&5
14836 echo "${ECHO_T}$SED" >&6
14837
14838
14839 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14840 if test "${with_gnu_ld+set}" = set; then
14841   withval="$with_gnu_ld"
14842   test "$withval" = no || with_gnu_ld=yes
14843 else
14844   with_gnu_ld=no
14845 fi;
14846 ac_prog=ld
14847 if test "$GCC" = yes; then
14848   # Check if gcc -print-prog-name=ld gives a path.
14849   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14850 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14851   case $host in
14852   *-*-mingw*)
14853     # gcc leaves a trailing carriage return which upsets mingw
14854     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14855   *)
14856     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14857   esac
14858   case $ac_prog in
14859     # Accept absolute paths.
14860     [\\/]* | ?:[\\/]*)
14861       re_direlt='/[^/][^/]*/\.\./'
14862       # Canonicalize the pathname of ld
14863       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14864       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14865         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14866       done
14867       test -z "$LD" && LD="$ac_prog"
14868       ;;
14869   "")
14870     # If it fails, then pretend we aren't using GCC.
14871     ac_prog=ld
14872     ;;
14873   *)
14874     # If it is relative, then search for the first ld in PATH.
14875     with_gnu_ld=unknown
14876     ;;
14877   esac
14878 elif test "$with_gnu_ld" = yes; then
14879   echo "$as_me:$LINENO: checking for GNU ld" >&5
14880 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14881 else
14882   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14883 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14884 fi
14885 if test "${lt_cv_path_LD+set}" = set; then
14886   echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888   if test -z "$LD"; then
14889   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14890   for ac_dir in $PATH; do
14891     IFS="$lt_save_ifs"
14892     test -z "$ac_dir" && ac_dir=.
14893     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14894       lt_cv_path_LD="$ac_dir/$ac_prog"
14895       # Check to see if the program is GNU ld.  I'd rather use --version,
14896       # but apparently some variants of GNU ld only accept -v.
14897       # Break only if it was the GNU/non-GNU ld that we prefer.
14898       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14899       *GNU* | *'with BFD'*)
14900         test "$with_gnu_ld" != no && break
14901         ;;
14902       *)
14903         test "$with_gnu_ld" != yes && break
14904         ;;
14905       esac
14906     fi
14907   done
14908   IFS="$lt_save_ifs"
14909 else
14910   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14911 fi
14912 fi
14913
14914 LD="$lt_cv_path_LD"
14915 if test -n "$LD"; then
14916   echo "$as_me:$LINENO: result: $LD" >&5
14917 echo "${ECHO_T}$LD" >&6
14918 else
14919   echo "$as_me:$LINENO: result: no" >&5
14920 echo "${ECHO_T}no" >&6
14921 fi
14922 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14923 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14924    { (exit 1); exit 1; }; }
14925 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14926 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14927 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14928   echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14931 case `$LD -v 2>&1 </dev/null` in
14932 *GNU* | *'with BFD'*)
14933   lt_cv_prog_gnu_ld=yes
14934   ;;
14935 *)
14936   lt_cv_prog_gnu_ld=no
14937   ;;
14938 esac
14939 fi
14940 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14941 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14942 with_gnu_ld=$lt_cv_prog_gnu_ld
14943
14944
14945 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14946 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14947 if test "${lt_cv_ld_reload_flag+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   lt_cv_ld_reload_flag='-r'
14951 fi
14952 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14953 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14954 reload_flag=$lt_cv_ld_reload_flag
14955 case $reload_flag in
14956 "" | " "*) ;;
14957 *) reload_flag=" $reload_flag" ;;
14958 esac
14959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14960 case $host_os in
14961   darwin*)
14962     if test "$GCC" = yes; then
14963       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
14964     else
14965       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14966     fi
14967     ;;
14968 esac
14969
14970 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
14971 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
14972 if test "${lt_cv_path_NM+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   if test -n "$NM"; then
14976   # Let the user override the test.
14977   lt_cv_path_NM="$NM"
14978 else
14979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14980   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
14981     IFS="$lt_save_ifs"
14982     test -z "$ac_dir" && ac_dir=.
14983     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
14984     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14985       # Check to see if the nm accepts a BSD-compat flag.
14986       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14987       #   nm: unknown option "B" ignored
14988       # Tru64's nm complains that /dev/null is an invalid object file
14989       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14990       */dev/null* | *'Invalid file or object type'*)
14991         lt_cv_path_NM="$tmp_nm -B"
14992         break
14993         ;;
14994       *)
14995         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14996         */dev/null*)
14997           lt_cv_path_NM="$tmp_nm -p"
14998           break
14999           ;;
15000         *)
15001           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15002           continue # so that we can try to find one that supports BSD flags
15003           ;;
15004         esac
15005       esac
15006     fi
15007   done
15008   IFS="$lt_save_ifs"
15009   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
15010 fi
15011 fi
15012 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
15013 echo "${ECHO_T}$lt_cv_path_NM" >&6
15014 NM="$lt_cv_path_NM"
15015
15016 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15017 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15018 LN_S=$as_ln_s
15019 if test "$LN_S" = "ln -s"; then
15020   echo "$as_me:$LINENO: result: yes" >&5
15021 echo "${ECHO_T}yes" >&6
15022 else
15023   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15024 echo "${ECHO_T}no, using $LN_S" >&6
15025 fi
15026
15027 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
15028 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
15029 if test "${lt_cv_deplibs_check_method+set}" = set; then
15030   echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032   lt_cv_file_magic_cmd='$MAGIC_CMD'
15033 lt_cv_file_magic_test_file=
15034 lt_cv_deplibs_check_method='unknown'
15035 # Need to set the preceding variable on all platforms that support
15036 # interlibrary dependencies.
15037 # 'none' -- dependencies not supported.
15038 # `unknown' -- same as none, but documents that we really don't know.
15039 # 'pass_all' -- all dependencies passed with no checks.
15040 # 'test_compile' -- check by making test program.
15041 # 'file_magic [[regex]]' -- check by looking for files in library path
15042 # which responds to the $file_magic_cmd with a given extended regex.
15043 # If you have `file' or equivalent on your system and you're not sure
15044 # whether `pass_all' will *always* work, you probably want this one.
15045
15046 case $host_os in
15047 aix4* | aix5*)
15048   lt_cv_deplibs_check_method=pass_all
15049   ;;
15050
15051 beos*)
15052   lt_cv_deplibs_check_method=pass_all
15053   ;;
15054
15055 bsdi[45]*)
15056   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15057   lt_cv_file_magic_cmd='/usr/bin/file -L'
15058   lt_cv_file_magic_test_file=/shlib/libc.so
15059   ;;
15060
15061 cygwin*)
15062   # func_win32_libid is a shell function defined in ltmain.sh
15063   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15064   lt_cv_file_magic_cmd='func_win32_libid'
15065   ;;
15066
15067 mingw* | pw32*)
15068   # Base MSYS/MinGW do not provide the 'file' command needed by
15069   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
15070   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15071   lt_cv_file_magic_cmd='$OBJDUMP -f'
15072   ;;
15073
15074 darwin* | rhapsody*)
15075   lt_cv_deplibs_check_method=pass_all
15076   ;;
15077
15078 freebsd* | kfreebsd*-gnu | dragonfly*)
15079   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15080     case $host_cpu in
15081     i*86 )
15082       # Not sure whether the presence of OpenBSD here was a mistake.
15083       # Let's accept both of them until this is cleared up.
15084       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15085       lt_cv_file_magic_cmd=/usr/bin/file
15086       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15087       ;;
15088     esac
15089   else
15090     lt_cv_deplibs_check_method=pass_all
15091   fi
15092   ;;
15093
15094 gnu*)
15095   lt_cv_deplibs_check_method=pass_all
15096   ;;
15097
15098 hpux10.20* | hpux11*)
15099   lt_cv_file_magic_cmd=/usr/bin/file
15100   case $host_cpu in
15101   ia64*)
15102     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15103     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15104     ;;
15105   hppa*64*)
15106     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]'
15107     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15108     ;;
15109   *)
15110     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15111     lt_cv_file_magic_test_file=/usr/lib/libc.sl
15112     ;;
15113   esac
15114   ;;
15115
15116 irix5* | irix6* | nonstopux*)
15117   case $LD in
15118   *-32|*"-32 ") libmagic=32-bit;;
15119   *-n32|*"-n32 ") libmagic=N32;;
15120   *-64|*"-64 ") libmagic=64-bit;;
15121   *) libmagic=never-match;;
15122   esac
15123   lt_cv_deplibs_check_method=pass_all
15124   ;;
15125
15126 # This must be Linux ELF.
15127 linux*)
15128   lt_cv_deplibs_check_method=pass_all
15129   ;;
15130
15131 netbsd*)
15132   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15134   else
15135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15136   fi
15137   ;;
15138
15139 newos6*)
15140   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15141   lt_cv_file_magic_cmd=/usr/bin/file
15142   lt_cv_file_magic_test_file=/usr/lib/libnls.so
15143   ;;
15144
15145 nto-qnx*)
15146   lt_cv_deplibs_check_method=unknown
15147   ;;
15148
15149 openbsd*)
15150   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15152   else
15153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15154   fi
15155   ;;
15156
15157 osf3* | osf4* | osf5*)
15158   lt_cv_deplibs_check_method=pass_all
15159   ;;
15160
15161 sco3.2v5*)
15162   lt_cv_deplibs_check_method=pass_all
15163   ;;
15164
15165 solaris*)
15166   lt_cv_deplibs_check_method=pass_all
15167   ;;
15168
15169 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15170   case $host_vendor in
15171   motorola)
15172     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]'
15173     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15174     ;;
15175   ncr)
15176     lt_cv_deplibs_check_method=pass_all
15177     ;;
15178   sequent)
15179     lt_cv_file_magic_cmd='/bin/file'
15180     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15181     ;;
15182   sni)
15183     lt_cv_file_magic_cmd='/bin/file'
15184     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15185     lt_cv_file_magic_test_file=/lib/libc.so
15186     ;;
15187   siemens)
15188     lt_cv_deplibs_check_method=pass_all
15189     ;;
15190   esac
15191   ;;
15192
15193 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
15194   lt_cv_deplibs_check_method=pass_all
15195   ;;
15196 esac
15197
15198 fi
15199 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15200 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15201 file_magic_cmd=$lt_cv_file_magic_cmd
15202 deplibs_check_method=$lt_cv_deplibs_check_method
15203 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15204
15205
15206
15207
15208 # If no C compiler was specified, use CC.
15209 LTCC=${LTCC-"$CC"}
15210
15211 # Allow CC to be a program name with arguments.
15212 compiler=$CC
15213
15214 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15215 if test "${enable_libtool_lock+set}" = set; then
15216   enableval="$enable_libtool_lock"
15217
15218 fi;
15219 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15220
15221 # Some flags need to be propagated to the compiler or linker for good
15222 # libtool support.
15223 case $host in
15224 ia64-*-hpux*)
15225   # Find out which ABI we are using.
15226   echo 'int i;' > conftest.$ac_ext
15227   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228   (eval $ac_compile) 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; then
15232     case `/usr/bin/file conftest.$ac_objext` in
15233     *ELF-32*)
15234       HPUX_IA64_MODE="32"
15235       ;;
15236     *ELF-64*)
15237       HPUX_IA64_MODE="64"
15238       ;;
15239     esac
15240   fi
15241   rm -rf conftest*
15242   ;;
15243 *-*-irix6*)
15244   # Find out which ABI we are using.
15245   echo '#line 15245 "configure"' > conftest.$ac_ext
15246   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247   (eval $ac_compile) 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); }; then
15251    if test "$lt_cv_prog_gnu_ld" = yes; then
15252     case `/usr/bin/file conftest.$ac_objext` in
15253     *32-bit*)
15254       LD="${LD-ld} -melf32bsmip"
15255       ;;
15256     *N32*)
15257       LD="${LD-ld} -melf32bmipn32"
15258       ;;
15259     *64-bit*)
15260       LD="${LD-ld} -melf64bmip"
15261       ;;
15262     esac
15263    else
15264     case `/usr/bin/file conftest.$ac_objext` in
15265     *32-bit*)
15266       LD="${LD-ld} -32"
15267       ;;
15268     *N32*)
15269       LD="${LD-ld} -n32"
15270       ;;
15271     *64-bit*)
15272       LD="${LD-ld} -64"
15273       ;;
15274     esac
15275    fi
15276   fi
15277   rm -rf conftest*
15278   ;;
15279
15280 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
15281   # Find out which ABI we are using.
15282   echo 'int i;' > conftest.$ac_ext
15283   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15284   (eval $ac_compile) 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; then
15288     case `/usr/bin/file conftest.o` in
15289     *32-bit*)
15290       case $host in
15291         x86_64-*linux*)
15292           LD="${LD-ld} -m elf_i386"
15293           ;;
15294         ppc64-*linux*|powerpc64-*linux*)
15295           LD="${LD-ld} -m elf32ppclinux"
15296           ;;
15297         s390x-*linux*)
15298           LD="${LD-ld} -m elf_s390"
15299           ;;
15300         sparc64-*linux*)
15301           LD="${LD-ld} -m elf32_sparc"
15302           ;;
15303       esac
15304       ;;
15305     *64-bit*)
15306       case $host in
15307         x86_64-*linux*)
15308           LD="${LD-ld} -m elf_x86_64"
15309           ;;
15310         ppc*-*linux*|powerpc*-*linux*)
15311           LD="${LD-ld} -m elf64ppc"
15312           ;;
15313         s390*-*linux*)
15314           LD="${LD-ld} -m elf64_s390"
15315           ;;
15316         sparc*-*linux*)
15317           LD="${LD-ld} -m elf64_sparc"
15318           ;;
15319       esac
15320       ;;
15321     esac
15322   fi
15323   rm -rf conftest*
15324   ;;
15325
15326 *-*-sco3.2v5*)
15327   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15328   SAVE_CFLAGS="$CFLAGS"
15329   CFLAGS="$CFLAGS -belf"
15330   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15331 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15332 if test "${lt_cv_cc_needs_belf+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   ac_ext=c
15336 ac_cpp='$CPP $CPPFLAGS'
15337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15340
15341      cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h.  */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h.  */
15347
15348 int
15349 main ()
15350 {
15351
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 rm -f conftest.$ac_objext conftest$ac_exeext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15358   (eval $ac_link) 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } &&
15365          { ac_try='test -z "$ac_c_werror_flag"
15366                          || test ! -s conftest.err'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; } &&
15372          { ac_try='test -s conftest$ac_exeext'
15373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374   (eval $ac_try) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; }; then
15378   lt_cv_cc_needs_belf=yes
15379 else
15380   echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 lt_cv_cc_needs_belf=no
15384 fi
15385 rm -f conftest.err conftest.$ac_objext \
15386       conftest$ac_exeext conftest.$ac_ext
15387      ac_ext=c
15388 ac_cpp='$CPP $CPPFLAGS'
15389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15392
15393 fi
15394 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15395 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15396   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15397     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15398     CFLAGS="$SAVE_CFLAGS"
15399   fi
15400   ;;
15401
15402 esac
15403
15404 need_locks="$enable_libtool_lock"
15405
15406
15407
15408 for ac_header in dlfcn.h
15409 do
15410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15412   echo "$as_me:$LINENO: checking for $ac_header" >&5
15413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15415   echo $ECHO_N "(cached) $ECHO_C" >&6
15416 fi
15417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15419 else
15420   # Is the header compilable?
15421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h.  */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h.  */
15429 $ac_includes_default
15430 #include <$ac_header>
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434   (eval $ac_compile) 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -z "$ac_c_werror_flag"
15442                          || test ! -s conftest.err'
15443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444   (eval $ac_try) 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; } &&
15448          { ac_try='test -s conftest.$ac_objext'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; }; then
15454   ac_header_compiler=yes
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 ac_header_compiler=no
15460 fi
15461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15463 echo "${ECHO_T}$ac_header_compiler" >&6
15464
15465 # Is the header present?
15466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474 #include <$ac_header>
15475 _ACEOF
15476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } >/dev/null; then
15484   if test -s conftest.err; then
15485     ac_cpp_err=$ac_c_preproc_warn_flag
15486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487   else
15488     ac_cpp_err=
15489   fi
15490 else
15491   ac_cpp_err=yes
15492 fi
15493 if test -z "$ac_cpp_err"; then
15494   ac_header_preproc=yes
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499   ac_header_preproc=no
15500 fi
15501 rm -f conftest.err conftest.$ac_ext
15502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 echo "${ECHO_T}$ac_header_preproc" >&6
15504
15505 # So?  What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15507   yes:no: )
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15512     ac_header_preproc=yes
15513     ;;
15514   no:yes:* )
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15527     (
15528       cat <<\_ASBOX
15529 ## ------------------------------ ##
15530 ## Report this to the ntp lists.  ##
15531 ## ------------------------------ ##
15532 _ASBOX
15533     ) |
15534       sed "s/^/$as_me: WARNING:     /" >&2
15535     ;;
15536 esac
15537 echo "$as_me:$LINENO: checking for $ac_header" >&5
15538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542   eval "$as_ac_Header=\$ac_header_preproc"
15543 fi
15544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15546
15547 fi
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549   cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554
15555 done
15556
15557 ac_ext=cc
15558 ac_cpp='$CXXCPP $CPPFLAGS'
15559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15562 if test -n "$ac_tool_prefix"; then
15563   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15564   do
15565     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15567 echo "$as_me:$LINENO: checking for $ac_word" >&5
15568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15569 if test "${ac_cv_prog_CXX+set}" = set; then
15570   echo $ECHO_N "(cached) $ECHO_C" >&6
15571 else
15572   if test -n "$CXX"; then
15573   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15574 else
15575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15576 for as_dir in $PATH
15577 do
15578   IFS=$as_save_IFS
15579   test -z "$as_dir" && as_dir=.
15580   for ac_exec_ext in '' $ac_executable_extensions; do
15581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15582     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15584     break 2
15585   fi
15586 done
15587 done
15588
15589 fi
15590 fi
15591 CXX=$ac_cv_prog_CXX
15592 if test -n "$CXX"; then
15593   echo "$as_me:$LINENO: result: $CXX" >&5
15594 echo "${ECHO_T}$CXX" >&6
15595 else
15596   echo "$as_me:$LINENO: result: no" >&5
15597 echo "${ECHO_T}no" >&6
15598 fi
15599
15600     test -n "$CXX" && break
15601   done
15602 fi
15603 if test -z "$CXX"; then
15604   ac_ct_CXX=$CXX
15605   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15606 do
15607   # Extract the first word of "$ac_prog", so it can be a program name with args.
15608 set dummy $ac_prog; ac_word=$2
15609 echo "$as_me:$LINENO: checking for $ac_word" >&5
15610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15611 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   if test -n "$ac_ct_CXX"; then
15615   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15616 else
15617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15618 for as_dir in $PATH
15619 do
15620   IFS=$as_save_IFS
15621   test -z "$as_dir" && as_dir=.
15622   for ac_exec_ext in '' $ac_executable_extensions; do
15623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15624     ac_cv_prog_ac_ct_CXX="$ac_prog"
15625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15626     break 2
15627   fi
15628 done
15629 done
15630
15631 fi
15632 fi
15633 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15634 if test -n "$ac_ct_CXX"; then
15635   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15636 echo "${ECHO_T}$ac_ct_CXX" >&6
15637 else
15638   echo "$as_me:$LINENO: result: no" >&5
15639 echo "${ECHO_T}no" >&6
15640 fi
15641
15642   test -n "$ac_ct_CXX" && break
15643 done
15644 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15645
15646   CXX=$ac_ct_CXX
15647 fi
15648
15649
15650 # Provide some information about the compiler.
15651 echo "$as_me:$LINENO:" \
15652      "checking for C++ compiler version" >&5
15653 ac_compiler=`set X $ac_compile; echo $2`
15654 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15655   (eval $ac_compiler --version </dev/null >&5) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }
15659 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15660   (eval $ac_compiler -v </dev/null >&5) 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }
15664 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15665   (eval $ac_compiler -V </dev/null >&5) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }
15669
15670 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15671 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15673   echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675   cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h.  */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h.  */
15681
15682 int
15683 main ()
15684 {
15685 #ifndef __GNUC__
15686        choke me
15687 #endif
15688
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695   (eval $ac_compile) 2>conftest.er1
15696   ac_status=$?
15697   grep -v '^ *+' conftest.er1 >conftest.err
15698   rm -f conftest.er1
15699   cat conftest.err >&5
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -z "$ac_cxx_werror_flag"
15703                          || test ! -s conftest.err'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; } &&
15709          { ac_try='test -s conftest.$ac_objext'
15710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711   (eval $ac_try) 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; }; then
15715   ac_compiler_gnu=yes
15716 else
15717   echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15719
15720 ac_compiler_gnu=no
15721 fi
15722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15723 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15724
15725 fi
15726 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15727 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15728 GXX=`test $ac_compiler_gnu = yes && echo yes`
15729 ac_test_CXXFLAGS=${CXXFLAGS+set}
15730 ac_save_CXXFLAGS=$CXXFLAGS
15731 CXXFLAGS="-g"
15732 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15733 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15734 if test "${ac_cv_prog_cxx_g+set}" = set; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743
15744 int
15745 main ()
15746 {
15747
15748   ;
15749   return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754   (eval $ac_compile) 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } &&
15761          { ac_try='test -z "$ac_cxx_werror_flag"
15762                          || test ! -s conftest.err'
15763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764   (eval $ac_try) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; } &&
15768          { ac_try='test -s conftest.$ac_objext'
15769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770   (eval $ac_try) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; }; then
15774   ac_cv_prog_cxx_g=yes
15775 else
15776   echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779 ac_cv_prog_cxx_g=no
15780 fi
15781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15782 fi
15783 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15784 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15785 if test "$ac_test_CXXFLAGS" = set; then
15786   CXXFLAGS=$ac_save_CXXFLAGS
15787 elif test $ac_cv_prog_cxx_g = yes; then
15788   if test "$GXX" = yes; then
15789     CXXFLAGS="-g -O2"
15790   else
15791     CXXFLAGS="-g"
15792   fi
15793 else
15794   if test "$GXX" = yes; then
15795     CXXFLAGS="-O2"
15796   else
15797     CXXFLAGS=
15798   fi
15799 fi
15800 for ac_declaration in \
15801    '' \
15802    'extern "C" void std::exit (int) throw (); using std::exit;' \
15803    'extern "C" void std::exit (int); using std::exit;' \
15804    'extern "C" void exit (int) throw ();' \
15805    'extern "C" void exit (int);' \
15806    'void exit (int);'
15807 do
15808   cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 $ac_declaration
15815 #include <stdlib.h>
15816 int
15817 main ()
15818 {
15819 exit (42);
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest.$ac_objext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15826   (eval $ac_compile) 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } &&
15833          { ac_try='test -z "$ac_cxx_werror_flag"
15834                          || test ! -s conftest.err'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; } &&
15840          { ac_try='test -s conftest.$ac_objext'
15841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842   (eval $ac_try) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; }; then
15846   :
15847 else
15848   echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851 continue
15852 fi
15853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15854   cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h.  */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h.  */
15860 $ac_declaration
15861 int
15862 main ()
15863 {
15864 exit (42);
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871   (eval $ac_compile) 2>conftest.er1
15872   ac_status=$?
15873   grep -v '^ *+' conftest.er1 >conftest.err
15874   rm -f conftest.er1
15875   cat conftest.err >&5
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } &&
15878          { ac_try='test -z "$ac_cxx_werror_flag"
15879                          || test ! -s conftest.err'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; } &&
15885          { ac_try='test -s conftest.$ac_objext'
15886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887   (eval $ac_try) 2>&5
15888   ac_status=$?
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); }; }; then
15891   break
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 fi
15897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15898 done
15899 rm -f conftest*
15900 if test -n "$ac_declaration"; then
15901   echo '#ifdef __cplusplus' >>confdefs.h
15902   echo $ac_declaration      >>confdefs.h
15903   echo '#endif'             >>confdefs.h
15904 fi
15905
15906 ac_ext=cc
15907 ac_cpp='$CXXCPP $CPPFLAGS'
15908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15911
15912 depcc="$CXX"  am_compiler_list=
15913
15914 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15915 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15916 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15920   # We make a subdir and do the tests there.  Otherwise we can end up
15921   # making bogus files that we don't know about and never remove.  For
15922   # instance it was reported that on HP-UX the gcc test will end up
15923   # making a dummy file named `D' -- because `-MD' means `put the output
15924   # in D'.
15925   mkdir conftest.dir
15926   # Copy depcomp to subdir because otherwise we won't find it if we're
15927   # using a relative directory.
15928   cp "$am_depcomp" conftest.dir
15929   cd conftest.dir
15930   # We will build objects and dependencies in a subdirectory because
15931   # it helps to detect inapplicable dependency modes.  For instance
15932   # both Tru64's cc and ICC support -MD to output dependencies as a
15933   # side effect of compilation, but ICC will put the dependencies in
15934   # the current directory while Tru64 will put them in the object
15935   # directory.
15936   mkdir sub
15937
15938   am_cv_CXX_dependencies_compiler_type=none
15939   if test "$am_compiler_list" = ""; then
15940      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15941   fi
15942   for depmode in $am_compiler_list; do
15943     # Setup a source with many dependencies, because some compilers
15944     # like to wrap large dependency lists on column 80 (with \), and
15945     # we should not choose a depcomp mode which is confused by this.
15946     #
15947     # We need to recreate these files for each test, as the compiler may
15948     # overwrite some of them when testing with obscure command lines.
15949     # This happens at least with the AIX C compiler.
15950     : > sub/conftest.c
15951     for i in 1 2 3 4 5 6; do
15952       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15953       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15954       # Solaris 8's {/usr,}/bin/sh.
15955       touch sub/conftst$i.h
15956     done
15957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15958
15959     case $depmode in
15960     nosideeffect)
15961       # after this tag, mechanisms are not by side-effect, so they'll
15962       # only be used when explicitly requested
15963       if test "x$enable_dependency_tracking" = xyes; then
15964         continue
15965       else
15966         break
15967       fi
15968       ;;
15969     none) break ;;
15970     esac
15971     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15972     # mode.  It turns out that the SunPro C++ compiler does not properly
15973     # handle `-M -o', and we need to detect this.
15974     if depmode=$depmode \
15975        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15976        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15977        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15978          >/dev/null 2>conftest.err &&
15979        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15980        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15981        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15982       # icc doesn't choke on unknown options, it will just issue warnings
15983       # or remarks (even with -Werror).  So we grep stderr for any message
15984       # that says an option was ignored or not supported.
15985       # When given -MP, icc 7.0 and 7.1 complain thusly:
15986       #   icc: Command line warning: ignoring option '-M'; no argument required
15987       # The diagnosis changed in icc 8.0:
15988       #   icc: Command line remark: option '-MP' not supported
15989       if (grep 'ignoring option' conftest.err ||
15990           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15991         am_cv_CXX_dependencies_compiler_type=$depmode
15992         break
15993       fi
15994     fi
15995   done
15996
15997   cd ..
15998   rm -rf conftest.dir
15999 else
16000   am_cv_CXX_dependencies_compiler_type=none
16001 fi
16002
16003 fi
16004 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16005 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
16006 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16007
16008
16009
16010 if
16011   test "x$enable_dependency_tracking" != xno \
16012   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16013   am__fastdepCXX_TRUE=
16014   am__fastdepCXX_FALSE='#'
16015 else
16016   am__fastdepCXX_TRUE='#'
16017   am__fastdepCXX_FALSE=
16018 fi
16019
16020
16021
16022
16023 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16024     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16025     (test "X$CXX" != "Xg++"))) ; then
16026   ac_ext=cc
16027 ac_cpp='$CXXCPP $CPPFLAGS'
16028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16031 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16032 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16033 if test -z "$CXXCPP"; then
16034   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037       # Double quotes because CXXCPP needs to be expanded
16038     for CXXCPP in "$CXX -E" "/lib/cpp"
16039     do
16040       ac_preproc_ok=false
16041 for ac_cxx_preproc_warn_flag in '' yes
16042 do
16043   # Use a header file that comes with gcc, so configuring glibc
16044   # with a fresh cross-compiler works.
16045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046   # <limits.h> exists even on freestanding compilers.
16047   # On the NeXT, cc -E runs the code through the compiler's parser,
16048   # not just through cpp. "Syntax error" is here to catch this case.
16049   cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055 #ifdef __STDC__
16056 # include <limits.h>
16057 #else
16058 # include <assert.h>
16059 #endif
16060                      Syntax error
16061 _ACEOF
16062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16064   ac_status=$?
16065   grep -v '^ *+' conftest.er1 >conftest.err
16066   rm -f conftest.er1
16067   cat conftest.err >&5
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } >/dev/null; then
16070   if test -s conftest.err; then
16071     ac_cpp_err=$ac_cxx_preproc_warn_flag
16072     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16073   else
16074     ac_cpp_err=
16075   fi
16076 else
16077   ac_cpp_err=yes
16078 fi
16079 if test -z "$ac_cpp_err"; then
16080   :
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085   # Broken: fails on valid input.
16086 continue
16087 fi
16088 rm -f conftest.err conftest.$ac_ext
16089
16090   # OK, works on sane cases.  Now check whether non-existent headers
16091   # can be detected and how.
16092   cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h.  */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h.  */
16098 #include <ac_nonexistent.h>
16099 _ACEOF
16100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } >/dev/null; then
16108   if test -s conftest.err; then
16109     ac_cpp_err=$ac_cxx_preproc_warn_flag
16110     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16111   else
16112     ac_cpp_err=
16113   fi
16114 else
16115   ac_cpp_err=yes
16116 fi
16117 if test -z "$ac_cpp_err"; then
16118   # Broken: success on invalid input.
16119 continue
16120 else
16121   echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124   # Passes both tests.
16125 ac_preproc_ok=:
16126 break
16127 fi
16128 rm -f conftest.err conftest.$ac_ext
16129
16130 done
16131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16132 rm -f conftest.err conftest.$ac_ext
16133 if $ac_preproc_ok; then
16134   break
16135 fi
16136
16137     done
16138     ac_cv_prog_CXXCPP=$CXXCPP
16139
16140 fi
16141   CXXCPP=$ac_cv_prog_CXXCPP
16142 else
16143   ac_cv_prog_CXXCPP=$CXXCPP
16144 fi
16145 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16146 echo "${ECHO_T}$CXXCPP" >&6
16147 ac_preproc_ok=false
16148 for ac_cxx_preproc_warn_flag in '' yes
16149 do
16150   # Use a header file that comes with gcc, so configuring glibc
16151   # with a fresh cross-compiler works.
16152   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16153   # <limits.h> exists even on freestanding compilers.
16154   # On the NeXT, cc -E runs the code through the compiler's parser,
16155   # not just through cpp. "Syntax error" is here to catch this case.
16156   cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #ifdef __STDC__
16163 # include <limits.h>
16164 #else
16165 # include <assert.h>
16166 #endif
16167                      Syntax error
16168 _ACEOF
16169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } >/dev/null; then
16177   if test -s conftest.err; then
16178     ac_cpp_err=$ac_cxx_preproc_warn_flag
16179     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16180   else
16181     ac_cpp_err=
16182   fi
16183 else
16184   ac_cpp_err=yes
16185 fi
16186 if test -z "$ac_cpp_err"; then
16187   :
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192   # Broken: fails on valid input.
16193 continue
16194 fi
16195 rm -f conftest.err conftest.$ac_ext
16196
16197   # OK, works on sane cases.  Now check whether non-existent headers
16198   # can be detected and how.
16199   cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205 #include <ac_nonexistent.h>
16206 _ACEOF
16207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } >/dev/null; then
16215   if test -s conftest.err; then
16216     ac_cpp_err=$ac_cxx_preproc_warn_flag
16217     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16218   else
16219     ac_cpp_err=
16220   fi
16221 else
16222   ac_cpp_err=yes
16223 fi
16224 if test -z "$ac_cpp_err"; then
16225   # Broken: success on invalid input.
16226 continue
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231   # Passes both tests.
16232 ac_preproc_ok=:
16233 break
16234 fi
16235 rm -f conftest.err conftest.$ac_ext
16236
16237 done
16238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16239 rm -f conftest.err conftest.$ac_ext
16240 if $ac_preproc_ok; then
16241   :
16242 else
16243   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16244 See \`config.log' for more details." >&5
16245 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16246 See \`config.log' for more details." >&2;}
16247    { (exit 1); exit 1; }; }
16248 fi
16249
16250 ac_ext=cc
16251 ac_cpp='$CXXCPP $CPPFLAGS'
16252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16255
16256 fi
16257
16258
16259 ac_ext=f
16260 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16261 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16262 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16263 if test -n "$ac_tool_prefix"; then
16264   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16265   do
16266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16268 echo "$as_me:$LINENO: checking for $ac_word" >&5
16269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16270 if test "${ac_cv_prog_F77+set}" = set; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273   if test -n "$F77"; then
16274   ac_cv_prog_F77="$F77" # Let the user override the test.
16275 else
16276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16277 for as_dir in $PATH
16278 do
16279   IFS=$as_save_IFS
16280   test -z "$as_dir" && as_dir=.
16281   for ac_exec_ext in '' $ac_executable_extensions; do
16282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16283     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16285     break 2
16286   fi
16287 done
16288 done
16289
16290 fi
16291 fi
16292 F77=$ac_cv_prog_F77
16293 if test -n "$F77"; then
16294   echo "$as_me:$LINENO: result: $F77" >&5
16295 echo "${ECHO_T}$F77" >&6
16296 else
16297   echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6
16299 fi
16300
16301     test -n "$F77" && break
16302   done
16303 fi
16304 if test -z "$F77"; then
16305   ac_ct_F77=$F77
16306   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16307 do
16308   # Extract the first word of "$ac_prog", so it can be a program name with args.
16309 set dummy $ac_prog; ac_word=$2
16310 echo "$as_me:$LINENO: checking for $ac_word" >&5
16311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16312 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
16313   echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315   if test -n "$ac_ct_F77"; then
16316   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16317 else
16318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16319 for as_dir in $PATH
16320 do
16321   IFS=$as_save_IFS
16322   test -z "$as_dir" && as_dir=.
16323   for ac_exec_ext in '' $ac_executable_extensions; do
16324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16325     ac_cv_prog_ac_ct_F77="$ac_prog"
16326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16327     break 2
16328   fi
16329 done
16330 done
16331
16332 fi
16333 fi
16334 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16335 if test -n "$ac_ct_F77"; then
16336   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
16337 echo "${ECHO_T}$ac_ct_F77" >&6
16338 else
16339   echo "$as_me:$LINENO: result: no" >&5
16340 echo "${ECHO_T}no" >&6
16341 fi
16342
16343   test -n "$ac_ct_F77" && break
16344 done
16345
16346   F77=$ac_ct_F77
16347 fi
16348
16349
16350 # Provide some information about the compiler.
16351 echo "$as_me:16351:" \
16352      "checking for Fortran 77 compiler version" >&5
16353 ac_compiler=`set X $ac_compile; echo $2`
16354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16355   (eval $ac_compiler --version </dev/null >&5) 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }
16359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16360   (eval $ac_compiler -v </dev/null >&5) 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); }
16364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16365   (eval $ac_compiler -V </dev/null >&5) 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }
16369 rm -f a.out
16370
16371 # If we don't use `.F' as extension, the preprocessor is not run on the
16372 # input file.  (Note that this only needs to work for GNU compilers.)
16373 ac_save_ext=$ac_ext
16374 ac_ext=F
16375 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16376 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
16377 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
16378   echo $ECHO_N "(cached) $ECHO_C" >&6
16379 else
16380   cat >conftest.$ac_ext <<_ACEOF
16381       program main
16382 #ifndef __GNUC__
16383        choke me
16384 #endif
16385
16386       end
16387 _ACEOF
16388 rm -f conftest.$ac_objext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16390   (eval $ac_compile) 2>conftest.er1
16391   ac_status=$?
16392   grep -v '^ *+' conftest.er1 >conftest.err
16393   rm -f conftest.er1
16394   cat conftest.err >&5
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } &&
16397          { ac_try='test -z "$ac_f77_werror_flag"
16398                          || test ! -s conftest.err'
16399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400   (eval $ac_try) 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; } &&
16404          { ac_try='test -s conftest.$ac_objext'
16405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406   (eval $ac_try) 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   ac_compiler_gnu=yes
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_compiler_gnu=no
16416 fi
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16419
16420 fi
16421 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16422 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
16423 ac_ext=$ac_save_ext
16424 ac_test_FFLAGS=${FFLAGS+set}
16425 ac_save_FFLAGS=$FFLAGS
16426 FFLAGS=
16427 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16428 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
16429 if test "${ac_cv_prog_f77_g+set}" = set; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432   FFLAGS=-g
16433 cat >conftest.$ac_ext <<_ACEOF
16434       program main
16435
16436       end
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440   (eval $ac_compile) 2>conftest.er1
16441   ac_status=$?
16442   grep -v '^ *+' conftest.er1 >conftest.err
16443   rm -f conftest.er1
16444   cat conftest.err >&5
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); } &&
16447          { ac_try='test -z "$ac_f77_werror_flag"
16448                          || test ! -s conftest.err'
16449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450   (eval $ac_try) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; } &&
16454          { ac_try='test -s conftest.$ac_objext'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; }; then
16460   ac_cv_prog_f77_g=yes
16461 else
16462   echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_cv_prog_f77_g=no
16466 fi
16467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16468
16469 fi
16470 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16471 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16472 if test "$ac_test_FFLAGS" = set; then
16473   FFLAGS=$ac_save_FFLAGS
16474 elif test $ac_cv_prog_f77_g = yes; then
16475   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16476     FFLAGS="-g -O2"
16477   else
16478     FFLAGS="-g"
16479   fi
16480 else
16481   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16482     FFLAGS="-O2"
16483   else
16484     FFLAGS=
16485   fi
16486 fi
16487
16488 G77=`test $ac_compiler_gnu = yes && echo yes`
16489 ac_ext=c
16490 ac_cpp='$CPP $CPPFLAGS'
16491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16494
16495
16496
16497 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16498
16499 # find the maximum length of command line arguments
16500 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16501 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16502 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505     i=0
16506   teststring="ABCD"
16507
16508   case $build_os in
16509   msdosdjgpp*)
16510     # On DJGPP, this test can blow up pretty badly due to problems in libc
16511     # (any single argument exceeding 2000 bytes causes a buffer overrun
16512     # during glob expansion).  Even if it were fixed, the result of this
16513     # check would be larger than it should be.
16514     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
16515     ;;
16516
16517   gnu*)
16518     # Under GNU Hurd, this test is not required because there is
16519     # no limit to the length of command line arguments.
16520     # Libtool will interpret -1 as no limit whatsoever
16521     lt_cv_sys_max_cmd_len=-1;
16522     ;;
16523
16524   cygwin* | mingw*)
16525     # On Win9x/ME, this test blows up -- it succeeds, but takes
16526     # about 5 minutes as the teststring grows exponentially.
16527     # Worse, since 9x/ME are not pre-emptively multitasking,
16528     # you end up with a "frozen" computer, even though with patience
16529     # the test eventually succeeds (with a max line length of 256k).
16530     # Instead, let's just punt: use the minimum linelength reported by
16531     # all of the supported platforms: 8192 (on NT/2K/XP).
16532     lt_cv_sys_max_cmd_len=8192;
16533     ;;
16534
16535   amigaos*)
16536     # On AmigaOS with pdksh, this test takes hours, literally.
16537     # So we just punt and use a minimum line length of 8192.
16538     lt_cv_sys_max_cmd_len=8192;
16539     ;;
16540
16541   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16542     # This has been around since 386BSD, at least.  Likely further.
16543     if test -x /sbin/sysctl; then
16544       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16545     elif test -x /usr/sbin/sysctl; then
16546       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16547     else
16548       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
16549     fi
16550     # And add a safety zone
16551     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16552     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16553     ;;
16554   osf*)
16555     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16556     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16557     # nice to cause kernel panics so lets avoid the loop below.
16558     # First set a reasonable default.
16559     lt_cv_sys_max_cmd_len=16384
16560     #
16561     if test -x /sbin/sysconfig; then
16562       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16563         *1*) lt_cv_sys_max_cmd_len=-1 ;;
16564       esac
16565     fi
16566     ;;
16567   *)
16568     # If test is not a shell built-in, we'll probably end up computing a
16569     # maximum length that is only half of the actual maximum length, but
16570     # we can't tell.
16571     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16572     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16573                = "XX$teststring") >/dev/null 2>&1 &&
16574             new_result=`expr "X$teststring" : ".*" 2>&1` &&
16575             lt_cv_sys_max_cmd_len=$new_result &&
16576             test $i != 17 # 1/2 MB should be enough
16577     do
16578       i=`expr $i + 1`
16579       teststring=$teststring$teststring
16580     done
16581     teststring=
16582     # Add a significant safety factor because C++ compilers can tack on massive
16583     # amounts of additional arguments before passing them to the linker.
16584     # It appears as though 1/2 is a usable value.
16585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16586     ;;
16587   esac
16588
16589 fi
16590
16591 if test -n $lt_cv_sys_max_cmd_len ; then
16592   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16593 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16594 else
16595   echo "$as_me:$LINENO: result: none" >&5
16596 echo "${ECHO_T}none" >&6
16597 fi
16598
16599
16600
16601
16602 # Check for command to grab the raw symbol name followed by C symbol from nm.
16603 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16604 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16605 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608
16609 # These are sane defaults that work on at least a few old systems.
16610 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16611
16612 # Character class describing NM global symbol codes.
16613 symcode='[BCDEGRST]'
16614
16615 # Regexp to match symbols that can be accessed directly from C.
16616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16617
16618 # Transform an extracted symbol line into a proper C declaration
16619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16620
16621 # Transform an extracted symbol line into symbol name and symbol address
16622 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'"
16623
16624 # Define system-specific variables.
16625 case $host_os in
16626 aix*)
16627   symcode='[BCDT]'
16628   ;;
16629 cygwin* | mingw* | pw32*)
16630   symcode='[ABCDGISTW]'
16631   ;;
16632 hpux*) # Its linker distinguishes data from code symbols
16633   if test "$host_cpu" = ia64; then
16634     symcode='[ABCDEGRST]'
16635   fi
16636   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16637   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'"
16638   ;;
16639 linux*)
16640   if test "$host_cpu" = ia64; then
16641     symcode='[ABCDGIRSTW]'
16642     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16643     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'"
16644   fi
16645   ;;
16646 irix* | nonstopux*)
16647   symcode='[BCDEGRST]'
16648   ;;
16649 osf*)
16650   symcode='[BCDEGQRST]'
16651   ;;
16652 solaris* | sysv5*)
16653   symcode='[BDRT]'
16654   ;;
16655 sysv4)
16656   symcode='[DFNSTU]'
16657   ;;
16658 esac
16659
16660 # Handle CRLF in mingw tool chain
16661 opt_cr=
16662 case $build_os in
16663 mingw*)
16664   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16665   ;;
16666 esac
16667
16668 # If we're using GNU nm, then use its standard symbol codes.
16669 case `$NM -V 2>&1` in
16670 *GNU* | *'with BFD'*)
16671   symcode='[ABCDGIRSTW]' ;;
16672 esac
16673
16674 # Try without a prefix undercore, then with it.
16675 for ac_symprfx in "" "_"; do
16676
16677   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16678   symxfrm="\\1 $ac_symprfx\\2 \\2"
16679
16680   # Write the raw and C identifiers.
16681   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16682
16683   # Check to see that the pipe works correctly.
16684   pipe_works=no
16685
16686   rm -f conftest*
16687   cat > conftest.$ac_ext <<EOF
16688 #ifdef __cplusplus
16689 extern "C" {
16690 #endif
16691 char nm_test_var;
16692 void nm_test_func(){}
16693 #ifdef __cplusplus
16694 }
16695 #endif
16696 int main(){nm_test_var='a';nm_test_func();return(0);}
16697 EOF
16698
16699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700   (eval $ac_compile) 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; then
16704     # Now try to grab the symbols.
16705     nlist=conftest.nm
16706     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16707   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } && test -s "$nlist"; then
16711       # Try sorting and uniquifying the output.
16712       if sort "$nlist" | uniq > "$nlist"T; then
16713         mv -f "$nlist"T "$nlist"
16714       else
16715         rm -f "$nlist"T
16716       fi
16717
16718       # Make sure that we snagged all the symbols we need.
16719       if grep ' nm_test_var$' "$nlist" >/dev/null; then
16720         if grep ' nm_test_func$' "$nlist" >/dev/null; then
16721           cat <<EOF > conftest.$ac_ext
16722 #ifdef __cplusplus
16723 extern "C" {
16724 #endif
16725
16726 EOF
16727           # Now generate the symbol file.
16728           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16729
16730           cat <<EOF >> conftest.$ac_ext
16731 #if defined (__STDC__) && __STDC__
16732 # define lt_ptr_t void *
16733 #else
16734 # define lt_ptr_t char *
16735 # define const
16736 #endif
16737
16738 /* The mapping between symbol names and symbols. */
16739 const struct {
16740   const char *name;
16741   lt_ptr_t address;
16742 }
16743 lt_preloaded_symbols[] =
16744 {
16745 EOF
16746           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16747           cat <<\EOF >> conftest.$ac_ext
16748   {0, (lt_ptr_t) 0}
16749 };
16750
16751 #ifdef __cplusplus
16752 }
16753 #endif
16754 EOF
16755           # Now try linking the two files.
16756           mv conftest.$ac_objext conftstm.$ac_objext
16757           lt_save_LIBS="$LIBS"
16758           lt_save_CFLAGS="$CFLAGS"
16759           LIBS="conftstm.$ac_objext"
16760           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16761           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762   (eval $ac_link) 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } && test -s conftest${ac_exeext}; then
16766             pipe_works=yes
16767           fi
16768           LIBS="$lt_save_LIBS"
16769           CFLAGS="$lt_save_CFLAGS"
16770         else
16771           echo "cannot find nm_test_func in $nlist" >&5
16772         fi
16773       else
16774         echo "cannot find nm_test_var in $nlist" >&5
16775       fi
16776     else
16777       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16778     fi
16779   else
16780     echo "$progname: failed program was:" >&5
16781     cat conftest.$ac_ext >&5
16782   fi
16783   rm -f conftest* conftst*
16784
16785   # Do not use the global_symbol_pipe unless it works.
16786   if test "$pipe_works" = yes; then
16787     break
16788   else
16789     lt_cv_sys_global_symbol_pipe=
16790   fi
16791 done
16792
16793 fi
16794
16795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16796   lt_cv_sys_global_symbol_to_cdecl=
16797 fi
16798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16799   echo "$as_me:$LINENO: result: failed" >&5
16800 echo "${ECHO_T}failed" >&6
16801 else
16802   echo "$as_me:$LINENO: result: ok" >&5
16803 echo "${ECHO_T}ok" >&6
16804 fi
16805
16806 echo "$as_me:$LINENO: checking for objdir" >&5
16807 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16808 if test "${lt_cv_objdir+set}" = set; then
16809   echo $ECHO_N "(cached) $ECHO_C" >&6
16810 else
16811   rm -f .libs 2>/dev/null
16812 mkdir .libs 2>/dev/null
16813 if test -d .libs; then
16814   lt_cv_objdir=.libs
16815 else
16816   # MS-DOS does not allow filenames that begin with a dot.
16817   lt_cv_objdir=_libs
16818 fi
16819 rmdir .libs 2>/dev/null
16820 fi
16821 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16822 echo "${ECHO_T}$lt_cv_objdir" >&6
16823 objdir=$lt_cv_objdir
16824
16825
16826
16827
16828
16829 case $host_os in
16830 aix3*)
16831   # AIX sometimes has problems with the GCC collect2 program.  For some
16832   # reason, if we set the COLLECT_NAMES environment variable, the problems
16833   # vanish in a puff of smoke.
16834   if test "X${COLLECT_NAMES+set}" != Xset; then
16835     COLLECT_NAMES=
16836     export COLLECT_NAMES
16837   fi
16838   ;;
16839 esac
16840
16841 # Sed substitution that helps us do robust quoting.  It backslashifies
16842 # metacharacters that are still active within double-quoted strings.
16843 Xsed='sed -e 1s/^X//'
16844 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16845
16846 # Same as above, but do not quote variable references.
16847 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16848
16849 # Sed substitution to delay expansion of an escaped shell variable in a
16850 # double_quote_subst'ed string.
16851 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16852
16853 # Sed substitution to avoid accidental globbing in evaled expressions
16854 no_glob_subst='s/\*/\\\*/g'
16855
16856 # Constants:
16857 rm="rm -f"
16858
16859 # Global variables:
16860 default_ofile=libtool
16861 can_build_shared=yes
16862
16863 # All known linkers require a `.a' archive for static linking (except MSVC,
16864 # which needs '.lib').
16865 libext=a
16866 ltmain="$ac_aux_dir/ltmain.sh"
16867 ofile="$default_ofile"
16868 with_gnu_ld="$lt_cv_prog_gnu_ld"
16869
16870 if test -n "$ac_tool_prefix"; then
16871   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16872 set dummy ${ac_tool_prefix}ar; ac_word=$2
16873 echo "$as_me:$LINENO: checking for $ac_word" >&5
16874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16875 if test "${ac_cv_prog_AR+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   if test -n "$AR"; then
16879   ac_cv_prog_AR="$AR" # Let the user override the test.
16880 else
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882 for as_dir in $PATH
16883 do
16884   IFS=$as_save_IFS
16885   test -z "$as_dir" && as_dir=.
16886   for ac_exec_ext in '' $ac_executable_extensions; do
16887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16888     ac_cv_prog_AR="${ac_tool_prefix}ar"
16889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16890     break 2
16891   fi
16892 done
16893 done
16894
16895 fi
16896 fi
16897 AR=$ac_cv_prog_AR
16898 if test -n "$AR"; then
16899   echo "$as_me:$LINENO: result: $AR" >&5
16900 echo "${ECHO_T}$AR" >&6
16901 else
16902   echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6
16904 fi
16905
16906 fi
16907 if test -z "$ac_cv_prog_AR"; then
16908   ac_ct_AR=$AR
16909   # Extract the first word of "ar", so it can be a program name with args.
16910 set dummy ar; ac_word=$2
16911 echo "$as_me:$LINENO: checking for $ac_word" >&5
16912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16913 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   if test -n "$ac_ct_AR"; then
16917   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16918 else
16919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920 for as_dir in $PATH
16921 do
16922   IFS=$as_save_IFS
16923   test -z "$as_dir" && as_dir=.
16924   for ac_exec_ext in '' $ac_executable_extensions; do
16925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16926     ac_cv_prog_ac_ct_AR="ar"
16927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16928     break 2
16929   fi
16930 done
16931 done
16932
16933   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16934 fi
16935 fi
16936 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16937 if test -n "$ac_ct_AR"; then
16938   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16939 echo "${ECHO_T}$ac_ct_AR" >&6
16940 else
16941   echo "$as_me:$LINENO: result: no" >&5
16942 echo "${ECHO_T}no" >&6
16943 fi
16944
16945   AR=$ac_ct_AR
16946 else
16947   AR="$ac_cv_prog_AR"
16948 fi
16949
16950 if test -n "$ac_tool_prefix"; then
16951   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16952 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16953 echo "$as_me:$LINENO: checking for $ac_word" >&5
16954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16955 if test "${ac_cv_prog_RANLIB+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   if test -n "$RANLIB"; then
16959   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16960 else
16961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16962 for as_dir in $PATH
16963 do
16964   IFS=$as_save_IFS
16965   test -z "$as_dir" && as_dir=.
16966   for ac_exec_ext in '' $ac_executable_extensions; do
16967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16968     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16970     break 2
16971   fi
16972 done
16973 done
16974
16975 fi
16976 fi
16977 RANLIB=$ac_cv_prog_RANLIB
16978 if test -n "$RANLIB"; then
16979   echo "$as_me:$LINENO: result: $RANLIB" >&5
16980 echo "${ECHO_T}$RANLIB" >&6
16981 else
16982   echo "$as_me:$LINENO: result: no" >&5
16983 echo "${ECHO_T}no" >&6
16984 fi
16985
16986 fi
16987 if test -z "$ac_cv_prog_RANLIB"; then
16988   ac_ct_RANLIB=$RANLIB
16989   # Extract the first word of "ranlib", so it can be a program name with args.
16990 set dummy ranlib; ac_word=$2
16991 echo "$as_me:$LINENO: checking for $ac_word" >&5
16992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16994   echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996   if test -n "$ac_ct_RANLIB"; then
16997   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16998 else
16999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17000 for as_dir in $PATH
17001 do
17002   IFS=$as_save_IFS
17003   test -z "$as_dir" && as_dir=.
17004   for ac_exec_ext in '' $ac_executable_extensions; do
17005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17006     ac_cv_prog_ac_ct_RANLIB="ranlib"
17007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17008     break 2
17009   fi
17010 done
17011 done
17012
17013   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
17014 fi
17015 fi
17016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17017 if test -n "$ac_ct_RANLIB"; then
17018   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
17019 echo "${ECHO_T}$ac_ct_RANLIB" >&6
17020 else
17021   echo "$as_me:$LINENO: result: no" >&5
17022 echo "${ECHO_T}no" >&6
17023 fi
17024
17025   RANLIB=$ac_ct_RANLIB
17026 else
17027   RANLIB="$ac_cv_prog_RANLIB"
17028 fi
17029
17030 if test -n "$ac_tool_prefix"; then
17031   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17032 set dummy ${ac_tool_prefix}strip; ac_word=$2
17033 echo "$as_me:$LINENO: checking for $ac_word" >&5
17034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17035 if test "${ac_cv_prog_STRIP+set}" = set; then
17036   echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038   if test -n "$STRIP"; then
17039   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17040 else
17041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17042 for as_dir in $PATH
17043 do
17044   IFS=$as_save_IFS
17045   test -z "$as_dir" && as_dir=.
17046   for ac_exec_ext in '' $ac_executable_extensions; do
17047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17048     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17050     break 2
17051   fi
17052 done
17053 done
17054
17055 fi
17056 fi
17057 STRIP=$ac_cv_prog_STRIP
17058 if test -n "$STRIP"; then
17059   echo "$as_me:$LINENO: result: $STRIP" >&5
17060 echo "${ECHO_T}$STRIP" >&6
17061 else
17062   echo "$as_me:$LINENO: result: no" >&5
17063 echo "${ECHO_T}no" >&6
17064 fi
17065
17066 fi
17067 if test -z "$ac_cv_prog_STRIP"; then
17068   ac_ct_STRIP=$STRIP
17069   # Extract the first word of "strip", so it can be a program name with args.
17070 set dummy strip; ac_word=$2
17071 echo "$as_me:$LINENO: checking for $ac_word" >&5
17072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17073 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   if test -n "$ac_ct_STRIP"; then
17077   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17078 else
17079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17080 for as_dir in $PATH
17081 do
17082   IFS=$as_save_IFS
17083   test -z "$as_dir" && as_dir=.
17084   for ac_exec_ext in '' $ac_executable_extensions; do
17085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17086     ac_cv_prog_ac_ct_STRIP="strip"
17087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17088     break 2
17089   fi
17090 done
17091 done
17092
17093   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
17094 fi
17095 fi
17096 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17097 if test -n "$ac_ct_STRIP"; then
17098   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
17099 echo "${ECHO_T}$ac_ct_STRIP" >&6
17100 else
17101   echo "$as_me:$LINENO: result: no" >&5
17102 echo "${ECHO_T}no" >&6
17103 fi
17104
17105   STRIP=$ac_ct_STRIP
17106 else
17107   STRIP="$ac_cv_prog_STRIP"
17108 fi
17109
17110
17111 old_CC="$CC"
17112 old_CFLAGS="$CFLAGS"
17113
17114 # Set sane defaults for various variables
17115 test -z "$AR" && AR=ar
17116 test -z "$AR_FLAGS" && AR_FLAGS=cru
17117 test -z "$AS" && AS=as
17118 test -z "$CC" && CC=cc
17119 test -z "$LTCC" && LTCC=$CC
17120 test -z "$DLLTOOL" && DLLTOOL=dlltool
17121 test -z "$LD" && LD=ld
17122 test -z "$LN_S" && LN_S="ln -s"
17123 test -z "$MAGIC_CMD" && MAGIC_CMD=file
17124 test -z "$NM" && NM=nm
17125 test -z "$SED" && SED=sed
17126 test -z "$OBJDUMP" && OBJDUMP=objdump
17127 test -z "$RANLIB" && RANLIB=:
17128 test -z "$STRIP" && STRIP=:
17129 test -z "$ac_objext" && ac_objext=o
17130
17131 # Determine commands to create old-style static archives.
17132 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
17133 old_postinstall_cmds='chmod 644 $oldlib'
17134 old_postuninstall_cmds=
17135
17136 if test -n "$RANLIB"; then
17137   case $host_os in
17138   openbsd*)
17139     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
17140     ;;
17141   *)
17142     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
17143     ;;
17144   esac
17145   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
17146 fi
17147
17148 for cc_temp in $compiler""; do
17149   case $cc_temp in
17150     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17151     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17152     \-*) ;;
17153     *) break;;
17154   esac
17155 done
17156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17157
17158
17159 # Only perform the check for file, if the check method requires it
17160 case $deplibs_check_method in
17161 file_magic*)
17162   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17163     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
17164 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
17165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   case $MAGIC_CMD in
17169 [\\/*] |  ?:[\\/]*)
17170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17171   ;;
17172 *)
17173   lt_save_MAGIC_CMD="$MAGIC_CMD"
17174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17175   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17176   for ac_dir in $ac_dummy; do
17177     IFS="$lt_save_ifs"
17178     test -z "$ac_dir" && ac_dir=.
17179     if test -f $ac_dir/${ac_tool_prefix}file; then
17180       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
17181       if test -n "$file_magic_test_file"; then
17182         case $deplibs_check_method in
17183         "file_magic "*)
17184           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17185           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17186           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17187             $EGREP "$file_magic_regex" > /dev/null; then
17188             :
17189           else
17190             cat <<EOF 1>&2
17191
17192 *** Warning: the command libtool uses to detect shared libraries,
17193 *** $file_magic_cmd, produces output that libtool cannot recognize.
17194 *** The result is that libtool may fail to recognize shared libraries
17195 *** as such.  This will affect the creation of libtool libraries that
17196 *** depend on shared libraries, but programs linked with such libtool
17197 *** libraries will work regardless of this problem.  Nevertheless, you
17198 *** may want to report the problem to your system manager and/or to
17199 *** bug-libtool@gnu.org
17200
17201 EOF
17202           fi ;;
17203         esac
17204       fi
17205       break
17206     fi
17207   done
17208   IFS="$lt_save_ifs"
17209   MAGIC_CMD="$lt_save_MAGIC_CMD"
17210   ;;
17211 esac
17212 fi
17213
17214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17215 if test -n "$MAGIC_CMD"; then
17216   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17217 echo "${ECHO_T}$MAGIC_CMD" >&6
17218 else
17219   echo "$as_me:$LINENO: result: no" >&5
17220 echo "${ECHO_T}no" >&6
17221 fi
17222
17223 if test -z "$lt_cv_path_MAGIC_CMD"; then
17224   if test -n "$ac_tool_prefix"; then
17225     echo "$as_me:$LINENO: checking for file" >&5
17226 echo $ECHO_N "checking for file... $ECHO_C" >&6
17227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   case $MAGIC_CMD in
17231 [\\/*] |  ?:[\\/]*)
17232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17233   ;;
17234 *)
17235   lt_save_MAGIC_CMD="$MAGIC_CMD"
17236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17238   for ac_dir in $ac_dummy; do
17239     IFS="$lt_save_ifs"
17240     test -z "$ac_dir" && ac_dir=.
17241     if test -f $ac_dir/file; then
17242       lt_cv_path_MAGIC_CMD="$ac_dir/file"
17243       if test -n "$file_magic_test_file"; then
17244         case $deplibs_check_method in
17245         "file_magic "*)
17246           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17249             $EGREP "$file_magic_regex" > /dev/null; then
17250             :
17251           else
17252             cat <<EOF 1>&2
17253
17254 *** Warning: the command libtool uses to detect shared libraries,
17255 *** $file_magic_cmd, produces output that libtool cannot recognize.
17256 *** The result is that libtool may fail to recognize shared libraries
17257 *** as such.  This will affect the creation of libtool libraries that
17258 *** depend on shared libraries, but programs linked with such libtool
17259 *** libraries will work regardless of this problem.  Nevertheless, you
17260 *** may want to report the problem to your system manager and/or to
17261 *** bug-libtool@gnu.org
17262
17263 EOF
17264           fi ;;
17265         esac
17266       fi
17267       break
17268     fi
17269   done
17270   IFS="$lt_save_ifs"
17271   MAGIC_CMD="$lt_save_MAGIC_CMD"
17272   ;;
17273 esac
17274 fi
17275
17276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17277 if test -n "$MAGIC_CMD"; then
17278   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17279 echo "${ECHO_T}$MAGIC_CMD" >&6
17280 else
17281   echo "$as_me:$LINENO: result: no" >&5
17282 echo "${ECHO_T}no" >&6
17283 fi
17284
17285   else
17286     MAGIC_CMD=:
17287   fi
17288 fi
17289
17290   fi
17291   ;;
17292 esac
17293
17294 enable_dlopen=no
17295 enable_win32_dll=no
17296
17297 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17298 if test "${enable_libtool_lock+set}" = set; then
17299   enableval="$enable_libtool_lock"
17300
17301 fi;
17302 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17303
17304
17305 # Check whether --with-pic or --without-pic was given.
17306 if test "${with_pic+set}" = set; then
17307   withval="$with_pic"
17308   pic_mode="$withval"
17309 else
17310   pic_mode=default
17311 fi;
17312 test -z "$pic_mode" && pic_mode=default
17313
17314 # Use C for the default configuration in the libtool script
17315 tagname=
17316 lt_save_CC="$CC"
17317 ac_ext=c
17318 ac_cpp='$CPP $CPPFLAGS'
17319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17322
17323
17324 # Source file extension for C test sources.
17325 ac_ext=c
17326
17327 # Object file extension for compiled C test sources.
17328 objext=o
17329 objext=$objext
17330
17331 # Code to be used in simple compile tests
17332 lt_simple_compile_test_code="int some_variable = 0;\n"
17333
17334 # Code to be used in simple link tests
17335 lt_simple_link_test_code='int main(){return(0);}\n'
17336
17337
17338 # If no C compiler was specified, use CC.
17339 LTCC=${LTCC-"$CC"}
17340
17341 # Allow CC to be a program name with arguments.
17342 compiler=$CC
17343
17344
17345 # save warnings/boilerplate of simple test code
17346 ac_outfile=conftest.$ac_objext
17347 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17349 _lt_compiler_boilerplate=`cat conftest.err`
17350 $rm conftest*
17351
17352 ac_outfile=conftest.$ac_objext
17353 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17355 _lt_linker_boilerplate=`cat conftest.err`
17356 $rm conftest*
17357
17358
17359 #
17360 # Check for any special shared library compilation flags.
17361 #
17362 lt_prog_cc_shlib=
17363 if test "$GCC" = no; then
17364   case $host_os in
17365   sco3.2v5*)
17366     lt_prog_cc_shlib='-belf'
17367     ;;
17368   esac
17369 fi
17370 if test -n "$lt_prog_cc_shlib"; then
17371   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17372 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17373   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
17374   else
17375     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17376 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17377     lt_cv_prog_cc_can_build_shared=no
17378   fi
17379 fi
17380
17381
17382 #
17383 # Check to make sure the static flag actually works.
17384 #
17385 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17386 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17387 if test "${lt_prog_compiler_static_works+set}" = set; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   lt_prog_compiler_static_works=no
17391    save_LDFLAGS="$LDFLAGS"
17392    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17393    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17394    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17395      # The linker can only warn and ignore the option if not recognized
17396      # So say no if there are warnings
17397      if test -s conftest.err; then
17398        # Append any errors to the config.log.
17399        cat conftest.err 1>&5
17400        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
17401        $SED '/^$/d' conftest.err >conftest.er2
17402        if diff conftest.exp conftest.er2 >/dev/null; then
17403          lt_prog_compiler_static_works=yes
17404        fi
17405      else
17406        lt_prog_compiler_static_works=yes
17407      fi
17408    fi
17409    $rm conftest*
17410    LDFLAGS="$save_LDFLAGS"
17411
17412 fi
17413 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17414 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17415
17416 if test x"$lt_prog_compiler_static_works" = xyes; then
17417     :
17418 else
17419     lt_prog_compiler_static=
17420 fi
17421
17422
17423
17424
17425 lt_prog_compiler_no_builtin_flag=
17426
17427 if test "$GCC" = yes; then
17428   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17429
17430
17431 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   lt_cv_prog_compiler_rtti_exceptions=no
17437   ac_outfile=conftest.$ac_objext
17438    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17439    lt_compiler_flag="-fno-rtti -fno-exceptions"
17440    # Insert the option either (1) after the last *FLAGS variable, or
17441    # (2) before a word containing "conftest.", or (3) at the end.
17442    # Note that $ac_compile itself does not contain backslashes and begins
17443    # with a dollar sign (not a hyphen), so the echo should work correctly.
17444    # The option is referenced via a variable to avoid confusing sed.
17445    lt_compile=`echo "$ac_compile" | $SED \
17446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17448    -e 's:$: $lt_compiler_flag:'`
17449    (eval echo "\"\$as_me:17449: $lt_compile\"" >&5)
17450    (eval "$lt_compile" 2>conftest.err)
17451    ac_status=$?
17452    cat conftest.err >&5
17453    echo "$as_me:17453: \$? = $ac_status" >&5
17454    if (exit $ac_status) && test -s "$ac_outfile"; then
17455      # The compiler can only warn and ignore the option if not recognized
17456      # So say no if there are warnings other than the usual output.
17457      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17458      $SED '/^$/d' conftest.err >conftest.er2
17459      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17460        lt_cv_prog_compiler_rtti_exceptions=yes
17461      fi
17462    fi
17463    $rm conftest*
17464
17465 fi
17466 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17467 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17468
17469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17470     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17471 else
17472     :
17473 fi
17474
17475 fi
17476
17477 lt_prog_compiler_wl=
17478 lt_prog_compiler_pic=
17479 lt_prog_compiler_static=
17480
17481 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17483
17484   if test "$GCC" = yes; then
17485     lt_prog_compiler_wl='-Wl,'
17486     lt_prog_compiler_static='-static'
17487
17488     case $host_os in
17489       aix*)
17490       # All AIX code is PIC.
17491       if test "$host_cpu" = ia64; then
17492         # AIX 5 now supports IA64 processor
17493         lt_prog_compiler_static='-Bstatic'
17494       fi
17495       ;;
17496
17497     amigaos*)
17498       # FIXME: we need at least 68020 code to build shared libraries, but
17499       # adding the `-m68020' flag to GCC prevents building anything better,
17500       # like `-m68040'.
17501       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17502       ;;
17503
17504     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17505       # PIC is the default for these OSes.
17506       ;;
17507
17508     mingw* | pw32* | os2*)
17509       # This hack is so that the source file can tell whether it is being
17510       # built for inclusion in a dll (and should export symbols for example).
17511       lt_prog_compiler_pic='-DDLL_EXPORT'
17512       ;;
17513
17514     darwin* | rhapsody*)
17515       # PIC is the default on this platform
17516       # Common symbols not allowed in MH_DYLIB files
17517       lt_prog_compiler_pic='-fno-common'
17518       ;;
17519
17520     msdosdjgpp*)
17521       # Just because we use GCC doesn't mean we suddenly get shared libraries
17522       # on systems that don't support them.
17523       lt_prog_compiler_can_build_shared=no
17524       enable_shared=no
17525       ;;
17526
17527     sysv4*MP*)
17528       if test -d /usr/nec; then
17529         lt_prog_compiler_pic=-Kconform_pic
17530       fi
17531       ;;
17532
17533     hpux*)
17534       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17535       # not for PA HP-UX.
17536       case $host_cpu in
17537       hppa*64*|ia64*)
17538         # +Z the default
17539         ;;
17540       *)
17541         lt_prog_compiler_pic='-fPIC'
17542         ;;
17543       esac
17544       ;;
17545
17546     *)
17547       lt_prog_compiler_pic='-fPIC'
17548       ;;
17549     esac
17550   else
17551     # PORTME Check for flag to pass linker flags through the system compiler.
17552     case $host_os in
17553     aix*)
17554       lt_prog_compiler_wl='-Wl,'
17555       if test "$host_cpu" = ia64; then
17556         # AIX 5 now supports IA64 processor
17557         lt_prog_compiler_static='-Bstatic'
17558       else
17559         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17560       fi
17561       ;;
17562       darwin*)
17563         # PIC is the default on this platform
17564         # Common symbols not allowed in MH_DYLIB files
17565        case $cc_basename in
17566          xlc*)
17567          lt_prog_compiler_pic='-qnocommon'
17568          lt_prog_compiler_wl='-Wl,'
17569          ;;
17570        esac
17571        ;;
17572
17573     mingw* | pw32* | os2*)
17574       # This hack is so that the source file can tell whether it is being
17575       # built for inclusion in a dll (and should export symbols for example).
17576       lt_prog_compiler_pic='-DDLL_EXPORT'
17577       ;;
17578
17579     hpux9* | hpux10* | hpux11*)
17580       lt_prog_compiler_wl='-Wl,'
17581       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17582       # not for PA HP-UX.
17583       case $host_cpu in
17584       hppa*64*|ia64*)
17585         # +Z the default
17586         ;;
17587       *)
17588         lt_prog_compiler_pic='+Z'
17589         ;;
17590       esac
17591       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17592       lt_prog_compiler_static='${wl}-a ${wl}archive'
17593       ;;
17594
17595     irix5* | irix6* | nonstopux*)
17596       lt_prog_compiler_wl='-Wl,'
17597       # PIC (with -KPIC) is the default.
17598       lt_prog_compiler_static='-non_shared'
17599       ;;
17600
17601     newsos6)
17602       lt_prog_compiler_pic='-KPIC'
17603       lt_prog_compiler_static='-Bstatic'
17604       ;;
17605
17606     linux*)
17607       case $cc_basename in
17608       icc* | ecc*)
17609         lt_prog_compiler_wl='-Wl,'
17610         lt_prog_compiler_pic='-KPIC'
17611         lt_prog_compiler_static='-static'
17612         ;;
17613       pgcc* | pgf77* | pgf90* | pgf95*)
17614         # Portland Group compilers (*not* the Pentium gcc compiler,
17615         # which looks to be a dead project)
17616         lt_prog_compiler_wl='-Wl,'
17617         lt_prog_compiler_pic='-fpic'
17618         lt_prog_compiler_static='-Bstatic'
17619         ;;
17620       ccc*)
17621         lt_prog_compiler_wl='-Wl,'
17622         # All Alpha code is PIC.
17623         lt_prog_compiler_static='-non_shared'
17624         ;;
17625       esac
17626       ;;
17627
17628     osf3* | osf4* | osf5*)
17629       lt_prog_compiler_wl='-Wl,'
17630       # All OSF/1 code is PIC.
17631       lt_prog_compiler_static='-non_shared'
17632       ;;
17633
17634     sco3.2v5*)
17635       lt_prog_compiler_pic='-Kpic'
17636       lt_prog_compiler_static='-dn'
17637       ;;
17638
17639     solaris*)
17640       lt_prog_compiler_pic='-KPIC'
17641       lt_prog_compiler_static='-Bstatic'
17642       case $cc_basename in
17643       f77* | f90* | f95*)
17644         lt_prog_compiler_wl='-Qoption ld ';;
17645       *)
17646         lt_prog_compiler_wl='-Wl,';;
17647       esac
17648       ;;
17649
17650     sunos4*)
17651       lt_prog_compiler_wl='-Qoption ld '
17652       lt_prog_compiler_pic='-PIC'
17653       lt_prog_compiler_static='-Bstatic'
17654       ;;
17655
17656     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17657       lt_prog_compiler_wl='-Wl,'
17658       lt_prog_compiler_pic='-KPIC'
17659       lt_prog_compiler_static='-Bstatic'
17660       ;;
17661
17662     sysv4*MP*)
17663       if test -d /usr/nec ;then
17664         lt_prog_compiler_pic='-Kconform_pic'
17665         lt_prog_compiler_static='-Bstatic'
17666       fi
17667       ;;
17668
17669     unicos*)
17670       lt_prog_compiler_wl='-Wl,'
17671       lt_prog_compiler_can_build_shared=no
17672       ;;
17673
17674     uts4*)
17675       lt_prog_compiler_pic='-pic'
17676       lt_prog_compiler_static='-Bstatic'
17677       ;;
17678
17679     *)
17680       lt_prog_compiler_can_build_shared=no
17681       ;;
17682     esac
17683   fi
17684
17685 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17687
17688 #
17689 # Check to make sure the PIC flag actually works.
17690 #
17691 if test -n "$lt_prog_compiler_pic"; then
17692
17693 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17695 if test "${lt_prog_compiler_pic_works+set}" = set; then
17696   echo $ECHO_N "(cached) $ECHO_C" >&6
17697 else
17698   lt_prog_compiler_pic_works=no
17699   ac_outfile=conftest.$ac_objext
17700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17701    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17702    # Insert the option either (1) after the last *FLAGS variable, or
17703    # (2) before a word containing "conftest.", or (3) at the end.
17704    # Note that $ac_compile itself does not contain backslashes and begins
17705    # with a dollar sign (not a hyphen), so the echo should work correctly.
17706    # The option is referenced via a variable to avoid confusing sed.
17707    lt_compile=`echo "$ac_compile" | $SED \
17708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17710    -e 's:$: $lt_compiler_flag:'`
17711    (eval echo "\"\$as_me:17711: $lt_compile\"" >&5)
17712    (eval "$lt_compile" 2>conftest.err)
17713    ac_status=$?
17714    cat conftest.err >&5
17715    echo "$as_me:17715: \$? = $ac_status" >&5
17716    if (exit $ac_status) && test -s "$ac_outfile"; then
17717      # The compiler can only warn and ignore the option if not recognized
17718      # So say no if there are warnings other than the usual output.
17719      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17720      $SED '/^$/d' conftest.err >conftest.er2
17721      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17722        lt_prog_compiler_pic_works=yes
17723      fi
17724    fi
17725    $rm conftest*
17726
17727 fi
17728 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17729 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17730
17731 if test x"$lt_prog_compiler_pic_works" = xyes; then
17732     case $lt_prog_compiler_pic in
17733      "" | " "*) ;;
17734      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17735      esac
17736 else
17737     lt_prog_compiler_pic=
17738      lt_prog_compiler_can_build_shared=no
17739 fi
17740
17741 fi
17742 case $host_os in
17743   # For platforms which do not support PIC, -DPIC is meaningless:
17744   *djgpp*)
17745     lt_prog_compiler_pic=
17746     ;;
17747   *)
17748     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17749     ;;
17750 esac
17751
17752 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17754 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   lt_cv_prog_compiler_c_o=no
17758    $rm -r conftest 2>/dev/null
17759    mkdir conftest
17760    cd conftest
17761    mkdir out
17762    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17763
17764    lt_compiler_flag="-o out/conftest2.$ac_objext"
17765    # Insert the option either (1) after the last *FLAGS variable, or
17766    # (2) before a word containing "conftest.", or (3) at the end.
17767    # Note that $ac_compile itself does not contain backslashes and begins
17768    # with a dollar sign (not a hyphen), so the echo should work correctly.
17769    lt_compile=`echo "$ac_compile" | $SED \
17770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17772    -e 's:$: $lt_compiler_flag:'`
17773    (eval echo "\"\$as_me:17773: $lt_compile\"" >&5)
17774    (eval "$lt_compile" 2>out/conftest.err)
17775    ac_status=$?
17776    cat out/conftest.err >&5
17777    echo "$as_me:17777: \$? = $ac_status" >&5
17778    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17779    then
17780      # The compiler can only warn and ignore the option if not recognized
17781      # So say no if there are warnings
17782      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17783      $SED '/^$/d' out/conftest.err >out/conftest.er2
17784      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17785        lt_cv_prog_compiler_c_o=yes
17786      fi
17787    fi
17788    chmod u+w . 2>&5
17789    $rm conftest*
17790    # SGI C++ compiler will create directory out/ii_files/ for
17791    # template instantiation
17792    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17793    $rm out/* && rmdir out
17794    cd ..
17795    rmdir conftest
17796    $rm conftest*
17797
17798 fi
17799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17801
17802
17803 hard_links="nottested"
17804 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17805   # do not overwrite the value of need_locks provided by the user
17806   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17808   hard_links=yes
17809   $rm conftest*
17810   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17811   touch conftest.a
17812   ln conftest.a conftest.b 2>&5 || hard_links=no
17813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17814   echo "$as_me:$LINENO: result: $hard_links" >&5
17815 echo "${ECHO_T}$hard_links" >&6
17816   if test "$hard_links" = no; then
17817     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17819     need_locks=warn
17820   fi
17821 else
17822   need_locks=no
17823 fi
17824
17825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17827
17828   runpath_var=
17829   allow_undefined_flag=
17830   enable_shared_with_static_runtimes=no
17831   archive_cmds=
17832   archive_expsym_cmds=
17833   old_archive_From_new_cmds=
17834   old_archive_from_expsyms_cmds=
17835   export_dynamic_flag_spec=
17836   whole_archive_flag_spec=
17837   thread_safe_flag_spec=
17838   hardcode_libdir_flag_spec=
17839   hardcode_libdir_flag_spec_ld=
17840   hardcode_libdir_separator=
17841   hardcode_direct=no
17842   hardcode_minus_L=no
17843   hardcode_shlibpath_var=unsupported
17844   link_all_deplibs=unknown
17845   hardcode_automatic=no
17846   module_cmds=
17847   module_expsym_cmds=
17848   always_export_symbols=no
17849   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17850   # include_expsyms should be a list of space-separated symbols to be *always*
17851   # included in the symbol list
17852   include_expsyms=
17853   # exclude_expsyms can be an extended regexp of symbols to exclude
17854   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17855   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17856   # as well as any symbol that contains `d'.
17857   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17858   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17859   # platforms (ab)use it in PIC code, but their linkers get confused if
17860   # the symbol is explicitly referenced.  Since portable code cannot
17861   # rely on this symbol name, it's probably fine to never include it in
17862   # preloaded symbol tables.
17863   extract_expsyms_cmds=
17864   # Just being paranoid about ensuring that cc_basename is set.
17865   for cc_temp in $compiler""; do
17866   case $cc_temp in
17867     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17868     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17869     \-*) ;;
17870     *) break;;
17871   esac
17872 done
17873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17874
17875   case $host_os in
17876   cygwin* | mingw* | pw32*)
17877     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17878     # When not using gcc, we currently assume that we are using
17879     # Microsoft Visual C++.
17880     if test "$GCC" != yes; then
17881       with_gnu_ld=no
17882     fi
17883     ;;
17884   openbsd*)
17885     with_gnu_ld=no
17886     ;;
17887   esac
17888
17889   ld_shlibs=yes
17890   if test "$with_gnu_ld" = yes; then
17891     # If archive_cmds runs LD, not CC, wlarc should be empty
17892     wlarc='${wl}'
17893
17894     # Set some defaults for GNU ld with shared library support. These
17895     # are reset later if shared libraries are not supported. Putting them
17896     # here allows them to be overridden if necessary.
17897     runpath_var=LD_RUN_PATH
17898     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17899     export_dynamic_flag_spec='${wl}--export-dynamic'
17900     # ancient GNU ld didn't support --whole-archive et. al.
17901     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17902         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17903       else
17904         whole_archive_flag_spec=
17905     fi
17906     supports_anon_versioning=no
17907     case `$LD -v 2>/dev/null` in
17908       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17909       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17910       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17911       *\ 2.11.*) ;; # other 2.11 versions
17912       *) supports_anon_versioning=yes ;;
17913     esac
17914
17915     # See if GNU ld supports shared libraries.
17916     case $host_os in
17917     aix3* | aix4* | aix5*)
17918       # On AIX/PPC, the GNU linker is very broken
17919       if test "$host_cpu" != ia64; then
17920         ld_shlibs=no
17921         cat <<EOF 1>&2
17922
17923 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17924 *** to be unable to reliably create shared libraries on AIX.
17925 *** Therefore, libtool is disabling shared libraries support.  If you
17926 *** really care for shared libraries, you may want to modify your PATH
17927 *** so that a non-GNU linker is found, and then restart.
17928
17929 EOF
17930       fi
17931       ;;
17932
17933     amigaos*)
17934       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)'
17935       hardcode_libdir_flag_spec='-L$libdir'
17936       hardcode_minus_L=yes
17937
17938       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17939       # that the semantics of dynamic libraries on AmigaOS, at least up
17940       # to version 4, is to share data among multiple programs linked
17941       # with the same dynamic library.  Since this doesn't match the
17942       # behavior of shared libraries on other platforms, we can't use
17943       # them.
17944       ld_shlibs=no
17945       ;;
17946
17947     beos*)
17948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17949         allow_undefined_flag=unsupported
17950         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17951         # support --undefined.  This deserves some investigation.  FIXME
17952         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17953       else
17954         ld_shlibs=no
17955       fi
17956       ;;
17957
17958     cygwin* | mingw* | pw32*)
17959       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17960       # as there is no search path for DLLs.
17961       hardcode_libdir_flag_spec='-L$libdir'
17962       allow_undefined_flag=unsupported
17963       always_export_symbols=no
17964       enable_shared_with_static_runtimes=yes
17965       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17966
17967       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17968         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17969         # If the export-symbols file already is a .def file (1st line
17970         # is EXPORTS), use it as is; otherwise, prepend...
17971         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17972           cp $export_symbols $output_objdir/$soname.def;
17973         else
17974           echo EXPORTS > $output_objdir/$soname.def;
17975           cat $export_symbols >> $output_objdir/$soname.def;
17976         fi~
17977         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17978       else
17979         ld_shlibs=no
17980       fi
17981       ;;
17982
17983     linux*)
17984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17985         tmp_addflag=
17986         case $cc_basename,$host_cpu in
17987         pgcc*)                          # Portland Group C compiler
17988           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17989           tmp_addflag=' $pic_flag'
17990           ;;
17991         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17992           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17993           tmp_addflag=' $pic_flag -Mnomain' ;;
17994         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17995           tmp_addflag=' -i_dynamic' ;;
17996         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17997           tmp_addflag=' -i_dynamic -nofor_main' ;;
17998         ifc* | ifort*)                  # Intel Fortran compiler
17999           tmp_addflag=' -nofor_main' ;;
18000         esac
18001         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18002
18003         if test $supports_anon_versioning = yes; then
18004           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18005   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18006   $echo "local: *; };" >> $output_objdir/$libname.ver~
18007           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18008         fi
18009       else
18010         ld_shlibs=no
18011       fi
18012       ;;
18013
18014     netbsd*)
18015       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18016         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18017         wlarc=
18018       else
18019         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18020         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18021       fi
18022       ;;
18023
18024     solaris* | sysv5*)
18025       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18026         ld_shlibs=no
18027         cat <<EOF 1>&2
18028
18029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18030 *** create shared libraries on Solaris systems.  Therefore, libtool
18031 *** is disabling shared libraries support.  We urge you to upgrade GNU
18032 *** binutils to release 2.9.1 or newer.  Another option is to modify
18033 *** your PATH or compiler configuration so that the native linker is
18034 *** used, and then restart.
18035
18036 EOF
18037       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18038         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18040       else
18041         ld_shlibs=no
18042       fi
18043       ;;
18044
18045     sunos4*)
18046       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18047       wlarc=
18048       hardcode_direct=yes
18049       hardcode_shlibpath_var=no
18050       ;;
18051
18052     *)
18053       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18054         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18055         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18056       else
18057         ld_shlibs=no
18058       fi
18059       ;;
18060     esac
18061
18062     if test "$ld_shlibs" = no; then
18063       runpath_var=
18064       hardcode_libdir_flag_spec=
18065       export_dynamic_flag_spec=
18066       whole_archive_flag_spec=
18067     fi
18068   else
18069     # PORTME fill in a description of your system's linker (not GNU ld)
18070     case $host_os in
18071     aix3*)
18072       allow_undefined_flag=unsupported
18073       always_export_symbols=yes
18074       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'
18075       # Note: this linker hardcodes the directories in LIBPATH if there
18076       # are no directories specified by -L.
18077       hardcode_minus_L=yes
18078       if test "$GCC" = yes && test -z "$link_static_flag"; then
18079         # Neither direct hardcoding nor static linking is supported with a
18080         # broken collect2.
18081         hardcode_direct=unsupported
18082       fi
18083       ;;
18084
18085     aix4* | aix5*)
18086       if test "$host_cpu" = ia64; then
18087         # On IA64, the linker does run time linking by default, so we don't
18088         # have to do anything special.
18089         aix_use_runtimelinking=no
18090         exp_sym_flag='-Bexport'
18091         no_entry_flag=""
18092       else
18093         # If we're using GNU nm, then we don't want the "-C" option.
18094         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18095         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18096           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'
18097         else
18098           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'
18099         fi
18100         aix_use_runtimelinking=no
18101
18102         # Test if we are trying to use run time linking or normal
18103         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18104         # need to do runtime linking.
18105         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18106           for ld_flag in $LDFLAGS; do
18107           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18108             aix_use_runtimelinking=yes
18109             break
18110           fi
18111           done
18112         esac
18113
18114         exp_sym_flag='-bexport'
18115         no_entry_flag='-bnoentry'
18116       fi
18117
18118       # When large executables or shared objects are built, AIX ld can
18119       # have problems creating the table of contents.  If linking a library
18120       # or program results in "error TOC overflow" add -mminimal-toc to
18121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18123
18124       archive_cmds=''
18125       hardcode_direct=yes
18126       hardcode_libdir_separator=':'
18127       link_all_deplibs=yes
18128
18129       if test "$GCC" = yes; then
18130         case $host_os in aix4.[012]|aix4.[012].*)
18131         # We only want to do this on AIX 4.2 and lower, the check
18132         # below for broken collect2 doesn't work under 4.3+
18133           collect2name=`${CC} -print-prog-name=collect2`
18134           if test -f "$collect2name" && \
18135            strings "$collect2name" | grep resolve_lib_name >/dev/null
18136           then
18137           # We have reworked collect2
18138           hardcode_direct=yes
18139           else
18140           # We have old collect2
18141           hardcode_direct=unsupported
18142           # It fails to find uninstalled libraries when the uninstalled
18143           # path is not listed in the libpath.  Setting hardcode_minus_L
18144           # to unsupported forces relinking
18145           hardcode_minus_L=yes
18146           hardcode_libdir_flag_spec='-L$libdir'
18147           hardcode_libdir_separator=
18148           fi
18149         esac
18150         shared_flag='-shared'
18151         if test "$aix_use_runtimelinking" = yes; then
18152           shared_flag="$shared_flag "'${wl}-G'
18153         fi
18154       else
18155         # not using gcc
18156         if test "$host_cpu" = ia64; then
18157         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18158         # chokes on -Wl,-G. The following line is correct:
18159           shared_flag='-G'
18160         else
18161         if test "$aix_use_runtimelinking" = yes; then
18162             shared_flag='${wl}-G'
18163           else
18164             shared_flag='${wl}-bM:SRE'
18165         fi
18166         fi
18167       fi
18168
18169       # It seems that -bexpall does not export symbols beginning with
18170       # underscore (_), so it is better to generate a list of symbols to export.
18171       always_export_symbols=yes
18172       if test "$aix_use_runtimelinking" = yes; then
18173         # Warning - without using the other runtime loading flags (-brtl),
18174         # -berok will link without error, but may produce a broken library.
18175         allow_undefined_flag='-berok'
18176        # Determine the default libpath from the value encoded in an empty executable.
18177        cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h.  */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h.  */
18183
18184 int
18185 main ()
18186 {
18187
18188   ;
18189   return 0;
18190 }
18191 _ACEOF
18192 rm -f conftest.$ac_objext conftest$ac_exeext
18193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18194   (eval $ac_link) 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } &&
18201          { ac_try='test -z "$ac_c_werror_flag"
18202                          || test ! -s conftest.err'
18203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204   (eval $ac_try) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; } &&
18208          { ac_try='test -s conftest$ac_exeext'
18209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210   (eval $ac_try) 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; }; then
18214
18215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18216 }'`
18217 # Check for a 64-bit object if we didn't find anything.
18218 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; }
18219 }'`; fi
18220 else
18221   echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224 fi
18225 rm -f conftest.err conftest.$ac_objext \
18226       conftest$ac_exeext conftest.$ac_ext
18227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18228
18229        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18230         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"
18231        else
18232         if test "$host_cpu" = ia64; then
18233           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18234           allow_undefined_flag="-z nodefs"
18235           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"
18236         else
18237          # Determine the default libpath from the value encoded in an empty executable.
18238          cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244
18245 int
18246 main ()
18247 {
18248
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255   (eval $ac_link) 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } &&
18262          { ac_try='test -z "$ac_c_werror_flag"
18263                          || test ! -s conftest.err'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; } &&
18269          { ac_try='test -s conftest$ac_exeext'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; }; then
18275
18276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18277 }'`
18278 # Check for a 64-bit object if we didn't find anything.
18279 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; }
18280 }'`; fi
18281 else
18282   echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285 fi
18286 rm -f conftest.err conftest.$ac_objext \
18287       conftest$ac_exeext conftest.$ac_ext
18288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18289
18290          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18291           # Warning - without using the other run time loading flags,
18292           # -berok will link without error, but may produce a broken library.
18293           no_undefined_flag=' ${wl}-bernotok'
18294           allow_undefined_flag=' ${wl}-berok'
18295           # -bexpall does not export symbols beginning with underscore (_)
18296           always_export_symbols=yes
18297           # Exported symbols can be pulled into shared objects from archives
18298           whole_archive_flag_spec=' '
18299           archive_cmds_need_lc=yes
18300           # This is similar to how AIX traditionally builds its shared libraries.
18301           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'
18302         fi
18303       fi
18304       ;;
18305
18306     amigaos*)
18307       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)'
18308       hardcode_libdir_flag_spec='-L$libdir'
18309       hardcode_minus_L=yes
18310       # see comment about different semantics on the GNU ld section
18311       ld_shlibs=no
18312       ;;
18313
18314     bsdi[45]*)
18315       export_dynamic_flag_spec=-rdynamic
18316       ;;
18317
18318     cygwin* | mingw* | pw32*)
18319       # When not using gcc, we currently assume that we are using
18320       # Microsoft Visual C++.
18321       # hardcode_libdir_flag_spec is actually meaningless, as there is
18322       # no search path for DLLs.
18323       hardcode_libdir_flag_spec=' '
18324       allow_undefined_flag=unsupported
18325       # Tell ltmain to make .lib files, not .a files.
18326       libext=lib
18327       # Tell ltmain to make .dll files, not .so files.
18328       shrext_cmds=".dll"
18329       # FIXME: Setting linknames here is a bad hack.
18330       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18331       # The linker will automatically build a .lib file if we build a DLL.
18332       old_archive_From_new_cmds='true'
18333       # FIXME: Should let the user specify the lib program.
18334       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18335       fix_srcfile_path='`cygpath -w "$srcfile"`'
18336       enable_shared_with_static_runtimes=yes
18337       ;;
18338
18339     darwin* | rhapsody*)
18340       case $host_os in
18341         rhapsody* | darwin1.[012])
18342          allow_undefined_flag='${wl}-undefined ${wl}suppress'
18343          ;;
18344        *) # Darwin 1.3 on
18345          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18346            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18347          else
18348            case ${MACOSX_DEPLOYMENT_TARGET} in
18349              10.[012])
18350                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18351                ;;
18352              10.*)
18353                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18354                ;;
18355            esac
18356          fi
18357          ;;
18358       esac
18359       archive_cmds_need_lc=no
18360       hardcode_direct=no
18361       hardcode_automatic=yes
18362       hardcode_shlibpath_var=unsupported
18363       whole_archive_flag_spec=''
18364       link_all_deplibs=yes
18365     if test "$GCC" = yes ; then
18366         output_verbose_link_cmd='echo'
18367         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18368       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18369       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18370       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}'
18371       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}'
18372     else
18373       case $cc_basename in
18374         xlc*)
18375          output_verbose_link_cmd='echo'
18376          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18377          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18378           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18379          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18380           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}'
18381           ;;
18382        *)
18383          ld_shlibs=no
18384           ;;
18385       esac
18386     fi
18387       ;;
18388
18389     dgux*)
18390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391       hardcode_libdir_flag_spec='-L$libdir'
18392       hardcode_shlibpath_var=no
18393       ;;
18394
18395     freebsd1*)
18396       ld_shlibs=no
18397       ;;
18398
18399     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18400     # support.  Future versions do this automatically, but an explicit c++rt0.o
18401     # does not break anything, and helps significantly (at the cost of a little
18402     # extra space).
18403     freebsd2.2*)
18404       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18405       hardcode_libdir_flag_spec='-R$libdir'
18406       hardcode_direct=yes
18407       hardcode_shlibpath_var=no
18408       ;;
18409
18410     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18411     freebsd2*)
18412       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18413       hardcode_direct=yes
18414       hardcode_minus_L=yes
18415       hardcode_shlibpath_var=no
18416       ;;
18417
18418     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18419     freebsd* | kfreebsd*-gnu | dragonfly*)
18420       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18421       hardcode_libdir_flag_spec='-R$libdir'
18422       hardcode_direct=yes
18423       hardcode_shlibpath_var=no
18424       ;;
18425
18426     hpux9*)
18427       if test "$GCC" = yes; then
18428         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'
18429       else
18430         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'
18431       fi
18432       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18433       hardcode_libdir_separator=:
18434       hardcode_direct=yes
18435
18436       # hardcode_minus_L: Not really in the search PATH,
18437       # but as the default location of the library.
18438       hardcode_minus_L=yes
18439       export_dynamic_flag_spec='${wl}-E'
18440       ;;
18441
18442     hpux10* | hpux11*)
18443       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18444         case $host_cpu in
18445         hppa*64*|ia64*)
18446           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18447           ;;
18448         *)
18449           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18450           ;;
18451         esac
18452       else
18453         case $host_cpu in
18454         hppa*64*|ia64*)
18455           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18456           ;;
18457         *)
18458           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18459           ;;
18460         esac
18461       fi
18462       if test "$with_gnu_ld" = no; then
18463         case $host_cpu in
18464         hppa*64*)
18465           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18466           hardcode_libdir_flag_spec_ld='+b $libdir'
18467           hardcode_libdir_separator=:
18468           hardcode_direct=no
18469           hardcode_shlibpath_var=no
18470           ;;
18471         ia64*)
18472           hardcode_libdir_flag_spec='-L$libdir'
18473           hardcode_direct=no
18474           hardcode_shlibpath_var=no
18475
18476           # hardcode_minus_L: Not really in the search PATH,
18477           # but as the default location of the library.
18478           hardcode_minus_L=yes
18479           ;;
18480         *)
18481           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18482           hardcode_libdir_separator=:
18483           hardcode_direct=yes
18484           export_dynamic_flag_spec='${wl}-E'
18485
18486           # hardcode_minus_L: Not really in the search PATH,
18487           # but as the default location of the library.
18488           hardcode_minus_L=yes
18489           ;;
18490         esac
18491       fi
18492       ;;
18493
18494     irix5* | irix6* | nonstopux*)
18495       if test "$GCC" = yes; then
18496         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'
18497       else
18498         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'
18499         hardcode_libdir_flag_spec_ld='-rpath $libdir'
18500       fi
18501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18502       hardcode_libdir_separator=:
18503       link_all_deplibs=yes
18504       ;;
18505
18506     netbsd*)
18507       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18508         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18509       else
18510         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18511       fi
18512       hardcode_libdir_flag_spec='-R$libdir'
18513       hardcode_direct=yes
18514       hardcode_shlibpath_var=no
18515       ;;
18516
18517     newsos6)
18518       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18519       hardcode_direct=yes
18520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18521       hardcode_libdir_separator=:
18522       hardcode_shlibpath_var=no
18523       ;;
18524
18525     openbsd*)
18526       hardcode_direct=yes
18527       hardcode_shlibpath_var=no
18528       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18529         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18530         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18531         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18532         export_dynamic_flag_spec='${wl}-E'
18533       else
18534        case $host_os in
18535          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18536            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18537            hardcode_libdir_flag_spec='-R$libdir'
18538            ;;
18539          *)
18540            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18541            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18542            ;;
18543        esac
18544       fi
18545       ;;
18546
18547     os2*)
18548       hardcode_libdir_flag_spec='-L$libdir'
18549       hardcode_minus_L=yes
18550       allow_undefined_flag=unsupported
18551       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'
18552       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18553       ;;
18554
18555     osf3*)
18556       if test "$GCC" = yes; then
18557         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18558         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'
18559       else
18560         allow_undefined_flag=' -expect_unresolved \*'
18561         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'
18562       fi
18563       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18564       hardcode_libdir_separator=:
18565       ;;
18566
18567     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18568       if test "$GCC" = yes; then
18569         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18570         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'
18571         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18572       else
18573         allow_undefined_flag=' -expect_unresolved \*'
18574         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'
18575         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18576         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18577
18578         # Both c and cxx compiler support -rpath directly
18579         hardcode_libdir_flag_spec='-rpath $libdir'
18580       fi
18581       hardcode_libdir_separator=:
18582       ;;
18583
18584     sco3.2v5*)
18585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586       hardcode_shlibpath_var=no
18587       export_dynamic_flag_spec='${wl}-Bexport'
18588       runpath_var=LD_RUN_PATH
18589       hardcode_runpath_var=yes
18590       ;;
18591
18592     solaris*)
18593       no_undefined_flag=' -z text'
18594       if test "$GCC" = yes; then
18595         wlarc='${wl}'
18596         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18597         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18599       else
18600         wlarc=''
18601         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18602         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18603         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18604       fi
18605       hardcode_libdir_flag_spec='-R$libdir'
18606       hardcode_shlibpath_var=no
18607       case $host_os in
18608       solaris2.[0-5] | solaris2.[0-5].*) ;;
18609       *)
18610         # The compiler driver will combine linker options so we
18611         # cannot just pass the convience library names through
18612         # without $wl, iff we do not link with $LD.
18613         # Luckily, gcc supports the same syntax we need for Sun Studio.
18614         # Supported since Solaris 2.6 (maybe 2.5.1?)
18615         case $wlarc in
18616         '')
18617           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18618         *)
18619           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18620         esac ;;
18621       esac
18622       link_all_deplibs=yes
18623       ;;
18624
18625     sunos4*)
18626       if test "x$host_vendor" = xsequent; then
18627         # Use $CC to link under sequent, because it throws in some extra .o
18628         # files that make .init and .fini sections work.
18629         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18630       else
18631         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18632       fi
18633       hardcode_libdir_flag_spec='-L$libdir'
18634       hardcode_direct=yes
18635       hardcode_minus_L=yes
18636       hardcode_shlibpath_var=no
18637       ;;
18638
18639     sysv4)
18640       case $host_vendor in
18641         sni)
18642           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643           hardcode_direct=yes # is this really true???
18644         ;;
18645         siemens)
18646           ## LD is ld it makes a PLAMLIB
18647           ## CC just makes a GrossModule.
18648           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18649           reload_cmds='$CC -r -o $output$reload_objs'
18650           hardcode_direct=no
18651         ;;
18652         motorola)
18653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18654           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18655         ;;
18656       esac
18657       runpath_var='LD_RUN_PATH'
18658       hardcode_shlibpath_var=no
18659       ;;
18660
18661     sysv4.3*)
18662       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18663       hardcode_shlibpath_var=no
18664       export_dynamic_flag_spec='-Bexport'
18665       ;;
18666
18667     sysv4*MP*)
18668       if test -d /usr/nec; then
18669         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18670         hardcode_shlibpath_var=no
18671         runpath_var=LD_RUN_PATH
18672         hardcode_runpath_var=yes
18673         ld_shlibs=yes
18674       fi
18675       ;;
18676
18677     sysv4.2uw2*)
18678       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18679       hardcode_direct=yes
18680       hardcode_minus_L=no
18681       hardcode_shlibpath_var=no
18682       hardcode_runpath_var=yes
18683       runpath_var=LD_RUN_PATH
18684       ;;
18685
18686    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18687       no_undefined_flag='${wl}-z ${wl}text'
18688       if test "$GCC" = yes; then
18689         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18690       else
18691         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18692       fi
18693       runpath_var='LD_RUN_PATH'
18694       hardcode_shlibpath_var=no
18695       ;;
18696
18697     sysv5*)
18698       no_undefined_flag=' -z text'
18699       # $CC -shared without GNU ld will not create a library from C++
18700       # object files and a static libstdc++, better avoid it by now
18701       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18702       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18703                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18704       hardcode_libdir_flag_spec=
18705       hardcode_shlibpath_var=no
18706       runpath_var='LD_RUN_PATH'
18707       ;;
18708
18709     uts4*)
18710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18711       hardcode_libdir_flag_spec='-L$libdir'
18712       hardcode_shlibpath_var=no
18713       ;;
18714
18715     *)
18716       ld_shlibs=no
18717       ;;
18718     esac
18719   fi
18720
18721 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18722 echo "${ECHO_T}$ld_shlibs" >&6
18723 test "$ld_shlibs" = no && can_build_shared=no
18724
18725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18726 if test "$GCC" = yes; then
18727   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18728 fi
18729
18730 #
18731 # Do we need to explicitly link libc?
18732 #
18733 case "x$archive_cmds_need_lc" in
18734 x|xyes)
18735   # Assume -lc should be added
18736   archive_cmds_need_lc=yes
18737
18738   if test "$enable_shared" = yes && test "$GCC" = yes; then
18739     case $archive_cmds in
18740     *'~'*)
18741       # FIXME: we may have to deal with multi-command sequences.
18742       ;;
18743     '$CC '*)
18744       # Test whether the compiler implicitly links with -lc since on some
18745       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18746       # to ld, don't add -lc before -lgcc.
18747       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18749       $rm conftest*
18750       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18751
18752       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753   (eval $ac_compile) 2>&5
18754   ac_status=$?
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } 2>conftest.err; then
18757         soname=conftest
18758         lib=conftest
18759         libobjs=conftest.$ac_objext
18760         deplibs=
18761         wl=$lt_prog_compiler_wl
18762         compiler_flags=-v
18763         linker_flags=-v
18764         verstring=
18765         output_objdir=.
18766         libname=conftest
18767         lt_save_allow_undefined_flag=$allow_undefined_flag
18768         allow_undefined_flag=
18769         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18770   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }
18774         then
18775           archive_cmds_need_lc=no
18776         else
18777           archive_cmds_need_lc=yes
18778         fi
18779         allow_undefined_flag=$lt_save_allow_undefined_flag
18780       else
18781         cat conftest.err 1>&5
18782       fi
18783       $rm conftest*
18784       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18785 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18786       ;;
18787     esac
18788   fi
18789   ;;
18790 esac
18791
18792 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18794 library_names_spec=
18795 libname_spec='lib$name'
18796 soname_spec=
18797 shrext_cmds=".so"
18798 postinstall_cmds=
18799 postuninstall_cmds=
18800 finish_cmds=
18801 finish_eval=
18802 shlibpath_var=
18803 shlibpath_overrides_runpath=unknown
18804 version_type=none
18805 dynamic_linker="$host_os ld.so"
18806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18807 if test "$GCC" = yes; then
18808   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18809   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18810     # if the path contains ";" then we assume it to be the separator
18811     # otherwise default to the standard path separator (i.e. ":") - it is
18812     # assumed that no part of a normal pathname contains ";" but that should
18813     # okay in the real world where ";" in dirpaths is itself problematic.
18814     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18815   else
18816     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18817   fi
18818 else
18819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18820 fi
18821 need_lib_prefix=unknown
18822 hardcode_into_libs=no
18823
18824 # when you set need_version to no, make sure it does not cause -set_version
18825 # flags to be left without arguments
18826 need_version=unknown
18827
18828 case $host_os in
18829 aix3*)
18830   version_type=linux
18831   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18832   shlibpath_var=LIBPATH
18833
18834   # AIX 3 has no versioning support, so we append a major version to the name.
18835   soname_spec='${libname}${release}${shared_ext}$major'
18836   ;;
18837
18838 aix4* | aix5*)
18839   version_type=linux
18840   need_lib_prefix=no
18841   need_version=no
18842   hardcode_into_libs=yes
18843   if test "$host_cpu" = ia64; then
18844     # AIX 5 supports IA64
18845     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18846     shlibpath_var=LD_LIBRARY_PATH
18847   else
18848     # With GCC up to 2.95.x, collect2 would create an import file
18849     # for dependence libraries.  The import file would start with
18850     # the line `#! .'.  This would cause the generated library to
18851     # depend on `.', always an invalid library.  This was fixed in
18852     # development snapshots of GCC prior to 3.0.
18853     case $host_os in
18854       aix4 | aix4.[01] | aix4.[01].*)
18855       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18856            echo ' yes '
18857            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18858         :
18859       else
18860         can_build_shared=no
18861       fi
18862       ;;
18863     esac
18864     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18865     # soname into executable. Probably we can add versioning support to
18866     # collect2, so additional links can be useful in future.
18867     if test "$aix_use_runtimelinking" = yes; then
18868       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18869       # instead of lib<name>.a to let people know that these are not
18870       # typical AIX shared libraries.
18871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872     else
18873       # We preserve .a as extension for shared libraries through AIX4.2
18874       # and later when we are not doing run time linking.
18875       library_names_spec='${libname}${release}.a $libname.a'
18876       soname_spec='${libname}${release}${shared_ext}$major'
18877     fi
18878     shlibpath_var=LIBPATH
18879   fi
18880   ;;
18881
18882 amigaos*)
18883   library_names_spec='$libname.ixlibrary $libname.a'
18884   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18885   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'
18886   ;;
18887
18888 beos*)
18889   library_names_spec='${libname}${shared_ext}'
18890   dynamic_linker="$host_os ld.so"
18891   shlibpath_var=LIBRARY_PATH
18892   ;;
18893
18894 bsdi[45]*)
18895   version_type=linux
18896   need_version=no
18897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18898   soname_spec='${libname}${release}${shared_ext}$major'
18899   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18900   shlibpath_var=LD_LIBRARY_PATH
18901   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18902   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18903   # the default ld.so.conf also contains /usr/contrib/lib and
18904   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18905   # libtool to hard-code these into programs
18906   ;;
18907
18908 cygwin* | mingw* | pw32*)
18909   version_type=windows
18910   shrext_cmds=".dll"
18911   need_version=no
18912   need_lib_prefix=no
18913
18914   case $GCC,$host_os in
18915   yes,cygwin* | yes,mingw* | yes,pw32*)
18916     library_names_spec='$libname.dll.a'
18917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18918     postinstall_cmds='base_file=`basename \${file}`~
18919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18920       dldir=$destdir/`dirname \$dlpath`~
18921       test -d \$dldir || mkdir -p \$dldir~
18922       $install_prog $dir/$dlname \$dldir/$dlname~
18923       chmod a+x \$dldir/$dlname'
18924     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18925       dlpath=$dir/\$dldll~
18926        $rm \$dlpath'
18927     shlibpath_overrides_runpath=yes
18928
18929     case $host_os in
18930     cygwin*)
18931       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18932       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18934       ;;
18935     mingw*)
18936       # MinGW DLLs use traditional 'lib' prefix
18937       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18938       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18939       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18940         # It is most probably a Windows format PATH printed by
18941         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18942         # path with ; separators, and with drive letters. We can handle the
18943         # drive letters (cygwin fileutils understands them), so leave them,
18944         # especially as we might pass files found there to a mingw objdump,
18945         # which wouldn't understand a cygwinified path. Ahh.
18946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18947       else
18948         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18949       fi
18950       ;;
18951     pw32*)
18952       # pw32 DLLs use 'pw' prefix rather than 'lib'
18953       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18954       ;;
18955     esac
18956     ;;
18957
18958   *)
18959     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18960     ;;
18961   esac
18962   dynamic_linker='Win32 ld.exe'
18963   # FIXME: first we should search . and the directory the executable is in
18964   shlibpath_var=PATH
18965   ;;
18966
18967 darwin* | rhapsody*)
18968   dynamic_linker="$host_os dyld"
18969   version_type=darwin
18970   need_lib_prefix=no
18971   need_version=no
18972   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18973   soname_spec='${libname}${release}${major}$shared_ext'
18974   shlibpath_overrides_runpath=yes
18975   shlibpath_var=DYLD_LIBRARY_PATH
18976   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18977   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18978   if test "$GCC" = yes; then
18979     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"`
18980   else
18981     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18982   fi
18983   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18984   ;;
18985
18986 dgux*)
18987   version_type=linux
18988   need_lib_prefix=no
18989   need_version=no
18990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18991   soname_spec='${libname}${release}${shared_ext}$major'
18992   shlibpath_var=LD_LIBRARY_PATH
18993   ;;
18994
18995 freebsd1*)
18996   dynamic_linker=no
18997   ;;
18998
18999 kfreebsd*-gnu)
19000   version_type=linux
19001   need_lib_prefix=no
19002   need_version=no
19003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19004   soname_spec='${libname}${release}${shared_ext}$major'
19005   shlibpath_var=LD_LIBRARY_PATH
19006   shlibpath_overrides_runpath=no
19007   hardcode_into_libs=yes
19008   dynamic_linker='GNU ld.so'
19009   ;;
19010
19011 freebsd* | dragonfly*)
19012   # DragonFly does not have aout.  When/if they implement a new
19013   # versioning mechanism, adjust this.
19014   if test -x /usr/bin/objformat; then
19015     objformat=`/usr/bin/objformat`
19016   else
19017     case $host_os in
19018     freebsd[123]*) objformat=aout ;;
19019     *) objformat=elf ;;
19020     esac
19021   fi
19022   version_type=freebsd-$objformat
19023   case $version_type in
19024     freebsd-elf*)
19025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19026       need_version=no
19027       need_lib_prefix=no
19028       ;;
19029     freebsd-*)
19030       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19031       need_version=yes
19032       ;;
19033   esac
19034   shlibpath_var=LD_LIBRARY_PATH
19035   case $host_os in
19036   freebsd2*)
19037     shlibpath_overrides_runpath=yes
19038     ;;
19039   freebsd3.[01]* | freebsdelf3.[01]*)
19040     shlibpath_overrides_runpath=yes
19041     hardcode_into_libs=yes
19042     ;;
19043   *) # from 3.2 on
19044     shlibpath_overrides_runpath=no
19045     hardcode_into_libs=yes
19046     ;;
19047   esac
19048   ;;
19049
19050 gnu*)
19051   version_type=linux
19052   need_lib_prefix=no
19053   need_version=no
19054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19055   soname_spec='${libname}${release}${shared_ext}$major'
19056   shlibpath_var=LD_LIBRARY_PATH
19057   hardcode_into_libs=yes
19058   ;;
19059
19060 hpux9* | hpux10* | hpux11*)
19061   # Give a soname corresponding to the major version so that dld.sl refuses to
19062   # link against other versions.
19063   version_type=sunos
19064   need_lib_prefix=no
19065   need_version=no
19066   case $host_cpu in
19067   ia64*)
19068     shrext_cmds='.so'
19069     hardcode_into_libs=yes
19070     dynamic_linker="$host_os dld.so"
19071     shlibpath_var=LD_LIBRARY_PATH
19072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19074     soname_spec='${libname}${release}${shared_ext}$major'
19075     if test "X$HPUX_IA64_MODE" = X32; then
19076       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19077     else
19078       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19079     fi
19080     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19081     ;;
19082    hppa*64*)
19083      shrext_cmds='.sl'
19084      hardcode_into_libs=yes
19085      dynamic_linker="$host_os dld.sl"
19086      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19087      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19088      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089      soname_spec='${libname}${release}${shared_ext}$major'
19090      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19091      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19092      ;;
19093    *)
19094     shrext_cmds='.sl'
19095     dynamic_linker="$host_os dld.sl"
19096     shlibpath_var=SHLIB_PATH
19097     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099     soname_spec='${libname}${release}${shared_ext}$major'
19100     ;;
19101   esac
19102   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19103   postinstall_cmds='chmod 555 $lib'
19104   ;;
19105
19106 irix5* | irix6* | nonstopux*)
19107   case $host_os in
19108     nonstopux*) version_type=nonstopux ;;
19109     *)
19110         if test "$lt_cv_prog_gnu_ld" = yes; then
19111                 version_type=linux
19112         else
19113                 version_type=irix
19114         fi ;;
19115   esac
19116   need_lib_prefix=no
19117   need_version=no
19118   soname_spec='${libname}${release}${shared_ext}$major'
19119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19120   case $host_os in
19121   irix5* | nonstopux*)
19122     libsuff= shlibsuff=
19123     ;;
19124   *)
19125     case $LD in # libtool.m4 will add one of these switches to LD
19126     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19127       libsuff= shlibsuff= libmagic=32-bit;;
19128     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19129       libsuff=32 shlibsuff=N32 libmagic=N32;;
19130     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19131       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19132     *) libsuff= shlibsuff= libmagic=never-match;;
19133     esac
19134     ;;
19135   esac
19136   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19137   shlibpath_overrides_runpath=no
19138   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19139   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19140   hardcode_into_libs=yes
19141   ;;
19142
19143 # No shared lib support for Linux oldld, aout, or coff.
19144 linux*oldld* | linux*aout* | linux*coff*)
19145   dynamic_linker=no
19146   ;;
19147
19148 # This must be Linux ELF.
19149 linux*)
19150   version_type=linux
19151   need_lib_prefix=no
19152   need_version=no
19153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19154   soname_spec='${libname}${release}${shared_ext}$major'
19155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19156   shlibpath_var=LD_LIBRARY_PATH
19157   shlibpath_overrides_runpath=no
19158   # This implies no fast_install, which is unacceptable.
19159   # Some rework will be needed to allow for fast_install
19160   # before this can be enabled.
19161   hardcode_into_libs=yes
19162
19163   # Append ld.so.conf contents to the search path
19164   if test -f /etc/ld.so.conf; then
19165     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19166     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19167   fi
19168
19169   # We used to test for /lib/ld.so.1 and disable shared libraries on
19170   # powerpc, because MkLinux only supported shared libraries with the
19171   # GNU dynamic linker.  Since this was broken with cross compilers,
19172   # most powerpc-linux boxes support dynamic linking these days and
19173   # people can always --disable-shared, the test was removed, and we
19174   # assume the GNU/Linux dynamic linker is in use.
19175   dynamic_linker='GNU/Linux ld.so'
19176   ;;
19177
19178 knetbsd*-gnu)
19179   version_type=linux
19180   need_lib_prefix=no
19181   need_version=no
19182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19183   soname_spec='${libname}${release}${shared_ext}$major'
19184   shlibpath_var=LD_LIBRARY_PATH
19185   shlibpath_overrides_runpath=no
19186   hardcode_into_libs=yes
19187   dynamic_linker='GNU ld.so'
19188   ;;
19189
19190 netbsd*)
19191   version_type=sunos
19192   need_lib_prefix=no
19193   need_version=no
19194   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19196     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19197     dynamic_linker='NetBSD (a.out) ld.so'
19198   else
19199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19200     soname_spec='${libname}${release}${shared_ext}$major'
19201     dynamic_linker='NetBSD ld.elf_so'
19202   fi
19203   shlibpath_var=LD_LIBRARY_PATH
19204   shlibpath_overrides_runpath=yes
19205   hardcode_into_libs=yes
19206   ;;
19207
19208 newsos6)
19209   version_type=linux
19210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19211   shlibpath_var=LD_LIBRARY_PATH
19212   shlibpath_overrides_runpath=yes
19213   ;;
19214
19215 nto-qnx*)
19216   version_type=linux
19217   need_lib_prefix=no
19218   need_version=no
19219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19220   soname_spec='${libname}${release}${shared_ext}$major'
19221   shlibpath_var=LD_LIBRARY_PATH
19222   shlibpath_overrides_runpath=yes
19223   ;;
19224
19225 openbsd*)
19226   version_type=sunos
19227   need_lib_prefix=no
19228   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19229   case $host_os in
19230     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19231     *)                         need_version=no  ;;
19232   esac
19233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235   shlibpath_var=LD_LIBRARY_PATH
19236   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19237     case $host_os in
19238       openbsd2.[89] | openbsd2.[89].*)
19239         shlibpath_overrides_runpath=no
19240         ;;
19241       *)
19242         shlibpath_overrides_runpath=yes
19243         ;;
19244       esac
19245   else
19246     shlibpath_overrides_runpath=yes
19247   fi
19248   ;;
19249
19250 os2*)
19251   libname_spec='$name'
19252   shrext_cmds=".dll"
19253   need_lib_prefix=no
19254   library_names_spec='$libname${shared_ext} $libname.a'
19255   dynamic_linker='OS/2 ld.exe'
19256   shlibpath_var=LIBPATH
19257   ;;
19258
19259 osf3* | osf4* | osf5*)
19260   version_type=osf
19261   need_lib_prefix=no
19262   need_version=no
19263   soname_spec='${libname}${release}${shared_ext}$major'
19264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265   shlibpath_var=LD_LIBRARY_PATH
19266   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19267   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19268   ;;
19269
19270 sco3.2v5*)
19271   version_type=osf
19272   soname_spec='${libname}${release}${shared_ext}$major'
19273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274   shlibpath_var=LD_LIBRARY_PATH
19275   ;;
19276
19277 solaris*)
19278   version_type=linux
19279   need_lib_prefix=no
19280   need_version=no
19281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19282   soname_spec='${libname}${release}${shared_ext}$major'
19283   shlibpath_var=LD_LIBRARY_PATH
19284   shlibpath_overrides_runpath=yes
19285   hardcode_into_libs=yes
19286   # ldd complains unless libraries are executable
19287   postinstall_cmds='chmod +x $lib'
19288   ;;
19289
19290 sunos4*)
19291   version_type=sunos
19292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19293   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19294   shlibpath_var=LD_LIBRARY_PATH
19295   shlibpath_overrides_runpath=yes
19296   if test "$with_gnu_ld" = yes; then
19297     need_lib_prefix=no
19298   fi
19299   need_version=yes
19300   ;;
19301
19302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19303   version_type=linux
19304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305   soname_spec='${libname}${release}${shared_ext}$major'
19306   shlibpath_var=LD_LIBRARY_PATH
19307   case $host_vendor in
19308     sni)
19309       shlibpath_overrides_runpath=no
19310       need_lib_prefix=no
19311       export_dynamic_flag_spec='${wl}-Blargedynsym'
19312       runpath_var=LD_RUN_PATH
19313       ;;
19314     siemens)
19315       need_lib_prefix=no
19316       ;;
19317     motorola)
19318       need_lib_prefix=no
19319       need_version=no
19320       shlibpath_overrides_runpath=no
19321       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19322       ;;
19323   esac
19324   ;;
19325
19326 sysv4*MP*)
19327   if test -d /usr/nec ;then
19328     version_type=linux
19329     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19330     soname_spec='$libname${shared_ext}.$major'
19331     shlibpath_var=LD_LIBRARY_PATH
19332   fi
19333   ;;
19334
19335 uts4*)
19336   version_type=linux
19337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338   soname_spec='${libname}${release}${shared_ext}$major'
19339   shlibpath_var=LD_LIBRARY_PATH
19340   ;;
19341
19342 *)
19343   dynamic_linker=no
19344   ;;
19345 esac
19346 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19347 echo "${ECHO_T}$dynamic_linker" >&6
19348 test "$dynamic_linker" = no && can_build_shared=no
19349
19350 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19351 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19352 hardcode_action=
19353 if test -n "$hardcode_libdir_flag_spec" || \
19354    test -n "$runpath_var" || \
19355    test "X$hardcode_automatic" = "Xyes" ; then
19356
19357   # We can hardcode non-existant directories.
19358   if test "$hardcode_direct" != no &&
19359      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19360      # have to relink, otherwise we might link with an installed library
19361      # when we should be linking with a yet-to-be-installed one
19362      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19363      test "$hardcode_minus_L" != no; then
19364     # Linking always hardcodes the temporary library directory.
19365     hardcode_action=relink
19366   else
19367     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19368     hardcode_action=immediate
19369   fi
19370 else
19371   # We cannot hardcode anything, or else we can only hardcode existing
19372   # directories.
19373   hardcode_action=unsupported
19374 fi
19375 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19376 echo "${ECHO_T}$hardcode_action" >&6
19377
19378 if test "$hardcode_action" = relink; then
19379   # Fast installation is not supported
19380   enable_fast_install=no
19381 elif test "$shlibpath_overrides_runpath" = yes ||
19382      test "$enable_shared" = no; then
19383   # Fast installation is not necessary
19384   enable_fast_install=needless
19385 fi
19386
19387 striplib=
19388 old_striplib=
19389 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19390 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19391 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19392   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19393   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19394   echo "$as_me:$LINENO: result: yes" >&5
19395 echo "${ECHO_T}yes" >&6
19396 else
19397 # FIXME - insert some real tests, host_os isn't really good enough
19398   case $host_os in
19399    darwin*)
19400        if test -n "$STRIP" ; then
19401          striplib="$STRIP -x"
19402          echo "$as_me:$LINENO: result: yes" >&5
19403 echo "${ECHO_T}yes" >&6
19404        else
19405   echo "$as_me:$LINENO: result: no" >&5
19406 echo "${ECHO_T}no" >&6
19407 fi
19408        ;;
19409    *)
19410   echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6
19412     ;;
19413   esac
19414 fi
19415
19416 if test "x$enable_dlopen" != xyes; then
19417   enable_dlopen=unknown
19418   enable_dlopen_self=unknown
19419   enable_dlopen_self_static=unknown
19420 else
19421   lt_cv_dlopen=no
19422   lt_cv_dlopen_libs=
19423
19424   case $host_os in
19425   beos*)
19426     lt_cv_dlopen="load_add_on"
19427     lt_cv_dlopen_libs=
19428     lt_cv_dlopen_self=yes
19429     ;;
19430
19431   mingw* | pw32*)
19432     lt_cv_dlopen="LoadLibrary"
19433     lt_cv_dlopen_libs=
19434    ;;
19435
19436   cygwin*)
19437     lt_cv_dlopen="dlopen"
19438     lt_cv_dlopen_libs=
19439    ;;
19440
19441   darwin*)
19442   # if libdl is installed we need to link against it
19443     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19444 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19445 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448   ac_check_lib_save_LIBS=$LIBS
19449 LIBS="-ldl  $LIBS"
19450 cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h.  */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h.  */
19456
19457 /* Override any gcc2 internal prototype to avoid an error.  */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 /* We use char because int might match the return type of a gcc2
19462    builtin and then its argument prototype would still apply.  */
19463 char dlopen ();
19464 int
19465 main ()
19466 {
19467 dlopen ();
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 rm -f conftest.$ac_objext conftest$ac_exeext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19474   (eval $ac_link) 2>conftest.er1
19475   ac_status=$?
19476   grep -v '^ *+' conftest.er1 >conftest.err
19477   rm -f conftest.er1
19478   cat conftest.err >&5
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); } &&
19481          { ac_try='test -z "$ac_c_werror_flag"
19482                          || test ! -s conftest.err'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; } &&
19488          { ac_try='test -s conftest$ac_exeext'
19489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490   (eval $ac_try) 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; }; then
19494   ac_cv_lib_dl_dlopen=yes
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ac_cv_lib_dl_dlopen=no
19500 fi
19501 rm -f conftest.err conftest.$ac_objext \
19502       conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19504 fi
19505 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19506 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19507 if test $ac_cv_lib_dl_dlopen = yes; then
19508   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19509 else
19510
19511     lt_cv_dlopen="dyld"
19512     lt_cv_dlopen_libs=
19513     lt_cv_dlopen_self=yes
19514
19515 fi
19516
19517    ;;
19518
19519   *)
19520     echo "$as_me:$LINENO: checking for shl_load" >&5
19521 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19522 if test "${ac_cv_func_shl_load+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525   cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19533 #define shl_load innocuous_shl_load
19534
19535 /* System header to define __stub macros and hopefully few prototypes,
19536     which can conflict with char shl_load (); below.
19537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19538     <limits.h> exists even on freestanding compilers.  */
19539
19540 #ifdef __STDC__
19541 # include <limits.h>
19542 #else
19543 # include <assert.h>
19544 #endif
19545
19546 #undef shl_load
19547
19548 /* Override any gcc2 internal prototype to avoid an error.  */
19549 #ifdef __cplusplus
19550 extern "C"
19551 {
19552 #endif
19553 /* We use char because int might match the return type of a gcc2
19554    builtin and then its argument prototype would still apply.  */
19555 char shl_load ();
19556 /* The GNU C library defines this for functions which it implements
19557     to always fail with ENOSYS.  Some functions are actually named
19558     something starting with __ and the normal name is an alias.  */
19559 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19560 choke me
19561 #else
19562 char (*f) () = shl_load;
19563 #endif
19564 #ifdef __cplusplus
19565 }
19566 #endif
19567
19568 int
19569 main ()
19570 {
19571 return f != shl_load;
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578   (eval $ac_link) 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_c_werror_flag"
19586                          || test ! -s conftest.err'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; } &&
19592          { ac_try='test -s conftest$ac_exeext'
19593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594   (eval $ac_try) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; }; then
19598   ac_cv_func_shl_load=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 ac_cv_func_shl_load=no
19604 fi
19605 rm -f conftest.err conftest.$ac_objext \
19606       conftest$ac_exeext conftest.$ac_ext
19607 fi
19608 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19609 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19610 if test $ac_cv_func_shl_load = yes; then
19611   lt_cv_dlopen="shl_load"
19612 else
19613   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19614 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19615 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   ac_check_lib_save_LIBS=$LIBS
19619 LIBS="-ldld  $LIBS"
19620 cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626
19627 /* Override any gcc2 internal prototype to avoid an error.  */
19628 #ifdef __cplusplus
19629 extern "C"
19630 #endif
19631 /* We use char because int might match the return type of a gcc2
19632    builtin and then its argument prototype would still apply.  */
19633 char shl_load ();
19634 int
19635 main ()
19636 {
19637 shl_load ();
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19644   (eval $ac_link) 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -z "$ac_c_werror_flag"
19652                          || test ! -s conftest.err'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; } &&
19658          { ac_try='test -s conftest$ac_exeext'
19659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660   (eval $ac_try) 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; }; then
19664   ac_cv_lib_dld_shl_load=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 ac_cv_lib_dld_shl_load=no
19670 fi
19671 rm -f conftest.err conftest.$ac_objext \
19672       conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19674 fi
19675 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19676 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19677 if test $ac_cv_lib_dld_shl_load = yes; then
19678   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19679 else
19680   echo "$as_me:$LINENO: checking for dlopen" >&5
19681 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19682 if test "${ac_cv_func_dlopen+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19693 #define dlopen innocuous_dlopen
19694
19695 /* System header to define __stub macros and hopefully few prototypes,
19696     which can conflict with char dlopen (); below.
19697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698     <limits.h> exists even on freestanding compilers.  */
19699
19700 #ifdef __STDC__
19701 # include <limits.h>
19702 #else
19703 # include <assert.h>
19704 #endif
19705
19706 #undef dlopen
19707
19708 /* Override any gcc2 internal prototype to avoid an error.  */
19709 #ifdef __cplusplus
19710 extern "C"
19711 {
19712 #endif
19713 /* We use char because int might match the return type of a gcc2
19714    builtin and then its argument prototype would still apply.  */
19715 char dlopen ();
19716 /* The GNU C library defines this for functions which it implements
19717     to always fail with ENOSYS.  Some functions are actually named
19718     something starting with __ and the normal name is an alias.  */
19719 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19720 choke me
19721 #else
19722 char (*f) () = dlopen;
19723 #endif
19724 #ifdef __cplusplus
19725 }
19726 #endif
19727
19728 int
19729 main ()
19730 {
19731 return f != dlopen;
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext conftest$ac_exeext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19738   (eval $ac_link) 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } &&
19745          { ac_try='test -z "$ac_c_werror_flag"
19746                          || test ! -s conftest.err'
19747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748   (eval $ac_try) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; } &&
19752          { ac_try='test -s conftest$ac_exeext'
19753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754   (eval $ac_try) 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); }; }; then
19758   ac_cv_func_dlopen=yes
19759 else
19760   echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 ac_cv_func_dlopen=no
19764 fi
19765 rm -f conftest.err conftest.$ac_objext \
19766       conftest$ac_exeext conftest.$ac_ext
19767 fi
19768 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19769 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19770 if test $ac_cv_func_dlopen = yes; then
19771   lt_cv_dlopen="dlopen"
19772 else
19773   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19774 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19775 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   ac_check_lib_save_LIBS=$LIBS
19779 LIBS="-ldl  $LIBS"
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h.  */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h.  */
19786
19787 /* Override any gcc2 internal prototype to avoid an error.  */
19788 #ifdef __cplusplus
19789 extern "C"
19790 #endif
19791 /* We use char because int might match the return type of a gcc2
19792    builtin and then its argument prototype would still apply.  */
19793 char dlopen ();
19794 int
19795 main ()
19796 {
19797 dlopen ();
19798   ;
19799   return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19804   (eval $ac_link) 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } &&
19811          { ac_try='test -z "$ac_c_werror_flag"
19812                          || test ! -s conftest.err'
19813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814   (eval $ac_try) 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }; } &&
19818          { ac_try='test -s conftest$ac_exeext'
19819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820   (eval $ac_try) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; }; then
19824   ac_cv_lib_dl_dlopen=yes
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ac_cv_lib_dl_dlopen=no
19830 fi
19831 rm -f conftest.err conftest.$ac_objext \
19832       conftest$ac_exeext conftest.$ac_ext
19833 LIBS=$ac_check_lib_save_LIBS
19834 fi
19835 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19836 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19837 if test $ac_cv_lib_dl_dlopen = yes; then
19838   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19839 else
19840   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19841 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19842 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-lsvld  $LIBS"
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853
19854 /* Override any gcc2 internal prototype to avoid an error.  */
19855 #ifdef __cplusplus
19856 extern "C"
19857 #endif
19858 /* We use char because int might match the return type of a gcc2
19859    builtin and then its argument prototype would still apply.  */
19860 char dlopen ();
19861 int
19862 main ()
19863 {
19864 dlopen ();
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871   (eval $ac_link) 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -z "$ac_c_werror_flag"
19879                          || test ! -s conftest.err'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; } &&
19885          { ac_try='test -s conftest$ac_exeext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   ac_cv_lib_svld_dlopen=yes
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_cv_lib_svld_dlopen=no
19897 fi
19898 rm -f conftest.err conftest.$ac_objext \
19899       conftest$ac_exeext conftest.$ac_ext
19900 LIBS=$ac_check_lib_save_LIBS
19901 fi
19902 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19903 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19904 if test $ac_cv_lib_svld_dlopen = yes; then
19905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19906 else
19907   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19908 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912   ac_check_lib_save_LIBS=$LIBS
19913 LIBS="-ldld  $LIBS"
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h.  */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h.  */
19920
19921 /* Override any gcc2 internal prototype to avoid an error.  */
19922 #ifdef __cplusplus
19923 extern "C"
19924 #endif
19925 /* We use char because int might match the return type of a gcc2
19926    builtin and then its argument prototype would still apply.  */
19927 char dld_link ();
19928 int
19929 main ()
19930 {
19931 dld_link ();
19932   ;
19933   return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext conftest$ac_exeext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19938   (eval $ac_link) 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } &&
19945          { ac_try='test -z "$ac_c_werror_flag"
19946                          || test ! -s conftest.err'
19947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948   (eval $ac_try) 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; } &&
19952          { ac_try='test -s conftest$ac_exeext'
19953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954   (eval $ac_try) 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; }; then
19958   ac_cv_lib_dld_dld_link=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963 ac_cv_lib_dld_dld_link=no
19964 fi
19965 rm -f conftest.err conftest.$ac_objext \
19966       conftest$ac_exeext conftest.$ac_ext
19967 LIBS=$ac_check_lib_save_LIBS
19968 fi
19969 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19970 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19971 if test $ac_cv_lib_dld_dld_link = yes; then
19972   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19973 fi
19974
19975
19976 fi
19977
19978
19979 fi
19980
19981
19982 fi
19983
19984
19985 fi
19986
19987
19988 fi
19989
19990     ;;
19991   esac
19992
19993   if test "x$lt_cv_dlopen" != xno; then
19994     enable_dlopen=yes
19995   else
19996     enable_dlopen=no
19997   fi
19998
19999   case $lt_cv_dlopen in
20000   dlopen)
20001     save_CPPFLAGS="$CPPFLAGS"
20002     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20003
20004     save_LDFLAGS="$LDFLAGS"
20005     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20006
20007     save_LIBS="$LIBS"
20008     LIBS="$lt_cv_dlopen_libs $LIBS"
20009
20010     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20011 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20012 if test "${lt_cv_dlopen_self+set}" = set; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015           if test "$cross_compiling" = yes; then :
20016   lt_cv_dlopen_self=cross
20017 else
20018   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20019   lt_status=$lt_dlunknown
20020   cat > conftest.$ac_ext <<EOF
20021 #line 20021 "configure"
20022 #include "confdefs.h"
20023
20024 #if HAVE_DLFCN_H
20025 #include <dlfcn.h>
20026 #endif
20027
20028 #include <stdio.h>
20029
20030 #ifdef RTLD_GLOBAL
20031 #  define LT_DLGLOBAL           RTLD_GLOBAL
20032 #else
20033 #  ifdef DL_GLOBAL
20034 #    define LT_DLGLOBAL         DL_GLOBAL
20035 #  else
20036 #    define LT_DLGLOBAL         0
20037 #  endif
20038 #endif
20039
20040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20041    find out it does not work in some platform. */
20042 #ifndef LT_DLLAZY_OR_NOW
20043 #  ifdef RTLD_LAZY
20044 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20045 #  else
20046 #    ifdef DL_LAZY
20047 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20048 #    else
20049 #      ifdef RTLD_NOW
20050 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20051 #      else
20052 #        ifdef DL_NOW
20053 #          define LT_DLLAZY_OR_NOW      DL_NOW
20054 #        else
20055 #          define LT_DLLAZY_OR_NOW      0
20056 #        endif
20057 #      endif
20058 #    endif
20059 #  endif
20060 #endif
20061
20062 #ifdef __cplusplus
20063 extern "C" void exit (int);
20064 #endif
20065
20066 void fnord() { int i=42;}
20067 int main ()
20068 {
20069   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20070   int status = $lt_dlunknown;
20071
20072   if (self)
20073     {
20074       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20075       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20076       /* dlclose (self); */
20077     }
20078
20079     exit (status);
20080 }
20081 EOF
20082   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20083   (eval $ac_link) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20087     (./conftest; exit; ) >&5 2>/dev/null
20088     lt_status=$?
20089     case x$lt_status in
20090       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20091       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20092       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20093     esac
20094   else :
20095     # compilation failed
20096     lt_cv_dlopen_self=no
20097   fi
20098 fi
20099 rm -fr conftest*
20100
20101
20102 fi
20103 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20104 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20105
20106     if test "x$lt_cv_dlopen_self" = xyes; then
20107       LDFLAGS="$LDFLAGS $link_static_flag"
20108       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20109 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20110 if test "${lt_cv_dlopen_self_static+set}" = set; then
20111   echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113           if test "$cross_compiling" = yes; then :
20114   lt_cv_dlopen_self_static=cross
20115 else
20116   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20117   lt_status=$lt_dlunknown
20118   cat > conftest.$ac_ext <<EOF
20119 #line 20119 "configure"
20120 #include "confdefs.h"
20121
20122 #if HAVE_DLFCN_H
20123 #include <dlfcn.h>
20124 #endif
20125
20126 #include <stdio.h>
20127
20128 #ifdef RTLD_GLOBAL
20129 #  define LT_DLGLOBAL           RTLD_GLOBAL
20130 #else
20131 #  ifdef DL_GLOBAL
20132 #    define LT_DLGLOBAL         DL_GLOBAL
20133 #  else
20134 #    define LT_DLGLOBAL         0
20135 #  endif
20136 #endif
20137
20138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20139    find out it does not work in some platform. */
20140 #ifndef LT_DLLAZY_OR_NOW
20141 #  ifdef RTLD_LAZY
20142 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20143 #  else
20144 #    ifdef DL_LAZY
20145 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20146 #    else
20147 #      ifdef RTLD_NOW
20148 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20149 #      else
20150 #        ifdef DL_NOW
20151 #          define LT_DLLAZY_OR_NOW      DL_NOW
20152 #        else
20153 #          define LT_DLLAZY_OR_NOW      0
20154 #        endif
20155 #      endif
20156 #    endif
20157 #  endif
20158 #endif
20159
20160 #ifdef __cplusplus
20161 extern "C" void exit (int);
20162 #endif
20163
20164 void fnord() { int i=42;}
20165 int main ()
20166 {
20167   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20168   int status = $lt_dlunknown;
20169
20170   if (self)
20171     {
20172       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20173       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20174       /* dlclose (self); */
20175     }
20176
20177     exit (status);
20178 }
20179 EOF
20180   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20181   (eval $ac_link) 2>&5
20182   ac_status=$?
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20185     (./conftest; exit; ) >&5 2>/dev/null
20186     lt_status=$?
20187     case x$lt_status in
20188       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20189       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20190       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20191     esac
20192   else :
20193     # compilation failed
20194     lt_cv_dlopen_self_static=no
20195   fi
20196 fi
20197 rm -fr conftest*
20198
20199
20200 fi
20201 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20202 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20203     fi
20204
20205     CPPFLAGS="$save_CPPFLAGS"
20206     LDFLAGS="$save_LDFLAGS"
20207     LIBS="$save_LIBS"
20208     ;;
20209   esac
20210
20211   case $lt_cv_dlopen_self in
20212   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20213   *) enable_dlopen_self=unknown ;;
20214   esac
20215
20216   case $lt_cv_dlopen_self_static in
20217   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20218   *) enable_dlopen_self_static=unknown ;;
20219   esac
20220 fi
20221
20222
20223 # Report which librarie types wil actually be built
20224 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20225 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20226 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20227 echo "${ECHO_T}$can_build_shared" >&6
20228
20229 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20230 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20231 test "$can_build_shared" = "no" && enable_shared=no
20232
20233 # On AIX, shared libraries and static libraries use the same namespace, and
20234 # are all built from PIC.
20235 case $host_os in
20236 aix3*)
20237   test "$enable_shared" = yes && enable_static=no
20238   if test -n "$RANLIB"; then
20239     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20240     postinstall_cmds='$RANLIB $lib'
20241   fi
20242   ;;
20243
20244 aix4* | aix5*)
20245   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20246     test "$enable_shared" = yes && enable_static=no
20247   fi
20248     ;;
20249 esac
20250 echo "$as_me:$LINENO: result: $enable_shared" >&5
20251 echo "${ECHO_T}$enable_shared" >&6
20252
20253 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20254 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20255 # Make sure either enable_shared or enable_static is yes.
20256 test "$enable_shared" = yes || enable_static=yes
20257 echo "$as_me:$LINENO: result: $enable_static" >&5
20258 echo "${ECHO_T}$enable_static" >&6
20259
20260 # The else clause should only fire when bootstrapping the
20261 # libtool distribution, otherwise you forgot to ship ltmain.sh
20262 # with your package, and you will get complaints that there are
20263 # no rules to generate ltmain.sh.
20264 if test -f "$ltmain"; then
20265   # See if we are running on zsh, and set the options which allow our commands through
20266   # without removal of \ escapes.
20267   if test -n "${ZSH_VERSION+set}" ; then
20268     setopt NO_GLOB_SUBST
20269   fi
20270   # Now quote all the things that may contain metacharacters while being
20271   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20272   # variables and quote the copies for generation of the libtool script.
20273   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20274     SED SHELL STRIP \
20275     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20276     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20277     deplibs_check_method reload_flag reload_cmds need_locks \
20278     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20279     lt_cv_sys_global_symbol_to_c_name_address \
20280     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20281     old_postinstall_cmds old_postuninstall_cmds \
20282     compiler \
20283     CC \
20284     LD \
20285     lt_prog_compiler_wl \
20286     lt_prog_compiler_pic \
20287     lt_prog_compiler_static \
20288     lt_prog_compiler_no_builtin_flag \
20289     export_dynamic_flag_spec \
20290     thread_safe_flag_spec \
20291     whole_archive_flag_spec \
20292     enable_shared_with_static_runtimes \
20293     old_archive_cmds \
20294     old_archive_from_new_cmds \
20295     predep_objects \
20296     postdep_objects \
20297     predeps \
20298     postdeps \
20299     compiler_lib_search_path \
20300     archive_cmds \
20301     archive_expsym_cmds \
20302     postinstall_cmds \
20303     postuninstall_cmds \
20304     old_archive_from_expsyms_cmds \
20305     allow_undefined_flag \
20306     no_undefined_flag \
20307     export_symbols_cmds \
20308     hardcode_libdir_flag_spec \
20309     hardcode_libdir_flag_spec_ld \
20310     hardcode_libdir_separator \
20311     hardcode_automatic \
20312     module_cmds \
20313     module_expsym_cmds \
20314     lt_cv_prog_compiler_c_o \
20315     exclude_expsyms \
20316     include_expsyms; do
20317
20318     case $var in
20319     old_archive_cmds | \
20320     old_archive_from_new_cmds | \
20321     archive_cmds | \
20322     archive_expsym_cmds | \
20323     module_cmds | \
20324     module_expsym_cmds | \
20325     old_archive_from_expsyms_cmds | \
20326     export_symbols_cmds | \
20327     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20328     postinstall_cmds | postuninstall_cmds | \
20329     old_postinstall_cmds | old_postuninstall_cmds | \
20330     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20331       # Double-quote double-evaled strings.
20332       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20333       ;;
20334     *)
20335       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20336       ;;
20337     esac
20338   done
20339
20340   case $lt_echo in
20341   *'\$0 --fallback-echo"')
20342     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20343     ;;
20344   esac
20345
20346 cfgfile="${ofile}T"
20347   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20348   $rm -f "$cfgfile"
20349   { echo "$as_me:$LINENO: creating $ofile" >&5
20350 echo "$as_me: creating $ofile" >&6;}
20351
20352   cat <<__EOF__ >> "$cfgfile"
20353 #! $SHELL
20354
20355 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20356 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20357 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20358 #
20359 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20360 # Free Software Foundation, Inc.
20361 #
20362 # This file is part of GNU Libtool:
20363 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20364 #
20365 # This program is free software; you can redistribute it and/or modify
20366 # it under the terms of the GNU General Public License as published by
20367 # the Free Software Foundation; either version 2 of the License, or
20368 # (at your option) any later version.
20369 #
20370 # This program is distributed in the hope that it will be useful, but
20371 # WITHOUT ANY WARRANTY; without even the implied warranty of
20372 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20373 # General Public License for more details.
20374 #
20375 # You should have received a copy of the GNU General Public License
20376 # along with this program; if not, write to the Free Software
20377 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20378 #
20379 # As a special exception to the GNU General Public License, if you
20380 # distribute this file as part of a program that contains a
20381 # configuration script generated by Autoconf, you may include it under
20382 # the same distribution terms that you use for the rest of that program.
20383
20384 # A sed program that does not truncate output.
20385 SED=$lt_SED
20386
20387 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20388 Xsed="$SED -e 1s/^X//"
20389
20390 # The HP-UX ksh and POSIX shell print the target directory to stdout
20391 # if CDPATH is set.
20392 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20393
20394 # The names of the tagged configurations supported by this script.
20395 available_tags=
20396
20397 # ### BEGIN LIBTOOL CONFIG
20398
20399 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20400
20401 # Shell to use when invoking shell scripts.
20402 SHELL=$lt_SHELL
20403
20404 # Whether or not to build shared libraries.
20405 build_libtool_libs=$enable_shared
20406
20407 # Whether or not to build static libraries.
20408 build_old_libs=$enable_static
20409
20410 # Whether or not to add -lc for building shared libraries.
20411 build_libtool_need_lc=$archive_cmds_need_lc
20412
20413 # Whether or not to disallow shared libs when runtime libs are static
20414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20415
20416 # Whether or not to optimize for fast installation.
20417 fast_install=$enable_fast_install
20418
20419 # The host system.
20420 host_alias=$host_alias
20421 host=$host
20422 host_os=$host_os
20423
20424 # The build system.
20425 build_alias=$build_alias
20426 build=$build
20427 build_os=$build_os
20428
20429 # An echo program that does not interpret backslashes.
20430 echo=$lt_echo
20431
20432 # The archiver.
20433 AR=$lt_AR
20434 AR_FLAGS=$lt_AR_FLAGS
20435
20436 # A C compiler.
20437 LTCC=$lt_LTCC
20438
20439 # A language-specific compiler.
20440 CC=$lt_compiler
20441
20442 # Is the compiler the GNU C compiler?
20443 with_gcc=$GCC
20444
20445 # An ERE matcher.
20446 EGREP=$lt_EGREP
20447
20448 # The linker used to build libraries.
20449 LD=$lt_LD
20450
20451 # Whether we need hard or soft links.
20452 LN_S=$lt_LN_S
20453
20454 # A BSD-compatible nm program.
20455 NM=$lt_NM
20456
20457 # A symbol stripping program
20458 STRIP=$lt_STRIP
20459
20460 # Used to examine libraries when file_magic_cmd begins "file"
20461 MAGIC_CMD=$MAGIC_CMD
20462
20463 # Used on cygwin: DLL creation program.
20464 DLLTOOL="$DLLTOOL"
20465
20466 # Used on cygwin: object dumper.
20467 OBJDUMP="$OBJDUMP"
20468
20469 # Used on cygwin: assembler.
20470 AS="$AS"
20471
20472 # The name of the directory that contains temporary libtool files.
20473 objdir=$objdir
20474
20475 # How to create reloadable object files.
20476 reload_flag=$lt_reload_flag
20477 reload_cmds=$lt_reload_cmds
20478
20479 # How to pass a linker flag through the compiler.
20480 wl=$lt_lt_prog_compiler_wl
20481
20482 # Object file suffix (normally "o").
20483 objext="$ac_objext"
20484
20485 # Old archive suffix (normally "a").
20486 libext="$libext"
20487
20488 # Shared library suffix (normally ".so").
20489 shrext_cmds='$shrext_cmds'
20490
20491 # Executable file suffix (normally "").
20492 exeext="$exeext"
20493
20494 # Additional compiler flags for building library objects.
20495 pic_flag=$lt_lt_prog_compiler_pic
20496 pic_mode=$pic_mode
20497
20498 # What is the maximum length of a command?
20499 max_cmd_len=$lt_cv_sys_max_cmd_len
20500
20501 # Does compiler simultaneously support -c and -o options?
20502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20503
20504 # Must we lock files when doing compilation?
20505 need_locks=$lt_need_locks
20506
20507 # Do we need the lib prefix for modules?
20508 need_lib_prefix=$need_lib_prefix
20509
20510 # Do we need a version for libraries?
20511 need_version=$need_version
20512
20513 # Whether dlopen is supported.
20514 dlopen_support=$enable_dlopen
20515
20516 # Whether dlopen of programs is supported.
20517 dlopen_self=$enable_dlopen_self
20518
20519 # Whether dlopen of statically linked programs is supported.
20520 dlopen_self_static=$enable_dlopen_self_static
20521
20522 # Compiler flag to prevent dynamic linking.
20523 link_static_flag=$lt_lt_prog_compiler_static
20524
20525 # Compiler flag to turn off builtin functions.
20526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20527
20528 # Compiler flag to allow reflexive dlopens.
20529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20530
20531 # Compiler flag to generate shared objects directly from archives.
20532 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20533
20534 # Compiler flag to generate thread-safe objects.
20535 thread_safe_flag_spec=$lt_thread_safe_flag_spec
20536
20537 # Library versioning type.
20538 version_type=$version_type
20539
20540 # Format of library name prefix.
20541 libname_spec=$lt_libname_spec
20542
20543 # List of archive names.  First name is the real one, the rest are links.
20544 # The last name is the one that the linker finds with -lNAME.
20545 library_names_spec=$lt_library_names_spec
20546
20547 # The coded name of the library, if different from the real name.
20548 soname_spec=$lt_soname_spec
20549
20550 # Commands used to build and install an old-style archive.
20551 RANLIB=$lt_RANLIB
20552 old_archive_cmds=$lt_old_archive_cmds
20553 old_postinstall_cmds=$lt_old_postinstall_cmds
20554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20555
20556 # Create an old-style archive from a shared archive.
20557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20558
20559 # Create a temporary old-style archive to link instead of a shared archive.
20560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20561
20562 # Commands used to build and install a shared archive.
20563 archive_cmds=$lt_archive_cmds
20564 archive_expsym_cmds=$lt_archive_expsym_cmds
20565 postinstall_cmds=$lt_postinstall_cmds
20566 postuninstall_cmds=$lt_postuninstall_cmds
20567
20568 # Commands used to build a loadable module (assumed same as above if empty)
20569 module_cmds=$lt_module_cmds
20570 module_expsym_cmds=$lt_module_expsym_cmds
20571
20572 # Commands to strip libraries.
20573 old_striplib=$lt_old_striplib
20574 striplib=$lt_striplib
20575
20576 # Dependencies to place before the objects being linked to create a
20577 # shared library.
20578 predep_objects=$lt_predep_objects
20579
20580 # Dependencies to place after the objects being linked to create a
20581 # shared library.
20582 postdep_objects=$lt_postdep_objects
20583
20584 # Dependencies to place before the objects being linked to create a
20585 # shared library.
20586 predeps=$lt_predeps
20587
20588 # Dependencies to place after the objects being linked to create a
20589 # shared library.
20590 postdeps=$lt_postdeps
20591
20592 # The library search path used internally by the compiler when linking
20593 # a shared library.
20594 compiler_lib_search_path=$lt_compiler_lib_search_path
20595
20596 # Method to check whether dependent libraries are shared objects.
20597 deplibs_check_method=$lt_deplibs_check_method
20598
20599 # Command to use when deplibs_check_method == file_magic.
20600 file_magic_cmd=$lt_file_magic_cmd
20601
20602 # Flag that allows shared libraries with undefined symbols to be built.
20603 allow_undefined_flag=$lt_allow_undefined_flag
20604
20605 # Flag that forces no undefined symbols.
20606 no_undefined_flag=$lt_no_undefined_flag
20607
20608 # Commands used to finish a libtool library installation in a directory.
20609 finish_cmds=$lt_finish_cmds
20610
20611 # Same as above, but a single script fragment to be evaled but not shown.
20612 finish_eval=$lt_finish_eval
20613
20614 # Take the output of nm and produce a listing of raw symbols and C names.
20615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20616
20617 # Transform the output of nm in a proper C declaration
20618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20619
20620 # Transform the output of nm in a C name address pair
20621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20622
20623 # This is the shared library runtime path variable.
20624 runpath_var=$runpath_var
20625
20626 # This is the shared library path variable.
20627 shlibpath_var=$shlibpath_var
20628
20629 # Is shlibpath searched before the hard-coded library search path?
20630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20631
20632 # How to hardcode a shared library path into an executable.
20633 hardcode_action=$hardcode_action
20634
20635 # Whether we should hardcode library paths into libraries.
20636 hardcode_into_libs=$hardcode_into_libs
20637
20638 # Flag to hardcode \$libdir into a binary during linking.
20639 # This must work even if \$libdir does not exist.
20640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20641
20642 # If ld is used when linking, flag to hardcode \$libdir into
20643 # a binary during linking. This must work even if \$libdir does
20644 # not exist.
20645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20646
20647 # Whether we need a single -rpath flag with a separated argument.
20648 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20649
20650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20651 # resulting binary.
20652 hardcode_direct=$hardcode_direct
20653
20654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20655 # resulting binary.
20656 hardcode_minus_L=$hardcode_minus_L
20657
20658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20659 # the resulting binary.
20660 hardcode_shlibpath_var=$hardcode_shlibpath_var
20661
20662 # Set to yes if building a shared library automatically hardcodes DIR into the library
20663 # and all subsequent libraries and executables linked against it.
20664 hardcode_automatic=$hardcode_automatic
20665
20666 # Variables whose values should be saved in libtool wrapper scripts and
20667 # restored at relink time.
20668 variables_saved_for_relink="$variables_saved_for_relink"
20669
20670 # Whether libtool must link a program against all its dependency libraries.
20671 link_all_deplibs=$link_all_deplibs
20672
20673 # Compile-time system search path for libraries
20674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20675
20676 # Run-time system search path for libraries
20677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20678
20679 # Fix the shell variable \$srcfile for the compiler.
20680 fix_srcfile_path="$fix_srcfile_path"
20681
20682 # Set to yes if exported symbols are required.
20683 always_export_symbols=$always_export_symbols
20684
20685 # The commands to list exported symbols.
20686 export_symbols_cmds=$lt_export_symbols_cmds
20687
20688 # The commands to extract the exported symbol list from a shared archive.
20689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20690
20691 # Symbols that should not be listed in the preloaded symbols.
20692 exclude_expsyms=$lt_exclude_expsyms
20693
20694 # Symbols that must always be exported.
20695 include_expsyms=$lt_include_expsyms
20696
20697 # ### END LIBTOOL CONFIG
20698
20699 __EOF__
20700
20701
20702   case $host_os in
20703   aix3*)
20704     cat <<\EOF >> "$cfgfile"
20705
20706 # AIX sometimes has problems with the GCC collect2 program.  For some
20707 # reason, if we set the COLLECT_NAMES environment variable, the problems
20708 # vanish in a puff of smoke.
20709 if test "X${COLLECT_NAMES+set}" != Xset; then
20710   COLLECT_NAMES=
20711   export COLLECT_NAMES
20712 fi
20713 EOF
20714     ;;
20715   esac
20716
20717   # We use sed instead of cat because bash on DJGPP gets confused if
20718   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20719   # text mode, it properly converts lines to CR/LF.  This bash problem
20720   # is reportedly fixed, but why not run on old versions too?
20721   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20722
20723   mv -f "$cfgfile" "$ofile" || \
20724     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20725   chmod +x "$ofile"
20726
20727 else
20728   # If there is no Makefile yet, we rely on a make rule to execute
20729   # `config.status --recheck' to rerun these tests and create the
20730   # libtool script then.
20731   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20732   if test -f "$ltmain_in"; then
20733     test -f Makefile && make "$ltmain"
20734   fi
20735 fi
20736
20737
20738 ac_ext=c
20739 ac_cpp='$CPP $CPPFLAGS'
20740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743
20744 CC="$lt_save_CC"
20745
20746
20747 # Check whether --with-tags or --without-tags was given.
20748 if test "${with_tags+set}" = set; then
20749   withval="$with_tags"
20750   tagnames="$withval"
20751 fi;
20752
20753 if test -f "$ltmain" && test -n "$tagnames"; then
20754   if test ! -f "${ofile}"; then
20755     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20756 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20757   fi
20758
20759   if test -z "$LTCC"; then
20760     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20761     if test -z "$LTCC"; then
20762       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20763 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20764     else
20765       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20766 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20767     fi
20768   fi
20769
20770   # Extract list of available tagged configurations in $ofile.
20771   # Note that this assumes the entire list is on one line.
20772   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20773
20774   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20775   for tagname in $tagnames; do
20776     IFS="$lt_save_ifs"
20777     # Check whether tagname contains only valid characters
20778     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20779     "") ;;
20780     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20781 echo "$as_me: error: invalid tag name: $tagname" >&2;}
20782    { (exit 1); exit 1; }; }
20783         ;;
20784     esac
20785
20786     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20787     then
20788       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20789 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20790    { (exit 1); exit 1; }; }
20791     fi
20792
20793     # Update the list of available tags.
20794     if test -n "$tagname"; then
20795       echo appending configuration tag \"$tagname\" to $ofile
20796
20797       case $tagname in
20798       CXX)
20799         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20800             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20801             (test "X$CXX" != "Xg++"))) ; then
20802           ac_ext=cc
20803 ac_cpp='$CXXCPP $CPPFLAGS'
20804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20807
20808
20809
20810
20811 archive_cmds_need_lc_CXX=no
20812 allow_undefined_flag_CXX=
20813 always_export_symbols_CXX=no
20814 archive_expsym_cmds_CXX=
20815 export_dynamic_flag_spec_CXX=
20816 hardcode_direct_CXX=no
20817 hardcode_libdir_flag_spec_CXX=
20818 hardcode_libdir_flag_spec_ld_CXX=
20819 hardcode_libdir_separator_CXX=
20820 hardcode_minus_L_CXX=no
20821 hardcode_automatic_CXX=no
20822 module_cmds_CXX=
20823 module_expsym_cmds_CXX=
20824 link_all_deplibs_CXX=unknown
20825 old_archive_cmds_CXX=$old_archive_cmds
20826 no_undefined_flag_CXX=
20827 whole_archive_flag_spec_CXX=
20828 enable_shared_with_static_runtimes_CXX=no
20829
20830 # Dependencies to place before and after the object being linked:
20831 predep_objects_CXX=
20832 postdep_objects_CXX=
20833 predeps_CXX=
20834 postdeps_CXX=
20835 compiler_lib_search_path_CXX=
20836
20837 # Source file extension for C++ test sources.
20838 ac_ext=cpp
20839
20840 # Object file extension for compiled C++ test sources.
20841 objext=o
20842 objext_CXX=$objext
20843
20844 # Code to be used in simple compile tests
20845 lt_simple_compile_test_code="int some_variable = 0;\n"
20846
20847 # Code to be used in simple link tests
20848 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20849
20850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20851
20852 # If no C compiler was specified, use CC.
20853 LTCC=${LTCC-"$CC"}
20854
20855 # Allow CC to be a program name with arguments.
20856 compiler=$CC
20857
20858
20859 # save warnings/boilerplate of simple test code
20860 ac_outfile=conftest.$ac_objext
20861 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20863 _lt_compiler_boilerplate=`cat conftest.err`
20864 $rm conftest*
20865
20866 ac_outfile=conftest.$ac_objext
20867 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20869 _lt_linker_boilerplate=`cat conftest.err`
20870 $rm conftest*
20871
20872
20873 # Allow CC to be a program name with arguments.
20874 lt_save_CC=$CC
20875 lt_save_LD=$LD
20876 lt_save_GCC=$GCC
20877 GCC=$GXX
20878 lt_save_with_gnu_ld=$with_gnu_ld
20879 lt_save_path_LD=$lt_cv_path_LD
20880 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20881   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20882 else
20883   unset lt_cv_prog_gnu_ld
20884 fi
20885 if test -n "${lt_cv_path_LDCXX+set}"; then
20886   lt_cv_path_LD=$lt_cv_path_LDCXX
20887 else
20888   unset lt_cv_path_LD
20889 fi
20890 test -z "${LDCXX+set}" || LD=$LDCXX
20891 CC=${CXX-"c++"}
20892 compiler=$CC
20893 compiler_CXX=$CC
20894 for cc_temp in $compiler""; do
20895   case $cc_temp in
20896     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20897     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20898     \-*) ;;
20899     *) break;;
20900   esac
20901 done
20902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20903
20904
20905 # We don't want -fno-exception wen compiling C++ code, so set the
20906 # no_builtin_flag separately
20907 if test "$GXX" = yes; then
20908   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20909 else
20910   lt_prog_compiler_no_builtin_flag_CXX=
20911 fi
20912
20913 if test "$GXX" = yes; then
20914   # Set up default GNU C++ configuration
20915
20916
20917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
20918 if test "${with_gnu_ld+set}" = set; then
20919   withval="$with_gnu_ld"
20920   test "$withval" = no || with_gnu_ld=yes
20921 else
20922   with_gnu_ld=no
20923 fi;
20924 ac_prog=ld
20925 if test "$GCC" = yes; then
20926   # Check if gcc -print-prog-name=ld gives a path.
20927   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20928 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20929   case $host in
20930   *-*-mingw*)
20931     # gcc leaves a trailing carriage return which upsets mingw
20932     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20933   *)
20934     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20935   esac
20936   case $ac_prog in
20937     # Accept absolute paths.
20938     [\\/]* | ?:[\\/]*)
20939       re_direlt='/[^/][^/]*/\.\./'
20940       # Canonicalize the pathname of ld
20941       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20942       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20943         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20944       done
20945       test -z "$LD" && LD="$ac_prog"
20946       ;;
20947   "")
20948     # If it fails, then pretend we aren't using GCC.
20949     ac_prog=ld
20950     ;;
20951   *)
20952     # If it is relative, then search for the first ld in PATH.
20953     with_gnu_ld=unknown
20954     ;;
20955   esac
20956 elif test "$with_gnu_ld" = yes; then
20957   echo "$as_me:$LINENO: checking for GNU ld" >&5
20958 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20959 else
20960   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20961 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20962 fi
20963 if test "${lt_cv_path_LD+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966   if test -z "$LD"; then
20967   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20968   for ac_dir in $PATH; do
20969     IFS="$lt_save_ifs"
20970     test -z "$ac_dir" && ac_dir=.
20971     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20972       lt_cv_path_LD="$ac_dir/$ac_prog"
20973       # Check to see if the program is GNU ld.  I'd rather use --version,
20974       # but apparently some variants of GNU ld only accept -v.
20975       # Break only if it was the GNU/non-GNU ld that we prefer.
20976       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20977       *GNU* | *'with BFD'*)
20978         test "$with_gnu_ld" != no && break
20979         ;;
20980       *)
20981         test "$with_gnu_ld" != yes && break
20982         ;;
20983       esac
20984     fi
20985   done
20986   IFS="$lt_save_ifs"
20987 else
20988   lt_cv_path_LD="$LD" # Let the user override the test with a path.
20989 fi
20990 fi
20991
20992 LD="$lt_cv_path_LD"
20993 if test -n "$LD"; then
20994   echo "$as_me:$LINENO: result: $LD" >&5
20995 echo "${ECHO_T}$LD" >&6
20996 else
20997   echo "$as_me:$LINENO: result: no" >&5
20998 echo "${ECHO_T}no" >&6
20999 fi
21000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21002    { (exit 1); exit 1; }; }
21003 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21005 if test "${lt_cv_prog_gnu_ld+set}" = set; then
21006   echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008   # I'd rather use --version here, but apparently some GNU lds only accept -v.
21009 case `$LD -v 2>&1 </dev/null` in
21010 *GNU* | *'with BFD'*)
21011   lt_cv_prog_gnu_ld=yes
21012   ;;
21013 *)
21014   lt_cv_prog_gnu_ld=no
21015   ;;
21016 esac
21017 fi
21018 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
21019 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
21020 with_gnu_ld=$lt_cv_prog_gnu_ld
21021
21022
21023
21024   # Check if GNU C++ uses GNU ld as the underlying linker, since the
21025   # archiving commands below assume that GNU ld is being used.
21026   if test "$with_gnu_ld" = yes; then
21027     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21028     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'
21029
21030     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21031     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21032
21033     # If archive_cmds runs LD, not CC, wlarc should be empty
21034     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21035     #     investigate it a little bit more. (MM)
21036     wlarc='${wl}'
21037
21038     # ancient GNU ld didn't support --whole-archive et. al.
21039     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
21040         grep 'no-whole-archive' > /dev/null; then
21041       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21042     else
21043       whole_archive_flag_spec_CXX=
21044     fi
21045   else
21046     with_gnu_ld=no
21047     wlarc=
21048
21049     # A generic and very simple default shared library creation
21050     # command for GNU C++ for the case where it uses the native
21051     # linker, instead of GNU ld.  If possible, this setting should
21052     # overridden to take advantage of the native linker features on
21053     # the platform it is being used on.
21054     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21055   fi
21056
21057   # Commands to make compiler produce verbose output that lists
21058   # what "hidden" libraries, object files and flags are used when
21059   # linking a shared library.
21060   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21061
21062 else
21063   GXX=no
21064   with_gnu_ld=no
21065   wlarc=
21066 fi
21067
21068 # PORTME: fill in a description of your system's C++ link characteristics
21069 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21070 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21071 ld_shlibs_CXX=yes
21072 case $host_os in
21073   aix3*)
21074     # FIXME: insert proper C++ library support
21075     ld_shlibs_CXX=no
21076     ;;
21077   aix4* | aix5*)
21078     if test "$host_cpu" = ia64; then
21079       # On IA64, the linker does run time linking by default, so we don't
21080       # have to do anything special.
21081       aix_use_runtimelinking=no
21082       exp_sym_flag='-Bexport'
21083       no_entry_flag=""
21084     else
21085       aix_use_runtimelinking=no
21086
21087       # Test if we are trying to use run time linking or normal
21088       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21089       # need to do runtime linking.
21090       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21091         for ld_flag in $LDFLAGS; do
21092           case $ld_flag in
21093           *-brtl*)
21094             aix_use_runtimelinking=yes
21095             break
21096             ;;
21097           esac
21098         done
21099       esac
21100
21101       exp_sym_flag='-bexport'
21102       no_entry_flag='-bnoentry'
21103     fi
21104
21105     # When large executables or shared objects are built, AIX ld can
21106     # have problems creating the table of contents.  If linking a library
21107     # or program results in "error TOC overflow" add -mminimal-toc to
21108     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21109     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21110
21111     archive_cmds_CXX=''
21112     hardcode_direct_CXX=yes
21113     hardcode_libdir_separator_CXX=':'
21114     link_all_deplibs_CXX=yes
21115
21116     if test "$GXX" = yes; then
21117       case $host_os in aix4.[012]|aix4.[012].*)
21118       # We only want to do this on AIX 4.2 and lower, the check
21119       # below for broken collect2 doesn't work under 4.3+
21120         collect2name=`${CC} -print-prog-name=collect2`
21121         if test -f "$collect2name" && \
21122            strings "$collect2name" | grep resolve_lib_name >/dev/null
21123         then
21124           # We have reworked collect2
21125           hardcode_direct_CXX=yes
21126         else
21127           # We have old collect2
21128           hardcode_direct_CXX=unsupported
21129           # It fails to find uninstalled libraries when the uninstalled
21130           # path is not listed in the libpath.  Setting hardcode_minus_L
21131           # to unsupported forces relinking
21132           hardcode_minus_L_CXX=yes
21133           hardcode_libdir_flag_spec_CXX='-L$libdir'
21134           hardcode_libdir_separator_CXX=
21135         fi
21136       esac
21137       shared_flag='-shared'
21138       if test "$aix_use_runtimelinking" = yes; then
21139         shared_flag="$shared_flag "'${wl}-G'
21140       fi
21141     else
21142       # not using gcc
21143       if test "$host_cpu" = ia64; then
21144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21145         # chokes on -Wl,-G. The following line is correct:
21146         shared_flag='-G'
21147       else
21148         if test "$aix_use_runtimelinking" = yes; then
21149           shared_flag='${wl}-G'
21150         else
21151           shared_flag='${wl}-bM:SRE'
21152         fi
21153       fi
21154     fi
21155
21156     # It seems that -bexpall does not export symbols beginning with
21157     # underscore (_), so it is better to generate a list of symbols to export.
21158     always_export_symbols_CXX=yes
21159     if test "$aix_use_runtimelinking" = yes; then
21160       # Warning - without using the other runtime loading flags (-brtl),
21161       # -berok will link without error, but may produce a broken library.
21162       allow_undefined_flag_CXX='-berok'
21163       # Determine the default libpath from the value encoded in an empty executable.
21164       cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h.  */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h.  */
21170
21171 int
21172 main ()
21173 {
21174
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext conftest$ac_exeext
21180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21181   (eval $ac_link) 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } &&
21188          { ac_try='test -z "$ac_cxx_werror_flag"
21189                          || test ! -s conftest.err'
21190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191   (eval $ac_try) 2>&5
21192   ac_status=$?
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); }; } &&
21195          { ac_try='test -s conftest$ac_exeext'
21196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197   (eval $ac_try) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); }; }; then
21201
21202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21203 }'`
21204 # Check for a 64-bit object if we didn't find anything.
21205 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; }
21206 }'`; fi
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 fi
21212 rm -f conftest.err conftest.$ac_objext \
21213       conftest$ac_exeext conftest.$ac_ext
21214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21215
21216       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21217
21218       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"
21219      else
21220       if test "$host_cpu" = ia64; then
21221         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
21222         allow_undefined_flag_CXX="-z nodefs"
21223         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"
21224       else
21225         # Determine the default libpath from the value encoded in an empty executable.
21226         cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232
21233 int
21234 main ()
21235 {
21236
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21243   (eval $ac_link) 2>conftest.er1
21244   ac_status=$?
21245   grep -v '^ *+' conftest.er1 >conftest.err
21246   rm -f conftest.er1
21247   cat conftest.err >&5
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); } &&
21250          { ac_try='test -z "$ac_cxx_werror_flag"
21251                          || test ! -s conftest.err'
21252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253   (eval $ac_try) 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; } &&
21257          { ac_try='test -s conftest$ac_exeext'
21258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259   (eval $ac_try) 2>&5
21260   ac_status=$?
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); }; }; then
21263
21264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21265 }'`
21266 # Check for a 64-bit object if we didn't find anything.
21267 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; }
21268 }'`; fi
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 fi
21274 rm -f conftest.err conftest.$ac_objext \
21275       conftest$ac_exeext conftest.$ac_ext
21276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21277
21278         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21279         # Warning - without using the other run time loading flags,
21280         # -berok will link without error, but may produce a broken library.
21281         no_undefined_flag_CXX=' ${wl}-bernotok'
21282         allow_undefined_flag_CXX=' ${wl}-berok'
21283         # -bexpall does not export symbols beginning with underscore (_)
21284         always_export_symbols_CXX=yes
21285         # Exported symbols can be pulled into shared objects from archives
21286         whole_archive_flag_spec_CXX=' '
21287         archive_cmds_need_lc_CXX=yes
21288         # This is similar to how AIX traditionally builds its shared libraries.
21289         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'
21290       fi
21291     fi
21292     ;;
21293   chorus*)
21294     case $cc_basename in
21295       *)
21296         # FIXME: insert proper C++ library support
21297         ld_shlibs_CXX=no
21298         ;;
21299     esac
21300     ;;
21301
21302
21303   cygwin* | mingw* | pw32*)
21304     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21305     # as there is no search path for DLLs.
21306     hardcode_libdir_flag_spec_CXX='-L$libdir'
21307     allow_undefined_flag_CXX=unsupported
21308     always_export_symbols_CXX=no
21309     enable_shared_with_static_runtimes_CXX=yes
21310
21311     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21312       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'
21313       # If the export-symbols file already is a .def file (1st line
21314       # is EXPORTS), use it as is; otherwise, prepend...
21315       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21316         cp $export_symbols $output_objdir/$soname.def;
21317       else
21318         echo EXPORTS > $output_objdir/$soname.def;
21319         cat $export_symbols >> $output_objdir/$soname.def;
21320       fi~
21321       $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'
21322     else
21323       ld_shlibs_CXX=no
21324     fi
21325   ;;
21326       darwin* | rhapsody*)
21327         case $host_os in
21328         rhapsody* | darwin1.[012])
21329          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21330          ;;
21331        *) # Darwin 1.3 on
21332          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21333            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21334          else
21335            case ${MACOSX_DEPLOYMENT_TARGET} in
21336              10.[012])
21337                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21338                ;;
21339              10.*)
21340                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21341                ;;
21342            esac
21343          fi
21344          ;;
21345         esac
21346       archive_cmds_need_lc_CXX=no
21347       hardcode_direct_CXX=no
21348       hardcode_automatic_CXX=yes
21349       hardcode_shlibpath_var_CXX=unsupported
21350       whole_archive_flag_spec_CXX=''
21351       link_all_deplibs_CXX=yes
21352
21353     if test "$GXX" = yes ; then
21354       lt_int_apple_cc_single_mod=no
21355       output_verbose_link_cmd='echo'
21356       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21357        lt_int_apple_cc_single_mod=yes
21358       fi
21359       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21360        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21361       else
21362           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21363         fi
21364         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21365         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21366           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21367             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}'
21368           else
21369             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21370           fi
21371             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}'
21372       else
21373       case $cc_basename in
21374         xlc*)
21375          output_verbose_link_cmd='echo'
21376           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21377           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21378           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21379           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21380           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}'
21381           ;;
21382        *)
21383          ld_shlibs_CXX=no
21384           ;;
21385       esac
21386       fi
21387         ;;
21388
21389   dgux*)
21390     case $cc_basename in
21391       ec++*)
21392         # FIXME: insert proper C++ library support
21393         ld_shlibs_CXX=no
21394         ;;
21395       ghcx*)
21396         # Green Hills C++ Compiler
21397         # FIXME: insert proper C++ library support
21398         ld_shlibs_CXX=no
21399         ;;
21400       *)
21401         # FIXME: insert proper C++ library support
21402         ld_shlibs_CXX=no
21403         ;;
21404     esac
21405     ;;
21406   freebsd[12]*)
21407     # C++ shared libraries reported to be fairly broken before switch to ELF
21408     ld_shlibs_CXX=no
21409     ;;
21410   freebsd-elf*)
21411     archive_cmds_need_lc_CXX=no
21412     ;;
21413   freebsd* | kfreebsd*-gnu | dragonfly*)
21414     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21415     # conventions
21416     ld_shlibs_CXX=yes
21417     ;;
21418   gnu*)
21419     ;;
21420   hpux9*)
21421     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21422     hardcode_libdir_separator_CXX=:
21423     export_dynamic_flag_spec_CXX='${wl}-E'
21424     hardcode_direct_CXX=yes
21425     hardcode_minus_L_CXX=yes # Not in the search PATH,
21426                                 # but as the default
21427                                 # location of the library.
21428
21429     case $cc_basename in
21430     CC*)
21431       # FIXME: insert proper C++ library support
21432       ld_shlibs_CXX=no
21433       ;;
21434     aCC*)
21435       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'
21436       # Commands to make compiler produce verbose output that lists
21437       # what "hidden" libraries, object files and flags are used when
21438       # linking a shared library.
21439       #
21440       # There doesn't appear to be a way to prevent this compiler from
21441       # explicitly linking system object files so we need to strip them
21442       # from the output so that they don't get included in the library
21443       # dependencies.
21444       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'
21445       ;;
21446     *)
21447       if test "$GXX" = yes; then
21448         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'
21449       else
21450         # FIXME: insert proper C++ library support
21451         ld_shlibs_CXX=no
21452       fi
21453       ;;
21454     esac
21455     ;;
21456   hpux10*|hpux11*)
21457     if test $with_gnu_ld = no; then
21458       case $host_cpu in
21459       hppa*64*)
21460         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21461         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21462         hardcode_libdir_separator_CXX=:
21463         ;;
21464       ia64*)
21465         hardcode_libdir_flag_spec_CXX='-L$libdir'
21466         ;;
21467       *)
21468         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21469         hardcode_libdir_separator_CXX=:
21470         export_dynamic_flag_spec_CXX='${wl}-E'
21471         ;;
21472       esac
21473     fi
21474     case $host_cpu in
21475     hppa*64*)
21476       hardcode_direct_CXX=no
21477       hardcode_shlibpath_var_CXX=no
21478       ;;
21479     ia64*)
21480       hardcode_direct_CXX=no
21481       hardcode_shlibpath_var_CXX=no
21482       hardcode_minus_L_CXX=yes # Not in the search PATH,
21483                                               # but as the default
21484                                               # location of the library.
21485       ;;
21486     *)
21487       hardcode_direct_CXX=yes
21488       hardcode_minus_L_CXX=yes # Not in the search PATH,
21489                                               # but as the default
21490                                               # location of the library.
21491       ;;
21492     esac
21493
21494     case $cc_basename in
21495       CC*)
21496         # FIXME: insert proper C++ library support
21497         ld_shlibs_CXX=no
21498         ;;
21499       aCC*)
21500         case $host_cpu in
21501         hppa*64*|ia64*)
21502           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21503           ;;
21504         *)
21505           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21506           ;;
21507         esac
21508         # Commands to make compiler produce verbose output that lists
21509         # what "hidden" libraries, object files and flags are used when
21510         # linking a shared library.
21511         #
21512         # There doesn't appear to be a way to prevent this compiler from
21513         # explicitly linking system object files so we need to strip them
21514         # from the output so that they don't get included in the library
21515         # dependencies.
21516         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'
21517         ;;
21518       *)
21519         if test "$GXX" = yes; then
21520           if test $with_gnu_ld = no; then
21521             case $host_cpu in
21522             ia64*|hppa*64*)
21523               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21524               ;;
21525             *)
21526               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'
21527               ;;
21528             esac
21529           fi
21530         else
21531           # FIXME: insert proper C++ library support
21532           ld_shlibs_CXX=no
21533         fi
21534         ;;
21535     esac
21536     ;;
21537   irix5* | irix6*)
21538     case $cc_basename in
21539       CC*)
21540         # SGI C++
21541         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21542
21543         # Archives containing C++ object files must be created using
21544         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
21545         # necessary to make sure instantiated templates are included
21546         # in the archive.
21547         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21548         ;;
21549       *)
21550         if test "$GXX" = yes; then
21551           if test "$with_gnu_ld" = no; then
21552             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21553           else
21554             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'
21555           fi
21556         fi
21557         link_all_deplibs_CXX=yes
21558         ;;
21559     esac
21560     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21561     hardcode_libdir_separator_CXX=:
21562     ;;
21563   linux*)
21564     case $cc_basename in
21565       KCC*)
21566         # Kuck and Associates, Inc. (KAI) C++ Compiler
21567
21568         # KCC will only create a shared library if the output file
21569         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21570         # to its proper name (with version) after linking.
21571         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'
21572         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'
21573         # Commands to make compiler produce verbose output that lists
21574         # what "hidden" libraries, object files and flags are used when
21575         # linking a shared library.
21576         #
21577         # There doesn't appear to be a way to prevent this compiler from
21578         # explicitly linking system object files so we need to strip them
21579         # from the output so that they don't get included in the library
21580         # dependencies.
21581         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'
21582
21583         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21584         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21585
21586         # Archives containing C++ object files must be created using
21587         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21588         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21589         ;;
21590       icpc*)
21591         # Intel C++
21592         with_gnu_ld=yes
21593         # version 8.0 and above of icpc choke on multiply defined symbols
21594         # if we add $predep_objects and $postdep_objects, however 7.1 and
21595         # earlier do not add the objects themselves.
21596         case `$CC -V 2>&1` in
21597         *"Version 7."*)
21598           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21599           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'
21600           ;;
21601         *)  # Version 8.0 or newer
21602           tmp_idyn=
21603           case $host_cpu in
21604             ia64*) tmp_idyn=' -i_dynamic';;
21605           esac
21606           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21607           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21608           ;;
21609         esac
21610         archive_cmds_need_lc_CXX=no
21611         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21612         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21613         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21614         ;;
21615       pgCC*)
21616         # Portland Group C++ compiler
21617         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21618         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
21619
21620         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21621         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21622         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21623         ;;
21624       cxx*)
21625         # Compaq C++
21626         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21627         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'
21628
21629         runpath_var=LD_RUN_PATH
21630         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21631         hardcode_libdir_separator_CXX=:
21632
21633         # Commands to make compiler produce verbose output that lists
21634         # what "hidden" libraries, object files and flags are used when
21635         # linking a shared library.
21636         #
21637         # There doesn't appear to be a way to prevent this compiler from
21638         # explicitly linking system object files so we need to strip them
21639         # from the output so that they don't get included in the library
21640         # dependencies.
21641         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'
21642         ;;
21643     esac
21644     ;;
21645   lynxos*)
21646     # FIXME: insert proper C++ library support
21647     ld_shlibs_CXX=no
21648     ;;
21649   m88k*)
21650     # FIXME: insert proper C++ library support
21651     ld_shlibs_CXX=no
21652     ;;
21653   mvs*)
21654     case $cc_basename in
21655       cxx*)
21656         # FIXME: insert proper C++ library support
21657         ld_shlibs_CXX=no
21658         ;;
21659       *)
21660         # FIXME: insert proper C++ library support
21661         ld_shlibs_CXX=no
21662         ;;
21663     esac
21664     ;;
21665   netbsd*)
21666     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21667       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21668       wlarc=
21669       hardcode_libdir_flag_spec_CXX='-R$libdir'
21670       hardcode_direct_CXX=yes
21671       hardcode_shlibpath_var_CXX=no
21672     fi
21673     # Workaround some broken pre-1.5 toolchains
21674     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21675     ;;
21676   openbsd2*)
21677     # C++ shared libraries are fairly broken
21678     ld_shlibs_CXX=no
21679     ;;
21680   openbsd*)
21681     hardcode_direct_CXX=yes
21682     hardcode_shlibpath_var_CXX=no
21683     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21684     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21685     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21686       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21687       export_dynamic_flag_spec_CXX='${wl}-E'
21688       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21689     fi
21690     output_verbose_link_cmd='echo'
21691     ;;
21692   osf3*)
21693     case $cc_basename in
21694       KCC*)
21695         # Kuck and Associates, Inc. (KAI) C++ Compiler
21696
21697         # KCC will only create a shared library if the output file
21698         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21699         # to its proper name (with version) after linking.
21700         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'
21701
21702         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21703         hardcode_libdir_separator_CXX=:
21704
21705         # Archives containing C++ object files must be created using
21706         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21707         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21708
21709         ;;
21710       RCC*)
21711         # Rational C++ 2.4.1
21712         # FIXME: insert proper C++ library support
21713         ld_shlibs_CXX=no
21714         ;;
21715       cxx*)
21716         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21717         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21718
21719         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21720         hardcode_libdir_separator_CXX=:
21721
21722         # Commands to make compiler produce verbose output that lists
21723         # what "hidden" libraries, object files and flags are used when
21724         # linking a shared library.
21725         #
21726         # There doesn't appear to be a way to prevent this compiler from
21727         # explicitly linking system object files so we need to strip them
21728         # from the output so that they don't get included in the library
21729         # dependencies.
21730         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'
21731         ;;
21732       *)
21733         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21734           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21735           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21736
21737           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21738           hardcode_libdir_separator_CXX=:
21739
21740           # Commands to make compiler produce verbose output that lists
21741           # what "hidden" libraries, object files and flags are used when
21742           # linking a shared library.
21743           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21744
21745         else
21746           # FIXME: insert proper C++ library support
21747           ld_shlibs_CXX=no
21748         fi
21749         ;;
21750     esac
21751     ;;
21752   osf4* | osf5*)
21753     case $cc_basename in
21754       KCC*)
21755         # Kuck and Associates, Inc. (KAI) C++ Compiler
21756
21757         # KCC will only create a shared library if the output file
21758         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21759         # to its proper name (with version) after linking.
21760         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'
21761
21762         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21763         hardcode_libdir_separator_CXX=:
21764
21765         # Archives containing C++ object files must be created using
21766         # the KAI C++ compiler.
21767         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21768         ;;
21769       RCC*)
21770         # Rational C++ 2.4.1
21771         # FIXME: insert proper C++ library support
21772         ld_shlibs_CXX=no
21773         ;;
21774       cxx*)
21775         allow_undefined_flag_CXX=' -expect_unresolved \*'
21776         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21777         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21778           echo "-hidden">> $lib.exp~
21779           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
21780           $rm $lib.exp'
21781
21782         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21783         hardcode_libdir_separator_CXX=:
21784
21785         # Commands to make compiler produce verbose output that lists
21786         # what "hidden" libraries, object files and flags are used when
21787         # linking a shared library.
21788         #
21789         # There doesn't appear to be a way to prevent this compiler from
21790         # explicitly linking system object files so we need to strip them
21791         # from the output so that they don't get included in the library
21792         # dependencies.
21793         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'
21794         ;;
21795       *)
21796         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21797           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21798          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21799
21800           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21801           hardcode_libdir_separator_CXX=:
21802
21803           # Commands to make compiler produce verbose output that lists
21804           # what "hidden" libraries, object files and flags are used when
21805           # linking a shared library.
21806           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21807
21808         else
21809           # FIXME: insert proper C++ library support
21810           ld_shlibs_CXX=no
21811         fi
21812         ;;
21813     esac
21814     ;;
21815   psos*)
21816     # FIXME: insert proper C++ library support
21817     ld_shlibs_CXX=no
21818     ;;
21819   sco*)
21820     archive_cmds_need_lc_CXX=no
21821     case $cc_basename in
21822       CC*)
21823         # FIXME: insert proper C++ library support
21824         ld_shlibs_CXX=no
21825         ;;
21826       *)
21827         # FIXME: insert proper C++ library support
21828         ld_shlibs_CXX=no
21829         ;;
21830     esac
21831     ;;
21832   sunos4*)
21833     case $cc_basename in
21834       CC*)
21835         # Sun C++ 4.x
21836         # FIXME: insert proper C++ library support
21837         ld_shlibs_CXX=no
21838         ;;
21839       lcc*)
21840         # Lucid
21841         # FIXME: insert proper C++ library support
21842         ld_shlibs_CXX=no
21843         ;;
21844       *)
21845         # FIXME: insert proper C++ library support
21846         ld_shlibs_CXX=no
21847         ;;
21848     esac
21849     ;;
21850   solaris*)
21851     case $cc_basename in
21852       CC*)
21853         # Sun C++ 4.2, 5.x and Centerline C++
21854         archive_cmds_need_lc_CXX=yes
21855         no_undefined_flag_CXX=' -zdefs'
21856         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21857         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21858         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21859
21860         hardcode_libdir_flag_spec_CXX='-R$libdir'
21861         hardcode_shlibpath_var_CXX=no
21862         case $host_os in
21863           solaris2.[0-5] | solaris2.[0-5].*) ;;
21864           *)
21865             # The C++ compiler is used as linker so we must use $wl
21866             # flag to pass the commands to the underlying system
21867             # linker. We must also pass each convience library through
21868             # to the system linker between allextract/defaultextract.
21869             # The C++ compiler will combine linker options so we
21870             # cannot just pass the convience library names through
21871             # without $wl.
21872             # Supported since Solaris 2.6 (maybe 2.5.1?)
21873             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
21874             ;;
21875         esac
21876         link_all_deplibs_CXX=yes
21877
21878         output_verbose_link_cmd='echo'
21879
21880         # Archives containing C++ object files must be created using
21881         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21882         # necessary to make sure instantiated templates are included
21883         # in the archive.
21884         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21885         ;;
21886       gcx*)
21887         # Green Hills C++ Compiler
21888         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21889
21890         # The C++ compiler must be used to create the archive.
21891         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21892         ;;
21893       *)
21894         # GNU C++ compiler with Solaris linker
21895         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21896           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21897           if $CC --version | grep -v '^2\.7' > /dev/null; then
21898             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21899             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21900                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21901
21902             # Commands to make compiler produce verbose output that lists
21903             # what "hidden" libraries, object files and flags are used when
21904             # linking a shared library.
21905             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21906           else
21907             # g++ 2.7 appears to require `-G' NOT `-shared' on this
21908             # platform.
21909             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21910             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21911                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21912
21913             # Commands to make compiler produce verbose output that lists
21914             # what "hidden" libraries, object files and flags are used when
21915             # linking a shared library.
21916             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21917           fi
21918
21919           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21920         fi
21921         ;;
21922     esac
21923     ;;
21924   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21925     archive_cmds_need_lc_CXX=no
21926     ;;
21927   tandem*)
21928     case $cc_basename in
21929       NCC*)
21930         # NonStop-UX NCC 3.20
21931         # FIXME: insert proper C++ library support
21932         ld_shlibs_CXX=no
21933         ;;
21934       *)
21935         # FIXME: insert proper C++ library support
21936         ld_shlibs_CXX=no
21937         ;;
21938     esac
21939     ;;
21940   vxworks*)
21941     # FIXME: insert proper C++ library support
21942     ld_shlibs_CXX=no
21943     ;;
21944   *)
21945     # FIXME: insert proper C++ library support
21946     ld_shlibs_CXX=no
21947     ;;
21948 esac
21949 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21950 echo "${ECHO_T}$ld_shlibs_CXX" >&6
21951 test "$ld_shlibs_CXX" = no && can_build_shared=no
21952
21953 GCC_CXX="$GXX"
21954 LD_CXX="$LD"
21955
21956
21957 cat > conftest.$ac_ext <<EOF
21958 class Foo
21959 {
21960 public:
21961   Foo (void) { a = 0; }
21962 private:
21963   int a;
21964 };
21965 EOF
21966
21967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21968   (eval $ac_compile) 2>&5
21969   ac_status=$?
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); }; then
21972   # Parse the compiler output and extract the necessary
21973   # objects, libraries and library flags.
21974
21975   # Sentinel used to keep track of whether or not we are before
21976   # the conftest object file.
21977   pre_test_object_deps_done=no
21978
21979   # The `*' in the case matches for architectures that use `case' in
21980   # $output_verbose_cmd can trigger glob expansion during the loop
21981   # eval without this substitution.
21982   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21983
21984   for p in `eval $output_verbose_link_cmd`; do
21985     case $p in
21986
21987     -L* | -R* | -l*)
21988        # Some compilers place space between "-{L,R}" and the path.
21989        # Remove the space.
21990        if test $p = "-L" \
21991           || test $p = "-R"; then
21992          prev=$p
21993          continue
21994        else
21995          prev=
21996        fi
21997
21998        if test "$pre_test_object_deps_done" = no; then
21999          case $p in
22000          -L* | -R*)
22001            # Internal compiler library paths should come after those
22002            # provided the user.  The postdeps already come after the
22003            # user supplied libs so there is no need to process them.
22004            if test -z "$compiler_lib_search_path_CXX"; then
22005              compiler_lib_search_path_CXX="${prev}${p}"
22006            else
22007              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
22008            fi
22009            ;;
22010          # The "-l" case would never come before the object being
22011          # linked, so don't bother handling this case.
22012          esac
22013        else
22014          if test -z "$postdeps_CXX"; then
22015            postdeps_CXX="${prev}${p}"
22016          else
22017            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
22018          fi
22019        fi
22020        ;;
22021
22022     *.$objext)
22023        # This assumes that the test object file only shows up
22024        # once in the compiler output.
22025        if test "$p" = "conftest.$objext"; then
22026          pre_test_object_deps_done=yes
22027          continue
22028        fi
22029
22030        if test "$pre_test_object_deps_done" = no; then
22031          if test -z "$predep_objects_CXX"; then
22032            predep_objects_CXX="$p"
22033          else
22034            predep_objects_CXX="$predep_objects_CXX $p"
22035          fi
22036        else
22037          if test -z "$postdep_objects_CXX"; then
22038            postdep_objects_CXX="$p"
22039          else
22040            postdep_objects_CXX="$postdep_objects_CXX $p"
22041          fi
22042        fi
22043        ;;
22044
22045     *) ;; # Ignore the rest.
22046
22047     esac
22048   done
22049
22050   # Clean up.
22051   rm -f a.out a.exe
22052 else
22053   echo "libtool.m4: error: problem compiling CXX test program"
22054 fi
22055
22056 $rm -f confest.$objext
22057
22058 # PORTME: override above test on systems where it is broken
22059 case $host_os in
22060 solaris*)
22061   case $cc_basename in
22062   CC*)
22063     # Adding this requires a known-good setup of shared libraries for
22064     # Sun compiler versions before 5.6, else PIC objects from an old
22065     # archive will be linked into the output, leading to subtle bugs.
22066     postdeps_CXX='-lCstd -lCrun'
22067     ;;
22068   esac
22069 esac
22070
22071
22072 case " $postdeps_CXX " in
22073 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
22074 esac
22075
22076 lt_prog_compiler_wl_CXX=
22077 lt_prog_compiler_pic_CXX=
22078 lt_prog_compiler_static_CXX=
22079
22080 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22082
22083   # C++ specific cases for pic, static, wl, etc.
22084   if test "$GXX" = yes; then
22085     lt_prog_compiler_wl_CXX='-Wl,'
22086     lt_prog_compiler_static_CXX='-static'
22087
22088     case $host_os in
22089     aix*)
22090       # All AIX code is PIC.
22091       if test "$host_cpu" = ia64; then
22092         # AIX 5 now supports IA64 processor
22093         lt_prog_compiler_static_CXX='-Bstatic'
22094       fi
22095       ;;
22096     amigaos*)
22097       # FIXME: we need at least 68020 code to build shared libraries, but
22098       # adding the `-m68020' flag to GCC prevents building anything better,
22099       # like `-m68040'.
22100       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22101       ;;
22102     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22103       # PIC is the default for these OSes.
22104       ;;
22105     mingw* | os2* | pw32*)
22106       # This hack is so that the source file can tell whether it is being
22107       # built for inclusion in a dll (and should export symbols for example).
22108       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22109       ;;
22110     darwin* | rhapsody*)
22111       # PIC is the default on this platform
22112       # Common symbols not allowed in MH_DYLIB files
22113       lt_prog_compiler_pic_CXX='-fno-common'
22114       ;;
22115     *djgpp*)
22116       # DJGPP does not support shared libraries at all
22117       lt_prog_compiler_pic_CXX=
22118       ;;
22119     sysv4*MP*)
22120       if test -d /usr/nec; then
22121         lt_prog_compiler_pic_CXX=-Kconform_pic
22122       fi
22123       ;;
22124     hpux*)
22125       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22126       # not for PA HP-UX.
22127       case $host_cpu in
22128       hppa*64*|ia64*)
22129         ;;
22130       *)
22131         lt_prog_compiler_pic_CXX='-fPIC'
22132         ;;
22133       esac
22134       ;;
22135     *)
22136       lt_prog_compiler_pic_CXX='-fPIC'
22137       ;;
22138     esac
22139   else
22140     case $host_os in
22141       aix4* | aix5*)
22142         # All AIX code is PIC.
22143         if test "$host_cpu" = ia64; then
22144           # AIX 5 now supports IA64 processor
22145           lt_prog_compiler_static_CXX='-Bstatic'
22146         else
22147           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22148         fi
22149         ;;
22150       chorus*)
22151         case $cc_basename in
22152         cxch68*)
22153           # Green Hills C++ Compiler
22154           # _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"
22155           ;;
22156         esac
22157         ;;
22158        darwin*)
22159          # PIC is the default on this platform
22160          # Common symbols not allowed in MH_DYLIB files
22161          case $cc_basename in
22162            xlc*)
22163            lt_prog_compiler_pic_CXX='-qnocommon'
22164            lt_prog_compiler_wl_CXX='-Wl,'
22165            ;;
22166          esac
22167        ;;
22168       dgux*)
22169         case $cc_basename in
22170           ec++*)
22171             lt_prog_compiler_pic_CXX='-KPIC'
22172             ;;
22173           ghcx*)
22174             # Green Hills C++ Compiler
22175             lt_prog_compiler_pic_CXX='-pic'
22176             ;;
22177           *)
22178             ;;
22179         esac
22180         ;;
22181       freebsd* | kfreebsd*-gnu | dragonfly*)
22182         # FreeBSD uses GNU C++
22183         ;;
22184       hpux9* | hpux10* | hpux11*)
22185         case $cc_basename in
22186           CC*)
22187             lt_prog_compiler_wl_CXX='-Wl,'
22188             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
22189             if test "$host_cpu" != ia64; then
22190               lt_prog_compiler_pic_CXX='+Z'
22191             fi
22192             ;;
22193           aCC*)
22194             lt_prog_compiler_wl_CXX='-Wl,'
22195             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
22196             case $host_cpu in
22197             hppa*64*|ia64*)
22198               # +Z the default
22199               ;;
22200             *)
22201               lt_prog_compiler_pic_CXX='+Z'
22202               ;;
22203             esac
22204             ;;
22205           *)
22206             ;;
22207         esac
22208         ;;
22209       irix5* | irix6* | nonstopux*)
22210         case $cc_basename in
22211           CC*)
22212             lt_prog_compiler_wl_CXX='-Wl,'
22213             lt_prog_compiler_static_CXX='-non_shared'
22214             # CC pic flag -KPIC is the default.
22215             ;;
22216           *)
22217             ;;
22218         esac
22219         ;;
22220       linux*)
22221         case $cc_basename in
22222           KCC*)
22223             # KAI C++ Compiler
22224             lt_prog_compiler_wl_CXX='--backend -Wl,'
22225             lt_prog_compiler_pic_CXX='-fPIC'
22226             ;;
22227           icpc* | ecpc*)
22228             # Intel C++
22229             lt_prog_compiler_wl_CXX='-Wl,'
22230             lt_prog_compiler_pic_CXX='-KPIC'
22231             lt_prog_compiler_static_CXX='-static'
22232             ;;
22233           pgCC*)
22234             # Portland Group C++ compiler.
22235             lt_prog_compiler_wl_CXX='-Wl,'
22236             lt_prog_compiler_pic_CXX='-fpic'
22237             lt_prog_compiler_static_CXX='-Bstatic'
22238             ;;
22239           cxx*)
22240             # Compaq C++
22241             # Make sure the PIC flag is empty.  It appears that all Alpha
22242             # Linux and Compaq Tru64 Unix objects are PIC.
22243             lt_prog_compiler_pic_CXX=
22244             lt_prog_compiler_static_CXX='-non_shared'
22245             ;;
22246           *)
22247             ;;
22248         esac
22249         ;;
22250       lynxos*)
22251         ;;
22252       m88k*)
22253         ;;
22254       mvs*)
22255         case $cc_basename in
22256           cxx*)
22257             lt_prog_compiler_pic_CXX='-W c,exportall'
22258             ;;
22259           *)
22260             ;;
22261         esac
22262         ;;
22263       netbsd*)
22264         ;;
22265       osf3* | osf4* | osf5*)
22266         case $cc_basename in
22267           KCC*)
22268             lt_prog_compiler_wl_CXX='--backend -Wl,'
22269             ;;
22270           RCC*)
22271             # Rational C++ 2.4.1
22272             lt_prog_compiler_pic_CXX='-pic'
22273             ;;
22274           cxx*)
22275             # Digital/Compaq C++
22276             lt_prog_compiler_wl_CXX='-Wl,'
22277             # Make sure the PIC flag is empty.  It appears that all Alpha
22278             # Linux and Compaq Tru64 Unix objects are PIC.
22279             lt_prog_compiler_pic_CXX=
22280             lt_prog_compiler_static_CXX='-non_shared'
22281             ;;
22282           *)
22283             ;;
22284         esac
22285         ;;
22286       psos*)
22287         ;;
22288       sco*)
22289         case $cc_basename in
22290           CC*)
22291             lt_prog_compiler_pic_CXX='-fPIC'
22292             ;;
22293           *)
22294             ;;
22295         esac
22296         ;;
22297       solaris*)
22298         case $cc_basename in
22299           CC*)
22300             # Sun C++ 4.2, 5.x and Centerline C++
22301             lt_prog_compiler_pic_CXX='-KPIC'
22302             lt_prog_compiler_static_CXX='-Bstatic'
22303             lt_prog_compiler_wl_CXX='-Qoption ld '
22304             ;;
22305           gcx*)
22306             # Green Hills C++ Compiler
22307             lt_prog_compiler_pic_CXX='-PIC'
22308             ;;
22309           *)
22310             ;;
22311         esac
22312         ;;
22313       sunos4*)
22314         case $cc_basename in
22315           CC*)
22316             # Sun C++ 4.x
22317             lt_prog_compiler_pic_CXX='-pic'
22318             lt_prog_compiler_static_CXX='-Bstatic'
22319             ;;
22320           lcc*)
22321             # Lucid
22322             lt_prog_compiler_pic_CXX='-pic'
22323             ;;
22324           *)
22325             ;;
22326         esac
22327         ;;
22328       tandem*)
22329         case $cc_basename in
22330           NCC*)
22331             # NonStop-UX NCC 3.20
22332             lt_prog_compiler_pic_CXX='-KPIC'
22333             ;;
22334           *)
22335             ;;
22336         esac
22337         ;;
22338       unixware*)
22339         ;;
22340       vxworks*)
22341         ;;
22342       *)
22343         lt_prog_compiler_can_build_shared_CXX=no
22344         ;;
22345     esac
22346   fi
22347
22348 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22349 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22350
22351 #
22352 # Check to make sure the PIC flag actually works.
22353 #
22354 if test -n "$lt_prog_compiler_pic_CXX"; then
22355
22356 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22357 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22358 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22359   echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361   lt_prog_compiler_pic_works_CXX=no
22362   ac_outfile=conftest.$ac_objext
22363    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22364    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22365    # Insert the option either (1) after the last *FLAGS variable, or
22366    # (2) before a word containing "conftest.", or (3) at the end.
22367    # Note that $ac_compile itself does not contain backslashes and begins
22368    # with a dollar sign (not a hyphen), so the echo should work correctly.
22369    # The option is referenced via a variable to avoid confusing sed.
22370    lt_compile=`echo "$ac_compile" | $SED \
22371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22373    -e 's:$: $lt_compiler_flag:'`
22374    (eval echo "\"\$as_me:22374: $lt_compile\"" >&5)
22375    (eval "$lt_compile" 2>conftest.err)
22376    ac_status=$?
22377    cat conftest.err >&5
22378    echo "$as_me:22378: \$? = $ac_status" >&5
22379    if (exit $ac_status) && test -s "$ac_outfile"; then
22380      # The compiler can only warn and ignore the option if not recognized
22381      # So say no if there are warnings other than the usual output.
22382      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22383      $SED '/^$/d' conftest.err >conftest.er2
22384      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22385        lt_prog_compiler_pic_works_CXX=yes
22386      fi
22387    fi
22388    $rm conftest*
22389
22390 fi
22391 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22392 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22393
22394 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22395     case $lt_prog_compiler_pic_CXX in
22396      "" | " "*) ;;
22397      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22398      esac
22399 else
22400     lt_prog_compiler_pic_CXX=
22401      lt_prog_compiler_can_build_shared_CXX=no
22402 fi
22403
22404 fi
22405 case $host_os in
22406   # For platforms which do not support PIC, -DPIC is meaningless:
22407   *djgpp*)
22408     lt_prog_compiler_pic_CXX=
22409     ;;
22410   *)
22411     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22412     ;;
22413 esac
22414
22415 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22416 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22417 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22418   echo $ECHO_N "(cached) $ECHO_C" >&6
22419 else
22420   lt_cv_prog_compiler_c_o_CXX=no
22421    $rm -r conftest 2>/dev/null
22422    mkdir conftest
22423    cd conftest
22424    mkdir out
22425    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22426
22427    lt_compiler_flag="-o out/conftest2.$ac_objext"
22428    # Insert the option either (1) after the last *FLAGS variable, or
22429    # (2) before a word containing "conftest.", or (3) at the end.
22430    # Note that $ac_compile itself does not contain backslashes and begins
22431    # with a dollar sign (not a hyphen), so the echo should work correctly.
22432    lt_compile=`echo "$ac_compile" | $SED \
22433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22435    -e 's:$: $lt_compiler_flag:'`
22436    (eval echo "\"\$as_me:22436: $lt_compile\"" >&5)
22437    (eval "$lt_compile" 2>out/conftest.err)
22438    ac_status=$?
22439    cat out/conftest.err >&5
22440    echo "$as_me:22440: \$? = $ac_status" >&5
22441    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22442    then
22443      # The compiler can only warn and ignore the option if not recognized
22444      # So say no if there are warnings
22445      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22446      $SED '/^$/d' out/conftest.err >out/conftest.er2
22447      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22448        lt_cv_prog_compiler_c_o_CXX=yes
22449      fi
22450    fi
22451    chmod u+w . 2>&5
22452    $rm conftest*
22453    # SGI C++ compiler will create directory out/ii_files/ for
22454    # template instantiation
22455    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22456    $rm out/* && rmdir out
22457    cd ..
22458    rmdir conftest
22459    $rm conftest*
22460
22461 fi
22462 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22463 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22464
22465
22466 hard_links="nottested"
22467 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22468   # do not overwrite the value of need_locks provided by the user
22469   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22470 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22471   hard_links=yes
22472   $rm conftest*
22473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22474   touch conftest.a
22475   ln conftest.a conftest.b 2>&5 || hard_links=no
22476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22477   echo "$as_me:$LINENO: result: $hard_links" >&5
22478 echo "${ECHO_T}$hard_links" >&6
22479   if test "$hard_links" = no; then
22480     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22481 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22482     need_locks=warn
22483   fi
22484 else
22485   need_locks=no
22486 fi
22487
22488 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22489 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22490
22491   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22492   case $host_os in
22493   aix4* | aix5*)
22494     # If we're using GNU nm, then we don't want the "-C" option.
22495     # -C means demangle to AIX nm, but means don't demangle with GNU nm
22496     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22497       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'
22498     else
22499       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'
22500     fi
22501     ;;
22502   pw32*)
22503     export_symbols_cmds_CXX="$ltdll_cmds"
22504   ;;
22505   cygwin* | mingw*)
22506     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22507   ;;
22508   *)
22509     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22510   ;;
22511   esac
22512
22513 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22514 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22515 test "$ld_shlibs_CXX" = no && can_build_shared=no
22516
22517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22518 if test "$GCC" = yes; then
22519   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22520 fi
22521
22522 #
22523 # Do we need to explicitly link libc?
22524 #
22525 case "x$archive_cmds_need_lc_CXX" in
22526 x|xyes)
22527   # Assume -lc should be added
22528   archive_cmds_need_lc_CXX=yes
22529
22530   if test "$enable_shared" = yes && test "$GCC" = yes; then
22531     case $archive_cmds_CXX in
22532     *'~'*)
22533       # FIXME: we may have to deal with multi-command sequences.
22534       ;;
22535     '$CC '*)
22536       # Test whether the compiler implicitly links with -lc since on some
22537       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22538       # to ld, don't add -lc before -lgcc.
22539       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22540 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22541       $rm conftest*
22542       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22543
22544       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22545   (eval $ac_compile) 2>&5
22546   ac_status=$?
22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548   (exit $ac_status); } 2>conftest.err; then
22549         soname=conftest
22550         lib=conftest
22551         libobjs=conftest.$ac_objext
22552         deplibs=
22553         wl=$lt_prog_compiler_wl_CXX
22554         compiler_flags=-v
22555         linker_flags=-v
22556         verstring=
22557         output_objdir=.
22558         libname=conftest
22559         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22560         allow_undefined_flag_CXX=
22561         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22562   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }
22566         then
22567           archive_cmds_need_lc_CXX=no
22568         else
22569           archive_cmds_need_lc_CXX=yes
22570         fi
22571         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22572       else
22573         cat conftest.err 1>&5
22574       fi
22575       $rm conftest*
22576       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22577 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22578       ;;
22579     esac
22580   fi
22581   ;;
22582 esac
22583
22584 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22585 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22586 library_names_spec=
22587 libname_spec='lib$name'
22588 soname_spec=
22589 shrext_cmds=".so"
22590 postinstall_cmds=
22591 postuninstall_cmds=
22592 finish_cmds=
22593 finish_eval=
22594 shlibpath_var=
22595 shlibpath_overrides_runpath=unknown
22596 version_type=none
22597 dynamic_linker="$host_os ld.so"
22598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22599 if test "$GCC" = yes; then
22600   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22601   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22602     # if the path contains ";" then we assume it to be the separator
22603     # otherwise default to the standard path separator (i.e. ":") - it is
22604     # assumed that no part of a normal pathname contains ";" but that should
22605     # okay in the real world where ";" in dirpaths is itself problematic.
22606     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22607   else
22608     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22609   fi
22610 else
22611   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22612 fi
22613 need_lib_prefix=unknown
22614 hardcode_into_libs=no
22615
22616 # when you set need_version to no, make sure it does not cause -set_version
22617 # flags to be left without arguments
22618 need_version=unknown
22619
22620 case $host_os in
22621 aix3*)
22622   version_type=linux
22623   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22624   shlibpath_var=LIBPATH
22625
22626   # AIX 3 has no versioning support, so we append a major version to the name.
22627   soname_spec='${libname}${release}${shared_ext}$major'
22628   ;;
22629
22630 aix4* | aix5*)
22631   version_type=linux
22632   need_lib_prefix=no
22633   need_version=no
22634   hardcode_into_libs=yes
22635   if test "$host_cpu" = ia64; then
22636     # AIX 5 supports IA64
22637     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22638     shlibpath_var=LD_LIBRARY_PATH
22639   else
22640     # With GCC up to 2.95.x, collect2 would create an import file
22641     # for dependence libraries.  The import file would start with
22642     # the line `#! .'.  This would cause the generated library to
22643     # depend on `.', always an invalid library.  This was fixed in
22644     # development snapshots of GCC prior to 3.0.
22645     case $host_os in
22646       aix4 | aix4.[01] | aix4.[01].*)
22647       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22648            echo ' yes '
22649            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22650         :
22651       else
22652         can_build_shared=no
22653       fi
22654       ;;
22655     esac
22656     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22657     # soname into executable. Probably we can add versioning support to
22658     # collect2, so additional links can be useful in future.
22659     if test "$aix_use_runtimelinking" = yes; then
22660       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22661       # instead of lib<name>.a to let people know that these are not
22662       # typical AIX shared libraries.
22663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22664     else
22665       # We preserve .a as extension for shared libraries through AIX4.2
22666       # and later when we are not doing run time linking.
22667       library_names_spec='${libname}${release}.a $libname.a'
22668       soname_spec='${libname}${release}${shared_ext}$major'
22669     fi
22670     shlibpath_var=LIBPATH
22671   fi
22672   ;;
22673
22674 amigaos*)
22675   library_names_spec='$libname.ixlibrary $libname.a'
22676   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22677   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'
22678   ;;
22679
22680 beos*)
22681   library_names_spec='${libname}${shared_ext}'
22682   dynamic_linker="$host_os ld.so"
22683   shlibpath_var=LIBRARY_PATH
22684   ;;
22685
22686 bsdi[45]*)
22687   version_type=linux
22688   need_version=no
22689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22690   soname_spec='${libname}${release}${shared_ext}$major'
22691   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22692   shlibpath_var=LD_LIBRARY_PATH
22693   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22694   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22695   # the default ld.so.conf also contains /usr/contrib/lib and
22696   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22697   # libtool to hard-code these into programs
22698   ;;
22699
22700 cygwin* | mingw* | pw32*)
22701   version_type=windows
22702   shrext_cmds=".dll"
22703   need_version=no
22704   need_lib_prefix=no
22705
22706   case $GCC,$host_os in
22707   yes,cygwin* | yes,mingw* | yes,pw32*)
22708     library_names_spec='$libname.dll.a'
22709     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22710     postinstall_cmds='base_file=`basename \${file}`~
22711       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22712       dldir=$destdir/`dirname \$dlpath`~
22713       test -d \$dldir || mkdir -p \$dldir~
22714       $install_prog $dir/$dlname \$dldir/$dlname~
22715       chmod a+x \$dldir/$dlname'
22716     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22717       dlpath=$dir/\$dldll~
22718        $rm \$dlpath'
22719     shlibpath_overrides_runpath=yes
22720
22721     case $host_os in
22722     cygwin*)
22723       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22724       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22725       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22726       ;;
22727     mingw*)
22728       # MinGW DLLs use traditional 'lib' prefix
22729       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22730       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22731       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22732         # It is most probably a Windows format PATH printed by
22733         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22734         # path with ; separators, and with drive letters. We can handle the
22735         # drive letters (cygwin fileutils understands them), so leave them,
22736         # especially as we might pass files found there to a mingw objdump,
22737         # which wouldn't understand a cygwinified path. Ahh.
22738         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22739       else
22740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22741       fi
22742       ;;
22743     pw32*)
22744       # pw32 DLLs use 'pw' prefix rather than 'lib'
22745       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22746       ;;
22747     esac
22748     ;;
22749
22750   *)
22751     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22752     ;;
22753   esac
22754   dynamic_linker='Win32 ld.exe'
22755   # FIXME: first we should search . and the directory the executable is in
22756   shlibpath_var=PATH
22757   ;;
22758
22759 darwin* | rhapsody*)
22760   dynamic_linker="$host_os dyld"
22761   version_type=darwin
22762   need_lib_prefix=no
22763   need_version=no
22764   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22765   soname_spec='${libname}${release}${major}$shared_ext'
22766   shlibpath_overrides_runpath=yes
22767   shlibpath_var=DYLD_LIBRARY_PATH
22768   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22769   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22770   if test "$GCC" = yes; then
22771     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"`
22772   else
22773     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22774   fi
22775   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22776   ;;
22777
22778 dgux*)
22779   version_type=linux
22780   need_lib_prefix=no
22781   need_version=no
22782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22783   soname_spec='${libname}${release}${shared_ext}$major'
22784   shlibpath_var=LD_LIBRARY_PATH
22785   ;;
22786
22787 freebsd1*)
22788   dynamic_linker=no
22789   ;;
22790
22791 kfreebsd*-gnu)
22792   version_type=linux
22793   need_lib_prefix=no
22794   need_version=no
22795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22796   soname_spec='${libname}${release}${shared_ext}$major'
22797   shlibpath_var=LD_LIBRARY_PATH
22798   shlibpath_overrides_runpath=no
22799   hardcode_into_libs=yes
22800   dynamic_linker='GNU ld.so'
22801   ;;
22802
22803 freebsd* | dragonfly*)
22804   # DragonFly does not have aout.  When/if they implement a new
22805   # versioning mechanism, adjust this.
22806   if test -x /usr/bin/objformat; then
22807     objformat=`/usr/bin/objformat`
22808   else
22809     case $host_os in
22810     freebsd[123]*) objformat=aout ;;
22811     *) objformat=elf ;;
22812     esac
22813   fi
22814   version_type=freebsd-$objformat
22815   case $version_type in
22816     freebsd-elf*)
22817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22818       need_version=no
22819       need_lib_prefix=no
22820       ;;
22821     freebsd-*)
22822       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22823       need_version=yes
22824       ;;
22825   esac
22826   shlibpath_var=LD_LIBRARY_PATH
22827   case $host_os in
22828   freebsd2*)
22829     shlibpath_overrides_runpath=yes
22830     ;;
22831   freebsd3.[01]* | freebsdelf3.[01]*)
22832     shlibpath_overrides_runpath=yes
22833     hardcode_into_libs=yes
22834     ;;
22835   *) # from 3.2 on
22836     shlibpath_overrides_runpath=no
22837     hardcode_into_libs=yes
22838     ;;
22839   esac
22840   ;;
22841
22842 gnu*)
22843   version_type=linux
22844   need_lib_prefix=no
22845   need_version=no
22846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22847   soname_spec='${libname}${release}${shared_ext}$major'
22848   shlibpath_var=LD_LIBRARY_PATH
22849   hardcode_into_libs=yes
22850   ;;
22851
22852 hpux9* | hpux10* | hpux11*)
22853   # Give a soname corresponding to the major version so that dld.sl refuses to
22854   # link against other versions.
22855   version_type=sunos
22856   need_lib_prefix=no
22857   need_version=no
22858   case $host_cpu in
22859   ia64*)
22860     shrext_cmds='.so'
22861     hardcode_into_libs=yes
22862     dynamic_linker="$host_os dld.so"
22863     shlibpath_var=LD_LIBRARY_PATH
22864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22866     soname_spec='${libname}${release}${shared_ext}$major'
22867     if test "X$HPUX_IA64_MODE" = X32; then
22868       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22869     else
22870       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22871     fi
22872     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22873     ;;
22874    hppa*64*)
22875      shrext_cmds='.sl'
22876      hardcode_into_libs=yes
22877      dynamic_linker="$host_os dld.sl"
22878      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22879      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881      soname_spec='${libname}${release}${shared_ext}$major'
22882      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22883      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22884      ;;
22885    *)
22886     shrext_cmds='.sl'
22887     dynamic_linker="$host_os dld.sl"
22888     shlibpath_var=SHLIB_PATH
22889     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891     soname_spec='${libname}${release}${shared_ext}$major'
22892     ;;
22893   esac
22894   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22895   postinstall_cmds='chmod 555 $lib'
22896   ;;
22897
22898 irix5* | irix6* | nonstopux*)
22899   case $host_os in
22900     nonstopux*) version_type=nonstopux ;;
22901     *)
22902         if test "$lt_cv_prog_gnu_ld" = yes; then
22903                 version_type=linux
22904         else
22905                 version_type=irix
22906         fi ;;
22907   esac
22908   need_lib_prefix=no
22909   need_version=no
22910   soname_spec='${libname}${release}${shared_ext}$major'
22911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22912   case $host_os in
22913   irix5* | nonstopux*)
22914     libsuff= shlibsuff=
22915     ;;
22916   *)
22917     case $LD in # libtool.m4 will add one of these switches to LD
22918     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22919       libsuff= shlibsuff= libmagic=32-bit;;
22920     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22921       libsuff=32 shlibsuff=N32 libmagic=N32;;
22922     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22923       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22924     *) libsuff= shlibsuff= libmagic=never-match;;
22925     esac
22926     ;;
22927   esac
22928   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22929   shlibpath_overrides_runpath=no
22930   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22931   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22932   hardcode_into_libs=yes
22933   ;;
22934
22935 # No shared lib support for Linux oldld, aout, or coff.
22936 linux*oldld* | linux*aout* | linux*coff*)
22937   dynamic_linker=no
22938   ;;
22939
22940 # This must be Linux ELF.
22941 linux*)
22942   version_type=linux
22943   need_lib_prefix=no
22944   need_version=no
22945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22946   soname_spec='${libname}${release}${shared_ext}$major'
22947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22948   shlibpath_var=LD_LIBRARY_PATH
22949   shlibpath_overrides_runpath=no
22950   # This implies no fast_install, which is unacceptable.
22951   # Some rework will be needed to allow for fast_install
22952   # before this can be enabled.
22953   hardcode_into_libs=yes
22954
22955   # Append ld.so.conf contents to the search path
22956   if test -f /etc/ld.so.conf; then
22957     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22958     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22959   fi
22960
22961   # We used to test for /lib/ld.so.1 and disable shared libraries on
22962   # powerpc, because MkLinux only supported shared libraries with the
22963   # GNU dynamic linker.  Since this was broken with cross compilers,
22964   # most powerpc-linux boxes support dynamic linking these days and
22965   # people can always --disable-shared, the test was removed, and we
22966   # assume the GNU/Linux dynamic linker is in use.
22967   dynamic_linker='GNU/Linux ld.so'
22968   ;;
22969
22970 knetbsd*-gnu)
22971   version_type=linux
22972   need_lib_prefix=no
22973   need_version=no
22974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22975   soname_spec='${libname}${release}${shared_ext}$major'
22976   shlibpath_var=LD_LIBRARY_PATH
22977   shlibpath_overrides_runpath=no
22978   hardcode_into_libs=yes
22979   dynamic_linker='GNU ld.so'
22980   ;;
22981
22982 netbsd*)
22983   version_type=sunos
22984   need_lib_prefix=no
22985   need_version=no
22986   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22988     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22989     dynamic_linker='NetBSD (a.out) ld.so'
22990   else
22991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22992     soname_spec='${libname}${release}${shared_ext}$major'
22993     dynamic_linker='NetBSD ld.elf_so'
22994   fi
22995   shlibpath_var=LD_LIBRARY_PATH
22996   shlibpath_overrides_runpath=yes
22997   hardcode_into_libs=yes
22998   ;;
22999
23000 newsos6)
23001   version_type=linux
23002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003   shlibpath_var=LD_LIBRARY_PATH
23004   shlibpath_overrides_runpath=yes
23005   ;;
23006
23007 nto-qnx*)
23008   version_type=linux
23009   need_lib_prefix=no
23010   need_version=no
23011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23012   soname_spec='${libname}${release}${shared_ext}$major'
23013   shlibpath_var=LD_LIBRARY_PATH
23014   shlibpath_overrides_runpath=yes
23015   ;;
23016
23017 openbsd*)
23018   version_type=sunos
23019   need_lib_prefix=no
23020   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23021   case $host_os in
23022     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23023     *)                         need_version=no  ;;
23024   esac
23025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23027   shlibpath_var=LD_LIBRARY_PATH
23028   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23029     case $host_os in
23030       openbsd2.[89] | openbsd2.[89].*)
23031         shlibpath_overrides_runpath=no
23032         ;;
23033       *)
23034         shlibpath_overrides_runpath=yes
23035         ;;
23036       esac
23037   else
23038     shlibpath_overrides_runpath=yes
23039   fi
23040   ;;
23041
23042 os2*)
23043   libname_spec='$name'
23044   shrext_cmds=".dll"
23045   need_lib_prefix=no
23046   library_names_spec='$libname${shared_ext} $libname.a'
23047   dynamic_linker='OS/2 ld.exe'
23048   shlibpath_var=LIBPATH
23049   ;;
23050
23051 osf3* | osf4* | osf5*)
23052   version_type=osf
23053   need_lib_prefix=no
23054   need_version=no
23055   soname_spec='${libname}${release}${shared_ext}$major'
23056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23057   shlibpath_var=LD_LIBRARY_PATH
23058   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23059   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23060   ;;
23061
23062 sco3.2v5*)
23063   version_type=osf
23064   soname_spec='${libname}${release}${shared_ext}$major'
23065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066   shlibpath_var=LD_LIBRARY_PATH
23067   ;;
23068
23069 solaris*)
23070   version_type=linux
23071   need_lib_prefix=no
23072   need_version=no
23073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074   soname_spec='${libname}${release}${shared_ext}$major'
23075   shlibpath_var=LD_LIBRARY_PATH
23076   shlibpath_overrides_runpath=yes
23077   hardcode_into_libs=yes
23078   # ldd complains unless libraries are executable
23079   postinstall_cmds='chmod +x $lib'
23080   ;;
23081
23082 sunos4*)
23083   version_type=sunos
23084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23085   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23086   shlibpath_var=LD_LIBRARY_PATH
23087   shlibpath_overrides_runpath=yes
23088   if test "$with_gnu_ld" = yes; then
23089     need_lib_prefix=no
23090   fi
23091   need_version=yes
23092   ;;
23093
23094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23095   version_type=linux
23096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097   soname_spec='${libname}${release}${shared_ext}$major'
23098   shlibpath_var=LD_LIBRARY_PATH
23099   case $host_vendor in
23100     sni)
23101       shlibpath_overrides_runpath=no
23102       need_lib_prefix=no
23103       export_dynamic_flag_spec='${wl}-Blargedynsym'
23104       runpath_var=LD_RUN_PATH
23105       ;;
23106     siemens)
23107       need_lib_prefix=no
23108       ;;
23109     motorola)
23110       need_lib_prefix=no
23111       need_version=no
23112       shlibpath_overrides_runpath=no
23113       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23114       ;;
23115   esac
23116   ;;
23117
23118 sysv4*MP*)
23119   if test -d /usr/nec ;then
23120     version_type=linux
23121     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23122     soname_spec='$libname${shared_ext}.$major'
23123     shlibpath_var=LD_LIBRARY_PATH
23124   fi
23125   ;;
23126
23127 uts4*)
23128   version_type=linux
23129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130   soname_spec='${libname}${release}${shared_ext}$major'
23131   shlibpath_var=LD_LIBRARY_PATH
23132   ;;
23133
23134 *)
23135   dynamic_linker=no
23136   ;;
23137 esac
23138 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23139 echo "${ECHO_T}$dynamic_linker" >&6
23140 test "$dynamic_linker" = no && can_build_shared=no
23141
23142 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23143 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23144 hardcode_action_CXX=
23145 if test -n "$hardcode_libdir_flag_spec_CXX" || \
23146    test -n "$runpath_var_CXX" || \
23147    test "X$hardcode_automatic_CXX" = "Xyes" ; then
23148
23149   # We can hardcode non-existant directories.
23150   if test "$hardcode_direct_CXX" != no &&
23151      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23152      # have to relink, otherwise we might link with an installed library
23153      # when we should be linking with a yet-to-be-installed one
23154      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23155      test "$hardcode_minus_L_CXX" != no; then
23156     # Linking always hardcodes the temporary library directory.
23157     hardcode_action_CXX=relink
23158   else
23159     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23160     hardcode_action_CXX=immediate
23161   fi
23162 else
23163   # We cannot hardcode anything, or else we can only hardcode existing
23164   # directories.
23165   hardcode_action_CXX=unsupported
23166 fi
23167 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
23168 echo "${ECHO_T}$hardcode_action_CXX" >&6
23169
23170 if test "$hardcode_action_CXX" = relink; then
23171   # Fast installation is not supported
23172   enable_fast_install=no
23173 elif test "$shlibpath_overrides_runpath" = yes ||
23174      test "$enable_shared" = no; then
23175   # Fast installation is not necessary
23176   enable_fast_install=needless
23177 fi
23178
23179 striplib=
23180 old_striplib=
23181 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23182 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23183 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23184   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23185   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23186   echo "$as_me:$LINENO: result: yes" >&5
23187 echo "${ECHO_T}yes" >&6
23188 else
23189 # FIXME - insert some real tests, host_os isn't really good enough
23190   case $host_os in
23191    darwin*)
23192        if test -n "$STRIP" ; then
23193          striplib="$STRIP -x"
23194          echo "$as_me:$LINENO: result: yes" >&5
23195 echo "${ECHO_T}yes" >&6
23196        else
23197   echo "$as_me:$LINENO: result: no" >&5
23198 echo "${ECHO_T}no" >&6
23199 fi
23200        ;;
23201    *)
23202   echo "$as_me:$LINENO: result: no" >&5
23203 echo "${ECHO_T}no" >&6
23204     ;;
23205   esac
23206 fi
23207
23208 if test "x$enable_dlopen" != xyes; then
23209   enable_dlopen=unknown
23210   enable_dlopen_self=unknown
23211   enable_dlopen_self_static=unknown
23212 else
23213   lt_cv_dlopen=no
23214   lt_cv_dlopen_libs=
23215
23216   case $host_os in
23217   beos*)
23218     lt_cv_dlopen="load_add_on"
23219     lt_cv_dlopen_libs=
23220     lt_cv_dlopen_self=yes
23221     ;;
23222
23223   mingw* | pw32*)
23224     lt_cv_dlopen="LoadLibrary"
23225     lt_cv_dlopen_libs=
23226    ;;
23227
23228   cygwin*)
23229     lt_cv_dlopen="dlopen"
23230     lt_cv_dlopen_libs=
23231    ;;
23232
23233   darwin*)
23234   # if libdl is installed we need to link against it
23235     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-ldl  $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 /* Override any gcc2 internal prototype to avoid an error.  */
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 /* We use char because int might match the return type of a gcc2
23254    builtin and then its argument prototype would still apply.  */
23255 char dlopen ();
23256 int
23257 main ()
23258 {
23259 dlopen ();
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -z "$ac_cxx_werror_flag"
23274                          || test ! -s conftest.err'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; } &&
23280          { ac_try='test -s conftest$ac_exeext'
23281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; }; then
23286   ac_cv_lib_dl_dlopen=yes
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291 ac_cv_lib_dl_dlopen=no
23292 fi
23293 rm -f conftest.err conftest.$ac_objext \
23294       conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23296 fi
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23299 if test $ac_cv_lib_dl_dlopen = yes; then
23300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23301 else
23302
23303     lt_cv_dlopen="dyld"
23304     lt_cv_dlopen_libs=
23305     lt_cv_dlopen_self=yes
23306
23307 fi
23308
23309    ;;
23310
23311   *)
23312     echo "$as_me:$LINENO: checking for shl_load" >&5
23313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23314 if test "${ac_cv_func_shl_load+set}" = set; then
23315   echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23325 #define shl_load innocuous_shl_load
23326
23327 /* System header to define __stub macros and hopefully few prototypes,
23328     which can conflict with char shl_load (); below.
23329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23330     <limits.h> exists even on freestanding compilers.  */
23331
23332 #ifdef __STDC__
23333 # include <limits.h>
23334 #else
23335 # include <assert.h>
23336 #endif
23337
23338 #undef shl_load
23339
23340 /* Override any gcc2 internal prototype to avoid an error.  */
23341 #ifdef __cplusplus
23342 extern "C"
23343 {
23344 #endif
23345 /* We use char because int might match the return type of a gcc2
23346    builtin and then its argument prototype would still apply.  */
23347 char shl_load ();
23348 /* The GNU C library defines this for functions which it implements
23349     to always fail with ENOSYS.  Some functions are actually named
23350     something starting with __ and the normal name is an alias.  */
23351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23352 choke me
23353 #else
23354 char (*f) () = shl_load;
23355 #endif
23356 #ifdef __cplusplus
23357 }
23358 #endif
23359
23360 int
23361 main ()
23362 {
23363 return f != shl_load;
23364   ;
23365   return 0;
23366 }
23367 _ACEOF
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23370   (eval $ac_link) 2>conftest.er1
23371   ac_status=$?
23372   grep -v '^ *+' conftest.er1 >conftest.err
23373   rm -f conftest.er1
23374   cat conftest.err >&5
23375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); } &&
23377          { ac_try='test -z "$ac_cxx_werror_flag"
23378                          || test ! -s conftest.err'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; } &&
23384          { ac_try='test -s conftest$ac_exeext'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; }; then
23390   ac_cv_func_shl_load=yes
23391 else
23392   echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 ac_cv_func_shl_load=no
23396 fi
23397 rm -f conftest.err conftest.$ac_objext \
23398       conftest$ac_exeext conftest.$ac_ext
23399 fi
23400 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23402 if test $ac_cv_func_shl_load = yes; then
23403   lt_cv_dlopen="shl_load"
23404 else
23405   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23406 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23407 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410   ac_check_lib_save_LIBS=$LIBS
23411 LIBS="-ldld  $LIBS"
23412 cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418
23419 /* Override any gcc2 internal prototype to avoid an error.  */
23420 #ifdef __cplusplus
23421 extern "C"
23422 #endif
23423 /* We use char because int might match the return type of a gcc2
23424    builtin and then its argument prototype would still apply.  */
23425 char shl_load ();
23426 int
23427 main ()
23428 {
23429 shl_load ();
23430   ;
23431   return 0;
23432 }
23433 _ACEOF
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436   (eval $ac_link) 2>conftest.er1
23437   ac_status=$?
23438   grep -v '^ *+' conftest.er1 >conftest.err
23439   rm -f conftest.er1
23440   cat conftest.err >&5
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); } &&
23443          { ac_try='test -z "$ac_cxx_werror_flag"
23444                          || test ! -s conftest.err'
23445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446   (eval $ac_try) 2>&5
23447   ac_status=$?
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); }; } &&
23450          { ac_try='test -s conftest$ac_exeext'
23451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452   (eval $ac_try) 2>&5
23453   ac_status=$?
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); }; }; then
23456   ac_cv_lib_dld_shl_load=yes
23457 else
23458   echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461 ac_cv_lib_dld_shl_load=no
23462 fi
23463 rm -f conftest.err conftest.$ac_objext \
23464       conftest$ac_exeext conftest.$ac_ext
23465 LIBS=$ac_check_lib_save_LIBS
23466 fi
23467 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23468 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23469 if test $ac_cv_lib_dld_shl_load = yes; then
23470   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23471 else
23472   echo "$as_me:$LINENO: checking for dlopen" >&5
23473 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23474 if test "${ac_cv_func_dlopen+set}" = set; then
23475   echo $ECHO_N "(cached) $ECHO_C" >&6
23476 else
23477   cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23485 #define dlopen innocuous_dlopen
23486
23487 /* System header to define __stub macros and hopefully few prototypes,
23488     which can conflict with char dlopen (); below.
23489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23490     <limits.h> exists even on freestanding compilers.  */
23491
23492 #ifdef __STDC__
23493 # include <limits.h>
23494 #else
23495 # include <assert.h>
23496 #endif
23497
23498 #undef dlopen
23499
23500 /* Override any gcc2 internal prototype to avoid an error.  */
23501 #ifdef __cplusplus
23502 extern "C"
23503 {
23504 #endif
23505 /* We use char because int might match the return type of a gcc2
23506    builtin and then its argument prototype would still apply.  */
23507 char dlopen ();
23508 /* The GNU C library defines this for functions which it implements
23509     to always fail with ENOSYS.  Some functions are actually named
23510     something starting with __ and the normal name is an alias.  */
23511 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23512 choke me
23513 #else
23514 char (*f) () = dlopen;
23515 #endif
23516 #ifdef __cplusplus
23517 }
23518 #endif
23519
23520 int
23521 main ()
23522 {
23523 return f != dlopen;
23524   ;
23525   return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext conftest$ac_exeext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530   (eval $ac_link) 2>conftest.er1
23531   ac_status=$?
23532   grep -v '^ *+' conftest.er1 >conftest.err
23533   rm -f conftest.er1
23534   cat conftest.err >&5
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } &&
23537          { ac_try='test -z "$ac_cxx_werror_flag"
23538                          || test ! -s conftest.err'
23539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540   (eval $ac_try) 2>&5
23541   ac_status=$?
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); }; } &&
23544          { ac_try='test -s conftest$ac_exeext'
23545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546   (eval $ac_try) 2>&5
23547   ac_status=$?
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); }; }; then
23550   ac_cv_func_dlopen=yes
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 ac_cv_func_dlopen=no
23556 fi
23557 rm -f conftest.err conftest.$ac_objext \
23558       conftest$ac_exeext conftest.$ac_ext
23559 fi
23560 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23561 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23562 if test $ac_cv_func_dlopen = yes; then
23563   lt_cv_dlopen="dlopen"
23564 else
23565   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23568   echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570   ac_check_lib_save_LIBS=$LIBS
23571 LIBS="-ldl  $LIBS"
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578
23579 /* Override any gcc2 internal prototype to avoid an error.  */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 /* We use char because int might match the return type of a gcc2
23584    builtin and then its argument prototype would still apply.  */
23585 char dlopen ();
23586 int
23587 main ()
23588 {
23589 dlopen ();
23590   ;
23591   return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest.$ac_objext conftest$ac_exeext
23595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596   (eval $ac_link) 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } &&
23603          { ac_try='test -z "$ac_cxx_werror_flag"
23604                          || test ! -s conftest.err'
23605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606   (eval $ac_try) 2>&5
23607   ac_status=$?
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); }; } &&
23610          { ac_try='test -s conftest$ac_exeext'
23611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612   (eval $ac_try) 2>&5
23613   ac_status=$?
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); }; }; then
23616   ac_cv_lib_dl_dlopen=yes
23617 else
23618   echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23620
23621 ac_cv_lib_dl_dlopen=no
23622 fi
23623 rm -f conftest.err conftest.$ac_objext \
23624       conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23626 fi
23627 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23628 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23629 if test $ac_cv_lib_dl_dlopen = yes; then
23630   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23631 else
23632   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23633 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23634 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-lsvld  $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 /* Override any gcc2 internal prototype to avoid an error.  */
23647 #ifdef __cplusplus
23648 extern "C"
23649 #endif
23650 /* We use char because int might match the return type of a gcc2
23651    builtin and then its argument prototype would still apply.  */
23652 char dlopen ();
23653 int
23654 main ()
23655 {
23656 dlopen ();
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23663   (eval $ac_link) 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } &&
23670          { ac_try='test -z "$ac_cxx_werror_flag"
23671                          || test ! -s conftest.err'
23672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673   (eval $ac_try) 2>&5
23674   ac_status=$?
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); }; } &&
23677          { ac_try='test -s conftest$ac_exeext'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; }; then
23683   ac_cv_lib_svld_dlopen=yes
23684 else
23685   echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688 ac_cv_lib_svld_dlopen=no
23689 fi
23690 rm -f conftest.err conftest.$ac_objext \
23691       conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23693 fi
23694 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23695 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23696 if test $ac_cv_lib_svld_dlopen = yes; then
23697   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23698 else
23699   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23700 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704   ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-ldld  $LIBS"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h.  */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h.  */
23712
23713 /* Override any gcc2 internal prototype to avoid an error.  */
23714 #ifdef __cplusplus
23715 extern "C"
23716 #endif
23717 /* We use char because int might match the return type of a gcc2
23718    builtin and then its argument prototype would still apply.  */
23719 char dld_link ();
23720 int
23721 main ()
23722 {
23723 dld_link ();
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730   (eval $ac_link) 2>conftest.er1
23731   ac_status=$?
23732   grep -v '^ *+' conftest.er1 >conftest.err
23733   rm -f conftest.er1
23734   cat conftest.err >&5
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -z "$ac_cxx_werror_flag"
23738                          || test ! -s conftest.err'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; } &&
23744          { ac_try='test -s conftest$ac_exeext'
23745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746   (eval $ac_try) 2>&5
23747   ac_status=$?
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); }; }; then
23750   ac_cv_lib_dld_dld_link=yes
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 ac_cv_lib_dld_dld_link=no
23756 fi
23757 rm -f conftest.err conftest.$ac_objext \
23758       conftest$ac_exeext conftest.$ac_ext
23759 LIBS=$ac_check_lib_save_LIBS
23760 fi
23761 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23762 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23763 if test $ac_cv_lib_dld_dld_link = yes; then
23764   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23765 fi
23766
23767
23768 fi
23769
23770
23771 fi
23772
23773
23774 fi
23775
23776
23777 fi
23778
23779
23780 fi
23781
23782     ;;
23783   esac
23784
23785   if test "x$lt_cv_dlopen" != xno; then
23786     enable_dlopen=yes
23787   else
23788     enable_dlopen=no
23789   fi
23790
23791   case $lt_cv_dlopen in
23792   dlopen)
23793     save_CPPFLAGS="$CPPFLAGS"
23794     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23795
23796     save_LDFLAGS="$LDFLAGS"
23797     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23798
23799     save_LIBS="$LIBS"
23800     LIBS="$lt_cv_dlopen_libs $LIBS"
23801
23802     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23803 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23804 if test "${lt_cv_dlopen_self+set}" = set; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807           if test "$cross_compiling" = yes; then :
23808   lt_cv_dlopen_self=cross
23809 else
23810   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23811   lt_status=$lt_dlunknown
23812   cat > conftest.$ac_ext <<EOF
23813 #line 23813 "configure"
23814 #include "confdefs.h"
23815
23816 #if HAVE_DLFCN_H
23817 #include <dlfcn.h>
23818 #endif
23819
23820 #include <stdio.h>
23821
23822 #ifdef RTLD_GLOBAL
23823 #  define LT_DLGLOBAL           RTLD_GLOBAL
23824 #else
23825 #  ifdef DL_GLOBAL
23826 #    define LT_DLGLOBAL         DL_GLOBAL
23827 #  else
23828 #    define LT_DLGLOBAL         0
23829 #  endif
23830 #endif
23831
23832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23833    find out it does not work in some platform. */
23834 #ifndef LT_DLLAZY_OR_NOW
23835 #  ifdef RTLD_LAZY
23836 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23837 #  else
23838 #    ifdef DL_LAZY
23839 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23840 #    else
23841 #      ifdef RTLD_NOW
23842 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23843 #      else
23844 #        ifdef DL_NOW
23845 #          define LT_DLLAZY_OR_NOW      DL_NOW
23846 #        else
23847 #          define LT_DLLAZY_OR_NOW      0
23848 #        endif
23849 #      endif
23850 #    endif
23851 #  endif
23852 #endif
23853
23854 #ifdef __cplusplus
23855 extern "C" void exit (int);
23856 #endif
23857
23858 void fnord() { int i=42;}
23859 int main ()
23860 {
23861   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23862   int status = $lt_dlunknown;
23863
23864   if (self)
23865     {
23866       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23867       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23868       /* dlclose (self); */
23869     }
23870
23871     exit (status);
23872 }
23873 EOF
23874   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875   (eval $ac_link) 2>&5
23876   ac_status=$?
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23879     (./conftest; exit; ) >&5 2>/dev/null
23880     lt_status=$?
23881     case x$lt_status in
23882       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23883       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23884       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23885     esac
23886   else :
23887     # compilation failed
23888     lt_cv_dlopen_self=no
23889   fi
23890 fi
23891 rm -fr conftest*
23892
23893
23894 fi
23895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23896 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23897
23898     if test "x$lt_cv_dlopen_self" = xyes; then
23899       LDFLAGS="$LDFLAGS $link_static_flag"
23900       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23901 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23902 if test "${lt_cv_dlopen_self_static+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905           if test "$cross_compiling" = yes; then :
23906   lt_cv_dlopen_self_static=cross
23907 else
23908   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23909   lt_status=$lt_dlunknown
23910   cat > conftest.$ac_ext <<EOF
23911 #line 23911 "configure"
23912 #include "confdefs.h"
23913
23914 #if HAVE_DLFCN_H
23915 #include <dlfcn.h>
23916 #endif
23917
23918 #include <stdio.h>
23919
23920 #ifdef RTLD_GLOBAL
23921 #  define LT_DLGLOBAL           RTLD_GLOBAL
23922 #else
23923 #  ifdef DL_GLOBAL
23924 #    define LT_DLGLOBAL         DL_GLOBAL
23925 #  else
23926 #    define LT_DLGLOBAL         0
23927 #  endif
23928 #endif
23929
23930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23931    find out it does not work in some platform. */
23932 #ifndef LT_DLLAZY_OR_NOW
23933 #  ifdef RTLD_LAZY
23934 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23935 #  else
23936 #    ifdef DL_LAZY
23937 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23938 #    else
23939 #      ifdef RTLD_NOW
23940 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23941 #      else
23942 #        ifdef DL_NOW
23943 #          define LT_DLLAZY_OR_NOW      DL_NOW
23944 #        else
23945 #          define LT_DLLAZY_OR_NOW      0
23946 #        endif
23947 #      endif
23948 #    endif
23949 #  endif
23950 #endif
23951
23952 #ifdef __cplusplus
23953 extern "C" void exit (int);
23954 #endif
23955
23956 void fnord() { int i=42;}
23957 int main ()
23958 {
23959   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23960   int status = $lt_dlunknown;
23961
23962   if (self)
23963     {
23964       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23965       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23966       /* dlclose (self); */
23967     }
23968
23969     exit (status);
23970 }
23971 EOF
23972   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23973   (eval $ac_link) 2>&5
23974   ac_status=$?
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23977     (./conftest; exit; ) >&5 2>/dev/null
23978     lt_status=$?
23979     case x$lt_status in
23980       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23981       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23982       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23983     esac
23984   else :
23985     # compilation failed
23986     lt_cv_dlopen_self_static=no
23987   fi
23988 fi
23989 rm -fr conftest*
23990
23991
23992 fi
23993 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23994 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23995     fi
23996
23997     CPPFLAGS="$save_CPPFLAGS"
23998     LDFLAGS="$save_LDFLAGS"
23999     LIBS="$save_LIBS"
24000     ;;
24001   esac
24002
24003   case $lt_cv_dlopen_self in
24004   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24005   *) enable_dlopen_self=unknown ;;
24006   esac
24007
24008   case $lt_cv_dlopen_self_static in
24009   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24010   *) enable_dlopen_self_static=unknown ;;
24011   esac
24012 fi
24013
24014
24015 # The else clause should only fire when bootstrapping the
24016 # libtool distribution, otherwise you forgot to ship ltmain.sh
24017 # with your package, and you will get complaints that there are
24018 # no rules to generate ltmain.sh.
24019 if test -f "$ltmain"; then
24020   # See if we are running on zsh, and set the options which allow our commands through
24021   # without removal of \ escapes.
24022   if test -n "${ZSH_VERSION+set}" ; then
24023     setopt NO_GLOB_SUBST
24024   fi
24025   # Now quote all the things that may contain metacharacters while being
24026   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24027   # variables and quote the copies for generation of the libtool script.
24028   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24029     SED SHELL STRIP \
24030     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24031     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24032     deplibs_check_method reload_flag reload_cmds need_locks \
24033     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24034     lt_cv_sys_global_symbol_to_c_name_address \
24035     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24036     old_postinstall_cmds old_postuninstall_cmds \
24037     compiler_CXX \
24038     CC_CXX \
24039     LD_CXX \
24040     lt_prog_compiler_wl_CXX \
24041     lt_prog_compiler_pic_CXX \
24042     lt_prog_compiler_static_CXX \
24043     lt_prog_compiler_no_builtin_flag_CXX \
24044     export_dynamic_flag_spec_CXX \
24045     thread_safe_flag_spec_CXX \
24046     whole_archive_flag_spec_CXX \
24047     enable_shared_with_static_runtimes_CXX \
24048     old_archive_cmds_CXX \
24049     old_archive_from_new_cmds_CXX \
24050     predep_objects_CXX \
24051     postdep_objects_CXX \
24052     predeps_CXX \
24053     postdeps_CXX \
24054     compiler_lib_search_path_CXX \
24055     archive_cmds_CXX \
24056     archive_expsym_cmds_CXX \
24057     postinstall_cmds_CXX \
24058     postuninstall_cmds_CXX \
24059     old_archive_from_expsyms_cmds_CXX \
24060     allow_undefined_flag_CXX \
24061     no_undefined_flag_CXX \
24062     export_symbols_cmds_CXX \
24063     hardcode_libdir_flag_spec_CXX \
24064     hardcode_libdir_flag_spec_ld_CXX \
24065     hardcode_libdir_separator_CXX \
24066     hardcode_automatic_CXX \
24067     module_cmds_CXX \
24068     module_expsym_cmds_CXX \
24069     lt_cv_prog_compiler_c_o_CXX \
24070     exclude_expsyms_CXX \
24071     include_expsyms_CXX; do
24072
24073     case $var in
24074     old_archive_cmds_CXX | \
24075     old_archive_from_new_cmds_CXX | \
24076     archive_cmds_CXX | \
24077     archive_expsym_cmds_CXX | \
24078     module_cmds_CXX | \
24079     module_expsym_cmds_CXX | \
24080     old_archive_from_expsyms_cmds_CXX | \
24081     export_symbols_cmds_CXX | \
24082     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24083     postinstall_cmds | postuninstall_cmds | \
24084     old_postinstall_cmds | old_postuninstall_cmds | \
24085     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24086       # Double-quote double-evaled strings.
24087       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24088       ;;
24089     *)
24090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24091       ;;
24092     esac
24093   done
24094
24095   case $lt_echo in
24096   *'\$0 --fallback-echo"')
24097     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24098     ;;
24099   esac
24100
24101 cfgfile="$ofile"
24102
24103   cat <<__EOF__ >> "$cfgfile"
24104 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24105
24106 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24107
24108 # Shell to use when invoking shell scripts.
24109 SHELL=$lt_SHELL
24110
24111 # Whether or not to build shared libraries.
24112 build_libtool_libs=$enable_shared
24113
24114 # Whether or not to build static libraries.
24115 build_old_libs=$enable_static
24116
24117 # Whether or not to add -lc for building shared libraries.
24118 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24119
24120 # Whether or not to disallow shared libs when runtime libs are static
24121 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24122
24123 # Whether or not to optimize for fast installation.
24124 fast_install=$enable_fast_install
24125
24126 # The host system.
24127 host_alias=$host_alias
24128 host=$host
24129 host_os=$host_os
24130
24131 # The build system.
24132 build_alias=$build_alias
24133 build=$build
24134 build_os=$build_os
24135
24136 # An echo program that does not interpret backslashes.
24137 echo=$lt_echo
24138
24139 # The archiver.
24140 AR=$lt_AR
24141 AR_FLAGS=$lt_AR_FLAGS
24142
24143 # A C compiler.
24144 LTCC=$lt_LTCC
24145
24146 # A language-specific compiler.
24147 CC=$lt_compiler_CXX
24148
24149 # Is the compiler the GNU C compiler?
24150 with_gcc=$GCC_CXX
24151
24152 # An ERE matcher.
24153 EGREP=$lt_EGREP
24154
24155 # The linker used to build libraries.
24156 LD=$lt_LD_CXX
24157
24158 # Whether we need hard or soft links.
24159 LN_S=$lt_LN_S
24160
24161 # A BSD-compatible nm program.
24162 NM=$lt_NM
24163
24164 # A symbol stripping program
24165 STRIP=$lt_STRIP
24166
24167 # Used to examine libraries when file_magic_cmd begins "file"
24168 MAGIC_CMD=$MAGIC_CMD
24169
24170 # Used on cygwin: DLL creation program.
24171 DLLTOOL="$DLLTOOL"
24172
24173 # Used on cygwin: object dumper.
24174 OBJDUMP="$OBJDUMP"
24175
24176 # Used on cygwin: assembler.
24177 AS="$AS"
24178
24179 # The name of the directory that contains temporary libtool files.
24180 objdir=$objdir
24181
24182 # How to create reloadable object files.
24183 reload_flag=$lt_reload_flag
24184 reload_cmds=$lt_reload_cmds
24185
24186 # How to pass a linker flag through the compiler.
24187 wl=$lt_lt_prog_compiler_wl_CXX
24188
24189 # Object file suffix (normally "o").
24190 objext="$ac_objext"
24191
24192 # Old archive suffix (normally "a").
24193 libext="$libext"
24194
24195 # Shared library suffix (normally ".so").
24196 shrext_cmds='$shrext_cmds'
24197
24198 # Executable file suffix (normally "").
24199 exeext="$exeext"
24200
24201 # Additional compiler flags for building library objects.
24202 pic_flag=$lt_lt_prog_compiler_pic_CXX
24203 pic_mode=$pic_mode
24204
24205 # What is the maximum length of a command?
24206 max_cmd_len=$lt_cv_sys_max_cmd_len
24207
24208 # Does compiler simultaneously support -c and -o options?
24209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24210
24211 # Must we lock files when doing compilation?
24212 need_locks=$lt_need_locks
24213
24214 # Do we need the lib prefix for modules?
24215 need_lib_prefix=$need_lib_prefix
24216
24217 # Do we need a version for libraries?
24218 need_version=$need_version
24219
24220 # Whether dlopen is supported.
24221 dlopen_support=$enable_dlopen
24222
24223 # Whether dlopen of programs is supported.
24224 dlopen_self=$enable_dlopen_self
24225
24226 # Whether dlopen of statically linked programs is supported.
24227 dlopen_self_static=$enable_dlopen_self_static
24228
24229 # Compiler flag to prevent dynamic linking.
24230 link_static_flag=$lt_lt_prog_compiler_static_CXX
24231
24232 # Compiler flag to turn off builtin functions.
24233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24234
24235 # Compiler flag to allow reflexive dlopens.
24236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24237
24238 # Compiler flag to generate shared objects directly from archives.
24239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24240
24241 # Compiler flag to generate thread-safe objects.
24242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
24243
24244 # Library versioning type.
24245 version_type=$version_type
24246
24247 # Format of library name prefix.
24248 libname_spec=$lt_libname_spec
24249
24250 # List of archive names.  First name is the real one, the rest are links.
24251 # The last name is the one that the linker finds with -lNAME.
24252 library_names_spec=$lt_library_names_spec
24253
24254 # The coded name of the library, if different from the real name.
24255 soname_spec=$lt_soname_spec
24256
24257 # Commands used to build and install an old-style archive.
24258 RANLIB=$lt_RANLIB
24259 old_archive_cmds=$lt_old_archive_cmds_CXX
24260 old_postinstall_cmds=$lt_old_postinstall_cmds
24261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24262
24263 # Create an old-style archive from a shared archive.
24264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24265
24266 # Create a temporary old-style archive to link instead of a shared archive.
24267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24268
24269 # Commands used to build and install a shared archive.
24270 archive_cmds=$lt_archive_cmds_CXX
24271 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24272 postinstall_cmds=$lt_postinstall_cmds
24273 postuninstall_cmds=$lt_postuninstall_cmds
24274
24275 # Commands used to build a loadable module (assumed same as above if empty)
24276 module_cmds=$lt_module_cmds_CXX
24277 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24278
24279 # Commands to strip libraries.
24280 old_striplib=$lt_old_striplib
24281 striplib=$lt_striplib
24282
24283 # Dependencies to place before the objects being linked to create a
24284 # shared library.
24285 predep_objects=$lt_predep_objects_CXX
24286
24287 # Dependencies to place after the objects being linked to create a
24288 # shared library.
24289 postdep_objects=$lt_postdep_objects_CXX
24290
24291 # Dependencies to place before the objects being linked to create a
24292 # shared library.
24293 predeps=$lt_predeps_CXX
24294
24295 # Dependencies to place after the objects being linked to create a
24296 # shared library.
24297 postdeps=$lt_postdeps_CXX
24298
24299 # The library search path used internally by the compiler when linking
24300 # a shared library.
24301 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24302
24303 # Method to check whether dependent libraries are shared objects.
24304 deplibs_check_method=$lt_deplibs_check_method
24305
24306 # Command to use when deplibs_check_method == file_magic.
24307 file_magic_cmd=$lt_file_magic_cmd
24308
24309 # Flag that allows shared libraries with undefined symbols to be built.
24310 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24311
24312 # Flag that forces no undefined symbols.
24313 no_undefined_flag=$lt_no_undefined_flag_CXX
24314
24315 # Commands used to finish a libtool library installation in a directory.
24316 finish_cmds=$lt_finish_cmds
24317
24318 # Same as above, but a single script fragment to be evaled but not shown.
24319 finish_eval=$lt_finish_eval
24320
24321 # Take the output of nm and produce a listing of raw symbols and C names.
24322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24323
24324 # Transform the output of nm in a proper C declaration
24325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24326
24327 # Transform the output of nm in a C name address pair
24328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24329
24330 # This is the shared library runtime path variable.
24331 runpath_var=$runpath_var
24332
24333 # This is the shared library path variable.
24334 shlibpath_var=$shlibpath_var
24335
24336 # Is shlibpath searched before the hard-coded library search path?
24337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24338
24339 # How to hardcode a shared library path into an executable.
24340 hardcode_action=$hardcode_action_CXX
24341
24342 # Whether we should hardcode library paths into libraries.
24343 hardcode_into_libs=$hardcode_into_libs
24344
24345 # Flag to hardcode \$libdir into a binary during linking.
24346 # This must work even if \$libdir does not exist.
24347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24348
24349 # If ld is used when linking, flag to hardcode \$libdir into
24350 # a binary during linking. This must work even if \$libdir does
24351 # not exist.
24352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24353
24354 # Whether we need a single -rpath flag with a separated argument.
24355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24356
24357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24358 # resulting binary.
24359 hardcode_direct=$hardcode_direct_CXX
24360
24361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24362 # resulting binary.
24363 hardcode_minus_L=$hardcode_minus_L_CXX
24364
24365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24366 # the resulting binary.
24367 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24368
24369 # Set to yes if building a shared library automatically hardcodes DIR into the library
24370 # and all subsequent libraries and executables linked against it.
24371 hardcode_automatic=$hardcode_automatic_CXX
24372
24373 # Variables whose values should be saved in libtool wrapper scripts and
24374 # restored at relink time.
24375 variables_saved_for_relink="$variables_saved_for_relink"
24376
24377 # Whether libtool must link a program against all its dependency libraries.
24378 link_all_deplibs=$link_all_deplibs_CXX
24379
24380 # Compile-time system search path for libraries
24381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24382
24383 # Run-time system search path for libraries
24384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24385
24386 # Fix the shell variable \$srcfile for the compiler.
24387 fix_srcfile_path="$fix_srcfile_path_CXX"
24388
24389 # Set to yes if exported symbols are required.
24390 always_export_symbols=$always_export_symbols_CXX
24391
24392 # The commands to list exported symbols.
24393 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24394
24395 # The commands to extract the exported symbol list from a shared archive.
24396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24397
24398 # Symbols that should not be listed in the preloaded symbols.
24399 exclude_expsyms=$lt_exclude_expsyms_CXX
24400
24401 # Symbols that must always be exported.
24402 include_expsyms=$lt_include_expsyms_CXX
24403
24404 # ### END LIBTOOL TAG CONFIG: $tagname
24405
24406 __EOF__
24407
24408
24409 else
24410   # If there is no Makefile yet, we rely on a make rule to execute
24411   # `config.status --recheck' to rerun these tests and create the
24412   # libtool script then.
24413   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24414   if test -f "$ltmain_in"; then
24415     test -f Makefile && make "$ltmain"
24416   fi
24417 fi
24418
24419
24420 ac_ext=c
24421 ac_cpp='$CPP $CPPFLAGS'
24422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24425
24426 CC=$lt_save_CC
24427 LDCXX=$LD
24428 LD=$lt_save_LD
24429 GCC=$lt_save_GCC
24430 with_gnu_ldcxx=$with_gnu_ld
24431 with_gnu_ld=$lt_save_with_gnu_ld
24432 lt_cv_path_LDCXX=$lt_cv_path_LD
24433 lt_cv_path_LD=$lt_save_path_LD
24434 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24435 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24436
24437         else
24438           tagname=""
24439         fi
24440         ;;
24441
24442       F77)
24443         if test -n "$F77" && test "X$F77" != "Xno"; then
24444
24445 ac_ext=f
24446 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24447 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24449
24450
24451 archive_cmds_need_lc_F77=no
24452 allow_undefined_flag_F77=
24453 always_export_symbols_F77=no
24454 archive_expsym_cmds_F77=
24455 export_dynamic_flag_spec_F77=
24456 hardcode_direct_F77=no
24457 hardcode_libdir_flag_spec_F77=
24458 hardcode_libdir_flag_spec_ld_F77=
24459 hardcode_libdir_separator_F77=
24460 hardcode_minus_L_F77=no
24461 hardcode_automatic_F77=no
24462 module_cmds_F77=
24463 module_expsym_cmds_F77=
24464 link_all_deplibs_F77=unknown
24465 old_archive_cmds_F77=$old_archive_cmds
24466 no_undefined_flag_F77=
24467 whole_archive_flag_spec_F77=
24468 enable_shared_with_static_runtimes_F77=no
24469
24470 # Source file extension for f77 test sources.
24471 ac_ext=f
24472
24473 # Object file extension for compiled f77 test sources.
24474 objext=o
24475 objext_F77=$objext
24476
24477 # Code to be used in simple compile tests
24478 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
24479
24480 # Code to be used in simple link tests
24481 lt_simple_link_test_code="      program t\n      end\n"
24482
24483 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24484
24485 # If no C compiler was specified, use CC.
24486 LTCC=${LTCC-"$CC"}
24487
24488 # Allow CC to be a program name with arguments.
24489 compiler=$CC
24490
24491
24492 # save warnings/boilerplate of simple test code
24493 ac_outfile=conftest.$ac_objext
24494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24496 _lt_compiler_boilerplate=`cat conftest.err`
24497 $rm conftest*
24498
24499 ac_outfile=conftest.$ac_objext
24500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24502 _lt_linker_boilerplate=`cat conftest.err`
24503 $rm conftest*
24504
24505
24506 # Allow CC to be a program name with arguments.
24507 lt_save_CC="$CC"
24508 CC=${F77-"f77"}
24509 compiler=$CC
24510 compiler_F77=$CC
24511 for cc_temp in $compiler""; do
24512   case $cc_temp in
24513     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24514     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24515     \-*) ;;
24516     *) break;;
24517   esac
24518 done
24519 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24520
24521
24522 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24523 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
24524 echo "$as_me:$LINENO: result: $can_build_shared" >&5
24525 echo "${ECHO_T}$can_build_shared" >&6
24526
24527 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24528 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
24529 test "$can_build_shared" = "no" && enable_shared=no
24530
24531 # On AIX, shared libraries and static libraries use the same namespace, and
24532 # are all built from PIC.
24533 case $host_os in
24534 aix3*)
24535   test "$enable_shared" = yes && enable_static=no
24536   if test -n "$RANLIB"; then
24537     archive_cmds="$archive_cmds~\$RANLIB \$lib"
24538     postinstall_cmds='$RANLIB $lib'
24539   fi
24540   ;;
24541 aix4* | aix5*)
24542   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24543     test "$enable_shared" = yes && enable_static=no
24544   fi
24545   ;;
24546 esac
24547 echo "$as_me:$LINENO: result: $enable_shared" >&5
24548 echo "${ECHO_T}$enable_shared" >&6
24549
24550 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24551 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24552 # Make sure either enable_shared or enable_static is yes.
24553 test "$enable_shared" = yes || enable_static=yes
24554 echo "$as_me:$LINENO: result: $enable_static" >&5
24555 echo "${ECHO_T}$enable_static" >&6
24556
24557 test "$ld_shlibs_F77" = no && can_build_shared=no
24558
24559 GCC_F77="$G77"
24560 LD_F77="$LD"
24561
24562 lt_prog_compiler_wl_F77=
24563 lt_prog_compiler_pic_F77=
24564 lt_prog_compiler_static_F77=
24565
24566 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24567 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24568
24569   if test "$GCC" = yes; then
24570     lt_prog_compiler_wl_F77='-Wl,'
24571     lt_prog_compiler_static_F77='-static'
24572
24573     case $host_os in
24574       aix*)
24575       # All AIX code is PIC.
24576       if test "$host_cpu" = ia64; then
24577         # AIX 5 now supports IA64 processor
24578         lt_prog_compiler_static_F77='-Bstatic'
24579       fi
24580       ;;
24581
24582     amigaos*)
24583       # FIXME: we need at least 68020 code to build shared libraries, but
24584       # adding the `-m68020' flag to GCC prevents building anything better,
24585       # like `-m68040'.
24586       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24587       ;;
24588
24589     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24590       # PIC is the default for these OSes.
24591       ;;
24592
24593     mingw* | pw32* | os2*)
24594       # This hack is so that the source file can tell whether it is being
24595       # built for inclusion in a dll (and should export symbols for example).
24596       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24597       ;;
24598
24599     darwin* | rhapsody*)
24600       # PIC is the default on this platform
24601       # Common symbols not allowed in MH_DYLIB files
24602       lt_prog_compiler_pic_F77='-fno-common'
24603       ;;
24604
24605     msdosdjgpp*)
24606       # Just because we use GCC doesn't mean we suddenly get shared libraries
24607       # on systems that don't support them.
24608       lt_prog_compiler_can_build_shared_F77=no
24609       enable_shared=no
24610       ;;
24611
24612     sysv4*MP*)
24613       if test -d /usr/nec; then
24614         lt_prog_compiler_pic_F77=-Kconform_pic
24615       fi
24616       ;;
24617
24618     hpux*)
24619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24620       # not for PA HP-UX.
24621       case $host_cpu in
24622       hppa*64*|ia64*)
24623         # +Z the default
24624         ;;
24625       *)
24626         lt_prog_compiler_pic_F77='-fPIC'
24627         ;;
24628       esac
24629       ;;
24630
24631     *)
24632       lt_prog_compiler_pic_F77='-fPIC'
24633       ;;
24634     esac
24635   else
24636     # PORTME Check for flag to pass linker flags through the system compiler.
24637     case $host_os in
24638     aix*)
24639       lt_prog_compiler_wl_F77='-Wl,'
24640       if test "$host_cpu" = ia64; then
24641         # AIX 5 now supports IA64 processor
24642         lt_prog_compiler_static_F77='-Bstatic'
24643       else
24644         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24645       fi
24646       ;;
24647       darwin*)
24648         # PIC is the default on this platform
24649         # Common symbols not allowed in MH_DYLIB files
24650        case $cc_basename in
24651          xlc*)
24652          lt_prog_compiler_pic_F77='-qnocommon'
24653          lt_prog_compiler_wl_F77='-Wl,'
24654          ;;
24655        esac
24656        ;;
24657
24658     mingw* | pw32* | os2*)
24659       # This hack is so that the source file can tell whether it is being
24660       # built for inclusion in a dll (and should export symbols for example).
24661       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24662       ;;
24663
24664     hpux9* | hpux10* | hpux11*)
24665       lt_prog_compiler_wl_F77='-Wl,'
24666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24667       # not for PA HP-UX.
24668       case $host_cpu in
24669       hppa*64*|ia64*)
24670         # +Z the default
24671         ;;
24672       *)
24673         lt_prog_compiler_pic_F77='+Z'
24674         ;;
24675       esac
24676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24677       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
24678       ;;
24679
24680     irix5* | irix6* | nonstopux*)
24681       lt_prog_compiler_wl_F77='-Wl,'
24682       # PIC (with -KPIC) is the default.
24683       lt_prog_compiler_static_F77='-non_shared'
24684       ;;
24685
24686     newsos6)
24687       lt_prog_compiler_pic_F77='-KPIC'
24688       lt_prog_compiler_static_F77='-Bstatic'
24689       ;;
24690
24691     linux*)
24692       case $cc_basename in
24693       icc* | ecc*)
24694         lt_prog_compiler_wl_F77='-Wl,'
24695         lt_prog_compiler_pic_F77='-KPIC'
24696         lt_prog_compiler_static_F77='-static'
24697         ;;
24698       pgcc* | pgf77* | pgf90* | pgf95*)
24699         # Portland Group compilers (*not* the Pentium gcc compiler,
24700         # which looks to be a dead project)
24701         lt_prog_compiler_wl_F77='-Wl,'
24702         lt_prog_compiler_pic_F77='-fpic'
24703         lt_prog_compiler_static_F77='-Bstatic'
24704         ;;
24705       ccc*)
24706         lt_prog_compiler_wl_F77='-Wl,'
24707         # All Alpha code is PIC.
24708         lt_prog_compiler_static_F77='-non_shared'
24709         ;;
24710       esac
24711       ;;
24712
24713     osf3* | osf4* | osf5*)
24714       lt_prog_compiler_wl_F77='-Wl,'
24715       # All OSF/1 code is PIC.
24716       lt_prog_compiler_static_F77='-non_shared'
24717       ;;
24718
24719     sco3.2v5*)
24720       lt_prog_compiler_pic_F77='-Kpic'
24721       lt_prog_compiler_static_F77='-dn'
24722       ;;
24723
24724     solaris*)
24725       lt_prog_compiler_pic_F77='-KPIC'
24726       lt_prog_compiler_static_F77='-Bstatic'
24727       case $cc_basename in
24728       f77* | f90* | f95*)
24729         lt_prog_compiler_wl_F77='-Qoption ld ';;
24730       *)
24731         lt_prog_compiler_wl_F77='-Wl,';;
24732       esac
24733       ;;
24734
24735     sunos4*)
24736       lt_prog_compiler_wl_F77='-Qoption ld '
24737       lt_prog_compiler_pic_F77='-PIC'
24738       lt_prog_compiler_static_F77='-Bstatic'
24739       ;;
24740
24741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24742       lt_prog_compiler_wl_F77='-Wl,'
24743       lt_prog_compiler_pic_F77='-KPIC'
24744       lt_prog_compiler_static_F77='-Bstatic'
24745       ;;
24746
24747     sysv4*MP*)
24748       if test -d /usr/nec ;then
24749         lt_prog_compiler_pic_F77='-Kconform_pic'
24750         lt_prog_compiler_static_F77='-Bstatic'
24751       fi
24752       ;;
24753
24754     unicos*)
24755       lt_prog_compiler_wl_F77='-Wl,'
24756       lt_prog_compiler_can_build_shared_F77=no
24757       ;;
24758
24759     uts4*)
24760       lt_prog_compiler_pic_F77='-pic'
24761       lt_prog_compiler_static_F77='-Bstatic'
24762       ;;
24763
24764     *)
24765       lt_prog_compiler_can_build_shared_F77=no
24766       ;;
24767     esac
24768   fi
24769
24770 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
24771 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
24772
24773 #
24774 # Check to make sure the PIC flag actually works.
24775 #
24776 if test -n "$lt_prog_compiler_pic_F77"; then
24777
24778 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
24780 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
24781   echo $ECHO_N "(cached) $ECHO_C" >&6
24782 else
24783   lt_prog_compiler_pic_works_F77=no
24784   ac_outfile=conftest.$ac_objext
24785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24786    lt_compiler_flag="$lt_prog_compiler_pic_F77"
24787    # Insert the option either (1) after the last *FLAGS variable, or
24788    # (2) before a word containing "conftest.", or (3) at the end.
24789    # Note that $ac_compile itself does not contain backslashes and begins
24790    # with a dollar sign (not a hyphen), so the echo should work correctly.
24791    # The option is referenced via a variable to avoid confusing sed.
24792    lt_compile=`echo "$ac_compile" | $SED \
24793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24795    -e 's:$: $lt_compiler_flag:'`
24796    (eval echo "\"\$as_me:24796: $lt_compile\"" >&5)
24797    (eval "$lt_compile" 2>conftest.err)
24798    ac_status=$?
24799    cat conftest.err >&5
24800    echo "$as_me:24800: \$? = $ac_status" >&5
24801    if (exit $ac_status) && test -s "$ac_outfile"; then
24802      # The compiler can only warn and ignore the option if not recognized
24803      # So say no if there are warnings other than the usual output.
24804      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24805      $SED '/^$/d' conftest.err >conftest.er2
24806      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24807        lt_prog_compiler_pic_works_F77=yes
24808      fi
24809    fi
24810    $rm conftest*
24811
24812 fi
24813 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
24814 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
24815
24816 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
24817     case $lt_prog_compiler_pic_F77 in
24818      "" | " "*) ;;
24819      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24820      esac
24821 else
24822     lt_prog_compiler_pic_F77=
24823      lt_prog_compiler_can_build_shared_F77=no
24824 fi
24825
24826 fi
24827 case $host_os in
24828   # For platforms which do not support PIC, -DPIC is meaningless:
24829   *djgpp*)
24830     lt_prog_compiler_pic_F77=
24831     ;;
24832   *)
24833     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24834     ;;
24835 esac
24836
24837 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
24839 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   lt_cv_prog_compiler_c_o_F77=no
24843    $rm -r conftest 2>/dev/null
24844    mkdir conftest
24845    cd conftest
24846    mkdir out
24847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24848
24849    lt_compiler_flag="-o out/conftest2.$ac_objext"
24850    # Insert the option either (1) after the last *FLAGS variable, or
24851    # (2) before a word containing "conftest.", or (3) at the end.
24852    # Note that $ac_compile itself does not contain backslashes and begins
24853    # with a dollar sign (not a hyphen), so the echo should work correctly.
24854    lt_compile=`echo "$ac_compile" | $SED \
24855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24857    -e 's:$: $lt_compiler_flag:'`
24858    (eval echo "\"\$as_me:24858: $lt_compile\"" >&5)
24859    (eval "$lt_compile" 2>out/conftest.err)
24860    ac_status=$?
24861    cat out/conftest.err >&5
24862    echo "$as_me:24862: \$? = $ac_status" >&5
24863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24864    then
24865      # The compiler can only warn and ignore the option if not recognized
24866      # So say no if there are warnings
24867      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
24868      $SED '/^$/d' out/conftest.err >out/conftest.er2
24869      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24870        lt_cv_prog_compiler_c_o_F77=yes
24871      fi
24872    fi
24873    chmod u+w . 2>&5
24874    $rm conftest*
24875    # SGI C++ compiler will create directory out/ii_files/ for
24876    # template instantiation
24877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24878    $rm out/* && rmdir out
24879    cd ..
24880    rmdir conftest
24881    $rm conftest*
24882
24883 fi
24884 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
24885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
24886
24887
24888 hard_links="nottested"
24889 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
24890   # do not overwrite the value of need_locks provided by the user
24891   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
24893   hard_links=yes
24894   $rm conftest*
24895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24896   touch conftest.a
24897   ln conftest.a conftest.b 2>&5 || hard_links=no
24898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24899   echo "$as_me:$LINENO: result: $hard_links" >&5
24900 echo "${ECHO_T}$hard_links" >&6
24901   if test "$hard_links" = no; then
24902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24904     need_locks=warn
24905   fi
24906 else
24907   need_locks=no
24908 fi
24909
24910 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24912
24913   runpath_var=
24914   allow_undefined_flag_F77=
24915   enable_shared_with_static_runtimes_F77=no
24916   archive_cmds_F77=
24917   archive_expsym_cmds_F77=
24918   old_archive_From_new_cmds_F77=
24919   old_archive_from_expsyms_cmds_F77=
24920   export_dynamic_flag_spec_F77=
24921   whole_archive_flag_spec_F77=
24922   thread_safe_flag_spec_F77=
24923   hardcode_libdir_flag_spec_F77=
24924   hardcode_libdir_flag_spec_ld_F77=
24925   hardcode_libdir_separator_F77=
24926   hardcode_direct_F77=no
24927   hardcode_minus_L_F77=no
24928   hardcode_shlibpath_var_F77=unsupported
24929   link_all_deplibs_F77=unknown
24930   hardcode_automatic_F77=no
24931   module_cmds_F77=
24932   module_expsym_cmds_F77=
24933   always_export_symbols_F77=no
24934   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24935   # include_expsyms should be a list of space-separated symbols to be *always*
24936   # included in the symbol list
24937   include_expsyms_F77=
24938   # exclude_expsyms can be an extended regexp of symbols to exclude
24939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24941   # as well as any symbol that contains `d'.
24942   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24944   # platforms (ab)use it in PIC code, but their linkers get confused if
24945   # the symbol is explicitly referenced.  Since portable code cannot
24946   # rely on this symbol name, it's probably fine to never include it in
24947   # preloaded symbol tables.
24948   extract_expsyms_cmds=
24949   # Just being paranoid about ensuring that cc_basename is set.
24950   for cc_temp in $compiler""; do
24951   case $cc_temp in
24952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24954     \-*) ;;
24955     *) break;;
24956   esac
24957 done
24958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24959
24960   case $host_os in
24961   cygwin* | mingw* | pw32*)
24962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24963     # When not using gcc, we currently assume that we are using
24964     # Microsoft Visual C++.
24965     if test "$GCC" != yes; then
24966       with_gnu_ld=no
24967     fi
24968     ;;
24969   openbsd*)
24970     with_gnu_ld=no
24971     ;;
24972   esac
24973
24974   ld_shlibs_F77=yes
24975   if test "$with_gnu_ld" = yes; then
24976     # If archive_cmds runs LD, not CC, wlarc should be empty
24977     wlarc='${wl}'
24978
24979     # Set some defaults for GNU ld with shared library support. These
24980     # are reset later if shared libraries are not supported. Putting them
24981     # here allows them to be overridden if necessary.
24982     runpath_var=LD_RUN_PATH
24983     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24984     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24985     # ancient GNU ld didn't support --whole-archive et. al.
24986     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24987         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24988       else
24989         whole_archive_flag_spec_F77=
24990     fi
24991     supports_anon_versioning=no
24992     case `$LD -v 2>/dev/null` in
24993       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24994       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24995       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24996       *\ 2.11.*) ;; # other 2.11 versions
24997       *) supports_anon_versioning=yes ;;
24998     esac
24999
25000     # See if GNU ld supports shared libraries.
25001     case $host_os in
25002     aix3* | aix4* | aix5*)
25003       # On AIX/PPC, the GNU linker is very broken
25004       if test "$host_cpu" != ia64; then
25005         ld_shlibs_F77=no
25006         cat <<EOF 1>&2
25007
25008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25009 *** to be unable to reliably create shared libraries on AIX.
25010 *** Therefore, libtool is disabling shared libraries support.  If you
25011 *** really care for shared libraries, you may want to modify your PATH
25012 *** so that a non-GNU linker is found, and then restart.
25013
25014 EOF
25015       fi
25016       ;;
25017
25018     amigaos*)
25019       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)'
25020       hardcode_libdir_flag_spec_F77='-L$libdir'
25021       hardcode_minus_L_F77=yes
25022
25023       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25024       # that the semantics of dynamic libraries on AmigaOS, at least up
25025       # to version 4, is to share data among multiple programs linked
25026       # with the same dynamic library.  Since this doesn't match the
25027       # behavior of shared libraries on other platforms, we can't use
25028       # them.
25029       ld_shlibs_F77=no
25030       ;;
25031
25032     beos*)
25033       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25034         allow_undefined_flag_F77=unsupported
25035         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25036         # support --undefined.  This deserves some investigation.  FIXME
25037         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25038       else
25039         ld_shlibs_F77=no
25040       fi
25041       ;;
25042
25043     cygwin* | mingw* | pw32*)
25044       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
25045       # as there is no search path for DLLs.
25046       hardcode_libdir_flag_spec_F77='-L$libdir'
25047       allow_undefined_flag_F77=unsupported
25048       always_export_symbols_F77=no
25049       enable_shared_with_static_runtimes_F77=yes
25050       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25051
25052       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25053         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25054         # If the export-symbols file already is a .def file (1st line
25055         # is EXPORTS), use it as is; otherwise, prepend...
25056         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25057           cp $export_symbols $output_objdir/$soname.def;
25058         else
25059           echo EXPORTS > $output_objdir/$soname.def;
25060           cat $export_symbols >> $output_objdir/$soname.def;
25061         fi~
25062         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
25063       else
25064         ld_shlibs_F77=no
25065       fi
25066       ;;
25067
25068     linux*)
25069       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25070         tmp_addflag=
25071         case $cc_basename,$host_cpu in
25072         pgcc*)                          # Portland Group C compiler
25073           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25074           tmp_addflag=' $pic_flag'
25075           ;;
25076         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25077           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25078           tmp_addflag=' $pic_flag -Mnomain' ;;
25079         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25080           tmp_addflag=' -i_dynamic' ;;
25081         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25082           tmp_addflag=' -i_dynamic -nofor_main' ;;
25083         ifc* | ifort*)                  # Intel Fortran compiler
25084           tmp_addflag=' -nofor_main' ;;
25085         esac
25086         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25087
25088         if test $supports_anon_versioning = yes; then
25089           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
25090   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25091   $echo "local: *; };" >> $output_objdir/$libname.ver~
25092           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25093         fi
25094       else
25095         ld_shlibs_F77=no
25096       fi
25097       ;;
25098
25099     netbsd*)
25100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25101         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25102         wlarc=
25103       else
25104         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25105         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25106       fi
25107       ;;
25108
25109     solaris* | sysv5*)
25110       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25111         ld_shlibs_F77=no
25112         cat <<EOF 1>&2
25113
25114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25115 *** create shared libraries on Solaris systems.  Therefore, libtool
25116 *** is disabling shared libraries support.  We urge you to upgrade GNU
25117 *** binutils to release 2.9.1 or newer.  Another option is to modify
25118 *** your PATH or compiler configuration so that the native linker is
25119 *** used, and then restart.
25120
25121 EOF
25122       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25123         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25124         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25125       else
25126         ld_shlibs_F77=no
25127       fi
25128       ;;
25129
25130     sunos4*)
25131       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25132       wlarc=
25133       hardcode_direct_F77=yes
25134       hardcode_shlibpath_var_F77=no
25135       ;;
25136
25137     *)
25138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25139         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25140         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25141       else
25142         ld_shlibs_F77=no
25143       fi
25144       ;;
25145     esac
25146
25147     if test "$ld_shlibs_F77" = no; then
25148       runpath_var=
25149       hardcode_libdir_flag_spec_F77=
25150       export_dynamic_flag_spec_F77=
25151       whole_archive_flag_spec_F77=
25152     fi
25153   else
25154     # PORTME fill in a description of your system's linker (not GNU ld)
25155     case $host_os in
25156     aix3*)
25157       allow_undefined_flag_F77=unsupported
25158       always_export_symbols_F77=yes
25159       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'
25160       # Note: this linker hardcodes the directories in LIBPATH if there
25161       # are no directories specified by -L.
25162       hardcode_minus_L_F77=yes
25163       if test "$GCC" = yes && test -z "$link_static_flag"; then
25164         # Neither direct hardcoding nor static linking is supported with a
25165         # broken collect2.
25166         hardcode_direct_F77=unsupported
25167       fi
25168       ;;
25169
25170     aix4* | aix5*)
25171       if test "$host_cpu" = ia64; then
25172         # On IA64, the linker does run time linking by default, so we don't
25173         # have to do anything special.
25174         aix_use_runtimelinking=no
25175         exp_sym_flag='-Bexport'
25176         no_entry_flag=""
25177       else
25178         # If we're using GNU nm, then we don't want the "-C" option.
25179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
25180         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25181           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'
25182         else
25183           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'
25184         fi
25185         aix_use_runtimelinking=no
25186
25187         # Test if we are trying to use run time linking or normal
25188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25189         # need to do runtime linking.
25190         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25191           for ld_flag in $LDFLAGS; do
25192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25193             aix_use_runtimelinking=yes
25194             break
25195           fi
25196           done
25197         esac
25198
25199         exp_sym_flag='-bexport'
25200         no_entry_flag='-bnoentry'
25201       fi
25202
25203       # When large executables or shared objects are built, AIX ld can
25204       # have problems creating the table of contents.  If linking a library
25205       # or program results in "error TOC overflow" add -mminimal-toc to
25206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25208
25209       archive_cmds_F77=''
25210       hardcode_direct_F77=yes
25211       hardcode_libdir_separator_F77=':'
25212       link_all_deplibs_F77=yes
25213
25214       if test "$GCC" = yes; then
25215         case $host_os in aix4.[012]|aix4.[012].*)
25216         # We only want to do this on AIX 4.2 and lower, the check
25217         # below for broken collect2 doesn't work under 4.3+
25218           collect2name=`${CC} -print-prog-name=collect2`
25219           if test -f "$collect2name" && \
25220            strings "$collect2name" | grep resolve_lib_name >/dev/null
25221           then
25222           # We have reworked collect2
25223           hardcode_direct_F77=yes
25224           else
25225           # We have old collect2
25226           hardcode_direct_F77=unsupported
25227           # It fails to find uninstalled libraries when the uninstalled
25228           # path is not listed in the libpath.  Setting hardcode_minus_L
25229           # to unsupported forces relinking
25230           hardcode_minus_L_F77=yes
25231           hardcode_libdir_flag_spec_F77='-L$libdir'
25232           hardcode_libdir_separator_F77=
25233           fi
25234         esac
25235         shared_flag='-shared'
25236         if test "$aix_use_runtimelinking" = yes; then
25237           shared_flag="$shared_flag "'${wl}-G'
25238         fi
25239       else
25240         # not using gcc
25241         if test "$host_cpu" = ia64; then
25242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25243         # chokes on -Wl,-G. The following line is correct:
25244           shared_flag='-G'
25245         else
25246         if test "$aix_use_runtimelinking" = yes; then
25247             shared_flag='${wl}-G'
25248           else
25249             shared_flag='${wl}-bM:SRE'
25250         fi
25251         fi
25252       fi
25253
25254       # It seems that -bexpall does not export symbols beginning with
25255       # underscore (_), so it is better to generate a list of symbols to export.
25256       always_export_symbols_F77=yes
25257       if test "$aix_use_runtimelinking" = yes; then
25258         # Warning - without using the other runtime loading flags (-brtl),
25259         # -berok will link without error, but may produce a broken library.
25260         allow_undefined_flag_F77='-berok'
25261        # Determine the default libpath from the value encoded in an empty executable.
25262        cat >conftest.$ac_ext <<_ACEOF
25263       program main
25264
25265       end
25266 _ACEOF
25267 rm -f conftest.$ac_objext conftest$ac_exeext
25268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25269   (eval $ac_link) 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } &&
25276          { ac_try='test -z "$ac_f77_werror_flag"
25277                          || test ! -s conftest.err'
25278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279   (eval $ac_try) 2>&5
25280   ac_status=$?
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); }; } &&
25283          { ac_try='test -s conftest$ac_exeext'
25284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285   (eval $ac_try) 2>&5
25286   ac_status=$?
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); }; }; then
25289
25290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25291 }'`
25292 # Check for a 64-bit object if we didn't find anything.
25293 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; }
25294 }'`; fi
25295 else
25296   echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299 fi
25300 rm -f conftest.err conftest.$ac_objext \
25301       conftest$ac_exeext conftest.$ac_ext
25302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25303
25304        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25305         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"
25306        else
25307         if test "$host_cpu" = ia64; then
25308           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
25309           allow_undefined_flag_F77="-z nodefs"
25310           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"
25311         else
25312          # Determine the default libpath from the value encoded in an empty executable.
25313          cat >conftest.$ac_ext <<_ACEOF
25314       program main
25315
25316       end
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320   (eval $ac_link) 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } &&
25327          { ac_try='test -z "$ac_f77_werror_flag"
25328                          || test ! -s conftest.err'
25329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330   (eval $ac_try) 2>&5
25331   ac_status=$?
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); }; } &&
25334          { ac_try='test -s conftest$ac_exeext'
25335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336   (eval $ac_try) 2>&5
25337   ac_status=$?
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); }; }; then
25340
25341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25342 }'`
25343 # Check for a 64-bit object if we didn't find anything.
25344 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; }
25345 }'`; fi
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350 fi
25351 rm -f conftest.err conftest.$ac_objext \
25352       conftest$ac_exeext conftest.$ac_ext
25353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25354
25355          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25356           # Warning - without using the other run time loading flags,
25357           # -berok will link without error, but may produce a broken library.
25358           no_undefined_flag_F77=' ${wl}-bernotok'
25359           allow_undefined_flag_F77=' ${wl}-berok'
25360           # -bexpall does not export symbols beginning with underscore (_)
25361           always_export_symbols_F77=yes
25362           # Exported symbols can be pulled into shared objects from archives
25363           whole_archive_flag_spec_F77=' '
25364           archive_cmds_need_lc_F77=yes
25365           # This is similar to how AIX traditionally builds its shared libraries.
25366           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'
25367         fi
25368       fi
25369       ;;
25370
25371     amigaos*)
25372       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)'
25373       hardcode_libdir_flag_spec_F77='-L$libdir'
25374       hardcode_minus_L_F77=yes
25375       # see comment about different semantics on the GNU ld section
25376       ld_shlibs_F77=no
25377       ;;
25378
25379     bsdi[45]*)
25380       export_dynamic_flag_spec_F77=-rdynamic
25381       ;;
25382
25383     cygwin* | mingw* | pw32*)
25384       # When not using gcc, we currently assume that we are using
25385       # Microsoft Visual C++.
25386       # hardcode_libdir_flag_spec is actually meaningless, as there is
25387       # no search path for DLLs.
25388       hardcode_libdir_flag_spec_F77=' '
25389       allow_undefined_flag_F77=unsupported
25390       # Tell ltmain to make .lib files, not .a files.
25391       libext=lib
25392       # Tell ltmain to make .dll files, not .so files.
25393       shrext_cmds=".dll"
25394       # FIXME: Setting linknames here is a bad hack.
25395       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25396       # The linker will automatically build a .lib file if we build a DLL.
25397       old_archive_From_new_cmds_F77='true'
25398       # FIXME: Should let the user specify the lib program.
25399       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
25400       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
25401       enable_shared_with_static_runtimes_F77=yes
25402       ;;
25403
25404     darwin* | rhapsody*)
25405       case $host_os in
25406         rhapsody* | darwin1.[012])
25407          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
25408          ;;
25409        *) # Darwin 1.3 on
25410          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25411            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25412          else
25413            case ${MACOSX_DEPLOYMENT_TARGET} in
25414              10.[012])
25415                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25416                ;;
25417              10.*)
25418                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
25419                ;;
25420            esac
25421          fi
25422          ;;
25423       esac
25424       archive_cmds_need_lc_F77=no
25425       hardcode_direct_F77=no
25426       hardcode_automatic_F77=yes
25427       hardcode_shlibpath_var_F77=unsupported
25428       whole_archive_flag_spec_F77=''
25429       link_all_deplibs_F77=yes
25430     if test "$GCC" = yes ; then
25431         output_verbose_link_cmd='echo'
25432         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25433       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25434       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25435       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25436       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}'
25437     else
25438       case $cc_basename in
25439         xlc*)
25440          output_verbose_link_cmd='echo'
25441          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25442          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25443           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25444          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25445           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}'
25446           ;;
25447        *)
25448          ld_shlibs_F77=no
25449           ;;
25450       esac
25451     fi
25452       ;;
25453
25454     dgux*)
25455       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25456       hardcode_libdir_flag_spec_F77='-L$libdir'
25457       hardcode_shlibpath_var_F77=no
25458       ;;
25459
25460     freebsd1*)
25461       ld_shlibs_F77=no
25462       ;;
25463
25464     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25465     # support.  Future versions do this automatically, but an explicit c++rt0.o
25466     # does not break anything, and helps significantly (at the cost of a little
25467     # extra space).
25468     freebsd2.2*)
25469       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25470       hardcode_libdir_flag_spec_F77='-R$libdir'
25471       hardcode_direct_F77=yes
25472       hardcode_shlibpath_var_F77=no
25473       ;;
25474
25475     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25476     freebsd2*)
25477       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25478       hardcode_direct_F77=yes
25479       hardcode_minus_L_F77=yes
25480       hardcode_shlibpath_var_F77=no
25481       ;;
25482
25483     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25484     freebsd* | kfreebsd*-gnu | dragonfly*)
25485       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25486       hardcode_libdir_flag_spec_F77='-R$libdir'
25487       hardcode_direct_F77=yes
25488       hardcode_shlibpath_var_F77=no
25489       ;;
25490
25491     hpux9*)
25492       if test "$GCC" = yes; then
25493         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'
25494       else
25495         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'
25496       fi
25497       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25498       hardcode_libdir_separator_F77=:
25499       hardcode_direct_F77=yes
25500
25501       # hardcode_minus_L: Not really in the search PATH,
25502       # but as the default location of the library.
25503       hardcode_minus_L_F77=yes
25504       export_dynamic_flag_spec_F77='${wl}-E'
25505       ;;
25506
25507     hpux10* | hpux11*)
25508       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25509         case $host_cpu in
25510         hppa*64*|ia64*)
25511           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25512           ;;
25513         *)
25514           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25515           ;;
25516         esac
25517       else
25518         case $host_cpu in
25519         hppa*64*|ia64*)
25520           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25521           ;;
25522         *)
25523           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25524           ;;
25525         esac
25526       fi
25527       if test "$with_gnu_ld" = no; then
25528         case $host_cpu in
25529         hppa*64*)
25530           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25531           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
25532           hardcode_libdir_separator_F77=:
25533           hardcode_direct_F77=no
25534           hardcode_shlibpath_var_F77=no
25535           ;;
25536         ia64*)
25537           hardcode_libdir_flag_spec_F77='-L$libdir'
25538           hardcode_direct_F77=no
25539           hardcode_shlibpath_var_F77=no
25540
25541           # hardcode_minus_L: Not really in the search PATH,
25542           # but as the default location of the library.
25543           hardcode_minus_L_F77=yes
25544           ;;
25545         *)
25546           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25547           hardcode_libdir_separator_F77=:
25548           hardcode_direct_F77=yes
25549           export_dynamic_flag_spec_F77='${wl}-E'
25550
25551           # hardcode_minus_L: Not really in the search PATH,
25552           # but as the default location of the library.
25553           hardcode_minus_L_F77=yes
25554           ;;
25555         esac
25556       fi
25557       ;;
25558
25559     irix5* | irix6* | nonstopux*)
25560       if test "$GCC" = yes; then
25561         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'
25562       else
25563         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'
25564         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
25565       fi
25566       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25567       hardcode_libdir_separator_F77=:
25568       link_all_deplibs_F77=yes
25569       ;;
25570
25571     netbsd*)
25572       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25573         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25574       else
25575         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25576       fi
25577       hardcode_libdir_flag_spec_F77='-R$libdir'
25578       hardcode_direct_F77=yes
25579       hardcode_shlibpath_var_F77=no
25580       ;;
25581
25582     newsos6)
25583       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25584       hardcode_direct_F77=yes
25585       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25586       hardcode_libdir_separator_F77=:
25587       hardcode_shlibpath_var_F77=no
25588       ;;
25589
25590     openbsd*)
25591       hardcode_direct_F77=yes
25592       hardcode_shlibpath_var_F77=no
25593       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25594         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25595         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25596         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25597         export_dynamic_flag_spec_F77='${wl}-E'
25598       else
25599        case $host_os in
25600          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25601            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25602            hardcode_libdir_flag_spec_F77='-R$libdir'
25603            ;;
25604          *)
25605            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25606            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25607            ;;
25608        esac
25609       fi
25610       ;;
25611
25612     os2*)
25613       hardcode_libdir_flag_spec_F77='-L$libdir'
25614       hardcode_minus_L_F77=yes
25615       allow_undefined_flag_F77=unsupported
25616       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'
25617       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25618       ;;
25619
25620     osf3*)
25621       if test "$GCC" = yes; then
25622         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25623         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'
25624       else
25625         allow_undefined_flag_F77=' -expect_unresolved \*'
25626         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'
25627       fi
25628       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25629       hardcode_libdir_separator_F77=:
25630       ;;
25631
25632     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25633       if test "$GCC" = yes; then
25634         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25635         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'
25636         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25637       else
25638         allow_undefined_flag_F77=' -expect_unresolved \*'
25639         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'
25640         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~
25641         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25642
25643         # Both c and cxx compiler support -rpath directly
25644         hardcode_libdir_flag_spec_F77='-rpath $libdir'
25645       fi
25646       hardcode_libdir_separator_F77=:
25647       ;;
25648
25649     sco3.2v5*)
25650       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25651       hardcode_shlibpath_var_F77=no
25652       export_dynamic_flag_spec_F77='${wl}-Bexport'
25653       runpath_var=LD_RUN_PATH
25654       hardcode_runpath_var=yes
25655       ;;
25656
25657     solaris*)
25658       no_undefined_flag_F77=' -z text'
25659       if test "$GCC" = yes; then
25660         wlarc='${wl}'
25661         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25662         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25663           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25664       else
25665         wlarc=''
25666         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25667         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25668         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25669       fi
25670       hardcode_libdir_flag_spec_F77='-R$libdir'
25671       hardcode_shlibpath_var_F77=no
25672       case $host_os in
25673       solaris2.[0-5] | solaris2.[0-5].*) ;;
25674       *)
25675         # The compiler driver will combine linker options so we
25676         # cannot just pass the convience library names through
25677         # without $wl, iff we do not link with $LD.
25678         # Luckily, gcc supports the same syntax we need for Sun Studio.
25679         # Supported since Solaris 2.6 (maybe 2.5.1?)
25680         case $wlarc in
25681         '')
25682           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
25683         *)
25684           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25685         esac ;;
25686       esac
25687       link_all_deplibs_F77=yes
25688       ;;
25689
25690     sunos4*)
25691       if test "x$host_vendor" = xsequent; then
25692         # Use $CC to link under sequent, because it throws in some extra .o
25693         # files that make .init and .fini sections work.
25694         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25695       else
25696         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25697       fi
25698       hardcode_libdir_flag_spec_F77='-L$libdir'
25699       hardcode_direct_F77=yes
25700       hardcode_minus_L_F77=yes
25701       hardcode_shlibpath_var_F77=no
25702       ;;
25703
25704     sysv4)
25705       case $host_vendor in
25706         sni)
25707           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25708           hardcode_direct_F77=yes # is this really true???
25709         ;;
25710         siemens)
25711           ## LD is ld it makes a PLAMLIB
25712           ## CC just makes a GrossModule.
25713           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25714           reload_cmds_F77='$CC -r -o $output$reload_objs'
25715           hardcode_direct_F77=no
25716         ;;
25717         motorola)
25718           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25719           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25720         ;;
25721       esac
25722       runpath_var='LD_RUN_PATH'
25723       hardcode_shlibpath_var_F77=no
25724       ;;
25725
25726     sysv4.3*)
25727       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25728       hardcode_shlibpath_var_F77=no
25729       export_dynamic_flag_spec_F77='-Bexport'
25730       ;;
25731
25732     sysv4*MP*)
25733       if test -d /usr/nec; then
25734         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25735         hardcode_shlibpath_var_F77=no
25736         runpath_var=LD_RUN_PATH
25737         hardcode_runpath_var=yes
25738         ld_shlibs_F77=yes
25739       fi
25740       ;;
25741
25742     sysv4.2uw2*)
25743       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25744       hardcode_direct_F77=yes
25745       hardcode_minus_L_F77=no
25746       hardcode_shlibpath_var_F77=no
25747       hardcode_runpath_var=yes
25748       runpath_var=LD_RUN_PATH
25749       ;;
25750
25751    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
25752       no_undefined_flag_F77='${wl}-z ${wl}text'
25753       if test "$GCC" = yes; then
25754         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25755       else
25756         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25757       fi
25758       runpath_var='LD_RUN_PATH'
25759       hardcode_shlibpath_var_F77=no
25760       ;;
25761
25762     sysv5*)
25763       no_undefined_flag_F77=' -z text'
25764       # $CC -shared without GNU ld will not create a library from C++
25765       # object files and a static libstdc++, better avoid it by now
25766       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25767       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25768                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25769       hardcode_libdir_flag_spec_F77=
25770       hardcode_shlibpath_var_F77=no
25771       runpath_var='LD_RUN_PATH'
25772       ;;
25773
25774     uts4*)
25775       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25776       hardcode_libdir_flag_spec_F77='-L$libdir'
25777       hardcode_shlibpath_var_F77=no
25778       ;;
25779
25780     *)
25781       ld_shlibs_F77=no
25782       ;;
25783     esac
25784   fi
25785
25786 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
25787 echo "${ECHO_T}$ld_shlibs_F77" >&6
25788 test "$ld_shlibs_F77" = no && can_build_shared=no
25789
25790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25791 if test "$GCC" = yes; then
25792   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25793 fi
25794
25795 #
25796 # Do we need to explicitly link libc?
25797 #
25798 case "x$archive_cmds_need_lc_F77" in
25799 x|xyes)
25800   # Assume -lc should be added
25801   archive_cmds_need_lc_F77=yes
25802
25803   if test "$enable_shared" = yes && test "$GCC" = yes; then
25804     case $archive_cmds_F77 in
25805     *'~'*)
25806       # FIXME: we may have to deal with multi-command sequences.
25807       ;;
25808     '$CC '*)
25809       # Test whether the compiler implicitly links with -lc since on some
25810       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25811       # to ld, don't add -lc before -lgcc.
25812       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25814       $rm conftest*
25815       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25816
25817       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818   (eval $ac_compile) 2>&5
25819   ac_status=$?
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } 2>conftest.err; then
25822         soname=conftest
25823         lib=conftest
25824         libobjs=conftest.$ac_objext
25825         deplibs=
25826         wl=$lt_prog_compiler_wl_F77
25827         compiler_flags=-v
25828         linker_flags=-v
25829         verstring=
25830         output_objdir=.
25831         libname=conftest
25832         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25833         allow_undefined_flag_F77=
25834         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25835   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25836   ac_status=$?
25837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838   (exit $ac_status); }
25839         then
25840           archive_cmds_need_lc_F77=no
25841         else
25842           archive_cmds_need_lc_F77=yes
25843         fi
25844         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25845       else
25846         cat conftest.err 1>&5
25847       fi
25848       $rm conftest*
25849       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25850 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25851       ;;
25852     esac
25853   fi
25854   ;;
25855 esac
25856
25857 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25859 library_names_spec=
25860 libname_spec='lib$name'
25861 soname_spec=
25862 shrext_cmds=".so"
25863 postinstall_cmds=
25864 postuninstall_cmds=
25865 finish_cmds=
25866 finish_eval=
25867 shlibpath_var=
25868 shlibpath_overrides_runpath=unknown
25869 version_type=none
25870 dynamic_linker="$host_os ld.so"
25871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25872 if test "$GCC" = yes; then
25873   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25874   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25875     # if the path contains ";" then we assume it to be the separator
25876     # otherwise default to the standard path separator (i.e. ":") - it is
25877     # assumed that no part of a normal pathname contains ";" but that should
25878     # okay in the real world where ";" in dirpaths is itself problematic.
25879     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25880   else
25881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25882   fi
25883 else
25884   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25885 fi
25886 need_lib_prefix=unknown
25887 hardcode_into_libs=no
25888
25889 # when you set need_version to no, make sure it does not cause -set_version
25890 # flags to be left without arguments
25891 need_version=unknown
25892
25893 case $host_os in
25894 aix3*)
25895   version_type=linux
25896   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25897   shlibpath_var=LIBPATH
25898
25899   # AIX 3 has no versioning support, so we append a major version to the name.
25900   soname_spec='${libname}${release}${shared_ext}$major'
25901   ;;
25902
25903 aix4* | aix5*)
25904   version_type=linux
25905   need_lib_prefix=no
25906   need_version=no
25907   hardcode_into_libs=yes
25908   if test "$host_cpu" = ia64; then
25909     # AIX 5 supports IA64
25910     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25911     shlibpath_var=LD_LIBRARY_PATH
25912   else
25913     # With GCC up to 2.95.x, collect2 would create an import file
25914     # for dependence libraries.  The import file would start with
25915     # the line `#! .'.  This would cause the generated library to
25916     # depend on `.', always an invalid library.  This was fixed in
25917     # development snapshots of GCC prior to 3.0.
25918     case $host_os in
25919       aix4 | aix4.[01] | aix4.[01].*)
25920       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25921            echo ' yes '
25922            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25923         :
25924       else
25925         can_build_shared=no
25926       fi
25927       ;;
25928     esac
25929     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25930     # soname into executable. Probably we can add versioning support to
25931     # collect2, so additional links can be useful in future.
25932     if test "$aix_use_runtimelinking" = yes; then
25933       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25934       # instead of lib<name>.a to let people know that these are not
25935       # typical AIX shared libraries.
25936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25937     else
25938       # We preserve .a as extension for shared libraries through AIX4.2
25939       # and later when we are not doing run time linking.
25940       library_names_spec='${libname}${release}.a $libname.a'
25941       soname_spec='${libname}${release}${shared_ext}$major'
25942     fi
25943     shlibpath_var=LIBPATH
25944   fi
25945   ;;
25946
25947 amigaos*)
25948   library_names_spec='$libname.ixlibrary $libname.a'
25949   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25950   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'
25951   ;;
25952
25953 beos*)
25954   library_names_spec='${libname}${shared_ext}'
25955   dynamic_linker="$host_os ld.so"
25956   shlibpath_var=LIBRARY_PATH
25957   ;;
25958
25959 bsdi[45]*)
25960   version_type=linux
25961   need_version=no
25962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25963   soname_spec='${libname}${release}${shared_ext}$major'
25964   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25965   shlibpath_var=LD_LIBRARY_PATH
25966   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25967   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25968   # the default ld.so.conf also contains /usr/contrib/lib and
25969   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25970   # libtool to hard-code these into programs
25971   ;;
25972
25973 cygwin* | mingw* | pw32*)
25974   version_type=windows
25975   shrext_cmds=".dll"
25976   need_version=no
25977   need_lib_prefix=no
25978
25979   case $GCC,$host_os in
25980   yes,cygwin* | yes,mingw* | yes,pw32*)
25981     library_names_spec='$libname.dll.a'
25982     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25983     postinstall_cmds='base_file=`basename \${file}`~
25984       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25985       dldir=$destdir/`dirname \$dlpath`~
25986       test -d \$dldir || mkdir -p \$dldir~
25987       $install_prog $dir/$dlname \$dldir/$dlname~
25988       chmod a+x \$dldir/$dlname'
25989     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25990       dlpath=$dir/\$dldll~
25991        $rm \$dlpath'
25992     shlibpath_overrides_runpath=yes
25993
25994     case $host_os in
25995     cygwin*)
25996       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25997       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25998       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25999       ;;
26000     mingw*)
26001       # MinGW DLLs use traditional 'lib' prefix
26002       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26003       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26004       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26005         # It is most probably a Windows format PATH printed by
26006         # mingw gcc, but we are running on Cygwin. Gcc prints its search
26007         # path with ; separators, and with drive letters. We can handle the
26008         # drive letters (cygwin fileutils understands them), so leave them,
26009         # especially as we might pass files found there to a mingw objdump,
26010         # which wouldn't understand a cygwinified path. Ahh.
26011         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26012       else
26013         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26014       fi
26015       ;;
26016     pw32*)
26017       # pw32 DLLs use 'pw' prefix rather than 'lib'
26018       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26019       ;;
26020     esac
26021     ;;
26022
26023   *)
26024     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26025     ;;
26026   esac
26027   dynamic_linker='Win32 ld.exe'
26028   # FIXME: first we should search . and the directory the executable is in
26029   shlibpath_var=PATH
26030   ;;
26031
26032 darwin* | rhapsody*)
26033   dynamic_linker="$host_os dyld"
26034   version_type=darwin
26035   need_lib_prefix=no
26036   need_version=no
26037   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26038   soname_spec='${libname}${release}${major}$shared_ext'
26039   shlibpath_overrides_runpath=yes
26040   shlibpath_var=DYLD_LIBRARY_PATH
26041   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26042   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26043   if test "$GCC" = yes; then
26044     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"`
26045   else
26046     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26047   fi
26048   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26049   ;;
26050
26051 dgux*)
26052   version_type=linux
26053   need_lib_prefix=no
26054   need_version=no
26055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26056   soname_spec='${libname}${release}${shared_ext}$major'
26057   shlibpath_var=LD_LIBRARY_PATH
26058   ;;
26059
26060 freebsd1*)
26061   dynamic_linker=no
26062   ;;
26063
26064 kfreebsd*-gnu)
26065   version_type=linux
26066   need_lib_prefix=no
26067   need_version=no
26068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26069   soname_spec='${libname}${release}${shared_ext}$major'
26070   shlibpath_var=LD_LIBRARY_PATH
26071   shlibpath_overrides_runpath=no
26072   hardcode_into_libs=yes
26073   dynamic_linker='GNU ld.so'
26074   ;;
26075
26076 freebsd* | dragonfly*)
26077   # DragonFly does not have aout.  When/if they implement a new
26078   # versioning mechanism, adjust this.
26079   if test -x /usr/bin/objformat; then
26080     objformat=`/usr/bin/objformat`
26081   else
26082     case $host_os in
26083     freebsd[123]*) objformat=aout ;;
26084     *) objformat=elf ;;
26085     esac
26086   fi
26087   version_type=freebsd-$objformat
26088   case $version_type in
26089     freebsd-elf*)
26090       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26091       need_version=no
26092       need_lib_prefix=no
26093       ;;
26094     freebsd-*)
26095       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26096       need_version=yes
26097       ;;
26098   esac
26099   shlibpath_var=LD_LIBRARY_PATH
26100   case $host_os in
26101   freebsd2*)
26102     shlibpath_overrides_runpath=yes
26103     ;;
26104   freebsd3.[01]* | freebsdelf3.[01]*)
26105     shlibpath_overrides_runpath=yes
26106     hardcode_into_libs=yes
26107     ;;
26108   *) # from 3.2 on
26109     shlibpath_overrides_runpath=no
26110     hardcode_into_libs=yes
26111     ;;
26112   esac
26113   ;;
26114
26115 gnu*)
26116   version_type=linux
26117   need_lib_prefix=no
26118   need_version=no
26119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26120   soname_spec='${libname}${release}${shared_ext}$major'
26121   shlibpath_var=LD_LIBRARY_PATH
26122   hardcode_into_libs=yes
26123   ;;
26124
26125 hpux9* | hpux10* | hpux11*)
26126   # Give a soname corresponding to the major version so that dld.sl refuses to
26127   # link against other versions.
26128   version_type=sunos
26129   need_lib_prefix=no
26130   need_version=no
26131   case $host_cpu in
26132   ia64*)
26133     shrext_cmds='.so'
26134     hardcode_into_libs=yes
26135     dynamic_linker="$host_os dld.so"
26136     shlibpath_var=LD_LIBRARY_PATH
26137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26139     soname_spec='${libname}${release}${shared_ext}$major'
26140     if test "X$HPUX_IA64_MODE" = X32; then
26141       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26142     else
26143       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26144     fi
26145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26146     ;;
26147    hppa*64*)
26148      shrext_cmds='.sl'
26149      hardcode_into_libs=yes
26150      dynamic_linker="$host_os dld.sl"
26151      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26152      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26153      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26154      soname_spec='${libname}${release}${shared_ext}$major'
26155      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26156      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26157      ;;
26158    *)
26159     shrext_cmds='.sl'
26160     dynamic_linker="$host_os dld.sl"
26161     shlibpath_var=SHLIB_PATH
26162     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26164     soname_spec='${libname}${release}${shared_ext}$major'
26165     ;;
26166   esac
26167   # HP-UX runs *really* slowly unless shared libraries are mode 555.
26168   postinstall_cmds='chmod 555 $lib'
26169   ;;
26170
26171 irix5* | irix6* | nonstopux*)
26172   case $host_os in
26173     nonstopux*) version_type=nonstopux ;;
26174     *)
26175         if test "$lt_cv_prog_gnu_ld" = yes; then
26176                 version_type=linux
26177         else
26178                 version_type=irix
26179         fi ;;
26180   esac
26181   need_lib_prefix=no
26182   need_version=no
26183   soname_spec='${libname}${release}${shared_ext}$major'
26184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26185   case $host_os in
26186   irix5* | nonstopux*)
26187     libsuff= shlibsuff=
26188     ;;
26189   *)
26190     case $LD in # libtool.m4 will add one of these switches to LD
26191     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26192       libsuff= shlibsuff= libmagic=32-bit;;
26193     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26194       libsuff=32 shlibsuff=N32 libmagic=N32;;
26195     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26196       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26197     *) libsuff= shlibsuff= libmagic=never-match;;
26198     esac
26199     ;;
26200   esac
26201   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26202   shlibpath_overrides_runpath=no
26203   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26204   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26205   hardcode_into_libs=yes
26206   ;;
26207
26208 # No shared lib support for Linux oldld, aout, or coff.
26209 linux*oldld* | linux*aout* | linux*coff*)
26210   dynamic_linker=no
26211   ;;
26212
26213 # This must be Linux ELF.
26214 linux*)
26215   version_type=linux
26216   need_lib_prefix=no
26217   need_version=no
26218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26219   soname_spec='${libname}${release}${shared_ext}$major'
26220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26221   shlibpath_var=LD_LIBRARY_PATH
26222   shlibpath_overrides_runpath=no
26223   # This implies no fast_install, which is unacceptable.
26224   # Some rework will be needed to allow for fast_install
26225   # before this can be enabled.
26226   hardcode_into_libs=yes
26227
26228   # Append ld.so.conf contents to the search path
26229   if test -f /etc/ld.so.conf; then
26230     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
26231     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26232   fi
26233
26234   # We used to test for /lib/ld.so.1 and disable shared libraries on
26235   # powerpc, because MkLinux only supported shared libraries with the
26236   # GNU dynamic linker.  Since this was broken with cross compilers,
26237   # most powerpc-linux boxes support dynamic linking these days and
26238   # people can always --disable-shared, the test was removed, and we
26239   # assume the GNU/Linux dynamic linker is in use.
26240   dynamic_linker='GNU/Linux ld.so'
26241   ;;
26242
26243 knetbsd*-gnu)
26244   version_type=linux
26245   need_lib_prefix=no
26246   need_version=no
26247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26248   soname_spec='${libname}${release}${shared_ext}$major'
26249   shlibpath_var=LD_LIBRARY_PATH
26250   shlibpath_overrides_runpath=no
26251   hardcode_into_libs=yes
26252   dynamic_linker='GNU ld.so'
26253   ;;
26254
26255 netbsd*)
26256   version_type=sunos
26257   need_lib_prefix=no
26258   need_version=no
26259   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26261     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26262     dynamic_linker='NetBSD (a.out) ld.so'
26263   else
26264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26265     soname_spec='${libname}${release}${shared_ext}$major'
26266     dynamic_linker='NetBSD ld.elf_so'
26267   fi
26268   shlibpath_var=LD_LIBRARY_PATH
26269   shlibpath_overrides_runpath=yes
26270   hardcode_into_libs=yes
26271   ;;
26272
26273 newsos6)
26274   version_type=linux
26275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26276   shlibpath_var=LD_LIBRARY_PATH
26277   shlibpath_overrides_runpath=yes
26278   ;;
26279
26280 nto-qnx*)
26281   version_type=linux
26282   need_lib_prefix=no
26283   need_version=no
26284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26285   soname_spec='${libname}${release}${shared_ext}$major'
26286   shlibpath_var=LD_LIBRARY_PATH
26287   shlibpath_overrides_runpath=yes
26288   ;;
26289
26290 openbsd*)
26291   version_type=sunos
26292   need_lib_prefix=no
26293   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26294   case $host_os in
26295     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26296     *)                         need_version=no  ;;
26297   esac
26298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26300   shlibpath_var=LD_LIBRARY_PATH
26301   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26302     case $host_os in
26303       openbsd2.[89] | openbsd2.[89].*)
26304         shlibpath_overrides_runpath=no
26305         ;;
26306       *)
26307         shlibpath_overrides_runpath=yes
26308         ;;
26309       esac
26310   else
26311     shlibpath_overrides_runpath=yes
26312   fi
26313   ;;
26314
26315 os2*)
26316   libname_spec='$name'
26317   shrext_cmds=".dll"
26318   need_lib_prefix=no
26319   library_names_spec='$libname${shared_ext} $libname.a'
26320   dynamic_linker='OS/2 ld.exe'
26321   shlibpath_var=LIBPATH
26322   ;;
26323
26324 osf3* | osf4* | osf5*)
26325   version_type=osf
26326   need_lib_prefix=no
26327   need_version=no
26328   soname_spec='${libname}${release}${shared_ext}$major'
26329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26330   shlibpath_var=LD_LIBRARY_PATH
26331   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26332   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26333   ;;
26334
26335 sco3.2v5*)
26336   version_type=osf
26337   soname_spec='${libname}${release}${shared_ext}$major'
26338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26339   shlibpath_var=LD_LIBRARY_PATH
26340   ;;
26341
26342 solaris*)
26343   version_type=linux
26344   need_lib_prefix=no
26345   need_version=no
26346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26347   soname_spec='${libname}${release}${shared_ext}$major'
26348   shlibpath_var=LD_LIBRARY_PATH
26349   shlibpath_overrides_runpath=yes
26350   hardcode_into_libs=yes
26351   # ldd complains unless libraries are executable
26352   postinstall_cmds='chmod +x $lib'
26353   ;;
26354
26355 sunos4*)
26356   version_type=sunos
26357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26358   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26359   shlibpath_var=LD_LIBRARY_PATH
26360   shlibpath_overrides_runpath=yes
26361   if test "$with_gnu_ld" = yes; then
26362     need_lib_prefix=no
26363   fi
26364   need_version=yes
26365   ;;
26366
26367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26368   version_type=linux
26369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26370   soname_spec='${libname}${release}${shared_ext}$major'
26371   shlibpath_var=LD_LIBRARY_PATH
26372   case $host_vendor in
26373     sni)
26374       shlibpath_overrides_runpath=no
26375       need_lib_prefix=no
26376       export_dynamic_flag_spec='${wl}-Blargedynsym'
26377       runpath_var=LD_RUN_PATH
26378       ;;
26379     siemens)
26380       need_lib_prefix=no
26381       ;;
26382     motorola)
26383       need_lib_prefix=no
26384       need_version=no
26385       shlibpath_overrides_runpath=no
26386       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26387       ;;
26388   esac
26389   ;;
26390
26391 sysv4*MP*)
26392   if test -d /usr/nec ;then
26393     version_type=linux
26394     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26395     soname_spec='$libname${shared_ext}.$major'
26396     shlibpath_var=LD_LIBRARY_PATH
26397   fi
26398   ;;
26399
26400 uts4*)
26401   version_type=linux
26402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26403   soname_spec='${libname}${release}${shared_ext}$major'
26404   shlibpath_var=LD_LIBRARY_PATH
26405   ;;
26406
26407 *)
26408   dynamic_linker=no
26409   ;;
26410 esac
26411 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26412 echo "${ECHO_T}$dynamic_linker" >&6
26413 test "$dynamic_linker" = no && can_build_shared=no
26414
26415 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26416 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26417 hardcode_action_F77=
26418 if test -n "$hardcode_libdir_flag_spec_F77" || \
26419    test -n "$runpath_var_F77" || \
26420    test "X$hardcode_automatic_F77" = "Xyes" ; then
26421
26422   # We can hardcode non-existant directories.
26423   if test "$hardcode_direct_F77" != no &&
26424      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26425      # have to relink, otherwise we might link with an installed library
26426      # when we should be linking with a yet-to-be-installed one
26427      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
26428      test "$hardcode_minus_L_F77" != no; then
26429     # Linking always hardcodes the temporary library directory.
26430     hardcode_action_F77=relink
26431   else
26432     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26433     hardcode_action_F77=immediate
26434   fi
26435 else
26436   # We cannot hardcode anything, or else we can only hardcode existing
26437   # directories.
26438   hardcode_action_F77=unsupported
26439 fi
26440 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
26441 echo "${ECHO_T}$hardcode_action_F77" >&6
26442
26443 if test "$hardcode_action_F77" = relink; then
26444   # Fast installation is not supported
26445   enable_fast_install=no
26446 elif test "$shlibpath_overrides_runpath" = yes ||
26447      test "$enable_shared" = no; then
26448   # Fast installation is not necessary
26449   enable_fast_install=needless
26450 fi
26451
26452 striplib=
26453 old_striplib=
26454 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26455 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26456 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26457   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26458   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26459   echo "$as_me:$LINENO: result: yes" >&5
26460 echo "${ECHO_T}yes" >&6
26461 else
26462 # FIXME - insert some real tests, host_os isn't really good enough
26463   case $host_os in
26464    darwin*)
26465        if test -n "$STRIP" ; then
26466          striplib="$STRIP -x"
26467          echo "$as_me:$LINENO: result: yes" >&5
26468 echo "${ECHO_T}yes" >&6
26469        else
26470   echo "$as_me:$LINENO: result: no" >&5
26471 echo "${ECHO_T}no" >&6
26472 fi
26473        ;;
26474    *)
26475   echo "$as_me:$LINENO: result: no" >&5
26476 echo "${ECHO_T}no" >&6
26477     ;;
26478   esac
26479 fi
26480
26481
26482
26483 # The else clause should only fire when bootstrapping the
26484 # libtool distribution, otherwise you forgot to ship ltmain.sh
26485 # with your package, and you will get complaints that there are
26486 # no rules to generate ltmain.sh.
26487 if test -f "$ltmain"; then
26488   # See if we are running on zsh, and set the options which allow our commands through
26489   # without removal of \ escapes.
26490   if test -n "${ZSH_VERSION+set}" ; then
26491     setopt NO_GLOB_SUBST
26492   fi
26493   # Now quote all the things that may contain metacharacters while being
26494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26495   # variables and quote the copies for generation of the libtool script.
26496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
26497     SED SHELL STRIP \
26498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26500     deplibs_check_method reload_flag reload_cmds need_locks \
26501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26502     lt_cv_sys_global_symbol_to_c_name_address \
26503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26504     old_postinstall_cmds old_postuninstall_cmds \
26505     compiler_F77 \
26506     CC_F77 \
26507     LD_F77 \
26508     lt_prog_compiler_wl_F77 \
26509     lt_prog_compiler_pic_F77 \
26510     lt_prog_compiler_static_F77 \
26511     lt_prog_compiler_no_builtin_flag_F77 \
26512     export_dynamic_flag_spec_F77 \
26513     thread_safe_flag_spec_F77 \
26514     whole_archive_flag_spec_F77 \
26515     enable_shared_with_static_runtimes_F77 \
26516     old_archive_cmds_F77 \
26517     old_archive_from_new_cmds_F77 \
26518     predep_objects_F77 \
26519     postdep_objects_F77 \
26520     predeps_F77 \
26521     postdeps_F77 \
26522     compiler_lib_search_path_F77 \
26523     archive_cmds_F77 \
26524     archive_expsym_cmds_F77 \
26525     postinstall_cmds_F77 \
26526     postuninstall_cmds_F77 \
26527     old_archive_from_expsyms_cmds_F77 \
26528     allow_undefined_flag_F77 \
26529     no_undefined_flag_F77 \
26530     export_symbols_cmds_F77 \
26531     hardcode_libdir_flag_spec_F77 \
26532     hardcode_libdir_flag_spec_ld_F77 \
26533     hardcode_libdir_separator_F77 \
26534     hardcode_automatic_F77 \
26535     module_cmds_F77 \
26536     module_expsym_cmds_F77 \
26537     lt_cv_prog_compiler_c_o_F77 \
26538     exclude_expsyms_F77 \
26539     include_expsyms_F77; do
26540
26541     case $var in
26542     old_archive_cmds_F77 | \
26543     old_archive_from_new_cmds_F77 | \
26544     archive_cmds_F77 | \
26545     archive_expsym_cmds_F77 | \
26546     module_cmds_F77 | \
26547     module_expsym_cmds_F77 | \
26548     old_archive_from_expsyms_cmds_F77 | \
26549     export_symbols_cmds_F77 | \
26550     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26551     postinstall_cmds | postuninstall_cmds | \
26552     old_postinstall_cmds | old_postuninstall_cmds | \
26553     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26554       # Double-quote double-evaled strings.
26555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26556       ;;
26557     *)
26558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26559       ;;
26560     esac
26561   done
26562
26563   case $lt_echo in
26564   *'\$0 --fallback-echo"')
26565     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26566     ;;
26567   esac
26568
26569 cfgfile="$ofile"
26570
26571   cat <<__EOF__ >> "$cfgfile"
26572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26573
26574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26575
26576 # Shell to use when invoking shell scripts.
26577 SHELL=$lt_SHELL
26578
26579 # Whether or not to build shared libraries.
26580 build_libtool_libs=$enable_shared
26581
26582 # Whether or not to build static libraries.
26583 build_old_libs=$enable_static
26584
26585 # Whether or not to add -lc for building shared libraries.
26586 build_libtool_need_lc=$archive_cmds_need_lc_F77
26587
26588 # Whether or not to disallow shared libs when runtime libs are static
26589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
26590
26591 # Whether or not to optimize for fast installation.
26592 fast_install=$enable_fast_install
26593
26594 # The host system.
26595 host_alias=$host_alias
26596 host=$host
26597 host_os=$host_os
26598
26599 # The build system.
26600 build_alias=$build_alias
26601 build=$build
26602 build_os=$build_os
26603
26604 # An echo program that does not interpret backslashes.
26605 echo=$lt_echo
26606
26607 # The archiver.
26608 AR=$lt_AR
26609 AR_FLAGS=$lt_AR_FLAGS
26610
26611 # A C compiler.
26612 LTCC=$lt_LTCC
26613
26614 # A language-specific compiler.
26615 CC=$lt_compiler_F77
26616
26617 # Is the compiler the GNU C compiler?
26618 with_gcc=$GCC_F77
26619
26620 # An ERE matcher.
26621 EGREP=$lt_EGREP
26622
26623 # The linker used to build libraries.
26624 LD=$lt_LD_F77
26625
26626 # Whether we need hard or soft links.
26627 LN_S=$lt_LN_S
26628
26629 # A BSD-compatible nm program.
26630 NM=$lt_NM
26631
26632 # A symbol stripping program
26633 STRIP=$lt_STRIP
26634
26635 # Used to examine libraries when file_magic_cmd begins "file"
26636 MAGIC_CMD=$MAGIC_CMD
26637
26638 # Used on cygwin: DLL creation program.
26639 DLLTOOL="$DLLTOOL"
26640
26641 # Used on cygwin: object dumper.
26642 OBJDUMP="$OBJDUMP"
26643
26644 # Used on cygwin: assembler.
26645 AS="$AS"
26646
26647 # The name of the directory that contains temporary libtool files.
26648 objdir=$objdir
26649
26650 # How to create reloadable object files.
26651 reload_flag=$lt_reload_flag
26652 reload_cmds=$lt_reload_cmds
26653
26654 # How to pass a linker flag through the compiler.
26655 wl=$lt_lt_prog_compiler_wl_F77
26656
26657 # Object file suffix (normally "o").
26658 objext="$ac_objext"
26659
26660 # Old archive suffix (normally "a").
26661 libext="$libext"
26662
26663 # Shared library suffix (normally ".so").
26664 shrext_cmds='$shrext_cmds'
26665
26666 # Executable file suffix (normally "").
26667 exeext="$exeext"
26668
26669 # Additional compiler flags for building library objects.
26670 pic_flag=$lt_lt_prog_compiler_pic_F77
26671 pic_mode=$pic_mode
26672
26673 # What is the maximum length of a command?
26674 max_cmd_len=$lt_cv_sys_max_cmd_len
26675
26676 # Does compiler simultaneously support -c and -o options?
26677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
26678
26679 # Must we lock files when doing compilation?
26680 need_locks=$lt_need_locks
26681
26682 # Do we need the lib prefix for modules?
26683 need_lib_prefix=$need_lib_prefix
26684
26685 # Do we need a version for libraries?
26686 need_version=$need_version
26687
26688 # Whether dlopen is supported.
26689 dlopen_support=$enable_dlopen
26690
26691 # Whether dlopen of programs is supported.
26692 dlopen_self=$enable_dlopen_self
26693
26694 # Whether dlopen of statically linked programs is supported.
26695 dlopen_self_static=$enable_dlopen_self_static
26696
26697 # Compiler flag to prevent dynamic linking.
26698 link_static_flag=$lt_lt_prog_compiler_static_F77
26699
26700 # Compiler flag to turn off builtin functions.
26701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
26702
26703 # Compiler flag to allow reflexive dlopens.
26704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
26705
26706 # Compiler flag to generate shared objects directly from archives.
26707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
26708
26709 # Compiler flag to generate thread-safe objects.
26710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
26711
26712 # Library versioning type.
26713 version_type=$version_type
26714
26715 # Format of library name prefix.
26716 libname_spec=$lt_libname_spec
26717
26718 # List of archive names.  First name is the real one, the rest are links.
26719 # The last name is the one that the linker finds with -lNAME.
26720 library_names_spec=$lt_library_names_spec
26721
26722 # The coded name of the library, if different from the real name.
26723 soname_spec=$lt_soname_spec
26724
26725 # Commands used to build and install an old-style archive.
26726 RANLIB=$lt_RANLIB
26727 old_archive_cmds=$lt_old_archive_cmds_F77
26728 old_postinstall_cmds=$lt_old_postinstall_cmds
26729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26730
26731 # Create an old-style archive from a shared archive.
26732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
26733
26734 # Create a temporary old-style archive to link instead of a shared archive.
26735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
26736
26737 # Commands used to build and install a shared archive.
26738 archive_cmds=$lt_archive_cmds_F77
26739 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
26740 postinstall_cmds=$lt_postinstall_cmds
26741 postuninstall_cmds=$lt_postuninstall_cmds
26742
26743 # Commands used to build a loadable module (assumed same as above if empty)
26744 module_cmds=$lt_module_cmds_F77
26745 module_expsym_cmds=$lt_module_expsym_cmds_F77
26746
26747 # Commands to strip libraries.
26748 old_striplib=$lt_old_striplib
26749 striplib=$lt_striplib
26750
26751 # Dependencies to place before the objects being linked to create a
26752 # shared library.
26753 predep_objects=$lt_predep_objects_F77
26754
26755 # Dependencies to place after the objects being linked to create a
26756 # shared library.
26757 postdep_objects=$lt_postdep_objects_F77
26758
26759 # Dependencies to place before the objects being linked to create a
26760 # shared library.
26761 predeps=$lt_predeps_F77
26762
26763 # Dependencies to place after the objects being linked to create a
26764 # shared library.
26765 postdeps=$lt_postdeps_F77
26766
26767 # The library search path used internally by the compiler when linking
26768 # a shared library.
26769 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
26770
26771 # Method to check whether dependent libraries are shared objects.
26772 deplibs_check_method=$lt_deplibs_check_method
26773
26774 # Command to use when deplibs_check_method == file_magic.
26775 file_magic_cmd=$lt_file_magic_cmd
26776
26777 # Flag that allows shared libraries with undefined symbols to be built.
26778 allow_undefined_flag=$lt_allow_undefined_flag_F77
26779
26780 # Flag that forces no undefined symbols.
26781 no_undefined_flag=$lt_no_undefined_flag_F77
26782
26783 # Commands used to finish a libtool library installation in a directory.
26784 finish_cmds=$lt_finish_cmds
26785
26786 # Same as above, but a single script fragment to be evaled but not shown.
26787 finish_eval=$lt_finish_eval
26788
26789 # Take the output of nm and produce a listing of raw symbols and C names.
26790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26791
26792 # Transform the output of nm in a proper C declaration
26793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26794
26795 # Transform the output of nm in a C name address pair
26796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26797
26798 # This is the shared library runtime path variable.
26799 runpath_var=$runpath_var
26800
26801 # This is the shared library path variable.
26802 shlibpath_var=$shlibpath_var
26803
26804 # Is shlibpath searched before the hard-coded library search path?
26805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26806
26807 # How to hardcode a shared library path into an executable.
26808 hardcode_action=$hardcode_action_F77
26809
26810 # Whether we should hardcode library paths into libraries.
26811 hardcode_into_libs=$hardcode_into_libs
26812
26813 # Flag to hardcode \$libdir into a binary during linking.
26814 # This must work even if \$libdir does not exist.
26815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26816
26817 # If ld is used when linking, flag to hardcode \$libdir into
26818 # a binary during linking. This must work even if \$libdir does
26819 # not exist.
26820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26821
26822 # Whether we need a single -rpath flag with a separated argument.
26823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26824
26825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26826 # resulting binary.
26827 hardcode_direct=$hardcode_direct_F77
26828
26829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26830 # resulting binary.
26831 hardcode_minus_L=$hardcode_minus_L_F77
26832
26833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26834 # the resulting binary.
26835 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26836
26837 # Set to yes if building a shared library automatically hardcodes DIR into the library
26838 # and all subsequent libraries and executables linked against it.
26839 hardcode_automatic=$hardcode_automatic_F77
26840
26841 # Variables whose values should be saved in libtool wrapper scripts and
26842 # restored at relink time.
26843 variables_saved_for_relink="$variables_saved_for_relink"
26844
26845 # Whether libtool must link a program against all its dependency libraries.
26846 link_all_deplibs=$link_all_deplibs_F77
26847
26848 # Compile-time system search path for libraries
26849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26850
26851 # Run-time system search path for libraries
26852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26853
26854 # Fix the shell variable \$srcfile for the compiler.
26855 fix_srcfile_path="$fix_srcfile_path_F77"
26856
26857 # Set to yes if exported symbols are required.
26858 always_export_symbols=$always_export_symbols_F77
26859
26860 # The commands to list exported symbols.
26861 export_symbols_cmds=$lt_export_symbols_cmds_F77
26862
26863 # The commands to extract the exported symbol list from a shared archive.
26864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26865
26866 # Symbols that should not be listed in the preloaded symbols.
26867 exclude_expsyms=$lt_exclude_expsyms_F77
26868
26869 # Symbols that must always be exported.
26870 include_expsyms=$lt_include_expsyms_F77
26871
26872 # ### END LIBTOOL TAG CONFIG: $tagname
26873
26874 __EOF__
26875
26876
26877 else
26878   # If there is no Makefile yet, we rely on a make rule to execute
26879   # `config.status --recheck' to rerun these tests and create the
26880   # libtool script then.
26881   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26882   if test -f "$ltmain_in"; then
26883     test -f Makefile && make "$ltmain"
26884   fi
26885 fi
26886
26887
26888 ac_ext=c
26889 ac_cpp='$CPP $CPPFLAGS'
26890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26893
26894 CC="$lt_save_CC"
26895
26896         else
26897           tagname=""
26898         fi
26899         ;;
26900
26901       GCJ)
26902         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26903
26904
26905
26906 # Source file extension for Java test sources.
26907 ac_ext=java
26908
26909 # Object file extension for compiled Java test sources.
26910 objext=o
26911 objext_GCJ=$objext
26912
26913 # Code to be used in simple compile tests
26914 lt_simple_compile_test_code="class foo {}\n"
26915
26916 # Code to be used in simple link tests
26917 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26918
26919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26920
26921 # If no C compiler was specified, use CC.
26922 LTCC=${LTCC-"$CC"}
26923
26924 # Allow CC to be a program name with arguments.
26925 compiler=$CC
26926
26927
26928 # save warnings/boilerplate of simple test code
26929 ac_outfile=conftest.$ac_objext
26930 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26932 _lt_compiler_boilerplate=`cat conftest.err`
26933 $rm conftest*
26934
26935 ac_outfile=conftest.$ac_objext
26936 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26938 _lt_linker_boilerplate=`cat conftest.err`
26939 $rm conftest*
26940
26941
26942 # Allow CC to be a program name with arguments.
26943 lt_save_CC="$CC"
26944 CC=${GCJ-"gcj"}
26945 compiler=$CC
26946 compiler_GCJ=$CC
26947 for cc_temp in $compiler""; do
26948   case $cc_temp in
26949     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26950     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26951     \-*) ;;
26952     *) break;;
26953   esac
26954 done
26955 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26956
26957
26958 # GCJ did not exist at the time GCC didn't implicitly link libc in.
26959 archive_cmds_need_lc_GCJ=no
26960
26961 old_archive_cmds_GCJ=$old_archive_cmds
26962
26963
26964 lt_prog_compiler_no_builtin_flag_GCJ=
26965
26966 if test "$GCC" = yes; then
26967   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26968
26969
26970 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26971 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26972 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26973   echo $ECHO_N "(cached) $ECHO_C" >&6
26974 else
26975   lt_cv_prog_compiler_rtti_exceptions=no
26976   ac_outfile=conftest.$ac_objext
26977    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26978    lt_compiler_flag="-fno-rtti -fno-exceptions"
26979    # Insert the option either (1) after the last *FLAGS variable, or
26980    # (2) before a word containing "conftest.", or (3) at the end.
26981    # Note that $ac_compile itself does not contain backslashes and begins
26982    # with a dollar sign (not a hyphen), so the echo should work correctly.
26983    # The option is referenced via a variable to avoid confusing sed.
26984    lt_compile=`echo "$ac_compile" | $SED \
26985    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26986    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26987    -e 's:$: $lt_compiler_flag:'`
26988    (eval echo "\"\$as_me:26988: $lt_compile\"" >&5)
26989    (eval "$lt_compile" 2>conftest.err)
26990    ac_status=$?
26991    cat conftest.err >&5
26992    echo "$as_me:26992: \$? = $ac_status" >&5
26993    if (exit $ac_status) && test -s "$ac_outfile"; then
26994      # The compiler can only warn and ignore the option if not recognized
26995      # So say no if there are warnings other than the usual output.
26996      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
26997      $SED '/^$/d' conftest.err >conftest.er2
26998      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
26999        lt_cv_prog_compiler_rtti_exceptions=yes
27000      fi
27001    fi
27002    $rm conftest*
27003
27004 fi
27005 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
27006 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
27007
27008 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
27009     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
27010 else
27011     :
27012 fi
27013
27014 fi
27015
27016 lt_prog_compiler_wl_GCJ=
27017 lt_prog_compiler_pic_GCJ=
27018 lt_prog_compiler_static_GCJ=
27019
27020 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
27021 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
27022
27023   if test "$GCC" = yes; then
27024     lt_prog_compiler_wl_GCJ='-Wl,'
27025     lt_prog_compiler_static_GCJ='-static'
27026
27027     case $host_os in
27028       aix*)
27029       # All AIX code is PIC.
27030       if test "$host_cpu" = ia64; then
27031         # AIX 5 now supports IA64 processor
27032         lt_prog_compiler_static_GCJ='-Bstatic'
27033       fi
27034       ;;
27035
27036     amigaos*)
27037       # FIXME: we need at least 68020 code to build shared libraries, but
27038       # adding the `-m68020' flag to GCC prevents building anything better,
27039       # like `-m68040'.
27040       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
27041       ;;
27042
27043     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
27044       # PIC is the default for these OSes.
27045       ;;
27046
27047     mingw* | pw32* | os2*)
27048       # This hack is so that the source file can tell whether it is being
27049       # built for inclusion in a dll (and should export symbols for example).
27050       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
27051       ;;
27052
27053     darwin* | rhapsody*)
27054       # PIC is the default on this platform
27055       # Common symbols not allowed in MH_DYLIB files
27056       lt_prog_compiler_pic_GCJ='-fno-common'
27057       ;;
27058
27059     msdosdjgpp*)
27060       # Just because we use GCC doesn't mean we suddenly get shared libraries
27061       # on systems that don't support them.
27062       lt_prog_compiler_can_build_shared_GCJ=no
27063       enable_shared=no
27064       ;;
27065
27066     sysv4*MP*)
27067       if test -d /usr/nec; then
27068         lt_prog_compiler_pic_GCJ=-Kconform_pic
27069       fi
27070       ;;
27071
27072     hpux*)
27073       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27074       # not for PA HP-UX.
27075       case $host_cpu in
27076       hppa*64*|ia64*)
27077         # +Z the default
27078         ;;
27079       *)
27080         lt_prog_compiler_pic_GCJ='-fPIC'
27081         ;;
27082       esac
27083       ;;
27084
27085     *)
27086       lt_prog_compiler_pic_GCJ='-fPIC'
27087       ;;
27088     esac
27089   else
27090     # PORTME Check for flag to pass linker flags through the system compiler.
27091     case $host_os in
27092     aix*)
27093       lt_prog_compiler_wl_GCJ='-Wl,'
27094       if test "$host_cpu" = ia64; then
27095         # AIX 5 now supports IA64 processor
27096         lt_prog_compiler_static_GCJ='-Bstatic'
27097       else
27098         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
27099       fi
27100       ;;
27101       darwin*)
27102         # PIC is the default on this platform
27103         # Common symbols not allowed in MH_DYLIB files
27104        case $cc_basename in
27105          xlc*)
27106          lt_prog_compiler_pic_GCJ='-qnocommon'
27107          lt_prog_compiler_wl_GCJ='-Wl,'
27108          ;;
27109        esac
27110        ;;
27111
27112     mingw* | pw32* | os2*)
27113       # This hack is so that the source file can tell whether it is being
27114       # built for inclusion in a dll (and should export symbols for example).
27115       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
27116       ;;
27117
27118     hpux9* | hpux10* | hpux11*)
27119       lt_prog_compiler_wl_GCJ='-Wl,'
27120       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
27121       # not for PA HP-UX.
27122       case $host_cpu in
27123       hppa*64*|ia64*)
27124         # +Z the default
27125         ;;
27126       *)
27127         lt_prog_compiler_pic_GCJ='+Z'
27128         ;;
27129       esac
27130       # Is there a better lt_prog_compiler_static that works with the bundled CC?
27131       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
27132       ;;
27133
27134     irix5* | irix6* | nonstopux*)
27135       lt_prog_compiler_wl_GCJ='-Wl,'
27136       # PIC (with -KPIC) is the default.
27137       lt_prog_compiler_static_GCJ='-non_shared'
27138       ;;
27139
27140     newsos6)
27141       lt_prog_compiler_pic_GCJ='-KPIC'
27142       lt_prog_compiler_static_GCJ='-Bstatic'
27143       ;;
27144
27145     linux*)
27146       case $cc_basename in
27147       icc* | ecc*)
27148         lt_prog_compiler_wl_GCJ='-Wl,'
27149         lt_prog_compiler_pic_GCJ='-KPIC'
27150         lt_prog_compiler_static_GCJ='-static'
27151         ;;
27152       pgcc* | pgf77* | pgf90* | pgf95*)
27153         # Portland Group compilers (*not* the Pentium gcc compiler,
27154         # which looks to be a dead project)
27155         lt_prog_compiler_wl_GCJ='-Wl,'
27156         lt_prog_compiler_pic_GCJ='-fpic'
27157         lt_prog_compiler_static_GCJ='-Bstatic'
27158         ;;
27159       ccc*)
27160         lt_prog_compiler_wl_GCJ='-Wl,'
27161         # All Alpha code is PIC.
27162         lt_prog_compiler_static_GCJ='-non_shared'
27163         ;;
27164       esac
27165       ;;
27166
27167     osf3* | osf4* | osf5*)
27168       lt_prog_compiler_wl_GCJ='-Wl,'
27169       # All OSF/1 code is PIC.
27170       lt_prog_compiler_static_GCJ='-non_shared'
27171       ;;
27172
27173     sco3.2v5*)
27174       lt_prog_compiler_pic_GCJ='-Kpic'
27175       lt_prog_compiler_static_GCJ='-dn'
27176       ;;
27177
27178     solaris*)
27179       lt_prog_compiler_pic_GCJ='-KPIC'
27180       lt_prog_compiler_static_GCJ='-Bstatic'
27181       case $cc_basename in
27182       f77* | f90* | f95*)
27183         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
27184       *)
27185         lt_prog_compiler_wl_GCJ='-Wl,';;
27186       esac
27187       ;;
27188
27189     sunos4*)
27190       lt_prog_compiler_wl_GCJ='-Qoption ld '
27191       lt_prog_compiler_pic_GCJ='-PIC'
27192       lt_prog_compiler_static_GCJ='-Bstatic'
27193       ;;
27194
27195     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
27196       lt_prog_compiler_wl_GCJ='-Wl,'
27197       lt_prog_compiler_pic_GCJ='-KPIC'
27198       lt_prog_compiler_static_GCJ='-Bstatic'
27199       ;;
27200
27201     sysv4*MP*)
27202       if test -d /usr/nec ;then
27203         lt_prog_compiler_pic_GCJ='-Kconform_pic'
27204         lt_prog_compiler_static_GCJ='-Bstatic'
27205       fi
27206       ;;
27207
27208     unicos*)
27209       lt_prog_compiler_wl_GCJ='-Wl,'
27210       lt_prog_compiler_can_build_shared_GCJ=no
27211       ;;
27212
27213     uts4*)
27214       lt_prog_compiler_pic_GCJ='-pic'
27215       lt_prog_compiler_static_GCJ='-Bstatic'
27216       ;;
27217
27218     *)
27219       lt_prog_compiler_can_build_shared_GCJ=no
27220       ;;
27221     esac
27222   fi
27223
27224 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
27225 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
27226
27227 #
27228 # Check to make sure the PIC flag actually works.
27229 #
27230 if test -n "$lt_prog_compiler_pic_GCJ"; then
27231
27232 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
27233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
27234 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
27235   echo $ECHO_N "(cached) $ECHO_C" >&6
27236 else
27237   lt_prog_compiler_pic_works_GCJ=no
27238   ac_outfile=conftest.$ac_objext
27239    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27240    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
27241    # Insert the option either (1) after the last *FLAGS variable, or
27242    # (2) before a word containing "conftest.", or (3) at the end.
27243    # Note that $ac_compile itself does not contain backslashes and begins
27244    # with a dollar sign (not a hyphen), so the echo should work correctly.
27245    # The option is referenced via a variable to avoid confusing sed.
27246    lt_compile=`echo "$ac_compile" | $SED \
27247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27249    -e 's:$: $lt_compiler_flag:'`
27250    (eval echo "\"\$as_me:27250: $lt_compile\"" >&5)
27251    (eval "$lt_compile" 2>conftest.err)
27252    ac_status=$?
27253    cat conftest.err >&5
27254    echo "$as_me:27254: \$? = $ac_status" >&5
27255    if (exit $ac_status) && test -s "$ac_outfile"; then
27256      # The compiler can only warn and ignore the option if not recognized
27257      # So say no if there are warnings other than the usual output.
27258      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
27259      $SED '/^$/d' conftest.err >conftest.er2
27260      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
27261        lt_prog_compiler_pic_works_GCJ=yes
27262      fi
27263    fi
27264    $rm conftest*
27265
27266 fi
27267 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
27268 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
27269
27270 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
27271     case $lt_prog_compiler_pic_GCJ in
27272      "" | " "*) ;;
27273      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
27274      esac
27275 else
27276     lt_prog_compiler_pic_GCJ=
27277      lt_prog_compiler_can_build_shared_GCJ=no
27278 fi
27279
27280 fi
27281 case $host_os in
27282   # For platforms which do not support PIC, -DPIC is meaningless:
27283   *djgpp*)
27284     lt_prog_compiler_pic_GCJ=
27285     ;;
27286   *)
27287     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
27288     ;;
27289 esac
27290
27291 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
27292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
27293 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
27294   echo $ECHO_N "(cached) $ECHO_C" >&6
27295 else
27296   lt_cv_prog_compiler_c_o_GCJ=no
27297    $rm -r conftest 2>/dev/null
27298    mkdir conftest
27299    cd conftest
27300    mkdir out
27301    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27302
27303    lt_compiler_flag="-o out/conftest2.$ac_objext"
27304    # Insert the option either (1) after the last *FLAGS variable, or
27305    # (2) before a word containing "conftest.", or (3) at the end.
27306    # Note that $ac_compile itself does not contain backslashes and begins
27307    # with a dollar sign (not a hyphen), so the echo should work correctly.
27308    lt_compile=`echo "$ac_compile" | $SED \
27309    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27311    -e 's:$: $lt_compiler_flag:'`
27312    (eval echo "\"\$as_me:27312: $lt_compile\"" >&5)
27313    (eval "$lt_compile" 2>out/conftest.err)
27314    ac_status=$?
27315    cat out/conftest.err >&5
27316    echo "$as_me:27316: \$? = $ac_status" >&5
27317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
27318    then
27319      # The compiler can only warn and ignore the option if not recognized
27320      # So say no if there are warnings
27321      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
27322      $SED '/^$/d' out/conftest.err >out/conftest.er2
27323      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27324        lt_cv_prog_compiler_c_o_GCJ=yes
27325      fi
27326    fi
27327    chmod u+w . 2>&5
27328    $rm conftest*
27329    # SGI C++ compiler will create directory out/ii_files/ for
27330    # template instantiation
27331    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
27332    $rm out/* && rmdir out
27333    cd ..
27334    rmdir conftest
27335    $rm conftest*
27336
27337 fi
27338 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27339 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
27340
27341
27342 hard_links="nottested"
27343 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
27344   # do not overwrite the value of need_locks provided by the user
27345   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
27346 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
27347   hard_links=yes
27348   $rm conftest*
27349   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27350   touch conftest.a
27351   ln conftest.a conftest.b 2>&5 || hard_links=no
27352   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27353   echo "$as_me:$LINENO: result: $hard_links" >&5
27354 echo "${ECHO_T}$hard_links" >&6
27355   if test "$hard_links" = no; then
27356     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
27357 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
27358     need_locks=warn
27359   fi
27360 else
27361   need_locks=no
27362 fi
27363
27364 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27365 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
27366
27367   runpath_var=
27368   allow_undefined_flag_GCJ=
27369   enable_shared_with_static_runtimes_GCJ=no
27370   archive_cmds_GCJ=
27371   archive_expsym_cmds_GCJ=
27372   old_archive_From_new_cmds_GCJ=
27373   old_archive_from_expsyms_cmds_GCJ=
27374   export_dynamic_flag_spec_GCJ=
27375   whole_archive_flag_spec_GCJ=
27376   thread_safe_flag_spec_GCJ=
27377   hardcode_libdir_flag_spec_GCJ=
27378   hardcode_libdir_flag_spec_ld_GCJ=
27379   hardcode_libdir_separator_GCJ=
27380   hardcode_direct_GCJ=no
27381   hardcode_minus_L_GCJ=no
27382   hardcode_shlibpath_var_GCJ=unsupported
27383   link_all_deplibs_GCJ=unknown
27384   hardcode_automatic_GCJ=no
27385   module_cmds_GCJ=
27386   module_expsym_cmds_GCJ=
27387   always_export_symbols_GCJ=no
27388   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27389   # include_expsyms should be a list of space-separated symbols to be *always*
27390   # included in the symbol list
27391   include_expsyms_GCJ=
27392   # exclude_expsyms can be an extended regexp of symbols to exclude
27393   # it will be wrapped by ` (' and `)$', so one must not match beginning or
27394   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
27395   # as well as any symbol that contains `d'.
27396   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
27397   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27398   # platforms (ab)use it in PIC code, but their linkers get confused if
27399   # the symbol is explicitly referenced.  Since portable code cannot
27400   # rely on this symbol name, it's probably fine to never include it in
27401   # preloaded symbol tables.
27402   extract_expsyms_cmds=
27403   # Just being paranoid about ensuring that cc_basename is set.
27404   for cc_temp in $compiler""; do
27405   case $cc_temp in
27406     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27407     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27408     \-*) ;;
27409     *) break;;
27410   esac
27411 done
27412 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27413
27414   case $host_os in
27415   cygwin* | mingw* | pw32*)
27416     # FIXME: the MSVC++ port hasn't been tested in a loooong time
27417     # When not using gcc, we currently assume that we are using
27418     # Microsoft Visual C++.
27419     if test "$GCC" != yes; then
27420       with_gnu_ld=no
27421     fi
27422     ;;
27423   openbsd*)
27424     with_gnu_ld=no
27425     ;;
27426   esac
27427
27428   ld_shlibs_GCJ=yes
27429   if test "$with_gnu_ld" = yes; then
27430     # If archive_cmds runs LD, not CC, wlarc should be empty
27431     wlarc='${wl}'
27432
27433     # Set some defaults for GNU ld with shared library support. These
27434     # are reset later if shared libraries are not supported. Putting them
27435     # here allows them to be overridden if necessary.
27436     runpath_var=LD_RUN_PATH
27437     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
27438     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
27439     # ancient GNU ld didn't support --whole-archive et. al.
27440     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
27441         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27442       else
27443         whole_archive_flag_spec_GCJ=
27444     fi
27445     supports_anon_versioning=no
27446     case `$LD -v 2>/dev/null` in
27447       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27448       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27449       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27450       *\ 2.11.*) ;; # other 2.11 versions
27451       *) supports_anon_versioning=yes ;;
27452     esac
27453
27454     # See if GNU ld supports shared libraries.
27455     case $host_os in
27456     aix3* | aix4* | aix5*)
27457       # On AIX/PPC, the GNU linker is very broken
27458       if test "$host_cpu" != ia64; then
27459         ld_shlibs_GCJ=no
27460         cat <<EOF 1>&2
27461
27462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
27463 *** to be unable to reliably create shared libraries on AIX.
27464 *** Therefore, libtool is disabling shared libraries support.  If you
27465 *** really care for shared libraries, you may want to modify your PATH
27466 *** so that a non-GNU linker is found, and then restart.
27467
27468 EOF
27469       fi
27470       ;;
27471
27472     amigaos*)
27473       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)'
27474       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27475       hardcode_minus_L_GCJ=yes
27476
27477       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
27478       # that the semantics of dynamic libraries on AmigaOS, at least up
27479       # to version 4, is to share data among multiple programs linked
27480       # with the same dynamic library.  Since this doesn't match the
27481       # behavior of shared libraries on other platforms, we can't use
27482       # them.
27483       ld_shlibs_GCJ=no
27484       ;;
27485
27486     beos*)
27487       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27488         allow_undefined_flag_GCJ=unsupported
27489         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27490         # support --undefined.  This deserves some investigation.  FIXME
27491         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27492       else
27493         ld_shlibs_GCJ=no
27494       fi
27495       ;;
27496
27497     cygwin* | mingw* | pw32*)
27498       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
27499       # as there is no search path for DLLs.
27500       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27501       allow_undefined_flag_GCJ=unsupported
27502       always_export_symbols_GCJ=no
27503       enable_shared_with_static_runtimes_GCJ=yes
27504       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
27505
27506       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
27507         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27508         # If the export-symbols file already is a .def file (1st line
27509         # is EXPORTS), use it as is; otherwise, prepend...
27510         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27511           cp $export_symbols $output_objdir/$soname.def;
27512         else
27513           echo EXPORTS > $output_objdir/$soname.def;
27514           cat $export_symbols >> $output_objdir/$soname.def;
27515         fi~
27516         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
27517       else
27518         ld_shlibs_GCJ=no
27519       fi
27520       ;;
27521
27522     linux*)
27523       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27524         tmp_addflag=
27525         case $cc_basename,$host_cpu in
27526         pgcc*)                          # Portland Group C compiler
27527           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
27528           tmp_addflag=' $pic_flag'
27529           ;;
27530         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
27531           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
27532           tmp_addflag=' $pic_flag -Mnomain' ;;
27533         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
27534           tmp_addflag=' -i_dynamic' ;;
27535         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
27536           tmp_addflag=' -i_dynamic -nofor_main' ;;
27537         ifc* | ifort*)                  # Intel Fortran compiler
27538           tmp_addflag=' -nofor_main' ;;
27539         esac
27540         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27541
27542         if test $supports_anon_versioning = yes; then
27543           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
27544   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27545   $echo "local: *; };" >> $output_objdir/$libname.ver~
27546           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27547         fi
27548       else
27549         ld_shlibs_GCJ=no
27550       fi
27551       ;;
27552
27553     netbsd*)
27554       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27555         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
27556         wlarc=
27557       else
27558         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27559         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27560       fi
27561       ;;
27562
27563     solaris* | sysv5*)
27564       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
27565         ld_shlibs_GCJ=no
27566         cat <<EOF 1>&2
27567
27568 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
27569 *** create shared libraries on Solaris systems.  Therefore, libtool
27570 *** is disabling shared libraries support.  We urge you to upgrade GNU
27571 *** binutils to release 2.9.1 or newer.  Another option is to modify
27572 *** your PATH or compiler configuration so that the native linker is
27573 *** used, and then restart.
27574
27575 EOF
27576       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27577         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27578         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27579       else
27580         ld_shlibs_GCJ=no
27581       fi
27582       ;;
27583
27584     sunos4*)
27585       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27586       wlarc=
27587       hardcode_direct_GCJ=yes
27588       hardcode_shlibpath_var_GCJ=no
27589       ;;
27590
27591     *)
27592       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27593         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27594         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27595       else
27596         ld_shlibs_GCJ=no
27597       fi
27598       ;;
27599     esac
27600
27601     if test "$ld_shlibs_GCJ" = no; then
27602       runpath_var=
27603       hardcode_libdir_flag_spec_GCJ=
27604       export_dynamic_flag_spec_GCJ=
27605       whole_archive_flag_spec_GCJ=
27606     fi
27607   else
27608     # PORTME fill in a description of your system's linker (not GNU ld)
27609     case $host_os in
27610     aix3*)
27611       allow_undefined_flag_GCJ=unsupported
27612       always_export_symbols_GCJ=yes
27613       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'
27614       # Note: this linker hardcodes the directories in LIBPATH if there
27615       # are no directories specified by -L.
27616       hardcode_minus_L_GCJ=yes
27617       if test "$GCC" = yes && test -z "$link_static_flag"; then
27618         # Neither direct hardcoding nor static linking is supported with a
27619         # broken collect2.
27620         hardcode_direct_GCJ=unsupported
27621       fi
27622       ;;
27623
27624     aix4* | aix5*)
27625       if test "$host_cpu" = ia64; then
27626         # On IA64, the linker does run time linking by default, so we don't
27627         # have to do anything special.
27628         aix_use_runtimelinking=no
27629         exp_sym_flag='-Bexport'
27630         no_entry_flag=""
27631       else
27632         # If we're using GNU nm, then we don't want the "-C" option.
27633         # -C means demangle to AIX nm, but means don't demangle with GNU nm
27634         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
27635           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'
27636         else
27637           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'
27638         fi
27639         aix_use_runtimelinking=no
27640
27641         # Test if we are trying to use run time linking or normal
27642         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27643         # need to do runtime linking.
27644         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
27645           for ld_flag in $LDFLAGS; do
27646           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
27647             aix_use_runtimelinking=yes
27648             break
27649           fi
27650           done
27651         esac
27652
27653         exp_sym_flag='-bexport'
27654         no_entry_flag='-bnoentry'
27655       fi
27656
27657       # When large executables or shared objects are built, AIX ld can
27658       # have problems creating the table of contents.  If linking a library
27659       # or program results in "error TOC overflow" add -mminimal-toc to
27660       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
27661       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27662
27663       archive_cmds_GCJ=''
27664       hardcode_direct_GCJ=yes
27665       hardcode_libdir_separator_GCJ=':'
27666       link_all_deplibs_GCJ=yes
27667
27668       if test "$GCC" = yes; then
27669         case $host_os in aix4.[012]|aix4.[012].*)
27670         # We only want to do this on AIX 4.2 and lower, the check
27671         # below for broken collect2 doesn't work under 4.3+
27672           collect2name=`${CC} -print-prog-name=collect2`
27673           if test -f "$collect2name" && \
27674            strings "$collect2name" | grep resolve_lib_name >/dev/null
27675           then
27676           # We have reworked collect2
27677           hardcode_direct_GCJ=yes
27678           else
27679           # We have old collect2
27680           hardcode_direct_GCJ=unsupported
27681           # It fails to find uninstalled libraries when the uninstalled
27682           # path is not listed in the libpath.  Setting hardcode_minus_L
27683           # to unsupported forces relinking
27684           hardcode_minus_L_GCJ=yes
27685           hardcode_libdir_flag_spec_GCJ='-L$libdir'
27686           hardcode_libdir_separator_GCJ=
27687           fi
27688         esac
27689         shared_flag='-shared'
27690         if test "$aix_use_runtimelinking" = yes; then
27691           shared_flag="$shared_flag "'${wl}-G'
27692         fi
27693       else
27694         # not using gcc
27695         if test "$host_cpu" = ia64; then
27696         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27697         # chokes on -Wl,-G. The following line is correct:
27698           shared_flag='-G'
27699         else
27700         if test "$aix_use_runtimelinking" = yes; then
27701             shared_flag='${wl}-G'
27702           else
27703             shared_flag='${wl}-bM:SRE'
27704         fi
27705         fi
27706       fi
27707
27708       # It seems that -bexpall does not export symbols beginning with
27709       # underscore (_), so it is better to generate a list of symbols to export.
27710       always_export_symbols_GCJ=yes
27711       if test "$aix_use_runtimelinking" = yes; then
27712         # Warning - without using the other runtime loading flags (-brtl),
27713         # -berok will link without error, but may produce a broken library.
27714         allow_undefined_flag_GCJ='-berok'
27715        # Determine the default libpath from the value encoded in an empty executable.
27716        cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h.  */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h.  */
27722
27723 int
27724 main ()
27725 {
27726
27727   ;
27728   return 0;
27729 }
27730 _ACEOF
27731 rm -f conftest.$ac_objext conftest$ac_exeext
27732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27733   (eval $ac_link) 2>conftest.er1
27734   ac_status=$?
27735   grep -v '^ *+' conftest.er1 >conftest.err
27736   rm -f conftest.er1
27737   cat conftest.err >&5
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); } &&
27740          { ac_try='test -z "$ac_c_werror_flag"
27741                          || test ! -s conftest.err'
27742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743   (eval $ac_try) 2>&5
27744   ac_status=$?
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); }; } &&
27747          { ac_try='test -s conftest$ac_exeext'
27748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749   (eval $ac_try) 2>&5
27750   ac_status=$?
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); }; }; then
27753
27754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
27755 }'`
27756 # Check for a 64-bit object if we didn't find anything.
27757 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; }
27758 }'`; fi
27759 else
27760   echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27762
27763 fi
27764 rm -f conftest.err conftest.$ac_objext \
27765       conftest$ac_exeext conftest.$ac_ext
27766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27767
27768        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27769         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"
27770        else
27771         if test "$host_cpu" = ia64; then
27772           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27773           allow_undefined_flag_GCJ="-z nodefs"
27774           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"
27775         else
27776          # Determine the default libpath from the value encoded in an empty executable.
27777          cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783
27784 int
27785 main ()
27786 {
27787
27788   ;
27789   return 0;
27790 }
27791 _ACEOF
27792 rm -f conftest.$ac_objext conftest$ac_exeext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27794   (eval $ac_link) 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } &&
27801          { ac_try='test -z "$ac_c_werror_flag"
27802                          || test ! -s conftest.err'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; } &&
27808          { ac_try='test -s conftest$ac_exeext'
27809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810   (eval $ac_try) 2>&5
27811   ac_status=$?
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); }; }; then
27814
27815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
27816 }'`
27817 # Check for a 64-bit object if we didn't find anything.
27818 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; }
27819 }'`; fi
27820 else
27821   echo "$as_me: failed program was:" >&5
27822 sed 's/^/| /' conftest.$ac_ext >&5
27823
27824 fi
27825 rm -f conftest.err conftest.$ac_objext \
27826       conftest$ac_exeext conftest.$ac_ext
27827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27828
27829          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27830           # Warning - without using the other run time loading flags,
27831           # -berok will link without error, but may produce a broken library.
27832           no_undefined_flag_GCJ=' ${wl}-bernotok'
27833           allow_undefined_flag_GCJ=' ${wl}-berok'
27834           # -bexpall does not export symbols beginning with underscore (_)
27835           always_export_symbols_GCJ=yes
27836           # Exported symbols can be pulled into shared objects from archives
27837           whole_archive_flag_spec_GCJ=' '
27838           archive_cmds_need_lc_GCJ=yes
27839           # This is similar to how AIX traditionally builds its shared libraries.
27840           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'
27841         fi
27842       fi
27843       ;;
27844
27845     amigaos*)
27846       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)'
27847       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27848       hardcode_minus_L_GCJ=yes
27849       # see comment about different semantics on the GNU ld section
27850       ld_shlibs_GCJ=no
27851       ;;
27852
27853     bsdi[45]*)
27854       export_dynamic_flag_spec_GCJ=-rdynamic
27855       ;;
27856
27857     cygwin* | mingw* | pw32*)
27858       # When not using gcc, we currently assume that we are using
27859       # Microsoft Visual C++.
27860       # hardcode_libdir_flag_spec is actually meaningless, as there is
27861       # no search path for DLLs.
27862       hardcode_libdir_flag_spec_GCJ=' '
27863       allow_undefined_flag_GCJ=unsupported
27864       # Tell ltmain to make .lib files, not .a files.
27865       libext=lib
27866       # Tell ltmain to make .dll files, not .so files.
27867       shrext_cmds=".dll"
27868       # FIXME: Setting linknames here is a bad hack.
27869       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27870       # The linker will automatically build a .lib file if we build a DLL.
27871       old_archive_From_new_cmds_GCJ='true'
27872       # FIXME: Should let the user specify the lib program.
27873       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27874       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27875       enable_shared_with_static_runtimes_GCJ=yes
27876       ;;
27877
27878     darwin* | rhapsody*)
27879       case $host_os in
27880         rhapsody* | darwin1.[012])
27881          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27882          ;;
27883        *) # Darwin 1.3 on
27884          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27885            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27886          else
27887            case ${MACOSX_DEPLOYMENT_TARGET} in
27888              10.[012])
27889                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27890                ;;
27891              10.*)
27892                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27893                ;;
27894            esac
27895          fi
27896          ;;
27897       esac
27898       archive_cmds_need_lc_GCJ=no
27899       hardcode_direct_GCJ=no
27900       hardcode_automatic_GCJ=yes
27901       hardcode_shlibpath_var_GCJ=unsupported
27902       whole_archive_flag_spec_GCJ=''
27903       link_all_deplibs_GCJ=yes
27904     if test "$GCC" = yes ; then
27905         output_verbose_link_cmd='echo'
27906         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27907       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27908       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27909       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27910       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}'
27911     else
27912       case $cc_basename in
27913         xlc*)
27914          output_verbose_link_cmd='echo'
27915          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27916          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27917           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27918          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27919           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}'
27920           ;;
27921        *)
27922          ld_shlibs_GCJ=no
27923           ;;
27924       esac
27925     fi
27926       ;;
27927
27928     dgux*)
27929       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27930       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27931       hardcode_shlibpath_var_GCJ=no
27932       ;;
27933
27934     freebsd1*)
27935       ld_shlibs_GCJ=no
27936       ;;
27937
27938     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27939     # support.  Future versions do this automatically, but an explicit c++rt0.o
27940     # does not break anything, and helps significantly (at the cost of a little
27941     # extra space).
27942     freebsd2.2*)
27943       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27945       hardcode_direct_GCJ=yes
27946       hardcode_shlibpath_var_GCJ=no
27947       ;;
27948
27949     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27950     freebsd2*)
27951       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27952       hardcode_direct_GCJ=yes
27953       hardcode_minus_L_GCJ=yes
27954       hardcode_shlibpath_var_GCJ=no
27955       ;;
27956
27957     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27958     freebsd* | kfreebsd*-gnu | dragonfly*)
27959       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27960       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27961       hardcode_direct_GCJ=yes
27962       hardcode_shlibpath_var_GCJ=no
27963       ;;
27964
27965     hpux9*)
27966       if test "$GCC" = yes; then
27967         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'
27968       else
27969         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'
27970       fi
27971       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27972       hardcode_libdir_separator_GCJ=:
27973       hardcode_direct_GCJ=yes
27974
27975       # hardcode_minus_L: Not really in the search PATH,
27976       # but as the default location of the library.
27977       hardcode_minus_L_GCJ=yes
27978       export_dynamic_flag_spec_GCJ='${wl}-E'
27979       ;;
27980
27981     hpux10* | hpux11*)
27982       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27983         case $host_cpu in
27984         hppa*64*|ia64*)
27985           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27986           ;;
27987         *)
27988           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27989           ;;
27990         esac
27991       else
27992         case $host_cpu in
27993         hppa*64*|ia64*)
27994           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
27995           ;;
27996         *)
27997           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27998           ;;
27999         esac
28000       fi
28001       if test "$with_gnu_ld" = no; then
28002         case $host_cpu in
28003         hppa*64*)
28004           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
28005           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
28006           hardcode_libdir_separator_GCJ=:
28007           hardcode_direct_GCJ=no
28008           hardcode_shlibpath_var_GCJ=no
28009           ;;
28010         ia64*)
28011           hardcode_libdir_flag_spec_GCJ='-L$libdir'
28012           hardcode_direct_GCJ=no
28013           hardcode_shlibpath_var_GCJ=no
28014
28015           # hardcode_minus_L: Not really in the search PATH,
28016           # but as the default location of the library.
28017           hardcode_minus_L_GCJ=yes
28018           ;;
28019         *)
28020           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
28021           hardcode_libdir_separator_GCJ=:
28022           hardcode_direct_GCJ=yes
28023           export_dynamic_flag_spec_GCJ='${wl}-E'
28024
28025           # hardcode_minus_L: Not really in the search PATH,
28026           # but as the default location of the library.
28027           hardcode_minus_L_GCJ=yes
28028           ;;
28029         esac
28030       fi
28031       ;;
28032
28033     irix5* | irix6* | nonstopux*)
28034       if test "$GCC" = yes; then
28035         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'
28036       else
28037         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'
28038         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
28039       fi
28040       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
28041       hardcode_libdir_separator_GCJ=:
28042       link_all_deplibs_GCJ=yes
28043       ;;
28044
28045     netbsd*)
28046       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28047         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
28048       else
28049         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
28050       fi
28051       hardcode_libdir_flag_spec_GCJ='-R$libdir'
28052       hardcode_direct_GCJ=yes
28053       hardcode_shlibpath_var_GCJ=no
28054       ;;
28055
28056     newsos6)
28057       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28058       hardcode_direct_GCJ=yes
28059       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
28060       hardcode_libdir_separator_GCJ=:
28061       hardcode_shlibpath_var_GCJ=no
28062       ;;
28063
28064     openbsd*)
28065       hardcode_direct_GCJ=yes
28066       hardcode_shlibpath_var_GCJ=no
28067       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28068         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28069         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
28070         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
28071         export_dynamic_flag_spec_GCJ='${wl}-E'
28072       else
28073        case $host_os in
28074          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
28075            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28076            hardcode_libdir_flag_spec_GCJ='-R$libdir'
28077            ;;
28078          *)
28079            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
28080            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
28081            ;;
28082        esac
28083       fi
28084       ;;
28085
28086     os2*)
28087       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28088       hardcode_minus_L_GCJ=yes
28089       allow_undefined_flag_GCJ=unsupported
28090       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'
28091       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
28092       ;;
28093
28094     osf3*)
28095       if test "$GCC" = yes; then
28096         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
28097         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'
28098       else
28099         allow_undefined_flag_GCJ=' -expect_unresolved \*'
28100         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'
28101       fi
28102       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
28103       hardcode_libdir_separator_GCJ=:
28104       ;;
28105
28106     osf4* | osf5*)      # as osf3* with the addition of -msym flag
28107       if test "$GCC" = yes; then
28108         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
28109         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'
28110         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
28111       else
28112         allow_undefined_flag_GCJ=' -expect_unresolved \*'
28113         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'
28114         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~
28115         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
28116
28117         # Both c and cxx compiler support -rpath directly
28118         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
28119       fi
28120       hardcode_libdir_separator_GCJ=:
28121       ;;
28122
28123     sco3.2v5*)
28124       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28125       hardcode_shlibpath_var_GCJ=no
28126       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
28127       runpath_var=LD_RUN_PATH
28128       hardcode_runpath_var=yes
28129       ;;
28130
28131     solaris*)
28132       no_undefined_flag_GCJ=' -z text'
28133       if test "$GCC" = yes; then
28134         wlarc='${wl}'
28135         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28136         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28137           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
28138       else
28139         wlarc=''
28140         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28141         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28142         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
28143       fi
28144       hardcode_libdir_flag_spec_GCJ='-R$libdir'
28145       hardcode_shlibpath_var_GCJ=no
28146       case $host_os in
28147       solaris2.[0-5] | solaris2.[0-5].*) ;;
28148       *)
28149         # The compiler driver will combine linker options so we
28150         # cannot just pass the convience library names through
28151         # without $wl, iff we do not link with $LD.
28152         # Luckily, gcc supports the same syntax we need for Sun Studio.
28153         # Supported since Solaris 2.6 (maybe 2.5.1?)
28154         case $wlarc in
28155         '')
28156           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
28157         *)
28158           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
28159         esac ;;
28160       esac
28161       link_all_deplibs_GCJ=yes
28162       ;;
28163
28164     sunos4*)
28165       if test "x$host_vendor" = xsequent; then
28166         # Use $CC to link under sequent, because it throws in some extra .o
28167         # files that make .init and .fini sections work.
28168         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
28169       else
28170         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
28171       fi
28172       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28173       hardcode_direct_GCJ=yes
28174       hardcode_minus_L_GCJ=yes
28175       hardcode_shlibpath_var_GCJ=no
28176       ;;
28177
28178     sysv4)
28179       case $host_vendor in
28180         sni)
28181           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28182           hardcode_direct_GCJ=yes # is this really true???
28183         ;;
28184         siemens)
28185           ## LD is ld it makes a PLAMLIB
28186           ## CC just makes a GrossModule.
28187           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28188           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
28189           hardcode_direct_GCJ=no
28190         ;;
28191         motorola)
28192           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28193           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
28194         ;;
28195       esac
28196       runpath_var='LD_RUN_PATH'
28197       hardcode_shlibpath_var_GCJ=no
28198       ;;
28199
28200     sysv4.3*)
28201       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28202       hardcode_shlibpath_var_GCJ=no
28203       export_dynamic_flag_spec_GCJ='-Bexport'
28204       ;;
28205
28206     sysv4*MP*)
28207       if test -d /usr/nec; then
28208         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28209         hardcode_shlibpath_var_GCJ=no
28210         runpath_var=LD_RUN_PATH
28211         hardcode_runpath_var=yes
28212         ld_shlibs_GCJ=yes
28213       fi
28214       ;;
28215
28216     sysv4.2uw2*)
28217       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28218       hardcode_direct_GCJ=yes
28219       hardcode_minus_L_GCJ=no
28220       hardcode_shlibpath_var_GCJ=no
28221       hardcode_runpath_var=yes
28222       runpath_var=LD_RUN_PATH
28223       ;;
28224
28225    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
28226       no_undefined_flag_GCJ='${wl}-z ${wl}text'
28227       if test "$GCC" = yes; then
28228         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28229       else
28230         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28231       fi
28232       runpath_var='LD_RUN_PATH'
28233       hardcode_shlibpath_var_GCJ=no
28234       ;;
28235
28236     sysv5*)
28237       no_undefined_flag_GCJ=' -z text'
28238       # $CC -shared without GNU ld will not create a library from C++
28239       # object files and a static libstdc++, better avoid it by now
28240       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28241       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28242                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
28243       hardcode_libdir_flag_spec_GCJ=
28244       hardcode_shlibpath_var_GCJ=no
28245       runpath_var='LD_RUN_PATH'
28246       ;;
28247
28248     uts4*)
28249       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28250       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28251       hardcode_shlibpath_var_GCJ=no
28252       ;;
28253
28254     *)
28255       ld_shlibs_GCJ=no
28256       ;;
28257     esac
28258   fi
28259
28260 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
28261 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
28262 test "$ld_shlibs_GCJ" = no && can_build_shared=no
28263
28264 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28265 if test "$GCC" = yes; then
28266   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28267 fi
28268
28269 #
28270 # Do we need to explicitly link libc?
28271 #
28272 case "x$archive_cmds_need_lc_GCJ" in
28273 x|xyes)
28274   # Assume -lc should be added
28275   archive_cmds_need_lc_GCJ=yes
28276
28277   if test "$enable_shared" = yes && test "$GCC" = yes; then
28278     case $archive_cmds_GCJ in
28279     *'~'*)
28280       # FIXME: we may have to deal with multi-command sequences.
28281       ;;
28282     '$CC '*)
28283       # Test whether the compiler implicitly links with -lc since on some
28284       # systems, -lgcc has to come before -lc. If gcc already passes -lc
28285       # to ld, don't add -lc before -lgcc.
28286       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
28287 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
28288       $rm conftest*
28289       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28290
28291       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28292   (eval $ac_compile) 2>&5
28293   ac_status=$?
28294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); } 2>conftest.err; then
28296         soname=conftest
28297         lib=conftest
28298         libobjs=conftest.$ac_objext
28299         deplibs=
28300         wl=$lt_prog_compiler_wl_GCJ
28301         compiler_flags=-v
28302         linker_flags=-v
28303         verstring=
28304         output_objdir=.
28305         libname=conftest
28306         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
28307         allow_undefined_flag_GCJ=
28308         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
28309   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
28310   ac_status=$?
28311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312   (exit $ac_status); }
28313         then
28314           archive_cmds_need_lc_GCJ=no
28315         else
28316           archive_cmds_need_lc_GCJ=yes
28317         fi
28318         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
28319       else
28320         cat conftest.err 1>&5
28321       fi
28322       $rm conftest*
28323       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
28324 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
28325       ;;
28326     esac
28327   fi
28328   ;;
28329 esac
28330
28331 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
28332 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
28333 library_names_spec=
28334 libname_spec='lib$name'
28335 soname_spec=
28336 shrext_cmds=".so"
28337 postinstall_cmds=
28338 postuninstall_cmds=
28339 finish_cmds=
28340 finish_eval=
28341 shlibpath_var=
28342 shlibpath_overrides_runpath=unknown
28343 version_type=none
28344 dynamic_linker="$host_os ld.so"
28345 sys_lib_dlsearch_path_spec="/lib /usr/lib"
28346 if test "$GCC" = yes; then
28347   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28348   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
28349     # if the path contains ";" then we assume it to be the separator
28350     # otherwise default to the standard path separator (i.e. ":") - it is
28351     # assumed that no part of a normal pathname contains ";" but that should
28352     # okay in the real world where ";" in dirpaths is itself problematic.
28353     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28354   else
28355     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
28356   fi
28357 else
28358   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
28359 fi
28360 need_lib_prefix=unknown
28361 hardcode_into_libs=no
28362
28363 # when you set need_version to no, make sure it does not cause -set_version
28364 # flags to be left without arguments
28365 need_version=unknown
28366
28367 case $host_os in
28368 aix3*)
28369   version_type=linux
28370   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
28371   shlibpath_var=LIBPATH
28372
28373   # AIX 3 has no versioning support, so we append a major version to the name.
28374   soname_spec='${libname}${release}${shared_ext}$major'
28375   ;;
28376
28377 aix4* | aix5*)
28378   version_type=linux
28379   need_lib_prefix=no
28380   need_version=no
28381   hardcode_into_libs=yes
28382   if test "$host_cpu" = ia64; then
28383     # AIX 5 supports IA64
28384     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
28385     shlibpath_var=LD_LIBRARY_PATH
28386   else
28387     # With GCC up to 2.95.x, collect2 would create an import file
28388     # for dependence libraries.  The import file would start with
28389     # the line `#! .'.  This would cause the generated library to
28390     # depend on `.', always an invalid library.  This was fixed in
28391     # development snapshots of GCC prior to 3.0.
28392     case $host_os in
28393       aix4 | aix4.[01] | aix4.[01].*)
28394       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
28395            echo ' yes '
28396            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
28397         :
28398       else
28399         can_build_shared=no
28400       fi
28401       ;;
28402     esac
28403     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
28404     # soname into executable. Probably we can add versioning support to
28405     # collect2, so additional links can be useful in future.
28406     if test "$aix_use_runtimelinking" = yes; then
28407       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
28408       # instead of lib<name>.a to let people know that these are not
28409       # typical AIX shared libraries.
28410       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28411     else
28412       # We preserve .a as extension for shared libraries through AIX4.2
28413       # and later when we are not doing run time linking.
28414       library_names_spec='${libname}${release}.a $libname.a'
28415       soname_spec='${libname}${release}${shared_ext}$major'
28416     fi
28417     shlibpath_var=LIBPATH
28418   fi
28419   ;;
28420
28421 amigaos*)
28422   library_names_spec='$libname.ixlibrary $libname.a'
28423   # Create ${libname}_ixlibrary.a entries in /sys/libs.
28424   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'
28425   ;;
28426
28427 beos*)
28428   library_names_spec='${libname}${shared_ext}'
28429   dynamic_linker="$host_os ld.so"
28430   shlibpath_var=LIBRARY_PATH
28431   ;;
28432
28433 bsdi[45]*)
28434   version_type=linux
28435   need_version=no
28436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28437   soname_spec='${libname}${release}${shared_ext}$major'
28438   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
28439   shlibpath_var=LD_LIBRARY_PATH
28440   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
28441   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
28442   # the default ld.so.conf also contains /usr/contrib/lib and
28443   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
28444   # libtool to hard-code these into programs
28445   ;;
28446
28447 cygwin* | mingw* | pw32*)
28448   version_type=windows
28449   shrext_cmds=".dll"
28450   need_version=no
28451   need_lib_prefix=no
28452
28453   case $GCC,$host_os in
28454   yes,cygwin* | yes,mingw* | yes,pw32*)
28455     library_names_spec='$libname.dll.a'
28456     # DLL is installed to $(libdir)/../bin by postinstall_cmds
28457     postinstall_cmds='base_file=`basename \${file}`~
28458       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
28459       dldir=$destdir/`dirname \$dlpath`~
28460       test -d \$dldir || mkdir -p \$dldir~
28461       $install_prog $dir/$dlname \$dldir/$dlname~
28462       chmod a+x \$dldir/$dlname'
28463     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28464       dlpath=$dir/\$dldll~
28465        $rm \$dlpath'
28466     shlibpath_overrides_runpath=yes
28467
28468     case $host_os in
28469     cygwin*)
28470       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28471       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28472       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
28473       ;;
28474     mingw*)
28475       # MinGW DLLs use traditional 'lib' prefix
28476       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28477       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28478       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
28479         # It is most probably a Windows format PATH printed by
28480         # mingw gcc, but we are running on Cygwin. Gcc prints its search
28481         # path with ; separators, and with drive letters. We can handle the
28482         # drive letters (cygwin fileutils understands them), so leave them,
28483         # especially as we might pass files found there to a mingw objdump,
28484         # which wouldn't understand a cygwinified path. Ahh.
28485         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28486       else
28487         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
28488       fi
28489       ;;
28490     pw32*)
28491       # pw32 DLLs use 'pw' prefix rather than 'lib'
28492       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28493       ;;
28494     esac
28495     ;;
28496
28497   *)
28498     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
28499     ;;
28500   esac
28501   dynamic_linker='Win32 ld.exe'
28502   # FIXME: first we should search . and the directory the executable is in
28503   shlibpath_var=PATH
28504   ;;
28505
28506 darwin* | rhapsody*)
28507   dynamic_linker="$host_os dyld"
28508   version_type=darwin
28509   need_lib_prefix=no
28510   need_version=no
28511   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28512   soname_spec='${libname}${release}${major}$shared_ext'
28513   shlibpath_overrides_runpath=yes
28514   shlibpath_var=DYLD_LIBRARY_PATH
28515   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28516   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
28517   if test "$GCC" = yes; then
28518     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"`
28519   else
28520     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
28521   fi
28522   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28523   ;;
28524
28525 dgux*)
28526   version_type=linux
28527   need_lib_prefix=no
28528   need_version=no
28529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28530   soname_spec='${libname}${release}${shared_ext}$major'
28531   shlibpath_var=LD_LIBRARY_PATH
28532   ;;
28533
28534 freebsd1*)
28535   dynamic_linker=no
28536   ;;
28537
28538 kfreebsd*-gnu)
28539   version_type=linux
28540   need_lib_prefix=no
28541   need_version=no
28542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28543   soname_spec='${libname}${release}${shared_ext}$major'
28544   shlibpath_var=LD_LIBRARY_PATH
28545   shlibpath_overrides_runpath=no
28546   hardcode_into_libs=yes
28547   dynamic_linker='GNU ld.so'
28548   ;;
28549
28550 freebsd* | dragonfly*)
28551   # DragonFly does not have aout.  When/if they implement a new
28552   # versioning mechanism, adjust this.
28553   if test -x /usr/bin/objformat; then
28554     objformat=`/usr/bin/objformat`
28555   else
28556     case $host_os in
28557     freebsd[123]*) objformat=aout ;;
28558     *) objformat=elf ;;
28559     esac
28560   fi
28561   version_type=freebsd-$objformat
28562   case $version_type in
28563     freebsd-elf*)
28564       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28565       need_version=no
28566       need_lib_prefix=no
28567       ;;
28568     freebsd-*)
28569       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
28570       need_version=yes
28571       ;;
28572   esac
28573   shlibpath_var=LD_LIBRARY_PATH
28574   case $host_os in
28575   freebsd2*)
28576     shlibpath_overrides_runpath=yes
28577     ;;
28578   freebsd3.[01]* | freebsdelf3.[01]*)
28579     shlibpath_overrides_runpath=yes
28580     hardcode_into_libs=yes
28581     ;;
28582   *) # from 3.2 on
28583     shlibpath_overrides_runpath=no
28584     hardcode_into_libs=yes
28585     ;;
28586   esac
28587   ;;
28588
28589 gnu*)
28590   version_type=linux
28591   need_lib_prefix=no
28592   need_version=no
28593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28594   soname_spec='${libname}${release}${shared_ext}$major'
28595   shlibpath_var=LD_LIBRARY_PATH
28596   hardcode_into_libs=yes
28597   ;;
28598
28599 hpux9* | hpux10* | hpux11*)
28600   # Give a soname corresponding to the major version so that dld.sl refuses to
28601   # link against other versions.
28602   version_type=sunos
28603   need_lib_prefix=no
28604   need_version=no
28605   case $host_cpu in
28606   ia64*)
28607     shrext_cmds='.so'
28608     hardcode_into_libs=yes
28609     dynamic_linker="$host_os dld.so"
28610     shlibpath_var=LD_LIBRARY_PATH
28611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28613     soname_spec='${libname}${release}${shared_ext}$major'
28614     if test "X$HPUX_IA64_MODE" = X32; then
28615       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
28616     else
28617       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
28618     fi
28619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28620     ;;
28621    hppa*64*)
28622      shrext_cmds='.sl'
28623      hardcode_into_libs=yes
28624      dynamic_linker="$host_os dld.sl"
28625      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
28626      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28627      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28628      soname_spec='${libname}${release}${shared_ext}$major'
28629      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
28630      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28631      ;;
28632    *)
28633     shrext_cmds='.sl'
28634     dynamic_linker="$host_os dld.sl"
28635     shlibpath_var=SHLIB_PATH
28636     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
28637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28638     soname_spec='${libname}${release}${shared_ext}$major'
28639     ;;
28640   esac
28641   # HP-UX runs *really* slowly unless shared libraries are mode 555.
28642   postinstall_cmds='chmod 555 $lib'
28643   ;;
28644
28645 irix5* | irix6* | nonstopux*)
28646   case $host_os in
28647     nonstopux*) version_type=nonstopux ;;
28648     *)
28649         if test "$lt_cv_prog_gnu_ld" = yes; then
28650                 version_type=linux
28651         else
28652                 version_type=irix
28653         fi ;;
28654   esac
28655   need_lib_prefix=no
28656   need_version=no
28657   soname_spec='${libname}${release}${shared_ext}$major'
28658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28659   case $host_os in
28660   irix5* | nonstopux*)
28661     libsuff= shlibsuff=
28662     ;;
28663   *)
28664     case $LD in # libtool.m4 will add one of these switches to LD
28665     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28666       libsuff= shlibsuff= libmagic=32-bit;;
28667     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28668       libsuff=32 shlibsuff=N32 libmagic=N32;;
28669     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28670       libsuff=64 shlibsuff=64 libmagic=64-bit;;
28671     *) libsuff= shlibsuff= libmagic=never-match;;
28672     esac
28673     ;;
28674   esac
28675   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28676   shlibpath_overrides_runpath=no
28677   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28678   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28679   hardcode_into_libs=yes
28680   ;;
28681
28682 # No shared lib support for Linux oldld, aout, or coff.
28683 linux*oldld* | linux*aout* | linux*coff*)
28684   dynamic_linker=no
28685   ;;
28686
28687 # This must be Linux ELF.
28688 linux*)
28689   version_type=linux
28690   need_lib_prefix=no
28691   need_version=no
28692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28693   soname_spec='${libname}${release}${shared_ext}$major'
28694   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28695   shlibpath_var=LD_LIBRARY_PATH
28696   shlibpath_overrides_runpath=no
28697   # This implies no fast_install, which is unacceptable.
28698   # Some rework will be needed to allow for fast_install
28699   # before this can be enabled.
28700   hardcode_into_libs=yes
28701
28702   # Append ld.so.conf contents to the search path
28703   if test -f /etc/ld.so.conf; then
28704     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
28705     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28706   fi
28707
28708   # We used to test for /lib/ld.so.1 and disable shared libraries on
28709   # powerpc, because MkLinux only supported shared libraries with the
28710   # GNU dynamic linker.  Since this was broken with cross compilers,
28711   # most powerpc-linux boxes support dynamic linking these days and
28712   # people can always --disable-shared, the test was removed, and we
28713   # assume the GNU/Linux dynamic linker is in use.
28714   dynamic_linker='GNU/Linux ld.so'
28715   ;;
28716
28717 knetbsd*-gnu)
28718   version_type=linux
28719   need_lib_prefix=no
28720   need_version=no
28721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28722   soname_spec='${libname}${release}${shared_ext}$major'
28723   shlibpath_var=LD_LIBRARY_PATH
28724   shlibpath_overrides_runpath=no
28725   hardcode_into_libs=yes
28726   dynamic_linker='GNU ld.so'
28727   ;;
28728
28729 netbsd*)
28730   version_type=sunos
28731   need_lib_prefix=no
28732   need_version=no
28733   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28735     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28736     dynamic_linker='NetBSD (a.out) ld.so'
28737   else
28738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28739     soname_spec='${libname}${release}${shared_ext}$major'
28740     dynamic_linker='NetBSD ld.elf_so'
28741   fi
28742   shlibpath_var=LD_LIBRARY_PATH
28743   shlibpath_overrides_runpath=yes
28744   hardcode_into_libs=yes
28745   ;;
28746
28747 newsos6)
28748   version_type=linux
28749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28750   shlibpath_var=LD_LIBRARY_PATH
28751   shlibpath_overrides_runpath=yes
28752   ;;
28753
28754 nto-qnx*)
28755   version_type=linux
28756   need_lib_prefix=no
28757   need_version=no
28758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28759   soname_spec='${libname}${release}${shared_ext}$major'
28760   shlibpath_var=LD_LIBRARY_PATH
28761   shlibpath_overrides_runpath=yes
28762   ;;
28763
28764 openbsd*)
28765   version_type=sunos
28766   need_lib_prefix=no
28767   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28768   case $host_os in
28769     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28770     *)                         need_version=no  ;;
28771   esac
28772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28774   shlibpath_var=LD_LIBRARY_PATH
28775   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28776     case $host_os in
28777       openbsd2.[89] | openbsd2.[89].*)
28778         shlibpath_overrides_runpath=no
28779         ;;
28780       *)
28781         shlibpath_overrides_runpath=yes
28782         ;;
28783       esac
28784   else
28785     shlibpath_overrides_runpath=yes
28786   fi
28787   ;;
28788
28789 os2*)
28790   libname_spec='$name'
28791   shrext_cmds=".dll"
28792   need_lib_prefix=no
28793   library_names_spec='$libname${shared_ext} $libname.a'
28794   dynamic_linker='OS/2 ld.exe'
28795   shlibpath_var=LIBPATH
28796   ;;
28797
28798 osf3* | osf4* | osf5*)
28799   version_type=osf
28800   need_lib_prefix=no
28801   need_version=no
28802   soname_spec='${libname}${release}${shared_ext}$major'
28803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28804   shlibpath_var=LD_LIBRARY_PATH
28805   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28806   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28807   ;;
28808
28809 sco3.2v5*)
28810   version_type=osf
28811   soname_spec='${libname}${release}${shared_ext}$major'
28812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28813   shlibpath_var=LD_LIBRARY_PATH
28814   ;;
28815
28816 solaris*)
28817   version_type=linux
28818   need_lib_prefix=no
28819   need_version=no
28820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28821   soname_spec='${libname}${release}${shared_ext}$major'
28822   shlibpath_var=LD_LIBRARY_PATH
28823   shlibpath_overrides_runpath=yes
28824   hardcode_into_libs=yes
28825   # ldd complains unless libraries are executable
28826   postinstall_cmds='chmod +x $lib'
28827   ;;
28828
28829 sunos4*)
28830   version_type=sunos
28831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28832   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28833   shlibpath_var=LD_LIBRARY_PATH
28834   shlibpath_overrides_runpath=yes
28835   if test "$with_gnu_ld" = yes; then
28836     need_lib_prefix=no
28837   fi
28838   need_version=yes
28839   ;;
28840
28841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28842   version_type=linux
28843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28844   soname_spec='${libname}${release}${shared_ext}$major'
28845   shlibpath_var=LD_LIBRARY_PATH
28846   case $host_vendor in
28847     sni)
28848       shlibpath_overrides_runpath=no
28849       need_lib_prefix=no
28850       export_dynamic_flag_spec='${wl}-Blargedynsym'
28851       runpath_var=LD_RUN_PATH
28852       ;;
28853     siemens)
28854       need_lib_prefix=no
28855       ;;
28856     motorola)
28857       need_lib_prefix=no
28858       need_version=no
28859       shlibpath_overrides_runpath=no
28860       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28861       ;;
28862   esac
28863   ;;
28864
28865 sysv4*MP*)
28866   if test -d /usr/nec ;then
28867     version_type=linux
28868     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28869     soname_spec='$libname${shared_ext}.$major'
28870     shlibpath_var=LD_LIBRARY_PATH
28871   fi
28872   ;;
28873
28874 uts4*)
28875   version_type=linux
28876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28877   soname_spec='${libname}${release}${shared_ext}$major'
28878   shlibpath_var=LD_LIBRARY_PATH
28879   ;;
28880
28881 *)
28882   dynamic_linker=no
28883   ;;
28884 esac
28885 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28886 echo "${ECHO_T}$dynamic_linker" >&6
28887 test "$dynamic_linker" = no && can_build_shared=no
28888
28889 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28890 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28891 hardcode_action_GCJ=
28892 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28893    test -n "$runpath_var_GCJ" || \
28894    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28895
28896   # We can hardcode non-existant directories.
28897   if test "$hardcode_direct_GCJ" != no &&
28898      # If the only mechanism to avoid hardcoding is shlibpath_var, we
28899      # have to relink, otherwise we might link with an installed library
28900      # when we should be linking with a yet-to-be-installed one
28901      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28902      test "$hardcode_minus_L_GCJ" != no; then
28903     # Linking always hardcodes the temporary library directory.
28904     hardcode_action_GCJ=relink
28905   else
28906     # We can link without hardcoding, and we can hardcode nonexisting dirs.
28907     hardcode_action_GCJ=immediate
28908   fi
28909 else
28910   # We cannot hardcode anything, or else we can only hardcode existing
28911   # directories.
28912   hardcode_action_GCJ=unsupported
28913 fi
28914 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28915 echo "${ECHO_T}$hardcode_action_GCJ" >&6
28916
28917 if test "$hardcode_action_GCJ" = relink; then
28918   # Fast installation is not supported
28919   enable_fast_install=no
28920 elif test "$shlibpath_overrides_runpath" = yes ||
28921      test "$enable_shared" = no; then
28922   # Fast installation is not necessary
28923   enable_fast_install=needless
28924 fi
28925
28926 striplib=
28927 old_striplib=
28928 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
28929 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
28930 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
28931   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28932   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28933   echo "$as_me:$LINENO: result: yes" >&5
28934 echo "${ECHO_T}yes" >&6
28935 else
28936 # FIXME - insert some real tests, host_os isn't really good enough
28937   case $host_os in
28938    darwin*)
28939        if test -n "$STRIP" ; then
28940          striplib="$STRIP -x"
28941          echo "$as_me:$LINENO: result: yes" >&5
28942 echo "${ECHO_T}yes" >&6
28943        else
28944   echo "$as_me:$LINENO: result: no" >&5
28945 echo "${ECHO_T}no" >&6
28946 fi
28947        ;;
28948    *)
28949   echo "$as_me:$LINENO: result: no" >&5
28950 echo "${ECHO_T}no" >&6
28951     ;;
28952   esac
28953 fi
28954
28955 if test "x$enable_dlopen" != xyes; then
28956   enable_dlopen=unknown
28957   enable_dlopen_self=unknown
28958   enable_dlopen_self_static=unknown
28959 else
28960   lt_cv_dlopen=no
28961   lt_cv_dlopen_libs=
28962
28963   case $host_os in
28964   beos*)
28965     lt_cv_dlopen="load_add_on"
28966     lt_cv_dlopen_libs=
28967     lt_cv_dlopen_self=yes
28968     ;;
28969
28970   mingw* | pw32*)
28971     lt_cv_dlopen="LoadLibrary"
28972     lt_cv_dlopen_libs=
28973    ;;
28974
28975   cygwin*)
28976     lt_cv_dlopen="dlopen"
28977     lt_cv_dlopen_libs=
28978    ;;
28979
28980   darwin*)
28981   # if libdl is installed we need to link against it
28982     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
28984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28985   echo $ECHO_N "(cached) $ECHO_C" >&6
28986 else
28987   ac_check_lib_save_LIBS=$LIBS
28988 LIBS="-ldl  $LIBS"
28989 cat >conftest.$ac_ext <<_ACEOF
28990 /* confdefs.h.  */
28991 _ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h.  */
28995
28996 /* Override any gcc2 internal prototype to avoid an error.  */
28997 #ifdef __cplusplus
28998 extern "C"
28999 #endif
29000 /* We use char because int might match the return type of a gcc2
29001    builtin and then its argument prototype would still apply.  */
29002 char dlopen ();
29003 int
29004 main ()
29005 {
29006 dlopen ();
29007   ;
29008   return 0;
29009 }
29010 _ACEOF
29011 rm -f conftest.$ac_objext conftest$ac_exeext
29012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29013   (eval $ac_link) 2>conftest.er1
29014   ac_status=$?
29015   grep -v '^ *+' conftest.er1 >conftest.err
29016   rm -f conftest.er1
29017   cat conftest.err >&5
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); } &&
29020          { ac_try='test -z "$ac_c_werror_flag"
29021                          || test ! -s conftest.err'
29022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023   (eval $ac_try) 2>&5
29024   ac_status=$?
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); }; } &&
29027          { ac_try='test -s conftest$ac_exeext'
29028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029   (eval $ac_try) 2>&5
29030   ac_status=$?
29031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); }; }; then
29033   ac_cv_lib_dl_dlopen=yes
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29037
29038 ac_cv_lib_dl_dlopen=no
29039 fi
29040 rm -f conftest.err conftest.$ac_objext \
29041       conftest$ac_exeext conftest.$ac_ext
29042 LIBS=$ac_check_lib_save_LIBS
29043 fi
29044 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29045 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
29046 if test $ac_cv_lib_dl_dlopen = yes; then
29047   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29048 else
29049
29050     lt_cv_dlopen="dyld"
29051     lt_cv_dlopen_libs=
29052     lt_cv_dlopen_self=yes
29053
29054 fi
29055
29056    ;;
29057
29058   *)
29059     echo "$as_me:$LINENO: checking for shl_load" >&5
29060 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
29061 if test "${ac_cv_func_shl_load+set}" = set; then
29062   echo $ECHO_N "(cached) $ECHO_C" >&6
29063 else
29064   cat >conftest.$ac_ext <<_ACEOF
29065 /* confdefs.h.  */
29066 _ACEOF
29067 cat confdefs.h >>conftest.$ac_ext
29068 cat >>conftest.$ac_ext <<_ACEOF
29069 /* end confdefs.h.  */
29070 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
29071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29072 #define shl_load innocuous_shl_load
29073
29074 /* System header to define __stub macros and hopefully few prototypes,
29075     which can conflict with char shl_load (); below.
29076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29077     <limits.h> exists even on freestanding compilers.  */
29078
29079 #ifdef __STDC__
29080 # include <limits.h>
29081 #else
29082 # include <assert.h>
29083 #endif
29084
29085 #undef shl_load
29086
29087 /* Override any gcc2 internal prototype to avoid an error.  */
29088 #ifdef __cplusplus
29089 extern "C"
29090 {
29091 #endif
29092 /* We use char because int might match the return type of a gcc2
29093    builtin and then its argument prototype would still apply.  */
29094 char shl_load ();
29095 /* The GNU C library defines this for functions which it implements
29096     to always fail with ENOSYS.  Some functions are actually named
29097     something starting with __ and the normal name is an alias.  */
29098 #if defined (__stub_shl_load) || defined (__stub___shl_load)
29099 choke me
29100 #else
29101 char (*f) () = shl_load;
29102 #endif
29103 #ifdef __cplusplus
29104 }
29105 #endif
29106
29107 int
29108 main ()
29109 {
29110 return f != shl_load;
29111   ;
29112   return 0;
29113 }
29114 _ACEOF
29115 rm -f conftest.$ac_objext conftest$ac_exeext
29116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29117   (eval $ac_link) 2>conftest.er1
29118   ac_status=$?
29119   grep -v '^ *+' conftest.er1 >conftest.err
29120   rm -f conftest.er1
29121   cat conftest.err >&5
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); } &&
29124          { ac_try='test -z "$ac_c_werror_flag"
29125                          || test ! -s conftest.err'
29126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127   (eval $ac_try) 2>&5
29128   ac_status=$?
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); }; } &&
29131          { ac_try='test -s conftest$ac_exeext'
29132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133   (eval $ac_try) 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; }; then
29137   ac_cv_func_shl_load=yes
29138 else
29139   echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142 ac_cv_func_shl_load=no
29143 fi
29144 rm -f conftest.err conftest.$ac_objext \
29145       conftest$ac_exeext conftest.$ac_ext
29146 fi
29147 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
29148 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
29149 if test $ac_cv_func_shl_load = yes; then
29150   lt_cv_dlopen="shl_load"
29151 else
29152   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
29153 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
29154 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
29155   echo $ECHO_N "(cached) $ECHO_C" >&6
29156 else
29157   ac_check_lib_save_LIBS=$LIBS
29158 LIBS="-ldld  $LIBS"
29159 cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165
29166 /* Override any gcc2 internal prototype to avoid an error.  */
29167 #ifdef __cplusplus
29168 extern "C"
29169 #endif
29170 /* We use char because int might match the return type of a gcc2
29171    builtin and then its argument prototype would still apply.  */
29172 char shl_load ();
29173 int
29174 main ()
29175 {
29176 shl_load ();
29177   ;
29178   return 0;
29179 }
29180 _ACEOF
29181 rm -f conftest.$ac_objext conftest$ac_exeext
29182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29183   (eval $ac_link) 2>conftest.er1
29184   ac_status=$?
29185   grep -v '^ *+' conftest.er1 >conftest.err
29186   rm -f conftest.er1
29187   cat conftest.err >&5
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); } &&
29190          { ac_try='test -z "$ac_c_werror_flag"
29191                          || test ! -s conftest.err'
29192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193   (eval $ac_try) 2>&5
29194   ac_status=$?
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); }; } &&
29197          { ac_try='test -s conftest$ac_exeext'
29198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199   (eval $ac_try) 2>&5
29200   ac_status=$?
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); }; }; then
29203   ac_cv_lib_dld_shl_load=yes
29204 else
29205   echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29207
29208 ac_cv_lib_dld_shl_load=no
29209 fi
29210 rm -f conftest.err conftest.$ac_objext \
29211       conftest$ac_exeext conftest.$ac_ext
29212 LIBS=$ac_check_lib_save_LIBS
29213 fi
29214 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
29215 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
29216 if test $ac_cv_lib_dld_shl_load = yes; then
29217   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
29218 else
29219   echo "$as_me:$LINENO: checking for dlopen" >&5
29220 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
29221 if test "${ac_cv_func_dlopen+set}" = set; then
29222   echo $ECHO_N "(cached) $ECHO_C" >&6
29223 else
29224   cat >conftest.$ac_ext <<_ACEOF
29225 /* confdefs.h.  */
29226 _ACEOF
29227 cat confdefs.h >>conftest.$ac_ext
29228 cat >>conftest.$ac_ext <<_ACEOF
29229 /* end confdefs.h.  */
29230 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
29231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29232 #define dlopen innocuous_dlopen
29233
29234 /* System header to define __stub macros and hopefully few prototypes,
29235     which can conflict with char dlopen (); below.
29236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29237     <limits.h> exists even on freestanding compilers.  */
29238
29239 #ifdef __STDC__
29240 # include <limits.h>
29241 #else
29242 # include <assert.h>
29243 #endif
29244
29245 #undef dlopen
29246
29247 /* Override any gcc2 internal prototype to avoid an error.  */
29248 #ifdef __cplusplus
29249 extern "C"
29250 {
29251 #endif
29252 /* We use char because int might match the return type of a gcc2
29253    builtin and then its argument prototype would still apply.  */
29254 char dlopen ();
29255 /* The GNU C library defines this for functions which it implements
29256     to always fail with ENOSYS.  Some functions are actually named
29257     something starting with __ and the normal name is an alias.  */
29258 #if defined (__stub_dlopen) || defined (__stub___dlopen)
29259 choke me
29260 #else
29261 char (*f) () = dlopen;
29262 #endif
29263 #ifdef __cplusplus
29264 }
29265 #endif
29266
29267 int
29268 main ()
29269 {
29270 return f != dlopen;
29271   ;
29272   return 0;
29273 }
29274 _ACEOF
29275 rm -f conftest.$ac_objext conftest$ac_exeext
29276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29277   (eval $ac_link) 2>conftest.er1
29278   ac_status=$?
29279   grep -v '^ *+' conftest.er1 >conftest.err
29280   rm -f conftest.er1
29281   cat conftest.err >&5
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); } &&
29284          { ac_try='test -z "$ac_c_werror_flag"
29285                          || test ! -s conftest.err'
29286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287   (eval $ac_try) 2>&5
29288   ac_status=$?
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); }; } &&
29291          { ac_try='test -s conftest$ac_exeext'
29292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29293   (eval $ac_try) 2>&5
29294   ac_status=$?
29295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296   (exit $ac_status); }; }; then
29297   ac_cv_func_dlopen=yes
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302 ac_cv_func_dlopen=no
29303 fi
29304 rm -f conftest.err conftest.$ac_objext \
29305       conftest$ac_exeext conftest.$ac_ext
29306 fi
29307 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
29308 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
29309 if test $ac_cv_func_dlopen = yes; then
29310   lt_cv_dlopen="dlopen"
29311 else
29312   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29313 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
29314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317   ac_check_lib_save_LIBS=$LIBS
29318 LIBS="-ldl  $LIBS"
29319 cat >conftest.$ac_ext <<_ACEOF
29320 /* confdefs.h.  */
29321 _ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h.  */
29325
29326 /* Override any gcc2 internal prototype to avoid an error.  */
29327 #ifdef __cplusplus
29328 extern "C"
29329 #endif
29330 /* We use char because int might match the return type of a gcc2
29331    builtin and then its argument prototype would still apply.  */
29332 char dlopen ();
29333 int
29334 main ()
29335 {
29336 dlopen ();
29337   ;
29338   return 0;
29339 }
29340 _ACEOF
29341 rm -f conftest.$ac_objext conftest$ac_exeext
29342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29343   (eval $ac_link) 2>conftest.er1
29344   ac_status=$?
29345   grep -v '^ *+' conftest.er1 >conftest.err
29346   rm -f conftest.er1
29347   cat conftest.err >&5
29348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349   (exit $ac_status); } &&
29350          { ac_try='test -z "$ac_c_werror_flag"
29351                          || test ! -s conftest.err'
29352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353   (eval $ac_try) 2>&5
29354   ac_status=$?
29355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356   (exit $ac_status); }; } &&
29357          { ac_try='test -s conftest$ac_exeext'
29358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359   (eval $ac_try) 2>&5
29360   ac_status=$?
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); }; }; then
29363   ac_cv_lib_dl_dlopen=yes
29364 else
29365   echo "$as_me: failed program was:" >&5
29366 sed 's/^/| /' conftest.$ac_ext >&5
29367
29368 ac_cv_lib_dl_dlopen=no
29369 fi
29370 rm -f conftest.err conftest.$ac_objext \
29371       conftest$ac_exeext conftest.$ac_ext
29372 LIBS=$ac_check_lib_save_LIBS
29373 fi
29374 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29375 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
29376 if test $ac_cv_lib_dl_dlopen = yes; then
29377   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29378 else
29379   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
29380 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
29381 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
29382   echo $ECHO_N "(cached) $ECHO_C" >&6
29383 else
29384   ac_check_lib_save_LIBS=$LIBS
29385 LIBS="-lsvld  $LIBS"
29386 cat >conftest.$ac_ext <<_ACEOF
29387 /* confdefs.h.  */
29388 _ACEOF
29389 cat confdefs.h >>conftest.$ac_ext
29390 cat >>conftest.$ac_ext <<_ACEOF
29391 /* end confdefs.h.  */
29392
29393 /* Override any gcc2 internal prototype to avoid an error.  */
29394 #ifdef __cplusplus
29395 extern "C"
29396 #endif
29397 /* We use char because int might match the return type of a gcc2
29398    builtin and then its argument prototype would still apply.  */
29399 char dlopen ();
29400 int
29401 main ()
29402 {
29403 dlopen ();
29404   ;
29405   return 0;
29406 }
29407 _ACEOF
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29410   (eval $ac_link) 2>conftest.er1
29411   ac_status=$?
29412   grep -v '^ *+' conftest.er1 >conftest.err
29413   rm -f conftest.er1
29414   cat conftest.err >&5
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); } &&
29417          { ac_try='test -z "$ac_c_werror_flag"
29418                          || test ! -s conftest.err'
29419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420   (eval $ac_try) 2>&5
29421   ac_status=$?
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); }; } &&
29424          { ac_try='test -s conftest$ac_exeext'
29425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29426   (eval $ac_try) 2>&5
29427   ac_status=$?
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); }; }; then
29430   ac_cv_lib_svld_dlopen=yes
29431 else
29432   echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29434
29435 ac_cv_lib_svld_dlopen=no
29436 fi
29437 rm -f conftest.err conftest.$ac_objext \
29438       conftest$ac_exeext conftest.$ac_ext
29439 LIBS=$ac_check_lib_save_LIBS
29440 fi
29441 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
29442 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
29443 if test $ac_cv_lib_svld_dlopen = yes; then
29444   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29445 else
29446   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
29447 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
29448 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
29449   echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451   ac_check_lib_save_LIBS=$LIBS
29452 LIBS="-ldld  $LIBS"
29453 cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h.  */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h.  */
29459
29460 /* Override any gcc2 internal prototype to avoid an error.  */
29461 #ifdef __cplusplus
29462 extern "C"
29463 #endif
29464 /* We use char because int might match the return type of a gcc2
29465    builtin and then its argument prototype would still apply.  */
29466 char dld_link ();
29467 int
29468 main ()
29469 {
29470 dld_link ();
29471   ;
29472   return 0;
29473 }
29474 _ACEOF
29475 rm -f conftest.$ac_objext conftest$ac_exeext
29476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29477   (eval $ac_link) 2>conftest.er1
29478   ac_status=$?
29479   grep -v '^ *+' conftest.er1 >conftest.err
29480   rm -f conftest.er1
29481   cat conftest.err >&5
29482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483   (exit $ac_status); } &&
29484          { ac_try='test -z "$ac_c_werror_flag"
29485                          || test ! -s conftest.err'
29486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29487   (eval $ac_try) 2>&5
29488   ac_status=$?
29489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490   (exit $ac_status); }; } &&
29491          { ac_try='test -s conftest$ac_exeext'
29492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493   (eval $ac_try) 2>&5
29494   ac_status=$?
29495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496   (exit $ac_status); }; }; then
29497   ac_cv_lib_dld_dld_link=yes
29498 else
29499   echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.$ac_ext >&5
29501
29502 ac_cv_lib_dld_dld_link=no
29503 fi
29504 rm -f conftest.err conftest.$ac_objext \
29505       conftest$ac_exeext conftest.$ac_ext
29506 LIBS=$ac_check_lib_save_LIBS
29507 fi
29508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
29509 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
29510 if test $ac_cv_lib_dld_dld_link = yes; then
29511   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
29512 fi
29513
29514
29515 fi
29516
29517
29518 fi
29519
29520
29521 fi
29522
29523
29524 fi
29525
29526
29527 fi
29528
29529     ;;
29530   esac
29531
29532   if test "x$lt_cv_dlopen" != xno; then
29533     enable_dlopen=yes
29534   else
29535     enable_dlopen=no
29536   fi
29537
29538   case $lt_cv_dlopen in
29539   dlopen)
29540     save_CPPFLAGS="$CPPFLAGS"
29541     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
29542
29543     save_LDFLAGS="$LDFLAGS"
29544     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
29545
29546     save_LIBS="$LIBS"
29547     LIBS="$lt_cv_dlopen_libs $LIBS"
29548
29549     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
29550 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
29551 if test "${lt_cv_dlopen_self+set}" = set; then
29552   echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554           if test "$cross_compiling" = yes; then :
29555   lt_cv_dlopen_self=cross
29556 else
29557   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29558   lt_status=$lt_dlunknown
29559   cat > conftest.$ac_ext <<EOF
29560 #line 29560 "configure"
29561 #include "confdefs.h"
29562
29563 #if HAVE_DLFCN_H
29564 #include <dlfcn.h>
29565 #endif
29566
29567 #include <stdio.h>
29568
29569 #ifdef RTLD_GLOBAL
29570 #  define LT_DLGLOBAL           RTLD_GLOBAL
29571 #else
29572 #  ifdef DL_GLOBAL
29573 #    define LT_DLGLOBAL         DL_GLOBAL
29574 #  else
29575 #    define LT_DLGLOBAL         0
29576 #  endif
29577 #endif
29578
29579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29580    find out it does not work in some platform. */
29581 #ifndef LT_DLLAZY_OR_NOW
29582 #  ifdef RTLD_LAZY
29583 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
29584 #  else
29585 #    ifdef DL_LAZY
29586 #      define LT_DLLAZY_OR_NOW          DL_LAZY
29587 #    else
29588 #      ifdef RTLD_NOW
29589 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
29590 #      else
29591 #        ifdef DL_NOW
29592 #          define LT_DLLAZY_OR_NOW      DL_NOW
29593 #        else
29594 #          define LT_DLLAZY_OR_NOW      0
29595 #        endif
29596 #      endif
29597 #    endif
29598 #  endif
29599 #endif
29600
29601 #ifdef __cplusplus
29602 extern "C" void exit (int);
29603 #endif
29604
29605 void fnord() { int i=42;}
29606 int main ()
29607 {
29608   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29609   int status = $lt_dlunknown;
29610
29611   if (self)
29612     {
29613       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
29614       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29615       /* dlclose (self); */
29616     }
29617
29618     exit (status);
29619 }
29620 EOF
29621   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29622   (eval $ac_link) 2>&5
29623   ac_status=$?
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29626     (./conftest; exit; ) >&5 2>/dev/null
29627     lt_status=$?
29628     case x$lt_status in
29629       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
29630       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
29631       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
29632     esac
29633   else :
29634     # compilation failed
29635     lt_cv_dlopen_self=no
29636   fi
29637 fi
29638 rm -fr conftest*
29639
29640
29641 fi
29642 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
29643 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
29644
29645     if test "x$lt_cv_dlopen_self" = xyes; then
29646       LDFLAGS="$LDFLAGS $link_static_flag"
29647       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
29648 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
29649 if test "${lt_cv_dlopen_self_static+set}" = set; then
29650   echo $ECHO_N "(cached) $ECHO_C" >&6
29651 else
29652           if test "$cross_compiling" = yes; then :
29653   lt_cv_dlopen_self_static=cross
29654 else
29655   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29656   lt_status=$lt_dlunknown
29657   cat > conftest.$ac_ext <<EOF
29658 #line 29658 "configure"
29659 #include "confdefs.h"
29660
29661 #if HAVE_DLFCN_H
29662 #include <dlfcn.h>
29663 #endif
29664
29665 #include <stdio.h>
29666
29667 #ifdef RTLD_GLOBAL
29668 #  define LT_DLGLOBAL           RTLD_GLOBAL
29669 #else
29670 #  ifdef DL_GLOBAL
29671 #    define LT_DLGLOBAL         DL_GLOBAL
29672 #  else
29673 #    define LT_DLGLOBAL         0
29674 #  endif
29675 #endif
29676
29677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29678    find out it does not work in some platform. */
29679 #ifndef LT_DLLAZY_OR_NOW
29680 #  ifdef RTLD_LAZY
29681 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
29682 #  else
29683 #    ifdef DL_LAZY
29684 #      define LT_DLLAZY_OR_NOW          DL_LAZY
29685 #    else
29686 #      ifdef RTLD_NOW
29687 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
29688 #      else
29689 #        ifdef DL_NOW
29690 #          define LT_DLLAZY_OR_NOW      DL_NOW
29691 #        else
29692 #          define LT_DLLAZY_OR_NOW      0
29693 #        endif
29694 #      endif
29695 #    endif
29696 #  endif
29697 #endif
29698
29699 #ifdef __cplusplus
29700 extern "C" void exit (int);
29701 #endif
29702
29703 void fnord() { int i=42;}
29704 int main ()
29705 {
29706   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29707   int status = $lt_dlunknown;
29708
29709   if (self)
29710     {
29711       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
29712       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29713       /* dlclose (self); */
29714     }
29715
29716     exit (status);
29717 }
29718 EOF
29719   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29720   (eval $ac_link) 2>&5
29721   ac_status=$?
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29724     (./conftest; exit; ) >&5 2>/dev/null
29725     lt_status=$?
29726     case x$lt_status in
29727       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
29728       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
29729       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
29730     esac
29731   else :
29732     # compilation failed
29733     lt_cv_dlopen_self_static=no
29734   fi
29735 fi
29736 rm -fr conftest*
29737
29738
29739 fi
29740 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
29741 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
29742     fi
29743
29744     CPPFLAGS="$save_CPPFLAGS"
29745     LDFLAGS="$save_LDFLAGS"
29746     LIBS="$save_LIBS"
29747     ;;
29748   esac
29749
29750   case $lt_cv_dlopen_self in
29751   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
29752   *) enable_dlopen_self=unknown ;;
29753   esac
29754
29755   case $lt_cv_dlopen_self_static in
29756   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
29757   *) enable_dlopen_self_static=unknown ;;
29758   esac
29759 fi
29760
29761
29762 # The else clause should only fire when bootstrapping the
29763 # libtool distribution, otherwise you forgot to ship ltmain.sh
29764 # with your package, and you will get complaints that there are
29765 # no rules to generate ltmain.sh.
29766 if test -f "$ltmain"; then
29767   # See if we are running on zsh, and set the options which allow our commands through
29768   # without removal of \ escapes.
29769   if test -n "${ZSH_VERSION+set}" ; then
29770     setopt NO_GLOB_SUBST
29771   fi
29772   # Now quote all the things that may contain metacharacters while being
29773   # careful not to overquote the AC_SUBSTed values.  We take copies of the
29774   # variables and quote the copies for generation of the libtool script.
29775   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
29776     SED SHELL STRIP \
29777     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29778     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29779     deplibs_check_method reload_flag reload_cmds need_locks \
29780     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29781     lt_cv_sys_global_symbol_to_c_name_address \
29782     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29783     old_postinstall_cmds old_postuninstall_cmds \
29784     compiler_GCJ \
29785     CC_GCJ \
29786     LD_GCJ \
29787     lt_prog_compiler_wl_GCJ \
29788     lt_prog_compiler_pic_GCJ \
29789     lt_prog_compiler_static_GCJ \
29790     lt_prog_compiler_no_builtin_flag_GCJ \
29791     export_dynamic_flag_spec_GCJ \
29792     thread_safe_flag_spec_GCJ \
29793     whole_archive_flag_spec_GCJ \
29794     enable_shared_with_static_runtimes_GCJ \
29795     old_archive_cmds_GCJ \
29796     old_archive_from_new_cmds_GCJ \
29797     predep_objects_GCJ \
29798     postdep_objects_GCJ \
29799     predeps_GCJ \
29800     postdeps_GCJ \
29801     compiler_lib_search_path_GCJ \
29802     archive_cmds_GCJ \
29803     archive_expsym_cmds_GCJ \
29804     postinstall_cmds_GCJ \
29805     postuninstall_cmds_GCJ \
29806     old_archive_from_expsyms_cmds_GCJ \
29807     allow_undefined_flag_GCJ \
29808     no_undefined_flag_GCJ \
29809     export_symbols_cmds_GCJ \
29810     hardcode_libdir_flag_spec_GCJ \
29811     hardcode_libdir_flag_spec_ld_GCJ \
29812     hardcode_libdir_separator_GCJ \
29813     hardcode_automatic_GCJ \
29814     module_cmds_GCJ \
29815     module_expsym_cmds_GCJ \
29816     lt_cv_prog_compiler_c_o_GCJ \
29817     exclude_expsyms_GCJ \
29818     include_expsyms_GCJ; do
29819
29820     case $var in
29821     old_archive_cmds_GCJ | \
29822     old_archive_from_new_cmds_GCJ | \
29823     archive_cmds_GCJ | \
29824     archive_expsym_cmds_GCJ | \
29825     module_cmds_GCJ | \
29826     module_expsym_cmds_GCJ | \
29827     old_archive_from_expsyms_cmds_GCJ | \
29828     export_symbols_cmds_GCJ | \
29829     extract_expsyms_cmds | reload_cmds | finish_cmds | \
29830     postinstall_cmds | postuninstall_cmds | \
29831     old_postinstall_cmds | old_postuninstall_cmds | \
29832     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29833       # Double-quote double-evaled strings.
29834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29835       ;;
29836     *)
29837       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29838       ;;
29839     esac
29840   done
29841
29842   case $lt_echo in
29843   *'\$0 --fallback-echo"')
29844     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29845     ;;
29846   esac
29847
29848 cfgfile="$ofile"
29849
29850   cat <<__EOF__ >> "$cfgfile"
29851 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
29852
29853 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29854
29855 # Shell to use when invoking shell scripts.
29856 SHELL=$lt_SHELL
29857
29858 # Whether or not to build shared libraries.
29859 build_libtool_libs=$enable_shared
29860
29861 # Whether or not to build static libraries.
29862 build_old_libs=$enable_static
29863
29864 # Whether or not to add -lc for building shared libraries.
29865 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
29866
29867 # Whether or not to disallow shared libs when runtime libs are static
29868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
29869
29870 # Whether or not to optimize for fast installation.
29871 fast_install=$enable_fast_install
29872
29873 # The host system.
29874 host_alias=$host_alias
29875 host=$host
29876 host_os=$host_os
29877
29878 # The build system.
29879 build_alias=$build_alias
29880 build=$build
29881 build_os=$build_os
29882
29883 # An echo program that does not interpret backslashes.
29884 echo=$lt_echo
29885
29886 # The archiver.
29887 AR=$lt_AR
29888 AR_FLAGS=$lt_AR_FLAGS
29889
29890 # A C compiler.
29891 LTCC=$lt_LTCC
29892
29893 # A language-specific compiler.
29894 CC=$lt_compiler_GCJ
29895
29896 # Is the compiler the GNU C compiler?
29897 with_gcc=$GCC_GCJ
29898
29899 # An ERE matcher.
29900 EGREP=$lt_EGREP
29901
29902 # The linker used to build libraries.
29903 LD=$lt_LD_GCJ
29904
29905 # Whether we need hard or soft links.
29906 LN_S=$lt_LN_S
29907
29908 # A BSD-compatible nm program.
29909 NM=$lt_NM
29910
29911 # A symbol stripping program
29912 STRIP=$lt_STRIP
29913
29914 # Used to examine libraries when file_magic_cmd begins "file"
29915 MAGIC_CMD=$MAGIC_CMD
29916
29917 # Used on cygwin: DLL creation program.
29918 DLLTOOL="$DLLTOOL"
29919
29920 # Used on cygwin: object dumper.
29921 OBJDUMP="$OBJDUMP"
29922
29923 # Used on cygwin: assembler.
29924 AS="$AS"
29925
29926 # The name of the directory that contains temporary libtool files.
29927 objdir=$objdir
29928
29929 # How to create reloadable object files.
29930 reload_flag=$lt_reload_flag
29931 reload_cmds=$lt_reload_cmds
29932
29933 # How to pass a linker flag through the compiler.
29934 wl=$lt_lt_prog_compiler_wl_GCJ
29935
29936 # Object file suffix (normally "o").
29937 objext="$ac_objext"
29938
29939 # Old archive suffix (normally "a").
29940 libext="$libext"
29941
29942 # Shared library suffix (normally ".so").
29943 shrext_cmds='$shrext_cmds'
29944
29945 # Executable file suffix (normally "").
29946 exeext="$exeext"
29947
29948 # Additional compiler flags for building library objects.
29949 pic_flag=$lt_lt_prog_compiler_pic_GCJ
29950 pic_mode=$pic_mode
29951
29952 # What is the maximum length of a command?
29953 max_cmd_len=$lt_cv_sys_max_cmd_len
29954
29955 # Does compiler simultaneously support -c and -o options?
29956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
29957
29958 # Must we lock files when doing compilation?
29959 need_locks=$lt_need_locks
29960
29961 # Do we need the lib prefix for modules?
29962 need_lib_prefix=$need_lib_prefix
29963
29964 # Do we need a version for libraries?
29965 need_version=$need_version
29966
29967 # Whether dlopen is supported.
29968 dlopen_support=$enable_dlopen
29969
29970 # Whether dlopen of programs is supported.
29971 dlopen_self=$enable_dlopen_self
29972
29973 # Whether dlopen of statically linked programs is supported.
29974 dlopen_self_static=$enable_dlopen_self_static
29975
29976 # Compiler flag to prevent dynamic linking.
29977 link_static_flag=$lt_lt_prog_compiler_static_GCJ
29978
29979 # Compiler flag to turn off builtin functions.
29980 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
29981
29982 # Compiler flag to allow reflexive dlopens.
29983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
29984
29985 # Compiler flag to generate shared objects directly from archives.
29986 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
29987
29988 # Compiler flag to generate thread-safe objects.
29989 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
29990
29991 # Library versioning type.
29992 version_type=$version_type
29993
29994 # Format of library name prefix.
29995 libname_spec=$lt_libname_spec
29996
29997 # List of archive names.  First name is the real one, the rest are links.
29998 # The last name is the one that the linker finds with -lNAME.
29999 library_names_spec=$lt_library_names_spec
30000
30001 # The coded name of the library, if different from the real name.
30002 soname_spec=$lt_soname_spec
30003
30004 # Commands used to build and install an old-style archive.
30005 RANLIB=$lt_RANLIB
30006 old_archive_cmds=$lt_old_archive_cmds_GCJ
30007 old_postinstall_cmds=$lt_old_postinstall_cmds
30008 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30009
30010 # Create an old-style archive from a shared archive.
30011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30012
30013 # Create a temporary old-style archive to link instead of a shared archive.
30014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30015
30016 # Commands used to build and install a shared archive.
30017 archive_cmds=$lt_archive_cmds_GCJ
30018 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30019 postinstall_cmds=$lt_postinstall_cmds
30020 postuninstall_cmds=$lt_postuninstall_cmds
30021
30022 # Commands used to build a loadable module (assumed same as above if empty)
30023 module_cmds=$lt_module_cmds_GCJ
30024 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30025
30026 # Commands to strip libraries.
30027 old_striplib=$lt_old_striplib
30028 striplib=$lt_striplib
30029
30030 # Dependencies to place before the objects being linked to create a
30031 # shared library.
30032 predep_objects=$lt_predep_objects_GCJ
30033
30034 # Dependencies to place after the objects being linked to create a
30035 # shared library.
30036 postdep_objects=$lt_postdep_objects_GCJ
30037
30038 # Dependencies to place before the objects being linked to create a
30039 # shared library.
30040 predeps=$lt_predeps_GCJ
30041
30042 # Dependencies to place after the objects being linked to create a
30043 # shared library.
30044 postdeps=$lt_postdeps_GCJ
30045
30046 # The library search path used internally by the compiler when linking
30047 # a shared library.
30048 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
30049
30050 # Method to check whether dependent libraries are shared objects.
30051 deplibs_check_method=$lt_deplibs_check_method
30052
30053 # Command to use when deplibs_check_method == file_magic.
30054 file_magic_cmd=$lt_file_magic_cmd
30055
30056 # Flag that allows shared libraries with undefined symbols to be built.
30057 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30058
30059 # Flag that forces no undefined symbols.
30060 no_undefined_flag=$lt_no_undefined_flag_GCJ
30061
30062 # Commands used to finish a libtool library installation in a directory.
30063 finish_cmds=$lt_finish_cmds
30064
30065 # Same as above, but a single script fragment to be evaled but not shown.
30066 finish_eval=$lt_finish_eval
30067
30068 # Take the output of nm and produce a listing of raw symbols and C names.
30069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30070
30071 # Transform the output of nm in a proper C declaration
30072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30073
30074 # Transform the output of nm in a C name address pair
30075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30076
30077 # This is the shared library runtime path variable.
30078 runpath_var=$runpath_var
30079
30080 # This is the shared library path variable.
30081 shlibpath_var=$shlibpath_var
30082
30083 # Is shlibpath searched before the hard-coded library search path?
30084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30085
30086 # How to hardcode a shared library path into an executable.
30087 hardcode_action=$hardcode_action_GCJ
30088
30089 # Whether we should hardcode library paths into libraries.
30090 hardcode_into_libs=$hardcode_into_libs
30091
30092 # Flag to hardcode \$libdir into a binary during linking.
30093 # This must work even if \$libdir does not exist.
30094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30095
30096 # If ld is used when linking, flag to hardcode \$libdir into
30097 # a binary during linking. This must work even if \$libdir does
30098 # not exist.
30099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
30100
30101 # Whether we need a single -rpath flag with a separated argument.
30102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30103
30104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30105 # resulting binary.
30106 hardcode_direct=$hardcode_direct_GCJ
30107
30108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30109 # resulting binary.
30110 hardcode_minus_L=$hardcode_minus_L_GCJ
30111
30112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30113 # the resulting binary.
30114 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30115
30116 # Set to yes if building a shared library automatically hardcodes DIR into the library
30117 # and all subsequent libraries and executables linked against it.
30118 hardcode_automatic=$hardcode_automatic_GCJ
30119
30120 # Variables whose values should be saved in libtool wrapper scripts and
30121 # restored at relink time.
30122 variables_saved_for_relink="$variables_saved_for_relink"
30123
30124 # Whether libtool must link a program against all its dependency libraries.
30125 link_all_deplibs=$link_all_deplibs_GCJ
30126
30127 # Compile-time system search path for libraries
30128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30129
30130 # Run-time system search path for libraries
30131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30132
30133 # Fix the shell variable \$srcfile for the compiler.
30134 fix_srcfile_path="$fix_srcfile_path_GCJ"
30135
30136 # Set to yes if exported symbols are required.
30137 always_export_symbols=$always_export_symbols_GCJ
30138
30139 # The commands to list exported symbols.
30140 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
30141
30142 # The commands to extract the exported symbol list from a shared archive.
30143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30144
30145 # Symbols that should not be listed in the preloaded symbols.
30146 exclude_expsyms=$lt_exclude_expsyms_GCJ
30147
30148 # Symbols that must always be exported.
30149 include_expsyms=$lt_include_expsyms_GCJ
30150
30151 # ### END LIBTOOL TAG CONFIG: $tagname
30152
30153 __EOF__
30154
30155
30156 else
30157   # If there is no Makefile yet, we rely on a make rule to execute
30158   # `config.status --recheck' to rerun these tests and create the
30159   # libtool script then.
30160   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30161   if test -f "$ltmain_in"; then
30162     test -f Makefile && make "$ltmain"
30163   fi
30164 fi
30165
30166
30167 ac_ext=c
30168 ac_cpp='$CPP $CPPFLAGS'
30169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30172
30173 CC="$lt_save_CC"
30174
30175         else
30176           tagname=""
30177         fi
30178         ;;
30179
30180       RC)
30181
30182
30183
30184 # Source file extension for RC test sources.
30185 ac_ext=rc
30186
30187 # Object file extension for compiled RC test sources.
30188 objext=o
30189 objext_RC=$objext
30190
30191 # Code to be used in simple compile tests
30192 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
30193
30194 # Code to be used in simple link tests
30195 lt_simple_link_test_code="$lt_simple_compile_test_code"
30196
30197 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
30198
30199 # If no C compiler was specified, use CC.
30200 LTCC=${LTCC-"$CC"}
30201
30202 # Allow CC to be a program name with arguments.
30203 compiler=$CC
30204
30205
30206 # save warnings/boilerplate of simple test code
30207 ac_outfile=conftest.$ac_objext
30208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
30209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
30210 _lt_compiler_boilerplate=`cat conftest.err`
30211 $rm conftest*
30212
30213 ac_outfile=conftest.$ac_objext
30214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
30215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
30216 _lt_linker_boilerplate=`cat conftest.err`
30217 $rm conftest*
30218
30219
30220 # Allow CC to be a program name with arguments.
30221 lt_save_CC="$CC"
30222 CC=${RC-"windres"}
30223 compiler=$CC
30224 compiler_RC=$CC
30225 for cc_temp in $compiler""; do
30226   case $cc_temp in
30227     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30228     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30229     \-*) ;;
30230     *) break;;
30231   esac
30232 done
30233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30234
30235 lt_cv_prog_compiler_c_o_RC=yes
30236
30237 # The else clause should only fire when bootstrapping the
30238 # libtool distribution, otherwise you forgot to ship ltmain.sh
30239 # with your package, and you will get complaints that there are
30240 # no rules to generate ltmain.sh.
30241 if test -f "$ltmain"; then
30242   # See if we are running on zsh, and set the options which allow our commands through
30243   # without removal of \ escapes.
30244   if test -n "${ZSH_VERSION+set}" ; then
30245     setopt NO_GLOB_SUBST
30246   fi
30247   # Now quote all the things that may contain metacharacters while being
30248   # careful not to overquote the AC_SUBSTed values.  We take copies of the
30249   # variables and quote the copies for generation of the libtool script.
30250   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
30251     SED SHELL STRIP \
30252     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
30253     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
30254     deplibs_check_method reload_flag reload_cmds need_locks \
30255     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
30256     lt_cv_sys_global_symbol_to_c_name_address \
30257     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
30258     old_postinstall_cmds old_postuninstall_cmds \
30259     compiler_RC \
30260     CC_RC \
30261     LD_RC \
30262     lt_prog_compiler_wl_RC \
30263     lt_prog_compiler_pic_RC \
30264     lt_prog_compiler_static_RC \
30265     lt_prog_compiler_no_builtin_flag_RC \
30266     export_dynamic_flag_spec_RC \
30267     thread_safe_flag_spec_RC \
30268     whole_archive_flag_spec_RC \
30269     enable_shared_with_static_runtimes_RC \
30270     old_archive_cmds_RC \
30271     old_archive_from_new_cmds_RC \
30272     predep_objects_RC \
30273     postdep_objects_RC \
30274     predeps_RC \
30275     postdeps_RC \
30276     compiler_lib_search_path_RC \
30277     archive_cmds_RC \
30278     archive_expsym_cmds_RC \
30279     postinstall_cmds_RC \
30280     postuninstall_cmds_RC \
30281     old_archive_from_expsyms_cmds_RC \
30282     allow_undefined_flag_RC \
30283     no_undefined_flag_RC \
30284     export_symbols_cmds_RC \
30285     hardcode_libdir_flag_spec_RC \
30286     hardcode_libdir_flag_spec_ld_RC \
30287     hardcode_libdir_separator_RC \
30288     hardcode_automatic_RC \
30289     module_cmds_RC \
30290     module_expsym_cmds_RC \
30291     lt_cv_prog_compiler_c_o_RC \
30292     exclude_expsyms_RC \
30293     include_expsyms_RC; do
30294
30295     case $var in
30296     old_archive_cmds_RC | \
30297     old_archive_from_new_cmds_RC | \
30298     archive_cmds_RC | \
30299     archive_expsym_cmds_RC | \
30300     module_cmds_RC | \
30301     module_expsym_cmds_RC | \
30302     old_archive_from_expsyms_cmds_RC | \
30303     export_symbols_cmds_RC | \
30304     extract_expsyms_cmds | reload_cmds | finish_cmds | \
30305     postinstall_cmds | postuninstall_cmds | \
30306     old_postinstall_cmds | old_postuninstall_cmds | \
30307     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
30308       # Double-quote double-evaled strings.
30309       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
30310       ;;
30311     *)
30312       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
30313       ;;
30314     esac
30315   done
30316
30317   case $lt_echo in
30318   *'\$0 --fallback-echo"')
30319     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
30320     ;;
30321   esac
30322
30323 cfgfile="$ofile"
30324
30325   cat <<__EOF__ >> "$cfgfile"
30326 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
30327
30328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30329
30330 # Shell to use when invoking shell scripts.
30331 SHELL=$lt_SHELL
30332
30333 # Whether or not to build shared libraries.
30334 build_libtool_libs=$enable_shared
30335
30336 # Whether or not to build static libraries.
30337 build_old_libs=$enable_static
30338
30339 # Whether or not to add -lc for building shared libraries.
30340 build_libtool_need_lc=$archive_cmds_need_lc_RC
30341
30342 # Whether or not to disallow shared libs when runtime libs are static
30343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
30344
30345 # Whether or not to optimize for fast installation.
30346 fast_install=$enable_fast_install
30347
30348 # The host system.
30349 host_alias=$host_alias
30350 host=$host
30351 host_os=$host_os
30352
30353 # The build system.
30354 build_alias=$build_alias
30355 build=$build
30356 build_os=$build_os
30357
30358 # An echo program that does not interpret backslashes.
30359 echo=$lt_echo
30360
30361 # The archiver.
30362 AR=$lt_AR
30363 AR_FLAGS=$lt_AR_FLAGS
30364
30365 # A C compiler.
30366 LTCC=$lt_LTCC
30367
30368 # A language-specific compiler.
30369 CC=$lt_compiler_RC
30370
30371 # Is the compiler the GNU C compiler?
30372 with_gcc=$GCC_RC
30373
30374 # An ERE matcher.
30375 EGREP=$lt_EGREP
30376
30377 # The linker used to build libraries.
30378 LD=$lt_LD_RC
30379
30380 # Whether we need hard or soft links.
30381 LN_S=$lt_LN_S
30382
30383 # A BSD-compatible nm program.
30384 NM=$lt_NM
30385
30386 # A symbol stripping program
30387 STRIP=$lt_STRIP
30388
30389 # Used to examine libraries when file_magic_cmd begins "file"
30390 MAGIC_CMD=$MAGIC_CMD
30391
30392 # Used on cygwin: DLL creation program.
30393 DLLTOOL="$DLLTOOL"
30394
30395 # Used on cygwin: object dumper.
30396 OBJDUMP="$OBJDUMP"
30397
30398 # Used on cygwin: assembler.
30399 AS="$AS"
30400
30401 # The name of the directory that contains temporary libtool files.
30402 objdir=$objdir
30403
30404 # How to create reloadable object files.
30405 reload_flag=$lt_reload_flag
30406 reload_cmds=$lt_reload_cmds
30407
30408 # How to pass a linker flag through the compiler.
30409 wl=$lt_lt_prog_compiler_wl_RC
30410
30411 # Object file suffix (normally "o").
30412 objext="$ac_objext"
30413
30414 # Old archive suffix (normally "a").
30415 libext="$libext"
30416
30417 # Shared library suffix (normally ".so").
30418 shrext_cmds='$shrext_cmds'
30419
30420 # Executable file suffix (normally "").
30421 exeext="$exeext"
30422
30423 # Additional compiler flags for building library objects.
30424 pic_flag=$lt_lt_prog_compiler_pic_RC
30425 pic_mode=$pic_mode
30426
30427 # What is the maximum length of a command?
30428 max_cmd_len=$lt_cv_sys_max_cmd_len
30429
30430 # Does compiler simultaneously support -c and -o options?
30431 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
30432
30433 # Must we lock files when doing compilation?
30434 need_locks=$lt_need_locks
30435
30436 # Do we need the lib prefix for modules?
30437 need_lib_prefix=$need_lib_prefix
30438
30439 # Do we need a version for libraries?
30440 need_version=$need_version
30441
30442 # Whether dlopen is supported.
30443 dlopen_support=$enable_dlopen
30444
30445 # Whether dlopen of programs is supported.
30446 dlopen_self=$enable_dlopen_self
30447
30448 # Whether dlopen of statically linked programs is supported.
30449 dlopen_self_static=$enable_dlopen_self_static
30450
30451 # Compiler flag to prevent dynamic linking.
30452 link_static_flag=$lt_lt_prog_compiler_static_RC
30453
30454 # Compiler flag to turn off builtin functions.
30455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
30456
30457 # Compiler flag to allow reflexive dlopens.
30458 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
30459
30460 # Compiler flag to generate shared objects directly from archives.
30461 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
30462
30463 # Compiler flag to generate thread-safe objects.
30464 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
30465
30466 # Library versioning type.
30467 version_type=$version_type
30468
30469 # Format of library name prefix.
30470 libname_spec=$lt_libname_spec
30471
30472 # List of archive names.  First name is the real one, the rest are links.
30473 # The last name is the one that the linker finds with -lNAME.
30474 library_names_spec=$lt_library_names_spec
30475
30476 # The coded name of the library, if different from the real name.
30477 soname_spec=$lt_soname_spec
30478
30479 # Commands used to build and install an old-style archive.
30480 RANLIB=$lt_RANLIB
30481 old_archive_cmds=$lt_old_archive_cmds_RC
30482 old_postinstall_cmds=$lt_old_postinstall_cmds
30483 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30484
30485 # Create an old-style archive from a shared archive.
30486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
30487
30488 # Create a temporary old-style archive to link instead of a shared archive.
30489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
30490
30491 # Commands used to build and install a shared archive.
30492 archive_cmds=$lt_archive_cmds_RC
30493 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
30494 postinstall_cmds=$lt_postinstall_cmds
30495 postuninstall_cmds=$lt_postuninstall_cmds
30496
30497 # Commands used to build a loadable module (assumed same as above if empty)
30498 module_cmds=$lt_module_cmds_RC
30499 module_expsym_cmds=$lt_module_expsym_cmds_RC
30500
30501 # Commands to strip libraries.
30502 old_striplib=$lt_old_striplib
30503 striplib=$lt_striplib
30504
30505 # Dependencies to place before the objects being linked to create a
30506 # shared library.
30507 predep_objects=$lt_predep_objects_RC
30508
30509 # Dependencies to place after the objects being linked to create a
30510 # shared library.
30511 postdep_objects=$lt_postdep_objects_RC
30512
30513 # Dependencies to place before the objects being linked to create a
30514 # shared library.
30515 predeps=$lt_predeps_RC
30516
30517 # Dependencies to place after the objects being linked to create a
30518 # shared library.
30519 postdeps=$lt_postdeps_RC
30520
30521 # The library search path used internally by the compiler when linking
30522 # a shared library.
30523 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
30524
30525 # Method to check whether dependent libraries are shared objects.
30526 deplibs_check_method=$lt_deplibs_check_method
30527
30528 # Command to use when deplibs_check_method == file_magic.
30529 file_magic_cmd=$lt_file_magic_cmd
30530
30531 # Flag that allows shared libraries with undefined symbols to be built.
30532 allow_undefined_flag=$lt_allow_undefined_flag_RC
30533
30534 # Flag that forces no undefined symbols.
30535 no_undefined_flag=$lt_no_undefined_flag_RC
30536
30537 # Commands used to finish a libtool library installation in a directory.
30538 finish_cmds=$lt_finish_cmds
30539
30540 # Same as above, but a single script fragment to be evaled but not shown.
30541 finish_eval=$lt_finish_eval
30542
30543 # Take the output of nm and produce a listing of raw symbols and C names.
30544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30545
30546 # Transform the output of nm in a proper C declaration
30547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30548
30549 # Transform the output of nm in a C name address pair
30550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30551
30552 # This is the shared library runtime path variable.
30553 runpath_var=$runpath_var
30554
30555 # This is the shared library path variable.
30556 shlibpath_var=$shlibpath_var
30557
30558 # Is shlibpath searched before the hard-coded library search path?
30559 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30560
30561 # How to hardcode a shared library path into an executable.
30562 hardcode_action=$hardcode_action_RC
30563
30564 # Whether we should hardcode library paths into libraries.
30565 hardcode_into_libs=$hardcode_into_libs
30566
30567 # Flag to hardcode \$libdir into a binary during linking.
30568 # This must work even if \$libdir does not exist.
30569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
30570
30571 # If ld is used when linking, flag to hardcode \$libdir into
30572 # a binary during linking. This must work even if \$libdir does
30573 # not exist.
30574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
30575
30576 # Whether we need a single -rpath flag with a separated argument.
30577 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
30578
30579 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30580 # resulting binary.
30581 hardcode_direct=$hardcode_direct_RC
30582
30583 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30584 # resulting binary.
30585 hardcode_minus_L=$hardcode_minus_L_RC
30586
30587 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30588 # the resulting binary.
30589 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
30590
30591 # Set to yes if building a shared library automatically hardcodes DIR into the library
30592 # and all subsequent libraries and executables linked against it.
30593 hardcode_automatic=$hardcode_automatic_RC
30594
30595 # Variables whose values should be saved in libtool wrapper scripts and
30596 # restored at relink time.
30597 variables_saved_for_relink="$variables_saved_for_relink"
30598
30599 # Whether libtool must link a program against all its dependency libraries.
30600 link_all_deplibs=$link_all_deplibs_RC
30601
30602 # Compile-time system search path for libraries
30603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30604
30605 # Run-time system search path for libraries
30606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30607
30608 # Fix the shell variable \$srcfile for the compiler.
30609 fix_srcfile_path="$fix_srcfile_path_RC"
30610
30611 # Set to yes if exported symbols are required.
30612 always_export_symbols=$always_export_symbols_RC
30613
30614 # The commands to list exported symbols.
30615 export_symbols_cmds=$lt_export_symbols_cmds_RC
30616
30617 # The commands to extract the exported symbol list from a shared archive.
30618 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30619
30620 # Symbols that should not be listed in the preloaded symbols.
30621 exclude_expsyms=$lt_exclude_expsyms_RC
30622
30623 # Symbols that must always be exported.
30624 include_expsyms=$lt_include_expsyms_RC
30625
30626 # ### END LIBTOOL TAG CONFIG: $tagname
30627
30628 __EOF__
30629
30630
30631 else
30632   # If there is no Makefile yet, we rely on a make rule to execute
30633   # `config.status --recheck' to rerun these tests and create the
30634   # libtool script then.
30635   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30636   if test -f "$ltmain_in"; then
30637     test -f Makefile && make "$ltmain"
30638   fi
30639 fi
30640
30641
30642 ac_ext=c
30643 ac_cpp='$CPP $CPPFLAGS'
30644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30647
30648 CC="$lt_save_CC"
30649
30650         ;;
30651
30652       *)
30653         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
30654 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
30655    { (exit 1); exit 1; }; }
30656         ;;
30657       esac
30658
30659       # Append the new tag name to the list of available tags.
30660       if test -n "$tagname" ; then
30661       available_tags="$available_tags $tagname"
30662     fi
30663     fi
30664   done
30665   IFS="$lt_save_ifs"
30666
30667   # Now substitute the updated list of available tags.
30668   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
30669     mv "${ofile}T" "$ofile"
30670     chmod +x "$ofile"
30671   else
30672     rm -f "${ofile}T"
30673     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
30674 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
30675    { (exit 1); exit 1; }; }
30676   fi
30677 fi
30678
30679
30680
30681 # This can be used to rebuild libtool when needed
30682 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
30683
30684 # Always use our own libtool.
30685 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30686
30687 # Prevent multiple expansion
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708 echo "$as_me:$LINENO: checking whether ln -s works" >&5
30709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
30710 LN_S=$as_ln_s
30711 if test "$LN_S" = "ln -s"; then
30712   echo "$as_me:$LINENO: result: yes" >&5
30713 echo "${ECHO_T}yes" >&6
30714 else
30715   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
30716 echo "${ECHO_T}no, using $LN_S" >&6
30717 fi
30718
30719 if test $ac_cv_c_compiler_gnu = yes; then
30720     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
30721 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
30722 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
30723   echo $ECHO_N "(cached) $ECHO_C" >&6
30724 else
30725     ac_pattern="Autoconf.*'x'"
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 #include <sgtty.h>
30733 Autoconf TIOCGETP
30734 _ACEOF
30735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30736   $EGREP "$ac_pattern" >/dev/null 2>&1; then
30737   ac_cv_prog_gcc_traditional=yes
30738 else
30739   ac_cv_prog_gcc_traditional=no
30740 fi
30741 rm -f conftest*
30742
30743
30744   if test $ac_cv_prog_gcc_traditional = no; then
30745     cat >conftest.$ac_ext <<_ACEOF
30746 /* confdefs.h.  */
30747 _ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h.  */
30751 #include <termio.h>
30752 Autoconf TCGETA
30753 _ACEOF
30754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30755   $EGREP "$ac_pattern" >/dev/null 2>&1; then
30756   ac_cv_prog_gcc_traditional=yes
30757 fi
30758 rm -f conftest*
30759
30760   fi
30761 fi
30762 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
30763 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
30764   if test $ac_cv_prog_gcc_traditional = yes; then
30765     CC="$CC -traditional"
30766   fi
30767 fi
30768
30769 echo "$as_me:$LINENO: checking for working volatile" >&5
30770 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
30771 if test "${ac_cv_c_volatile+set}" = set; then
30772   echo $ECHO_N "(cached) $ECHO_C" >&6
30773 else
30774   cat >conftest.$ac_ext <<_ACEOF
30775 /* confdefs.h.  */
30776 _ACEOF
30777 cat confdefs.h >>conftest.$ac_ext
30778 cat >>conftest.$ac_ext <<_ACEOF
30779 /* end confdefs.h.  */
30780
30781 int
30782 main ()
30783 {
30784
30785 volatile int x;
30786 int * volatile y;
30787   ;
30788   return 0;
30789 }
30790 _ACEOF
30791 rm -f conftest.$ac_objext
30792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30793   (eval $ac_compile) 2>conftest.er1
30794   ac_status=$?
30795   grep -v '^ *+' conftest.er1 >conftest.err
30796   rm -f conftest.er1
30797   cat conftest.err >&5
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); } &&
30800          { ac_try='test -z "$ac_c_werror_flag"
30801                          || test ! -s conftest.err'
30802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803   (eval $ac_try) 2>&5
30804   ac_status=$?
30805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806   (exit $ac_status); }; } &&
30807          { ac_try='test -s conftest.$ac_objext'
30808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809   (eval $ac_try) 2>&5
30810   ac_status=$?
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); }; }; then
30813   ac_cv_c_volatile=yes
30814 else
30815   echo "$as_me: failed program was:" >&5
30816 sed 's/^/| /' conftest.$ac_ext >&5
30817
30818 ac_cv_c_volatile=no
30819 fi
30820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30821 fi
30822 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
30823 echo "${ECHO_T}$ac_cv_c_volatile" >&6
30824 if test $ac_cv_c_volatile = no; then
30825
30826 cat >>confdefs.h <<\_ACEOF
30827 #define volatile
30828 _ACEOF
30829
30830 fi
30831
30832 echo "$as_me:$LINENO: checking for library containing strerror" >&5
30833 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
30834 if test "${ac_cv_search_strerror+set}" = set; then
30835   echo $ECHO_N "(cached) $ECHO_C" >&6
30836 else
30837   ac_func_search_save_LIBS=$LIBS
30838 ac_cv_search_strerror=no
30839 cat >conftest.$ac_ext <<_ACEOF
30840 /* confdefs.h.  */
30841 _ACEOF
30842 cat confdefs.h >>conftest.$ac_ext
30843 cat >>conftest.$ac_ext <<_ACEOF
30844 /* end confdefs.h.  */
30845
30846 /* Override any gcc2 internal prototype to avoid an error.  */
30847 #ifdef __cplusplus
30848 extern "C"
30849 #endif
30850 /* We use char because int might match the return type of a gcc2
30851    builtin and then its argument prototype would still apply.  */
30852 char strerror ();
30853 int
30854 main ()
30855 {
30856 strerror ();
30857   ;
30858   return 0;
30859 }
30860 _ACEOF
30861 rm -f conftest.$ac_objext conftest$ac_exeext
30862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30863   (eval $ac_link) 2>conftest.er1
30864   ac_status=$?
30865   grep -v '^ *+' conftest.er1 >conftest.err
30866   rm -f conftest.er1
30867   cat conftest.err >&5
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); } &&
30870          { ac_try='test -z "$ac_c_werror_flag"
30871                          || test ! -s conftest.err'
30872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30873   (eval $ac_try) 2>&5
30874   ac_status=$?
30875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876   (exit $ac_status); }; } &&
30877          { ac_try='test -s conftest$ac_exeext'
30878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30879   (eval $ac_try) 2>&5
30880   ac_status=$?
30881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882   (exit $ac_status); }; }; then
30883   ac_cv_search_strerror="none required"
30884 else
30885   echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30887
30888 fi
30889 rm -f conftest.err conftest.$ac_objext \
30890       conftest$ac_exeext conftest.$ac_ext
30891 if test "$ac_cv_search_strerror" = no; then
30892   for ac_lib in cposix; do
30893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30894     cat >conftest.$ac_ext <<_ACEOF
30895 /* confdefs.h.  */
30896 _ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h.  */
30900
30901 /* Override any gcc2 internal prototype to avoid an error.  */
30902 #ifdef __cplusplus
30903 extern "C"
30904 #endif
30905 /* We use char because int might match the return type of a gcc2
30906    builtin and then its argument prototype would still apply.  */
30907 char strerror ();
30908 int
30909 main ()
30910 {
30911 strerror ();
30912   ;
30913   return 0;
30914 }
30915 _ACEOF
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30918   (eval $ac_link) 2>conftest.er1
30919   ac_status=$?
30920   grep -v '^ *+' conftest.er1 >conftest.err
30921   rm -f conftest.er1
30922   cat conftest.err >&5
30923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924   (exit $ac_status); } &&
30925          { ac_try='test -z "$ac_c_werror_flag"
30926                          || test ! -s conftest.err'
30927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928   (eval $ac_try) 2>&5
30929   ac_status=$?
30930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931   (exit $ac_status); }; } &&
30932          { ac_try='test -s conftest$ac_exeext'
30933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934   (eval $ac_try) 2>&5
30935   ac_status=$?
30936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937   (exit $ac_status); }; }; then
30938   ac_cv_search_strerror="-l$ac_lib"
30939 break
30940 else
30941   echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30943
30944 fi
30945 rm -f conftest.err conftest.$ac_objext \
30946       conftest$ac_exeext conftest.$ac_ext
30947   done
30948 fi
30949 LIBS=$ac_func_search_save_LIBS
30950 fi
30951 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
30952 echo "${ECHO_T}$ac_cv_search_strerror" >&6
30953 if test "$ac_cv_search_strerror" != no; then
30954   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
30955
30956 fi
30957
30958 # Extract the first word of "sh", so it can be a program name with args.
30959 set dummy sh; ac_word=$2
30960 echo "$as_me:$LINENO: checking for $ac_word" >&5
30961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30962 if test "${ac_cv_path_PATH_SH+set}" = set; then
30963   echo $ECHO_N "(cached) $ECHO_C" >&6
30964 else
30965   case $PATH_SH in
30966   [\\/]* | ?:[\\/]*)
30967   ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
30968   ;;
30969   *)
30970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30971 for as_dir in $PATH
30972 do
30973   IFS=$as_save_IFS
30974   test -z "$as_dir" && as_dir=.
30975   for ac_exec_ext in '' $ac_executable_extensions; do
30976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30977     ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
30978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30979     break 2
30980   fi
30981 done
30982 done
30983
30984   ;;
30985 esac
30986 fi
30987 PATH_SH=$ac_cv_path_PATH_SH
30988
30989 if test -n "$PATH_SH"; then
30990   echo "$as_me:$LINENO: result: $PATH_SH" >&5
30991 echo "${ECHO_T}$PATH_SH" >&6
30992 else
30993   echo "$as_me:$LINENO: result: no" >&5
30994 echo "${ECHO_T}no" >&6
30995 fi
30996
30997 # Extract the first word of "perl", so it can be a program name with args.
30998 set dummy perl; ac_word=$2
30999 echo "$as_me:$LINENO: checking for $ac_word" >&5
31000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31001 if test "${ac_cv_path_PATH_PERL+set}" = set; then
31002   echo $ECHO_N "(cached) $ECHO_C" >&6
31003 else
31004   case $PATH_PERL in
31005   [\\/]* | ?:[\\/]*)
31006   ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
31007   ;;
31008   *)
31009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31010 for as_dir in $PATH
31011 do
31012   IFS=$as_save_IFS
31013   test -z "$as_dir" && as_dir=.
31014   for ac_exec_ext in '' $ac_executable_extensions; do
31015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31016     ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
31017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31018     break 2
31019   fi
31020 done
31021 done
31022
31023   ;;
31024 esac
31025 fi
31026 PATH_PERL=$ac_cv_path_PATH_PERL
31027
31028 if test -n "$PATH_PERL"; then
31029   echo "$as_me:$LINENO: result: $PATH_PERL" >&5
31030 echo "${ECHO_T}$PATH_PERL" >&6
31031 else
31032   echo "$as_me:$LINENO: result: no" >&5
31033 echo "${ECHO_T}no" >&6
31034 fi
31035
31036
31037
31038
31039 cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045 #define ACAT(a,b)a ## b
31046 ACAT(Cir,cus)
31047
31048 _ACEOF
31049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31050   $EGREP "Circus" >/dev/null 2>&1; then
31051   cat >>confdefs.h <<\_ACEOF
31052 #define ULONG_CONST(a) a ## UL
31053 _ACEOF
31054
31055 else
31056   cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062 #define RCAT(a,b)a/**/b
31063 RCAT(Rei,ser)
31064
31065 _ACEOF
31066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31067   $EGREP "Reiser" >/dev/null 2>&1; then
31068   cat >>confdefs.h <<\_ACEOF
31069 #define ULONG_CONST(a) a/**/L
31070 _ACEOF
31071
31072 else
31073   { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5
31074 echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
31075    { (exit 1); exit 1; }; }
31076 fi
31077 rm -f conftest*
31078
31079 fi
31080 rm -f conftest*
31081
31082
31083 case "$host" in
31084  *-*-vxworks*)
31085     ac_link="$ac_link $VX_KERNEL"
31086     ;;
31087 esac
31088
31089 # Find a good install program.  We prefer a C program (faster),
31090 # so one script is as good as another.  But avoid the broken or
31091 # incompatible versions:
31092 # SysV /etc/install, /usr/sbin/install
31093 # SunOS /usr/etc/install
31094 # IRIX /sbin/install
31095 # AIX /bin/install
31096 # AmigaOS /C/install, which installs bootblocks on floppy discs
31097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
31098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
31099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
31100 # OS/2's system install, which has a completely different semantic
31101 # ./install, which can be erroneously created by make from ./install.sh.
31102 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
31103 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
31104 if test -z "$INSTALL"; then
31105 if test "${ac_cv_path_install+set}" = set; then
31106   echo $ECHO_N "(cached) $ECHO_C" >&6
31107 else
31108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31109 for as_dir in $PATH
31110 do
31111   IFS=$as_save_IFS
31112   test -z "$as_dir" && as_dir=.
31113   # Account for people who put trailing slashes in PATH elements.
31114 case $as_dir/ in
31115   ./ | .// | /cC/* | \
31116   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
31117   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
31118   /usr/ucb/* ) ;;
31119   *)
31120     # OSF1 and SCO ODT 3.0 have their own names for install.
31121     # Don't use installbsd from OSF since it installs stuff as root
31122     # by default.
31123     for ac_prog in ginstall scoinst install; do
31124       for ac_exec_ext in '' $ac_executable_extensions; do
31125         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
31126           if test $ac_prog = install &&
31127             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
31128             # AIX install.  It has an incompatible calling convention.
31129             :
31130           elif test $ac_prog = install &&
31131             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
31132             # program-specific install script used by HP pwplus--don't use.
31133             :
31134           else
31135             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
31136             break 3
31137           fi
31138         fi
31139       done
31140     done
31141     ;;
31142 esac
31143 done
31144
31145
31146 fi
31147   if test "${ac_cv_path_install+set}" = set; then
31148     INSTALL=$ac_cv_path_install
31149   else
31150     # As a last resort, use the slow shell script.  We don't cache a
31151     # path for INSTALL within a source directory, because that will
31152     # break other packages using the cache if that directory is
31153     # removed, or if the path is relative.
31154     INSTALL=$ac_install_sh
31155   fi
31156 fi
31157 echo "$as_me:$LINENO: result: $INSTALL" >&5
31158 echo "${ECHO_T}$INSTALL" >&6
31159
31160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
31161 # It thinks the first close brace ends the variable substitution.
31162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
31163
31164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
31165
31166 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
31167
31168
31169 case "$host" in
31170  *-pc-cygwin*)
31171
31172 echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
31173 echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
31174 if test "${ac_cv_lib_advapi32_main+set}" = set; then
31175   echo $ECHO_N "(cached) $ECHO_C" >&6
31176 else
31177   ac_check_lib_save_LIBS=$LIBS
31178 LIBS="-ladvapi32  $LIBS"
31179 cat >conftest.$ac_ext <<_ACEOF
31180 /* confdefs.h.  */
31181 _ACEOF
31182 cat confdefs.h >>conftest.$ac_ext
31183 cat >>conftest.$ac_ext <<_ACEOF
31184 /* end confdefs.h.  */
31185
31186
31187 int
31188 main ()
31189 {
31190 main ();
31191   ;
31192   return 0;
31193 }
31194 _ACEOF
31195 rm -f conftest.$ac_objext conftest$ac_exeext
31196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31197   (eval $ac_link) 2>conftest.er1
31198   ac_status=$?
31199   grep -v '^ *+' conftest.er1 >conftest.err
31200   rm -f conftest.er1
31201   cat conftest.err >&5
31202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203   (exit $ac_status); } &&
31204          { ac_try='test -z "$ac_c_werror_flag"
31205                          || test ! -s conftest.err'
31206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31207   (eval $ac_try) 2>&5
31208   ac_status=$?
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); }; } &&
31211          { ac_try='test -s conftest$ac_exeext'
31212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213   (eval $ac_try) 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); }; }; then
31217   ac_cv_lib_advapi32_main=yes
31218 else
31219   echo "$as_me: failed program was:" >&5
31220 sed 's/^/| /' conftest.$ac_ext >&5
31221
31222 ac_cv_lib_advapi32_main=no
31223 fi
31224 rm -f conftest.err conftest.$ac_objext \
31225       conftest$ac_exeext conftest.$ac_ext
31226 LIBS=$ac_check_lib_save_LIBS
31227 fi
31228 echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
31229 echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
31230 if test $ac_cv_lib_advapi32_main = yes; then
31231   cat >>confdefs.h <<_ACEOF
31232 #define HAVE_LIBADVAPI32 1
31233 _ACEOF
31234
31235   LIBS="-ladvapi32 $LIBS"
31236
31237 fi
31238
31239     ;;
31240 esac
31241
31242 echo "$as_me:$LINENO: checking for gethostent" >&5
31243 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
31244 if test "${ac_cv_func_gethostent+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247   cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h.  */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h.  */
31253 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
31254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31255 #define gethostent innocuous_gethostent
31256
31257 /* System header to define __stub macros and hopefully few prototypes,
31258     which can conflict with char gethostent (); below.
31259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31260     <limits.h> exists even on freestanding compilers.  */
31261
31262 #ifdef __STDC__
31263 # include <limits.h>
31264 #else
31265 # include <assert.h>
31266 #endif
31267
31268 #undef gethostent
31269
31270 /* Override any gcc2 internal prototype to avoid an error.  */
31271 #ifdef __cplusplus
31272 extern "C"
31273 {
31274 #endif
31275 /* We use char because int might match the return type of a gcc2
31276    builtin and then its argument prototype would still apply.  */
31277 char gethostent ();
31278 /* The GNU C library defines this for functions which it implements
31279     to always fail with ENOSYS.  Some functions are actually named
31280     something starting with __ and the normal name is an alias.  */
31281 #if defined (__stub_gethostent) || defined (__stub___gethostent)
31282 choke me
31283 #else
31284 char (*f) () = gethostent;
31285 #endif
31286 #ifdef __cplusplus
31287 }
31288 #endif
31289
31290 int
31291 main ()
31292 {
31293 return f != gethostent;
31294   ;
31295   return 0;
31296 }
31297 _ACEOF
31298 rm -f conftest.$ac_objext conftest$ac_exeext
31299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31300   (eval $ac_link) 2>conftest.er1
31301   ac_status=$?
31302   grep -v '^ *+' conftest.er1 >conftest.err
31303   rm -f conftest.er1
31304   cat conftest.err >&5
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); } &&
31307          { ac_try='test -z "$ac_c_werror_flag"
31308                          || test ! -s conftest.err'
31309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310   (eval $ac_try) 2>&5
31311   ac_status=$?
31312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313   (exit $ac_status); }; } &&
31314          { ac_try='test -s conftest$ac_exeext'
31315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316   (eval $ac_try) 2>&5
31317   ac_status=$?
31318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319   (exit $ac_status); }; }; then
31320   ac_cv_func_gethostent=yes
31321 else
31322   echo "$as_me: failed program was:" >&5
31323 sed 's/^/| /' conftest.$ac_ext >&5
31324
31325 ac_cv_func_gethostent=no
31326 fi
31327 rm -f conftest.err conftest.$ac_objext \
31328       conftest$ac_exeext conftest.$ac_ext
31329 fi
31330 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
31331 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
31332 if test $ac_cv_func_gethostent = yes; then
31333   :
31334 else
31335
31336 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
31337 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
31338 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
31339   echo $ECHO_N "(cached) $ECHO_C" >&6
31340 else
31341   ac_check_lib_save_LIBS=$LIBS
31342 LIBS="-lnsl $libxnet -lsocket $LIBS"
31343 cat >conftest.$ac_ext <<_ACEOF
31344 /* confdefs.h.  */
31345 _ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h.  */
31349
31350 /* Override any gcc2 internal prototype to avoid an error.  */
31351 #ifdef __cplusplus
31352 extern "C"
31353 #endif
31354 /* We use char because int might match the return type of a gcc2
31355    builtin and then its argument prototype would still apply.  */
31356 char gethostent ();
31357 int
31358 main ()
31359 {
31360 gethostent ();
31361   ;
31362   return 0;
31363 }
31364 _ACEOF
31365 rm -f conftest.$ac_objext conftest$ac_exeext
31366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31367   (eval $ac_link) 2>conftest.er1
31368   ac_status=$?
31369   grep -v '^ *+' conftest.er1 >conftest.err
31370   rm -f conftest.er1
31371   cat conftest.err >&5
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); } &&
31374          { ac_try='test -z "$ac_c_werror_flag"
31375                          || test ! -s conftest.err'
31376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31377   (eval $ac_try) 2>&5
31378   ac_status=$?
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); }; } &&
31381          { ac_try='test -s conftest$ac_exeext'
31382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383   (eval $ac_try) 2>&5
31384   ac_status=$?
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); }; }; then
31387   ac_cv_lib_nsl_gethostent=yes
31388 else
31389   echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31391
31392 ac_cv_lib_nsl_gethostent=no
31393 fi
31394 rm -f conftest.err conftest.$ac_objext \
31395       conftest$ac_exeext conftest.$ac_ext
31396 LIBS=$ac_check_lib_save_LIBS
31397 fi
31398 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
31399 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
31400 if test $ac_cv_lib_nsl_gethostent = yes; then
31401   cat >>confdefs.h <<_ACEOF
31402 #define HAVE_LIBNSL 1
31403 _ACEOF
31404
31405   LIBS="-lnsl $LIBS"
31406
31407 fi
31408
31409 fi
31410
31411 echo "$as_me:$LINENO: checking for openlog" >&5
31412 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31413 if test "${ac_cv_func_openlog+set}" = set; then
31414   echo $ECHO_N "(cached) $ECHO_C" >&6
31415 else
31416   cat >conftest.$ac_ext <<_ACEOF
31417 /* confdefs.h.  */
31418 _ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h.  */
31422 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31424 #define openlog innocuous_openlog
31425
31426 /* System header to define __stub macros and hopefully few prototypes,
31427     which can conflict with char openlog (); below.
31428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31429     <limits.h> exists even on freestanding compilers.  */
31430
31431 #ifdef __STDC__
31432 # include <limits.h>
31433 #else
31434 # include <assert.h>
31435 #endif
31436
31437 #undef openlog
31438
31439 /* Override any gcc2 internal prototype to avoid an error.  */
31440 #ifdef __cplusplus
31441 extern "C"
31442 {
31443 #endif
31444 /* We use char because int might match the return type of a gcc2
31445    builtin and then its argument prototype would still apply.  */
31446 char openlog ();
31447 /* The GNU C library defines this for functions which it implements
31448     to always fail with ENOSYS.  Some functions are actually named
31449     something starting with __ and the normal name is an alias.  */
31450 #if defined (__stub_openlog) || defined (__stub___openlog)
31451 choke me
31452 #else
31453 char (*f) () = openlog;
31454 #endif
31455 #ifdef __cplusplus
31456 }
31457 #endif
31458
31459 int
31460 main ()
31461 {
31462 return f != openlog;
31463   ;
31464   return 0;
31465 }
31466 _ACEOF
31467 rm -f conftest.$ac_objext conftest$ac_exeext
31468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31469   (eval $ac_link) 2>conftest.er1
31470   ac_status=$?
31471   grep -v '^ *+' conftest.er1 >conftest.err
31472   rm -f conftest.er1
31473   cat conftest.err >&5
31474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475   (exit $ac_status); } &&
31476          { ac_try='test -z "$ac_c_werror_flag"
31477                          || test ! -s conftest.err'
31478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479   (eval $ac_try) 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); }; } &&
31483          { ac_try='test -s conftest$ac_exeext'
31484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485   (eval $ac_try) 2>&5
31486   ac_status=$?
31487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488   (exit $ac_status); }; }; then
31489   ac_cv_func_openlog=yes
31490 else
31491   echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.$ac_ext >&5
31493
31494 ac_cv_func_openlog=no
31495 fi
31496 rm -f conftest.err conftest.$ac_objext \
31497       conftest$ac_exeext conftest.$ac_ext
31498 fi
31499 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31500 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31501 if test $ac_cv_func_openlog = yes; then
31502   :
31503 else
31504
31505 echo "$as_me:$LINENO: checking for openlog in -lgen" >&5
31506 echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
31507 if test "${ac_cv_lib_gen_openlog+set}" = set; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 else
31510   ac_check_lib_save_LIBS=$LIBS
31511 LIBS="-lgen  $LIBS"
31512 cat >conftest.$ac_ext <<_ACEOF
31513 /* confdefs.h.  */
31514 _ACEOF
31515 cat confdefs.h >>conftest.$ac_ext
31516 cat >>conftest.$ac_ext <<_ACEOF
31517 /* end confdefs.h.  */
31518
31519 /* Override any gcc2 internal prototype to avoid an error.  */
31520 #ifdef __cplusplus
31521 extern "C"
31522 #endif
31523 /* We use char because int might match the return type of a gcc2
31524    builtin and then its argument prototype would still apply.  */
31525 char openlog ();
31526 int
31527 main ()
31528 {
31529 openlog ();
31530   ;
31531   return 0;
31532 }
31533 _ACEOF
31534 rm -f conftest.$ac_objext conftest$ac_exeext
31535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31536   (eval $ac_link) 2>conftest.er1
31537   ac_status=$?
31538   grep -v '^ *+' conftest.er1 >conftest.err
31539   rm -f conftest.er1
31540   cat conftest.err >&5
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); } &&
31543          { ac_try='test -z "$ac_c_werror_flag"
31544                          || test ! -s conftest.err'
31545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546   (eval $ac_try) 2>&5
31547   ac_status=$?
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; } &&
31550          { ac_try='test -s conftest$ac_exeext'
31551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552   (eval $ac_try) 2>&5
31553   ac_status=$?
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); }; }; then
31556   ac_cv_lib_gen_openlog=yes
31557 else
31558   echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31560
31561 ac_cv_lib_gen_openlog=no
31562 fi
31563 rm -f conftest.err conftest.$ac_objext \
31564       conftest$ac_exeext conftest.$ac_ext
31565 LIBS=$ac_check_lib_save_LIBS
31566 fi
31567 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5
31568 echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
31569 if test $ac_cv_lib_gen_openlog = yes; then
31570   cat >>confdefs.h <<_ACEOF
31571 #define HAVE_LIBGEN 1
31572 _ACEOF
31573
31574   LIBS="-lgen $LIBS"
31575
31576 else
31577
31578 echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5
31579 echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6
31580 if test "${ac_cv_lib_syslog_openlog+set}" = set; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583   ac_check_lib_save_LIBS=$LIBS
31584 LIBS="-lsyslog $libxnet -lsocket $LIBS"
31585 cat >conftest.$ac_ext <<_ACEOF
31586 /* confdefs.h.  */
31587 _ACEOF
31588 cat confdefs.h >>conftest.$ac_ext
31589 cat >>conftest.$ac_ext <<_ACEOF
31590 /* end confdefs.h.  */
31591
31592 /* Override any gcc2 internal prototype to avoid an error.  */
31593 #ifdef __cplusplus
31594 extern "C"
31595 #endif
31596 /* We use char because int might match the return type of a gcc2
31597    builtin and then its argument prototype would still apply.  */
31598 char openlog ();
31599 int
31600 main ()
31601 {
31602 openlog ();
31603   ;
31604   return 0;
31605 }
31606 _ACEOF
31607 rm -f conftest.$ac_objext conftest$ac_exeext
31608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31609   (eval $ac_link) 2>conftest.er1
31610   ac_status=$?
31611   grep -v '^ *+' conftest.er1 >conftest.err
31612   rm -f conftest.er1
31613   cat conftest.err >&5
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); } &&
31616          { ac_try='test -z "$ac_c_werror_flag"
31617                          || test ! -s conftest.err'
31618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31619   (eval $ac_try) 2>&5
31620   ac_status=$?
31621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622   (exit $ac_status); }; } &&
31623          { ac_try='test -s conftest$ac_exeext'
31624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31625   (eval $ac_try) 2>&5
31626   ac_status=$?
31627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628   (exit $ac_status); }; }; then
31629   ac_cv_lib_syslog_openlog=yes
31630 else
31631   echo "$as_me: failed program was:" >&5
31632 sed 's/^/| /' conftest.$ac_ext >&5
31633
31634 ac_cv_lib_syslog_openlog=no
31635 fi
31636 rm -f conftest.err conftest.$ac_objext \
31637       conftest$ac_exeext conftest.$ac_ext
31638 LIBS=$ac_check_lib_save_LIBS
31639 fi
31640 echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5
31641 echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6
31642 if test $ac_cv_lib_syslog_openlog = yes; then
31643   cat >>confdefs.h <<_ACEOF
31644 #define HAVE_LIBSYSLOG 1
31645 _ACEOF
31646
31647   LIBS="-lsyslog $LIBS"
31648
31649 fi
31650
31651 fi
31652
31653 fi
31654
31655
31656 echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5
31657 echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6
31658 if test "${ac_cv_lib_md5_MD5Init+set}" = set; then
31659   echo $ECHO_N "(cached) $ECHO_C" >&6
31660 else
31661   ac_check_lib_save_LIBS=$LIBS
31662 LIBS="-lmd5  $LIBS"
31663 cat >conftest.$ac_ext <<_ACEOF
31664 /* confdefs.h.  */
31665 _ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h.  */
31669
31670 /* Override any gcc2 internal prototype to avoid an error.  */
31671 #ifdef __cplusplus
31672 extern "C"
31673 #endif
31674 /* We use char because int might match the return type of a gcc2
31675    builtin and then its argument prototype would still apply.  */
31676 char MD5Init ();
31677 int
31678 main ()
31679 {
31680 MD5Init ();
31681   ;
31682   return 0;
31683 }
31684 _ACEOF
31685 rm -f conftest.$ac_objext conftest$ac_exeext
31686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31687   (eval $ac_link) 2>conftest.er1
31688   ac_status=$?
31689   grep -v '^ *+' conftest.er1 >conftest.err
31690   rm -f conftest.er1
31691   cat conftest.err >&5
31692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693   (exit $ac_status); } &&
31694          { ac_try='test -z "$ac_c_werror_flag"
31695                          || test ! -s conftest.err'
31696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697   (eval $ac_try) 2>&5
31698   ac_status=$?
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); }; } &&
31701          { ac_try='test -s conftest$ac_exeext'
31702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703   (eval $ac_try) 2>&5
31704   ac_status=$?
31705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); }; }; then
31707   ac_cv_lib_md5_MD5Init=yes
31708 else
31709   echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.$ac_ext >&5
31711
31712 ac_cv_lib_md5_MD5Init=no
31713 fi
31714 rm -f conftest.err conftest.$ac_objext \
31715       conftest$ac_exeext conftest.$ac_ext
31716 LIBS=$ac_check_lib_save_LIBS
31717 fi
31718 echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5
31719 echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6
31720 if test $ac_cv_lib_md5_MD5Init = yes; then
31721   cat >>confdefs.h <<_ACEOF
31722 #define HAVE_LIBMD5 1
31723 _ACEOF
31724
31725   LIBS="-lmd5 $LIBS"
31726
31727 else
31728
31729 echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5
31730 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
31731 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
31732   echo $ECHO_N "(cached) $ECHO_C" >&6
31733 else
31734   ac_check_lib_save_LIBS=$LIBS
31735 LIBS="-lmd  $LIBS"
31736 cat >conftest.$ac_ext <<_ACEOF
31737 /* confdefs.h.  */
31738 _ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h.  */
31742
31743 /* Override any gcc2 internal prototype to avoid an error.  */
31744 #ifdef __cplusplus
31745 extern "C"
31746 #endif
31747 /* We use char because int might match the return type of a gcc2
31748    builtin and then its argument prototype would still apply.  */
31749 char MD5Init ();
31750 int
31751 main ()
31752 {
31753 MD5Init ();
31754   ;
31755   return 0;
31756 }
31757 _ACEOF
31758 rm -f conftest.$ac_objext conftest$ac_exeext
31759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31760   (eval $ac_link) 2>conftest.er1
31761   ac_status=$?
31762   grep -v '^ *+' conftest.er1 >conftest.err
31763   rm -f conftest.er1
31764   cat conftest.err >&5
31765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766   (exit $ac_status); } &&
31767          { ac_try='test -z "$ac_c_werror_flag"
31768                          || test ! -s conftest.err'
31769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770   (eval $ac_try) 2>&5
31771   ac_status=$?
31772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773   (exit $ac_status); }; } &&
31774          { ac_try='test -s conftest$ac_exeext'
31775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31776   (eval $ac_try) 2>&5
31777   ac_status=$?
31778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); }; }; then
31780   ac_cv_lib_md_MD5Init=yes
31781 else
31782   echo "$as_me: failed program was:" >&5
31783 sed 's/^/| /' conftest.$ac_ext >&5
31784
31785 ac_cv_lib_md_MD5Init=no
31786 fi
31787 rm -f conftest.err conftest.$ac_objext \
31788       conftest$ac_exeext conftest.$ac_ext
31789 LIBS=$ac_check_lib_save_LIBS
31790 fi
31791 echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5
31792 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
31793 if test $ac_cv_lib_md_MD5Init = yes; then
31794   cat >>confdefs.h <<_ACEOF
31795 #define HAVE_LIBMD 1
31796 _ACEOF
31797
31798   LIBS="-lmd $LIBS"
31799
31800 fi
31801
31802 fi
31803
31804
31805 for ac_func in MD5Init
31806 do
31807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31808 echo "$as_me:$LINENO: checking for $ac_func" >&5
31809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31810 if eval "test \"\${$as_ac_var+set}\" = set"; then
31811   echo $ECHO_N "(cached) $ECHO_C" >&6
31812 else
31813   cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31821 #define $ac_func innocuous_$ac_func
31822
31823 /* System header to define __stub macros and hopefully few prototypes,
31824     which can conflict with char $ac_func (); below.
31825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31826     <limits.h> exists even on freestanding compilers.  */
31827
31828 #ifdef __STDC__
31829 # include <limits.h>
31830 #else
31831 # include <assert.h>
31832 #endif
31833
31834 #undef $ac_func
31835
31836 /* Override any gcc2 internal prototype to avoid an error.  */
31837 #ifdef __cplusplus
31838 extern "C"
31839 {
31840 #endif
31841 /* We use char because int might match the return type of a gcc2
31842    builtin and then its argument prototype would still apply.  */
31843 char $ac_func ();
31844 /* The GNU C library defines this for functions which it implements
31845     to always fail with ENOSYS.  Some functions are actually named
31846     something starting with __ and the normal name is an alias.  */
31847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31848 choke me
31849 #else
31850 char (*f) () = $ac_func;
31851 #endif
31852 #ifdef __cplusplus
31853 }
31854 #endif
31855
31856 int
31857 main ()
31858 {
31859 return f != $ac_func;
31860   ;
31861   return 0;
31862 }
31863 _ACEOF
31864 rm -f conftest.$ac_objext conftest$ac_exeext
31865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31866   (eval $ac_link) 2>conftest.er1
31867   ac_status=$?
31868   grep -v '^ *+' conftest.er1 >conftest.err
31869   rm -f conftest.er1
31870   cat conftest.err >&5
31871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872   (exit $ac_status); } &&
31873          { ac_try='test -z "$ac_c_werror_flag"
31874                          || test ! -s conftest.err'
31875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876   (eval $ac_try) 2>&5
31877   ac_status=$?
31878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879   (exit $ac_status); }; } &&
31880          { ac_try='test -s conftest$ac_exeext'
31881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882   (eval $ac_try) 2>&5
31883   ac_status=$?
31884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885   (exit $ac_status); }; }; then
31886   eval "$as_ac_var=yes"
31887 else
31888   echo "$as_me: failed program was:" >&5
31889 sed 's/^/| /' conftest.$ac_ext >&5
31890
31891 eval "$as_ac_var=no"
31892 fi
31893 rm -f conftest.err conftest.$ac_objext \
31894       conftest$ac_exeext conftest.$ac_ext
31895 fi
31896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31898 if test `eval echo '${'$as_ac_var'}'` = yes; then
31899   cat >>confdefs.h <<_ACEOF
31900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31901 _ACEOF
31902
31903 fi
31904 done
31905
31906
31907
31908 for ac_header in readline/history.h readline/readline.h
31909 do
31910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31912   echo "$as_me:$LINENO: checking for $ac_header" >&5
31913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31915   echo $ECHO_N "(cached) $ECHO_C" >&6
31916 fi
31917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31919 else
31920   # Is the header compilable?
31921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31923 cat >conftest.$ac_ext <<_ACEOF
31924 /* confdefs.h.  */
31925 _ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h.  */
31929 $ac_includes_default
31930 #include <$ac_header>
31931 _ACEOF
31932 rm -f conftest.$ac_objext
31933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31934   (eval $ac_compile) 2>conftest.er1
31935   ac_status=$?
31936   grep -v '^ *+' conftest.er1 >conftest.err
31937   rm -f conftest.er1
31938   cat conftest.err >&5
31939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940   (exit $ac_status); } &&
31941          { ac_try='test -z "$ac_c_werror_flag"
31942                          || test ! -s conftest.err'
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); }; } &&
31948          { ac_try='test -s conftest.$ac_objext'
31949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31950   (eval $ac_try) 2>&5
31951   ac_status=$?
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); }; }; then
31954   ac_header_compiler=yes
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959 ac_header_compiler=no
31960 fi
31961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31963 echo "${ECHO_T}$ac_header_compiler" >&6
31964
31965 # Is the header present?
31966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31968 cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h.  */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h.  */
31974 #include <$ac_header>
31975 _ACEOF
31976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31978   ac_status=$?
31979   grep -v '^ *+' conftest.er1 >conftest.err
31980   rm -f conftest.er1
31981   cat conftest.err >&5
31982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983   (exit $ac_status); } >/dev/null; then
31984   if test -s conftest.err; then
31985     ac_cpp_err=$ac_c_preproc_warn_flag
31986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31987   else
31988     ac_cpp_err=
31989   fi
31990 else
31991   ac_cpp_err=yes
31992 fi
31993 if test -z "$ac_cpp_err"; then
31994   ac_header_preproc=yes
31995 else
31996   echo "$as_me: failed program was:" >&5
31997 sed 's/^/| /' conftest.$ac_ext >&5
31998
31999   ac_header_preproc=no
32000 fi
32001 rm -f conftest.err conftest.$ac_ext
32002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32003 echo "${ECHO_T}$ac_header_preproc" >&6
32004
32005 # So?  What about this header?
32006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32007   yes:no: )
32008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32012     ac_header_preproc=yes
32013     ;;
32014   no:yes:* )
32015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32027     (
32028       cat <<\_ASBOX
32029 ## ------------------------------ ##
32030 ## Report this to the ntp lists.  ##
32031 ## ------------------------------ ##
32032 _ASBOX
32033     ) |
32034       sed "s/^/$as_me: WARNING:     /" >&2
32035     ;;
32036 esac
32037 echo "$as_me:$LINENO: checking for $ac_header" >&5
32038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32040   echo $ECHO_N "(cached) $ECHO_C" >&6
32041 else
32042   eval "$as_ac_Header=\$ac_header_preproc"
32043 fi
32044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32046
32047 fi
32048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32049   cat >>confdefs.h <<_ACEOF
32050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32051 _ACEOF
32052
32053 fi
32054
32055 done
32056
32057 case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
32058  *no*) ;;
32059  *) save_LIBS=$LIBS
32060     LIBS=
32061     # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
32062     unset ac_cv_lib_readline_readline
32063
32064 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32065 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32066 if test "${ac_cv_lib_readline_readline+set}" = set; then
32067   echo $ECHO_N "(cached) $ECHO_C" >&6
32068 else
32069   ac_check_lib_save_LIBS=$LIBS
32070 LIBS="-lreadline  $LIBS"
32071 cat >conftest.$ac_ext <<_ACEOF
32072 /* confdefs.h.  */
32073 _ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h.  */
32077
32078 /* Override any gcc2 internal prototype to avoid an error.  */
32079 #ifdef __cplusplus
32080 extern "C"
32081 #endif
32082 /* We use char because int might match the return type of a gcc2
32083    builtin and then its argument prototype would still apply.  */
32084 char readline ();
32085 int
32086 main ()
32087 {
32088 readline ();
32089   ;
32090   return 0;
32091 }
32092 _ACEOF
32093 rm -f conftest.$ac_objext conftest$ac_exeext
32094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32095   (eval $ac_link) 2>conftest.er1
32096   ac_status=$?
32097   grep -v '^ *+' conftest.er1 >conftest.err
32098   rm -f conftest.er1
32099   cat conftest.err >&5
32100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101   (exit $ac_status); } &&
32102          { ac_try='test -z "$ac_c_werror_flag"
32103                          || test ! -s conftest.err'
32104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105   (eval $ac_try) 2>&5
32106   ac_status=$?
32107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108   (exit $ac_status); }; } &&
32109          { ac_try='test -s conftest$ac_exeext'
32110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111   (eval $ac_try) 2>&5
32112   ac_status=$?
32113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114   (exit $ac_status); }; }; then
32115   ac_cv_lib_readline_readline=yes
32116 else
32117   echo "$as_me: failed program was:" >&5
32118 sed 's/^/| /' conftest.$ac_ext >&5
32119
32120 ac_cv_lib_readline_readline=no
32121 fi
32122 rm -f conftest.err conftest.$ac_objext \
32123       conftest$ac_exeext conftest.$ac_ext
32124 LIBS=$ac_check_lib_save_LIBS
32125 fi
32126 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32127 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32128 if test $ac_cv_lib_readline_readline = yes; then
32129   cat >>confdefs.h <<_ACEOF
32130 #define HAVE_LIBREADLINE 1
32131 _ACEOF
32132
32133   LIBS="-lreadline $LIBS"
32134
32135 else
32136   { echo "$as_me:$LINENO: Trying again with -lcurses" >&5
32137 echo "$as_me: Trying again with -lcurses" >&6;}
32138      unset ac_cv_lib_readline_readline
32139      echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32140 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32141 if test "${ac_cv_lib_readline_readline+set}" = set; then
32142   echo $ECHO_N "(cached) $ECHO_C" >&6
32143 else
32144   ac_check_lib_save_LIBS=$LIBS
32145 LIBS="-lreadline -lcurses $LIBS"
32146 cat >conftest.$ac_ext <<_ACEOF
32147 /* confdefs.h.  */
32148 _ACEOF
32149 cat confdefs.h >>conftest.$ac_ext
32150 cat >>conftest.$ac_ext <<_ACEOF
32151 /* end confdefs.h.  */
32152
32153 /* Override any gcc2 internal prototype to avoid an error.  */
32154 #ifdef __cplusplus
32155 extern "C"
32156 #endif
32157 /* We use char because int might match the return type of a gcc2
32158    builtin and then its argument prototype would still apply.  */
32159 char readline ();
32160 int
32161 main ()
32162 {
32163 readline ();
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32170   (eval $ac_link) 2>conftest.er1
32171   ac_status=$?
32172   grep -v '^ *+' conftest.er1 >conftest.err
32173   rm -f conftest.er1
32174   cat conftest.err >&5
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); } &&
32177          { ac_try='test -z "$ac_c_werror_flag"
32178                          || test ! -s conftest.err'
32179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180   (eval $ac_try) 2>&5
32181   ac_status=$?
32182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); }; } &&
32184          { ac_try='test -s conftest$ac_exeext'
32185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186   (eval $ac_try) 2>&5
32187   ac_status=$?
32188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); }; }; then
32190   ac_cv_lib_readline_readline=yes
32191 else
32192   echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32194
32195 ac_cv_lib_readline_readline=no
32196 fi
32197 rm -f conftest.err conftest.$ac_objext \
32198       conftest$ac_exeext conftest.$ac_ext
32199 LIBS=$ac_check_lib_save_LIBS
32200 fi
32201 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32202 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32203 if test $ac_cv_lib_readline_readline = yes; then
32204   LIBS="-lreadline -lcurses $LIBS"
32205       cat >>confdefs.h <<\_ACEOF
32206 #define HAVE_LIBREADLINE 1
32207 _ACEOF
32208
32209
32210 cat >>confdefs.h <<\_ACEOF
32211 #define HAVE_LIBCURSES
32212 _ACEOF
32213
32214 else
32215   echo "$as_me:$LINENO: checking for readline in -ledit" >&5
32216 echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6
32217 if test "${ac_cv_lib_edit_readline+set}" = set; then
32218   echo $ECHO_N "(cached) $ECHO_C" >&6
32219 else
32220   ac_check_lib_save_LIBS=$LIBS
32221 LIBS="-ledit -lcurses $LIBS"
32222 cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h.  */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h.  */
32228
32229 /* Override any gcc2 internal prototype to avoid an error.  */
32230 #ifdef __cplusplus
32231 extern "C"
32232 #endif
32233 /* We use char because int might match the return type of a gcc2
32234    builtin and then its argument prototype would still apply.  */
32235 char readline ();
32236 int
32237 main ()
32238 {
32239 readline ();
32240   ;
32241   return 0;
32242 }
32243 _ACEOF
32244 rm -f conftest.$ac_objext conftest$ac_exeext
32245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32246   (eval $ac_link) 2>conftest.er1
32247   ac_status=$?
32248   grep -v '^ *+' conftest.er1 >conftest.err
32249   rm -f conftest.er1
32250   cat conftest.err >&5
32251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252   (exit $ac_status); } &&
32253          { ac_try='test -z "$ac_c_werror_flag"
32254                          || test ! -s conftest.err'
32255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32256   (eval $ac_try) 2>&5
32257   ac_status=$?
32258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259   (exit $ac_status); }; } &&
32260          { ac_try='test -s conftest$ac_exeext'
32261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32262   (eval $ac_try) 2>&5
32263   ac_status=$?
32264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265   (exit $ac_status); }; }; then
32266   ac_cv_lib_edit_readline=yes
32267 else
32268   echo "$as_me: failed program was:" >&5
32269 sed 's/^/| /' conftest.$ac_ext >&5
32270
32271 ac_cv_lib_edit_readline=no
32272 fi
32273 rm -f conftest.err conftest.$ac_objext \
32274       conftest$ac_exeext conftest.$ac_ext
32275 LIBS=$ac_check_lib_save_LIBS
32276 fi
32277 echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
32278 echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6
32279 if test $ac_cv_lib_edit_readline = yes; then
32280   LIBS="-ledit -lcurses"
32281
32282 cat >>confdefs.h <<\_ACEOF
32283 #define HAVE_LIBEDIT
32284 _ACEOF
32285
32286
32287 cat >>confdefs.h <<\_ACEOF
32288 #define HAVE_LIBCURSES
32289 _ACEOF
32290
32291
32292 fi
32293
32294
32295 fi
32296
32297 fi
32298
32299     READLINE_LIBS=$LIBS
32300
32301     LIBS=$save_LIBS
32302     ;;
32303 esac
32304
32305
32306 case "$host" in
32307  *-*-linux*) ;;
32308  *)
32309
32310 echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
32311 echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
32312 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
32313   echo $ECHO_N "(cached) $ECHO_C" >&6
32314 else
32315   ac_check_lib_save_LIBS=$LIBS
32316 LIBS="-lrt  $LIBS"
32317 cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323
32324 /* Override any gcc2 internal prototype to avoid an error.  */
32325 #ifdef __cplusplus
32326 extern "C"
32327 #endif
32328 /* We use char because int might match the return type of a gcc2
32329    builtin and then its argument prototype would still apply.  */
32330 char sched_setscheduler ();
32331 int
32332 main ()
32333 {
32334 sched_setscheduler ();
32335   ;
32336   return 0;
32337 }
32338 _ACEOF
32339 rm -f conftest.$ac_objext conftest$ac_exeext
32340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32341   (eval $ac_link) 2>conftest.er1
32342   ac_status=$?
32343   grep -v '^ *+' conftest.er1 >conftest.err
32344   rm -f conftest.er1
32345   cat conftest.err >&5
32346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347   (exit $ac_status); } &&
32348          { ac_try='test -z "$ac_c_werror_flag"
32349                          || test ! -s conftest.err'
32350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32351   (eval $ac_try) 2>&5
32352   ac_status=$?
32353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354   (exit $ac_status); }; } &&
32355          { ac_try='test -s conftest$ac_exeext'
32356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32357   (eval $ac_try) 2>&5
32358   ac_status=$?
32359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360   (exit $ac_status); }; }; then
32361   ac_cv_lib_rt_sched_setscheduler=yes
32362 else
32363   echo "$as_me: failed program was:" >&5
32364 sed 's/^/| /' conftest.$ac_ext >&5
32365
32366 ac_cv_lib_rt_sched_setscheduler=no
32367 fi
32368 rm -f conftest.err conftest.$ac_objext \
32369       conftest$ac_exeext conftest.$ac_ext
32370 LIBS=$ac_check_lib_save_LIBS
32371 fi
32372 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
32373 echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
32374 if test $ac_cv_lib_rt_sched_setscheduler = yes; then
32375   cat >>confdefs.h <<_ACEOF
32376 #define HAVE_LIBRT 1
32377 _ACEOF
32378
32379   LIBS="-lrt $LIBS"
32380
32381 else
32382
32383 echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
32384 echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
32385 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
32386   echo $ECHO_N "(cached) $ECHO_C" >&6
32387 else
32388   ac_check_lib_save_LIBS=$LIBS
32389 LIBS="-lposix4  $LIBS"
32390 cat >conftest.$ac_ext <<_ACEOF
32391 /* confdefs.h.  */
32392 _ACEOF
32393 cat confdefs.h >>conftest.$ac_ext
32394 cat >>conftest.$ac_ext <<_ACEOF
32395 /* end confdefs.h.  */
32396
32397 /* Override any gcc2 internal prototype to avoid an error.  */
32398 #ifdef __cplusplus
32399 extern "C"
32400 #endif
32401 /* We use char because int might match the return type of a gcc2
32402    builtin and then its argument prototype would still apply.  */
32403 char sched_setscheduler ();
32404 int
32405 main ()
32406 {
32407 sched_setscheduler ();
32408   ;
32409   return 0;
32410 }
32411 _ACEOF
32412 rm -f conftest.$ac_objext conftest$ac_exeext
32413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32414   (eval $ac_link) 2>conftest.er1
32415   ac_status=$?
32416   grep -v '^ *+' conftest.er1 >conftest.err
32417   rm -f conftest.er1
32418   cat conftest.err >&5
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); } &&
32421          { ac_try='test -z "$ac_c_werror_flag"
32422                          || test ! -s conftest.err'
32423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424   (eval $ac_try) 2>&5
32425   ac_status=$?
32426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427   (exit $ac_status); }; } &&
32428          { ac_try='test -s conftest$ac_exeext'
32429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430   (eval $ac_try) 2>&5
32431   ac_status=$?
32432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433   (exit $ac_status); }; }; then
32434   ac_cv_lib_posix4_sched_setscheduler=yes
32435 else
32436   echo "$as_me: failed program was:" >&5
32437 sed 's/^/| /' conftest.$ac_ext >&5
32438
32439 ac_cv_lib_posix4_sched_setscheduler=no
32440 fi
32441 rm -f conftest.err conftest.$ac_objext \
32442       conftest$ac_exeext conftest.$ac_ext
32443 LIBS=$ac_check_lib_save_LIBS
32444 fi
32445 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
32446 echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
32447 if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
32448   cat >>confdefs.h <<_ACEOF
32449 #define HAVE_LIBPOSIX4 1
32450 _ACEOF
32451
32452   LIBS="-lposix4 $LIBS"
32453
32454 fi
32455
32456 fi
32457
32458     ;;
32459 esac
32460
32461 echo "$as_me:$LINENO: checking for setsockopt" >&5
32462 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
32463 if test "${ac_cv_func_setsockopt+set}" = set; then
32464   echo $ECHO_N "(cached) $ECHO_C" >&6
32465 else
32466   cat >conftest.$ac_ext <<_ACEOF
32467 /* confdefs.h.  */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h.  */
32472 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
32473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32474 #define setsockopt innocuous_setsockopt
32475
32476 /* System header to define __stub macros and hopefully few prototypes,
32477     which can conflict with char setsockopt (); below.
32478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32479     <limits.h> exists even on freestanding compilers.  */
32480
32481 #ifdef __STDC__
32482 # include <limits.h>
32483 #else
32484 # include <assert.h>
32485 #endif
32486
32487 #undef setsockopt
32488
32489 /* Override any gcc2 internal prototype to avoid an error.  */
32490 #ifdef __cplusplus
32491 extern "C"
32492 {
32493 #endif
32494 /* We use char because int might match the return type of a gcc2
32495    builtin and then its argument prototype would still apply.  */
32496 char setsockopt ();
32497 /* The GNU C library defines this for functions which it implements
32498     to always fail with ENOSYS.  Some functions are actually named
32499     something starting with __ and the normal name is an alias.  */
32500 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
32501 choke me
32502 #else
32503 char (*f) () = setsockopt;
32504 #endif
32505 #ifdef __cplusplus
32506 }
32507 #endif
32508
32509 int
32510 main ()
32511 {
32512 return f != setsockopt;
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext conftest$ac_exeext
32518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32519   (eval $ac_link) 2>conftest.er1
32520   ac_status=$?
32521   grep -v '^ *+' conftest.er1 >conftest.err
32522   rm -f conftest.er1
32523   cat conftest.err >&5
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); } &&
32526          { ac_try='test -z "$ac_c_werror_flag"
32527                          || test ! -s conftest.err'
32528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32529   (eval $ac_try) 2>&5
32530   ac_status=$?
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); }; } &&
32533          { ac_try='test -s conftest$ac_exeext'
32534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535   (eval $ac_try) 2>&5
32536   ac_status=$?
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); }; }; then
32539   ac_cv_func_setsockopt=yes
32540 else
32541   echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.$ac_ext >&5
32543
32544 ac_cv_func_setsockopt=no
32545 fi
32546 rm -f conftest.err conftest.$ac_objext \
32547       conftest$ac_exeext conftest.$ac_ext
32548 fi
32549 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
32550 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
32551 if test $ac_cv_func_setsockopt = yes; then
32552   :
32553 else
32554
32555 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
32556 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
32557 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
32558   echo $ECHO_N "(cached) $ECHO_C" >&6
32559 else
32560   ac_check_lib_save_LIBS=$LIBS
32561 LIBS="-lsocket  $LIBS"
32562 cat >conftest.$ac_ext <<_ACEOF
32563 /* confdefs.h.  */
32564 _ACEOF
32565 cat confdefs.h >>conftest.$ac_ext
32566 cat >>conftest.$ac_ext <<_ACEOF
32567 /* end confdefs.h.  */
32568
32569 /* Override any gcc2 internal prototype to avoid an error.  */
32570 #ifdef __cplusplus
32571 extern "C"
32572 #endif
32573 /* We use char because int might match the return type of a gcc2
32574    builtin and then its argument prototype would still apply.  */
32575 char setsockopt ();
32576 int
32577 main ()
32578 {
32579 setsockopt ();
32580   ;
32581   return 0;
32582 }
32583 _ACEOF
32584 rm -f conftest.$ac_objext conftest$ac_exeext
32585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32586   (eval $ac_link) 2>conftest.er1
32587   ac_status=$?
32588   grep -v '^ *+' conftest.er1 >conftest.err
32589   rm -f conftest.er1
32590   cat conftest.err >&5
32591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); } &&
32593          { ac_try='test -z "$ac_c_werror_flag"
32594                          || test ! -s conftest.err'
32595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596   (eval $ac_try) 2>&5
32597   ac_status=$?
32598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599   (exit $ac_status); }; } &&
32600          { ac_try='test -s conftest$ac_exeext'
32601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602   (eval $ac_try) 2>&5
32603   ac_status=$?
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); }; }; then
32606   ac_cv_lib_socket_setsockopt=yes
32607 else
32608   echo "$as_me: failed program was:" >&5
32609 sed 's/^/| /' conftest.$ac_ext >&5
32610
32611 ac_cv_lib_socket_setsockopt=no
32612 fi
32613 rm -f conftest.err conftest.$ac_objext \
32614       conftest$ac_exeext conftest.$ac_ext
32615 LIBS=$ac_check_lib_save_LIBS
32616 fi
32617 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
32618 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
32619 if test $ac_cv_lib_socket_setsockopt = yes; then
32620   cat >>confdefs.h <<_ACEOF
32621 #define HAVE_LIBSOCKET 1
32622 _ACEOF
32623
32624   LIBS="-lsocket $LIBS"
32625
32626 fi
32627
32628
32629 echo "$as_me:$LINENO: checking for setsockopt in -lxnet" >&5
32630 echo $ECHO_N "checking for setsockopt in -lxnet... $ECHO_C" >&6
32631 if test "${ac_cv_lib_xnet_setsockopt+set}" = set; then
32632   echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634   ac_check_lib_save_LIBS=$LIBS
32635 LIBS="-lxnet  $LIBS"
32636 cat >conftest.$ac_ext <<_ACEOF
32637 /* confdefs.h.  */
32638 _ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h.  */
32642
32643 /* Override any gcc2 internal prototype to avoid an error.  */
32644 #ifdef __cplusplus
32645 extern "C"
32646 #endif
32647 /* We use char because int might match the return type of a gcc2
32648    builtin and then its argument prototype would still apply.  */
32649 char setsockopt ();
32650 int
32651 main ()
32652 {
32653 setsockopt ();
32654   ;
32655   return 0;
32656 }
32657 _ACEOF
32658 rm -f conftest.$ac_objext conftest$ac_exeext
32659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32660   (eval $ac_link) 2>conftest.er1
32661   ac_status=$?
32662   grep -v '^ *+' conftest.er1 >conftest.err
32663   rm -f conftest.er1
32664   cat conftest.err >&5
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); } &&
32667          { ac_try='test -z "$ac_c_werror_flag"
32668                          || test ! -s conftest.err'
32669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670   (eval $ac_try) 2>&5
32671   ac_status=$?
32672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673   (exit $ac_status); }; } &&
32674          { ac_try='test -s conftest$ac_exeext'
32675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676   (eval $ac_try) 2>&5
32677   ac_status=$?
32678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679   (exit $ac_status); }; }; then
32680   ac_cv_lib_xnet_setsockopt=yes
32681 else
32682   echo "$as_me: failed program was:" >&5
32683 sed 's/^/| /' conftest.$ac_ext >&5
32684
32685 ac_cv_lib_xnet_setsockopt=no
32686 fi
32687 rm -f conftest.err conftest.$ac_objext \
32688       conftest$ac_exeext conftest.$ac_ext
32689 LIBS=$ac_check_lib_save_LIBS
32690 fi
32691 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_setsockopt" >&5
32692 echo "${ECHO_T}$ac_cv_lib_xnet_setsockopt" >&6
32693 if test $ac_cv_lib_xnet_setsockopt = yes; then
32694   cat >>confdefs.h <<_ACEOF
32695 #define HAVE_LIBXNET 1
32696 _ACEOF
32697
32698   LIBS="-lxnet $LIBS"
32699
32700 fi
32701
32702 fi
32703
32704
32705 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
32706 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
32707 if test "${ac_cv_header_stdc+set}" = set; then
32708   echo $ECHO_N "(cached) $ECHO_C" >&6
32709 else
32710   cat >conftest.$ac_ext <<_ACEOF
32711 /* confdefs.h.  */
32712 _ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h.  */
32716 #include <stdlib.h>
32717 #include <stdarg.h>
32718 #include <string.h>
32719 #include <float.h>
32720
32721 int
32722 main ()
32723 {
32724
32725   ;
32726   return 0;
32727 }
32728 _ACEOF
32729 rm -f conftest.$ac_objext
32730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32731   (eval $ac_compile) 2>conftest.er1
32732   ac_status=$?
32733   grep -v '^ *+' conftest.er1 >conftest.err
32734   rm -f conftest.er1
32735   cat conftest.err >&5
32736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737   (exit $ac_status); } &&
32738          { ac_try='test -z "$ac_c_werror_flag"
32739                          || test ! -s conftest.err'
32740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32741   (eval $ac_try) 2>&5
32742   ac_status=$?
32743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744   (exit $ac_status); }; } &&
32745          { ac_try='test -s conftest.$ac_objext'
32746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747   (eval $ac_try) 2>&5
32748   ac_status=$?
32749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750   (exit $ac_status); }; }; then
32751   ac_cv_header_stdc=yes
32752 else
32753   echo "$as_me: failed program was:" >&5
32754 sed 's/^/| /' conftest.$ac_ext >&5
32755
32756 ac_cv_header_stdc=no
32757 fi
32758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32759
32760 if test $ac_cv_header_stdc = yes; then
32761   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32762   cat >conftest.$ac_ext <<_ACEOF
32763 /* confdefs.h.  */
32764 _ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h.  */
32768 #include <string.h>
32769
32770 _ACEOF
32771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32772   $EGREP "memchr" >/dev/null 2>&1; then
32773   :
32774 else
32775   ac_cv_header_stdc=no
32776 fi
32777 rm -f conftest*
32778
32779 fi
32780
32781 if test $ac_cv_header_stdc = yes; then
32782   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
32783   cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h.  */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h.  */
32789 #include <stdlib.h>
32790
32791 _ACEOF
32792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32793   $EGREP "free" >/dev/null 2>&1; then
32794   :
32795 else
32796   ac_cv_header_stdc=no
32797 fi
32798 rm -f conftest*
32799
32800 fi
32801
32802 if test $ac_cv_header_stdc = yes; then
32803   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
32804   if test "$cross_compiling" = yes; then
32805   :
32806 else
32807   cat >conftest.$ac_ext <<_ACEOF
32808 /* confdefs.h.  */
32809 _ACEOF
32810 cat confdefs.h >>conftest.$ac_ext
32811 cat >>conftest.$ac_ext <<_ACEOF
32812 /* end confdefs.h.  */
32813 #include <ctype.h>
32814 #if ((' ' & 0x0FF) == 0x020)
32815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32817 #else
32818 # define ISLOWER(c) \
32819                    (('a' <= (c) && (c) <= 'i') \
32820                      || ('j' <= (c) && (c) <= 'r') \
32821                      || ('s' <= (c) && (c) <= 'z'))
32822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
32823 #endif
32824
32825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
32826 int
32827 main ()
32828 {
32829   int i;
32830   for (i = 0; i < 256; i++)
32831     if (XOR (islower (i), ISLOWER (i))
32832         || toupper (i) != TOUPPER (i))
32833       exit(2);
32834   exit (0);
32835 }
32836 _ACEOF
32837 rm -f conftest$ac_exeext
32838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32839   (eval $ac_link) 2>&5
32840   ac_status=$?
32841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32844   (eval $ac_try) 2>&5
32845   ac_status=$?
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); }; }; then
32848   :
32849 else
32850   echo "$as_me: program exited with status $ac_status" >&5
32851 echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32853
32854 ( exit $ac_status )
32855 ac_cv_header_stdc=no
32856 fi
32857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32858 fi
32859 fi
32860 fi
32861 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32862 echo "${ECHO_T}$ac_cv_header_stdc" >&6
32863 if test $ac_cv_header_stdc = yes; then
32864
32865 cat >>confdefs.h <<\_ACEOF
32866 #define STDC_HEADERS 1
32867 _ACEOF
32868
32869 fi
32870
32871
32872 for ac_header in bstring.h
32873 do
32874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32876   echo "$as_me:$LINENO: checking for $ac_header" >&5
32877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32879   echo $ECHO_N "(cached) $ECHO_C" >&6
32880 fi
32881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32883 else
32884   # Is the header compilable?
32885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32887 cat >conftest.$ac_ext <<_ACEOF
32888 /* confdefs.h.  */
32889 _ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h.  */
32893 $ac_includes_default
32894 #include <$ac_header>
32895 _ACEOF
32896 rm -f conftest.$ac_objext
32897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32898   (eval $ac_compile) 2>conftest.er1
32899   ac_status=$?
32900   grep -v '^ *+' conftest.er1 >conftest.err
32901   rm -f conftest.er1
32902   cat conftest.err >&5
32903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904   (exit $ac_status); } &&
32905          { ac_try='test -z "$ac_c_werror_flag"
32906                          || test ! -s conftest.err'
32907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32908   (eval $ac_try) 2>&5
32909   ac_status=$?
32910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911   (exit $ac_status); }; } &&
32912          { ac_try='test -s conftest.$ac_objext'
32913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32914   (eval $ac_try) 2>&5
32915   ac_status=$?
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); }; }; then
32918   ac_header_compiler=yes
32919 else
32920   echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32922
32923 ac_header_compiler=no
32924 fi
32925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32927 echo "${ECHO_T}$ac_header_compiler" >&6
32928
32929 # Is the header present?
32930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32932 cat >conftest.$ac_ext <<_ACEOF
32933 /* confdefs.h.  */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h.  */
32938 #include <$ac_header>
32939 _ACEOF
32940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } >/dev/null; then
32948   if test -s conftest.err; then
32949     ac_cpp_err=$ac_c_preproc_warn_flag
32950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32951   else
32952     ac_cpp_err=
32953   fi
32954 else
32955   ac_cpp_err=yes
32956 fi
32957 if test -z "$ac_cpp_err"; then
32958   ac_header_preproc=yes
32959 else
32960   echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963   ac_header_preproc=no
32964 fi
32965 rm -f conftest.err conftest.$ac_ext
32966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32967 echo "${ECHO_T}$ac_header_preproc" >&6
32968
32969 # So?  What about this header?
32970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32971   yes:no: )
32972     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32976     ac_header_preproc=yes
32977     ;;
32978   no:yes:* )
32979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32981     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32982 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32983     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32985     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32986 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32989     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32991     (
32992       cat <<\_ASBOX
32993 ## ------------------------------ ##
32994 ## Report this to the ntp lists.  ##
32995 ## ------------------------------ ##
32996 _ASBOX
32997     ) |
32998       sed "s/^/$as_me: WARNING:     /" >&2
32999     ;;
33000 esac
33001 echo "$as_me:$LINENO: checking for $ac_header" >&5
33002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33004   echo $ECHO_N "(cached) $ECHO_C" >&6
33005 else
33006   eval "$as_ac_Header=\$ac_header_preproc"
33007 fi
33008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33010
33011 fi
33012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33013   cat >>confdefs.h <<_ACEOF
33014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33015 _ACEOF
33016
33017 fi
33018
33019 done
33020
33021 if test "${ac_cv_header_dns_sd_h+set}" = set; then
33022   echo "$as_me:$LINENO: checking for dns_sd.h" >&5
33023 echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6
33024 if test "${ac_cv_header_dns_sd_h+set}" = set; then
33025   echo $ECHO_N "(cached) $ECHO_C" >&6
33026 fi
33027 echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
33028 echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
33029 else
33030   # Is the header compilable?
33031 echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
33032 echo $ECHO_N "checking dns_sd.h usability... $ECHO_C" >&6
33033 cat >conftest.$ac_ext <<_ACEOF
33034 /* confdefs.h.  */
33035 _ACEOF
33036 cat confdefs.h >>conftest.$ac_ext
33037 cat >>conftest.$ac_ext <<_ACEOF
33038 /* end confdefs.h.  */
33039 $ac_includes_default
33040 #include <dns_sd.h>
33041 _ACEOF
33042 rm -f conftest.$ac_objext
33043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33044   (eval $ac_compile) 2>conftest.er1
33045   ac_status=$?
33046   grep -v '^ *+' conftest.er1 >conftest.err
33047   rm -f conftest.er1
33048   cat conftest.err >&5
33049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050   (exit $ac_status); } &&
33051          { ac_try='test -z "$ac_c_werror_flag"
33052                          || test ! -s conftest.err'
33053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054   (eval $ac_try) 2>&5
33055   ac_status=$?
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); }; } &&
33058          { ac_try='test -s conftest.$ac_objext'
33059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060   (eval $ac_try) 2>&5
33061   ac_status=$?
33062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063   (exit $ac_status); }; }; then
33064   ac_header_compiler=yes
33065 else
33066   echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33068
33069 ac_header_compiler=no
33070 fi
33071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33073 echo "${ECHO_T}$ac_header_compiler" >&6
33074
33075 # Is the header present?
33076 echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
33077 echo $ECHO_N "checking dns_sd.h presence... $ECHO_C" >&6
33078 cat >conftest.$ac_ext <<_ACEOF
33079 /* confdefs.h.  */
33080 _ACEOF
33081 cat confdefs.h >>conftest.$ac_ext
33082 cat >>conftest.$ac_ext <<_ACEOF
33083 /* end confdefs.h.  */
33084 #include <dns_sd.h>
33085 _ACEOF
33086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33088   ac_status=$?
33089   grep -v '^ *+' conftest.er1 >conftest.err
33090   rm -f conftest.er1
33091   cat conftest.err >&5
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); } >/dev/null; then
33094   if test -s conftest.err; then
33095     ac_cpp_err=$ac_c_preproc_warn_flag
33096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33097   else
33098     ac_cpp_err=
33099   fi
33100 else
33101   ac_cpp_err=yes
33102 fi
33103 if test -z "$ac_cpp_err"; then
33104   ac_header_preproc=yes
33105 else
33106   echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33108
33109   ac_header_preproc=no
33110 fi
33111 rm -f conftest.err conftest.$ac_ext
33112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33113 echo "${ECHO_T}$ac_header_preproc" >&6
33114
33115 # So?  What about this header?
33116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33117   yes:no: )
33118     { echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
33119 echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33120     { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
33121 echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
33122     ac_header_preproc=yes
33123     ;;
33124   no:yes:* )
33125     { echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
33126 echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
33127     { echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
33128 echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
33129     { echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
33130 echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
33131     { echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
33132 echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33133     { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
33134 echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
33135     { echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
33136 echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
33137     (
33138       cat <<\_ASBOX
33139 ## ------------------------------ ##
33140 ## Report this to the ntp lists.  ##
33141 ## ------------------------------ ##
33142 _ASBOX
33143     ) |
33144       sed "s/^/$as_me: WARNING:     /" >&2
33145     ;;
33146 esac
33147 echo "$as_me:$LINENO: checking for dns_sd.h" >&5
33148 echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6
33149 if test "${ac_cv_header_dns_sd_h+set}" = set; then
33150   echo $ECHO_N "(cached) $ECHO_C" >&6
33151 else
33152   ac_cv_header_dns_sd_h=$ac_header_preproc
33153 fi
33154 echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
33155 echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6
33156
33157 fi
33158 if test $ac_cv_header_dns_sd_h = yes; then
33159   echo "$as_me:$LINENO: checking for DNSServiceRegister in -ldns_sd" >&5
33160 echo $ECHO_N "checking for DNSServiceRegister in -ldns_sd... $ECHO_C" >&6
33161 if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then
33162   echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164   ac_check_lib_save_LIBS=$LIBS
33165 LIBS="-ldns_sd  $LIBS"
33166 cat >conftest.$ac_ext <<_ACEOF
33167 /* confdefs.h.  */
33168 _ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h.  */
33172
33173 /* Override any gcc2 internal prototype to avoid an error.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 #endif
33177 /* We use char because int might match the return type of a gcc2
33178    builtin and then its argument prototype would still apply.  */
33179 char DNSServiceRegister ();
33180 int
33181 main ()
33182 {
33183 DNSServiceRegister ();
33184   ;
33185   return 0;
33186 }
33187 _ACEOF
33188 rm -f conftest.$ac_objext conftest$ac_exeext
33189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33190   (eval $ac_link) 2>conftest.er1
33191   ac_status=$?
33192   grep -v '^ *+' conftest.er1 >conftest.err
33193   rm -f conftest.er1
33194   cat conftest.err >&5
33195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196   (exit $ac_status); } &&
33197          { ac_try='test -z "$ac_c_werror_flag"
33198                          || test ! -s conftest.err'
33199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200   (eval $ac_try) 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; } &&
33204          { ac_try='test -s conftest$ac_exeext'
33205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206   (eval $ac_try) 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ac_cv_lib_dns_sd_DNSServiceRegister=yes
33211 else
33212   echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_cv_lib_dns_sd_DNSServiceRegister=no
33216 fi
33217 rm -f conftest.err conftest.$ac_objext \
33218       conftest$ac_exeext conftest.$ac_ext
33219 LIBS=$ac_check_lib_save_LIBS
33220 fi
33221 echo "$as_me:$LINENO: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
33222 echo "${ECHO_T}$ac_cv_lib_dns_sd_DNSServiceRegister" >&6
33223 if test $ac_cv_lib_dns_sd_DNSServiceRegister = yes; then
33224
33225 cat >>confdefs.h <<\_ACEOF
33226 #define HAVE_DNSREGISTRATION 1
33227 _ACEOF
33228
33229 fi
33230
33231 fi
33232
33233
33234 case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
33235  yes) LIBS="-ldns_sd $LIBS" ;;
33236 esac
33237
33238
33239
33240
33241 for ac_header in errno.h fcntl.h ieeefp.h math.h
33242 do
33243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33245   echo "$as_me:$LINENO: checking for $ac_header" >&5
33246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33248   echo $ECHO_N "(cached) $ECHO_C" >&6
33249 fi
33250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33252 else
33253   # Is the header compilable?
33254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33256 cat >conftest.$ac_ext <<_ACEOF
33257 /* confdefs.h.  */
33258 _ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h.  */
33262 $ac_includes_default
33263 #include <$ac_header>
33264 _ACEOF
33265 rm -f conftest.$ac_objext
33266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33267   (eval $ac_compile) 2>conftest.er1
33268   ac_status=$?
33269   grep -v '^ *+' conftest.er1 >conftest.err
33270   rm -f conftest.er1
33271   cat conftest.err >&5
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); } &&
33274          { ac_try='test -z "$ac_c_werror_flag"
33275                          || test ! -s conftest.err'
33276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33277   (eval $ac_try) 2>&5
33278   ac_status=$?
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); }; } &&
33281          { ac_try='test -s conftest.$ac_objext'
33282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33283   (eval $ac_try) 2>&5
33284   ac_status=$?
33285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286   (exit $ac_status); }; }; then
33287   ac_header_compiler=yes
33288 else
33289   echo "$as_me: failed program was:" >&5
33290 sed 's/^/| /' conftest.$ac_ext >&5
33291
33292 ac_header_compiler=no
33293 fi
33294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33296 echo "${ECHO_T}$ac_header_compiler" >&6
33297
33298 # Is the header present?
33299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33301 cat >conftest.$ac_ext <<_ACEOF
33302 /* confdefs.h.  */
33303 _ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h.  */
33307 #include <$ac_header>
33308 _ACEOF
33309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33311   ac_status=$?
33312   grep -v '^ *+' conftest.er1 >conftest.err
33313   rm -f conftest.er1
33314   cat conftest.err >&5
33315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316   (exit $ac_status); } >/dev/null; then
33317   if test -s conftest.err; then
33318     ac_cpp_err=$ac_c_preproc_warn_flag
33319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33320   else
33321     ac_cpp_err=
33322   fi
33323 else
33324   ac_cpp_err=yes
33325 fi
33326 if test -z "$ac_cpp_err"; then
33327   ac_header_preproc=yes
33328 else
33329   echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33331
33332   ac_header_preproc=no
33333 fi
33334 rm -f conftest.err conftest.$ac_ext
33335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33336 echo "${ECHO_T}$ac_header_preproc" >&6
33337
33338 # So?  What about this header?
33339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33340   yes:no: )
33341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33345     ac_header_preproc=yes
33346     ;;
33347   no:yes:* )
33348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33360     (
33361       cat <<\_ASBOX
33362 ## ------------------------------ ##
33363 ## Report this to the ntp lists.  ##
33364 ## ------------------------------ ##
33365 _ASBOX
33366     ) |
33367       sed "s/^/$as_me: WARNING:     /" >&2
33368     ;;
33369 esac
33370 echo "$as_me:$LINENO: checking for $ac_header" >&5
33371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33373   echo $ECHO_N "(cached) $ECHO_C" >&6
33374 else
33375   eval "$as_ac_Header=\$ac_header_preproc"
33376 fi
33377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33379
33380 fi
33381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33382   cat >>confdefs.h <<_ACEOF
33383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33384 _ACEOF
33385
33386 fi
33387
33388 done
33389
33390
33391 # HMS: Lame, but fast.
33392 if test -f /etc/redhat-release
33393 then
33394     :
33395 else
33396
33397 for ac_header in md5.h
33398 do
33399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33400 echo "$as_me:$LINENO: checking for $ac_header" >&5
33401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33403   echo $ECHO_N "(cached) $ECHO_C" >&6
33404 else
33405   cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h.  */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h.  */
33411 #if HAVE_SYS_TYPES_H
33412 #include <sys/types.h>
33413 #endif
33414
33415
33416 #include <$ac_header>
33417 _ACEOF
33418 rm -f conftest.$ac_objext
33419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33420   (eval $ac_compile) 2>conftest.er1
33421   ac_status=$?
33422   grep -v '^ *+' conftest.er1 >conftest.err
33423   rm -f conftest.er1
33424   cat conftest.err >&5
33425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426   (exit $ac_status); } &&
33427          { ac_try='test -z "$ac_c_werror_flag"
33428                          || test ! -s conftest.err'
33429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430   (eval $ac_try) 2>&5
33431   ac_status=$?
33432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433   (exit $ac_status); }; } &&
33434          { ac_try='test -s conftest.$ac_objext'
33435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436   (eval $ac_try) 2>&5
33437   ac_status=$?
33438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439   (exit $ac_status); }; }; then
33440   eval "$as_ac_Header=yes"
33441 else
33442   echo "$as_me: failed program was:" >&5
33443 sed 's/^/| /' conftest.$ac_ext >&5
33444
33445 eval "$as_ac_Header=no"
33446 fi
33447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33448 fi
33449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33452   cat >>confdefs.h <<_ACEOF
33453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33454 _ACEOF
33455
33456 fi
33457
33458 done
33459
33460 fi
33461
33462
33463
33464 for ac_header in memory.h netdb.h poll.h
33465 do
33466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33468   echo "$as_me:$LINENO: checking for $ac_header" >&5
33469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33471   echo $ECHO_N "(cached) $ECHO_C" >&6
33472 fi
33473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33475 else
33476   # Is the header compilable?
33477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33479 cat >conftest.$ac_ext <<_ACEOF
33480 /* confdefs.h.  */
33481 _ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h.  */
33485 $ac_includes_default
33486 #include <$ac_header>
33487 _ACEOF
33488 rm -f conftest.$ac_objext
33489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33490   (eval $ac_compile) 2>conftest.er1
33491   ac_status=$?
33492   grep -v '^ *+' conftest.er1 >conftest.err
33493   rm -f conftest.er1
33494   cat conftest.err >&5
33495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496   (exit $ac_status); } &&
33497          { ac_try='test -z "$ac_c_werror_flag"
33498                          || test ! -s conftest.err'
33499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500   (eval $ac_try) 2>&5
33501   ac_status=$?
33502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503   (exit $ac_status); }; } &&
33504          { ac_try='test -s conftest.$ac_objext'
33505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33506   (eval $ac_try) 2>&5
33507   ac_status=$?
33508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509   (exit $ac_status); }; }; then
33510   ac_header_compiler=yes
33511 else
33512   echo "$as_me: failed program was:" >&5
33513 sed 's/^/| /' conftest.$ac_ext >&5
33514
33515 ac_header_compiler=no
33516 fi
33517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33519 echo "${ECHO_T}$ac_header_compiler" >&6
33520
33521 # Is the header present?
33522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33524 cat >conftest.$ac_ext <<_ACEOF
33525 /* confdefs.h.  */
33526 _ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h.  */
33530 #include <$ac_header>
33531 _ACEOF
33532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33534   ac_status=$?
33535   grep -v '^ *+' conftest.er1 >conftest.err
33536   rm -f conftest.er1
33537   cat conftest.err >&5
33538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539   (exit $ac_status); } >/dev/null; then
33540   if test -s conftest.err; then
33541     ac_cpp_err=$ac_c_preproc_warn_flag
33542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33543   else
33544     ac_cpp_err=
33545   fi
33546 else
33547   ac_cpp_err=yes
33548 fi
33549 if test -z "$ac_cpp_err"; then
33550   ac_header_preproc=yes
33551 else
33552   echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33554
33555   ac_header_preproc=no
33556 fi
33557 rm -f conftest.err conftest.$ac_ext
33558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33559 echo "${ECHO_T}$ac_header_preproc" >&6
33560
33561 # So?  What about this header?
33562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33563   yes:no: )
33564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33568     ac_header_preproc=yes
33569     ;;
33570   no:yes:* )
33571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33583     (
33584       cat <<\_ASBOX
33585 ## ------------------------------ ##
33586 ## Report this to the ntp lists.  ##
33587 ## ------------------------------ ##
33588 _ASBOX
33589     ) |
33590       sed "s/^/$as_me: WARNING:     /" >&2
33591     ;;
33592 esac
33593 echo "$as_me:$LINENO: checking for $ac_header" >&5
33594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33596   echo $ECHO_N "(cached) $ECHO_C" >&6
33597 else
33598   eval "$as_ac_Header=\$ac_header_preproc"
33599 fi
33600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33602
33603 fi
33604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33605   cat >>confdefs.h <<_ACEOF
33606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33607 _ACEOF
33608
33609 fi
33610
33611 done
33612
33613
33614
33615
33616
33617
33618 for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
33619 do
33620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33622   echo "$as_me:$LINENO: checking for $ac_header" >&5
33623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33625   echo $ECHO_N "(cached) $ECHO_C" >&6
33626 fi
33627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33629 else
33630   # Is the header compilable?
33631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33633 cat >conftest.$ac_ext <<_ACEOF
33634 /* confdefs.h.  */
33635 _ACEOF
33636 cat confdefs.h >>conftest.$ac_ext
33637 cat >>conftest.$ac_ext <<_ACEOF
33638 /* end confdefs.h.  */
33639 $ac_includes_default
33640 #include <$ac_header>
33641 _ACEOF
33642 rm -f conftest.$ac_objext
33643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33644   (eval $ac_compile) 2>conftest.er1
33645   ac_status=$?
33646   grep -v '^ *+' conftest.er1 >conftest.err
33647   rm -f conftest.er1
33648   cat conftest.err >&5
33649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650   (exit $ac_status); } &&
33651          { ac_try='test -z "$ac_c_werror_flag"
33652                          || test ! -s conftest.err'
33653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654   (eval $ac_try) 2>&5
33655   ac_status=$?
33656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657   (exit $ac_status); }; } &&
33658          { ac_try='test -s conftest.$ac_objext'
33659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33660   (eval $ac_try) 2>&5
33661   ac_status=$?
33662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663   (exit $ac_status); }; }; then
33664   ac_header_compiler=yes
33665 else
33666   echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33668
33669 ac_header_compiler=no
33670 fi
33671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33673 echo "${ECHO_T}$ac_header_compiler" >&6
33674
33675 # Is the header present?
33676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33678 cat >conftest.$ac_ext <<_ACEOF
33679 /* confdefs.h.  */
33680 _ACEOF
33681 cat confdefs.h >>conftest.$ac_ext
33682 cat >>conftest.$ac_ext <<_ACEOF
33683 /* end confdefs.h.  */
33684 #include <$ac_header>
33685 _ACEOF
33686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33688   ac_status=$?
33689   grep -v '^ *+' conftest.er1 >conftest.err
33690   rm -f conftest.er1
33691   cat conftest.err >&5
33692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693   (exit $ac_status); } >/dev/null; then
33694   if test -s conftest.err; then
33695     ac_cpp_err=$ac_c_preproc_warn_flag
33696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33697   else
33698     ac_cpp_err=
33699   fi
33700 else
33701   ac_cpp_err=yes
33702 fi
33703 if test -z "$ac_cpp_err"; then
33704   ac_header_preproc=yes
33705 else
33706   echo "$as_me: failed program was:" >&5
33707 sed 's/^/| /' conftest.$ac_ext >&5
33708
33709   ac_header_preproc=no
33710 fi
33711 rm -f conftest.err conftest.$ac_ext
33712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33713 echo "${ECHO_T}$ac_header_preproc" >&6
33714
33715 # So?  What about this header?
33716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33717   yes:no: )
33718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33722     ac_header_preproc=yes
33723     ;;
33724   no:yes:* )
33725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33737     (
33738       cat <<\_ASBOX
33739 ## ------------------------------ ##
33740 ## Report this to the ntp lists.  ##
33741 ## ------------------------------ ##
33742 _ASBOX
33743     ) |
33744       sed "s/^/$as_me: WARNING:     /" >&2
33745     ;;
33746 esac
33747 echo "$as_me:$LINENO: checking for $ac_header" >&5
33748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33750   echo $ECHO_N "(cached) $ECHO_C" >&6
33751 else
33752   eval "$as_ac_Header=\$ac_header_preproc"
33753 fi
33754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33756
33757 fi
33758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33759   cat >>confdefs.h <<_ACEOF
33760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33761 _ACEOF
33762
33763 fi
33764
33765 done
33766
33767
33768
33769
33770
33771 for ac_header in termios.h timepps.h timex.h unistd.h
33772 do
33773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33775   echo "$as_me:$LINENO: checking for $ac_header" >&5
33776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33778   echo $ECHO_N "(cached) $ECHO_C" >&6
33779 fi
33780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33782 else
33783   # Is the header compilable?
33784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33786 cat >conftest.$ac_ext <<_ACEOF
33787 /* confdefs.h.  */
33788 _ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h.  */
33792 $ac_includes_default
33793 #include <$ac_header>
33794 _ACEOF
33795 rm -f conftest.$ac_objext
33796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33797   (eval $ac_compile) 2>conftest.er1
33798   ac_status=$?
33799   grep -v '^ *+' conftest.er1 >conftest.err
33800   rm -f conftest.er1
33801   cat conftest.err >&5
33802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803   (exit $ac_status); } &&
33804          { ac_try='test -z "$ac_c_werror_flag"
33805                          || test ! -s conftest.err'
33806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33807   (eval $ac_try) 2>&5
33808   ac_status=$?
33809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810   (exit $ac_status); }; } &&
33811          { ac_try='test -s conftest.$ac_objext'
33812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813   (eval $ac_try) 2>&5
33814   ac_status=$?
33815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816   (exit $ac_status); }; }; then
33817   ac_header_compiler=yes
33818 else
33819   echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33821
33822 ac_header_compiler=no
33823 fi
33824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33826 echo "${ECHO_T}$ac_header_compiler" >&6
33827
33828 # Is the header present?
33829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33831 cat >conftest.$ac_ext <<_ACEOF
33832 /* confdefs.h.  */
33833 _ACEOF
33834 cat confdefs.h >>conftest.$ac_ext
33835 cat >>conftest.$ac_ext <<_ACEOF
33836 /* end confdefs.h.  */
33837 #include <$ac_header>
33838 _ACEOF
33839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33841   ac_status=$?
33842   grep -v '^ *+' conftest.er1 >conftest.err
33843   rm -f conftest.er1
33844   cat conftest.err >&5
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); } >/dev/null; then
33847   if test -s conftest.err; then
33848     ac_cpp_err=$ac_c_preproc_warn_flag
33849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33850   else
33851     ac_cpp_err=
33852   fi
33853 else
33854   ac_cpp_err=yes
33855 fi
33856 if test -z "$ac_cpp_err"; then
33857   ac_header_preproc=yes
33858 else
33859   echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33861
33862   ac_header_preproc=no
33863 fi
33864 rm -f conftest.err conftest.$ac_ext
33865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33866 echo "${ECHO_T}$ac_header_preproc" >&6
33867
33868 # So?  What about this header?
33869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33870   yes:no: )
33871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33875     ac_header_preproc=yes
33876     ;;
33877   no:yes:* )
33878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33890     (
33891       cat <<\_ASBOX
33892 ## ------------------------------ ##
33893 ## Report this to the ntp lists.  ##
33894 ## ------------------------------ ##
33895 _ASBOX
33896     ) |
33897       sed "s/^/$as_me: WARNING:     /" >&2
33898     ;;
33899 esac
33900 echo "$as_me:$LINENO: checking for $ac_header" >&5
33901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33903   echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905   eval "$as_ac_Header=\$ac_header_preproc"
33906 fi
33907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33909
33910 fi
33911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33912   cat >>confdefs.h <<_ACEOF
33913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33914 _ACEOF
33915
33916 fi
33917
33918 done
33919
33920 case "$host" in
33921  *-*-aix*)
33922
33923 for ac_header in utmpx.h
33924 do
33925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33927   echo "$as_me:$LINENO: checking for $ac_header" >&5
33928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33930   echo $ECHO_N "(cached) $ECHO_C" >&6
33931 fi
33932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33934 else
33935   # Is the header compilable?
33936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33938 cat >conftest.$ac_ext <<_ACEOF
33939 /* confdefs.h.  */
33940 _ACEOF
33941 cat confdefs.h >>conftest.$ac_ext
33942 cat >>conftest.$ac_ext <<_ACEOF
33943 /* end confdefs.h.  */
33944 $ac_includes_default
33945 #include <$ac_header>
33946 _ACEOF
33947 rm -f conftest.$ac_objext
33948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33949   (eval $ac_compile) 2>conftest.er1
33950   ac_status=$?
33951   grep -v '^ *+' conftest.er1 >conftest.err
33952   rm -f conftest.er1
33953   cat conftest.err >&5
33954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955   (exit $ac_status); } &&
33956          { ac_try='test -z "$ac_c_werror_flag"
33957                          || test ! -s conftest.err'
33958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959   (eval $ac_try) 2>&5
33960   ac_status=$?
33961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962   (exit $ac_status); }; } &&
33963          { ac_try='test -s conftest.$ac_objext'
33964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33965   (eval $ac_try) 2>&5
33966   ac_status=$?
33967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968   (exit $ac_status); }; }; then
33969   ac_header_compiler=yes
33970 else
33971   echo "$as_me: failed program was:" >&5
33972 sed 's/^/| /' conftest.$ac_ext >&5
33973
33974 ac_header_compiler=no
33975 fi
33976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33978 echo "${ECHO_T}$ac_header_compiler" >&6
33979
33980 # Is the header present?
33981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33983 cat >conftest.$ac_ext <<_ACEOF
33984 /* confdefs.h.  */
33985 _ACEOF
33986 cat confdefs.h >>conftest.$ac_ext
33987 cat >>conftest.$ac_ext <<_ACEOF
33988 /* end confdefs.h.  */
33989 #include <$ac_header>
33990 _ACEOF
33991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33993   ac_status=$?
33994   grep -v '^ *+' conftest.er1 >conftest.err
33995   rm -f conftest.er1
33996   cat conftest.err >&5
33997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998   (exit $ac_status); } >/dev/null; then
33999   if test -s conftest.err; then
34000     ac_cpp_err=$ac_c_preproc_warn_flag
34001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34002   else
34003     ac_cpp_err=
34004   fi
34005 else
34006   ac_cpp_err=yes
34007 fi
34008 if test -z "$ac_cpp_err"; then
34009   ac_header_preproc=yes
34010 else
34011   echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014   ac_header_preproc=no
34015 fi
34016 rm -f conftest.err conftest.$ac_ext
34017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34018 echo "${ECHO_T}$ac_header_preproc" >&6
34019
34020 # So?  What about this header?
34021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34022   yes:no: )
34023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34027     ac_header_preproc=yes
34028     ;;
34029   no:yes:* )
34030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34042     (
34043       cat <<\_ASBOX
34044 ## ------------------------------ ##
34045 ## Report this to the ntp lists.  ##
34046 ## ------------------------------ ##
34047 _ASBOX
34048     ) |
34049       sed "s/^/$as_me: WARNING:     /" >&2
34050     ;;
34051 esac
34052 echo "$as_me:$LINENO: checking for $ac_header" >&5
34053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34055   echo $ECHO_N "(cached) $ECHO_C" >&6
34056 else
34057   eval "$as_ac_Header=\$ac_header_preproc"
34058 fi
34059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34061
34062 fi
34063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34064   cat >>confdefs.h <<_ACEOF
34065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34066 _ACEOF
34067
34068 fi
34069
34070 done
34071
34072     case "$ac_cv_header_utmpx_h" in
34073      yes) ;;
34074      *)
34075 for ac_header in utmp.h
34076 do
34077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34079   echo "$as_me:$LINENO: checking for $ac_header" >&5
34080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34082   echo $ECHO_N "(cached) $ECHO_C" >&6
34083 fi
34084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34086 else
34087   # Is the header compilable?
34088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34090 cat >conftest.$ac_ext <<_ACEOF
34091 /* confdefs.h.  */
34092 _ACEOF
34093 cat confdefs.h >>conftest.$ac_ext
34094 cat >>conftest.$ac_ext <<_ACEOF
34095 /* end confdefs.h.  */
34096 $ac_includes_default
34097 #include <$ac_header>
34098 _ACEOF
34099 rm -f conftest.$ac_objext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34101   (eval $ac_compile) 2>conftest.er1
34102   ac_status=$?
34103   grep -v '^ *+' conftest.er1 >conftest.err
34104   rm -f conftest.er1
34105   cat conftest.err >&5
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } &&
34108          { ac_try='test -z "$ac_c_werror_flag"
34109                          || test ! -s conftest.err'
34110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111   (eval $ac_try) 2>&5
34112   ac_status=$?
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); }; } &&
34115          { ac_try='test -s conftest.$ac_objext'
34116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117   (eval $ac_try) 2>&5
34118   ac_status=$?
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); }; }; then
34121   ac_header_compiler=yes
34122 else
34123   echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34125
34126 ac_header_compiler=no
34127 fi
34128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34130 echo "${ECHO_T}$ac_header_compiler" >&6
34131
34132 # Is the header present?
34133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34135 cat >conftest.$ac_ext <<_ACEOF
34136 /* confdefs.h.  */
34137 _ACEOF
34138 cat confdefs.h >>conftest.$ac_ext
34139 cat >>conftest.$ac_ext <<_ACEOF
34140 /* end confdefs.h.  */
34141 #include <$ac_header>
34142 _ACEOF
34143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } >/dev/null; then
34151   if test -s conftest.err; then
34152     ac_cpp_err=$ac_c_preproc_warn_flag
34153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34154   else
34155     ac_cpp_err=
34156   fi
34157 else
34158   ac_cpp_err=yes
34159 fi
34160 if test -z "$ac_cpp_err"; then
34161   ac_header_preproc=yes
34162 else
34163   echo "$as_me: failed program was:" >&5
34164 sed 's/^/| /' conftest.$ac_ext >&5
34165
34166   ac_header_preproc=no
34167 fi
34168 rm -f conftest.err conftest.$ac_ext
34169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34170 echo "${ECHO_T}$ac_header_preproc" >&6
34171
34172 # So?  What about this header?
34173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34174   yes:no: )
34175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34179     ac_header_preproc=yes
34180     ;;
34181   no:yes:* )
34182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34194     (
34195       cat <<\_ASBOX
34196 ## ------------------------------ ##
34197 ## Report this to the ntp lists.  ##
34198 ## ------------------------------ ##
34199 _ASBOX
34200     ) |
34201       sed "s/^/$as_me: WARNING:     /" >&2
34202     ;;
34203 esac
34204 echo "$as_me:$LINENO: checking for $ac_header" >&5
34205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34207   echo $ECHO_N "(cached) $ECHO_C" >&6
34208 else
34209   eval "$as_ac_Header=\$ac_header_preproc"
34210 fi
34211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34213
34214 fi
34215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34216   cat >>confdefs.h <<_ACEOF
34217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34218 _ACEOF
34219
34220 fi
34221
34222 done
34223  ;;
34224     esac
34225     ;;
34226  *)
34227
34228 for ac_header in utmp.h utmpx.h
34229 do
34230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34232   echo "$as_me:$LINENO: checking for $ac_header" >&5
34233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34235   echo $ECHO_N "(cached) $ECHO_C" >&6
34236 fi
34237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34239 else
34240   # Is the header compilable?
34241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34243 cat >conftest.$ac_ext <<_ACEOF
34244 /* confdefs.h.  */
34245 _ACEOF
34246 cat confdefs.h >>conftest.$ac_ext
34247 cat >>conftest.$ac_ext <<_ACEOF
34248 /* end confdefs.h.  */
34249 $ac_includes_default
34250 #include <$ac_header>
34251 _ACEOF
34252 rm -f conftest.$ac_objext
34253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34254   (eval $ac_compile) 2>conftest.er1
34255   ac_status=$?
34256   grep -v '^ *+' conftest.er1 >conftest.err
34257   rm -f conftest.er1
34258   cat conftest.err >&5
34259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260   (exit $ac_status); } &&
34261          { ac_try='test -z "$ac_c_werror_flag"
34262                          || test ! -s conftest.err'
34263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264   (eval $ac_try) 2>&5
34265   ac_status=$?
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); }; } &&
34268          { ac_try='test -s conftest.$ac_objext'
34269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270   (eval $ac_try) 2>&5
34271   ac_status=$?
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); }; }; then
34274   ac_header_compiler=yes
34275 else
34276   echo "$as_me: failed program was:" >&5
34277 sed 's/^/| /' conftest.$ac_ext >&5
34278
34279 ac_header_compiler=no
34280 fi
34281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34283 echo "${ECHO_T}$ac_header_compiler" >&6
34284
34285 # Is the header present?
34286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34288 cat >conftest.$ac_ext <<_ACEOF
34289 /* confdefs.h.  */
34290 _ACEOF
34291 cat confdefs.h >>conftest.$ac_ext
34292 cat >>conftest.$ac_ext <<_ACEOF
34293 /* end confdefs.h.  */
34294 #include <$ac_header>
34295 _ACEOF
34296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34298   ac_status=$?
34299   grep -v '^ *+' conftest.er1 >conftest.err
34300   rm -f conftest.er1
34301   cat conftest.err >&5
34302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303   (exit $ac_status); } >/dev/null; then
34304   if test -s conftest.err; then
34305     ac_cpp_err=$ac_c_preproc_warn_flag
34306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34307   else
34308     ac_cpp_err=
34309   fi
34310 else
34311   ac_cpp_err=yes
34312 fi
34313 if test -z "$ac_cpp_err"; then
34314   ac_header_preproc=yes
34315 else
34316   echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34318
34319   ac_header_preproc=no
34320 fi
34321 rm -f conftest.err conftest.$ac_ext
34322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34323 echo "${ECHO_T}$ac_header_preproc" >&6
34324
34325 # So?  What about this header?
34326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34327   yes:no: )
34328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34332     ac_header_preproc=yes
34333     ;;
34334   no:yes:* )
34335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34347     (
34348       cat <<\_ASBOX
34349 ## ------------------------------ ##
34350 ## Report this to the ntp lists.  ##
34351 ## ------------------------------ ##
34352 _ASBOX
34353     ) |
34354       sed "s/^/$as_me: WARNING:     /" >&2
34355     ;;
34356 esac
34357 echo "$as_me:$LINENO: checking for $ac_header" >&5
34358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34360   echo $ECHO_N "(cached) $ECHO_C" >&6
34361 else
34362   eval "$as_ac_Header=\$ac_header_preproc"
34363 fi
34364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34366
34367 fi
34368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34369   cat >>confdefs.h <<_ACEOF
34370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34371 _ACEOF
34372
34373 fi
34374
34375 done
34376  ;;
34377 esac
34378
34379 for ac_header in arpa/nameser.h
34380 do
34381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34383   echo "$as_me:$LINENO: checking for $ac_header" >&5
34384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34386   echo $ECHO_N "(cached) $ECHO_C" >&6
34387 fi
34388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34390 else
34391   # Is the header compilable?
34392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34394 cat >conftest.$ac_ext <<_ACEOF
34395 /* confdefs.h.  */
34396 _ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h.  */
34400 $ac_includes_default
34401 #include <$ac_header>
34402 _ACEOF
34403 rm -f conftest.$ac_objext
34404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34405   (eval $ac_compile) 2>conftest.er1
34406   ac_status=$?
34407   grep -v '^ *+' conftest.er1 >conftest.err
34408   rm -f conftest.er1
34409   cat conftest.err >&5
34410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411   (exit $ac_status); } &&
34412          { ac_try='test -z "$ac_c_werror_flag"
34413                          || test ! -s conftest.err'
34414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34415   (eval $ac_try) 2>&5
34416   ac_status=$?
34417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418   (exit $ac_status); }; } &&
34419          { ac_try='test -s conftest.$ac_objext'
34420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34421   (eval $ac_try) 2>&5
34422   ac_status=$?
34423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424   (exit $ac_status); }; }; then
34425   ac_header_compiler=yes
34426 else
34427   echo "$as_me: failed program was:" >&5
34428 sed 's/^/| /' conftest.$ac_ext >&5
34429
34430 ac_header_compiler=no
34431 fi
34432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34434 echo "${ECHO_T}$ac_header_compiler" >&6
34435
34436 # Is the header present?
34437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34439 cat >conftest.$ac_ext <<_ACEOF
34440 /* confdefs.h.  */
34441 _ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h.  */
34445 #include <$ac_header>
34446 _ACEOF
34447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34449   ac_status=$?
34450   grep -v '^ *+' conftest.er1 >conftest.err
34451   rm -f conftest.er1
34452   cat conftest.err >&5
34453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454   (exit $ac_status); } >/dev/null; then
34455   if test -s conftest.err; then
34456     ac_cpp_err=$ac_c_preproc_warn_flag
34457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34458   else
34459     ac_cpp_err=
34460   fi
34461 else
34462   ac_cpp_err=yes
34463 fi
34464 if test -z "$ac_cpp_err"; then
34465   ac_header_preproc=yes
34466 else
34467   echo "$as_me: failed program was:" >&5
34468 sed 's/^/| /' conftest.$ac_ext >&5
34469
34470   ac_header_preproc=no
34471 fi
34472 rm -f conftest.err conftest.$ac_ext
34473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34474 echo "${ECHO_T}$ac_header_preproc" >&6
34475
34476 # So?  What about this header?
34477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34478   yes:no: )
34479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34483     ac_header_preproc=yes
34484     ;;
34485   no:yes:* )
34486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34498     (
34499       cat <<\_ASBOX
34500 ## ------------------------------ ##
34501 ## Report this to the ntp lists.  ##
34502 ## ------------------------------ ##
34503 _ASBOX
34504     ) |
34505       sed "s/^/$as_me: WARNING:     /" >&2
34506     ;;
34507 esac
34508 echo "$as_me:$LINENO: checking for $ac_header" >&5
34509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34511   echo $ECHO_N "(cached) $ECHO_C" >&6
34512 else
34513   eval "$as_ac_Header=\$ac_header_preproc"
34514 fi
34515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34517
34518 fi
34519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34520   cat >>confdefs.h <<_ACEOF
34521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34522 _ACEOF
34523
34524 fi
34525
34526 done
34527
34528
34529 for ac_header in sys/socket.h
34530 do
34531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34533   echo "$as_me:$LINENO: checking for $ac_header" >&5
34534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34536   echo $ECHO_N "(cached) $ECHO_C" >&6
34537 fi
34538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34540 else
34541   # Is the header compilable?
34542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34544 cat >conftest.$ac_ext <<_ACEOF
34545 /* confdefs.h.  */
34546 _ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h.  */
34550 $ac_includes_default
34551 #include <$ac_header>
34552 _ACEOF
34553 rm -f conftest.$ac_objext
34554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34555   (eval $ac_compile) 2>conftest.er1
34556   ac_status=$?
34557   grep -v '^ *+' conftest.er1 >conftest.err
34558   rm -f conftest.er1
34559   cat conftest.err >&5
34560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561   (exit $ac_status); } &&
34562          { ac_try='test -z "$ac_c_werror_flag"
34563                          || test ! -s conftest.err'
34564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565   (eval $ac_try) 2>&5
34566   ac_status=$?
34567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568   (exit $ac_status); }; } &&
34569          { ac_try='test -s conftest.$ac_objext'
34570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571   (eval $ac_try) 2>&5
34572   ac_status=$?
34573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574   (exit $ac_status); }; }; then
34575   ac_header_compiler=yes
34576 else
34577   echo "$as_me: failed program was:" >&5
34578 sed 's/^/| /' conftest.$ac_ext >&5
34579
34580 ac_header_compiler=no
34581 fi
34582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34584 echo "${ECHO_T}$ac_header_compiler" >&6
34585
34586 # Is the header present?
34587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34589 cat >conftest.$ac_ext <<_ACEOF
34590 /* confdefs.h.  */
34591 _ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h.  */
34595 #include <$ac_header>
34596 _ACEOF
34597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34599   ac_status=$?
34600   grep -v '^ *+' conftest.er1 >conftest.err
34601   rm -f conftest.er1
34602   cat conftest.err >&5
34603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604   (exit $ac_status); } >/dev/null; then
34605   if test -s conftest.err; then
34606     ac_cpp_err=$ac_c_preproc_warn_flag
34607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34608   else
34609     ac_cpp_err=
34610   fi
34611 else
34612   ac_cpp_err=yes
34613 fi
34614 if test -z "$ac_cpp_err"; then
34615   ac_header_preproc=yes
34616 else
34617   echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34619
34620   ac_header_preproc=no
34621 fi
34622 rm -f conftest.err conftest.$ac_ext
34623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34624 echo "${ECHO_T}$ac_header_preproc" >&6
34625
34626 # So?  What about this header?
34627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34628   yes:no: )
34629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34633     ac_header_preproc=yes
34634     ;;
34635   no:yes:* )
34636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34648     (
34649       cat <<\_ASBOX
34650 ## ------------------------------ ##
34651 ## Report this to the ntp lists.  ##
34652 ## ------------------------------ ##
34653 _ASBOX
34654     ) |
34655       sed "s/^/$as_me: WARNING:     /" >&2
34656     ;;
34657 esac
34658 echo "$as_me:$LINENO: checking for $ac_header" >&5
34659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34661   echo $ECHO_N "(cached) $ECHO_C" >&6
34662 else
34663   eval "$as_ac_Header=\$ac_header_preproc"
34664 fi
34665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34667
34668 fi
34669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34670   cat >>confdefs.h <<_ACEOF
34671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34672 _ACEOF
34673
34674 fi
34675
34676 done
34677
34678
34679 for ac_header in net/if.h
34680 do
34681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34682 echo "$as_me:$LINENO: checking for $ac_header" >&5
34683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34685   echo $ECHO_N "(cached) $ECHO_C" >&6
34686 else
34687   cat >conftest.$ac_ext <<_ACEOF
34688 /* confdefs.h.  */
34689 _ACEOF
34690 cat confdefs.h >>conftest.$ac_ext
34691 cat >>conftest.$ac_ext <<_ACEOF
34692 /* end confdefs.h.  */
34693 #if HAVE_SYS_SOCKET_H
34694 #include <sys/socket.h>
34695 #endif
34696
34697
34698 #include <$ac_header>
34699 _ACEOF
34700 rm -f conftest.$ac_objext
34701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34702   (eval $ac_compile) 2>conftest.er1
34703   ac_status=$?
34704   grep -v '^ *+' conftest.er1 >conftest.err
34705   rm -f conftest.er1
34706   cat conftest.err >&5
34707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708   (exit $ac_status); } &&
34709          { ac_try='test -z "$ac_c_werror_flag"
34710                          || test ! -s conftest.err'
34711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34712   (eval $ac_try) 2>&5
34713   ac_status=$?
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); }; } &&
34716          { ac_try='test -s conftest.$ac_objext'
34717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34718   (eval $ac_try) 2>&5
34719   ac_status=$?
34720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721   (exit $ac_status); }; }; then
34722   eval "$as_ac_Header=yes"
34723 else
34724   echo "$as_me: failed program was:" >&5
34725 sed 's/^/| /' conftest.$ac_ext >&5
34726
34727 eval "$as_ac_Header=no"
34728 fi
34729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34730 fi
34731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34734   cat >>confdefs.h <<_ACEOF
34735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34736 _ACEOF
34737
34738 fi
34739
34740 done
34741
34742
34743 for ac_header in net/if6.h
34744 do
34745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34747   echo "$as_me:$LINENO: checking for $ac_header" >&5
34748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34750   echo $ECHO_N "(cached) $ECHO_C" >&6
34751 fi
34752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34754 else
34755   # Is the header compilable?
34756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34758 cat >conftest.$ac_ext <<_ACEOF
34759 /* confdefs.h.  */
34760 _ACEOF
34761 cat confdefs.h >>conftest.$ac_ext
34762 cat >>conftest.$ac_ext <<_ACEOF
34763 /* end confdefs.h.  */
34764 $ac_includes_default
34765 #include <$ac_header>
34766 _ACEOF
34767 rm -f conftest.$ac_objext
34768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34769   (eval $ac_compile) 2>conftest.er1
34770   ac_status=$?
34771   grep -v '^ *+' conftest.er1 >conftest.err
34772   rm -f conftest.er1
34773   cat conftest.err >&5
34774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775   (exit $ac_status); } &&
34776          { ac_try='test -z "$ac_c_werror_flag"
34777                          || test ! -s conftest.err'
34778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779   (eval $ac_try) 2>&5
34780   ac_status=$?
34781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782   (exit $ac_status); }; } &&
34783          { ac_try='test -s conftest.$ac_objext'
34784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34785   (eval $ac_try) 2>&5
34786   ac_status=$?
34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788   (exit $ac_status); }; }; then
34789   ac_header_compiler=yes
34790 else
34791   echo "$as_me: failed program was:" >&5
34792 sed 's/^/| /' conftest.$ac_ext >&5
34793
34794 ac_header_compiler=no
34795 fi
34796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34798 echo "${ECHO_T}$ac_header_compiler" >&6
34799
34800 # Is the header present?
34801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34803 cat >conftest.$ac_ext <<_ACEOF
34804 /* confdefs.h.  */
34805 _ACEOF
34806 cat confdefs.h >>conftest.$ac_ext
34807 cat >>conftest.$ac_ext <<_ACEOF
34808 /* end confdefs.h.  */
34809 #include <$ac_header>
34810 _ACEOF
34811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34813   ac_status=$?
34814   grep -v '^ *+' conftest.er1 >conftest.err
34815   rm -f conftest.er1
34816   cat conftest.err >&5
34817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818   (exit $ac_status); } >/dev/null; then
34819   if test -s conftest.err; then
34820     ac_cpp_err=$ac_c_preproc_warn_flag
34821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34822   else
34823     ac_cpp_err=
34824   fi
34825 else
34826   ac_cpp_err=yes
34827 fi
34828 if test -z "$ac_cpp_err"; then
34829   ac_header_preproc=yes
34830 else
34831   echo "$as_me: failed program was:" >&5
34832 sed 's/^/| /' conftest.$ac_ext >&5
34833
34834   ac_header_preproc=no
34835 fi
34836 rm -f conftest.err conftest.$ac_ext
34837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34838 echo "${ECHO_T}$ac_header_preproc" >&6
34839
34840 # So?  What about this header?
34841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34842   yes:no: )
34843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34847     ac_header_preproc=yes
34848     ;;
34849   no:yes:* )
34850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34862     (
34863       cat <<\_ASBOX
34864 ## ------------------------------ ##
34865 ## Report this to the ntp lists.  ##
34866 ## ------------------------------ ##
34867 _ASBOX
34868     ) |
34869       sed "s/^/$as_me: WARNING:     /" >&2
34870     ;;
34871 esac
34872 echo "$as_me:$LINENO: checking for $ac_header" >&5
34873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34875   echo $ECHO_N "(cached) $ECHO_C" >&6
34876 else
34877   eval "$as_ac_Header=\$ac_header_preproc"
34878 fi
34879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34881
34882 fi
34883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34884   cat >>confdefs.h <<_ACEOF
34885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34886 _ACEOF
34887
34888 fi
34889
34890 done
34891
34892
34893 for ac_header in net/route.h
34894 do
34895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34896 echo "$as_me:$LINENO: checking for $ac_header" >&5
34897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34899   echo $ECHO_N "(cached) $ECHO_C" >&6
34900 else
34901   cat >conftest.$ac_ext <<_ACEOF
34902 /* confdefs.h.  */
34903 _ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h.  */
34907
34908 #include <sys/types.h>
34909 #include <sys/socket.h>
34910 #include <net/if.h>
34911
34912
34913 #include <$ac_header>
34914 _ACEOF
34915 rm -f conftest.$ac_objext
34916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34917   (eval $ac_compile) 2>conftest.er1
34918   ac_status=$?
34919   grep -v '^ *+' conftest.er1 >conftest.err
34920   rm -f conftest.er1
34921   cat conftest.err >&5
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); } &&
34924          { ac_try='test -z "$ac_c_werror_flag"
34925                          || test ! -s conftest.err'
34926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34927   (eval $ac_try) 2>&5
34928   ac_status=$?
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); }; } &&
34931          { ac_try='test -s conftest.$ac_objext'
34932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34933   (eval $ac_try) 2>&5
34934   ac_status=$?
34935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936   (exit $ac_status); }; }; then
34937   eval "$as_ac_Header=yes"
34938 else
34939   echo "$as_me: failed program was:" >&5
34940 sed 's/^/| /' conftest.$ac_ext >&5
34941
34942 eval "$as_ac_Header=no"
34943 fi
34944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34945 fi
34946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34949   cat >>confdefs.h <<_ACEOF
34950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34951 _ACEOF
34952
34953 fi
34954
34955 done
34956
34957
34958
34959 for ac_header in netinet/in_system.h netinet/in_systm.h
34960 do
34961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34963   echo "$as_me:$LINENO: checking for $ac_header" >&5
34964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34966   echo $ECHO_N "(cached) $ECHO_C" >&6
34967 fi
34968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34970 else
34971   # Is the header compilable?
34972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34974 cat >conftest.$ac_ext <<_ACEOF
34975 /* confdefs.h.  */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h.  */
34980 $ac_includes_default
34981 #include <$ac_header>
34982 _ACEOF
34983 rm -f conftest.$ac_objext
34984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34985   (eval $ac_compile) 2>conftest.er1
34986   ac_status=$?
34987   grep -v '^ *+' conftest.er1 >conftest.err
34988   rm -f conftest.er1
34989   cat conftest.err >&5
34990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991   (exit $ac_status); } &&
34992          { ac_try='test -z "$ac_c_werror_flag"
34993                          || test ! -s conftest.err'
34994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34995   (eval $ac_try) 2>&5
34996   ac_status=$?
34997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998   (exit $ac_status); }; } &&
34999          { ac_try='test -s conftest.$ac_objext'
35000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35001   (eval $ac_try) 2>&5
35002   ac_status=$?
35003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004   (exit $ac_status); }; }; then
35005   ac_header_compiler=yes
35006 else
35007   echo "$as_me: failed program was:" >&5
35008 sed 's/^/| /' conftest.$ac_ext >&5
35009
35010 ac_header_compiler=no
35011 fi
35012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35014 echo "${ECHO_T}$ac_header_compiler" >&6
35015
35016 # Is the header present?
35017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35019 cat >conftest.$ac_ext <<_ACEOF
35020 /* confdefs.h.  */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h.  */
35025 #include <$ac_header>
35026 _ACEOF
35027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35029   ac_status=$?
35030   grep -v '^ *+' conftest.er1 >conftest.err
35031   rm -f conftest.er1
35032   cat conftest.err >&5
35033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034   (exit $ac_status); } >/dev/null; then
35035   if test -s conftest.err; then
35036     ac_cpp_err=$ac_c_preproc_warn_flag
35037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35038   else
35039     ac_cpp_err=
35040   fi
35041 else
35042   ac_cpp_err=yes
35043 fi
35044 if test -z "$ac_cpp_err"; then
35045   ac_header_preproc=yes
35046 else
35047   echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35049
35050   ac_header_preproc=no
35051 fi
35052 rm -f conftest.err conftest.$ac_ext
35053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35054 echo "${ECHO_T}$ac_header_preproc" >&6
35055
35056 # So?  What about this header?
35057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35058   yes:no: )
35059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35063     ac_header_preproc=yes
35064     ;;
35065   no:yes:* )
35066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35078     (
35079       cat <<\_ASBOX
35080 ## ------------------------------ ##
35081 ## Report this to the ntp lists.  ##
35082 ## ------------------------------ ##
35083 _ASBOX
35084     ) |
35085       sed "s/^/$as_me: WARNING:     /" >&2
35086     ;;
35087 esac
35088 echo "$as_me:$LINENO: checking for $ac_header" >&5
35089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35091   echo $ECHO_N "(cached) $ECHO_C" >&6
35092 else
35093   eval "$as_ac_Header=\$ac_header_preproc"
35094 fi
35095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35097
35098 fi
35099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35100   cat >>confdefs.h <<_ACEOF
35101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35102 _ACEOF
35103
35104 fi
35105
35106 done
35107
35108
35109 for ac_header in netinet/in.h
35110 do
35111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35113   echo "$as_me:$LINENO: checking for $ac_header" >&5
35114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35116   echo $ECHO_N "(cached) $ECHO_C" >&6
35117 fi
35118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35120 else
35121   # Is the header compilable?
35122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35124 cat >conftest.$ac_ext <<_ACEOF
35125 /* confdefs.h.  */
35126 _ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h.  */
35130 $ac_includes_default
35131 #include <$ac_header>
35132 _ACEOF
35133 rm -f conftest.$ac_objext
35134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35135   (eval $ac_compile) 2>conftest.er1
35136   ac_status=$?
35137   grep -v '^ *+' conftest.er1 >conftest.err
35138   rm -f conftest.er1
35139   cat conftest.err >&5
35140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141   (exit $ac_status); } &&
35142          { ac_try='test -z "$ac_c_werror_flag"
35143                          || test ! -s conftest.err'
35144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145   (eval $ac_try) 2>&5
35146   ac_status=$?
35147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148   (exit $ac_status); }; } &&
35149          { ac_try='test -s conftest.$ac_objext'
35150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35151   (eval $ac_try) 2>&5
35152   ac_status=$?
35153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154   (exit $ac_status); }; }; then
35155   ac_header_compiler=yes
35156 else
35157   echo "$as_me: failed program was:" >&5
35158 sed 's/^/| /' conftest.$ac_ext >&5
35159
35160 ac_header_compiler=no
35161 fi
35162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35164 echo "${ECHO_T}$ac_header_compiler" >&6
35165
35166 # Is the header present?
35167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35169 cat >conftest.$ac_ext <<_ACEOF
35170 /* confdefs.h.  */
35171 _ACEOF
35172 cat confdefs.h >>conftest.$ac_ext
35173 cat >>conftest.$ac_ext <<_ACEOF
35174 /* end confdefs.h.  */
35175 #include <$ac_header>
35176 _ACEOF
35177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35179   ac_status=$?
35180   grep -v '^ *+' conftest.er1 >conftest.err
35181   rm -f conftest.er1
35182   cat conftest.err >&5
35183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184   (exit $ac_status); } >/dev/null; then
35185   if test -s conftest.err; then
35186     ac_cpp_err=$ac_c_preproc_warn_flag
35187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35188   else
35189     ac_cpp_err=
35190   fi
35191 else
35192   ac_cpp_err=yes
35193 fi
35194 if test -z "$ac_cpp_err"; then
35195   ac_header_preproc=yes
35196 else
35197   echo "$as_me: failed program was:" >&5
35198 sed 's/^/| /' conftest.$ac_ext >&5
35199
35200   ac_header_preproc=no
35201 fi
35202 rm -f conftest.err conftest.$ac_ext
35203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35204 echo "${ECHO_T}$ac_header_preproc" >&6
35205
35206 # So?  What about this header?
35207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35208   yes:no: )
35209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35213     ac_header_preproc=yes
35214     ;;
35215   no:yes:* )
35216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35228     (
35229       cat <<\_ASBOX
35230 ## ------------------------------ ##
35231 ## Report this to the ntp lists.  ##
35232 ## ------------------------------ ##
35233 _ASBOX
35234     ) |
35235       sed "s/^/$as_me: WARNING:     /" >&2
35236     ;;
35237 esac
35238 echo "$as_me:$LINENO: checking for $ac_header" >&5
35239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35241   echo $ECHO_N "(cached) $ECHO_C" >&6
35242 else
35243   eval "$as_ac_Header=\$ac_header_preproc"
35244 fi
35245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35247
35248 fi
35249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35250   cat >>confdefs.h <<_ACEOF
35251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35252 _ACEOF
35253
35254 fi
35255
35256 done
35257
35258
35259 for ac_header in netinet/ip.h
35260 do
35261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35262 echo "$as_me:$LINENO: checking for $ac_header" >&5
35263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35265   echo $ECHO_N "(cached) $ECHO_C" >&6
35266 else
35267   cat >conftest.$ac_ext <<_ACEOF
35268 /* confdefs.h.  */
35269 _ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h.  */
35273 #if HAVE_SYS_TYPES_H
35274 #include <sys/types.h>
35275 #endif
35276 #if HAVE_NETINET_IN_H
35277 #include <netinet/in.h>
35278 #endif
35279 #if HAVE_NETINET_IN_SYSTM_H
35280 #include <netinet/in_systm.h>
35281 #endif
35282
35283
35284 #include <$ac_header>
35285 _ACEOF
35286 rm -f conftest.$ac_objext
35287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35288   (eval $ac_compile) 2>conftest.er1
35289   ac_status=$?
35290   grep -v '^ *+' conftest.er1 >conftest.err
35291   rm -f conftest.er1
35292   cat conftest.err >&5
35293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294   (exit $ac_status); } &&
35295          { ac_try='test -z "$ac_c_werror_flag"
35296                          || test ! -s conftest.err'
35297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298   (eval $ac_try) 2>&5
35299   ac_status=$?
35300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301   (exit $ac_status); }; } &&
35302          { ac_try='test -s conftest.$ac_objext'
35303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35304   (eval $ac_try) 2>&5
35305   ac_status=$?
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); }; }; then
35308   eval "$as_ac_Header=yes"
35309 else
35310   echo "$as_me: failed program was:" >&5
35311 sed 's/^/| /' conftest.$ac_ext >&5
35312
35313 eval "$as_ac_Header=no"
35314 fi
35315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35316 fi
35317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35320   cat >>confdefs.h <<_ACEOF
35321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35322 _ACEOF
35323
35324 fi
35325
35326 done
35327
35328
35329 for ac_header in netinfo/ni.h
35330 do
35331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35333   echo "$as_me:$LINENO: checking for $ac_header" >&5
35334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35336   echo $ECHO_N "(cached) $ECHO_C" >&6
35337 fi
35338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35340 else
35341   # Is the header compilable?
35342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35344 cat >conftest.$ac_ext <<_ACEOF
35345 /* confdefs.h.  */
35346 _ACEOF
35347 cat confdefs.h >>conftest.$ac_ext
35348 cat >>conftest.$ac_ext <<_ACEOF
35349 /* end confdefs.h.  */
35350 $ac_includes_default
35351 #include <$ac_header>
35352 _ACEOF
35353 rm -f conftest.$ac_objext
35354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35355   (eval $ac_compile) 2>conftest.er1
35356   ac_status=$?
35357   grep -v '^ *+' conftest.er1 >conftest.err
35358   rm -f conftest.er1
35359   cat conftest.err >&5
35360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35361   (exit $ac_status); } &&
35362          { ac_try='test -z "$ac_c_werror_flag"
35363                          || test ! -s conftest.err'
35364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365   (eval $ac_try) 2>&5
35366   ac_status=$?
35367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368   (exit $ac_status); }; } &&
35369          { ac_try='test -s conftest.$ac_objext'
35370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371   (eval $ac_try) 2>&5
35372   ac_status=$?
35373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374   (exit $ac_status); }; }; then
35375   ac_header_compiler=yes
35376 else
35377   echo "$as_me: failed program was:" >&5
35378 sed 's/^/| /' conftest.$ac_ext >&5
35379
35380 ac_header_compiler=no
35381 fi
35382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35384 echo "${ECHO_T}$ac_header_compiler" >&6
35385
35386 # Is the header present?
35387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35389 cat >conftest.$ac_ext <<_ACEOF
35390 /* confdefs.h.  */
35391 _ACEOF
35392 cat confdefs.h >>conftest.$ac_ext
35393 cat >>conftest.$ac_ext <<_ACEOF
35394 /* end confdefs.h.  */
35395 #include <$ac_header>
35396 _ACEOF
35397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35399   ac_status=$?
35400   grep -v '^ *+' conftest.er1 >conftest.err
35401   rm -f conftest.er1
35402   cat conftest.err >&5
35403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404   (exit $ac_status); } >/dev/null; then
35405   if test -s conftest.err; then
35406     ac_cpp_err=$ac_c_preproc_warn_flag
35407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35408   else
35409     ac_cpp_err=
35410   fi
35411 else
35412   ac_cpp_err=yes
35413 fi
35414 if test -z "$ac_cpp_err"; then
35415   ac_header_preproc=yes
35416 else
35417   echo "$as_me: failed program was:" >&5
35418 sed 's/^/| /' conftest.$ac_ext >&5
35419
35420   ac_header_preproc=no
35421 fi
35422 rm -f conftest.err conftest.$ac_ext
35423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35424 echo "${ECHO_T}$ac_header_preproc" >&6
35425
35426 # So?  What about this header?
35427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35428   yes:no: )
35429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35433     ac_header_preproc=yes
35434     ;;
35435   no:yes:* )
35436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35448     (
35449       cat <<\_ASBOX
35450 ## ------------------------------ ##
35451 ## Report this to the ntp lists.  ##
35452 ## ------------------------------ ##
35453 _ASBOX
35454     ) |
35455       sed "s/^/$as_me: WARNING:     /" >&2
35456     ;;
35457 esac
35458 echo "$as_me:$LINENO: checking for $ac_header" >&5
35459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35461   echo $ECHO_N "(cached) $ECHO_C" >&6
35462 else
35463   eval "$as_ac_Header=\$ac_header_preproc"
35464 fi
35465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35467
35468 fi
35469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35470   cat >>confdefs.h <<_ACEOF
35471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35472 _ACEOF
35473
35474 cat >>confdefs.h <<\_ACEOF
35475 #define HAVE_NETINFO 1
35476 _ACEOF
35477
35478 fi
35479
35480 done
35481
35482
35483
35484 for ac_header in sun/audioio.h sys/audioio.h
35485 do
35486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35488   echo "$as_me:$LINENO: checking for $ac_header" >&5
35489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35491   echo $ECHO_N "(cached) $ECHO_C" >&6
35492 fi
35493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35495 else
35496   # Is the header compilable?
35497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35499 cat >conftest.$ac_ext <<_ACEOF
35500 /* confdefs.h.  */
35501 _ACEOF
35502 cat confdefs.h >>conftest.$ac_ext
35503 cat >>conftest.$ac_ext <<_ACEOF
35504 /* end confdefs.h.  */
35505 $ac_includes_default
35506 #include <$ac_header>
35507 _ACEOF
35508 rm -f conftest.$ac_objext
35509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35510   (eval $ac_compile) 2>conftest.er1
35511   ac_status=$?
35512   grep -v '^ *+' conftest.er1 >conftest.err
35513   rm -f conftest.er1
35514   cat conftest.err >&5
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } &&
35517          { ac_try='test -z "$ac_c_werror_flag"
35518                          || test ! -s conftest.err'
35519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520   (eval $ac_try) 2>&5
35521   ac_status=$?
35522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523   (exit $ac_status); }; } &&
35524          { ac_try='test -s conftest.$ac_objext'
35525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35526   (eval $ac_try) 2>&5
35527   ac_status=$?
35528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529   (exit $ac_status); }; }; then
35530   ac_header_compiler=yes
35531 else
35532   echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35534
35535 ac_header_compiler=no
35536 fi
35537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35539 echo "${ECHO_T}$ac_header_compiler" >&6
35540
35541 # Is the header present?
35542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35544 cat >conftest.$ac_ext <<_ACEOF
35545 /* confdefs.h.  */
35546 _ACEOF
35547 cat confdefs.h >>conftest.$ac_ext
35548 cat >>conftest.$ac_ext <<_ACEOF
35549 /* end confdefs.h.  */
35550 #include <$ac_header>
35551 _ACEOF
35552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35554   ac_status=$?
35555   grep -v '^ *+' conftest.er1 >conftest.err
35556   rm -f conftest.er1
35557   cat conftest.err >&5
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); } >/dev/null; then
35560   if test -s conftest.err; then
35561     ac_cpp_err=$ac_c_preproc_warn_flag
35562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35563   else
35564     ac_cpp_err=
35565   fi
35566 else
35567   ac_cpp_err=yes
35568 fi
35569 if test -z "$ac_cpp_err"; then
35570   ac_header_preproc=yes
35571 else
35572   echo "$as_me: failed program was:" >&5
35573 sed 's/^/| /' conftest.$ac_ext >&5
35574
35575   ac_header_preproc=no
35576 fi
35577 rm -f conftest.err conftest.$ac_ext
35578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35579 echo "${ECHO_T}$ac_header_preproc" >&6
35580
35581 # So?  What about this header?
35582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35583   yes:no: )
35584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35588     ac_header_preproc=yes
35589     ;;
35590   no:yes:* )
35591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35603     (
35604       cat <<\_ASBOX
35605 ## ------------------------------ ##
35606 ## Report this to the ntp lists.  ##
35607 ## ------------------------------ ##
35608 _ASBOX
35609     ) |
35610       sed "s/^/$as_me: WARNING:     /" >&2
35611     ;;
35612 esac
35613 echo "$as_me:$LINENO: checking for $ac_header" >&5
35614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35616   echo $ECHO_N "(cached) $ECHO_C" >&6
35617 else
35618   eval "$as_ac_Header=\$ac_header_preproc"
35619 fi
35620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35622
35623 fi
35624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35625   cat >>confdefs.h <<_ACEOF
35626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35627 _ACEOF
35628
35629 fi
35630
35631 done
35632
35633
35634
35635 for ac_header in sys/clkdefs.h sys/file.h
35636 do
35637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35639   echo "$as_me:$LINENO: checking for $ac_header" >&5
35640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35642   echo $ECHO_N "(cached) $ECHO_C" >&6
35643 fi
35644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35646 else
35647   # Is the header compilable?
35648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35650 cat >conftest.$ac_ext <<_ACEOF
35651 /* confdefs.h.  */
35652 _ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h.  */
35656 $ac_includes_default
35657 #include <$ac_header>
35658 _ACEOF
35659 rm -f conftest.$ac_objext
35660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35661   (eval $ac_compile) 2>conftest.er1
35662   ac_status=$?
35663   grep -v '^ *+' conftest.er1 >conftest.err
35664   rm -f conftest.er1
35665   cat conftest.err >&5
35666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); } &&
35668          { ac_try='test -z "$ac_c_werror_flag"
35669                          || test ! -s conftest.err'
35670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671   (eval $ac_try) 2>&5
35672   ac_status=$?
35673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674   (exit $ac_status); }; } &&
35675          { ac_try='test -s conftest.$ac_objext'
35676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35677   (eval $ac_try) 2>&5
35678   ac_status=$?
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); }; }; then
35681   ac_header_compiler=yes
35682 else
35683   echo "$as_me: failed program was:" >&5
35684 sed 's/^/| /' conftest.$ac_ext >&5
35685
35686 ac_header_compiler=no
35687 fi
35688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35690 echo "${ECHO_T}$ac_header_compiler" >&6
35691
35692 # Is the header present?
35693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35695 cat >conftest.$ac_ext <<_ACEOF
35696 /* confdefs.h.  */
35697 _ACEOF
35698 cat confdefs.h >>conftest.$ac_ext
35699 cat >>conftest.$ac_ext <<_ACEOF
35700 /* end confdefs.h.  */
35701 #include <$ac_header>
35702 _ACEOF
35703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35705   ac_status=$?
35706   grep -v '^ *+' conftest.er1 >conftest.err
35707   rm -f conftest.er1
35708   cat conftest.err >&5
35709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710   (exit $ac_status); } >/dev/null; then
35711   if test -s conftest.err; then
35712     ac_cpp_err=$ac_c_preproc_warn_flag
35713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35714   else
35715     ac_cpp_err=
35716   fi
35717 else
35718   ac_cpp_err=yes
35719 fi
35720 if test -z "$ac_cpp_err"; then
35721   ac_header_preproc=yes
35722 else
35723   echo "$as_me: failed program was:" >&5
35724 sed 's/^/| /' conftest.$ac_ext >&5
35725
35726   ac_header_preproc=no
35727 fi
35728 rm -f conftest.err conftest.$ac_ext
35729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35730 echo "${ECHO_T}$ac_header_preproc" >&6
35731
35732 # So?  What about this header?
35733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35734   yes:no: )
35735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35739     ac_header_preproc=yes
35740     ;;
35741   no:yes:* )
35742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35754     (
35755       cat <<\_ASBOX
35756 ## ------------------------------ ##
35757 ## Report this to the ntp lists.  ##
35758 ## ------------------------------ ##
35759 _ASBOX
35760     ) |
35761       sed "s/^/$as_me: WARNING:     /" >&2
35762     ;;
35763 esac
35764 echo "$as_me:$LINENO: checking for $ac_header" >&5
35765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35767   echo $ECHO_N "(cached) $ECHO_C" >&6
35768 else
35769   eval "$as_ac_Header=\$ac_header_preproc"
35770 fi
35771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35773
35774 fi
35775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35776   cat >>confdefs.h <<_ACEOF
35777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35778 _ACEOF
35779
35780 fi
35781
35782 done
35783
35784 case "$host" in
35785  *-*-sunos4*) ;;
35786  *)
35787 for ac_header in sys/ioctl.h
35788 do
35789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35791   echo "$as_me:$LINENO: checking for $ac_header" >&5
35792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35794   echo $ECHO_N "(cached) $ECHO_C" >&6
35795 fi
35796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35798 else
35799   # Is the header compilable?
35800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35802 cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808 $ac_includes_default
35809 #include <$ac_header>
35810 _ACEOF
35811 rm -f conftest.$ac_objext
35812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35813   (eval $ac_compile) 2>conftest.er1
35814   ac_status=$?
35815   grep -v '^ *+' conftest.er1 >conftest.err
35816   rm -f conftest.er1
35817   cat conftest.err >&5
35818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819   (exit $ac_status); } &&
35820          { ac_try='test -z "$ac_c_werror_flag"
35821                          || test ! -s conftest.err'
35822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35823   (eval $ac_try) 2>&5
35824   ac_status=$?
35825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826   (exit $ac_status); }; } &&
35827          { ac_try='test -s conftest.$ac_objext'
35828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35829   (eval $ac_try) 2>&5
35830   ac_status=$?
35831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832   (exit $ac_status); }; }; then
35833   ac_header_compiler=yes
35834 else
35835   echo "$as_me: failed program was:" >&5
35836 sed 's/^/| /' conftest.$ac_ext >&5
35837
35838 ac_header_compiler=no
35839 fi
35840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35842 echo "${ECHO_T}$ac_header_compiler" >&6
35843
35844 # Is the header present?
35845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35847 cat >conftest.$ac_ext <<_ACEOF
35848 /* confdefs.h.  */
35849 _ACEOF
35850 cat confdefs.h >>conftest.$ac_ext
35851 cat >>conftest.$ac_ext <<_ACEOF
35852 /* end confdefs.h.  */
35853 #include <$ac_header>
35854 _ACEOF
35855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35857   ac_status=$?
35858   grep -v '^ *+' conftest.er1 >conftest.err
35859   rm -f conftest.er1
35860   cat conftest.err >&5
35861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862   (exit $ac_status); } >/dev/null; then
35863   if test -s conftest.err; then
35864     ac_cpp_err=$ac_c_preproc_warn_flag
35865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35866   else
35867     ac_cpp_err=
35868   fi
35869 else
35870   ac_cpp_err=yes
35871 fi
35872 if test -z "$ac_cpp_err"; then
35873   ac_header_preproc=yes
35874 else
35875   echo "$as_me: failed program was:" >&5
35876 sed 's/^/| /' conftest.$ac_ext >&5
35877
35878   ac_header_preproc=no
35879 fi
35880 rm -f conftest.err conftest.$ac_ext
35881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35882 echo "${ECHO_T}$ac_header_preproc" >&6
35883
35884 # So?  What about this header?
35885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35886   yes:no: )
35887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35891     ac_header_preproc=yes
35892     ;;
35893   no:yes:* )
35894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35906     (
35907       cat <<\_ASBOX
35908 ## ------------------------------ ##
35909 ## Report this to the ntp lists.  ##
35910 ## ------------------------------ ##
35911 _ASBOX
35912     ) |
35913       sed "s/^/$as_me: WARNING:     /" >&2
35914     ;;
35915 esac
35916 echo "$as_me:$LINENO: checking for $ac_header" >&5
35917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35919   echo $ECHO_N "(cached) $ECHO_C" >&6
35920 else
35921   eval "$as_ac_Header=\$ac_header_preproc"
35922 fi
35923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35925
35926 fi
35927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35928   cat >>confdefs.h <<_ACEOF
35929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35930 _ACEOF
35931
35932 fi
35933
35934 done
35935
35936     ;;
35937 esac
35938
35939 for ac_header in sys/ipc.h
35940 do
35941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35943   echo "$as_me:$LINENO: checking for $ac_header" >&5
35944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35946   echo $ECHO_N "(cached) $ECHO_C" >&6
35947 fi
35948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35950 else
35951   # Is the header compilable?
35952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35954 cat >conftest.$ac_ext <<_ACEOF
35955 /* confdefs.h.  */
35956 _ACEOF
35957 cat confdefs.h >>conftest.$ac_ext
35958 cat >>conftest.$ac_ext <<_ACEOF
35959 /* end confdefs.h.  */
35960 $ac_includes_default
35961 #include <$ac_header>
35962 _ACEOF
35963 rm -f conftest.$ac_objext
35964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35965   (eval $ac_compile) 2>conftest.er1
35966   ac_status=$?
35967   grep -v '^ *+' conftest.er1 >conftest.err
35968   rm -f conftest.er1
35969   cat conftest.err >&5
35970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971   (exit $ac_status); } &&
35972          { ac_try='test -z "$ac_c_werror_flag"
35973                          || test ! -s conftest.err'
35974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35975   (eval $ac_try) 2>&5
35976   ac_status=$?
35977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978   (exit $ac_status); }; } &&
35979          { ac_try='test -s conftest.$ac_objext'
35980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35981   (eval $ac_try) 2>&5
35982   ac_status=$?
35983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); }; }; then
35985   ac_header_compiler=yes
35986 else
35987   echo "$as_me: failed program was:" >&5
35988 sed 's/^/| /' conftest.$ac_ext >&5
35989
35990 ac_header_compiler=no
35991 fi
35992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35994 echo "${ECHO_T}$ac_header_compiler" >&6
35995
35996 # Is the header present?
35997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35999 cat >conftest.$ac_ext <<_ACEOF
36000 /* confdefs.h.  */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h.  */
36005 #include <$ac_header>
36006 _ACEOF
36007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36009   ac_status=$?
36010   grep -v '^ *+' conftest.er1 >conftest.err
36011   rm -f conftest.er1
36012   cat conftest.err >&5
36013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014   (exit $ac_status); } >/dev/null; then
36015   if test -s conftest.err; then
36016     ac_cpp_err=$ac_c_preproc_warn_flag
36017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36018   else
36019     ac_cpp_err=
36020   fi
36021 else
36022   ac_cpp_err=yes
36023 fi
36024 if test -z "$ac_cpp_err"; then
36025   ac_header_preproc=yes
36026 else
36027   echo "$as_me: failed program was:" >&5
36028 sed 's/^/| /' conftest.$ac_ext >&5
36029
36030   ac_header_preproc=no
36031 fi
36032 rm -f conftest.err conftest.$ac_ext
36033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36034 echo "${ECHO_T}$ac_header_preproc" >&6
36035
36036 # So?  What about this header?
36037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36038   yes:no: )
36039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36043     ac_header_preproc=yes
36044     ;;
36045   no:yes:* )
36046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36058     (
36059       cat <<\_ASBOX
36060 ## ------------------------------ ##
36061 ## Report this to the ntp lists.  ##
36062 ## ------------------------------ ##
36063 _ASBOX
36064     ) |
36065       sed "s/^/$as_me: WARNING:     /" >&2
36066     ;;
36067 esac
36068 echo "$as_me:$LINENO: checking for $ac_header" >&5
36069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36071   echo $ECHO_N "(cached) $ECHO_C" >&6
36072 else
36073   eval "$as_ac_Header=\$ac_header_preproc"
36074 fi
36075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36077
36078 fi
36079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36080   cat >>confdefs.h <<_ACEOF
36081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36082 _ACEOF
36083
36084 fi
36085
36086 done
36087
36088
36089
36090
36091
36092
36093 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
36094 do
36095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36097   echo "$as_me:$LINENO: checking for $ac_header" >&5
36098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36100   echo $ECHO_N "(cached) $ECHO_C" >&6
36101 fi
36102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36104 else
36105   # Is the header compilable?
36106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36108 cat >conftest.$ac_ext <<_ACEOF
36109 /* confdefs.h.  */
36110 _ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h.  */
36114 $ac_includes_default
36115 #include <$ac_header>
36116 _ACEOF
36117 rm -f conftest.$ac_objext
36118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36119   (eval $ac_compile) 2>conftest.er1
36120   ac_status=$?
36121   grep -v '^ *+' conftest.er1 >conftest.err
36122   rm -f conftest.er1
36123   cat conftest.err >&5
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); } &&
36126          { ac_try='test -z "$ac_c_werror_flag"
36127                          || test ! -s conftest.err'
36128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129   (eval $ac_try) 2>&5
36130   ac_status=$?
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); }; } &&
36133          { ac_try='test -s conftest.$ac_objext'
36134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135   (eval $ac_try) 2>&5
36136   ac_status=$?
36137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138   (exit $ac_status); }; }; then
36139   ac_header_compiler=yes
36140 else
36141   echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36143
36144 ac_header_compiler=no
36145 fi
36146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36148 echo "${ECHO_T}$ac_header_compiler" >&6
36149
36150 # Is the header present?
36151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36153 cat >conftest.$ac_ext <<_ACEOF
36154 /* confdefs.h.  */
36155 _ACEOF
36156 cat confdefs.h >>conftest.$ac_ext
36157 cat >>conftest.$ac_ext <<_ACEOF
36158 /* end confdefs.h.  */
36159 #include <$ac_header>
36160 _ACEOF
36161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36163   ac_status=$?
36164   grep -v '^ *+' conftest.er1 >conftest.err
36165   rm -f conftest.er1
36166   cat conftest.err >&5
36167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168   (exit $ac_status); } >/dev/null; then
36169   if test -s conftest.err; then
36170     ac_cpp_err=$ac_c_preproc_warn_flag
36171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36172   else
36173     ac_cpp_err=
36174   fi
36175 else
36176   ac_cpp_err=yes
36177 fi
36178 if test -z "$ac_cpp_err"; then
36179   ac_header_preproc=yes
36180 else
36181   echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36183
36184   ac_header_preproc=no
36185 fi
36186 rm -f conftest.err conftest.$ac_ext
36187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36188 echo "${ECHO_T}$ac_header_preproc" >&6
36189
36190 # So?  What about this header?
36191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36192   yes:no: )
36193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36197     ac_header_preproc=yes
36198     ;;
36199   no:yes:* )
36200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36212     (
36213       cat <<\_ASBOX
36214 ## ------------------------------ ##
36215 ## Report this to the ntp lists.  ##
36216 ## ------------------------------ ##
36217 _ASBOX
36218     ) |
36219       sed "s/^/$as_me: WARNING:     /" >&2
36220     ;;
36221 esac
36222 echo "$as_me:$LINENO: checking for $ac_header" >&5
36223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36225   echo $ECHO_N "(cached) $ECHO_C" >&6
36226 else
36227   eval "$as_ac_Header=\$ac_header_preproc"
36228 fi
36229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36231
36232 fi
36233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36234   cat >>confdefs.h <<_ACEOF
36235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36236 _ACEOF
36237
36238 fi
36239
36240 done
36241
36242 # HMS: Check sys/proc.h and sys/resource.h after some others
36243
36244 for ac_header in sys/ppstime.h
36245 do
36246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36248   echo "$as_me:$LINENO: checking for $ac_header" >&5
36249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36251   echo $ECHO_N "(cached) $ECHO_C" >&6
36252 fi
36253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36255 else
36256   # Is the header compilable?
36257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36259 cat >conftest.$ac_ext <<_ACEOF
36260 /* confdefs.h.  */
36261 _ACEOF
36262 cat confdefs.h >>conftest.$ac_ext
36263 cat >>conftest.$ac_ext <<_ACEOF
36264 /* end confdefs.h.  */
36265 $ac_includes_default
36266 #include <$ac_header>
36267 _ACEOF
36268 rm -f conftest.$ac_objext
36269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36270   (eval $ac_compile) 2>conftest.er1
36271   ac_status=$?
36272   grep -v '^ *+' conftest.er1 >conftest.err
36273   rm -f conftest.er1
36274   cat conftest.err >&5
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); } &&
36277          { ac_try='test -z "$ac_c_werror_flag"
36278                          || test ! -s conftest.err'
36279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280   (eval $ac_try) 2>&5
36281   ac_status=$?
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); }; } &&
36284          { ac_try='test -s conftest.$ac_objext'
36285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36286   (eval $ac_try) 2>&5
36287   ac_status=$?
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); }; }; then
36290   ac_header_compiler=yes
36291 else
36292   echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.$ac_ext >&5
36294
36295 ac_header_compiler=no
36296 fi
36297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36299 echo "${ECHO_T}$ac_header_compiler" >&6
36300
36301 # Is the header present?
36302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36304 cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 #include <$ac_header>
36311 _ACEOF
36312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36314   ac_status=$?
36315   grep -v '^ *+' conftest.er1 >conftest.err
36316   rm -f conftest.er1
36317   cat conftest.err >&5
36318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319   (exit $ac_status); } >/dev/null; then
36320   if test -s conftest.err; then
36321     ac_cpp_err=$ac_c_preproc_warn_flag
36322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36323   else
36324     ac_cpp_err=
36325   fi
36326 else
36327   ac_cpp_err=yes
36328 fi
36329 if test -z "$ac_cpp_err"; then
36330   ac_header_preproc=yes
36331 else
36332   echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36334
36335   ac_header_preproc=no
36336 fi
36337 rm -f conftest.err conftest.$ac_ext
36338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36339 echo "${ECHO_T}$ac_header_preproc" >&6
36340
36341 # So?  What about this header?
36342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36343   yes:no: )
36344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36348     ac_header_preproc=yes
36349     ;;
36350   no:yes:* )
36351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36363     (
36364       cat <<\_ASBOX
36365 ## ------------------------------ ##
36366 ## Report this to the ntp lists.  ##
36367 ## ------------------------------ ##
36368 _ASBOX
36369     ) |
36370       sed "s/^/$as_me: WARNING:     /" >&2
36371     ;;
36372 esac
36373 echo "$as_me:$LINENO: checking for $ac_header" >&5
36374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36376   echo $ECHO_N "(cached) $ECHO_C" >&6
36377 else
36378   eval "$as_ac_Header=\$ac_header_preproc"
36379 fi
36380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36382
36383 fi
36384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36385   cat >>confdefs.h <<_ACEOF
36386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36387 _ACEOF
36388
36389 fi
36390
36391 done
36392
36393 case "$ac_cv_header_sched_h" in
36394  yes) ;;
36395  *)
36396 for ac_header in sys/sched.h
36397 do
36398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36400   echo "$as_me:$LINENO: checking for $ac_header" >&5
36401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36403   echo $ECHO_N "(cached) $ECHO_C" >&6
36404 fi
36405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36407 else
36408   # Is the header compilable?
36409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36411 cat >conftest.$ac_ext <<_ACEOF
36412 /* confdefs.h.  */
36413 _ACEOF
36414 cat confdefs.h >>conftest.$ac_ext
36415 cat >>conftest.$ac_ext <<_ACEOF
36416 /* end confdefs.h.  */
36417 $ac_includes_default
36418 #include <$ac_header>
36419 _ACEOF
36420 rm -f conftest.$ac_objext
36421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36422   (eval $ac_compile) 2>conftest.er1
36423   ac_status=$?
36424   grep -v '^ *+' conftest.er1 >conftest.err
36425   rm -f conftest.er1
36426   cat conftest.err >&5
36427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428   (exit $ac_status); } &&
36429          { ac_try='test -z "$ac_c_werror_flag"
36430                          || test ! -s conftest.err'
36431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36432   (eval $ac_try) 2>&5
36433   ac_status=$?
36434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435   (exit $ac_status); }; } &&
36436          { ac_try='test -s conftest.$ac_objext'
36437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36438   (eval $ac_try) 2>&5
36439   ac_status=$?
36440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441   (exit $ac_status); }; }; then
36442   ac_header_compiler=yes
36443 else
36444   echo "$as_me: failed program was:" >&5
36445 sed 's/^/| /' conftest.$ac_ext >&5
36446
36447 ac_header_compiler=no
36448 fi
36449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36451 echo "${ECHO_T}$ac_header_compiler" >&6
36452
36453 # Is the header present?
36454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36456 cat >conftest.$ac_ext <<_ACEOF
36457 /* confdefs.h.  */
36458 _ACEOF
36459 cat confdefs.h >>conftest.$ac_ext
36460 cat >>conftest.$ac_ext <<_ACEOF
36461 /* end confdefs.h.  */
36462 #include <$ac_header>
36463 _ACEOF
36464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36466   ac_status=$?
36467   grep -v '^ *+' conftest.er1 >conftest.err
36468   rm -f conftest.er1
36469   cat conftest.err >&5
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); } >/dev/null; then
36472   if test -s conftest.err; then
36473     ac_cpp_err=$ac_c_preproc_warn_flag
36474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36475   else
36476     ac_cpp_err=
36477   fi
36478 else
36479   ac_cpp_err=yes
36480 fi
36481 if test -z "$ac_cpp_err"; then
36482   ac_header_preproc=yes
36483 else
36484   echo "$as_me: failed program was:" >&5
36485 sed 's/^/| /' conftest.$ac_ext >&5
36486
36487   ac_header_preproc=no
36488 fi
36489 rm -f conftest.err conftest.$ac_ext
36490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36491 echo "${ECHO_T}$ac_header_preproc" >&6
36492
36493 # So?  What about this header?
36494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36495   yes:no: )
36496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36500     ac_header_preproc=yes
36501     ;;
36502   no:yes:* )
36503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36515     (
36516       cat <<\_ASBOX
36517 ## ------------------------------ ##
36518 ## Report this to the ntp lists.  ##
36519 ## ------------------------------ ##
36520 _ASBOX
36521     ) |
36522       sed "s/^/$as_me: WARNING:     /" >&2
36523     ;;
36524 esac
36525 echo "$as_me:$LINENO: checking for $ac_header" >&5
36526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36528   echo $ECHO_N "(cached) $ECHO_C" >&6
36529 else
36530   eval "$as_ac_Header=\$ac_header_preproc"
36531 fi
36532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36534
36535 fi
36536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36537   cat >>confdefs.h <<_ACEOF
36538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36539 _ACEOF
36540
36541 fi
36542
36543 done
36544  ;;
36545 esac
36546 case "$host" in
36547  *-*-sco*)
36548
36549 for ac_header in sys/sio.h
36550 do
36551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36553   echo "$as_me:$LINENO: checking for $ac_header" >&5
36554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36556   echo $ECHO_N "(cached) $ECHO_C" >&6
36557 fi
36558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36560 else
36561   # Is the header compilable?
36562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36564 cat >conftest.$ac_ext <<_ACEOF
36565 /* confdefs.h.  */
36566 _ACEOF
36567 cat confdefs.h >>conftest.$ac_ext
36568 cat >>conftest.$ac_ext <<_ACEOF
36569 /* end confdefs.h.  */
36570 $ac_includes_default
36571 #include <$ac_header>
36572 _ACEOF
36573 rm -f conftest.$ac_objext
36574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36575   (eval $ac_compile) 2>conftest.er1
36576   ac_status=$?
36577   grep -v '^ *+' conftest.er1 >conftest.err
36578   rm -f conftest.er1
36579   cat conftest.err >&5
36580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581   (exit $ac_status); } &&
36582          { ac_try='test -z "$ac_c_werror_flag"
36583                          || test ! -s conftest.err'
36584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585   (eval $ac_try) 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); }; } &&
36589          { ac_try='test -s conftest.$ac_objext'
36590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591   (eval $ac_try) 2>&5
36592   ac_status=$?
36593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594   (exit $ac_status); }; }; then
36595   ac_header_compiler=yes
36596 else
36597   echo "$as_me: failed program was:" >&5
36598 sed 's/^/| /' conftest.$ac_ext >&5
36599
36600 ac_header_compiler=no
36601 fi
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36604 echo "${ECHO_T}$ac_header_compiler" >&6
36605
36606 # Is the header present?
36607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36609 cat >conftest.$ac_ext <<_ACEOF
36610 /* confdefs.h.  */
36611 _ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h.  */
36615 #include <$ac_header>
36616 _ACEOF
36617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36619   ac_status=$?
36620   grep -v '^ *+' conftest.er1 >conftest.err
36621   rm -f conftest.er1
36622   cat conftest.err >&5
36623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624   (exit $ac_status); } >/dev/null; then
36625   if test -s conftest.err; then
36626     ac_cpp_err=$ac_c_preproc_warn_flag
36627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36628   else
36629     ac_cpp_err=
36630   fi
36631 else
36632   ac_cpp_err=yes
36633 fi
36634 if test -z "$ac_cpp_err"; then
36635   ac_header_preproc=yes
36636 else
36637   echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36639
36640   ac_header_preproc=no
36641 fi
36642 rm -f conftest.err conftest.$ac_ext
36643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36644 echo "${ECHO_T}$ac_header_preproc" >&6
36645
36646 # So?  What about this header?
36647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36648   yes:no: )
36649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36653     ac_header_preproc=yes
36654     ;;
36655   no:yes:* )
36656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36668     (
36669       cat <<\_ASBOX
36670 ## ------------------------------ ##
36671 ## Report this to the ntp lists.  ##
36672 ## ------------------------------ ##
36673 _ASBOX
36674     ) |
36675       sed "s/^/$as_me: WARNING:     /" >&2
36676     ;;
36677 esac
36678 echo "$as_me:$LINENO: checking for $ac_header" >&5
36679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36681   echo $ECHO_N "(cached) $ECHO_C" >&6
36682 else
36683   eval "$as_ac_Header=\$ac_header_preproc"
36684 fi
36685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36687
36688 fi
36689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36690   cat >>confdefs.h <<_ACEOF
36691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36692 _ACEOF
36693
36694 fi
36695
36696 done
36697
36698     ;;
36699 esac
36700 # HMS: Check sys/shm.h after some others
36701
36702
36703
36704 for ac_header in sys/select.h sys/signal.h sys/sockio.h
36705 do
36706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36708   echo "$as_me:$LINENO: checking for $ac_header" >&5
36709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36711   echo $ECHO_N "(cached) $ECHO_C" >&6
36712 fi
36713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36715 else
36716   # Is the header compilable?
36717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36719 cat >conftest.$ac_ext <<_ACEOF
36720 /* confdefs.h.  */
36721 _ACEOF
36722 cat confdefs.h >>conftest.$ac_ext
36723 cat >>conftest.$ac_ext <<_ACEOF
36724 /* end confdefs.h.  */
36725 $ac_includes_default
36726 #include <$ac_header>
36727 _ACEOF
36728 rm -f conftest.$ac_objext
36729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36730   (eval $ac_compile) 2>conftest.er1
36731   ac_status=$?
36732   grep -v '^ *+' conftest.er1 >conftest.err
36733   rm -f conftest.er1
36734   cat conftest.err >&5
36735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736   (exit $ac_status); } &&
36737          { ac_try='test -z "$ac_c_werror_flag"
36738                          || test ! -s conftest.err'
36739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36740   (eval $ac_try) 2>&5
36741   ac_status=$?
36742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743   (exit $ac_status); }; } &&
36744          { ac_try='test -s conftest.$ac_objext'
36745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746   (eval $ac_try) 2>&5
36747   ac_status=$?
36748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749   (exit $ac_status); }; }; then
36750   ac_header_compiler=yes
36751 else
36752   echo "$as_me: failed program was:" >&5
36753 sed 's/^/| /' conftest.$ac_ext >&5
36754
36755 ac_header_compiler=no
36756 fi
36757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36759 echo "${ECHO_T}$ac_header_compiler" >&6
36760
36761 # Is the header present?
36762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36764 cat >conftest.$ac_ext <<_ACEOF
36765 /* confdefs.h.  */
36766 _ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h.  */
36770 #include <$ac_header>
36771 _ACEOF
36772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36774   ac_status=$?
36775   grep -v '^ *+' conftest.er1 >conftest.err
36776   rm -f conftest.er1
36777   cat conftest.err >&5
36778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36779   (exit $ac_status); } >/dev/null; then
36780   if test -s conftest.err; then
36781     ac_cpp_err=$ac_c_preproc_warn_flag
36782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36783   else
36784     ac_cpp_err=
36785   fi
36786 else
36787   ac_cpp_err=yes
36788 fi
36789 if test -z "$ac_cpp_err"; then
36790   ac_header_preproc=yes
36791 else
36792   echo "$as_me: failed program was:" >&5
36793 sed 's/^/| /' conftest.$ac_ext >&5
36794
36795   ac_header_preproc=no
36796 fi
36797 rm -f conftest.err conftest.$ac_ext
36798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36799 echo "${ECHO_T}$ac_header_preproc" >&6
36800
36801 # So?  What about this header?
36802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36803   yes:no: )
36804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36808     ac_header_preproc=yes
36809     ;;
36810   no:yes:* )
36811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36823     (
36824       cat <<\_ASBOX
36825 ## ------------------------------ ##
36826 ## Report this to the ntp lists.  ##
36827 ## ------------------------------ ##
36828 _ASBOX
36829     ) |
36830       sed "s/^/$as_me: WARNING:     /" >&2
36831     ;;
36832 esac
36833 echo "$as_me:$LINENO: checking for $ac_header" >&5
36834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36836   echo $ECHO_N "(cached) $ECHO_C" >&6
36837 else
36838   eval "$as_ac_Header=\$ac_header_preproc"
36839 fi
36840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36842
36843 fi
36844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36845   cat >>confdefs.h <<_ACEOF
36846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36847 _ACEOF
36848
36849 fi
36850
36851 done
36852
36853 # HMS: Checked sys/socket.h earlier
36854 case "$host" in
36855  *-*-netbsd*) ;;
36856  *)
36857
36858 for ac_header in machine/soundcard.h sys/soundcard.h
36859 do
36860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36862   echo "$as_me:$LINENO: checking for $ac_header" >&5
36863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36865   echo $ECHO_N "(cached) $ECHO_C" >&6
36866 fi
36867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36869 else
36870   # Is the header compilable?
36871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36873 cat >conftest.$ac_ext <<_ACEOF
36874 /* confdefs.h.  */
36875 _ACEOF
36876 cat confdefs.h >>conftest.$ac_ext
36877 cat >>conftest.$ac_ext <<_ACEOF
36878 /* end confdefs.h.  */
36879 $ac_includes_default
36880 #include <$ac_header>
36881 _ACEOF
36882 rm -f conftest.$ac_objext
36883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36884   (eval $ac_compile) 2>conftest.er1
36885   ac_status=$?
36886   grep -v '^ *+' conftest.er1 >conftest.err
36887   rm -f conftest.er1
36888   cat conftest.err >&5
36889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890   (exit $ac_status); } &&
36891          { ac_try='test -z "$ac_c_werror_flag"
36892                          || test ! -s conftest.err'
36893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36894   (eval $ac_try) 2>&5
36895   ac_status=$?
36896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36897   (exit $ac_status); }; } &&
36898          { ac_try='test -s conftest.$ac_objext'
36899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36900   (eval $ac_try) 2>&5
36901   ac_status=$?
36902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903   (exit $ac_status); }; }; then
36904   ac_header_compiler=yes
36905 else
36906   echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.$ac_ext >&5
36908
36909 ac_header_compiler=no
36910 fi
36911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36913 echo "${ECHO_T}$ac_header_compiler" >&6
36914
36915 # Is the header present?
36916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36918 cat >conftest.$ac_ext <<_ACEOF
36919 /* confdefs.h.  */
36920 _ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h.  */
36924 #include <$ac_header>
36925 _ACEOF
36926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36928   ac_status=$?
36929   grep -v '^ *+' conftest.er1 >conftest.err
36930   rm -f conftest.er1
36931   cat conftest.err >&5
36932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933   (exit $ac_status); } >/dev/null; then
36934   if test -s conftest.err; then
36935     ac_cpp_err=$ac_c_preproc_warn_flag
36936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36937   else
36938     ac_cpp_err=
36939   fi
36940 else
36941   ac_cpp_err=yes
36942 fi
36943 if test -z "$ac_cpp_err"; then
36944   ac_header_preproc=yes
36945 else
36946   echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36948
36949   ac_header_preproc=no
36950 fi
36951 rm -f conftest.err conftest.$ac_ext
36952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36953 echo "${ECHO_T}$ac_header_preproc" >&6
36954
36955 # So?  What about this header?
36956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36957   yes:no: )
36958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36962     ac_header_preproc=yes
36963     ;;
36964   no:yes:* )
36965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36977     (
36978       cat <<\_ASBOX
36979 ## ------------------------------ ##
36980 ## Report this to the ntp lists.  ##
36981 ## ------------------------------ ##
36982 _ASBOX
36983     ) |
36984       sed "s/^/$as_me: WARNING:     /" >&2
36985     ;;
36986 esac
36987 echo "$as_me:$LINENO: checking for $ac_header" >&5
36988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36990   echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992   eval "$as_ac_Header=\$ac_header_preproc"
36993 fi
36994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36996
36997 fi
36998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36999   cat >>confdefs.h <<_ACEOF
37000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37001 _ACEOF
37002
37003 fi
37004
37005 done
37006
37007     ;;
37008 esac
37009
37010
37011 for ac_header in sys/stat.h sys/stream.h
37012 do
37013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37015   echo "$as_me:$LINENO: checking for $ac_header" >&5
37016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37018   echo $ECHO_N "(cached) $ECHO_C" >&6
37019 fi
37020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37022 else
37023   # Is the header compilable?
37024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37026 cat >conftest.$ac_ext <<_ACEOF
37027 /* confdefs.h.  */
37028 _ACEOF
37029 cat confdefs.h >>conftest.$ac_ext
37030 cat >>conftest.$ac_ext <<_ACEOF
37031 /* end confdefs.h.  */
37032 $ac_includes_default
37033 #include <$ac_header>
37034 _ACEOF
37035 rm -f conftest.$ac_objext
37036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37037   (eval $ac_compile) 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_objext'
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   ac_header_compiler=yes
37058 else
37059   echo "$as_me: failed program was:" >&5
37060 sed 's/^/| /' conftest.$ac_ext >&5
37061
37062 ac_header_compiler=no
37063 fi
37064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37066 echo "${ECHO_T}$ac_header_compiler" >&6
37067
37068 # Is the header present?
37069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37071 cat >conftest.$ac_ext <<_ACEOF
37072 /* confdefs.h.  */
37073 _ACEOF
37074 cat confdefs.h >>conftest.$ac_ext
37075 cat >>conftest.$ac_ext <<_ACEOF
37076 /* end confdefs.h.  */
37077 #include <$ac_header>
37078 _ACEOF
37079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37081   ac_status=$?
37082   grep -v '^ *+' conftest.er1 >conftest.err
37083   rm -f conftest.er1
37084   cat conftest.err >&5
37085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086   (exit $ac_status); } >/dev/null; then
37087   if test -s conftest.err; then
37088     ac_cpp_err=$ac_c_preproc_warn_flag
37089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37090   else
37091     ac_cpp_err=
37092   fi
37093 else
37094   ac_cpp_err=yes
37095 fi
37096 if test -z "$ac_cpp_err"; then
37097   ac_header_preproc=yes
37098 else
37099   echo "$as_me: failed program was:" >&5
37100 sed 's/^/| /' conftest.$ac_ext >&5
37101
37102   ac_header_preproc=no
37103 fi
37104 rm -f conftest.err conftest.$ac_ext
37105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37106 echo "${ECHO_T}$ac_header_preproc" >&6
37107
37108 # So?  What about this header?
37109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37110   yes:no: )
37111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37115     ac_header_preproc=yes
37116     ;;
37117   no:yes:* )
37118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37130     (
37131       cat <<\_ASBOX
37132 ## ------------------------------ ##
37133 ## Report this to the ntp lists.  ##
37134 ## ------------------------------ ##
37135 _ASBOX
37136     ) |
37137       sed "s/^/$as_me: WARNING:     /" >&2
37138     ;;
37139 esac
37140 echo "$as_me:$LINENO: checking for $ac_header" >&5
37141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37143   echo $ECHO_N "(cached) $ECHO_C" >&6
37144 else
37145   eval "$as_ac_Header=\$ac_header_preproc"
37146 fi
37147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37149
37150 fi
37151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37152   cat >>confdefs.h <<_ACEOF
37153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37154 _ACEOF
37155
37156 fi
37157
37158 done
37159
37160
37161
37162
37163
37164 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
37165 do
37166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37168   echo "$as_me:$LINENO: checking for $ac_header" >&5
37169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37171   echo $ECHO_N "(cached) $ECHO_C" >&6
37172 fi
37173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37175 else
37176   # Is the header compilable?
37177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37179 cat >conftest.$ac_ext <<_ACEOF
37180 /* confdefs.h.  */
37181 _ACEOF
37182 cat confdefs.h >>conftest.$ac_ext
37183 cat >>conftest.$ac_ext <<_ACEOF
37184 /* end confdefs.h.  */
37185 $ac_includes_default
37186 #include <$ac_header>
37187 _ACEOF
37188 rm -f conftest.$ac_objext
37189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37190   (eval $ac_compile) 2>conftest.er1
37191   ac_status=$?
37192   grep -v '^ *+' conftest.er1 >conftest.err
37193   rm -f conftest.er1
37194   cat conftest.err >&5
37195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196   (exit $ac_status); } &&
37197          { ac_try='test -z "$ac_c_werror_flag"
37198                          || test ! -s conftest.err'
37199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200   (eval $ac_try) 2>&5
37201   ac_status=$?
37202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203   (exit $ac_status); }; } &&
37204          { ac_try='test -s conftest.$ac_objext'
37205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37206   (eval $ac_try) 2>&5
37207   ac_status=$?
37208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209   (exit $ac_status); }; }; then
37210   ac_header_compiler=yes
37211 else
37212   echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37214
37215 ac_header_compiler=no
37216 fi
37217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37219 echo "${ECHO_T}$ac_header_compiler" >&6
37220
37221 # Is the header present?
37222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37224 cat >conftest.$ac_ext <<_ACEOF
37225 /* confdefs.h.  */
37226 _ACEOF
37227 cat confdefs.h >>conftest.$ac_ext
37228 cat >>conftest.$ac_ext <<_ACEOF
37229 /* end confdefs.h.  */
37230 #include <$ac_header>
37231 _ACEOF
37232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37234   ac_status=$?
37235   grep -v '^ *+' conftest.er1 >conftest.err
37236   rm -f conftest.er1
37237   cat conftest.err >&5
37238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239   (exit $ac_status); } >/dev/null; then
37240   if test -s conftest.err; then
37241     ac_cpp_err=$ac_c_preproc_warn_flag
37242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37243   else
37244     ac_cpp_err=
37245   fi
37246 else
37247   ac_cpp_err=yes
37248 fi
37249 if test -z "$ac_cpp_err"; then
37250   ac_header_preproc=yes
37251 else
37252   echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37254
37255   ac_header_preproc=no
37256 fi
37257 rm -f conftest.err conftest.$ac_ext
37258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37259 echo "${ECHO_T}$ac_header_preproc" >&6
37260
37261 # So?  What about this header?
37262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37263   yes:no: )
37264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37268     ac_header_preproc=yes
37269     ;;
37270   no:yes:* )
37271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37283     (
37284       cat <<\_ASBOX
37285 ## ------------------------------ ##
37286 ## Report this to the ntp lists.  ##
37287 ## ------------------------------ ##
37288 _ASBOX
37289     ) |
37290       sed "s/^/$as_me: WARNING:     /" >&2
37291     ;;
37292 esac
37293 echo "$as_me:$LINENO: checking for $ac_header" >&5
37294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37296   echo $ECHO_N "(cached) $ECHO_C" >&6
37297 else
37298   eval "$as_ac_Header=\$ac_header_preproc"
37299 fi
37300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37302
37303 fi
37304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37305   cat >>confdefs.h <<_ACEOF
37306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37307 _ACEOF
37308
37309 fi
37310
37311 done
37312
37313
37314
37315
37316 for ac_header in sys/termios.h sys/time.h sys/signal.h
37317 do
37318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37320   echo "$as_me:$LINENO: checking for $ac_header" >&5
37321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37323   echo $ECHO_N "(cached) $ECHO_C" >&6
37324 fi
37325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37327 else
37328   # Is the header compilable?
37329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37331 cat >conftest.$ac_ext <<_ACEOF
37332 /* confdefs.h.  */
37333 _ACEOF
37334 cat confdefs.h >>conftest.$ac_ext
37335 cat >>conftest.$ac_ext <<_ACEOF
37336 /* end confdefs.h.  */
37337 $ac_includes_default
37338 #include <$ac_header>
37339 _ACEOF
37340 rm -f conftest.$ac_objext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37342   (eval $ac_compile) 2>conftest.er1
37343   ac_status=$?
37344   grep -v '^ *+' conftest.er1 >conftest.err
37345   rm -f conftest.er1
37346   cat conftest.err >&5
37347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348   (exit $ac_status); } &&
37349          { ac_try='test -z "$ac_c_werror_flag"
37350                          || test ! -s conftest.err'
37351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352   (eval $ac_try) 2>&5
37353   ac_status=$?
37354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355   (exit $ac_status); }; } &&
37356          { ac_try='test -s conftest.$ac_objext'
37357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358   (eval $ac_try) 2>&5
37359   ac_status=$?
37360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361   (exit $ac_status); }; }; then
37362   ac_header_compiler=yes
37363 else
37364   echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37366
37367 ac_header_compiler=no
37368 fi
37369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37371 echo "${ECHO_T}$ac_header_compiler" >&6
37372
37373 # Is the header present?
37374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37376 cat >conftest.$ac_ext <<_ACEOF
37377 /* confdefs.h.  */
37378 _ACEOF
37379 cat confdefs.h >>conftest.$ac_ext
37380 cat >>conftest.$ac_ext <<_ACEOF
37381 /* end confdefs.h.  */
37382 #include <$ac_header>
37383 _ACEOF
37384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37386   ac_status=$?
37387   grep -v '^ *+' conftest.er1 >conftest.err
37388   rm -f conftest.er1
37389   cat conftest.err >&5
37390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391   (exit $ac_status); } >/dev/null; then
37392   if test -s conftest.err; then
37393     ac_cpp_err=$ac_c_preproc_warn_flag
37394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37395   else
37396     ac_cpp_err=
37397   fi
37398 else
37399   ac_cpp_err=yes
37400 fi
37401 if test -z "$ac_cpp_err"; then
37402   ac_header_preproc=yes
37403 else
37404   echo "$as_me: failed program was:" >&5
37405 sed 's/^/| /' conftest.$ac_ext >&5
37406
37407   ac_header_preproc=no
37408 fi
37409 rm -f conftest.err conftest.$ac_ext
37410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37411 echo "${ECHO_T}$ac_header_preproc" >&6
37412
37413 # So?  What about this header?
37414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37415   yes:no: )
37416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37420     ac_header_preproc=yes
37421     ;;
37422   no:yes:* )
37423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37435     (
37436       cat <<\_ASBOX
37437 ## ------------------------------ ##
37438 ## Report this to the ntp lists.  ##
37439 ## ------------------------------ ##
37440 _ASBOX
37441     ) |
37442       sed "s/^/$as_me: WARNING:     /" >&2
37443     ;;
37444 esac
37445 echo "$as_me:$LINENO: checking for $ac_header" >&5
37446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37448   echo $ECHO_N "(cached) $ECHO_C" >&6
37449 else
37450   eval "$as_ac_Header=\$ac_header_preproc"
37451 fi
37452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37454
37455 fi
37456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37457   cat >>confdefs.h <<_ACEOF
37458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37459 _ACEOF
37460
37461 fi
37462
37463 done
37464
37465 cat >conftest.$ac_ext <<_ACEOF
37466 /* confdefs.h.  */
37467 _ACEOF
37468 cat confdefs.h >>conftest.$ac_ext
37469 cat >>conftest.$ac_ext <<_ACEOF
37470 /* end confdefs.h.  */
37471 #if HAVE_SYS_TIME_H
37472 # include <sys/time.h>
37473 #endif
37474 #if HAVE_ERRNO_H
37475 # include <errno.h>
37476 #endif
37477 #include <sys/timepps.h>
37478 #ifdef PPS_API_VERS_1
37479 yes
37480 #endif
37481
37482 _ACEOF
37483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37484   $EGREP "yes" >/dev/null 2>&1; then
37485
37486 for ac_header in sys/timepps.h
37487 do
37488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37489 echo "$as_me:$LINENO: checking for $ac_header" >&5
37490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37492   echo $ECHO_N "(cached) $ECHO_C" >&6
37493 else
37494   cat >conftest.$ac_ext <<_ACEOF
37495 /* confdefs.h.  */
37496 _ACEOF
37497 cat confdefs.h >>conftest.$ac_ext
37498 cat >>conftest.$ac_ext <<_ACEOF
37499 /* end confdefs.h.  */
37500 #if HAVE_SYS_TIME_H
37501 # include <sys/time.h>
37502 #endif
37503 #if HAVE_ERRNO_H
37504 # include <errno.h>
37505 #endif
37506
37507
37508 #include <$ac_header>
37509 _ACEOF
37510 rm -f conftest.$ac_objext
37511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37512   (eval $ac_compile) 2>conftest.er1
37513   ac_status=$?
37514   grep -v '^ *+' conftest.er1 >conftest.err
37515   rm -f conftest.er1
37516   cat conftest.err >&5
37517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518   (exit $ac_status); } &&
37519          { ac_try='test -z "$ac_c_werror_flag"
37520                          || test ! -s conftest.err'
37521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522   (eval $ac_try) 2>&5
37523   ac_status=$?
37524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525   (exit $ac_status); }; } &&
37526          { ac_try='test -s conftest.$ac_objext'
37527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37528   (eval $ac_try) 2>&5
37529   ac_status=$?
37530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531   (exit $ac_status); }; }; then
37532   eval "$as_ac_Header=yes"
37533 else
37534   echo "$as_me: failed program was:" >&5
37535 sed 's/^/| /' conftest.$ac_ext >&5
37536
37537 eval "$as_ac_Header=no"
37538 fi
37539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37540 fi
37541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37544   cat >>confdefs.h <<_ACEOF
37545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37546 _ACEOF
37547
37548 fi
37549
37550 done
37551
37552
37553 fi
37554 rm -f conftest*
37555
37556
37557
37558
37559
37560 for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
37561 do
37562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37564   echo "$as_me:$LINENO: checking for $ac_header" >&5
37565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37567   echo $ECHO_N "(cached) $ECHO_C" >&6
37568 fi
37569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37571 else
37572   # Is the header compilable?
37573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37575 cat >conftest.$ac_ext <<_ACEOF
37576 /* confdefs.h.  */
37577 _ACEOF
37578 cat confdefs.h >>conftest.$ac_ext
37579 cat >>conftest.$ac_ext <<_ACEOF
37580 /* end confdefs.h.  */
37581 $ac_includes_default
37582 #include <$ac_header>
37583 _ACEOF
37584 rm -f conftest.$ac_objext
37585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37586   (eval $ac_compile) 2>conftest.er1
37587   ac_status=$?
37588   grep -v '^ *+' conftest.er1 >conftest.err
37589   rm -f conftest.er1
37590   cat conftest.err >&5
37591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592   (exit $ac_status); } &&
37593          { ac_try='test -z "$ac_c_werror_flag"
37594                          || test ! -s conftest.err'
37595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37596   (eval $ac_try) 2>&5
37597   ac_status=$?
37598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599   (exit $ac_status); }; } &&
37600          { ac_try='test -s conftest.$ac_objext'
37601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602   (eval $ac_try) 2>&5
37603   ac_status=$?
37604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605   (exit $ac_status); }; }; then
37606   ac_header_compiler=yes
37607 else
37608   echo "$as_me: failed program was:" >&5
37609 sed 's/^/| /' conftest.$ac_ext >&5
37610
37611 ac_header_compiler=no
37612 fi
37613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37615 echo "${ECHO_T}$ac_header_compiler" >&6
37616
37617 # Is the header present?
37618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37620 cat >conftest.$ac_ext <<_ACEOF
37621 /* confdefs.h.  */
37622 _ACEOF
37623 cat confdefs.h >>conftest.$ac_ext
37624 cat >>conftest.$ac_ext <<_ACEOF
37625 /* end confdefs.h.  */
37626 #include <$ac_header>
37627 _ACEOF
37628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37630   ac_status=$?
37631   grep -v '^ *+' conftest.er1 >conftest.err
37632   rm -f conftest.er1
37633   cat conftest.err >&5
37634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37635   (exit $ac_status); } >/dev/null; then
37636   if test -s conftest.err; then
37637     ac_cpp_err=$ac_c_preproc_warn_flag
37638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37639   else
37640     ac_cpp_err=
37641   fi
37642 else
37643   ac_cpp_err=yes
37644 fi
37645 if test -z "$ac_cpp_err"; then
37646   ac_header_preproc=yes
37647 else
37648   echo "$as_me: failed program was:" >&5
37649 sed 's/^/| /' conftest.$ac_ext >&5
37650
37651   ac_header_preproc=no
37652 fi
37653 rm -f conftest.err conftest.$ac_ext
37654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37655 echo "${ECHO_T}$ac_header_preproc" >&6
37656
37657 # So?  What about this header?
37658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37659   yes:no: )
37660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37664     ac_header_preproc=yes
37665     ;;
37666   no:yes:* )
37667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37679     (
37680       cat <<\_ASBOX
37681 ## ------------------------------ ##
37682 ## Report this to the ntp lists.  ##
37683 ## ------------------------------ ##
37684 _ASBOX
37685     ) |
37686       sed "s/^/$as_me: WARNING:     /" >&2
37687     ;;
37688 esac
37689 echo "$as_me:$LINENO: checking for $ac_header" >&5
37690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37692   echo $ECHO_N "(cached) $ECHO_C" >&6
37693 else
37694   eval "$as_ac_Header=\$ac_header_preproc"
37695 fi
37696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37698
37699 fi
37700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37701   cat >>confdefs.h <<_ACEOF
37702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37703 _ACEOF
37704
37705 fi
37706
37707 done
37708
37709 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37710 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37711 if test "${ac_cv_header_time+set}" = set; then
37712   echo $ECHO_N "(cached) $ECHO_C" >&6
37713 else
37714   cat >conftest.$ac_ext <<_ACEOF
37715 /* confdefs.h.  */
37716 _ACEOF
37717 cat confdefs.h >>conftest.$ac_ext
37718 cat >>conftest.$ac_ext <<_ACEOF
37719 /* end confdefs.h.  */
37720 #include <sys/types.h>
37721 #include <sys/time.h>
37722 #include <time.h>
37723
37724 int
37725 main ()
37726 {
37727 if ((struct tm *) 0)
37728 return 0;
37729   ;
37730   return 0;
37731 }
37732 _ACEOF
37733 rm -f conftest.$ac_objext
37734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37735   (eval $ac_compile) 2>conftest.er1
37736   ac_status=$?
37737   grep -v '^ *+' conftest.er1 >conftest.err
37738   rm -f conftest.er1
37739   cat conftest.err >&5
37740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741   (exit $ac_status); } &&
37742          { ac_try='test -z "$ac_c_werror_flag"
37743                          || test ! -s conftest.err'
37744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37745   (eval $ac_try) 2>&5
37746   ac_status=$?
37747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748   (exit $ac_status); }; } &&
37749          { ac_try='test -s conftest.$ac_objext'
37750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751   (eval $ac_try) 2>&5
37752   ac_status=$?
37753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754   (exit $ac_status); }; }; then
37755   ac_cv_header_time=yes
37756 else
37757   echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37759
37760 ac_cv_header_time=no
37761 fi
37762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37763 fi
37764 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37765 echo "${ECHO_T}$ac_cv_header_time" >&6
37766 if test $ac_cv_header_time = yes; then
37767
37768 cat >>confdefs.h <<\_ACEOF
37769 #define TIME_WITH_SYS_TIME 1
37770 _ACEOF
37771
37772 fi
37773
37774 case "$host" in
37775 *-convex-*)
37776
37777
37778 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
37779 do
37780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37782   echo "$as_me:$LINENO: checking for $ac_header" >&5
37783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37785   echo $ECHO_N "(cached) $ECHO_C" >&6
37786 fi
37787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37789 else
37790   # Is the header compilable?
37791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37793 cat >conftest.$ac_ext <<_ACEOF
37794 /* confdefs.h.  */
37795 _ACEOF
37796 cat confdefs.h >>conftest.$ac_ext
37797 cat >>conftest.$ac_ext <<_ACEOF
37798 /* end confdefs.h.  */
37799 $ac_includes_default
37800 #include <$ac_header>
37801 _ACEOF
37802 rm -f conftest.$ac_objext
37803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37804   (eval $ac_compile) 2>conftest.er1
37805   ac_status=$?
37806   grep -v '^ *+' conftest.er1 >conftest.err
37807   rm -f conftest.er1
37808   cat conftest.err >&5
37809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810   (exit $ac_status); } &&
37811          { ac_try='test -z "$ac_c_werror_flag"
37812                          || test ! -s conftest.err'
37813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37814   (eval $ac_try) 2>&5
37815   ac_status=$?
37816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817   (exit $ac_status); }; } &&
37818          { ac_try='test -s conftest.$ac_objext'
37819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820   (eval $ac_try) 2>&5
37821   ac_status=$?
37822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823   (exit $ac_status); }; }; then
37824   ac_header_compiler=yes
37825 else
37826   echo "$as_me: failed program was:" >&5
37827 sed 's/^/| /' conftest.$ac_ext >&5
37828
37829 ac_header_compiler=no
37830 fi
37831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37833 echo "${ECHO_T}$ac_header_compiler" >&6
37834
37835 # Is the header present?
37836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37838 cat >conftest.$ac_ext <<_ACEOF
37839 /* confdefs.h.  */
37840 _ACEOF
37841 cat confdefs.h >>conftest.$ac_ext
37842 cat >>conftest.$ac_ext <<_ACEOF
37843 /* end confdefs.h.  */
37844 #include <$ac_header>
37845 _ACEOF
37846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37848   ac_status=$?
37849   grep -v '^ *+' conftest.er1 >conftest.err
37850   rm -f conftest.er1
37851   cat conftest.err >&5
37852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853   (exit $ac_status); } >/dev/null; then
37854   if test -s conftest.err; then
37855     ac_cpp_err=$ac_c_preproc_warn_flag
37856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37857   else
37858     ac_cpp_err=
37859   fi
37860 else
37861   ac_cpp_err=yes
37862 fi
37863 if test -z "$ac_cpp_err"; then
37864   ac_header_preproc=yes
37865 else
37866   echo "$as_me: failed program was:" >&5
37867 sed 's/^/| /' conftest.$ac_ext >&5
37868
37869   ac_header_preproc=no
37870 fi
37871 rm -f conftest.err conftest.$ac_ext
37872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37873 echo "${ECHO_T}$ac_header_preproc" >&6
37874
37875 # So?  What about this header?
37876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37877   yes:no: )
37878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37882     ac_header_preproc=yes
37883     ;;
37884   no:yes:* )
37885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37897     (
37898       cat <<\_ASBOX
37899 ## ------------------------------ ##
37900 ## Report this to the ntp lists.  ##
37901 ## ------------------------------ ##
37902 _ASBOX
37903     ) |
37904       sed "s/^/$as_me: WARNING:     /" >&2
37905     ;;
37906 esac
37907 echo "$as_me:$LINENO: checking for $ac_header" >&5
37908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37910   echo $ECHO_N "(cached) $ECHO_C" >&6
37911 else
37912   eval "$as_ac_Header=\$ac_header_preproc"
37913 fi
37914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37916
37917 fi
37918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37919   cat >>confdefs.h <<_ACEOF
37920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37921 _ACEOF
37922
37923 fi
37924
37925 done
37926
37927   ;;
37928 *-*-bsdi*)
37929
37930
37931
37932 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
37933 do
37934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37936   echo "$as_me:$LINENO: checking for $ac_header" >&5
37937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37939   echo $ECHO_N "(cached) $ECHO_C" >&6
37940 fi
37941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37943 else
37944   # Is the header compilable?
37945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37947 cat >conftest.$ac_ext <<_ACEOF
37948 /* confdefs.h.  */
37949 _ACEOF
37950 cat confdefs.h >>conftest.$ac_ext
37951 cat >>conftest.$ac_ext <<_ACEOF
37952 /* end confdefs.h.  */
37953 $ac_includes_default
37954 #include <$ac_header>
37955 _ACEOF
37956 rm -f conftest.$ac_objext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37958   (eval $ac_compile) 2>conftest.er1
37959   ac_status=$?
37960   grep -v '^ *+' conftest.er1 >conftest.err
37961   rm -f conftest.er1
37962   cat conftest.err >&5
37963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964   (exit $ac_status); } &&
37965          { ac_try='test -z "$ac_c_werror_flag"
37966                          || test ! -s conftest.err'
37967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968   (eval $ac_try) 2>&5
37969   ac_status=$?
37970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971   (exit $ac_status); }; } &&
37972          { ac_try='test -s conftest.$ac_objext'
37973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974   (eval $ac_try) 2>&5
37975   ac_status=$?
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); }; }; then
37978   ac_header_compiler=yes
37979 else
37980   echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37982
37983 ac_header_compiler=no
37984 fi
37985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37987 echo "${ECHO_T}$ac_header_compiler" >&6
37988
37989 # Is the header present?
37990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37992 cat >conftest.$ac_ext <<_ACEOF
37993 /* confdefs.h.  */
37994 _ACEOF
37995 cat confdefs.h >>conftest.$ac_ext
37996 cat >>conftest.$ac_ext <<_ACEOF
37997 /* end confdefs.h.  */
37998 #include <$ac_header>
37999 _ACEOF
38000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38002   ac_status=$?
38003   grep -v '^ *+' conftest.er1 >conftest.err
38004   rm -f conftest.er1
38005   cat conftest.err >&5
38006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007   (exit $ac_status); } >/dev/null; then
38008   if test -s conftest.err; then
38009     ac_cpp_err=$ac_c_preproc_warn_flag
38010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38011   else
38012     ac_cpp_err=
38013   fi
38014 else
38015   ac_cpp_err=yes
38016 fi
38017 if test -z "$ac_cpp_err"; then
38018   ac_header_preproc=yes
38019 else
38020   echo "$as_me: failed program was:" >&5
38021 sed 's/^/| /' conftest.$ac_ext >&5
38022
38023   ac_header_preproc=no
38024 fi
38025 rm -f conftest.err conftest.$ac_ext
38026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38027 echo "${ECHO_T}$ac_header_preproc" >&6
38028
38029 # So?  What about this header?
38030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38031   yes:no: )
38032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38036     ac_header_preproc=yes
38037     ;;
38038   no:yes:* )
38039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38051     (
38052       cat <<\_ASBOX
38053 ## ------------------------------ ##
38054 ## Report this to the ntp lists.  ##
38055 ## ------------------------------ ##
38056 _ASBOX
38057     ) |
38058       sed "s/^/$as_me: WARNING:     /" >&2
38059     ;;
38060 esac
38061 echo "$as_me:$LINENO: checking for $ac_header" >&5
38062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38064   echo $ECHO_N "(cached) $ECHO_C" >&6
38065 else
38066   eval "$as_ac_Header=\$ac_header_preproc"
38067 fi
38068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38070
38071 fi
38072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38073   cat >>confdefs.h <<_ACEOF
38074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38075 _ACEOF
38076
38077 fi
38078
38079 done
38080
38081   ;;
38082 esac
38083
38084 case "$host" in
38085  *-*-linux*)
38086
38087
38088 for ac_func in __adjtimex __ntp_gettime
38089 do
38090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38091 echo "$as_me:$LINENO: checking for $ac_func" >&5
38092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38093 if eval "test \"\${$as_ac_var+set}\" = set"; then
38094   echo $ECHO_N "(cached) $ECHO_C" >&6
38095 else
38096   cat >conftest.$ac_ext <<_ACEOF
38097 /* confdefs.h.  */
38098 _ACEOF
38099 cat confdefs.h >>conftest.$ac_ext
38100 cat >>conftest.$ac_ext <<_ACEOF
38101 /* end confdefs.h.  */
38102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38104 #define $ac_func innocuous_$ac_func
38105
38106 /* System header to define __stub macros and hopefully few prototypes,
38107     which can conflict with char $ac_func (); below.
38108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38109     <limits.h> exists even on freestanding compilers.  */
38110
38111 #ifdef __STDC__
38112 # include <limits.h>
38113 #else
38114 # include <assert.h>
38115 #endif
38116
38117 #undef $ac_func
38118
38119 /* Override any gcc2 internal prototype to avoid an error.  */
38120 #ifdef __cplusplus
38121 extern "C"
38122 {
38123 #endif
38124 /* We use char because int might match the return type of a gcc2
38125    builtin and then its argument prototype would still apply.  */
38126 char $ac_func ();
38127 /* The GNU C library defines this for functions which it implements
38128     to always fail with ENOSYS.  Some functions are actually named
38129     something starting with __ and the normal name is an alias.  */
38130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38131 choke me
38132 #else
38133 char (*f) () = $ac_func;
38134 #endif
38135 #ifdef __cplusplus
38136 }
38137 #endif
38138
38139 int
38140 main ()
38141 {
38142 return f != $ac_func;
38143   ;
38144   return 0;
38145 }
38146 _ACEOF
38147 rm -f conftest.$ac_objext conftest$ac_exeext
38148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38149   (eval $ac_link) 2>conftest.er1
38150   ac_status=$?
38151   grep -v '^ *+' conftest.er1 >conftest.err
38152   rm -f conftest.er1
38153   cat conftest.err >&5
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); } &&
38156          { ac_try='test -z "$ac_c_werror_flag"
38157                          || test ! -s conftest.err'
38158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38159   (eval $ac_try) 2>&5
38160   ac_status=$?
38161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162   (exit $ac_status); }; } &&
38163          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
38169   eval "$as_ac_var=yes"
38170 else
38171   echo "$as_me: failed program was:" >&5
38172 sed 's/^/| /' conftest.$ac_ext >&5
38173
38174 eval "$as_ac_var=no"
38175 fi
38176 rm -f conftest.err conftest.$ac_objext \
38177       conftest$ac_exeext conftest.$ac_ext
38178 fi
38179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38181 if test `eval echo '${'$as_ac_var'}'` = yes; then
38182   cat >>confdefs.h <<_ACEOF
38183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38184 _ACEOF
38185
38186 fi
38187 done
38188
38189     ;;
38190 esac
38191 case "$ac_cv_func___adjtimex" in
38192  yes) ;;
38193  *)
38194
38195 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
38196 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
38197 if test "${ac_cv_lib_elf_nlist+set}" = set; then
38198   echo $ECHO_N "(cached) $ECHO_C" >&6
38199 else
38200   ac_check_lib_save_LIBS=$LIBS
38201 LIBS="-lelf  $LIBS"
38202 cat >conftest.$ac_ext <<_ACEOF
38203 /* confdefs.h.  */
38204 _ACEOF
38205 cat confdefs.h >>conftest.$ac_ext
38206 cat >>conftest.$ac_ext <<_ACEOF
38207 /* end confdefs.h.  */
38208
38209 /* Override any gcc2 internal prototype to avoid an error.  */
38210 #ifdef __cplusplus
38211 extern "C"
38212 #endif
38213 /* We use char because int might match the return type of a gcc2
38214    builtin and then its argument prototype would still apply.  */
38215 char nlist ();
38216 int
38217 main ()
38218 {
38219 nlist ();
38220   ;
38221   return 0;
38222 }
38223 _ACEOF
38224 rm -f conftest.$ac_objext conftest$ac_exeext
38225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38226   (eval $ac_link) 2>conftest.er1
38227   ac_status=$?
38228   grep -v '^ *+' conftest.er1 >conftest.err
38229   rm -f conftest.er1
38230   cat conftest.err >&5
38231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232   (exit $ac_status); } &&
38233          { ac_try='test -z "$ac_c_werror_flag"
38234                          || test ! -s conftest.err'
38235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38236   (eval $ac_try) 2>&5
38237   ac_status=$?
38238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239   (exit $ac_status); }; } &&
38240          { ac_try='test -s conftest$ac_exeext'
38241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38242   (eval $ac_try) 2>&5
38243   ac_status=$?
38244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245   (exit $ac_status); }; }; then
38246   ac_cv_lib_elf_nlist=yes
38247 else
38248   echo "$as_me: failed program was:" >&5
38249 sed 's/^/| /' conftest.$ac_ext >&5
38250
38251 ac_cv_lib_elf_nlist=no
38252 fi
38253 rm -f conftest.err conftest.$ac_objext \
38254       conftest$ac_exeext conftest.$ac_ext
38255 LIBS=$ac_check_lib_save_LIBS
38256 fi
38257 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
38258 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
38259 if test $ac_cv_lib_elf_nlist = yes; then
38260   cat >>confdefs.h <<_ACEOF
38261 #define HAVE_LIBELF 1
38262 _ACEOF
38263
38264   LIBS="-lelf $LIBS"
38265
38266 fi
38267
38268 echo "$as_me:$LINENO: checking for main in -lkvm" >&5
38269 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
38270 if test "${ac_cv_lib_kvm_main+set}" = set; then
38271   echo $ECHO_N "(cached) $ECHO_C" >&6
38272 else
38273   ac_check_lib_save_LIBS=$LIBS
38274 LIBS="-lkvm  $LIBS"
38275 cat >conftest.$ac_ext <<_ACEOF
38276 /* confdefs.h.  */
38277 _ACEOF
38278 cat confdefs.h >>conftest.$ac_ext
38279 cat >>conftest.$ac_ext <<_ACEOF
38280 /* end confdefs.h.  */
38281
38282
38283 int
38284 main ()
38285 {
38286 main ();
38287   ;
38288   return 0;
38289 }
38290 _ACEOF
38291 rm -f conftest.$ac_objext conftest$ac_exeext
38292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38293   (eval $ac_link) 2>conftest.er1
38294   ac_status=$?
38295   grep -v '^ *+' conftest.er1 >conftest.err
38296   rm -f conftest.er1
38297   cat conftest.err >&5
38298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299   (exit $ac_status); } &&
38300          { ac_try='test -z "$ac_c_werror_flag"
38301                          || test ! -s conftest.err'
38302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303   (eval $ac_try) 2>&5
38304   ac_status=$?
38305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306   (exit $ac_status); }; } &&
38307          { ac_try='test -s conftest$ac_exeext'
38308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38309   (eval $ac_try) 2>&5
38310   ac_status=$?
38311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312   (exit $ac_status); }; }; then
38313   ac_cv_lib_kvm_main=yes
38314 else
38315   echo "$as_me: failed program was:" >&5
38316 sed 's/^/| /' conftest.$ac_ext >&5
38317
38318 ac_cv_lib_kvm_main=no
38319 fi
38320 rm -f conftest.err conftest.$ac_objext \
38321       conftest$ac_exeext conftest.$ac_ext
38322 LIBS=$ac_check_lib_save_LIBS
38323 fi
38324 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
38325 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
38326 if test $ac_cv_lib_kvm_main = yes; then
38327   cat >>confdefs.h <<_ACEOF
38328 #define HAVE_LIBKVM 1
38329 _ACEOF
38330
38331   LIBS="-lkvm $LIBS"
38332
38333 fi
38334
38335 echo "$as_me:$LINENO: checking for nlist in -lld" >&5
38336 echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
38337 if test "${ac_cv_lib_ld_nlist+set}" = set; then
38338   echo $ECHO_N "(cached) $ECHO_C" >&6
38339 else
38340   ac_check_lib_save_LIBS=$LIBS
38341 LIBS="-lld  $LIBS"
38342 cat >conftest.$ac_ext <<_ACEOF
38343 /* confdefs.h.  */
38344 _ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h.  */
38348
38349 /* Override any gcc2 internal prototype to avoid an error.  */
38350 #ifdef __cplusplus
38351 extern "C"
38352 #endif
38353 /* We use char because int might match the return type of a gcc2
38354    builtin and then its argument prototype would still apply.  */
38355 char nlist ();
38356 int
38357 main ()
38358 {
38359 nlist ();
38360   ;
38361   return 0;
38362 }
38363 _ACEOF
38364 rm -f conftest.$ac_objext conftest$ac_exeext
38365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38366   (eval $ac_link) 2>conftest.er1
38367   ac_status=$?
38368   grep -v '^ *+' conftest.er1 >conftest.err
38369   rm -f conftest.er1
38370   cat conftest.err >&5
38371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372   (exit $ac_status); } &&
38373          { ac_try='test -z "$ac_c_werror_flag"
38374                          || test ! -s conftest.err'
38375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376   (eval $ac_try) 2>&5
38377   ac_status=$?
38378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379   (exit $ac_status); }; } &&
38380          { ac_try='test -s conftest$ac_exeext'
38381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382   (eval $ac_try) 2>&5
38383   ac_status=$?
38384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385   (exit $ac_status); }; }; then
38386   ac_cv_lib_ld_nlist=yes
38387 else
38388   echo "$as_me: failed program was:" >&5
38389 sed 's/^/| /' conftest.$ac_ext >&5
38390
38391 ac_cv_lib_ld_nlist=no
38392 fi
38393 rm -f conftest.err conftest.$ac_objext \
38394       conftest$ac_exeext conftest.$ac_ext
38395 LIBS=$ac_check_lib_save_LIBS
38396 fi
38397 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5
38398 echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
38399 if test $ac_cv_lib_ld_nlist = yes; then
38400   cat >>confdefs.h <<_ACEOF
38401 #define HAVE_LIBLD 1
38402 _ACEOF
38403
38404   LIBS="-lld $LIBS"
38405
38406 fi
38407
38408
38409 echo "$as_me:$LINENO: checking for nlist in -lmld" >&5
38410 echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
38411 if test "${ac_cv_lib_mld_nlist+set}" = set; then
38412   echo $ECHO_N "(cached) $ECHO_C" >&6
38413 else
38414   ac_check_lib_save_LIBS=$LIBS
38415 LIBS="-lmld  $LIBS"
38416 cat >conftest.$ac_ext <<_ACEOF
38417 /* confdefs.h.  */
38418 _ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h.  */
38422
38423 /* Override any gcc2 internal prototype to avoid an error.  */
38424 #ifdef __cplusplus
38425 extern "C"
38426 #endif
38427 /* We use char because int might match the return type of a gcc2
38428    builtin and then its argument prototype would still apply.  */
38429 char nlist ();
38430 int
38431 main ()
38432 {
38433 nlist ();
38434   ;
38435   return 0;
38436 }
38437 _ACEOF
38438 rm -f conftest.$ac_objext conftest$ac_exeext
38439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38440   (eval $ac_link) 2>conftest.er1
38441   ac_status=$?
38442   grep -v '^ *+' conftest.er1 >conftest.err
38443   rm -f conftest.er1
38444   cat conftest.err >&5
38445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446   (exit $ac_status); } &&
38447          { ac_try='test -z "$ac_c_werror_flag"
38448                          || test ! -s conftest.err'
38449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450   (eval $ac_try) 2>&5
38451   ac_status=$?
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); }; } &&
38454          { ac_try='test -s conftest$ac_exeext'
38455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456   (eval $ac_try) 2>&5
38457   ac_status=$?
38458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459   (exit $ac_status); }; }; then
38460   ac_cv_lib_mld_nlist=yes
38461 else
38462   echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38464
38465 ac_cv_lib_mld_nlist=no
38466 fi
38467 rm -f conftest.err conftest.$ac_objext \
38468       conftest$ac_exeext conftest.$ac_ext
38469 LIBS=$ac_check_lib_save_LIBS
38470 fi
38471 echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5
38472 echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
38473 if test $ac_cv_lib_mld_nlist = yes; then
38474   cat >>confdefs.h <<_ACEOF
38475 #define HAVE_LIBMLD 1
38476 _ACEOF
38477
38478   LIBS="-lmld $LIBS"
38479
38480 fi
38481
38482     if test "${ac_cv_header_nlist_h+set}" = set; then
38483   echo "$as_me:$LINENO: checking for nlist.h" >&5
38484 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
38485 if test "${ac_cv_header_nlist_h+set}" = set; then
38486   echo $ECHO_N "(cached) $ECHO_C" >&6
38487 fi
38488 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
38489 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
38490 else
38491   # Is the header compilable?
38492 echo "$as_me:$LINENO: checking nlist.h usability" >&5
38493 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
38494 cat >conftest.$ac_ext <<_ACEOF
38495 /* confdefs.h.  */
38496 _ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h.  */
38500 $ac_includes_default
38501 #include <nlist.h>
38502 _ACEOF
38503 rm -f conftest.$ac_objext
38504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38505   (eval $ac_compile) 2>conftest.er1
38506   ac_status=$?
38507   grep -v '^ *+' conftest.er1 >conftest.err
38508   rm -f conftest.er1
38509   cat conftest.err >&5
38510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511   (exit $ac_status); } &&
38512          { ac_try='test -z "$ac_c_werror_flag"
38513                          || test ! -s conftest.err'
38514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515   (eval $ac_try) 2>&5
38516   ac_status=$?
38517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518   (exit $ac_status); }; } &&
38519          { ac_try='test -s conftest.$ac_objext'
38520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38521   (eval $ac_try) 2>&5
38522   ac_status=$?
38523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524   (exit $ac_status); }; }; then
38525   ac_header_compiler=yes
38526 else
38527   echo "$as_me: failed program was:" >&5
38528 sed 's/^/| /' conftest.$ac_ext >&5
38529
38530 ac_header_compiler=no
38531 fi
38532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38534 echo "${ECHO_T}$ac_header_compiler" >&6
38535
38536 # Is the header present?
38537 echo "$as_me:$LINENO: checking nlist.h presence" >&5
38538 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
38539 cat >conftest.$ac_ext <<_ACEOF
38540 /* confdefs.h.  */
38541 _ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h.  */
38545 #include <nlist.h>
38546 _ACEOF
38547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } >/dev/null; then
38555   if test -s conftest.err; then
38556     ac_cpp_err=$ac_c_preproc_warn_flag
38557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38558   else
38559     ac_cpp_err=
38560   fi
38561 else
38562   ac_cpp_err=yes
38563 fi
38564 if test -z "$ac_cpp_err"; then
38565   ac_header_preproc=yes
38566 else
38567   echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38569
38570   ac_header_preproc=no
38571 fi
38572 rm -f conftest.err conftest.$ac_ext
38573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38574 echo "${ECHO_T}$ac_header_preproc" >&6
38575
38576 # So?  What about this header?
38577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38578   yes:no: )
38579     { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
38580 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38581     { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
38582 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
38583     ac_header_preproc=yes
38584     ;;
38585   no:yes:* )
38586     { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
38587 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
38588     { echo "$as_me:$LINENO: WARNING: nlist.h:     check for missing prerequisite headers?" >&5
38589 echo "$as_me: WARNING: nlist.h:     check for missing prerequisite headers?" >&2;}
38590     { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
38591 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
38592     { echo "$as_me:$LINENO: WARNING: nlist.h:     section \"Present But Cannot Be Compiled\"" >&5
38593 echo "$as_me: WARNING: nlist.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38594     { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
38595 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
38596     { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
38597 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
38598     (
38599       cat <<\_ASBOX
38600 ## ------------------------------ ##
38601 ## Report this to the ntp lists.  ##
38602 ## ------------------------------ ##
38603 _ASBOX
38604     ) |
38605       sed "s/^/$as_me: WARNING:     /" >&2
38606     ;;
38607 esac
38608 echo "$as_me:$LINENO: checking for nlist.h" >&5
38609 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
38610 if test "${ac_cv_header_nlist_h+set}" = set; then
38611   echo $ECHO_N "(cached) $ECHO_C" >&6
38612 else
38613   ac_cv_header_nlist_h=$ac_header_preproc
38614 fi
38615 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
38616 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
38617
38618 fi
38619 if test $ac_cv_header_nlist_h = yes; then
38620
38621 cat >>confdefs.h <<\_ACEOF
38622 #define NLIST_STRUCT 1
38623 _ACEOF
38624
38625      echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5
38626 echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
38627 if test "${ac_cv_struct_nlist_n_un+set}" = set; then
38628   echo $ECHO_N "(cached) $ECHO_C" >&6
38629 else
38630   cat >conftest.$ac_ext <<_ACEOF
38631 /* confdefs.h.  */
38632 _ACEOF
38633 cat confdefs.h >>conftest.$ac_ext
38634 cat >>conftest.$ac_ext <<_ACEOF
38635 /* end confdefs.h.  */
38636 #include <nlist.h>
38637 int
38638 main ()
38639 {
38640 struct nlist n; n.n_un.n_name = 0;
38641   ;
38642   return 0;
38643 }
38644 _ACEOF
38645 rm -f conftest.$ac_objext
38646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38647   (eval $ac_compile) 2>conftest.er1
38648   ac_status=$?
38649   grep -v '^ *+' conftest.er1 >conftest.err
38650   rm -f conftest.er1
38651   cat conftest.err >&5
38652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653   (exit $ac_status); } &&
38654          { ac_try='test -z "$ac_c_werror_flag"
38655                          || test ! -s conftest.err'
38656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38657   (eval $ac_try) 2>&5
38658   ac_status=$?
38659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660   (exit $ac_status); }; } &&
38661          { ac_try='test -s conftest.$ac_objext'
38662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663   (eval $ac_try) 2>&5
38664   ac_status=$?
38665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666   (exit $ac_status); }; }; then
38667   ac_cv_struct_nlist_n_un=yes
38668 else
38669   echo "$as_me: failed program was:" >&5
38670 sed 's/^/| /' conftest.$ac_ext >&5
38671
38672 ac_cv_struct_nlist_n_un=no
38673 fi
38674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38675 fi
38676 echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5
38677 echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
38678      if test $ac_cv_struct_nlist_n_un = yes; then
38679
38680 cat >>confdefs.h <<\_ACEOF
38681 #define NLIST_NAME_UNION 1
38682 _ACEOF
38683
38684      fi
38685
38686 fi
38687
38688     ;;
38689 esac
38690
38691
38692
38693 for ac_header in sys/proc.h
38694 do
38695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38696 echo "$as_me:$LINENO: checking for $ac_header" >&5
38697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38699   echo $ECHO_N "(cached) $ECHO_C" >&6
38700 else
38701   cat >conftest.$ac_ext <<_ACEOF
38702 /* confdefs.h.  */
38703 _ACEOF
38704 cat confdefs.h >>conftest.$ac_ext
38705 cat >>conftest.$ac_ext <<_ACEOF
38706 /* end confdefs.h.  */
38707 #if HAVE_SYS_TYPES_H
38708 # include <sys/types.h>
38709 #endif
38710 #if HAVE_SYS_TIME_H
38711 # include <sys/time.h>
38712 #endif
38713
38714
38715 #include <$ac_header>
38716 _ACEOF
38717 rm -f conftest.$ac_objext
38718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38719   (eval $ac_compile) 2>conftest.er1
38720   ac_status=$?
38721   grep -v '^ *+' conftest.er1 >conftest.err
38722   rm -f conftest.er1
38723   cat conftest.err >&5
38724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725   (exit $ac_status); } &&
38726          { ac_try='test -z "$ac_c_werror_flag"
38727                          || test ! -s conftest.err'
38728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729   (eval $ac_try) 2>&5
38730   ac_status=$?
38731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732   (exit $ac_status); }; } &&
38733          { ac_try='test -s conftest.$ac_objext'
38734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38735   (eval $ac_try) 2>&5
38736   ac_status=$?
38737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738   (exit $ac_status); }; }; then
38739   eval "$as_ac_Header=yes"
38740 else
38741   echo "$as_me: failed program was:" >&5
38742 sed 's/^/| /' conftest.$ac_ext >&5
38743
38744 eval "$as_ac_Header=no"
38745 fi
38746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38747 fi
38748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38751   cat >>confdefs.h <<_ACEOF
38752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38753 _ACEOF
38754
38755 fi
38756
38757 done
38758
38759
38760
38761 for ac_header in sys/resource.h
38762 do
38763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38764 echo "$as_me:$LINENO: checking for $ac_header" >&5
38765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38767   echo $ECHO_N "(cached) $ECHO_C" >&6
38768 else
38769   cat >conftest.$ac_ext <<_ACEOF
38770 /* confdefs.h.  */
38771 _ACEOF
38772 cat confdefs.h >>conftest.$ac_ext
38773 cat >>conftest.$ac_ext <<_ACEOF
38774 /* end confdefs.h.  */
38775 #if HAVE_SYS_TIME_H
38776 # include <sys/time.h>
38777 #endif
38778
38779
38780 #include <$ac_header>
38781 _ACEOF
38782 rm -f conftest.$ac_objext
38783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38784   (eval $ac_compile) 2>conftest.er1
38785   ac_status=$?
38786   grep -v '^ *+' conftest.er1 >conftest.err
38787   rm -f conftest.er1
38788   cat conftest.err >&5
38789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790   (exit $ac_status); } &&
38791          { ac_try='test -z "$ac_c_werror_flag"
38792                          || test ! -s conftest.err'
38793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38794   (eval $ac_try) 2>&5
38795   ac_status=$?
38796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38797   (exit $ac_status); }; } &&
38798          { ac_try='test -s conftest.$ac_objext'
38799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800   (eval $ac_try) 2>&5
38801   ac_status=$?
38802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803   (exit $ac_status); }; }; then
38804   eval "$as_ac_Header=yes"
38805 else
38806   echo "$as_me: failed program was:" >&5
38807 sed 's/^/| /' conftest.$ac_ext >&5
38808
38809 eval "$as_ac_Header=no"
38810 fi
38811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38812 fi
38813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38816   cat >>confdefs.h <<_ACEOF
38817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38818 _ACEOF
38819
38820 fi
38821
38822 done
38823
38824
38825
38826 for ac_header in sys/shm.h
38827 do
38828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38829 echo "$as_me:$LINENO: checking for $ac_header" >&5
38830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38832   echo $ECHO_N "(cached) $ECHO_C" >&6
38833 else
38834   cat >conftest.$ac_ext <<_ACEOF
38835 /* confdefs.h.  */
38836 _ACEOF
38837 cat confdefs.h >>conftest.$ac_ext
38838 cat >>conftest.$ac_ext <<_ACEOF
38839 /* end confdefs.h.  */
38840 #if HAVE_SYS_TYPES_H
38841 # include <sys/types.h>
38842 #endif
38843 #if HAVE_SYS_IPC_H
38844 # include <sys/ipc.h>
38845 #endif
38846
38847
38848 #include <$ac_header>
38849 _ACEOF
38850 rm -f conftest.$ac_objext
38851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38852   (eval $ac_compile) 2>conftest.er1
38853   ac_status=$?
38854   grep -v '^ *+' conftest.er1 >conftest.err
38855   rm -f conftest.er1
38856   cat conftest.err >&5
38857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858   (exit $ac_status); } &&
38859          { ac_try='test -z "$ac_c_werror_flag"
38860                          || test ! -s conftest.err'
38861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38862   (eval $ac_try) 2>&5
38863   ac_status=$?
38864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865   (exit $ac_status); }; } &&
38866          { ac_try='test -s conftest.$ac_objext'
38867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38868   (eval $ac_try) 2>&5
38869   ac_status=$?
38870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871   (exit $ac_status); }; }; then
38872   eval "$as_ac_Header=yes"
38873 else
38874   echo "$as_me: failed program was:" >&5
38875 sed 's/^/| /' conftest.$ac_ext >&5
38876
38877 eval "$as_ac_Header=no"
38878 fi
38879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38880 fi
38881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38884   cat >>confdefs.h <<_ACEOF
38885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38886 _ACEOF
38887
38888 fi
38889
38890 done
38891
38892
38893
38894 for ac_header in sys/timex.h
38895 do
38896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38897 echo "$as_me:$LINENO: checking for $ac_header" >&5
38898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38900   echo $ECHO_N "(cached) $ECHO_C" >&6
38901 else
38902   cat >conftest.$ac_ext <<_ACEOF
38903 /* confdefs.h.  */
38904 _ACEOF
38905 cat confdefs.h >>conftest.$ac_ext
38906 cat >>conftest.$ac_ext <<_ACEOF
38907 /* end confdefs.h.  */
38908 #if HAVE_SYS_TIME_H
38909 # include <sys/time.h>
38910 #endif
38911
38912
38913 #include <$ac_header>
38914 _ACEOF
38915 rm -f conftest.$ac_objext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38917   (eval $ac_compile) 2>conftest.er1
38918   ac_status=$?
38919   grep -v '^ *+' conftest.er1 >conftest.err
38920   rm -f conftest.er1
38921   cat conftest.err >&5
38922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923   (exit $ac_status); } &&
38924          { ac_try='test -z "$ac_c_werror_flag"
38925                          || test ! -s conftest.err'
38926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927   (eval $ac_try) 2>&5
38928   ac_status=$?
38929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930   (exit $ac_status); }; } &&
38931          { ac_try='test -s conftest.$ac_objext'
38932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38933   (eval $ac_try) 2>&5
38934   ac_status=$?
38935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936   (exit $ac_status); }; }; then
38937   eval "$as_ac_Header=yes"
38938 else
38939   echo "$as_me: failed program was:" >&5
38940 sed 's/^/| /' conftest.$ac_ext >&5
38941
38942 eval "$as_ac_Header=no"
38943 fi
38944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38945 fi
38946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38949   cat >>confdefs.h <<_ACEOF
38950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38951 _ACEOF
38952
38953 fi
38954
38955 done
38956
38957
38958
38959 for ac_header in resolv.h
38960 do
38961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38962 echo "$as_me:$LINENO: checking for $ac_header" >&5
38963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38965   echo $ECHO_N "(cached) $ECHO_C" >&6
38966 else
38967   cat >conftest.$ac_ext <<_ACEOF
38968 /* confdefs.h.  */
38969 _ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h.  */
38973 #if HAVE_SYS_TYPES_H
38974 #include <sys/types.h>
38975 #endif
38976 #if HAVE_NETINET_IN_H
38977 #include <netinet/in.h>
38978 #endif
38979 #if HAVE_ARPA_NAMESER_H
38980 #include <arpa/nameser.h>
38981 #endif
38982
38983
38984 #include <$ac_header>
38985 _ACEOF
38986 rm -f conftest.$ac_objext
38987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38988   (eval $ac_compile) 2>conftest.er1
38989   ac_status=$?
38990   grep -v '^ *+' conftest.er1 >conftest.err
38991   rm -f conftest.er1
38992   cat conftest.err >&5
38993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994   (exit $ac_status); } &&
38995          { ac_try='test -z "$ac_c_werror_flag"
38996                          || test ! -s conftest.err'
38997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38998   (eval $ac_try) 2>&5
38999   ac_status=$?
39000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001   (exit $ac_status); }; } &&
39002          { ac_try='test -s conftest.$ac_objext'
39003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004   (eval $ac_try) 2>&5
39005   ac_status=$?
39006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007   (exit $ac_status); }; }; then
39008   eval "$as_ac_Header=yes"
39009 else
39010   echo "$as_me: failed program was:" >&5
39011 sed 's/^/| /' conftest.$ac_ext >&5
39012
39013 eval "$as_ac_Header=no"
39014 fi
39015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39016 fi
39017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39020   cat >>confdefs.h <<_ACEOF
39021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39022 _ACEOF
39023
39024 fi
39025
39026 done
39027
39028
39029 echo "$as_me:$LINENO: checking for basic volatile support" >&5
39030 echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
39031 if test "${ac_cv_c_volatile+set}" = set; then
39032   echo $ECHO_N "(cached) $ECHO_C" >&6
39033 else
39034   cat >conftest.$ac_ext <<_ACEOF
39035 /* confdefs.h.  */
39036 _ACEOF
39037 cat confdefs.h >>conftest.$ac_ext
39038 cat >>conftest.$ac_ext <<_ACEOF
39039 /* end confdefs.h.  */
39040
39041 int
39042 main ()
39043 {
39044
39045 volatile int x;
39046   ;
39047   return 0;
39048 }
39049 _ACEOF
39050 rm -f conftest.$ac_objext
39051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39052   (eval $ac_compile) 2>conftest.er1
39053   ac_status=$?
39054   grep -v '^ *+' conftest.er1 >conftest.err
39055   rm -f conftest.er1
39056   cat conftest.err >&5
39057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058   (exit $ac_status); } &&
39059          { ac_try='test -z "$ac_c_werror_flag"
39060                          || test ! -s conftest.err'
39061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39062   (eval $ac_try) 2>&5
39063   ac_status=$?
39064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065   (exit $ac_status); }; } &&
39066          { ac_try='test -s conftest.$ac_objext'
39067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39068   (eval $ac_try) 2>&5
39069   ac_status=$?
39070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071   (exit $ac_status); }; }; then
39072   ac_cv_c_volatile=yes
39073 else
39074   echo "$as_me: failed program was:" >&5
39075 sed 's/^/| /' conftest.$ac_ext >&5
39076
39077 ac_cv_c_volatile=no
39078 fi
39079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39080
39081 fi
39082 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
39083 echo "${ECHO_T}$ac_cv_c_volatile" >&6
39084 case "$ac_cv_c_volatile" in
39085  yes)
39086     ;;
39087  *)
39088 cat >>confdefs.h <<\_ACEOF
39089 #define volatile
39090 _ACEOF
39091
39092     ;;
39093 esac
39094
39095 # AM_C_PROTOTYPES gives us ansi2knr
39096 case "$build" in
39097  *-*-solaris2*)
39098     # Assume that solaris2 is Ansi C...
39099     ;;
39100  *)
39101     echo "$as_me:$LINENO: checking for function prototypes" >&5
39102 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
39103 if test "$ac_cv_prog_cc_stdc" != no; then
39104   echo "$as_me:$LINENO: result: yes" >&5
39105 echo "${ECHO_T}yes" >&6
39106
39107 cat >>confdefs.h <<\_ACEOF
39108 #define PROTOTYPES 1
39109 _ACEOF
39110
39111
39112 cat >>confdefs.h <<\_ACEOF
39113 #define __PROTOTYPES 1
39114 _ACEOF
39115
39116 else
39117   echo "$as_me:$LINENO: result: no" >&5
39118 echo "${ECHO_T}no" >&6
39119 fi
39120
39121
39122 if test "$ac_cv_prog_cc_stdc" != no; then
39123   U= ANSI2KNR=
39124 else
39125   U=_ ANSI2KNR=./ansi2knr
39126 fi
39127 # Ensure some checks needed by ansi2knr itself.
39128
39129
39130 for ac_header in string.h
39131 do
39132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39134   echo "$as_me:$LINENO: checking for $ac_header" >&5
39135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39137   echo $ECHO_N "(cached) $ECHO_C" >&6
39138 fi
39139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39141 else
39142   # Is the header compilable?
39143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39145 cat >conftest.$ac_ext <<_ACEOF
39146 /* confdefs.h.  */
39147 _ACEOF
39148 cat confdefs.h >>conftest.$ac_ext
39149 cat >>conftest.$ac_ext <<_ACEOF
39150 /* end confdefs.h.  */
39151 $ac_includes_default
39152 #include <$ac_header>
39153 _ACEOF
39154 rm -f conftest.$ac_objext
39155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39156   (eval $ac_compile) 2>conftest.er1
39157   ac_status=$?
39158   grep -v '^ *+' conftest.er1 >conftest.err
39159   rm -f conftest.er1
39160   cat conftest.err >&5
39161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39162   (exit $ac_status); } &&
39163          { ac_try='test -z "$ac_c_werror_flag"
39164                          || test ! -s conftest.err'
39165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39166   (eval $ac_try) 2>&5
39167   ac_status=$?
39168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169   (exit $ac_status); }; } &&
39170          { ac_try='test -s conftest.$ac_objext'
39171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39172   (eval $ac_try) 2>&5
39173   ac_status=$?
39174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175   (exit $ac_status); }; }; then
39176   ac_header_compiler=yes
39177 else
39178   echo "$as_me: failed program was:" >&5
39179 sed 's/^/| /' conftest.$ac_ext >&5
39180
39181 ac_header_compiler=no
39182 fi
39183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39185 echo "${ECHO_T}$ac_header_compiler" >&6
39186
39187 # Is the header present?
39188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39190 cat >conftest.$ac_ext <<_ACEOF
39191 /* confdefs.h.  */
39192 _ACEOF
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h.  */
39196 #include <$ac_header>
39197 _ACEOF
39198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39200   ac_status=$?
39201   grep -v '^ *+' conftest.er1 >conftest.err
39202   rm -f conftest.er1
39203   cat conftest.err >&5
39204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205   (exit $ac_status); } >/dev/null; then
39206   if test -s conftest.err; then
39207     ac_cpp_err=$ac_c_preproc_warn_flag
39208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39209   else
39210     ac_cpp_err=
39211   fi
39212 else
39213   ac_cpp_err=yes
39214 fi
39215 if test -z "$ac_cpp_err"; then
39216   ac_header_preproc=yes
39217 else
39218   echo "$as_me: failed program was:" >&5
39219 sed 's/^/| /' conftest.$ac_ext >&5
39220
39221   ac_header_preproc=no
39222 fi
39223 rm -f conftest.err conftest.$ac_ext
39224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39225 echo "${ECHO_T}$ac_header_preproc" >&6
39226
39227 # So?  What about this header?
39228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39229   yes:no: )
39230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39234     ac_header_preproc=yes
39235     ;;
39236   no:yes:* )
39237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39249     (
39250       cat <<\_ASBOX
39251 ## ------------------------------ ##
39252 ## Report this to the ntp lists.  ##
39253 ## ------------------------------ ##
39254 _ASBOX
39255     ) |
39256       sed "s/^/$as_me: WARNING:     /" >&2
39257     ;;
39258 esac
39259 echo "$as_me:$LINENO: checking for $ac_header" >&5
39260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39262   echo $ECHO_N "(cached) $ECHO_C" >&6
39263 else
39264   eval "$as_ac_Header=\$ac_header_preproc"
39265 fi
39266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39268
39269 fi
39270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39271   cat >>confdefs.h <<_ACEOF
39272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39273 _ACEOF
39274
39275 fi
39276
39277 done
39278
39279
39280     ;;
39281 esac
39282 echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5
39283 echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
39284 if test "${ac_cv_have_prototypes+set}" = set; then
39285   echo $ECHO_N "(cached) $ECHO_C" >&6
39286 else
39287   cat >conftest.$ac_ext <<_ACEOF
39288 /* confdefs.h.  */
39289 _ACEOF
39290 cat confdefs.h >>conftest.$ac_ext
39291 cat >>conftest.$ac_ext <<_ACEOF
39292 /* end confdefs.h.  */
39293
39294 extern int foo (short);
39295 int foo(short i) { return i; }
39296 int
39297 main ()
39298 {
39299
39300 int i;
39301   ;
39302   return 0;
39303 }
39304 _ACEOF
39305 rm -f conftest.$ac_objext
39306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39307   (eval $ac_compile) 2>conftest.er1
39308   ac_status=$?
39309   grep -v '^ *+' conftest.er1 >conftest.err
39310   rm -f conftest.er1
39311   cat conftest.err >&5
39312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39313   (exit $ac_status); } &&
39314          { ac_try='test -z "$ac_c_werror_flag"
39315                          || test ! -s conftest.err'
39316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39317   (eval $ac_try) 2>&5
39318   ac_status=$?
39319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320   (exit $ac_status); }; } &&
39321          { ac_try='test -s conftest.$ac_objext'
39322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323   (eval $ac_try) 2>&5
39324   ac_status=$?
39325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326   (exit $ac_status); }; }; then
39327   ac_cv_have_prototypes=yes
39328 else
39329   echo "$as_me: failed program was:" >&5
39330 sed 's/^/| /' conftest.$ac_ext >&5
39331
39332 ac_cv_have_prototypes=no
39333 fi
39334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39335
39336 fi
39337 echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5
39338 echo "${ECHO_T}$ac_cv_have_prototypes" >&6
39339 if test "$ac_cv_have_prototypes" = yes; then
39340
39341 cat >>confdefs.h <<\_ACEOF
39342 #define HAVE_PROTOTYPES 1
39343 _ACEOF
39344
39345 fi
39346
39347 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39348 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39349 if test "${ac_cv_c_const+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
39359 int
39360 main ()
39361 {
39362 /* FIXME: Include the comments suggested by Paul. */
39363 #ifndef __cplusplus
39364   /* Ultrix mips cc rejects this.  */
39365   typedef int charset[2];
39366   const charset x;
39367   /* SunOS 4.1.1 cc rejects this.  */
39368   char const *const *ccp;
39369   char **p;
39370   /* NEC SVR4.0.2 mips cc rejects this.  */
39371   struct point {int x, y;};
39372   static struct point const zero = {0,0};
39373   /* AIX XL C 1.02.0.0 rejects this.
39374      It does not let you subtract one const X* pointer from another in
39375      an arm of an if-expression whose if-part is not a constant
39376      expression */
39377   const char *g = "string";
39378   ccp = &g + (g ? g-g : 0);
39379   /* HPUX 7.0 cc rejects these. */
39380   ++ccp;
39381   p = (char**) ccp;
39382   ccp = (char const *const *) p;
39383   { /* SCO 3.2v4 cc rejects this.  */
39384     char *t;
39385     char const *s = 0 ? (char *) 0 : (char const *) 0;
39386
39387     *t++ = 0;
39388   }
39389   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
39390     int x[] = {25, 17};
39391     const int *foo = &x[0];
39392     ++foo;
39393   }
39394   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39395     typedef const int *iptr;
39396     iptr p = 0;
39397     ++p;
39398   }
39399   { /* AIX XL C 1.02.0.0 rejects this saying
39400        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39401     struct s { int j; const int *ap[3]; };
39402     struct s *b; b->j = 5;
39403   }
39404   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39405     const int foo = 10;
39406   }
39407 #endif
39408
39409   ;
39410   return 0;
39411 }
39412 _ACEOF
39413 rm -f conftest.$ac_objext
39414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39415   (eval $ac_compile) 2>conftest.er1
39416   ac_status=$?
39417   grep -v '^ *+' conftest.er1 >conftest.err
39418   rm -f conftest.er1
39419   cat conftest.err >&5
39420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39421   (exit $ac_status); } &&
39422          { ac_try='test -z "$ac_c_werror_flag"
39423                          || test ! -s conftest.err'
39424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39425   (eval $ac_try) 2>&5
39426   ac_status=$?
39427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428   (exit $ac_status); }; } &&
39429          { ac_try='test -s conftest.$ac_objext'
39430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39431   (eval $ac_try) 2>&5
39432   ac_status=$?
39433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434   (exit $ac_status); }; }; then
39435   ac_cv_c_const=yes
39436 else
39437   echo "$as_me: failed program was:" >&5
39438 sed 's/^/| /' conftest.$ac_ext >&5
39439
39440 ac_cv_c_const=no
39441 fi
39442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39443 fi
39444 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39445 echo "${ECHO_T}$ac_cv_c_const" >&6
39446 if test $ac_cv_c_const = no; then
39447
39448 cat >>confdefs.h <<\_ACEOF
39449 #define const
39450 _ACEOF
39451
39452 fi
39453
39454 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39455 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39456 if test "${ac_cv_c_bigendian+set}" = set; then
39457   echo $ECHO_N "(cached) $ECHO_C" >&6
39458 else
39459   # See if sys/param.h defines the BYTE_ORDER macro.
39460 cat >conftest.$ac_ext <<_ACEOF
39461 /* confdefs.h.  */
39462 _ACEOF
39463 cat confdefs.h >>conftest.$ac_ext
39464 cat >>conftest.$ac_ext <<_ACEOF
39465 /* end confdefs.h.  */
39466 #include <sys/types.h>
39467 #include <sys/param.h>
39468
39469 int
39470 main ()
39471 {
39472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39473  bogus endian macros
39474 #endif
39475
39476   ;
39477   return 0;
39478 }
39479 _ACEOF
39480 rm -f conftest.$ac_objext
39481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39482   (eval $ac_compile) 2>conftest.er1
39483   ac_status=$?
39484   grep -v '^ *+' conftest.er1 >conftest.err
39485   rm -f conftest.er1
39486   cat conftest.err >&5
39487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39488   (exit $ac_status); } &&
39489          { ac_try='test -z "$ac_c_werror_flag"
39490                          || test ! -s conftest.err'
39491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39492   (eval $ac_try) 2>&5
39493   ac_status=$?
39494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495   (exit $ac_status); }; } &&
39496          { ac_try='test -s conftest.$ac_objext'
39497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39498   (eval $ac_try) 2>&5
39499   ac_status=$?
39500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501   (exit $ac_status); }; }; then
39502   # It does; now see whether it defined to BIG_ENDIAN or not.
39503 cat >conftest.$ac_ext <<_ACEOF
39504 /* confdefs.h.  */
39505 _ACEOF
39506 cat confdefs.h >>conftest.$ac_ext
39507 cat >>conftest.$ac_ext <<_ACEOF
39508 /* end confdefs.h.  */
39509 #include <sys/types.h>
39510 #include <sys/param.h>
39511
39512 int
39513 main ()
39514 {
39515 #if BYTE_ORDER != BIG_ENDIAN
39516  not big endian
39517 #endif
39518
39519   ;
39520   return 0;
39521 }
39522 _ACEOF
39523 rm -f conftest.$ac_objext
39524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39525   (eval $ac_compile) 2>conftest.er1
39526   ac_status=$?
39527   grep -v '^ *+' conftest.er1 >conftest.err
39528   rm -f conftest.er1
39529   cat conftest.err >&5
39530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531   (exit $ac_status); } &&
39532          { ac_try='test -z "$ac_c_werror_flag"
39533                          || test ! -s conftest.err'
39534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39535   (eval $ac_try) 2>&5
39536   ac_status=$?
39537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538   (exit $ac_status); }; } &&
39539          { ac_try='test -s conftest.$ac_objext'
39540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541   (eval $ac_try) 2>&5
39542   ac_status=$?
39543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544   (exit $ac_status); }; }; then
39545   ac_cv_c_bigendian=yes
39546 else
39547   echo "$as_me: failed program was:" >&5
39548 sed 's/^/| /' conftest.$ac_ext >&5
39549
39550 ac_cv_c_bigendian=no
39551 fi
39552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39553 else
39554   echo "$as_me: failed program was:" >&5
39555 sed 's/^/| /' conftest.$ac_ext >&5
39556
39557 # It does not; compile a test program.
39558 if test "$cross_compiling" = yes; then
39559   # try to guess the endianness by grepping values into an object file
39560   ac_cv_c_bigendian=unknown
39561   cat >conftest.$ac_ext <<_ACEOF
39562 /* confdefs.h.  */
39563 _ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h.  */
39567 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39568 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39569 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
39570 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39571 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39572 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
39573 int
39574 main ()
39575 {
39576  _ascii (); _ebcdic ();
39577   ;
39578   return 0;
39579 }
39580 _ACEOF
39581 rm -f conftest.$ac_objext
39582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39583   (eval $ac_compile) 2>conftest.er1
39584   ac_status=$?
39585   grep -v '^ *+' conftest.er1 >conftest.err
39586   rm -f conftest.er1
39587   cat conftest.err >&5
39588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589   (exit $ac_status); } &&
39590          { ac_try='test -z "$ac_c_werror_flag"
39591                          || test ! -s conftest.err'
39592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39593   (eval $ac_try) 2>&5
39594   ac_status=$?
39595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596   (exit $ac_status); }; } &&
39597          { ac_try='test -s conftest.$ac_objext'
39598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39599   (eval $ac_try) 2>&5
39600   ac_status=$?
39601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602   (exit $ac_status); }; }; then
39603   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
39604   ac_cv_c_bigendian=yes
39605 fi
39606 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39607   if test "$ac_cv_c_bigendian" = unknown; then
39608     ac_cv_c_bigendian=no
39609   else
39610     # finding both strings is unlikely to happen, but who knows?
39611     ac_cv_c_bigendian=unknown
39612   fi
39613 fi
39614 else
39615   echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39617
39618 fi
39619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39620 else
39621   cat >conftest.$ac_ext <<_ACEOF
39622 /* confdefs.h.  */
39623 _ACEOF
39624 cat confdefs.h >>conftest.$ac_ext
39625 cat >>conftest.$ac_ext <<_ACEOF
39626 /* end confdefs.h.  */
39627 int
39628 main ()
39629 {
39630   /* Are we little or big endian?  From Harbison&Steele.  */
39631   union
39632   {
39633     long l;
39634     char c[sizeof (long)];
39635   } u;
39636   u.l = 1;
39637   exit (u.c[sizeof (long) - 1] == 1);
39638 }
39639 _ACEOF
39640 rm -f conftest$ac_exeext
39641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39642   (eval $ac_link) 2>&5
39643   ac_status=$?
39644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39647   (eval $ac_try) 2>&5
39648   ac_status=$?
39649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650   (exit $ac_status); }; }; then
39651   ac_cv_c_bigendian=no
39652 else
39653   echo "$as_me: program exited with status $ac_status" >&5
39654 echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39656
39657 ( exit $ac_status )
39658 ac_cv_c_bigendian=yes
39659 fi
39660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39661 fi
39662 fi
39663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39664 fi
39665 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
39666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
39667 case $ac_cv_c_bigendian in
39668   yes)
39669
39670 cat >>confdefs.h <<\_ACEOF
39671 #define WORDS_BIGENDIAN 1
39672 _ACEOF
39673  ;;
39674   no)
39675      ;;
39676   *)
39677     { { echo "$as_me:$LINENO: error: unknown endianness
39678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39679 echo "$as_me: error: unknown endianness
39680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39681    { (exit 1); exit 1; }; } ;;
39682 esac
39683
39684 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39685 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39686 if test "${ac_cv_type_signal+set}" = set; then
39687   echo $ECHO_N "(cached) $ECHO_C" >&6
39688 else
39689   cat >conftest.$ac_ext <<_ACEOF
39690 /* confdefs.h.  */
39691 _ACEOF
39692 cat confdefs.h >>conftest.$ac_ext
39693 cat >>conftest.$ac_ext <<_ACEOF
39694 /* end confdefs.h.  */
39695 #include <sys/types.h>
39696 #include <signal.h>
39697 #ifdef signal
39698 # undef signal
39699 #endif
39700 #ifdef __cplusplus
39701 extern "C" void (*signal (int, void (*)(int)))(int);
39702 #else
39703 void (*signal ()) ();
39704 #endif
39705
39706 int
39707 main ()
39708 {
39709 int i;
39710   ;
39711   return 0;
39712 }
39713 _ACEOF
39714 rm -f conftest.$ac_objext
39715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39716   (eval $ac_compile) 2>conftest.er1
39717   ac_status=$?
39718   grep -v '^ *+' conftest.er1 >conftest.err
39719   rm -f conftest.er1
39720   cat conftest.err >&5
39721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722   (exit $ac_status); } &&
39723          { ac_try='test -z "$ac_c_werror_flag"
39724                          || test ! -s conftest.err'
39725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726   (eval $ac_try) 2>&5
39727   ac_status=$?
39728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729   (exit $ac_status); }; } &&
39730          { ac_try='test -s conftest.$ac_objext'
39731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732   (eval $ac_try) 2>&5
39733   ac_status=$?
39734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735   (exit $ac_status); }; }; then
39736   ac_cv_type_signal=void
39737 else
39738   echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39740
39741 ac_cv_type_signal=int
39742 fi
39743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39744 fi
39745 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39746 echo "${ECHO_T}$ac_cv_type_signal" >&6
39747
39748 cat >>confdefs.h <<_ACEOF
39749 #define RETSIGTYPE $ac_cv_type_signal
39750 _ACEOF
39751
39752
39753 echo "$as_me:$LINENO: checking for off_t" >&5
39754 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39755 if test "${ac_cv_type_off_t+set}" = set; then
39756   echo $ECHO_N "(cached) $ECHO_C" >&6
39757 else
39758   cat >conftest.$ac_ext <<_ACEOF
39759 /* confdefs.h.  */
39760 _ACEOF
39761 cat confdefs.h >>conftest.$ac_ext
39762 cat >>conftest.$ac_ext <<_ACEOF
39763 /* end confdefs.h.  */
39764 $ac_includes_default
39765 int
39766 main ()
39767 {
39768 if ((off_t *) 0)
39769   return 0;
39770 if (sizeof (off_t))
39771   return 0;
39772   ;
39773   return 0;
39774 }
39775 _ACEOF
39776 rm -f conftest.$ac_objext
39777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39778   (eval $ac_compile) 2>conftest.er1
39779   ac_status=$?
39780   grep -v '^ *+' conftest.er1 >conftest.err
39781   rm -f conftest.er1
39782   cat conftest.err >&5
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); } &&
39785          { ac_try='test -z "$ac_c_werror_flag"
39786                          || test ! -s conftest.err'
39787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39788   (eval $ac_try) 2>&5
39789   ac_status=$?
39790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791   (exit $ac_status); }; } &&
39792          { ac_try='test -s conftest.$ac_objext'
39793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39794   (eval $ac_try) 2>&5
39795   ac_status=$?
39796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797   (exit $ac_status); }; }; then
39798   ac_cv_type_off_t=yes
39799 else
39800   echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39802
39803 ac_cv_type_off_t=no
39804 fi
39805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39806 fi
39807 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39808 echo "${ECHO_T}$ac_cv_type_off_t" >&6
39809 if test $ac_cv_type_off_t = yes; then
39810   :
39811 else
39812
39813 cat >>confdefs.h <<_ACEOF
39814 #define off_t long
39815 _ACEOF
39816
39817 fi
39818
39819 echo "$as_me:$LINENO: checking for size_t" >&5
39820 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39821 if test "${ac_cv_type_size_t+set}" = set; then
39822   echo $ECHO_N "(cached) $ECHO_C" >&6
39823 else
39824   cat >conftest.$ac_ext <<_ACEOF
39825 /* confdefs.h.  */
39826 _ACEOF
39827 cat confdefs.h >>conftest.$ac_ext
39828 cat >>conftest.$ac_ext <<_ACEOF
39829 /* end confdefs.h.  */
39830 $ac_includes_default
39831 int
39832 main ()
39833 {
39834 if ((size_t *) 0)
39835   return 0;
39836 if (sizeof (size_t))
39837   return 0;
39838   ;
39839   return 0;
39840 }
39841 _ACEOF
39842 rm -f conftest.$ac_objext
39843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39844   (eval $ac_compile) 2>conftest.er1
39845   ac_status=$?
39846   grep -v '^ *+' conftest.er1 >conftest.err
39847   rm -f conftest.er1
39848   cat conftest.err >&5
39849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850   (exit $ac_status); } &&
39851          { ac_try='test -z "$ac_c_werror_flag"
39852                          || test ! -s conftest.err'
39853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39854   (eval $ac_try) 2>&5
39855   ac_status=$?
39856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39857   (exit $ac_status); }; } &&
39858          { ac_try='test -s conftest.$ac_objext'
39859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39860   (eval $ac_try) 2>&5
39861   ac_status=$?
39862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863   (exit $ac_status); }; }; then
39864   ac_cv_type_size_t=yes
39865 else
39866   echo "$as_me: failed program was:" >&5
39867 sed 's/^/| /' conftest.$ac_ext >&5
39868
39869 ac_cv_type_size_t=no
39870 fi
39871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39872 fi
39873 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39874 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39875 if test $ac_cv_type_size_t = yes; then
39876   :
39877 else
39878
39879 cat >>confdefs.h <<_ACEOF
39880 #define size_t unsigned
39881 _ACEOF
39882
39883 fi
39884
39885 echo "$as_me:$LINENO: checking for time_t" >&5
39886 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
39887 if test "${ac_cv_type_time_t+set}" = set; then
39888   echo $ECHO_N "(cached) $ECHO_C" >&6
39889 else
39890   cat >conftest.$ac_ext <<_ACEOF
39891 /* confdefs.h.  */
39892 _ACEOF
39893 cat confdefs.h >>conftest.$ac_ext
39894 cat >>conftest.$ac_ext <<_ACEOF
39895 /* end confdefs.h.  */
39896 $ac_includes_default
39897 int
39898 main ()
39899 {
39900 if ((time_t *) 0)
39901   return 0;
39902 if (sizeof (time_t))
39903   return 0;
39904   ;
39905   return 0;
39906 }
39907 _ACEOF
39908 rm -f conftest.$ac_objext
39909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39910   (eval $ac_compile) 2>conftest.er1
39911   ac_status=$?
39912   grep -v '^ *+' conftest.er1 >conftest.err
39913   rm -f conftest.er1
39914   cat conftest.err >&5
39915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916   (exit $ac_status); } &&
39917          { ac_try='test -z "$ac_c_werror_flag"
39918                          || test ! -s conftest.err'
39919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39920   (eval $ac_try) 2>&5
39921   ac_status=$?
39922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923   (exit $ac_status); }; } &&
39924          { ac_try='test -s conftest.$ac_objext'
39925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39926   (eval $ac_try) 2>&5
39927   ac_status=$?
39928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929   (exit $ac_status); }; }; then
39930   ac_cv_type_time_t=yes
39931 else
39932   echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39934
39935 ac_cv_type_time_t=no
39936 fi
39937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39938 fi
39939 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
39940 echo "${ECHO_T}$ac_cv_type_time_t" >&6
39941 if test $ac_cv_type_time_t = yes; then
39942   :
39943 else
39944
39945 cat >>confdefs.h <<_ACEOF
39946 #define time_t long
39947 _ACEOF
39948
39949 fi
39950
39951 echo "$as_me:$LINENO: checking for time_t" >&5
39952 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
39953 if test "${ac_cv_type_time_t+set}" = set; then
39954   echo $ECHO_N "(cached) $ECHO_C" >&6
39955 else
39956   cat >conftest.$ac_ext <<_ACEOF
39957 /* confdefs.h.  */
39958 _ACEOF
39959 cat confdefs.h >>conftest.$ac_ext
39960 cat >>conftest.$ac_ext <<_ACEOF
39961 /* end confdefs.h.  */
39962 $ac_includes_default
39963 int
39964 main ()
39965 {
39966 if ((time_t *) 0)
39967   return 0;
39968 if (sizeof (time_t))
39969   return 0;
39970   ;
39971   return 0;
39972 }
39973 _ACEOF
39974 rm -f conftest.$ac_objext
39975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39976   (eval $ac_compile) 2>conftest.er1
39977   ac_status=$?
39978   grep -v '^ *+' conftest.er1 >conftest.err
39979   rm -f conftest.er1
39980   cat conftest.err >&5
39981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982   (exit $ac_status); } &&
39983          { ac_try='test -z "$ac_c_werror_flag"
39984                          || test ! -s conftest.err'
39985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986   (eval $ac_try) 2>&5
39987   ac_status=$?
39988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989   (exit $ac_status); }; } &&
39990          { ac_try='test -s conftest.$ac_objext'
39991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39992   (eval $ac_try) 2>&5
39993   ac_status=$?
39994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995   (exit $ac_status); }; }; then
39996   ac_cv_type_time_t=yes
39997 else
39998   echo "$as_me: failed program was:" >&5
39999 sed 's/^/| /' conftest.$ac_ext >&5
40000
40001 ac_cv_type_time_t=no
40002 fi
40003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40004 fi
40005 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
40006 echo "${ECHO_T}$ac_cv_type_time_t" >&6
40007
40008 echo "$as_me:$LINENO: checking size of time_t" >&5
40009 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
40010 if test "${ac_cv_sizeof_time_t+set}" = set; then
40011   echo $ECHO_N "(cached) $ECHO_C" >&6
40012 else
40013   if test "$ac_cv_type_time_t" = yes; then
40014   # The cast to unsigned long works around a bug in the HP C Compiler
40015   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40016   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40017   # This bug is HP SR number 8606223364.
40018   if test "$cross_compiling" = yes; then
40019   # Depending upon the size, compute the lo and hi bounds.
40020 cat >conftest.$ac_ext <<_ACEOF
40021 /* confdefs.h.  */
40022 _ACEOF
40023 cat confdefs.h >>conftest.$ac_ext
40024 cat >>conftest.$ac_ext <<_ACEOF
40025 /* end confdefs.h.  */
40026 $ac_includes_default
40027 int
40028 main ()
40029 {
40030 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
40031 test_array [0] = 0
40032
40033   ;
40034   return 0;
40035 }
40036 _ACEOF
40037 rm -f conftest.$ac_objext
40038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40039   (eval $ac_compile) 2>conftest.er1
40040   ac_status=$?
40041   grep -v '^ *+' conftest.er1 >conftest.err
40042   rm -f conftest.er1
40043   cat conftest.err >&5
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); } &&
40046          { ac_try='test -z "$ac_c_werror_flag"
40047                          || test ! -s conftest.err'
40048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40049   (eval $ac_try) 2>&5
40050   ac_status=$?
40051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052   (exit $ac_status); }; } &&
40053          { ac_try='test -s conftest.$ac_objext'
40054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40055   (eval $ac_try) 2>&5
40056   ac_status=$?
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); }; }; then
40059   ac_lo=0 ac_mid=0
40060   while :; do
40061     cat >conftest.$ac_ext <<_ACEOF
40062 /* confdefs.h.  */
40063 _ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h.  */
40067 $ac_includes_default
40068 int
40069 main ()
40070 {
40071 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
40072 test_array [0] = 0
40073
40074   ;
40075   return 0;
40076 }
40077 _ACEOF
40078 rm -f conftest.$ac_objext
40079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40080   (eval $ac_compile) 2>conftest.er1
40081   ac_status=$?
40082   grep -v '^ *+' conftest.er1 >conftest.err
40083   rm -f conftest.er1
40084   cat conftest.err >&5
40085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086   (exit $ac_status); } &&
40087          { ac_try='test -z "$ac_c_werror_flag"
40088                          || test ! -s conftest.err'
40089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40090   (eval $ac_try) 2>&5
40091   ac_status=$?
40092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093   (exit $ac_status); }; } &&
40094          { ac_try='test -s conftest.$ac_objext'
40095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096   (eval $ac_try) 2>&5
40097   ac_status=$?
40098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099   (exit $ac_status); }; }; then
40100   ac_hi=$ac_mid; break
40101 else
40102   echo "$as_me: failed program was:" >&5
40103 sed 's/^/| /' conftest.$ac_ext >&5
40104
40105 ac_lo=`expr $ac_mid + 1`
40106                     if test $ac_lo -le $ac_mid; then
40107                       ac_lo= ac_hi=
40108                       break
40109                     fi
40110                     ac_mid=`expr 2 '*' $ac_mid + 1`
40111 fi
40112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40113   done
40114 else
40115   echo "$as_me: failed program was:" >&5
40116 sed 's/^/| /' conftest.$ac_ext >&5
40117
40118 cat >conftest.$ac_ext <<_ACEOF
40119 /* confdefs.h.  */
40120 _ACEOF
40121 cat confdefs.h >>conftest.$ac_ext
40122 cat >>conftest.$ac_ext <<_ACEOF
40123 /* end confdefs.h.  */
40124 $ac_includes_default
40125 int
40126 main ()
40127 {
40128 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
40129 test_array [0] = 0
40130
40131   ;
40132   return 0;
40133 }
40134 _ACEOF
40135 rm -f conftest.$ac_objext
40136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40137   (eval $ac_compile) 2>conftest.er1
40138   ac_status=$?
40139   grep -v '^ *+' conftest.er1 >conftest.err
40140   rm -f conftest.er1
40141   cat conftest.err >&5
40142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40143   (exit $ac_status); } &&
40144          { ac_try='test -z "$ac_c_werror_flag"
40145                          || test ! -s conftest.err'
40146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40147   (eval $ac_try) 2>&5
40148   ac_status=$?
40149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40150   (exit $ac_status); }; } &&
40151          { ac_try='test -s conftest.$ac_objext'
40152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40153   (eval $ac_try) 2>&5
40154   ac_status=$?
40155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156   (exit $ac_status); }; }; then
40157   ac_hi=-1 ac_mid=-1
40158   while :; do
40159     cat >conftest.$ac_ext <<_ACEOF
40160 /* confdefs.h.  */
40161 _ACEOF
40162 cat confdefs.h >>conftest.$ac_ext
40163 cat >>conftest.$ac_ext <<_ACEOF
40164 /* end confdefs.h.  */
40165 $ac_includes_default
40166 int
40167 main ()
40168 {
40169 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
40170 test_array [0] = 0
40171
40172   ;
40173   return 0;
40174 }
40175 _ACEOF
40176 rm -f conftest.$ac_objext
40177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40178   (eval $ac_compile) 2>conftest.er1
40179   ac_status=$?
40180   grep -v '^ *+' conftest.er1 >conftest.err
40181   rm -f conftest.er1
40182   cat conftest.err >&5
40183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184   (exit $ac_status); } &&
40185          { ac_try='test -z "$ac_c_werror_flag"
40186                          || test ! -s conftest.err'
40187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40188   (eval $ac_try) 2>&5
40189   ac_status=$?
40190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191   (exit $ac_status); }; } &&
40192          { ac_try='test -s conftest.$ac_objext'
40193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40194   (eval $ac_try) 2>&5
40195   ac_status=$?
40196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197   (exit $ac_status); }; }; then
40198   ac_lo=$ac_mid; break
40199 else
40200   echo "$as_me: failed program was:" >&5
40201 sed 's/^/| /' conftest.$ac_ext >&5
40202
40203 ac_hi=`expr '(' $ac_mid ')' - 1`
40204                        if test $ac_mid -le $ac_hi; then
40205                          ac_lo= ac_hi=
40206                          break
40207                        fi
40208                        ac_mid=`expr 2 '*' $ac_mid`
40209 fi
40210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40211   done
40212 else
40213   echo "$as_me: failed program was:" >&5
40214 sed 's/^/| /' conftest.$ac_ext >&5
40215
40216 ac_lo= ac_hi=
40217 fi
40218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40219 fi
40220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40221 # Binary search between lo and hi bounds.
40222 while test "x$ac_lo" != "x$ac_hi"; do
40223   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40224   cat >conftest.$ac_ext <<_ACEOF
40225 /* confdefs.h.  */
40226 _ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h.  */
40230 $ac_includes_default
40231 int
40232 main ()
40233 {
40234 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
40235 test_array [0] = 0
40236
40237   ;
40238   return 0;
40239 }
40240 _ACEOF
40241 rm -f conftest.$ac_objext
40242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40243   (eval $ac_compile) 2>conftest.er1
40244   ac_status=$?
40245   grep -v '^ *+' conftest.er1 >conftest.err
40246   rm -f conftest.er1
40247   cat conftest.err >&5
40248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249   (exit $ac_status); } &&
40250          { ac_try='test -z "$ac_c_werror_flag"
40251                          || test ! -s conftest.err'
40252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40253   (eval $ac_try) 2>&5
40254   ac_status=$?
40255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256   (exit $ac_status); }; } &&
40257          { ac_try='test -s conftest.$ac_objext'
40258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40259   (eval $ac_try) 2>&5
40260   ac_status=$?
40261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262   (exit $ac_status); }; }; then
40263   ac_hi=$ac_mid
40264 else
40265   echo "$as_me: failed program was:" >&5
40266 sed 's/^/| /' conftest.$ac_ext >&5
40267
40268 ac_lo=`expr '(' $ac_mid ')' + 1`
40269 fi
40270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40271 done
40272 case $ac_lo in
40273 ?*) ac_cv_sizeof_time_t=$ac_lo;;
40274 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
40275 See \`config.log' for more details." >&5
40276 echo "$as_me: error: cannot compute sizeof (time_t), 77
40277 See \`config.log' for more details." >&2;}
40278    { (exit 1); exit 1; }; } ;;
40279 esac
40280 else
40281   if test "$cross_compiling" = yes; then
40282   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40283 See \`config.log' for more details." >&5
40284 echo "$as_me: error: cannot run test program while cross compiling
40285 See \`config.log' for more details." >&2;}
40286    { (exit 1); exit 1; }; }
40287 else
40288   cat >conftest.$ac_ext <<_ACEOF
40289 /* confdefs.h.  */
40290 _ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h.  */
40294 $ac_includes_default
40295 long longval () { return (long) (sizeof (time_t)); }
40296 unsigned long ulongval () { return (long) (sizeof (time_t)); }
40297 #include <stdio.h>
40298 #include <stdlib.h>
40299 int
40300 main ()
40301 {
40302
40303   FILE *f = fopen ("conftest.val", "w");
40304   if (! f)
40305     exit (1);
40306   if (((long) (sizeof (time_t))) < 0)
40307     {
40308       long i = longval ();
40309       if (i != ((long) (sizeof (time_t))))
40310         exit (1);
40311       fprintf (f, "%ld\n", i);
40312     }
40313   else
40314     {
40315       unsigned long i = ulongval ();
40316       if (i != ((long) (sizeof (time_t))))
40317         exit (1);
40318       fprintf (f, "%lu\n", i);
40319     }
40320   exit (ferror (f) || fclose (f) != 0);
40321
40322   ;
40323   return 0;
40324 }
40325 _ACEOF
40326 rm -f conftest$ac_exeext
40327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40328   (eval $ac_link) 2>&5
40329   ac_status=$?
40330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40333   (eval $ac_try) 2>&5
40334   ac_status=$?
40335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336   (exit $ac_status); }; }; then
40337   ac_cv_sizeof_time_t=`cat conftest.val`
40338 else
40339   echo "$as_me: program exited with status $ac_status" >&5
40340 echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40342
40343 ( exit $ac_status )
40344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
40345 See \`config.log' for more details." >&5
40346 echo "$as_me: error: cannot compute sizeof (time_t), 77
40347 See \`config.log' for more details." >&2;}
40348    { (exit 1); exit 1; }; }
40349 fi
40350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40351 fi
40352 fi
40353 rm -f conftest.val
40354 else
40355   ac_cv_sizeof_time_t=0
40356 fi
40357 fi
40358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
40359 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
40360 cat >>confdefs.h <<_ACEOF
40361 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
40362 _ACEOF
40363
40364
40365 echo "$as_me:$LINENO: checking for uintptr_t" >&5
40366 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
40367 if test "${ac_cv_type_uintptr_t+set}" = set; then
40368   echo $ECHO_N "(cached) $ECHO_C" >&6
40369 else
40370   cat >conftest.$ac_ext <<_ACEOF
40371 /* confdefs.h.  */
40372 _ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h.  */
40376 $ac_includes_default
40377 int
40378 main ()
40379 {
40380 if ((uintptr_t *) 0)
40381   return 0;
40382 if (sizeof (uintptr_t))
40383   return 0;
40384   ;
40385   return 0;
40386 }
40387 _ACEOF
40388 rm -f conftest.$ac_objext
40389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40390   (eval $ac_compile) 2>conftest.er1
40391   ac_status=$?
40392   grep -v '^ *+' conftest.er1 >conftest.err
40393   rm -f conftest.er1
40394   cat conftest.err >&5
40395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396   (exit $ac_status); } &&
40397          { ac_try='test -z "$ac_c_werror_flag"
40398                          || test ! -s conftest.err'
40399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40400   (eval $ac_try) 2>&5
40401   ac_status=$?
40402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40403   (exit $ac_status); }; } &&
40404          { ac_try='test -s conftest.$ac_objext'
40405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40406   (eval $ac_try) 2>&5
40407   ac_status=$?
40408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409   (exit $ac_status); }; }; then
40410   ac_cv_type_uintptr_t=yes
40411 else
40412   echo "$as_me: failed program was:" >&5
40413 sed 's/^/| /' conftest.$ac_ext >&5
40414
40415 ac_cv_type_uintptr_t=no
40416 fi
40417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40418 fi
40419 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
40420 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
40421 if test $ac_cv_type_uintptr_t = yes; then
40422
40423 cat >>confdefs.h <<_ACEOF
40424 #define HAVE_UINTPTR_T 1
40425 _ACEOF
40426
40427
40428 fi
40429
40430
40431
40432
40433
40434 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
40435 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
40436 if test "${ac_cv_struct_tm+set}" = set; then
40437   echo $ECHO_N "(cached) $ECHO_C" >&6
40438 else
40439   cat >conftest.$ac_ext <<_ACEOF
40440 /* confdefs.h.  */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h.  */
40445 #include <sys/types.h>
40446 #include <time.h>
40447
40448 int
40449 main ()
40450 {
40451 struct tm *tp; tp->tm_sec;
40452   ;
40453   return 0;
40454 }
40455 _ACEOF
40456 rm -f conftest.$ac_objext
40457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40458   (eval $ac_compile) 2>conftest.er1
40459   ac_status=$?
40460   grep -v '^ *+' conftest.er1 >conftest.err
40461   rm -f conftest.er1
40462   cat conftest.err >&5
40463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464   (exit $ac_status); } &&
40465          { ac_try='test -z "$ac_c_werror_flag"
40466                          || test ! -s conftest.err'
40467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40468   (eval $ac_try) 2>&5
40469   ac_status=$?
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); }; } &&
40472          { ac_try='test -s conftest.$ac_objext'
40473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40474   (eval $ac_try) 2>&5
40475   ac_status=$?
40476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477   (exit $ac_status); }; }; then
40478   ac_cv_struct_tm=time.h
40479 else
40480   echo "$as_me: failed program was:" >&5
40481 sed 's/^/| /' conftest.$ac_ext >&5
40482
40483 ac_cv_struct_tm=sys/time.h
40484 fi
40485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40486 fi
40487 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
40488 echo "${ECHO_T}$ac_cv_struct_tm" >&6
40489 if test $ac_cv_struct_tm = sys/time.h; then
40490
40491 cat >>confdefs.h <<\_ACEOF
40492 #define TM_IN_SYS_TIME 1
40493 _ACEOF
40494
40495 fi
40496
40497
40498 echo "$as_me:$LINENO: checking for u_int8_t" >&5
40499 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
40500 if test "${ac_cv_type_u_int8_t+set}" = set; then
40501   echo $ECHO_N "(cached) $ECHO_C" >&6
40502 else
40503   cat >conftest.$ac_ext <<_ACEOF
40504 /* confdefs.h.  */
40505 _ACEOF
40506 cat confdefs.h >>conftest.$ac_ext
40507 cat >>conftest.$ac_ext <<_ACEOF
40508 /* end confdefs.h.  */
40509 #include <sys/types.h>
40510 int
40511 main ()
40512 {
40513 u_int8_t len = 42; return 0;
40514   ;
40515   return 0;
40516 }
40517 _ACEOF
40518 rm -f conftest.$ac_objext
40519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40520   (eval $ac_compile) 2>conftest.er1
40521   ac_status=$?
40522   grep -v '^ *+' conftest.er1 >conftest.err
40523   rm -f conftest.er1
40524   cat conftest.err >&5
40525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526   (exit $ac_status); } &&
40527          { ac_try='test -z "$ac_c_werror_flag"
40528                          || test ! -s conftest.err'
40529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40530   (eval $ac_try) 2>&5
40531   ac_status=$?
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); }; } &&
40534          { ac_try='test -s conftest.$ac_objext'
40535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40536   (eval $ac_try) 2>&5
40537   ac_status=$?
40538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539   (exit $ac_status); }; }; then
40540   ac_cv_type_u_int8_t=yes
40541 else
40542   echo "$as_me: failed program was:" >&5
40543 sed 's/^/| /' conftest.$ac_ext >&5
40544
40545 ac_cv_type_u_int8_t=no
40546 fi
40547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40548
40549 fi
40550 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
40551 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
40552 if test $ac_cv_type_u_int8_t = yes; then
40553
40554 cat >>confdefs.h <<\_ACEOF
40555 #define HAVE_TYPE_U_INT8_T 1
40556 _ACEOF
40557
40558 fi
40559
40560 echo "$as_me:$LINENO: checking for u_int64_t" >&5
40561 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
40562 if test "${ac_cv_type_u_int64_t+set}" = set; then
40563   echo $ECHO_N "(cached) $ECHO_C" >&6
40564 else
40565   cat >conftest.$ac_ext <<_ACEOF
40566 /* confdefs.h.  */
40567 _ACEOF
40568 cat confdefs.h >>conftest.$ac_ext
40569 cat >>conftest.$ac_ext <<_ACEOF
40570 /* end confdefs.h.  */
40571 #include <sys/types.h>
40572 int
40573 main ()
40574 {
40575 u_int64_t len = 42; return 0;
40576   ;
40577   return 0;
40578 }
40579 _ACEOF
40580 rm -f conftest.$ac_objext
40581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40582   (eval $ac_compile) 2>conftest.er1
40583   ac_status=$?
40584   grep -v '^ *+' conftest.er1 >conftest.err
40585   rm -f conftest.er1
40586   cat conftest.err >&5
40587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588   (exit $ac_status); } &&
40589          { ac_try='test -z "$ac_c_werror_flag"
40590                          || test ! -s conftest.err'
40591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40592   (eval $ac_try) 2>&5
40593   ac_status=$?
40594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40595   (exit $ac_status); }; } &&
40596          { ac_try='test -s conftest.$ac_objext'
40597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40598   (eval $ac_try) 2>&5
40599   ac_status=$?
40600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601   (exit $ac_status); }; }; then
40602   ac_cv_type_u_int64_t=yes
40603 else
40604   echo "$as_me: failed program was:" >&5
40605 sed 's/^/| /' conftest.$ac_ext >&5
40606
40607 ac_cv_type_u_int64_t=no
40608 fi
40609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40610
40611 fi
40612 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
40613 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
40614 if test $ac_cv_type_u_int64_t = yes; then
40615
40616 cat >>confdefs.h <<\_ACEOF
40617 #define HAVE_TYPE_U_INT64_T 1
40618 _ACEOF
40619
40620 fi
40621
40622 #
40623 # Look for in_port_t.
40624 #
40625 echo "$as_me:$LINENO: checking for in_port_t" >&5
40626 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
40627 cat >conftest.$ac_ext <<_ACEOF
40628 /* confdefs.h.  */
40629 _ACEOF
40630 cat confdefs.h >>conftest.$ac_ext
40631 cat >>conftest.$ac_ext <<_ACEOF
40632 /* end confdefs.h.  */
40633
40634 #include <sys/types.h>
40635 #include <netinet/in.h>
40636 int
40637 main ()
40638 {
40639 in_port_t port = 25; return (0);
40640   ;
40641   return 0;
40642 }
40643 _ACEOF
40644 rm -f conftest.$ac_objext
40645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40646   (eval $ac_compile) 2>conftest.er1
40647   ac_status=$?
40648   grep -v '^ *+' conftest.er1 >conftest.err
40649   rm -f conftest.er1
40650   cat conftest.err >&5
40651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652   (exit $ac_status); } &&
40653          { ac_try='test -z "$ac_c_werror_flag"
40654                          || test ! -s conftest.err'
40655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656   (eval $ac_try) 2>&5
40657   ac_status=$?
40658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659   (exit $ac_status); }; } &&
40660          { ac_try='test -s conftest.$ac_objext'
40661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40662   (eval $ac_try) 2>&5
40663   ac_status=$?
40664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665   (exit $ac_status); }; }; then
40666   echo "$as_me:$LINENO: result: yes" >&5
40667 echo "${ECHO_T}yes" >&6
40668
40669 else
40670   echo "$as_me: failed program was:" >&5
40671 sed 's/^/| /' conftest.$ac_ext >&5
40672
40673 echo "$as_me:$LINENO: result: no" >&5
40674 echo "${ECHO_T}no" >&6
40675
40676 cat >>confdefs.h <<\_ACEOF
40677 #define ISC_PLATFORM_NEEDPORTT 1
40678 _ACEOF
40679
40680
40681 fi
40682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40683
40684 echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5
40685 echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
40686 if test "${ac_cv_var_default_hz+set}" = set; then
40687   echo $ECHO_N "(cached) $ECHO_C" >&6
40688 else
40689   ac_cv_var_default_hz=100
40690 case "$host" in
40691  alpha*-dec-osf4*|alpha*-dec-osf5*)
40692     ac_cv_var_default_hz=1024
40693     ;;
40694  mips-dec-ultrix4*)
40695     ac_cv_var_default_hz=256
40696     ;;
40697 esac
40698 fi
40699 echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5
40700 echo "${ECHO_T}$ac_cv_var_default_hz" >&6
40701
40702 cat >>confdefs.h <<_ACEOF
40703 #define DEFAULT_HZ $ac_cv_var_default_hz
40704 _ACEOF
40705
40706
40707 echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5
40708 echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
40709 if test "${ac_cv_var_override_hz+set}" = set; then
40710   echo $ECHO_N "(cached) $ECHO_C" >&6
40711 else
40712   ac_cv_var_override_hz=no
40713 case "$host" in
40714  alpha*-dec-osf4*|alpha*-dec-osf5*)
40715     ac_cv_var_override_hz=yes
40716     ;;
40717  mips-dec-ultrix4*)
40718     ac_cv_var_override_hz=yes
40719     ;;
40720  *-*-freebsd*)
40721     ac_cv_var_override_hz=yes
40722     ;;
40723  *-*-sunos4*)
40724     ac_cv_var_override_hz=yes
40725     ;;
40726 esac
40727 fi
40728 echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5
40729 echo "${ECHO_T}$ac_cv_var_override_hz" >&6
40730 case "$ac_cv_var_override_hz" in
40731  yes)
40732
40733 cat >>confdefs.h <<\_ACEOF
40734 #define OVERRIDE_HZ 1
40735 _ACEOF
40736
40737     ;;
40738 esac
40739
40740
40741
40742 echo "$as_me:$LINENO: checking for struct rt_msghdr" >&5
40743 echo $ECHO_N "checking for struct rt_msghdr... $ECHO_C" >&6
40744 if test "${ac_cv_struct_rt_msghdr+set}" = set; then
40745   echo $ECHO_N "(cached) $ECHO_C" >&6
40746 else
40747   cat >conftest.$ac_ext <<_ACEOF
40748 /* confdefs.h.  */
40749 _ACEOF
40750 cat confdefs.h >>conftest.$ac_ext
40751 cat >>conftest.$ac_ext <<_ACEOF
40752 /* end confdefs.h.  */
40753
40754 #include <sys/types.h>
40755 #include <sys/socket.h>
40756 #include <net/if.h>
40757 #include <net/route.h>
40758 int
40759 main ()
40760 {
40761 struct rt_msghdr p;
40762   ;
40763   return 0;
40764 }
40765 _ACEOF
40766 rm -f conftest.$ac_objext
40767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40768   (eval $ac_compile) 2>conftest.er1
40769   ac_status=$?
40770   grep -v '^ *+' conftest.er1 >conftest.err
40771   rm -f conftest.er1
40772   cat conftest.err >&5
40773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774   (exit $ac_status); } &&
40775          { ac_try='test -z "$ac_c_werror_flag"
40776                          || test ! -s conftest.err'
40777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40778   (eval $ac_try) 2>&5
40779   ac_status=$?
40780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40781   (exit $ac_status); }; } &&
40782          { ac_try='test -s conftest.$ac_objext'
40783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40784   (eval $ac_try) 2>&5
40785   ac_status=$?
40786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40787   (exit $ac_status); }; }; then
40788   ac_cv_struct_rt_msghdr=yes
40789 else
40790   echo "$as_me: failed program was:" >&5
40791 sed 's/^/| /' conftest.$ac_ext >&5
40792
40793 ac_cv_struct_rt_msghdr=no
40794 fi
40795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40796
40797 fi
40798 echo "$as_me:$LINENO: result: $ac_cv_struct_rt_msghdr" >&5
40799 echo "${ECHO_T}$ac_cv_struct_rt_msghdr" >&6
40800 if test $ac_cv_struct_rt_msghdr = yes; then
40801
40802 cat >>confdefs.h <<\_ACEOF
40803 #define HAS_ROUTING_SOCKET 1
40804 _ACEOF
40805
40806 fi
40807
40808 echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5
40809 echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
40810 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
40811   echo $ECHO_N "(cached) $ECHO_C" >&6
40812 else
40813
40814     cat >conftest.$ac_ext <<_ACEOF
40815 /* confdefs.h.  */
40816 _ACEOF
40817 cat confdefs.h >>conftest.$ac_ext
40818 cat >>conftest.$ac_ext <<_ACEOF
40819 /* end confdefs.h.  */
40820 #include <signal.h>
40821 int
40822 main ()
40823 {
40824 struct sigaction act; act.sa_sigaction = 0;
40825   ;
40826   return 0;
40827 }
40828 _ACEOF
40829 rm -f conftest.$ac_objext
40830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40831   (eval $ac_compile) 2>conftest.er1
40832   ac_status=$?
40833   grep -v '^ *+' conftest.er1 >conftest.err
40834   rm -f conftest.er1
40835   cat conftest.err >&5
40836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837   (exit $ac_status); } &&
40838          { ac_try='test -z "$ac_c_werror_flag"
40839                          || test ! -s conftest.err'
40840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40841   (eval $ac_try) 2>&5
40842   ac_status=$?
40843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844   (exit $ac_status); }; } &&
40845          { ac_try='test -s conftest.$ac_objext'
40846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847   (eval $ac_try) 2>&5
40848   ac_status=$?
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); }; }; then
40851   ac_cv_struct_sigaction_has_sa_sigaction=yes
40852 else
40853   echo "$as_me: failed program was:" >&5
40854 sed 's/^/| /' conftest.$ac_ext >&5
40855
40856 ac_cv_struct_sigaction_has_sa_sigaction=no
40857
40858 fi
40859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40860
40861
40862 fi
40863 echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
40864 echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
40865 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
40866
40867 cat >>confdefs.h <<\_ACEOF
40868 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
40869 _ACEOF
40870
40871 fi
40872
40873 echo "$as_me:$LINENO: checking for struct ppsclockev" >&5
40874 echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
40875 if test "${ac_cv_struct_ppsclockev+set}" = set; then
40876   echo $ECHO_N "(cached) $ECHO_C" >&6
40877 else
40878   cat >conftest.$ac_ext <<_ACEOF
40879 /* confdefs.h.  */
40880 _ACEOF
40881 cat confdefs.h >>conftest.$ac_ext
40882 cat >>conftest.$ac_ext <<_ACEOF
40883 /* end confdefs.h.  */
40884
40885 #include <sys/types.h>
40886 #ifdef HAVE_SYS_TERMIOS_H
40887 # include <sys/termios.h>
40888 #endif
40889 #ifdef HAVE_SYS_TIME_H
40890 # include <sys/time.h>
40891 #endif
40892 #ifdef HAVE_SYS_PPSCLOCK_H
40893 # include <sys/ppsclock.h>
40894 #endif
40895 int
40896 main ()
40897 {
40898
40899 extern struct ppsclockev *pce;
40900 return pce->serial;
40901   ;
40902   return 0;
40903 }
40904 _ACEOF
40905 rm -f conftest.$ac_objext
40906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40907   (eval $ac_compile) 2>conftest.er1
40908   ac_status=$?
40909   grep -v '^ *+' conftest.er1 >conftest.err
40910   rm -f conftest.er1
40911   cat conftest.err >&5
40912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913   (exit $ac_status); } &&
40914          { ac_try='test -z "$ac_c_werror_flag"
40915                          || test ! -s conftest.err'
40916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40917   (eval $ac_try) 2>&5
40918   ac_status=$?
40919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40920   (exit $ac_status); }; } &&
40921          { ac_try='test -s conftest.$ac_objext'
40922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40923   (eval $ac_try) 2>&5
40924   ac_status=$?
40925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40926   (exit $ac_status); }; }; then
40927   ac_cv_struct_ppsclockev=yes
40928 else
40929   echo "$as_me: failed program was:" >&5
40930 sed 's/^/| /' conftest.$ac_ext >&5
40931
40932 ac_cv_struct_ppsclockev=no
40933 fi
40934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40935
40936 fi
40937 echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5
40938 echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
40939 if test $ac_cv_struct_ppsclockev = yes; then
40940
40941 cat >>confdefs.h <<\_ACEOF
40942 #define HAVE_STRUCT_PPSCLOCKEV 1
40943 _ACEOF
40944
40945 fi
40946
40947 echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5
40948 echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
40949 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
40950   echo $ECHO_N "(cached) $ECHO_C" >&6
40951 else
40952   cat >conftest.$ac_ext <<_ACEOF
40953 /* confdefs.h.  */
40954 _ACEOF
40955 cat confdefs.h >>conftest.$ac_ext
40956 cat >>conftest.$ac_ext <<_ACEOF
40957 /* end confdefs.h.  */
40958
40959 #include <sys/types.h>
40960 #include <sys/socket.h>
40961 int
40962 main ()
40963 {
40964
40965 extern struct sockaddr *ps;
40966 return ps->sa_len;
40967   ;
40968   return 0;
40969 }
40970 _ACEOF
40971 rm -f conftest.$ac_objext
40972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40973   (eval $ac_compile) 2>conftest.er1
40974   ac_status=$?
40975   grep -v '^ *+' conftest.er1 >conftest.err
40976   rm -f conftest.er1
40977   cat conftest.err >&5
40978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40979   (exit $ac_status); } &&
40980          { ac_try='test -z "$ac_c_werror_flag"
40981                          || test ! -s conftest.err'
40982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40983   (eval $ac_try) 2>&5
40984   ac_status=$?
40985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986   (exit $ac_status); }; } &&
40987          { ac_try='test -s conftest.$ac_objext'
40988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989   (eval $ac_try) 2>&5
40990   ac_status=$?
40991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992   (exit $ac_status); }; }; then
40993   ac_cv_struct_sockaddr_has_sa_len=yes
40994 else
40995   echo "$as_me: failed program was:" >&5
40996 sed 's/^/| /' conftest.$ac_ext >&5
40997
40998 ac_cv_struct_sockaddr_has_sa_len=no
40999 fi
41000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41001
41002 fi
41003 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
41004 echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
41005 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
41006
41007 cat >>confdefs.h <<\_ACEOF
41008 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
41009 _ACEOF
41010
41011 fi
41012
41013 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
41014 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
41015 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
41016   echo $ECHO_N "(cached) $ECHO_C" >&6
41017 else
41018   cat >conftest.$ac_ext <<_ACEOF
41019 /* confdefs.h.  */
41020 _ACEOF
41021 cat confdefs.h >>conftest.$ac_ext
41022 cat >>conftest.$ac_ext <<_ACEOF
41023 /* end confdefs.h.  */
41024
41025 #include <sys/types.h>
41026 #include <sys/socket.h>
41027 #include <netinet/in.h>
41028
41029 int
41030 main ()
41031 {
41032
41033 struct sockaddr_storage n;
41034   ;
41035   return 0;
41036 }
41037 _ACEOF
41038 rm -f conftest.$ac_objext
41039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41040   (eval $ac_compile) 2>conftest.er1
41041   ac_status=$?
41042   grep -v '^ *+' conftest.er1 >conftest.err
41043   rm -f conftest.er1
41044   cat conftest.err >&5
41045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046   (exit $ac_status); } &&
41047          { ac_try='test -z "$ac_c_werror_flag"
41048                          || test ! -s conftest.err'
41049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41050   (eval $ac_try) 2>&5
41051   ac_status=$?
41052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053   (exit $ac_status); }; } &&
41054          { ac_try='test -s conftest.$ac_objext'
41055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41056   (eval $ac_try) 2>&5
41057   ac_status=$?
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); }; }; then
41060   ac_cv_struct_sockaddr_storage=yes
41061 else
41062   echo "$as_me: failed program was:" >&5
41063 sed 's/^/| /' conftest.$ac_ext >&5
41064
41065 ac_cv_struct_sockaddr_storage=no
41066 fi
41067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41068
41069 fi
41070 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
41071 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
41072 if test $ac_cv_struct_sockaddr_storage = yes; then
41073
41074 cat >>confdefs.h <<\_ACEOF
41075 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
41076 _ACEOF
41077
41078 fi
41079
41080 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
41081 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
41082 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
41083   echo $ECHO_N "(cached) $ECHO_C" >&6
41084 else
41085
41086         cat >conftest.$ac_ext <<_ACEOF
41087 /* confdefs.h.  */
41088 _ACEOF
41089 cat confdefs.h >>conftest.$ac_ext
41090 cat >>conftest.$ac_ext <<_ACEOF
41091 /* end confdefs.h.  */
41092
41093 #include <sys/types.h>
41094 #include <sys/socket.h>
41095
41096 int
41097 main ()
41098 {
41099  struct sockaddr_storage s; s.ss_family = 1;
41100   ;
41101   return 0;
41102 }
41103 _ACEOF
41104 rm -f conftest.$ac_objext
41105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41106   (eval $ac_compile) 2>conftest.er1
41107   ac_status=$?
41108   grep -v '^ *+' conftest.er1 >conftest.err
41109   rm -f conftest.er1
41110   cat conftest.err >&5
41111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112   (exit $ac_status); } &&
41113          { ac_try='test -z "$ac_c_werror_flag"
41114                          || test ! -s conftest.err'
41115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41116   (eval $ac_try) 2>&5
41117   ac_status=$?
41118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119   (exit $ac_status); }; } &&
41120          { ac_try='test -s conftest.$ac_objext'
41121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41122   (eval $ac_try) 2>&5
41123   ac_status=$?
41124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41125   (exit $ac_status); }; }; then
41126    ac_cv_have_ss_family_in_struct_ss="yes"
41127 else
41128   echo "$as_me: failed program was:" >&5
41129 sed 's/^/| /' conftest.$ac_ext >&5
41130
41131  ac_cv_have_ss_family_in_struct_ss="no"
41132 fi
41133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41134
41135 fi
41136 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
41137 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
41138 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
41139
41140 cat >>confdefs.h <<\_ACEOF
41141 #define HAVE_SS_FAMILY_IN_SS 1
41142 _ACEOF
41143
41144 else
41145     # Hack around a problem...
41146     # HMS: This is $host because we need the -D if we are building *for* it.
41147     # HMS: 061029: Now that we separate the ss_* checks this is causing
41148     # a problem - disable it until we get to the bottom of it.
41149     case "$host" in
41150      XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
41151         ;;
41152     esac
41153 fi
41154
41155 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
41156 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
41157 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
41158   echo $ECHO_N "(cached) $ECHO_C" >&6
41159 else
41160
41161         cat >conftest.$ac_ext <<_ACEOF
41162 /* confdefs.h.  */
41163 _ACEOF
41164 cat confdefs.h >>conftest.$ac_ext
41165 cat >>conftest.$ac_ext <<_ACEOF
41166 /* end confdefs.h.  */
41167
41168 #include <sys/types.h>
41169 #include <sys/socket.h>
41170
41171 int
41172 main ()
41173 {
41174  struct sockaddr_storage s; s.__ss_family = 1;
41175   ;
41176   return 0;
41177 }
41178 _ACEOF
41179 rm -f conftest.$ac_objext
41180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41181   (eval $ac_compile) 2>conftest.er1
41182   ac_status=$?
41183   grep -v '^ *+' conftest.er1 >conftest.err
41184   rm -f conftest.er1
41185   cat conftest.err >&5
41186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187   (exit $ac_status); } &&
41188          { ac_try='test -z "$ac_c_werror_flag"
41189                          || test ! -s conftest.err'
41190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41191   (eval $ac_try) 2>&5
41192   ac_status=$?
41193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194   (exit $ac_status); }; } &&
41195          { ac_try='test -s conftest.$ac_objext'
41196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41197   (eval $ac_try) 2>&5
41198   ac_status=$?
41199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41200   (exit $ac_status); }; }; then
41201    ac_cv_have___ss_family_in_struct_ss="yes"
41202 else
41203   echo "$as_me: failed program was:" >&5
41204 sed 's/^/| /' conftest.$ac_ext >&5
41205
41206  ac_cv_have___ss_family_in_struct_ss="no"
41207
41208 fi
41209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41210
41211 fi
41212 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
41213 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
41214 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
41215
41216 cat >>confdefs.h <<\_ACEOF
41217 #define HAVE___SS_FAMILY_IN_SS 1
41218 _ACEOF
41219
41220 fi
41221
41222
41223
41224
41225 echo "$as_me:$LINENO: checking for ss_len field in struct sockaddr_storage" >&5
41226 echo $ECHO_N "checking for ss_len field in struct sockaddr_storage... $ECHO_C" >&6
41227 if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then
41228   echo $ECHO_N "(cached) $ECHO_C" >&6
41229 else
41230
41231         cat >conftest.$ac_ext <<_ACEOF
41232 /* confdefs.h.  */
41233 _ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h.  */
41237
41238 #include <sys/types.h>
41239 #include <sys/socket.h>
41240
41241 int
41242 main ()
41243 {
41244  struct sockaddr_storage s; s.ss_len = 1;
41245   ;
41246   return 0;
41247 }
41248 _ACEOF
41249 rm -f conftest.$ac_objext
41250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41251   (eval $ac_compile) 2>conftest.er1
41252   ac_status=$?
41253   grep -v '^ *+' conftest.er1 >conftest.err
41254   rm -f conftest.er1
41255   cat conftest.err >&5
41256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257   (exit $ac_status); } &&
41258          { ac_try='test -z "$ac_c_werror_flag"
41259                          || test ! -s conftest.err'
41260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41261   (eval $ac_try) 2>&5
41262   ac_status=$?
41263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264   (exit $ac_status); }; } &&
41265          { ac_try='test -s conftest.$ac_objext'
41266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41267   (eval $ac_try) 2>&5
41268   ac_status=$?
41269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270   (exit $ac_status); }; }; then
41271    ac_cv_have_ss_len_in_struct_ss="yes"
41272 else
41273   echo "$as_me: failed program was:" >&5
41274 sed 's/^/| /' conftest.$ac_ext >&5
41275
41276  ac_cv_have_ss_len_in_struct_ss="no"
41277 fi
41278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41279
41280 fi
41281 echo "$as_me:$LINENO: result: $ac_cv_have_ss_len_in_struct_ss" >&5
41282 echo "${ECHO_T}$ac_cv_have_ss_len_in_struct_ss" >&6
41283 if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then
41284
41285 cat >>confdefs.h <<\_ACEOF
41286 #define HAVE_SS_LEN_IN_SS 1
41287 _ACEOF
41288
41289 fi
41290
41291 echo "$as_me:$LINENO: checking for __ss_len field in struct sockaddr_storage" >&5
41292 echo $ECHO_N "checking for __ss_len field in struct sockaddr_storage... $ECHO_C" >&6
41293 if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then
41294   echo $ECHO_N "(cached) $ECHO_C" >&6
41295 else
41296
41297         cat >conftest.$ac_ext <<_ACEOF
41298 /* confdefs.h.  */
41299 _ACEOF
41300 cat confdefs.h >>conftest.$ac_ext
41301 cat >>conftest.$ac_ext <<_ACEOF
41302 /* end confdefs.h.  */
41303
41304 #include <sys/types.h>
41305 #include <sys/socket.h>
41306
41307 int
41308 main ()
41309 {
41310  struct sockaddr_storage s; s.__ss_len = 1;
41311   ;
41312   return 0;
41313 }
41314 _ACEOF
41315 rm -f conftest.$ac_objext
41316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41317   (eval $ac_compile) 2>conftest.er1
41318   ac_status=$?
41319   grep -v '^ *+' conftest.er1 >conftest.err
41320   rm -f conftest.er1
41321   cat conftest.err >&5
41322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41323   (exit $ac_status); } &&
41324          { ac_try='test -z "$ac_c_werror_flag"
41325                          || test ! -s conftest.err'
41326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41327   (eval $ac_try) 2>&5
41328   ac_status=$?
41329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41330   (exit $ac_status); }; } &&
41331          { ac_try='test -s conftest.$ac_objext'
41332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333   (eval $ac_try) 2>&5
41334   ac_status=$?
41335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336   (exit $ac_status); }; }; then
41337    ac_cv_have___ss_len_in_struct_ss="yes"
41338 else
41339   echo "$as_me: failed program was:" >&5
41340 sed 's/^/| /' conftest.$ac_ext >&5
41341
41342  ac_cv_have___ss_len_in_struct_ss="no"
41343
41344 fi
41345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41346
41347 fi
41348 echo "$as_me:$LINENO: result: $ac_cv_have___ss_len_in_struct_ss" >&5
41349 echo "${ECHO_T}$ac_cv_have___ss_len_in_struct_ss" >&6
41350 if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then
41351
41352 cat >>confdefs.h <<\_ACEOF
41353 #define HAVE___SS_LEN_IN_SS 1
41354 _ACEOF
41355
41356 fi
41357
41358
41359
41360
41361 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
41362   *yes*)
41363     echo "$as_me:$LINENO: checking for struct snd_size" >&5
41364 echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6
41365 if test "${ac_cv_struct_snd_size+set}" = set; then
41366   echo $ECHO_N "(cached) $ECHO_C" >&6
41367 else
41368   cat >conftest.$ac_ext <<_ACEOF
41369 /* confdefs.h.  */
41370 _ACEOF
41371 cat confdefs.h >>conftest.$ac_ext
41372 cat >>conftest.$ac_ext <<_ACEOF
41373 /* end confdefs.h.  */
41374
41375 #ifdef HAVE_MACHINE_SOUNDCARD_H
41376 # include <machine/soundcard.h>
41377 #endif
41378 #ifdef HAVE_SYS_SOUNDCARD_H
41379 # include <sys/soundcard.h>
41380 #endif
41381 int
41382 main ()
41383 {
41384
41385 extern struct snd_size *ss;
41386 return ss->rec_size;
41387   ;
41388   return 0;
41389 }
41390 _ACEOF
41391 rm -f conftest.$ac_objext
41392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41393   (eval $ac_compile) 2>conftest.er1
41394   ac_status=$?
41395   grep -v '^ *+' conftest.er1 >conftest.err
41396   rm -f conftest.er1
41397   cat conftest.err >&5
41398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399   (exit $ac_status); } &&
41400          { ac_try='test -z "$ac_c_werror_flag"
41401                          || test ! -s conftest.err'
41402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41403   (eval $ac_try) 2>&5
41404   ac_status=$?
41405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41406   (exit $ac_status); }; } &&
41407          { ac_try='test -s conftest.$ac_objext'
41408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41409   (eval $ac_try) 2>&5
41410   ac_status=$?
41411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41412   (exit $ac_status); }; }; then
41413   ac_cv_struct_snd_size=yes
41414 else
41415   echo "$as_me: failed program was:" >&5
41416 sed 's/^/| /' conftest.$ac_ext >&5
41417
41418 ac_cv_struct_snd_size=no
41419 fi
41420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41421
41422 fi
41423 echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5
41424 echo "${ECHO_T}$ac_cv_struct_snd_size" >&6
41425     case "$ac_cv_struct_snd_size" in
41426      yes)
41427 cat >>confdefs.h <<\_ACEOF
41428 #define HAVE_STRUCT_SND_SIZE 1
41429 _ACEOF
41430  ;;
41431     esac
41432     ;;
41433 esac
41434
41435 echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5
41436 echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
41437 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
41438   echo $ECHO_N "(cached) $ECHO_C" >&6
41439 else
41440   cat >conftest.$ac_ext <<_ACEOF
41441 /* confdefs.h.  */
41442 _ACEOF
41443 cat confdefs.h >>conftest.$ac_ext
41444 cat >>conftest.$ac_ext <<_ACEOF
41445 /* end confdefs.h.  */
41446
41447 #include <sys/time.h>
41448 int
41449 main ()
41450 {
41451
41452 extern struct clockinfo *pc;
41453 return pc->hz;
41454   ;
41455   return 0;
41456 }
41457 _ACEOF
41458 rm -f conftest.$ac_objext
41459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41460   (eval $ac_compile) 2>conftest.er1
41461   ac_status=$?
41462   grep -v '^ *+' conftest.er1 >conftest.err
41463   rm -f conftest.er1
41464   cat conftest.err >&5
41465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466   (exit $ac_status); } &&
41467          { ac_try='test -z "$ac_c_werror_flag"
41468                          || test ! -s conftest.err'
41469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470   (eval $ac_try) 2>&5
41471   ac_status=$?
41472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473   (exit $ac_status); }; } &&
41474          { ac_try='test -s conftest.$ac_objext'
41475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41476   (eval $ac_try) 2>&5
41477   ac_status=$?
41478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479   (exit $ac_status); }; }; then
41480   ac_cv_struct_clockinfo_has_hz=yes
41481 else
41482   echo "$as_me: failed program was:" >&5
41483 sed 's/^/| /' conftest.$ac_ext >&5
41484
41485 ac_cv_struct_clockinfo_has_hz=no
41486 fi
41487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41488
41489 fi
41490 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5
41491 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
41492 if test $ac_cv_struct_clockinfo_has_hz = yes; then
41493
41494 cat >>confdefs.h <<\_ACEOF
41495 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
41496 _ACEOF
41497
41498 fi
41499
41500 echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5
41501 echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
41502 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
41503   echo $ECHO_N "(cached) $ECHO_C" >&6
41504 else
41505   cat >conftest.$ac_ext <<_ACEOF
41506 /* confdefs.h.  */
41507 _ACEOF
41508 cat confdefs.h >>conftest.$ac_ext
41509 cat >>conftest.$ac_ext <<_ACEOF
41510 /* end confdefs.h.  */
41511
41512 #include <sys/time.h>
41513 int
41514 main ()
41515 {
41516
41517 extern struct clockinfo *pc;
41518 return pc->tickadj;
41519   ;
41520   return 0;
41521 }
41522 _ACEOF
41523 rm -f conftest.$ac_objext
41524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41525   (eval $ac_compile) 2>conftest.er1
41526   ac_status=$?
41527   grep -v '^ *+' conftest.er1 >conftest.err
41528   rm -f conftest.er1
41529   cat conftest.err >&5
41530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531   (exit $ac_status); } &&
41532          { ac_try='test -z "$ac_c_werror_flag"
41533                          || test ! -s conftest.err'
41534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535   (eval $ac_try) 2>&5
41536   ac_status=$?
41537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538   (exit $ac_status); }; } &&
41539          { ac_try='test -s conftest.$ac_objext'
41540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541   (eval $ac_try) 2>&5
41542   ac_status=$?
41543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544   (exit $ac_status); }; }; then
41545   ac_cv_struct_clockinfo_has_tickadj=yes
41546 else
41547   echo "$as_me: failed program was:" >&5
41548 sed 's/^/| /' conftest.$ac_ext >&5
41549
41550 ac_cv_struct_clockinfo_has_tickadj=no
41551 fi
41552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41553
41554 fi
41555 echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
41556 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
41557 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
41558
41559 cat >>confdefs.h <<\_ACEOF
41560 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
41561 _ACEOF
41562
41563 fi
41564
41565 echo "$as_me:$LINENO: checking for struct timespec" >&5
41566 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
41567 if test "${ac_cv_struct_timespec+set}" = set; then
41568   echo $ECHO_N "(cached) $ECHO_C" >&6
41569 else
41570   cat >conftest.$ac_ext <<_ACEOF
41571 /* confdefs.h.  */
41572 _ACEOF
41573 cat confdefs.h >>conftest.$ac_ext
41574 cat >>conftest.$ac_ext <<_ACEOF
41575 /* end confdefs.h.  */
41576
41577 #include <sys/time.h>
41578 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
41579 #ifdef HAVE_ERRNO_H
41580 # include <errno.h>
41581 #endif
41582 #ifdef HAVE_SYS_TIMEPPS_H
41583 # define FRAC 4294967296
41584 # include <sys/timepps.h>
41585 #endif
41586 int
41587 main ()
41588 {
41589 struct timespec n;
41590   ;
41591   return 0;
41592 }
41593 _ACEOF
41594 rm -f conftest.$ac_objext
41595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41596   (eval $ac_compile) 2>conftest.er1
41597   ac_status=$?
41598   grep -v '^ *+' conftest.er1 >conftest.err
41599   rm -f conftest.er1
41600   cat conftest.err >&5
41601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602   (exit $ac_status); } &&
41603          { ac_try='test -z "$ac_c_werror_flag"
41604                          || test ! -s conftest.err'
41605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41606   (eval $ac_try) 2>&5
41607   ac_status=$?
41608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609   (exit $ac_status); }; } &&
41610          { ac_try='test -s conftest.$ac_objext'
41611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41612   (eval $ac_try) 2>&5
41613   ac_status=$?
41614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41615   (exit $ac_status); }; }; then
41616   ac_cv_struct_timespec=yes
41617 else
41618   echo "$as_me: failed program was:" >&5
41619 sed 's/^/| /' conftest.$ac_ext >&5
41620
41621 ac_cv_struct_timespec=no
41622 fi
41623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41624 fi
41625 echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5
41626 echo "${ECHO_T}$ac_cv_struct_timespec" >&6
41627 if test $ac_cv_struct_timespec = yes; then
41628
41629 cat >>confdefs.h <<\_ACEOF
41630 #define HAVE_STRUCT_TIMESPEC 1
41631 _ACEOF
41632
41633 fi
41634
41635 echo "$as_me:$LINENO: checking for struct ntptimeval" >&5
41636 echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
41637 if test "${ac_cv_struct_ntptimeval+set}" = set; then
41638   echo $ECHO_N "(cached) $ECHO_C" >&6
41639 else
41640   cat >conftest.$ac_ext <<_ACEOF
41641 /* confdefs.h.  */
41642 _ACEOF
41643 cat confdefs.h >>conftest.$ac_ext
41644 cat >>conftest.$ac_ext <<_ACEOF
41645 /* end confdefs.h.  */
41646
41647 #include <sys/time.h>
41648 #include <sys/timex.h>
41649 int
41650 main ()
41651 {
41652 struct ntptimeval n;
41653   ;
41654   return 0;
41655 }
41656 _ACEOF
41657 rm -f conftest.$ac_objext
41658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41659   (eval $ac_compile) 2>conftest.er1
41660   ac_status=$?
41661   grep -v '^ *+' conftest.er1 >conftest.err
41662   rm -f conftest.er1
41663   cat conftest.err >&5
41664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665   (exit $ac_status); } &&
41666          { ac_try='test -z "$ac_c_werror_flag"
41667                          || test ! -s conftest.err'
41668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41669   (eval $ac_try) 2>&5
41670   ac_status=$?
41671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672   (exit $ac_status); }; } &&
41673          { ac_try='test -s conftest.$ac_objext'
41674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41675   (eval $ac_try) 2>&5
41676   ac_status=$?
41677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41678   (exit $ac_status); }; }; then
41679   ac_cv_struct_ntptimeval=yes
41680 else
41681   echo "$as_me: failed program was:" >&5
41682 sed 's/^/| /' conftest.$ac_ext >&5
41683
41684 ac_cv_struct_ntptimeval=no
41685 fi
41686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41687 fi
41688 echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5
41689 echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
41690 if test $ac_cv_struct_ntptimeval = yes; then
41691
41692 cat >>confdefs.h <<\_ACEOF
41693 #define HAVE_STRUCT_NTPTIMEVAL 1
41694 _ACEOF
41695
41696 fi
41697
41698 echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5
41699 echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
41700 if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
41701   echo $ECHO_N "(cached) $ECHO_C" >&6
41702 else
41703   cat >conftest.$ac_ext <<_ACEOF
41704 /* confdefs.h.  */
41705 _ACEOF
41706 cat confdefs.h >>conftest.$ac_ext
41707 cat >>conftest.$ac_ext <<_ACEOF
41708 /* end confdefs.h.  */
41709 #ifdef HAVE_SYS_TIME_H
41710 #include <sys/time.h>
41711 #else
41712 # ifdef HAVE_TIME_H
41713 # include <time.h>
41714 # endif
41715 #endif
41716 #ifdef HAVE_SYS_TIMEX_H
41717 #include <sys/timex.h>
41718 #else
41719 # ifdef HAVE_TIMEX_H
41720 # include <timex.h>
41721 # endif
41722 #endif
41723
41724 int
41725 main ()
41726 {
41727 static struct ntptimeval ac_aggr;
41728 if (ac_aggr.time.tv_nsec)
41729 return 0;
41730   ;
41731   return 0;
41732 }
41733 _ACEOF
41734 rm -f conftest.$ac_objext
41735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41736   (eval $ac_compile) 2>conftest.er1
41737   ac_status=$?
41738   grep -v '^ *+' conftest.er1 >conftest.err
41739   rm -f conftest.er1
41740   cat conftest.err >&5
41741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742   (exit $ac_status); } &&
41743          { ac_try='test -z "$ac_c_werror_flag"
41744                          || test ! -s conftest.err'
41745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41746   (eval $ac_try) 2>&5
41747   ac_status=$?
41748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749   (exit $ac_status); }; } &&
41750          { ac_try='test -s conftest.$ac_objext'
41751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752   (eval $ac_try) 2>&5
41753   ac_status=$?
41754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755   (exit $ac_status); }; }; then
41756   ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
41757 else
41758   echo "$as_me: failed program was:" >&5
41759 sed 's/^/| /' conftest.$ac_ext >&5
41760
41761 cat >conftest.$ac_ext <<_ACEOF
41762 /* confdefs.h.  */
41763 _ACEOF
41764 cat confdefs.h >>conftest.$ac_ext
41765 cat >>conftest.$ac_ext <<_ACEOF
41766 /* end confdefs.h.  */
41767 #ifdef HAVE_SYS_TIME_H
41768 #include <sys/time.h>
41769 #else
41770 # ifdef HAVE_TIME_H
41771 # include <time.h>
41772 # endif
41773 #endif
41774 #ifdef HAVE_SYS_TIMEX_H
41775 #include <sys/timex.h>
41776 #else
41777 # ifdef HAVE_TIMEX_H
41778 # include <timex.h>
41779 # endif
41780 #endif
41781
41782 int
41783 main ()
41784 {
41785 static struct ntptimeval ac_aggr;
41786 if (sizeof ac_aggr.time.tv_nsec)
41787 return 0;
41788   ;
41789   return 0;
41790 }
41791 _ACEOF
41792 rm -f conftest.$ac_objext
41793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41794   (eval $ac_compile) 2>conftest.er1
41795   ac_status=$?
41796   grep -v '^ *+' conftest.er1 >conftest.err
41797   rm -f conftest.er1
41798   cat conftest.err >&5
41799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41800   (exit $ac_status); } &&
41801          { ac_try='test -z "$ac_c_werror_flag"
41802                          || test ! -s conftest.err'
41803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41804   (eval $ac_try) 2>&5
41805   ac_status=$?
41806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41807   (exit $ac_status); }; } &&
41808          { ac_try='test -s conftest.$ac_objext'
41809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41810   (eval $ac_try) 2>&5
41811   ac_status=$?
41812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813   (exit $ac_status); }; }; then
41814   ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
41815 else
41816   echo "$as_me: failed program was:" >&5
41817 sed 's/^/| /' conftest.$ac_ext >&5
41818
41819 ac_cv_member_struct_ntptimeval_time_tv_nsec=no
41820 fi
41821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41822 fi
41823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41824 fi
41825 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
41826 echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
41827 if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
41828
41829 cat >>confdefs.h <<_ACEOF
41830 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
41831 _ACEOF
41832
41833
41834 fi
41835
41836
41837 echo "$as_me:$LINENO: checking for inline" >&5
41838 echo $ECHO_N "checking for inline... $ECHO_C" >&6
41839 if test "${ac_cv_c_inline+set}" = set; then
41840   echo $ECHO_N "(cached) $ECHO_C" >&6
41841 else
41842   ac_cv_c_inline=no
41843 for ac_kw in inline __inline__ __inline; do
41844   cat >conftest.$ac_ext <<_ACEOF
41845 /* confdefs.h.  */
41846 _ACEOF
41847 cat confdefs.h >>conftest.$ac_ext
41848 cat >>conftest.$ac_ext <<_ACEOF
41849 /* end confdefs.h.  */
41850 #ifndef __cplusplus
41851 typedef int foo_t;
41852 static $ac_kw foo_t static_foo () {return 0; }
41853 $ac_kw foo_t foo () {return 0; }
41854 #endif
41855
41856 _ACEOF
41857 rm -f conftest.$ac_objext
41858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41859   (eval $ac_compile) 2>conftest.er1
41860   ac_status=$?
41861   grep -v '^ *+' conftest.er1 >conftest.err
41862   rm -f conftest.er1
41863   cat conftest.err >&5
41864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865   (exit $ac_status); } &&
41866          { ac_try='test -z "$ac_c_werror_flag"
41867                          || test ! -s conftest.err'
41868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41869   (eval $ac_try) 2>&5
41870   ac_status=$?
41871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41872   (exit $ac_status); }; } &&
41873          { ac_try='test -s conftest.$ac_objext'
41874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41875   (eval $ac_try) 2>&5
41876   ac_status=$?
41877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41878   (exit $ac_status); }; }; then
41879   ac_cv_c_inline=$ac_kw; break
41880 else
41881   echo "$as_me: failed program was:" >&5
41882 sed 's/^/| /' conftest.$ac_ext >&5
41883
41884 fi
41885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41886 done
41887
41888 fi
41889 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
41890 echo "${ECHO_T}$ac_cv_c_inline" >&6
41891
41892
41893 case $ac_cv_c_inline in
41894   inline | yes) ;;
41895   *)
41896     case $ac_cv_c_inline in
41897       no) ac_val=;;
41898       *) ac_val=$ac_cv_c_inline;;
41899     esac
41900     cat >>confdefs.h <<_ACEOF
41901 #ifndef __cplusplus
41902 #define inline $ac_val
41903 #endif
41904 _ACEOF
41905     ;;
41906 esac
41907
41908
41909 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
41910 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
41911 if test "${ac_cv_c_char_unsigned+set}" = set; then
41912   echo $ECHO_N "(cached) $ECHO_C" >&6
41913 else
41914   cat >conftest.$ac_ext <<_ACEOF
41915 /* confdefs.h.  */
41916 _ACEOF
41917 cat confdefs.h >>conftest.$ac_ext
41918 cat >>conftest.$ac_ext <<_ACEOF
41919 /* end confdefs.h.  */
41920 $ac_includes_default
41921 int
41922 main ()
41923 {
41924 static int test_array [1 - 2 * !(((char) -1) < 0)];
41925 test_array [0] = 0
41926
41927   ;
41928   return 0;
41929 }
41930 _ACEOF
41931 rm -f conftest.$ac_objext
41932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41933   (eval $ac_compile) 2>conftest.er1
41934   ac_status=$?
41935   grep -v '^ *+' conftest.er1 >conftest.err
41936   rm -f conftest.er1
41937   cat conftest.err >&5
41938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41939   (exit $ac_status); } &&
41940          { ac_try='test -z "$ac_c_werror_flag"
41941                          || test ! -s conftest.err'
41942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41943   (eval $ac_try) 2>&5
41944   ac_status=$?
41945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946   (exit $ac_status); }; } &&
41947          { ac_try='test -s conftest.$ac_objext'
41948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949   (eval $ac_try) 2>&5
41950   ac_status=$?
41951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952   (exit $ac_status); }; }; then
41953   ac_cv_c_char_unsigned=no
41954 else
41955   echo "$as_me: failed program was:" >&5
41956 sed 's/^/| /' conftest.$ac_ext >&5
41957
41958 ac_cv_c_char_unsigned=yes
41959 fi
41960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41961 fi
41962 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
41963 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
41964 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
41965   cat >>confdefs.h <<\_ACEOF
41966 #define __CHAR_UNSIGNED__ 1
41967 _ACEOF
41968
41969 fi
41970                 echo "$as_me:$LINENO: checking for signed char" >&5
41971 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
41972 if test "${ac_cv_type_signed_char+set}" = set; then
41973   echo $ECHO_N "(cached) $ECHO_C" >&6
41974 else
41975   cat >conftest.$ac_ext <<_ACEOF
41976 /* confdefs.h.  */
41977 _ACEOF
41978 cat confdefs.h >>conftest.$ac_ext
41979 cat >>conftest.$ac_ext <<_ACEOF
41980 /* end confdefs.h.  */
41981 $ac_includes_default
41982 int
41983 main ()
41984 {
41985 if ((signed char *) 0)
41986   return 0;
41987 if (sizeof (signed char))
41988   return 0;
41989   ;
41990   return 0;
41991 }
41992 _ACEOF
41993 rm -f conftest.$ac_objext
41994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41995   (eval $ac_compile) 2>conftest.er1
41996   ac_status=$?
41997   grep -v '^ *+' conftest.er1 >conftest.err
41998   rm -f conftest.er1
41999   cat conftest.err >&5
42000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001   (exit $ac_status); } &&
42002          { ac_try='test -z "$ac_c_werror_flag"
42003                          || test ! -s conftest.err'
42004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42005   (eval $ac_try) 2>&5
42006   ac_status=$?
42007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008   (exit $ac_status); }; } &&
42009          { ac_try='test -s conftest.$ac_objext'
42010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42011   (eval $ac_try) 2>&5
42012   ac_status=$?
42013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42014   (exit $ac_status); }; }; then
42015   ac_cv_type_signed_char=yes
42016 else
42017   echo "$as_me: failed program was:" >&5
42018 sed 's/^/| /' conftest.$ac_ext >&5
42019
42020 ac_cv_type_signed_char=no
42021 fi
42022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42023 fi
42024 echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
42025 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
42026
42027 echo "$as_me:$LINENO: checking size of signed char" >&5
42028 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
42029 if test "${ac_cv_sizeof_signed_char+set}" = set; then
42030   echo $ECHO_N "(cached) $ECHO_C" >&6
42031 else
42032   if test "$ac_cv_type_signed_char" = yes; then
42033   # The cast to unsigned long works around a bug in the HP C Compiler
42034   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
42035   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
42036   # This bug is HP SR number 8606223364.
42037   if test "$cross_compiling" = yes; then
42038   # Depending upon the size, compute the lo and hi bounds.
42039 cat >conftest.$ac_ext <<_ACEOF
42040 /* confdefs.h.  */
42041 _ACEOF
42042 cat confdefs.h >>conftest.$ac_ext
42043 cat >>conftest.$ac_ext <<_ACEOF
42044 /* end confdefs.h.  */
42045 $ac_includes_default
42046 int
42047 main ()
42048 {
42049 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
42050 test_array [0] = 0
42051
42052   ;
42053   return 0;
42054 }
42055 _ACEOF
42056 rm -f conftest.$ac_objext
42057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42058   (eval $ac_compile) 2>conftest.er1
42059   ac_status=$?
42060   grep -v '^ *+' conftest.er1 >conftest.err
42061   rm -f conftest.er1
42062   cat conftest.err >&5
42063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064   (exit $ac_status); } &&
42065          { ac_try='test -z "$ac_c_werror_flag"
42066                          || test ! -s conftest.err'
42067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068   (eval $ac_try) 2>&5
42069   ac_status=$?
42070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071   (exit $ac_status); }; } &&
42072          { ac_try='test -s conftest.$ac_objext'
42073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42074   (eval $ac_try) 2>&5
42075   ac_status=$?
42076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077   (exit $ac_status); }; }; then
42078   ac_lo=0 ac_mid=0
42079   while :; do
42080     cat >conftest.$ac_ext <<_ACEOF
42081 /* confdefs.h.  */
42082 _ACEOF
42083 cat confdefs.h >>conftest.$ac_ext
42084 cat >>conftest.$ac_ext <<_ACEOF
42085 /* end confdefs.h.  */
42086 $ac_includes_default
42087 int
42088 main ()
42089 {
42090 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
42091 test_array [0] = 0
42092
42093   ;
42094   return 0;
42095 }
42096 _ACEOF
42097 rm -f conftest.$ac_objext
42098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42099   (eval $ac_compile) 2>conftest.er1
42100   ac_status=$?
42101   grep -v '^ *+' conftest.er1 >conftest.err
42102   rm -f conftest.er1
42103   cat conftest.err >&5
42104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42105   (exit $ac_status); } &&
42106          { ac_try='test -z "$ac_c_werror_flag"
42107                          || test ! -s conftest.err'
42108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42109   (eval $ac_try) 2>&5
42110   ac_status=$?
42111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42112   (exit $ac_status); }; } &&
42113          { ac_try='test -s conftest.$ac_objext'
42114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42115   (eval $ac_try) 2>&5
42116   ac_status=$?
42117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118   (exit $ac_status); }; }; then
42119   ac_hi=$ac_mid; break
42120 else
42121   echo "$as_me: failed program was:" >&5
42122 sed 's/^/| /' conftest.$ac_ext >&5
42123
42124 ac_lo=`expr $ac_mid + 1`
42125                     if test $ac_lo -le $ac_mid; then
42126                       ac_lo= ac_hi=
42127                       break
42128                     fi
42129                     ac_mid=`expr 2 '*' $ac_mid + 1`
42130 fi
42131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42132   done
42133 else
42134   echo "$as_me: failed program was:" >&5
42135 sed 's/^/| /' conftest.$ac_ext >&5
42136
42137 cat >conftest.$ac_ext <<_ACEOF
42138 /* confdefs.h.  */
42139 _ACEOF
42140 cat confdefs.h >>conftest.$ac_ext
42141 cat >>conftest.$ac_ext <<_ACEOF
42142 /* end confdefs.h.  */
42143 $ac_includes_default
42144 int
42145 main ()
42146 {
42147 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
42148 test_array [0] = 0
42149
42150   ;
42151   return 0;
42152 }
42153 _ACEOF
42154 rm -f conftest.$ac_objext
42155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42156   (eval $ac_compile) 2>conftest.er1
42157   ac_status=$?
42158   grep -v '^ *+' conftest.er1 >conftest.err
42159   rm -f conftest.er1
42160   cat conftest.err >&5
42161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162   (exit $ac_status); } &&
42163          { ac_try='test -z "$ac_c_werror_flag"
42164                          || test ! -s conftest.err'
42165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42166   (eval $ac_try) 2>&5
42167   ac_status=$?
42168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42169   (exit $ac_status); }; } &&
42170          { ac_try='test -s conftest.$ac_objext'
42171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42172   (eval $ac_try) 2>&5
42173   ac_status=$?
42174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42175   (exit $ac_status); }; }; then
42176   ac_hi=-1 ac_mid=-1
42177   while :; do
42178     cat >conftest.$ac_ext <<_ACEOF
42179 /* confdefs.h.  */
42180 _ACEOF
42181 cat confdefs.h >>conftest.$ac_ext
42182 cat >>conftest.$ac_ext <<_ACEOF
42183 /* end confdefs.h.  */
42184 $ac_includes_default
42185 int
42186 main ()
42187 {
42188 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
42189 test_array [0] = 0
42190
42191   ;
42192   return 0;
42193 }
42194 _ACEOF
42195 rm -f conftest.$ac_objext
42196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42197   (eval $ac_compile) 2>conftest.er1
42198   ac_status=$?
42199   grep -v '^ *+' conftest.er1 >conftest.err
42200   rm -f conftest.er1
42201   cat conftest.err >&5
42202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42203   (exit $ac_status); } &&
42204          { ac_try='test -z "$ac_c_werror_flag"
42205                          || test ! -s conftest.err'
42206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42207   (eval $ac_try) 2>&5
42208   ac_status=$?
42209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42210   (exit $ac_status); }; } &&
42211          { ac_try='test -s conftest.$ac_objext'
42212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42213   (eval $ac_try) 2>&5
42214   ac_status=$?
42215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216   (exit $ac_status); }; }; then
42217   ac_lo=$ac_mid; break
42218 else
42219   echo "$as_me: failed program was:" >&5
42220 sed 's/^/| /' conftest.$ac_ext >&5
42221
42222 ac_hi=`expr '(' $ac_mid ')' - 1`
42223                        if test $ac_mid -le $ac_hi; then
42224                          ac_lo= ac_hi=
42225                          break
42226                        fi
42227                        ac_mid=`expr 2 '*' $ac_mid`
42228 fi
42229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42230   done
42231 else
42232   echo "$as_me: failed program was:" >&5
42233 sed 's/^/| /' conftest.$ac_ext >&5
42234
42235 ac_lo= ac_hi=
42236 fi
42237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42238 fi
42239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42240 # Binary search between lo and hi bounds.
42241 while test "x$ac_lo" != "x$ac_hi"; do
42242   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42243   cat >conftest.$ac_ext <<_ACEOF
42244 /* confdefs.h.  */
42245 _ACEOF
42246 cat confdefs.h >>conftest.$ac_ext
42247 cat >>conftest.$ac_ext <<_ACEOF
42248 /* end confdefs.h.  */
42249 $ac_includes_default
42250 int
42251 main ()
42252 {
42253 static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
42254 test_array [0] = 0
42255
42256   ;
42257   return 0;
42258 }
42259 _ACEOF
42260 rm -f conftest.$ac_objext
42261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42262   (eval $ac_compile) 2>conftest.er1
42263   ac_status=$?
42264   grep -v '^ *+' conftest.er1 >conftest.err
42265   rm -f conftest.er1
42266   cat conftest.err >&5
42267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268   (exit $ac_status); } &&
42269          { ac_try='test -z "$ac_c_werror_flag"
42270                          || test ! -s conftest.err'
42271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42272   (eval $ac_try) 2>&5
42273   ac_status=$?
42274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275   (exit $ac_status); }; } &&
42276          { ac_try='test -s conftest.$ac_objext'
42277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42278   (eval $ac_try) 2>&5
42279   ac_status=$?
42280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281   (exit $ac_status); }; }; then
42282   ac_hi=$ac_mid
42283 else
42284   echo "$as_me: failed program was:" >&5
42285 sed 's/^/| /' conftest.$ac_ext >&5
42286
42287 ac_lo=`expr '(' $ac_mid ')' + 1`
42288 fi
42289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42290 done
42291 case $ac_lo in
42292 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
42293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
42294 See \`config.log' for more details." >&5
42295 echo "$as_me: error: cannot compute sizeof (signed char), 77
42296 See \`config.log' for more details." >&2;}
42297    { (exit 1); exit 1; }; } ;;
42298 esac
42299 else
42300   if test "$cross_compiling" = yes; then
42301   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42302 See \`config.log' for more details." >&5
42303 echo "$as_me: error: cannot run test program while cross compiling
42304 See \`config.log' for more details." >&2;}
42305    { (exit 1); exit 1; }; }
42306 else
42307   cat >conftest.$ac_ext <<_ACEOF
42308 /* confdefs.h.  */
42309 _ACEOF
42310 cat confdefs.h >>conftest.$ac_ext
42311 cat >>conftest.$ac_ext <<_ACEOF
42312 /* end confdefs.h.  */
42313 $ac_includes_default
42314 long longval () { return (long) (sizeof (signed char)); }
42315 unsigned long ulongval () { return (long) (sizeof (signed char)); }
42316 #include <stdio.h>
42317 #include <stdlib.h>
42318 int
42319 main ()
42320 {
42321
42322   FILE *f = fopen ("conftest.val", "w");
42323   if (! f)
42324     exit (1);
42325   if (((long) (sizeof (signed char))) < 0)
42326     {
42327       long i = longval ();
42328       if (i != ((long) (sizeof (signed char))))
42329         exit (1);
42330       fprintf (f, "%ld\n", i);
42331     }
42332   else
42333     {
42334       unsigned long i = ulongval ();
42335       if (i != ((long) (sizeof (signed char))))
42336         exit (1);
42337       fprintf (f, "%lu\n", i);
42338     }
42339   exit (ferror (f) || fclose (f) != 0);
42340
42341   ;
42342   return 0;
42343 }
42344 _ACEOF
42345 rm -f conftest$ac_exeext
42346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42347   (eval $ac_link) 2>&5
42348   ac_status=$?
42349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42352   (eval $ac_try) 2>&5
42353   ac_status=$?
42354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355   (exit $ac_status); }; }; then
42356   ac_cv_sizeof_signed_char=`cat conftest.val`
42357 else
42358   echo "$as_me: program exited with status $ac_status" >&5
42359 echo "$as_me: failed program was:" >&5
42360 sed 's/^/| /' conftest.$ac_ext >&5
42361
42362 ( exit $ac_status )
42363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
42364 See \`config.log' for more details." >&5
42365 echo "$as_me: error: cannot compute sizeof (signed char), 77
42366 See \`config.log' for more details." >&2;}
42367    { (exit 1); exit 1; }; }
42368 fi
42369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42370 fi
42371 fi
42372 rm -f conftest.val
42373 else
42374   ac_cv_sizeof_signed_char=0
42375 fi
42376 fi
42377 echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
42378 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
42379 cat >>confdefs.h <<_ACEOF
42380 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
42381 _ACEOF
42382
42383
42384 echo "$as_me:$LINENO: checking for int" >&5
42385 echo $ECHO_N "checking for int... $ECHO_C" >&6
42386 if test "${ac_cv_type_int+set}" = set; then
42387   echo $ECHO_N "(cached) $ECHO_C" >&6
42388 else
42389   cat >conftest.$ac_ext <<_ACEOF
42390 /* confdefs.h.  */
42391 _ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h.  */
42395 $ac_includes_default
42396 int
42397 main ()
42398 {
42399 if ((int *) 0)
42400   return 0;
42401 if (sizeof (int))
42402   return 0;
42403   ;
42404   return 0;
42405 }
42406 _ACEOF
42407 rm -f conftest.$ac_objext
42408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42409   (eval $ac_compile) 2>conftest.er1
42410   ac_status=$?
42411   grep -v '^ *+' conftest.er1 >conftest.err
42412   rm -f conftest.er1
42413   cat conftest.err >&5
42414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415   (exit $ac_status); } &&
42416          { ac_try='test -z "$ac_c_werror_flag"
42417                          || test ! -s conftest.err'
42418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42419   (eval $ac_try) 2>&5
42420   ac_status=$?
42421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422   (exit $ac_status); }; } &&
42423          { ac_try='test -s conftest.$ac_objext'
42424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42425   (eval $ac_try) 2>&5
42426   ac_status=$?
42427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428   (exit $ac_status); }; }; then
42429   ac_cv_type_int=yes
42430 else
42431   echo "$as_me: failed program was:" >&5
42432 sed 's/^/| /' conftest.$ac_ext >&5
42433
42434 ac_cv_type_int=no
42435 fi
42436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42437 fi
42438 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
42439 echo "${ECHO_T}$ac_cv_type_int" >&6
42440
42441 echo "$as_me:$LINENO: checking size of int" >&5
42442 echo $ECHO_N "checking size of int... $ECHO_C" >&6
42443 if test "${ac_cv_sizeof_int+set}" = set; then
42444   echo $ECHO_N "(cached) $ECHO_C" >&6
42445 else
42446   if test "$ac_cv_type_int" = yes; then
42447   # The cast to unsigned long works around a bug in the HP C Compiler
42448   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
42449   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
42450   # This bug is HP SR number 8606223364.
42451   if test "$cross_compiling" = yes; then
42452   # Depending upon the size, compute the lo and hi bounds.
42453 cat >conftest.$ac_ext <<_ACEOF
42454 /* confdefs.h.  */
42455 _ACEOF
42456 cat confdefs.h >>conftest.$ac_ext
42457 cat >>conftest.$ac_ext <<_ACEOF
42458 /* end confdefs.h.  */
42459 $ac_includes_default
42460 int
42461 main ()
42462 {
42463 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
42464 test_array [0] = 0
42465
42466   ;
42467   return 0;
42468 }
42469 _ACEOF
42470 rm -f conftest.$ac_objext
42471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42472   (eval $ac_compile) 2>conftest.er1
42473   ac_status=$?
42474   grep -v '^ *+' conftest.er1 >conftest.err
42475   rm -f conftest.er1
42476   cat conftest.err >&5
42477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478   (exit $ac_status); } &&
42479          { ac_try='test -z "$ac_c_werror_flag"
42480                          || test ! -s conftest.err'
42481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482   (eval $ac_try) 2>&5
42483   ac_status=$?
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); }; } &&
42486          { ac_try='test -s conftest.$ac_objext'
42487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42488   (eval $ac_try) 2>&5
42489   ac_status=$?
42490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491   (exit $ac_status); }; }; then
42492   ac_lo=0 ac_mid=0
42493   while :; do
42494     cat >conftest.$ac_ext <<_ACEOF
42495 /* confdefs.h.  */
42496 _ACEOF
42497 cat confdefs.h >>conftest.$ac_ext
42498 cat >>conftest.$ac_ext <<_ACEOF
42499 /* end confdefs.h.  */
42500 $ac_includes_default
42501 int
42502 main ()
42503 {
42504 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
42505 test_array [0] = 0
42506
42507   ;
42508   return 0;
42509 }
42510 _ACEOF
42511 rm -f conftest.$ac_objext
42512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42513   (eval $ac_compile) 2>conftest.er1
42514   ac_status=$?
42515   grep -v '^ *+' conftest.er1 >conftest.err
42516   rm -f conftest.er1
42517   cat conftest.err >&5
42518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42519   (exit $ac_status); } &&
42520          { ac_try='test -z "$ac_c_werror_flag"
42521                          || test ! -s conftest.err'
42522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42523   (eval $ac_try) 2>&5
42524   ac_status=$?
42525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526   (exit $ac_status); }; } &&
42527          { ac_try='test -s conftest.$ac_objext'
42528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42529   (eval $ac_try) 2>&5
42530   ac_status=$?
42531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42532   (exit $ac_status); }; }; then
42533   ac_hi=$ac_mid; break
42534 else
42535   echo "$as_me: failed program was:" >&5
42536 sed 's/^/| /' conftest.$ac_ext >&5
42537
42538 ac_lo=`expr $ac_mid + 1`
42539                     if test $ac_lo -le $ac_mid; then
42540                       ac_lo= ac_hi=
42541                       break
42542                     fi
42543                     ac_mid=`expr 2 '*' $ac_mid + 1`
42544 fi
42545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42546   done
42547 else
42548   echo "$as_me: failed program was:" >&5
42549 sed 's/^/| /' conftest.$ac_ext >&5
42550
42551 cat >conftest.$ac_ext <<_ACEOF
42552 /* confdefs.h.  */
42553 _ACEOF
42554 cat confdefs.h >>conftest.$ac_ext
42555 cat >>conftest.$ac_ext <<_ACEOF
42556 /* end confdefs.h.  */
42557 $ac_includes_default
42558 int
42559 main ()
42560 {
42561 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
42562 test_array [0] = 0
42563
42564   ;
42565   return 0;
42566 }
42567 _ACEOF
42568 rm -f conftest.$ac_objext
42569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42570   (eval $ac_compile) 2>conftest.er1
42571   ac_status=$?
42572   grep -v '^ *+' conftest.er1 >conftest.err
42573   rm -f conftest.er1
42574   cat conftest.err >&5
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); } &&
42577          { ac_try='test -z "$ac_c_werror_flag"
42578                          || test ! -s conftest.err'
42579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580   (eval $ac_try) 2>&5
42581   ac_status=$?
42582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583   (exit $ac_status); }; } &&
42584          { ac_try='test -s conftest.$ac_objext'
42585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586   (eval $ac_try) 2>&5
42587   ac_status=$?
42588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589   (exit $ac_status); }; }; then
42590   ac_hi=-1 ac_mid=-1
42591   while :; do
42592     cat >conftest.$ac_ext <<_ACEOF
42593 /* confdefs.h.  */
42594 _ACEOF
42595 cat confdefs.h >>conftest.$ac_ext
42596 cat >>conftest.$ac_ext <<_ACEOF
42597 /* end confdefs.h.  */
42598 $ac_includes_default
42599 int
42600 main ()
42601 {
42602 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
42603 test_array [0] = 0
42604
42605   ;
42606   return 0;
42607 }
42608 _ACEOF
42609 rm -f conftest.$ac_objext
42610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42611   (eval $ac_compile) 2>conftest.er1
42612   ac_status=$?
42613   grep -v '^ *+' conftest.er1 >conftest.err
42614   rm -f conftest.er1
42615   cat conftest.err >&5
42616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42617   (exit $ac_status); } &&
42618          { ac_try='test -z "$ac_c_werror_flag"
42619                          || test ! -s conftest.err'
42620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42621   (eval $ac_try) 2>&5
42622   ac_status=$?
42623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624   (exit $ac_status); }; } &&
42625          { ac_try='test -s conftest.$ac_objext'
42626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42627   (eval $ac_try) 2>&5
42628   ac_status=$?
42629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42630   (exit $ac_status); }; }; then
42631   ac_lo=$ac_mid; break
42632 else
42633   echo "$as_me: failed program was:" >&5
42634 sed 's/^/| /' conftest.$ac_ext >&5
42635
42636 ac_hi=`expr '(' $ac_mid ')' - 1`
42637                        if test $ac_mid -le $ac_hi; then
42638                          ac_lo= ac_hi=
42639                          break
42640                        fi
42641                        ac_mid=`expr 2 '*' $ac_mid`
42642 fi
42643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42644   done
42645 else
42646   echo "$as_me: failed program was:" >&5
42647 sed 's/^/| /' conftest.$ac_ext >&5
42648
42649 ac_lo= ac_hi=
42650 fi
42651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42652 fi
42653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42654 # Binary search between lo and hi bounds.
42655 while test "x$ac_lo" != "x$ac_hi"; do
42656   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42657   cat >conftest.$ac_ext <<_ACEOF
42658 /* confdefs.h.  */
42659 _ACEOF
42660 cat confdefs.h >>conftest.$ac_ext
42661 cat >>conftest.$ac_ext <<_ACEOF
42662 /* end confdefs.h.  */
42663 $ac_includes_default
42664 int
42665 main ()
42666 {
42667 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
42668 test_array [0] = 0
42669
42670   ;
42671   return 0;
42672 }
42673 _ACEOF
42674 rm -f conftest.$ac_objext
42675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42676   (eval $ac_compile) 2>conftest.er1
42677   ac_status=$?
42678   grep -v '^ *+' conftest.er1 >conftest.err
42679   rm -f conftest.er1
42680   cat conftest.err >&5
42681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42682   (exit $ac_status); } &&
42683          { ac_try='test -z "$ac_c_werror_flag"
42684                          || test ! -s conftest.err'
42685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42686   (eval $ac_try) 2>&5
42687   ac_status=$?
42688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42689   (exit $ac_status); }; } &&
42690          { ac_try='test -s conftest.$ac_objext'
42691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42692   (eval $ac_try) 2>&5
42693   ac_status=$?
42694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695   (exit $ac_status); }; }; then
42696   ac_hi=$ac_mid
42697 else
42698   echo "$as_me: failed program was:" >&5
42699 sed 's/^/| /' conftest.$ac_ext >&5
42700
42701 ac_lo=`expr '(' $ac_mid ')' + 1`
42702 fi
42703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42704 done
42705 case $ac_lo in
42706 ?*) ac_cv_sizeof_int=$ac_lo;;
42707 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
42708 See \`config.log' for more details." >&5
42709 echo "$as_me: error: cannot compute sizeof (int), 77
42710 See \`config.log' for more details." >&2;}
42711    { (exit 1); exit 1; }; } ;;
42712 esac
42713 else
42714   if test "$cross_compiling" = yes; then
42715   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42716 See \`config.log' for more details." >&5
42717 echo "$as_me: error: cannot run test program while cross compiling
42718 See \`config.log' for more details." >&2;}
42719    { (exit 1); exit 1; }; }
42720 else
42721   cat >conftest.$ac_ext <<_ACEOF
42722 /* confdefs.h.  */
42723 _ACEOF
42724 cat confdefs.h >>conftest.$ac_ext
42725 cat >>conftest.$ac_ext <<_ACEOF
42726 /* end confdefs.h.  */
42727 $ac_includes_default
42728 long longval () { return (long) (sizeof (int)); }
42729 unsigned long ulongval () { return (long) (sizeof (int)); }
42730 #include <stdio.h>
42731 #include <stdlib.h>
42732 int
42733 main ()
42734 {
42735
42736   FILE *f = fopen ("conftest.val", "w");
42737   if (! f)
42738     exit (1);
42739   if (((long) (sizeof (int))) < 0)
42740     {
42741       long i = longval ();
42742       if (i != ((long) (sizeof (int))))
42743         exit (1);
42744       fprintf (f, "%ld\n", i);
42745     }
42746   else
42747     {
42748       unsigned long i = ulongval ();
42749       if (i != ((long) (sizeof (int))))
42750         exit (1);
42751       fprintf (f, "%lu\n", i);
42752     }
42753   exit (ferror (f) || fclose (f) != 0);
42754
42755   ;
42756   return 0;
42757 }
42758 _ACEOF
42759 rm -f conftest$ac_exeext
42760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42761   (eval $ac_link) 2>&5
42762   ac_status=$?
42763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42766   (eval $ac_try) 2>&5
42767   ac_status=$?
42768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42769   (exit $ac_status); }; }; then
42770   ac_cv_sizeof_int=`cat conftest.val`
42771 else
42772   echo "$as_me: program exited with status $ac_status" >&5
42773 echo "$as_me: failed program was:" >&5
42774 sed 's/^/| /' conftest.$ac_ext >&5
42775
42776 ( exit $ac_status )
42777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
42778 See \`config.log' for more details." >&5
42779 echo "$as_me: error: cannot compute sizeof (int), 77
42780 See \`config.log' for more details." >&2;}
42781    { (exit 1); exit 1; }; }
42782 fi
42783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42784 fi
42785 fi
42786 rm -f conftest.val
42787 else
42788   ac_cv_sizeof_int=0
42789 fi
42790 fi
42791 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
42792 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
42793 cat >>confdefs.h <<_ACEOF
42794 #define SIZEOF_INT $ac_cv_sizeof_int
42795 _ACEOF
42796
42797
42798 echo "$as_me:$LINENO: checking for long" >&5
42799 echo $ECHO_N "checking for long... $ECHO_C" >&6
42800 if test "${ac_cv_type_long+set}" = set; then
42801   echo $ECHO_N "(cached) $ECHO_C" >&6
42802 else
42803   cat >conftest.$ac_ext <<_ACEOF
42804 /* confdefs.h.  */
42805 _ACEOF
42806 cat confdefs.h >>conftest.$ac_ext
42807 cat >>conftest.$ac_ext <<_ACEOF
42808 /* end confdefs.h.  */
42809 $ac_includes_default
42810 int
42811 main ()
42812 {
42813 if ((long *) 0)
42814   return 0;
42815 if (sizeof (long))
42816   return 0;
42817   ;
42818   return 0;
42819 }
42820 _ACEOF
42821 rm -f conftest.$ac_objext
42822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42823   (eval $ac_compile) 2>conftest.er1
42824   ac_status=$?
42825   grep -v '^ *+' conftest.er1 >conftest.err
42826   rm -f conftest.er1
42827   cat conftest.err >&5
42828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829   (exit $ac_status); } &&
42830          { ac_try='test -z "$ac_c_werror_flag"
42831                          || test ! -s conftest.err'
42832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42833   (eval $ac_try) 2>&5
42834   ac_status=$?
42835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836   (exit $ac_status); }; } &&
42837          { ac_try='test -s conftest.$ac_objext'
42838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42839   (eval $ac_try) 2>&5
42840   ac_status=$?
42841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42842   (exit $ac_status); }; }; then
42843   ac_cv_type_long=yes
42844 else
42845   echo "$as_me: failed program was:" >&5
42846 sed 's/^/| /' conftest.$ac_ext >&5
42847
42848 ac_cv_type_long=no
42849 fi
42850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42851 fi
42852 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
42853 echo "${ECHO_T}$ac_cv_type_long" >&6
42854
42855 echo "$as_me:$LINENO: checking size of long" >&5
42856 echo $ECHO_N "checking size of long... $ECHO_C" >&6
42857 if test "${ac_cv_sizeof_long+set}" = set; then
42858   echo $ECHO_N "(cached) $ECHO_C" >&6
42859 else
42860   if test "$ac_cv_type_long" = yes; then
42861   # The cast to unsigned long works around a bug in the HP C Compiler
42862   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
42863   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
42864   # This bug is HP SR number 8606223364.
42865   if test "$cross_compiling" = yes; then
42866   # Depending upon the size, compute the lo and hi bounds.
42867 cat >conftest.$ac_ext <<_ACEOF
42868 /* confdefs.h.  */
42869 _ACEOF
42870 cat confdefs.h >>conftest.$ac_ext
42871 cat >>conftest.$ac_ext <<_ACEOF
42872 /* end confdefs.h.  */
42873 $ac_includes_default
42874 int
42875 main ()
42876 {
42877 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
42878 test_array [0] = 0
42879
42880   ;
42881   return 0;
42882 }
42883 _ACEOF
42884 rm -f conftest.$ac_objext
42885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42886   (eval $ac_compile) 2>conftest.er1
42887   ac_status=$?
42888   grep -v '^ *+' conftest.er1 >conftest.err
42889   rm -f conftest.er1
42890   cat conftest.err >&5
42891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892   (exit $ac_status); } &&
42893          { ac_try='test -z "$ac_c_werror_flag"
42894                          || test ! -s conftest.err'
42895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42896   (eval $ac_try) 2>&5
42897   ac_status=$?
42898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42899   (exit $ac_status); }; } &&
42900          { ac_try='test -s conftest.$ac_objext'
42901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42902   (eval $ac_try) 2>&5
42903   ac_status=$?
42904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42905   (exit $ac_status); }; }; then
42906   ac_lo=0 ac_mid=0
42907   while :; do
42908     cat >conftest.$ac_ext <<_ACEOF
42909 /* confdefs.h.  */
42910 _ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h.  */
42914 $ac_includes_default
42915 int
42916 main ()
42917 {
42918 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
42919 test_array [0] = 0
42920
42921   ;
42922   return 0;
42923 }
42924 _ACEOF
42925 rm -f conftest.$ac_objext
42926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42927   (eval $ac_compile) 2>conftest.er1
42928   ac_status=$?
42929   grep -v '^ *+' conftest.er1 >conftest.err
42930   rm -f conftest.er1
42931   cat conftest.err >&5
42932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42933   (exit $ac_status); } &&
42934          { ac_try='test -z "$ac_c_werror_flag"
42935                          || test ! -s conftest.err'
42936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42937   (eval $ac_try) 2>&5
42938   ac_status=$?
42939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42940   (exit $ac_status); }; } &&
42941          { ac_try='test -s conftest.$ac_objext'
42942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42943   (eval $ac_try) 2>&5
42944   ac_status=$?
42945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42946   (exit $ac_status); }; }; then
42947   ac_hi=$ac_mid; break
42948 else
42949   echo "$as_me: failed program was:" >&5
42950 sed 's/^/| /' conftest.$ac_ext >&5
42951
42952 ac_lo=`expr $ac_mid + 1`
42953                     if test $ac_lo -le $ac_mid; then
42954                       ac_lo= ac_hi=
42955                       break
42956                     fi
42957                     ac_mid=`expr 2 '*' $ac_mid + 1`
42958 fi
42959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42960   done
42961 else
42962   echo "$as_me: failed program was:" >&5
42963 sed 's/^/| /' conftest.$ac_ext >&5
42964
42965 cat >conftest.$ac_ext <<_ACEOF
42966 /* confdefs.h.  */
42967 _ACEOF
42968 cat confdefs.h >>conftest.$ac_ext
42969 cat >>conftest.$ac_ext <<_ACEOF
42970 /* end confdefs.h.  */
42971 $ac_includes_default
42972 int
42973 main ()
42974 {
42975 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
42976 test_array [0] = 0
42977
42978   ;
42979   return 0;
42980 }
42981 _ACEOF
42982 rm -f conftest.$ac_objext
42983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42984   (eval $ac_compile) 2>conftest.er1
42985   ac_status=$?
42986   grep -v '^ *+' conftest.er1 >conftest.err
42987   rm -f conftest.er1
42988   cat conftest.err >&5
42989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42990   (exit $ac_status); } &&
42991          { ac_try='test -z "$ac_c_werror_flag"
42992                          || test ! -s conftest.err'
42993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42994   (eval $ac_try) 2>&5
42995   ac_status=$?
42996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997   (exit $ac_status); }; } &&
42998          { ac_try='test -s conftest.$ac_objext'
42999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43000   (eval $ac_try) 2>&5
43001   ac_status=$?
43002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43003   (exit $ac_status); }; }; then
43004   ac_hi=-1 ac_mid=-1
43005   while :; do
43006     cat >conftest.$ac_ext <<_ACEOF
43007 /* confdefs.h.  */
43008 _ACEOF
43009 cat confdefs.h >>conftest.$ac_ext
43010 cat >>conftest.$ac_ext <<_ACEOF
43011 /* end confdefs.h.  */
43012 $ac_includes_default
43013 int
43014 main ()
43015 {
43016 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
43017 test_array [0] = 0
43018
43019   ;
43020   return 0;
43021 }
43022 _ACEOF
43023 rm -f conftest.$ac_objext
43024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43025   (eval $ac_compile) 2>conftest.er1
43026   ac_status=$?
43027   grep -v '^ *+' conftest.er1 >conftest.err
43028   rm -f conftest.er1
43029   cat conftest.err >&5
43030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43031   (exit $ac_status); } &&
43032          { ac_try='test -z "$ac_c_werror_flag"
43033                          || test ! -s conftest.err'
43034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43035   (eval $ac_try) 2>&5
43036   ac_status=$?
43037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43038   (exit $ac_status); }; } &&
43039          { ac_try='test -s conftest.$ac_objext'
43040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43041   (eval $ac_try) 2>&5
43042   ac_status=$?
43043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43044   (exit $ac_status); }; }; then
43045   ac_lo=$ac_mid; break
43046 else
43047   echo "$as_me: failed program was:" >&5
43048 sed 's/^/| /' conftest.$ac_ext >&5
43049
43050 ac_hi=`expr '(' $ac_mid ')' - 1`
43051                        if test $ac_mid -le $ac_hi; then
43052                          ac_lo= ac_hi=
43053                          break
43054                        fi
43055                        ac_mid=`expr 2 '*' $ac_mid`
43056 fi
43057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43058   done
43059 else
43060   echo "$as_me: failed program was:" >&5
43061 sed 's/^/| /' conftest.$ac_ext >&5
43062
43063 ac_lo= ac_hi=
43064 fi
43065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43066 fi
43067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43068 # Binary search between lo and hi bounds.
43069 while test "x$ac_lo" != "x$ac_hi"; do
43070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
43071   cat >conftest.$ac_ext <<_ACEOF
43072 /* confdefs.h.  */
43073 _ACEOF
43074 cat confdefs.h >>conftest.$ac_ext
43075 cat >>conftest.$ac_ext <<_ACEOF
43076 /* end confdefs.h.  */
43077 $ac_includes_default
43078 int
43079 main ()
43080 {
43081 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
43082 test_array [0] = 0
43083
43084   ;
43085   return 0;
43086 }
43087 _ACEOF
43088 rm -f conftest.$ac_objext
43089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43090   (eval $ac_compile) 2>conftest.er1
43091   ac_status=$?
43092   grep -v '^ *+' conftest.er1 >conftest.err
43093   rm -f conftest.er1
43094   cat conftest.err >&5
43095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43096   (exit $ac_status); } &&
43097          { ac_try='test -z "$ac_c_werror_flag"
43098                          || test ! -s conftest.err'
43099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43100   (eval $ac_try) 2>&5
43101   ac_status=$?
43102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43103   (exit $ac_status); }; } &&
43104          { ac_try='test -s conftest.$ac_objext'
43105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43106   (eval $ac_try) 2>&5
43107   ac_status=$?
43108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43109   (exit $ac_status); }; }; then
43110   ac_hi=$ac_mid
43111 else
43112   echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43114
43115 ac_lo=`expr '(' $ac_mid ')' + 1`
43116 fi
43117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43118 done
43119 case $ac_lo in
43120 ?*) ac_cv_sizeof_long=$ac_lo;;
43121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
43122 See \`config.log' for more details." >&5
43123 echo "$as_me: error: cannot compute sizeof (long), 77
43124 See \`config.log' for more details." >&2;}
43125    { (exit 1); exit 1; }; } ;;
43126 esac
43127 else
43128   if test "$cross_compiling" = yes; then
43129   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
43130 See \`config.log' for more details." >&5
43131 echo "$as_me: error: cannot run test program while cross compiling
43132 See \`config.log' for more details." >&2;}
43133    { (exit 1); exit 1; }; }
43134 else
43135   cat >conftest.$ac_ext <<_ACEOF
43136 /* confdefs.h.  */
43137 _ACEOF
43138 cat confdefs.h >>conftest.$ac_ext
43139 cat >>conftest.$ac_ext <<_ACEOF
43140 /* end confdefs.h.  */
43141 $ac_includes_default
43142 long longval () { return (long) (sizeof (long)); }
43143 unsigned long ulongval () { return (long) (sizeof (long)); }
43144 #include <stdio.h>
43145 #include <stdlib.h>
43146 int
43147 main ()
43148 {
43149
43150   FILE *f = fopen ("conftest.val", "w");
43151   if (! f)
43152     exit (1);
43153   if (((long) (sizeof (long))) < 0)
43154     {
43155       long i = longval ();
43156       if (i != ((long) (sizeof (long))))
43157         exit (1);
43158       fprintf (f, "%ld\n", i);
43159     }
43160   else
43161     {
43162       unsigned long i = ulongval ();
43163       if (i != ((long) (sizeof (long))))
43164         exit (1);
43165       fprintf (f, "%lu\n", i);
43166     }
43167   exit (ferror (f) || fclose (f) != 0);
43168
43169   ;
43170   return 0;
43171 }
43172 _ACEOF
43173 rm -f conftest$ac_exeext
43174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43175   (eval $ac_link) 2>&5
43176   ac_status=$?
43177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43180   (eval $ac_try) 2>&5
43181   ac_status=$?
43182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183   (exit $ac_status); }; }; then
43184   ac_cv_sizeof_long=`cat conftest.val`
43185 else
43186   echo "$as_me: program exited with status $ac_status" >&5
43187 echo "$as_me: failed program was:" >&5
43188 sed 's/^/| /' conftest.$ac_ext >&5
43189
43190 ( exit $ac_status )
43191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
43192 See \`config.log' for more details." >&5
43193 echo "$as_me: error: cannot compute sizeof (long), 77
43194 See \`config.log' for more details." >&2;}
43195    { (exit 1); exit 1; }; }
43196 fi
43197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43198 fi
43199 fi
43200 rm -f conftest.val
43201 else
43202   ac_cv_sizeof_long=0
43203 fi
43204 fi
43205 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
43206 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
43207 cat >>confdefs.h <<_ACEOF
43208 #define SIZEOF_LONG $ac_cv_sizeof_long
43209 _ACEOF
43210
43211
43212
43213 echo "$as_me:$LINENO: checking for s_char" >&5
43214 echo $ECHO_N "checking for s_char... $ECHO_C" >&6
43215 if test "${ac_cv_type_s_char+set}" = set; then
43216   echo $ECHO_N "(cached) $ECHO_C" >&6
43217 else
43218   cat >conftest.$ac_ext <<_ACEOF
43219 /* confdefs.h.  */
43220 _ACEOF
43221 cat confdefs.h >>conftest.$ac_ext
43222 cat >>conftest.$ac_ext <<_ACEOF
43223 /* end confdefs.h.  */
43224 $ac_includes_default
43225 int
43226 main ()
43227 {
43228 if ((s_char *) 0)
43229   return 0;
43230 if (sizeof (s_char))
43231   return 0;
43232   ;
43233   return 0;
43234 }
43235 _ACEOF
43236 rm -f conftest.$ac_objext
43237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43238   (eval $ac_compile) 2>conftest.er1
43239   ac_status=$?
43240   grep -v '^ *+' conftest.er1 >conftest.err
43241   rm -f conftest.er1
43242   cat conftest.err >&5
43243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244   (exit $ac_status); } &&
43245          { ac_try='test -z "$ac_c_werror_flag"
43246                          || test ! -s conftest.err'
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); }; } &&
43252          { ac_try='test -s conftest.$ac_objext'
43253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43254   (eval $ac_try) 2>&5
43255   ac_status=$?
43256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257   (exit $ac_status); }; }; then
43258   ac_cv_type_s_char=yes
43259 else
43260   echo "$as_me: failed program was:" >&5
43261 sed 's/^/| /' conftest.$ac_ext >&5
43262
43263 ac_cv_type_s_char=no
43264 fi
43265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43266 fi
43267 echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5
43268 echo "${ECHO_T}$ac_cv_type_s_char" >&6
43269 if test $ac_cv_type_s_char = yes; then
43270
43271 cat >>confdefs.h <<_ACEOF
43272 #define HAVE_S_CHAR 1
43273 _ACEOF
43274
43275
43276 fi
43277
43278 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
43279  *yes)
43280     # We have a typedef for s_char.  Might as well believe it...
43281     ;;
43282  no0no)
43283     # We have signed chars, can't say 'signed char', no s_char typedef.
43284
43285 cat >>confdefs.h <<\_ACEOF
43286 #define NEED_S_CHAR_TYPEDEF 1
43287 _ACEOF
43288
43289     ;;
43290  no1no)
43291     # We have signed chars, can say 'signed char', no s_char typedef.
43292     cat >>confdefs.h <<\_ACEOF
43293 #define NEED_S_CHAR_TYPEDEF 1
43294 _ACEOF
43295
43296     ;;
43297  yes0no)
43298     # We have unsigned chars, can't say 'signed char', no s_char typedef.
43299     { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5
43300 echo "$as_me: error: No way to specify a signed character!" >&2;}
43301    { (exit 1); exit 1; }; }
43302     ;;
43303  yes1no)
43304     # We have unsigned chars, can say 'signed char', no s_char typedef.
43305     cat >>confdefs.h <<\_ACEOF
43306 #define NEED_S_CHAR_TYPEDEF 1
43307 _ACEOF
43308
43309     ;;
43310 esac
43311 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
43312 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
43313 if test "${ac_cv_type_uid_t+set}" = set; then
43314   echo $ECHO_N "(cached) $ECHO_C" >&6
43315 else
43316   cat >conftest.$ac_ext <<_ACEOF
43317 /* confdefs.h.  */
43318 _ACEOF
43319 cat confdefs.h >>conftest.$ac_ext
43320 cat >>conftest.$ac_ext <<_ACEOF
43321 /* end confdefs.h.  */
43322 #include <sys/types.h>
43323
43324 _ACEOF
43325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43326   $EGREP "uid_t" >/dev/null 2>&1; then
43327   ac_cv_type_uid_t=yes
43328 else
43329   ac_cv_type_uid_t=no
43330 fi
43331 rm -f conftest*
43332
43333 fi
43334 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
43335 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
43336 if test $ac_cv_type_uid_t = no; then
43337
43338 cat >>confdefs.h <<\_ACEOF
43339 #define uid_t int
43340 _ACEOF
43341
43342
43343 cat >>confdefs.h <<\_ACEOF
43344 #define gid_t int
43345 _ACEOF
43346
43347 fi
43348
43349
43350 case "$host" in
43351  *-*-aix[45]*)
43352         # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
43353         # (returning ENOSYS).  I didn't check 4.2.  If, in the future,
43354         # IBM pulls its thumbs out long enough to implement clock_settime,
43355         # this conditional will need to change.  Maybe use AC_TRY_RUN
43356         # instead to try to set the time to itself and check errno.
43357     ;;
43358  *)
43359
43360 for ac_func in clock_gettime clock_settime
43361 do
43362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43363 echo "$as_me:$LINENO: checking for $ac_func" >&5
43364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43365 if eval "test \"\${$as_ac_var+set}\" = set"; then
43366   echo $ECHO_N "(cached) $ECHO_C" >&6
43367 else
43368   cat >conftest.$ac_ext <<_ACEOF
43369 /* confdefs.h.  */
43370 _ACEOF
43371 cat confdefs.h >>conftest.$ac_ext
43372 cat >>conftest.$ac_ext <<_ACEOF
43373 /* end confdefs.h.  */
43374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43376 #define $ac_func innocuous_$ac_func
43377
43378 /* System header to define __stub macros and hopefully few prototypes,
43379     which can conflict with char $ac_func (); below.
43380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43381     <limits.h> exists even on freestanding compilers.  */
43382
43383 #ifdef __STDC__
43384 # include <limits.h>
43385 #else
43386 # include <assert.h>
43387 #endif
43388
43389 #undef $ac_func
43390
43391 /* Override any gcc2 internal prototype to avoid an error.  */
43392 #ifdef __cplusplus
43393 extern "C"
43394 {
43395 #endif
43396 /* We use char because int might match the return type of a gcc2
43397    builtin and then its argument prototype would still apply.  */
43398 char $ac_func ();
43399 /* The GNU C library defines this for functions which it implements
43400     to always fail with ENOSYS.  Some functions are actually named
43401     something starting with __ and the normal name is an alias.  */
43402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43403 choke me
43404 #else
43405 char (*f) () = $ac_func;
43406 #endif
43407 #ifdef __cplusplus
43408 }
43409 #endif
43410
43411 int
43412 main ()
43413 {
43414 return f != $ac_func;
43415   ;
43416   return 0;
43417 }
43418 _ACEOF
43419 rm -f conftest.$ac_objext conftest$ac_exeext
43420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43421   (eval $ac_link) 2>conftest.er1
43422   ac_status=$?
43423   grep -v '^ *+' conftest.er1 >conftest.err
43424   rm -f conftest.er1
43425   cat conftest.err >&5
43426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43427   (exit $ac_status); } &&
43428          { ac_try='test -z "$ac_c_werror_flag"
43429                          || test ! -s conftest.err'
43430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43431   (eval $ac_try) 2>&5
43432   ac_status=$?
43433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43434   (exit $ac_status); }; } &&
43435          { ac_try='test -s conftest$ac_exeext'
43436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43437   (eval $ac_try) 2>&5
43438   ac_status=$?
43439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43440   (exit $ac_status); }; }; then
43441   eval "$as_ac_var=yes"
43442 else
43443   echo "$as_me: failed program was:" >&5
43444 sed 's/^/| /' conftest.$ac_ext >&5
43445
43446 eval "$as_ac_var=no"
43447 fi
43448 rm -f conftest.err conftest.$ac_objext \
43449       conftest$ac_exeext conftest.$ac_ext
43450 fi
43451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43453 if test `eval echo '${'$as_ac_var'}'` = yes; then
43454   cat >>confdefs.h <<_ACEOF
43455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43456 _ACEOF
43457
43458 fi
43459 done
43460
43461     ;;
43462 esac
43463
43464 for ac_func in daemon
43465 do
43466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43467 echo "$as_me:$LINENO: checking for $ac_func" >&5
43468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43469 if eval "test \"\${$as_ac_var+set}\" = set"; then
43470   echo $ECHO_N "(cached) $ECHO_C" >&6
43471 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43480 #define $ac_func innocuous_$ac_func
43481
43482 /* System header to define __stub macros and hopefully few prototypes,
43483     which can conflict with char $ac_func (); below.
43484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43485     <limits.h> exists even on freestanding compilers.  */
43486
43487 #ifdef __STDC__
43488 # include <limits.h>
43489 #else
43490 # include <assert.h>
43491 #endif
43492
43493 #undef $ac_func
43494
43495 /* Override any gcc2 internal prototype to avoid an error.  */
43496 #ifdef __cplusplus
43497 extern "C"
43498 {
43499 #endif
43500 /* We use char because int might match the return type of a gcc2
43501    builtin and then its argument prototype would still apply.  */
43502 char $ac_func ();
43503 /* The GNU C library defines this for functions which it implements
43504     to always fail with ENOSYS.  Some functions are actually named
43505     something starting with __ and the normal name is an alias.  */
43506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43507 choke me
43508 #else
43509 char (*f) () = $ac_func;
43510 #endif
43511 #ifdef __cplusplus
43512 }
43513 #endif
43514
43515 int
43516 main ()
43517 {
43518 return f != $ac_func;
43519   ;
43520   return 0;
43521 }
43522 _ACEOF
43523 rm -f conftest.$ac_objext conftest$ac_exeext
43524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43525   (eval $ac_link) 2>conftest.er1
43526   ac_status=$?
43527   grep -v '^ *+' conftest.er1 >conftest.err
43528   rm -f conftest.er1
43529   cat conftest.err >&5
43530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43531   (exit $ac_status); } &&
43532          { ac_try='test -z "$ac_c_werror_flag"
43533                          || test ! -s conftest.err'
43534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43535   (eval $ac_try) 2>&5
43536   ac_status=$?
43537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43538   (exit $ac_status); }; } &&
43539          { ac_try='test -s conftest$ac_exeext'
43540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43541   (eval $ac_try) 2>&5
43542   ac_status=$?
43543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544   (exit $ac_status); }; }; then
43545   eval "$as_ac_var=yes"
43546 else
43547   echo "$as_me: failed program was:" >&5
43548 sed 's/^/| /' conftest.$ac_ext >&5
43549
43550 eval "$as_ac_var=no"
43551 fi
43552 rm -f conftest.err conftest.$ac_objext \
43553       conftest$ac_exeext conftest.$ac_ext
43554 fi
43555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43557 if test `eval echo '${'$as_ac_var'}'` = yes; then
43558   cat >>confdefs.h <<_ACEOF
43559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43560 _ACEOF
43561
43562 fi
43563 done
43564
43565
43566 for ac_func in finite
43567 do
43568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43569 echo "$as_me:$LINENO: checking for $ac_func" >&5
43570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43571 if eval "test \"\${$as_ac_var+set}\" = set"; then
43572   echo $ECHO_N "(cached) $ECHO_C" >&6
43573 else
43574   cat >conftest.$ac_ext <<_ACEOF
43575 /* confdefs.h.  */
43576 _ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h.  */
43580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43582 #define $ac_func innocuous_$ac_func
43583
43584 /* System header to define __stub macros and hopefully few prototypes,
43585     which can conflict with char $ac_func (); below.
43586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43587     <limits.h> exists even on freestanding compilers.  */
43588
43589 #ifdef __STDC__
43590 # include <limits.h>
43591 #else
43592 # include <assert.h>
43593 #endif
43594
43595 #undef $ac_func
43596
43597 /* Override any gcc2 internal prototype to avoid an error.  */
43598 #ifdef __cplusplus
43599 extern "C"
43600 {
43601 #endif
43602 /* We use char because int might match the return type of a gcc2
43603    builtin and then its argument prototype would still apply.  */
43604 char $ac_func ();
43605 /* The GNU C library defines this for functions which it implements
43606     to always fail with ENOSYS.  Some functions are actually named
43607     something starting with __ and the normal name is an alias.  */
43608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43609 choke me
43610 #else
43611 char (*f) () = $ac_func;
43612 #endif
43613 #ifdef __cplusplus
43614 }
43615 #endif
43616
43617 int
43618 main ()
43619 {
43620 return f != $ac_func;
43621   ;
43622   return 0;
43623 }
43624 _ACEOF
43625 rm -f conftest.$ac_objext conftest$ac_exeext
43626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43627   (eval $ac_link) 2>conftest.er1
43628   ac_status=$?
43629   grep -v '^ *+' conftest.er1 >conftest.err
43630   rm -f conftest.er1
43631   cat conftest.err >&5
43632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43633   (exit $ac_status); } &&
43634          { ac_try='test -z "$ac_c_werror_flag"
43635                          || test ! -s conftest.err'
43636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43637   (eval $ac_try) 2>&5
43638   ac_status=$?
43639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640   (exit $ac_status); }; } &&
43641          { ac_try='test -s conftest$ac_exeext'
43642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43643   (eval $ac_try) 2>&5
43644   ac_status=$?
43645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43646   (exit $ac_status); }; }; then
43647   eval "$as_ac_var=yes"
43648 else
43649   echo "$as_me: failed program was:" >&5
43650 sed 's/^/| /' conftest.$ac_ext >&5
43651
43652 eval "$as_ac_var=no"
43653 fi
43654 rm -f conftest.err conftest.$ac_objext \
43655       conftest$ac_exeext conftest.$ac_ext
43656 fi
43657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43659 if test `eval echo '${'$as_ac_var'}'` = yes; then
43660   cat >>confdefs.h <<_ACEOF
43661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43662 _ACEOF
43663
43664 else
43665
43666 for ac_func in isfinite
43667 do
43668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43669 echo "$as_me:$LINENO: checking for $ac_func" >&5
43670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43671 if eval "test \"\${$as_ac_var+set}\" = set"; then
43672   echo $ECHO_N "(cached) $ECHO_C" >&6
43673 else
43674   cat >conftest.$ac_ext <<_ACEOF
43675 /* confdefs.h.  */
43676 _ACEOF
43677 cat confdefs.h >>conftest.$ac_ext
43678 cat >>conftest.$ac_ext <<_ACEOF
43679 /* end confdefs.h.  */
43680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43682 #define $ac_func innocuous_$ac_func
43683
43684 /* System header to define __stub macros and hopefully few prototypes,
43685     which can conflict with char $ac_func (); below.
43686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43687     <limits.h> exists even on freestanding compilers.  */
43688
43689 #ifdef __STDC__
43690 # include <limits.h>
43691 #else
43692 # include <assert.h>
43693 #endif
43694
43695 #undef $ac_func
43696
43697 /* Override any gcc2 internal prototype to avoid an error.  */
43698 #ifdef __cplusplus
43699 extern "C"
43700 {
43701 #endif
43702 /* We use char because int might match the return type of a gcc2
43703    builtin and then its argument prototype would still apply.  */
43704 char $ac_func ();
43705 /* The GNU C library defines this for functions which it implements
43706     to always fail with ENOSYS.  Some functions are actually named
43707     something starting with __ and the normal name is an alias.  */
43708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43709 choke me
43710 #else
43711 char (*f) () = $ac_func;
43712 #endif
43713 #ifdef __cplusplus
43714 }
43715 #endif
43716
43717 int
43718 main ()
43719 {
43720 return f != $ac_func;
43721   ;
43722   return 0;
43723 }
43724 _ACEOF
43725 rm -f conftest.$ac_objext conftest$ac_exeext
43726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43727   (eval $ac_link) 2>conftest.er1
43728   ac_status=$?
43729   grep -v '^ *+' conftest.er1 >conftest.err
43730   rm -f conftest.er1
43731   cat conftest.err >&5
43732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733   (exit $ac_status); } &&
43734          { ac_try='test -z "$ac_c_werror_flag"
43735                          || test ! -s conftest.err'
43736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43737   (eval $ac_try) 2>&5
43738   ac_status=$?
43739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43740   (exit $ac_status); }; } &&
43741          { ac_try='test -s conftest$ac_exeext'
43742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43743   (eval $ac_try) 2>&5
43744   ac_status=$?
43745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43746   (exit $ac_status); }; }; then
43747   eval "$as_ac_var=yes"
43748 else
43749   echo "$as_me: failed program was:" >&5
43750 sed 's/^/| /' conftest.$ac_ext >&5
43751
43752 eval "$as_ac_var=no"
43753 fi
43754 rm -f conftest.err conftest.$ac_objext \
43755       conftest$ac_exeext conftest.$ac_ext
43756 fi
43757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43759 if test `eval echo '${'$as_ac_var'}'` = yes; then
43760   cat >>confdefs.h <<_ACEOF
43761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43762 _ACEOF
43763
43764 else
43765   echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
43766 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
43767     _libs=$LIBS
43768     LIBS="$LIBS -lm"
43769     cat >conftest.$ac_ext <<_ACEOF
43770 /* confdefs.h.  */
43771 _ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h.  */
43775 #include <math.h>
43776 int
43777 main ()
43778 {
43779 float f = 0.0; isfinite(f)
43780   ;
43781   return 0;
43782 }
43783 _ACEOF
43784 rm -f conftest.$ac_objext conftest$ac_exeext
43785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43786   (eval $ac_link) 2>conftest.er1
43787   ac_status=$?
43788   grep -v '^ *+' conftest.er1 >conftest.err
43789   rm -f conftest.er1
43790   cat conftest.err >&5
43791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43792   (exit $ac_status); } &&
43793          { ac_try='test -z "$ac_c_werror_flag"
43794                          || test ! -s conftest.err'
43795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43796   (eval $ac_try) 2>&5
43797   ac_status=$?
43798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799   (exit $ac_status); }; } &&
43800          { ac_try='test -s conftest$ac_exeext'
43801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43802   (eval $ac_try) 2>&5
43803   ac_status=$?
43804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43805   (exit $ac_status); }; }; then
43806   echo "$as_me:$LINENO: result: yes" >&5
43807 echo "${ECHO_T}yes" >&6
43808       cat >>confdefs.h <<\_ACEOF
43809 #define HAVE_ISFINITE 1
43810 _ACEOF
43811
43812 else
43813   echo "$as_me: failed program was:" >&5
43814 sed 's/^/| /' conftest.$ac_ext >&5
43815
43816 echo "$as_me:$LINENO: result: no" >&5
43817 echo "${ECHO_T}no" >&6
43818 fi
43819 rm -f conftest.err conftest.$ac_objext \
43820       conftest$ac_exeext conftest.$ac_ext
43821     LIBS=$_libs
43822 fi
43823 done
43824
43825 fi
43826 done
43827
43828
43829
43830
43831 for ac_func in getbootfile getclock getdtablesize
43832 do
43833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43834 echo "$as_me:$LINENO: checking for $ac_func" >&5
43835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43836 if eval "test \"\${$as_ac_var+set}\" = set"; then
43837   echo $ECHO_N "(cached) $ECHO_C" >&6
43838 else
43839   cat >conftest.$ac_ext <<_ACEOF
43840 /* confdefs.h.  */
43841 _ACEOF
43842 cat confdefs.h >>conftest.$ac_ext
43843 cat >>conftest.$ac_ext <<_ACEOF
43844 /* end confdefs.h.  */
43845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43847 #define $ac_func innocuous_$ac_func
43848
43849 /* System header to define __stub macros and hopefully few prototypes,
43850     which can conflict with char $ac_func (); below.
43851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43852     <limits.h> exists even on freestanding compilers.  */
43853
43854 #ifdef __STDC__
43855 # include <limits.h>
43856 #else
43857 # include <assert.h>
43858 #endif
43859
43860 #undef $ac_func
43861
43862 /* Override any gcc2 internal prototype to avoid an error.  */
43863 #ifdef __cplusplus
43864 extern "C"
43865 {
43866 #endif
43867 /* We use char because int might match the return type of a gcc2
43868    builtin and then its argument prototype would still apply.  */
43869 char $ac_func ();
43870 /* The GNU C library defines this for functions which it implements
43871     to always fail with ENOSYS.  Some functions are actually named
43872     something starting with __ and the normal name is an alias.  */
43873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43874 choke me
43875 #else
43876 char (*f) () = $ac_func;
43877 #endif
43878 #ifdef __cplusplus
43879 }
43880 #endif
43881
43882 int
43883 main ()
43884 {
43885 return f != $ac_func;
43886   ;
43887   return 0;
43888 }
43889 _ACEOF
43890 rm -f conftest.$ac_objext conftest$ac_exeext
43891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43892   (eval $ac_link) 2>conftest.er1
43893   ac_status=$?
43894   grep -v '^ *+' conftest.er1 >conftest.err
43895   rm -f conftest.er1
43896   cat conftest.err >&5
43897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43898   (exit $ac_status); } &&
43899          { ac_try='test -z "$ac_c_werror_flag"
43900                          || test ! -s conftest.err'
43901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43902   (eval $ac_try) 2>&5
43903   ac_status=$?
43904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43905   (exit $ac_status); }; } &&
43906          { ac_try='test -s conftest$ac_exeext'
43907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43908   (eval $ac_try) 2>&5
43909   ac_status=$?
43910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43911   (exit $ac_status); }; }; then
43912   eval "$as_ac_var=yes"
43913 else
43914   echo "$as_me: failed program was:" >&5
43915 sed 's/^/| /' conftest.$ac_ext >&5
43916
43917 eval "$as_ac_var=no"
43918 fi
43919 rm -f conftest.err conftest.$ac_objext \
43920       conftest$ac_exeext conftest.$ac_ext
43921 fi
43922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43924 if test `eval echo '${'$as_ac_var'}'` = yes; then
43925   cat >>confdefs.h <<_ACEOF
43926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43927 _ACEOF
43928
43929 fi
43930 done
43931
43932
43933 # Check whether --enable-getifaddrs or --disable-getifaddrs was given.
43934 if test "${enable_getifaddrs+set}" = set; then
43935   enableval="$enable_getifaddrs"
43936   want_getifaddrs="$enableval"
43937 else
43938   want_getifaddrs="yes"
43939 fi;
43940
43941 case $want_getifaddrs in
43942 yes|glibc)
43943 #
43944 # Do we have getifaddrs() ?
43945 #
43946 case $host in
43947 *-linux*)
43948         # Some recent versions of glibc support getifaddrs() which does not
43949         # provide AF_INET6 addresses while the function provided by the USAGI
43950         # project handles the AF_INET6 case correctly.  We need to avoid
43951         # using the former but prefer the latter unless overridden by
43952         # --enable-getifaddrs=glibc.
43953         if test $want_getifaddrs = glibc
43954         then
43955
43956 for ac_func in getifaddrs
43957 do
43958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43959 echo "$as_me:$LINENO: checking for $ac_func" >&5
43960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43961 if eval "test \"\${$as_ac_var+set}\" = set"; then
43962   echo $ECHO_N "(cached) $ECHO_C" >&6
43963 else
43964   cat >conftest.$ac_ext <<_ACEOF
43965 /* confdefs.h.  */
43966 _ACEOF
43967 cat confdefs.h >>conftest.$ac_ext
43968 cat >>conftest.$ac_ext <<_ACEOF
43969 /* end confdefs.h.  */
43970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43972 #define $ac_func innocuous_$ac_func
43973
43974 /* System header to define __stub macros and hopefully few prototypes,
43975     which can conflict with char $ac_func (); below.
43976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43977     <limits.h> exists even on freestanding compilers.  */
43978
43979 #ifdef __STDC__
43980 # include <limits.h>
43981 #else
43982 # include <assert.h>
43983 #endif
43984
43985 #undef $ac_func
43986
43987 /* Override any gcc2 internal prototype to avoid an error.  */
43988 #ifdef __cplusplus
43989 extern "C"
43990 {
43991 #endif
43992 /* We use char because int might match the return type of a gcc2
43993    builtin and then its argument prototype would still apply.  */
43994 char $ac_func ();
43995 /* The GNU C library defines this for functions which it implements
43996     to always fail with ENOSYS.  Some functions are actually named
43997     something starting with __ and the normal name is an alias.  */
43998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43999 choke me
44000 #else
44001 char (*f) () = $ac_func;
44002 #endif
44003 #ifdef __cplusplus
44004 }
44005 #endif
44006
44007 int
44008 main ()
44009 {
44010 return f != $ac_func;
44011   ;
44012   return 0;
44013 }
44014 _ACEOF
44015 rm -f conftest.$ac_objext conftest$ac_exeext
44016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44017   (eval $ac_link) 2>conftest.er1
44018   ac_status=$?
44019   grep -v '^ *+' conftest.er1 >conftest.err
44020   rm -f conftest.er1
44021   cat conftest.err >&5
44022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44023   (exit $ac_status); } &&
44024          { ac_try='test -z "$ac_c_werror_flag"
44025                          || test ! -s conftest.err'
44026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44027   (eval $ac_try) 2>&5
44028   ac_status=$?
44029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030   (exit $ac_status); }; } &&
44031          { ac_try='test -s conftest$ac_exeext'
44032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44033   (eval $ac_try) 2>&5
44034   ac_status=$?
44035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036   (exit $ac_status); }; }; then
44037   eval "$as_ac_var=yes"
44038 else
44039   echo "$as_me: failed program was:" >&5
44040 sed 's/^/| /' conftest.$ac_ext >&5
44041
44042 eval "$as_ac_var=no"
44043 fi
44044 rm -f conftest.err conftest.$ac_objext \
44045       conftest$ac_exeext conftest.$ac_ext
44046 fi
44047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44049 if test `eval echo '${'$as_ac_var'}'` = yes; then
44050   cat >>confdefs.h <<_ACEOF
44051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44052 _ACEOF
44053
44054 fi
44055 done
44056
44057         else
44058                 save_LIBS="$LIBS"
44059                 LIBS="-L/usr/local/v6/lib $LIBS"
44060                 echo "$as_me:$LINENO: checking for getifaddrs in -linet6" >&5
44061 echo $ECHO_N "checking for getifaddrs in -linet6... $ECHO_C" >&6
44062 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then
44063   echo $ECHO_N "(cached) $ECHO_C" >&6
44064 else
44065   ac_check_lib_save_LIBS=$LIBS
44066 LIBS="-linet6  $LIBS"
44067 cat >conftest.$ac_ext <<_ACEOF
44068 /* confdefs.h.  */
44069 _ACEOF
44070 cat confdefs.h >>conftest.$ac_ext
44071 cat >>conftest.$ac_ext <<_ACEOF
44072 /* end confdefs.h.  */
44073
44074 /* Override any gcc2 internal prototype to avoid an error.  */
44075 #ifdef __cplusplus
44076 extern "C"
44077 #endif
44078 /* We use char because int might match the return type of a gcc2
44079    builtin and then its argument prototype would still apply.  */
44080 char getifaddrs ();
44081 int
44082 main ()
44083 {
44084 getifaddrs ();
44085   ;
44086   return 0;
44087 }
44088 _ACEOF
44089 rm -f conftest.$ac_objext conftest$ac_exeext
44090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44091   (eval $ac_link) 2>conftest.er1
44092   ac_status=$?
44093   grep -v '^ *+' conftest.er1 >conftest.err
44094   rm -f conftest.er1
44095   cat conftest.err >&5
44096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44097   (exit $ac_status); } &&
44098          { ac_try='test -z "$ac_c_werror_flag"
44099                          || test ! -s conftest.err'
44100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44101   (eval $ac_try) 2>&5
44102   ac_status=$?
44103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104   (exit $ac_status); }; } &&
44105          { ac_try='test -s conftest$ac_exeext'
44106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44107   (eval $ac_try) 2>&5
44108   ac_status=$?
44109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44110   (exit $ac_status); }; }; then
44111   ac_cv_lib_inet6_getifaddrs=yes
44112 else
44113   echo "$as_me: failed program was:" >&5
44114 sed 's/^/| /' conftest.$ac_ext >&5
44115
44116 ac_cv_lib_inet6_getifaddrs=no
44117 fi
44118 rm -f conftest.err conftest.$ac_objext \
44119       conftest$ac_exeext conftest.$ac_ext
44120 LIBS=$ac_check_lib_save_LIBS
44121 fi
44122 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getifaddrs" >&5
44123 echo "${ECHO_T}$ac_cv_lib_inet6_getifaddrs" >&6
44124 if test $ac_cv_lib_inet6_getifaddrs = yes; then
44125   LIBS="$LIBS -linet6"
44126                         cat >>confdefs.h <<\_ACEOF
44127 #define HAVE_GETIFADDRS 1
44128 _ACEOF
44129
44130 else
44131   LIBS=${save_LIBS}
44132 fi
44133
44134         fi
44135         ;;
44136 *)
44137
44138 for ac_func in getifaddrs
44139 do
44140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44141 echo "$as_me:$LINENO: checking for $ac_func" >&5
44142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44143 if eval "test \"\${$as_ac_var+set}\" = set"; then
44144   echo $ECHO_N "(cached) $ECHO_C" >&6
44145 else
44146   cat >conftest.$ac_ext <<_ACEOF
44147 /* confdefs.h.  */
44148 _ACEOF
44149 cat confdefs.h >>conftest.$ac_ext
44150 cat >>conftest.$ac_ext <<_ACEOF
44151 /* end confdefs.h.  */
44152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44154 #define $ac_func innocuous_$ac_func
44155
44156 /* System header to define __stub macros and hopefully few prototypes,
44157     which can conflict with char $ac_func (); below.
44158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44159     <limits.h> exists even on freestanding compilers.  */
44160
44161 #ifdef __STDC__
44162 # include <limits.h>
44163 #else
44164 # include <assert.h>
44165 #endif
44166
44167 #undef $ac_func
44168
44169 /* Override any gcc2 internal prototype to avoid an error.  */
44170 #ifdef __cplusplus
44171 extern "C"
44172 {
44173 #endif
44174 /* We use char because int might match the return type of a gcc2
44175    builtin and then its argument prototype would still apply.  */
44176 char $ac_func ();
44177 /* The GNU C library defines this for functions which it implements
44178     to always fail with ENOSYS.  Some functions are actually named
44179     something starting with __ and the normal name is an alias.  */
44180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44181 choke me
44182 #else
44183 char (*f) () = $ac_func;
44184 #endif
44185 #ifdef __cplusplus
44186 }
44187 #endif
44188
44189 int
44190 main ()
44191 {
44192 return f != $ac_func;
44193   ;
44194   return 0;
44195 }
44196 _ACEOF
44197 rm -f conftest.$ac_objext conftest$ac_exeext
44198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44199   (eval $ac_link) 2>conftest.er1
44200   ac_status=$?
44201   grep -v '^ *+' conftest.er1 >conftest.err
44202   rm -f conftest.er1
44203   cat conftest.err >&5
44204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205   (exit $ac_status); } &&
44206          { ac_try='test -z "$ac_c_werror_flag"
44207                          || test ! -s conftest.err'
44208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44209   (eval $ac_try) 2>&5
44210   ac_status=$?
44211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44212   (exit $ac_status); }; } &&
44213          { ac_try='test -s conftest$ac_exeext'
44214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44215   (eval $ac_try) 2>&5
44216   ac_status=$?
44217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44218   (exit $ac_status); }; }; then
44219   eval "$as_ac_var=yes"
44220 else
44221   echo "$as_me: failed program was:" >&5
44222 sed 's/^/| /' conftest.$ac_ext >&5
44223
44224 eval "$as_ac_var=no"
44225 fi
44226 rm -f conftest.err conftest.$ac_objext \
44227       conftest$ac_exeext conftest.$ac_ext
44228 fi
44229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44231 if test `eval echo '${'$as_ac_var'}'` = yes; then
44232   cat >>confdefs.h <<_ACEOF
44233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44234 _ACEOF
44235
44236 fi
44237 done
44238
44239         ;;
44240 esac
44241 ;;
44242 no)
44243 ;;
44244 esac
44245
44246 echo "$as_me:$LINENO: checking type of socklen arg for getsockname()" >&5
44247 echo $ECHO_N "checking type of socklen arg for getsockname()... $ECHO_C" >&6
44248 if test "${ac_cv_func_getsockname_arg2+set}" = set; then
44249   echo $ECHO_N "(cached) $ECHO_C" >&6
44250 else
44251   if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then
44252   echo $ECHO_N "(cached) $ECHO_C" >&6
44253 else
44254    for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
44255   for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
44256    cat >conftest.$ac_ext <<_ACEOF
44257 /* confdefs.h.  */
44258 _ACEOF
44259 cat confdefs.h >>conftest.$ac_ext
44260 cat >>conftest.$ac_ext <<_ACEOF
44261 /* end confdefs.h.  */
44262 #ifdef HAVE_SYS_TYPES_H
44263 #include <sys/types.h>
44264 #endif
44265 #ifdef HAVE_SYS_SOCKET_H
44266 #include <sys/socket.h>
44267 #endif
44268 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
44269 int
44270 main ()
44271 {
44272
44273   ;
44274   return 0;
44275 }
44276 _ACEOF
44277 rm -f conftest.$ac_objext
44278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44279   (eval $ac_compile) 2>conftest.er1
44280   ac_status=$?
44281   grep -v '^ *+' conftest.er1 >conftest.err
44282   rm -f conftest.er1
44283   cat conftest.err >&5
44284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285   (exit $ac_status); } &&
44286          { ac_try='test -z "$ac_c_werror_flag"
44287                          || test ! -s conftest.err'
44288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44289   (eval $ac_try) 2>&5
44290   ac_status=$?
44291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44292   (exit $ac_status); }; } &&
44293          { ac_try='test -s conftest.$ac_objext'
44294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44295   (eval $ac_try) 2>&5
44296   ac_status=$?
44297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44298   (exit $ac_status); }; }; then
44299       ac_not_found=no ; break 2
44300 else
44301   echo "$as_me: failed program was:" >&5
44302 sed 's/^/| /' conftest.$ac_ext >&5
44303
44304 ac_not_found=yes
44305 fi
44306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44307    done
44308   done
44309
44310 fi
44311
44312 fi
44313 if test "$ac_not_found" = yes; then
44314  ac_cv_func_getsockname_socklen_type='socklen_t'
44315 fi
44316 echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_socklen_type" >&5
44317 echo "${ECHO_T}$ac_cv_func_getsockname_socklen_type" >&6
44318
44319 cat >>confdefs.h <<_ACEOF
44320 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
44321 _ACEOF
44322
44323
44324
44325 for ac_func in getrusage
44326 do
44327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44328 echo "$as_me:$LINENO: checking for $ac_func" >&5
44329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44330 if eval "test \"\${$as_ac_var+set}\" = set"; then
44331   echo $ECHO_N "(cached) $ECHO_C" >&6
44332 else
44333   cat >conftest.$ac_ext <<_ACEOF
44334 /* confdefs.h.  */
44335 _ACEOF
44336 cat confdefs.h >>conftest.$ac_ext
44337 cat >>conftest.$ac_ext <<_ACEOF
44338 /* end confdefs.h.  */
44339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44341 #define $ac_func innocuous_$ac_func
44342
44343 /* System header to define __stub macros and hopefully few prototypes,
44344     which can conflict with char $ac_func (); below.
44345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44346     <limits.h> exists even on freestanding compilers.  */
44347
44348 #ifdef __STDC__
44349 # include <limits.h>
44350 #else
44351 # include <assert.h>
44352 #endif
44353
44354 #undef $ac_func
44355
44356 /* Override any gcc2 internal prototype to avoid an error.  */
44357 #ifdef __cplusplus
44358 extern "C"
44359 {
44360 #endif
44361 /* We use char because int might match the return type of a gcc2
44362    builtin and then its argument prototype would still apply.  */
44363 char $ac_func ();
44364 /* The GNU C library defines this for functions which it implements
44365     to always fail with ENOSYS.  Some functions are actually named
44366     something starting with __ and the normal name is an alias.  */
44367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44368 choke me
44369 #else
44370 char (*f) () = $ac_func;
44371 #endif
44372 #ifdef __cplusplus
44373 }
44374 #endif
44375
44376 int
44377 main ()
44378 {
44379 return f != $ac_func;
44380   ;
44381   return 0;
44382 }
44383 _ACEOF
44384 rm -f conftest.$ac_objext conftest$ac_exeext
44385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44386   (eval $ac_link) 2>conftest.er1
44387   ac_status=$?
44388   grep -v '^ *+' conftest.er1 >conftest.err
44389   rm -f conftest.er1
44390   cat conftest.err >&5
44391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44392   (exit $ac_status); } &&
44393          { ac_try='test -z "$ac_c_werror_flag"
44394                          || test ! -s conftest.err'
44395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44396   (eval $ac_try) 2>&5
44397   ac_status=$?
44398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44399   (exit $ac_status); }; } &&
44400          { ac_try='test -s conftest$ac_exeext'
44401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44402   (eval $ac_try) 2>&5
44403   ac_status=$?
44404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44405   (exit $ac_status); }; }; then
44406   eval "$as_ac_var=yes"
44407 else
44408   echo "$as_me: failed program was:" >&5
44409 sed 's/^/| /' conftest.$ac_ext >&5
44410
44411 eval "$as_ac_var=no"
44412 fi
44413 rm -f conftest.err conftest.$ac_objext \
44414       conftest$ac_exeext conftest.$ac_ext
44415 fi
44416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44418 if test `eval echo '${'$as_ac_var'}'` = yes; then
44419   cat >>confdefs.h <<_ACEOF
44420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44421 _ACEOF
44422
44423 fi
44424 done
44425
44426 echo "$as_me:$LINENO: checking for gettimeofday" >&5
44427 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
44428 if test "${ac_cv_func_gettimeofday+set}" = set; then
44429   echo $ECHO_N "(cached) $ECHO_C" >&6
44430 else
44431   cat >conftest.$ac_ext <<_ACEOF
44432 /* confdefs.h.  */
44433 _ACEOF
44434 cat confdefs.h >>conftest.$ac_ext
44435 cat >>conftest.$ac_ext <<_ACEOF
44436 /* end confdefs.h.  */
44437 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
44438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44439 #define gettimeofday innocuous_gettimeofday
44440
44441 /* System header to define __stub macros and hopefully few prototypes,
44442     which can conflict with char gettimeofday (); below.
44443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44444     <limits.h> exists even on freestanding compilers.  */
44445
44446 #ifdef __STDC__
44447 # include <limits.h>
44448 #else
44449 # include <assert.h>
44450 #endif
44451
44452 #undef gettimeofday
44453
44454 /* Override any gcc2 internal prototype to avoid an error.  */
44455 #ifdef __cplusplus
44456 extern "C"
44457 {
44458 #endif
44459 /* We use char because int might match the return type of a gcc2
44460    builtin and then its argument prototype would still apply.  */
44461 char gettimeofday ();
44462 /* The GNU C library defines this for functions which it implements
44463     to always fail with ENOSYS.  Some functions are actually named
44464     something starting with __ and the normal name is an alias.  */
44465 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
44466 choke me
44467 #else
44468 char (*f) () = gettimeofday;
44469 #endif
44470 #ifdef __cplusplus
44471 }
44472 #endif
44473
44474 int
44475 main ()
44476 {
44477 return f != gettimeofday;
44478   ;
44479   return 0;
44480 }
44481 _ACEOF
44482 rm -f conftest.$ac_objext conftest$ac_exeext
44483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44484   (eval $ac_link) 2>conftest.er1
44485   ac_status=$?
44486   grep -v '^ *+' conftest.er1 >conftest.err
44487   rm -f conftest.er1
44488   cat conftest.err >&5
44489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44490   (exit $ac_status); } &&
44491          { ac_try='test -z "$ac_c_werror_flag"
44492                          || test ! -s conftest.err'
44493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44494   (eval $ac_try) 2>&5
44495   ac_status=$?
44496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44497   (exit $ac_status); }; } &&
44498          { ac_try='test -s conftest$ac_exeext'
44499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44500   (eval $ac_try) 2>&5
44501   ac_status=$?
44502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503   (exit $ac_status); }; }; then
44504   ac_cv_func_gettimeofday=yes
44505 else
44506   echo "$as_me: failed program was:" >&5
44507 sed 's/^/| /' conftest.$ac_ext >&5
44508
44509 ac_cv_func_gettimeofday=no
44510 fi
44511 rm -f conftest.err conftest.$ac_objext \
44512       conftest$ac_exeext conftest.$ac_ext
44513 fi
44514 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
44515 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
44516 if test $ac_cv_func_gettimeofday = yes; then
44517   :
44518 else
44519
44520 case "$host" in
44521   *-*-mpeix*) ac_cv_func_gettimeofday=yes
44522     ;;
44523 esac
44524 fi
44525
44526 case "$host" in
44527  *-pc-cygwin*)
44528     ;;
44529  *)
44530 for ac_func in getuid
44531 do
44532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44533 echo "$as_me:$LINENO: checking for $ac_func" >&5
44534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44535 if eval "test \"\${$as_ac_var+set}\" = set"; then
44536   echo $ECHO_N "(cached) $ECHO_C" >&6
44537 else
44538   cat >conftest.$ac_ext <<_ACEOF
44539 /* confdefs.h.  */
44540 _ACEOF
44541 cat confdefs.h >>conftest.$ac_ext
44542 cat >>conftest.$ac_ext <<_ACEOF
44543 /* end confdefs.h.  */
44544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44546 #define $ac_func innocuous_$ac_func
44547
44548 /* System header to define __stub macros and hopefully few prototypes,
44549     which can conflict with char $ac_func (); below.
44550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44551     <limits.h> exists even on freestanding compilers.  */
44552
44553 #ifdef __STDC__
44554 # include <limits.h>
44555 #else
44556 # include <assert.h>
44557 #endif
44558
44559 #undef $ac_func
44560
44561 /* Override any gcc2 internal prototype to avoid an error.  */
44562 #ifdef __cplusplus
44563 extern "C"
44564 {
44565 #endif
44566 /* We use char because int might match the return type of a gcc2
44567    builtin and then its argument prototype would still apply.  */
44568 char $ac_func ();
44569 /* The GNU C library defines this for functions which it implements
44570     to always fail with ENOSYS.  Some functions are actually named
44571     something starting with __ and the normal name is an alias.  */
44572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44573 choke me
44574 #else
44575 char (*f) () = $ac_func;
44576 #endif
44577 #ifdef __cplusplus
44578 }
44579 #endif
44580
44581 int
44582 main ()
44583 {
44584 return f != $ac_func;
44585   ;
44586   return 0;
44587 }
44588 _ACEOF
44589 rm -f conftest.$ac_objext conftest$ac_exeext
44590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44591   (eval $ac_link) 2>conftest.er1
44592   ac_status=$?
44593   grep -v '^ *+' conftest.er1 >conftest.err
44594   rm -f conftest.er1
44595   cat conftest.err >&5
44596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597   (exit $ac_status); } &&
44598          { ac_try='test -z "$ac_c_werror_flag"
44599                          || test ! -s conftest.err'
44600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44601   (eval $ac_try) 2>&5
44602   ac_status=$?
44603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44604   (exit $ac_status); }; } &&
44605          { ac_try='test -s conftest$ac_exeext'
44606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44607   (eval $ac_try) 2>&5
44608   ac_status=$?
44609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44610   (exit $ac_status); }; }; then
44611   eval "$as_ac_var=yes"
44612 else
44613   echo "$as_me: failed program was:" >&5
44614 sed 's/^/| /' conftest.$ac_ext >&5
44615
44616 eval "$as_ac_var=no"
44617 fi
44618 rm -f conftest.err conftest.$ac_objext \
44619       conftest$ac_exeext conftest.$ac_ext
44620 fi
44621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44623 if test `eval echo '${'$as_ac_var'}'` = yes; then
44624   cat >>confdefs.h <<_ACEOF
44625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44626 _ACEOF
44627
44628 fi
44629 done
44630
44631     ;;
44632 esac
44633
44634 for ac_func in hstrerror
44635 do
44636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44637 echo "$as_me:$LINENO: checking for $ac_func" >&5
44638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44639 if eval "test \"\${$as_ac_var+set}\" = set"; then
44640   echo $ECHO_N "(cached) $ECHO_C" >&6
44641 else
44642   cat >conftest.$ac_ext <<_ACEOF
44643 /* confdefs.h.  */
44644 _ACEOF
44645 cat confdefs.h >>conftest.$ac_ext
44646 cat >>conftest.$ac_ext <<_ACEOF
44647 /* end confdefs.h.  */
44648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44650 #define $ac_func innocuous_$ac_func
44651
44652 /* System header to define __stub macros and hopefully few prototypes,
44653     which can conflict with char $ac_func (); below.
44654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44655     <limits.h> exists even on freestanding compilers.  */
44656
44657 #ifdef __STDC__
44658 # include <limits.h>
44659 #else
44660 # include <assert.h>
44661 #endif
44662
44663 #undef $ac_func
44664
44665 /* Override any gcc2 internal prototype to avoid an error.  */
44666 #ifdef __cplusplus
44667 extern "C"
44668 {
44669 #endif
44670 /* We use char because int might match the return type of a gcc2
44671    builtin and then its argument prototype would still apply.  */
44672 char $ac_func ();
44673 /* The GNU C library defines this for functions which it implements
44674     to always fail with ENOSYS.  Some functions are actually named
44675     something starting with __ and the normal name is an alias.  */
44676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44677 choke me
44678 #else
44679 char (*f) () = $ac_func;
44680 #endif
44681 #ifdef __cplusplus
44682 }
44683 #endif
44684
44685 int
44686 main ()
44687 {
44688 return f != $ac_func;
44689   ;
44690   return 0;
44691 }
44692 _ACEOF
44693 rm -f conftest.$ac_objext conftest$ac_exeext
44694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44695   (eval $ac_link) 2>conftest.er1
44696   ac_status=$?
44697   grep -v '^ *+' conftest.er1 >conftest.err
44698   rm -f conftest.er1
44699   cat conftest.err >&5
44700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701   (exit $ac_status); } &&
44702          { ac_try='test -z "$ac_c_werror_flag"
44703                          || test ! -s conftest.err'
44704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44705   (eval $ac_try) 2>&5
44706   ac_status=$?
44707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44708   (exit $ac_status); }; } &&
44709          { ac_try='test -s conftest$ac_exeext'
44710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44711   (eval $ac_try) 2>&5
44712   ac_status=$?
44713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714   (exit $ac_status); }; }; then
44715   eval "$as_ac_var=yes"
44716 else
44717   echo "$as_me: failed program was:" >&5
44718 sed 's/^/| /' conftest.$ac_ext >&5
44719
44720 eval "$as_ac_var=no"
44721 fi
44722 rm -f conftest.err conftest.$ac_objext \
44723       conftest$ac_exeext conftest.$ac_ext
44724 fi
44725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44727 if test `eval echo '${'$as_ac_var'}'` = yes; then
44728   cat >>confdefs.h <<_ACEOF
44729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44730 _ACEOF
44731
44732 fi
44733 done
44734
44735
44736 #
44737 # Check for if_nametoindex() for IPv6 scoped addresses support
44738 #
44739 echo "$as_me:$LINENO: checking for if_nametoindex" >&5
44740 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6
44741 if test "${ac_cv_func_if_nametoindex+set}" = set; then
44742   echo $ECHO_N "(cached) $ECHO_C" >&6
44743 else
44744   cat >conftest.$ac_ext <<_ACEOF
44745 /* confdefs.h.  */
44746 _ACEOF
44747 cat confdefs.h >>conftest.$ac_ext
44748 cat >>conftest.$ac_ext <<_ACEOF
44749 /* end confdefs.h.  */
44750 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
44751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44752 #define if_nametoindex innocuous_if_nametoindex
44753
44754 /* System header to define __stub macros and hopefully few prototypes,
44755     which can conflict with char if_nametoindex (); below.
44756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44757     <limits.h> exists even on freestanding compilers.  */
44758
44759 #ifdef __STDC__
44760 # include <limits.h>
44761 #else
44762 # include <assert.h>
44763 #endif
44764
44765 #undef if_nametoindex
44766
44767 /* Override any gcc2 internal prototype to avoid an error.  */
44768 #ifdef __cplusplus
44769 extern "C"
44770 {
44771 #endif
44772 /* We use char because int might match the return type of a gcc2
44773    builtin and then its argument prototype would still apply.  */
44774 char if_nametoindex ();
44775 /* The GNU C library defines this for functions which it implements
44776     to always fail with ENOSYS.  Some functions are actually named
44777     something starting with __ and the normal name is an alias.  */
44778 #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex)
44779 choke me
44780 #else
44781 char (*f) () = if_nametoindex;
44782 #endif
44783 #ifdef __cplusplus
44784 }
44785 #endif
44786
44787 int
44788 main ()
44789 {
44790 return f != if_nametoindex;
44791   ;
44792   return 0;
44793 }
44794 _ACEOF
44795 rm -f conftest.$ac_objext conftest$ac_exeext
44796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44797   (eval $ac_link) 2>conftest.er1
44798   ac_status=$?
44799   grep -v '^ *+' conftest.er1 >conftest.err
44800   rm -f conftest.er1
44801   cat conftest.err >&5
44802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44803   (exit $ac_status); } &&
44804          { ac_try='test -z "$ac_c_werror_flag"
44805                          || test ! -s conftest.err'
44806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44807   (eval $ac_try) 2>&5
44808   ac_status=$?
44809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44810   (exit $ac_status); }; } &&
44811          { ac_try='test -s conftest$ac_exeext'
44812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44813   (eval $ac_try) 2>&5
44814   ac_status=$?
44815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44816   (exit $ac_status); }; }; then
44817   ac_cv_func_if_nametoindex=yes
44818 else
44819   echo "$as_me: failed program was:" >&5
44820 sed 's/^/| /' conftest.$ac_ext >&5
44821
44822 ac_cv_func_if_nametoindex=no
44823 fi
44824 rm -f conftest.err conftest.$ac_objext \
44825       conftest$ac_exeext conftest.$ac_ext
44826 fi
44827 echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
44828 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6
44829 if test $ac_cv_func_if_nametoindex = yes; then
44830   ac_cv_have_if_nametoindex=yes
44831 else
44832   ac_cv_have_if_nametoindex=no
44833 fi
44834
44835 case $ac_cv_have_if_nametoindex in
44836  no)
44837         case "$host" in
44838         *-hp-hpux*)
44839                 echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
44840 echo $ECHO_N "checking for if_nametoindex in -lipv6... $ECHO_C" >&6
44841 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
44842   echo $ECHO_N "(cached) $ECHO_C" >&6
44843 else
44844   ac_check_lib_save_LIBS=$LIBS
44845 LIBS="-lipv6  $LIBS"
44846 cat >conftest.$ac_ext <<_ACEOF
44847 /* confdefs.h.  */
44848 _ACEOF
44849 cat confdefs.h >>conftest.$ac_ext
44850 cat >>conftest.$ac_ext <<_ACEOF
44851 /* end confdefs.h.  */
44852
44853 /* Override any gcc2 internal prototype to avoid an error.  */
44854 #ifdef __cplusplus
44855 extern "C"
44856 #endif
44857 /* We use char because int might match the return type of a gcc2
44858    builtin and then its argument prototype would still apply.  */
44859 char if_nametoindex ();
44860 int
44861 main ()
44862 {
44863 if_nametoindex ();
44864   ;
44865   return 0;
44866 }
44867 _ACEOF
44868 rm -f conftest.$ac_objext conftest$ac_exeext
44869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44870   (eval $ac_link) 2>conftest.er1
44871   ac_status=$?
44872   grep -v '^ *+' conftest.er1 >conftest.err
44873   rm -f conftest.er1
44874   cat conftest.err >&5
44875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44876   (exit $ac_status); } &&
44877          { ac_try='test -z "$ac_c_werror_flag"
44878                          || test ! -s conftest.err'
44879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44880   (eval $ac_try) 2>&5
44881   ac_status=$?
44882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883   (exit $ac_status); }; } &&
44884          { ac_try='test -s conftest$ac_exeext'
44885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44886   (eval $ac_try) 2>&5
44887   ac_status=$?
44888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44889   (exit $ac_status); }; }; then
44890   ac_cv_lib_ipv6_if_nametoindex=yes
44891 else
44892   echo "$as_me: failed program was:" >&5
44893 sed 's/^/| /' conftest.$ac_ext >&5
44894
44895 ac_cv_lib_ipv6_if_nametoindex=no
44896 fi
44897 rm -f conftest.err conftest.$ac_objext \
44898       conftest$ac_exeext conftest.$ac_ext
44899 LIBS=$ac_check_lib_save_LIBS
44900 fi
44901 echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
44902 echo "${ECHO_T}$ac_cv_lib_ipv6_if_nametoindex" >&6
44903 if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
44904   ac_cv_have_if_nametoindex=yes
44905                                 LIBS="-lipv6 $LIBS"
44906 fi
44907
44908         ;;
44909         esac
44910 esac
44911 case $ac_cv_have_if_nametoindex in
44912  yes)
44913
44914 cat >>confdefs.h <<\_ACEOF
44915 #define ISC_PLATFORM_HAVEIFNAMETOINDEX 1
44916 _ACEOF
44917
44918         ;;
44919 esac
44920
44921 echo "$as_me:$LINENO: checking for inet_ntop" >&5
44922 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
44923 if test "${ac_cv_func_inet_ntop+set}" = set; then
44924   echo $ECHO_N "(cached) $ECHO_C" >&6
44925 else
44926   cat >conftest.$ac_ext <<_ACEOF
44927 /* confdefs.h.  */
44928 _ACEOF
44929 cat confdefs.h >>conftest.$ac_ext
44930 cat >>conftest.$ac_ext <<_ACEOF
44931 /* end confdefs.h.  */
44932 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
44933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44934 #define inet_ntop innocuous_inet_ntop
44935
44936 /* System header to define __stub macros and hopefully few prototypes,
44937     which can conflict with char inet_ntop (); below.
44938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44939     <limits.h> exists even on freestanding compilers.  */
44940
44941 #ifdef __STDC__
44942 # include <limits.h>
44943 #else
44944 # include <assert.h>
44945 #endif
44946
44947 #undef inet_ntop
44948
44949 /* Override any gcc2 internal prototype to avoid an error.  */
44950 #ifdef __cplusplus
44951 extern "C"
44952 {
44953 #endif
44954 /* We use char because int might match the return type of a gcc2
44955    builtin and then its argument prototype would still apply.  */
44956 char inet_ntop ();
44957 /* The GNU C library defines this for functions which it implements
44958     to always fail with ENOSYS.  Some functions are actually named
44959     something starting with __ and the normal name is an alias.  */
44960 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
44961 choke me
44962 #else
44963 char (*f) () = inet_ntop;
44964 #endif
44965 #ifdef __cplusplus
44966 }
44967 #endif
44968
44969 int
44970 main ()
44971 {
44972 return f != inet_ntop;
44973   ;
44974   return 0;
44975 }
44976 _ACEOF
44977 rm -f conftest.$ac_objext conftest$ac_exeext
44978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44979   (eval $ac_link) 2>conftest.er1
44980   ac_status=$?
44981   grep -v '^ *+' conftest.er1 >conftest.err
44982   rm -f conftest.er1
44983   cat conftest.err >&5
44984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44985   (exit $ac_status); } &&
44986          { ac_try='test -z "$ac_c_werror_flag"
44987                          || test ! -s conftest.err'
44988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44989   (eval $ac_try) 2>&5
44990   ac_status=$?
44991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44992   (exit $ac_status); }; } &&
44993          { ac_try='test -s conftest$ac_exeext'
44994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44995   (eval $ac_try) 2>&5
44996   ac_status=$?
44997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44998   (exit $ac_status); }; }; then
44999   ac_cv_func_inet_ntop=yes
45000 else
45001   echo "$as_me: failed program was:" >&5
45002 sed 's/^/| /' conftest.$ac_ext >&5
45003
45004 ac_cv_func_inet_ntop=no
45005 fi
45006 rm -f conftest.err conftest.$ac_objext \
45007       conftest$ac_exeext conftest.$ac_ext
45008 fi
45009 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
45010 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
45011 if test $ac_cv_func_inet_ntop = yes; then
45012   :
45013 else
45014
45015 cat >>confdefs.h <<\_ACEOF
45016 #define ISC_PLATFORM_NEEDNTOP 1
45017 _ACEOF
45018
45019 fi
45020
45021 echo "$as_me:$LINENO: checking for inet_pton" >&5
45022 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
45023 if test "${ac_cv_func_inet_pton+set}" = set; then
45024   echo $ECHO_N "(cached) $ECHO_C" >&6
45025 else
45026   cat >conftest.$ac_ext <<_ACEOF
45027 /* confdefs.h.  */
45028 _ACEOF
45029 cat confdefs.h >>conftest.$ac_ext
45030 cat >>conftest.$ac_ext <<_ACEOF
45031 /* end confdefs.h.  */
45032 /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
45033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45034 #define inet_pton innocuous_inet_pton
45035
45036 /* System header to define __stub macros and hopefully few prototypes,
45037     which can conflict with char inet_pton (); below.
45038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45039     <limits.h> exists even on freestanding compilers.  */
45040
45041 #ifdef __STDC__
45042 # include <limits.h>
45043 #else
45044 # include <assert.h>
45045 #endif
45046
45047 #undef inet_pton
45048
45049 /* Override any gcc2 internal prototype to avoid an error.  */
45050 #ifdef __cplusplus
45051 extern "C"
45052 {
45053 #endif
45054 /* We use char because int might match the return type of a gcc2
45055    builtin and then its argument prototype would still apply.  */
45056 char inet_pton ();
45057 /* The GNU C library defines this for functions which it implements
45058     to always fail with ENOSYS.  Some functions are actually named
45059     something starting with __ and the normal name is an alias.  */
45060 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
45061 choke me
45062 #else
45063 char (*f) () = inet_pton;
45064 #endif
45065 #ifdef __cplusplus
45066 }
45067 #endif
45068
45069 int
45070 main ()
45071 {
45072 return f != inet_pton;
45073   ;
45074   return 0;
45075 }
45076 _ACEOF
45077 rm -f conftest.$ac_objext conftest$ac_exeext
45078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45079   (eval $ac_link) 2>conftest.er1
45080   ac_status=$?
45081   grep -v '^ *+' conftest.er1 >conftest.err
45082   rm -f conftest.er1
45083   cat conftest.err >&5
45084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45085   (exit $ac_status); } &&
45086          { ac_try='test -z "$ac_c_werror_flag"
45087                          || test ! -s conftest.err'
45088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089   (eval $ac_try) 2>&5
45090   ac_status=$?
45091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092   (exit $ac_status); }; } &&
45093          { ac_try='test -s conftest$ac_exeext'
45094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45095   (eval $ac_try) 2>&5
45096   ac_status=$?
45097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098   (exit $ac_status); }; }; then
45099   ac_cv_func_inet_pton=yes
45100 else
45101   echo "$as_me: failed program was:" >&5
45102 sed 's/^/| /' conftest.$ac_ext >&5
45103
45104 ac_cv_func_inet_pton=no
45105 fi
45106 rm -f conftest.err conftest.$ac_objext \
45107       conftest$ac_exeext conftest.$ac_ext
45108 fi
45109 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
45110 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
45111 if test $ac_cv_func_inet_pton = yes; then
45112   :
45113 else
45114
45115 cat >>confdefs.h <<\_ACEOF
45116 #define ISC_PLATFORM_NEEDPTON 1
45117 _ACEOF
45118
45119 fi
45120
45121 echo "$as_me:$LINENO: checking for inet_aton" >&5
45122 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
45123 if test "${ac_cv_func_inet_aton+set}" = set; then
45124   echo $ECHO_N "(cached) $ECHO_C" >&6
45125 else
45126   cat >conftest.$ac_ext <<_ACEOF
45127 /* confdefs.h.  */
45128 _ACEOF
45129 cat confdefs.h >>conftest.$ac_ext
45130 cat >>conftest.$ac_ext <<_ACEOF
45131 /* end confdefs.h.  */
45132 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
45133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45134 #define inet_aton innocuous_inet_aton
45135
45136 /* System header to define __stub macros and hopefully few prototypes,
45137     which can conflict with char inet_aton (); below.
45138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45139     <limits.h> exists even on freestanding compilers.  */
45140
45141 #ifdef __STDC__
45142 # include <limits.h>
45143 #else
45144 # include <assert.h>
45145 #endif
45146
45147 #undef inet_aton
45148
45149 /* Override any gcc2 internal prototype to avoid an error.  */
45150 #ifdef __cplusplus
45151 extern "C"
45152 {
45153 #endif
45154 /* We use char because int might match the return type of a gcc2
45155    builtin and then its argument prototype would still apply.  */
45156 char inet_aton ();
45157 /* The GNU C library defines this for functions which it implements
45158     to always fail with ENOSYS.  Some functions are actually named
45159     something starting with __ and the normal name is an alias.  */
45160 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
45161 choke me
45162 #else
45163 char (*f) () = inet_aton;
45164 #endif
45165 #ifdef __cplusplus
45166 }
45167 #endif
45168
45169 int
45170 main ()
45171 {
45172 return f != inet_aton;
45173   ;
45174   return 0;
45175 }
45176 _ACEOF
45177 rm -f conftest.$ac_objext conftest$ac_exeext
45178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45179   (eval $ac_link) 2>conftest.er1
45180   ac_status=$?
45181   grep -v '^ *+' conftest.er1 >conftest.err
45182   rm -f conftest.er1
45183   cat conftest.err >&5
45184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45185   (exit $ac_status); } &&
45186          { ac_try='test -z "$ac_c_werror_flag"
45187                          || test ! -s conftest.err'
45188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45189   (eval $ac_try) 2>&5
45190   ac_status=$?
45191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45192   (exit $ac_status); }; } &&
45193          { ac_try='test -s conftest$ac_exeext'
45194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45195   (eval $ac_try) 2>&5
45196   ac_status=$?
45197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198   (exit $ac_status); }; }; then
45199   ac_cv_func_inet_aton=yes
45200 else
45201   echo "$as_me: failed program was:" >&5
45202 sed 's/^/| /' conftest.$ac_ext >&5
45203
45204 ac_cv_func_inet_aton=no
45205 fi
45206 rm -f conftest.err conftest.$ac_objext \
45207       conftest$ac_exeext conftest.$ac_ext
45208 fi
45209 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
45210 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
45211 if test $ac_cv_func_inet_aton = yes; then
45212   :
45213 else
45214
45215 cat >>confdefs.h <<\_ACEOF
45216 #define ISC_PLATFORM_NEEDATON 1
45217 _ACEOF
45218
45219 fi
45220
45221
45222
45223
45224
45225
45226 for ac_func in K_open kvm_open memcpy memmove memset
45227 do
45228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45229 echo "$as_me:$LINENO: checking for $ac_func" >&5
45230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45231 if eval "test \"\${$as_ac_var+set}\" = set"; then
45232   echo $ECHO_N "(cached) $ECHO_C" >&6
45233 else
45234   cat >conftest.$ac_ext <<_ACEOF
45235 /* confdefs.h.  */
45236 _ACEOF
45237 cat confdefs.h >>conftest.$ac_ext
45238 cat >>conftest.$ac_ext <<_ACEOF
45239 /* end confdefs.h.  */
45240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45242 #define $ac_func innocuous_$ac_func
45243
45244 /* System header to define __stub macros and hopefully few prototypes,
45245     which can conflict with char $ac_func (); below.
45246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45247     <limits.h> exists even on freestanding compilers.  */
45248
45249 #ifdef __STDC__
45250 # include <limits.h>
45251 #else
45252 # include <assert.h>
45253 #endif
45254
45255 #undef $ac_func
45256
45257 /* Override any gcc2 internal prototype to avoid an error.  */
45258 #ifdef __cplusplus
45259 extern "C"
45260 {
45261 #endif
45262 /* We use char because int might match the return type of a gcc2
45263    builtin and then its argument prototype would still apply.  */
45264 char $ac_func ();
45265 /* The GNU C library defines this for functions which it implements
45266     to always fail with ENOSYS.  Some functions are actually named
45267     something starting with __ and the normal name is an alias.  */
45268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45269 choke me
45270 #else
45271 char (*f) () = $ac_func;
45272 #endif
45273 #ifdef __cplusplus
45274 }
45275 #endif
45276
45277 int
45278 main ()
45279 {
45280 return f != $ac_func;
45281   ;
45282   return 0;
45283 }
45284 _ACEOF
45285 rm -f conftest.$ac_objext conftest$ac_exeext
45286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45287   (eval $ac_link) 2>conftest.er1
45288   ac_status=$?
45289   grep -v '^ *+' conftest.er1 >conftest.err
45290   rm -f conftest.er1
45291   cat conftest.err >&5
45292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45293   (exit $ac_status); } &&
45294          { ac_try='test -z "$ac_c_werror_flag"
45295                          || test ! -s conftest.err'
45296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45297   (eval $ac_try) 2>&5
45298   ac_status=$?
45299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45300   (exit $ac_status); }; } &&
45301          { ac_try='test -s conftest$ac_exeext'
45302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45303   (eval $ac_try) 2>&5
45304   ac_status=$?
45305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45306   (exit $ac_status); }; }; then
45307   eval "$as_ac_var=yes"
45308 else
45309   echo "$as_me: failed program was:" >&5
45310 sed 's/^/| /' conftest.$ac_ext >&5
45311
45312 eval "$as_ac_var=no"
45313 fi
45314 rm -f conftest.err conftest.$ac_objext \
45315       conftest$ac_exeext conftest.$ac_ext
45316 fi
45317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45319 if test `eval echo '${'$as_ac_var'}'` = yes; then
45320   cat >>confdefs.h <<_ACEOF
45321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45322 _ACEOF
45323
45324 fi
45325 done
45326
45327 case "$host" in
45328  *-*-sco3.2v5.0.*)
45329     # Just stubs.  Idiots.
45330     ;;
45331  *)
45332 for ac_func in mkstemp
45333 do
45334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45335 echo "$as_me:$LINENO: checking for $ac_func" >&5
45336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45337 if eval "test \"\${$as_ac_var+set}\" = set"; then
45338   echo $ECHO_N "(cached) $ECHO_C" >&6
45339 else
45340   cat >conftest.$ac_ext <<_ACEOF
45341 /* confdefs.h.  */
45342 _ACEOF
45343 cat confdefs.h >>conftest.$ac_ext
45344 cat >>conftest.$ac_ext <<_ACEOF
45345 /* end confdefs.h.  */
45346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45348 #define $ac_func innocuous_$ac_func
45349
45350 /* System header to define __stub macros and hopefully few prototypes,
45351     which can conflict with char $ac_func (); below.
45352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45353     <limits.h> exists even on freestanding compilers.  */
45354
45355 #ifdef __STDC__
45356 # include <limits.h>
45357 #else
45358 # include <assert.h>
45359 #endif
45360
45361 #undef $ac_func
45362
45363 /* Override any gcc2 internal prototype to avoid an error.  */
45364 #ifdef __cplusplus
45365 extern "C"
45366 {
45367 #endif
45368 /* We use char because int might match the return type of a gcc2
45369    builtin and then its argument prototype would still apply.  */
45370 char $ac_func ();
45371 /* The GNU C library defines this for functions which it implements
45372     to always fail with ENOSYS.  Some functions are actually named
45373     something starting with __ and the normal name is an alias.  */
45374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45375 choke me
45376 #else
45377 char (*f) () = $ac_func;
45378 #endif
45379 #ifdef __cplusplus
45380 }
45381 #endif
45382
45383 int
45384 main ()
45385 {
45386 return f != $ac_func;
45387   ;
45388   return 0;
45389 }
45390 _ACEOF
45391 rm -f conftest.$ac_objext conftest$ac_exeext
45392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45393   (eval $ac_link) 2>conftest.er1
45394   ac_status=$?
45395   grep -v '^ *+' conftest.er1 >conftest.err
45396   rm -f conftest.er1
45397   cat conftest.err >&5
45398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45399   (exit $ac_status); } &&
45400          { ac_try='test -z "$ac_c_werror_flag"
45401                          || test ! -s conftest.err'
45402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45403   (eval $ac_try) 2>&5
45404   ac_status=$?
45405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45406   (exit $ac_status); }; } &&
45407          { ac_try='test -s conftest$ac_exeext'
45408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45409   (eval $ac_try) 2>&5
45410   ac_status=$?
45411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45412   (exit $ac_status); }; }; then
45413   eval "$as_ac_var=yes"
45414 else
45415   echo "$as_me: failed program was:" >&5
45416 sed 's/^/| /' conftest.$ac_ext >&5
45417
45418 eval "$as_ac_var=no"
45419 fi
45420 rm -f conftest.err conftest.$ac_objext \
45421       conftest$ac_exeext conftest.$ac_ext
45422 fi
45423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45425 if test `eval echo '${'$as_ac_var'}'` = yes; then
45426   cat >>confdefs.h <<_ACEOF
45427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45428 _ACEOF
45429
45430 fi
45431 done
45432
45433     ;;
45434 esac
45435
45436 for ac_func in mktime
45437 do
45438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45439 echo "$as_me:$LINENO: checking for $ac_func" >&5
45440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45441 if eval "test \"\${$as_ac_var+set}\" = set"; then
45442   echo $ECHO_N "(cached) $ECHO_C" >&6
45443 else
45444   cat >conftest.$ac_ext <<_ACEOF
45445 /* confdefs.h.  */
45446 _ACEOF
45447 cat confdefs.h >>conftest.$ac_ext
45448 cat >>conftest.$ac_ext <<_ACEOF
45449 /* end confdefs.h.  */
45450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45452 #define $ac_func innocuous_$ac_func
45453
45454 /* System header to define __stub macros and hopefully few prototypes,
45455     which can conflict with char $ac_func (); below.
45456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45457     <limits.h> exists even on freestanding compilers.  */
45458
45459 #ifdef __STDC__
45460 # include <limits.h>
45461 #else
45462 # include <assert.h>
45463 #endif
45464
45465 #undef $ac_func
45466
45467 /* Override any gcc2 internal prototype to avoid an error.  */
45468 #ifdef __cplusplus
45469 extern "C"
45470 {
45471 #endif
45472 /* We use char because int might match the return type of a gcc2
45473    builtin and then its argument prototype would still apply.  */
45474 char $ac_func ();
45475 /* The GNU C library defines this for functions which it implements
45476     to always fail with ENOSYS.  Some functions are actually named
45477     something starting with __ and the normal name is an alias.  */
45478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45479 choke me
45480 #else
45481 char (*f) () = $ac_func;
45482 #endif
45483 #ifdef __cplusplus
45484 }
45485 #endif
45486
45487 int
45488 main ()
45489 {
45490 return f != $ac_func;
45491   ;
45492   return 0;
45493 }
45494 _ACEOF
45495 rm -f conftest.$ac_objext conftest$ac_exeext
45496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45497   (eval $ac_link) 2>conftest.er1
45498   ac_status=$?
45499   grep -v '^ *+' conftest.er1 >conftest.err
45500   rm -f conftest.er1
45501   cat conftest.err >&5
45502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45503   (exit $ac_status); } &&
45504          { ac_try='test -z "$ac_c_werror_flag"
45505                          || test ! -s conftest.err'
45506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45507   (eval $ac_try) 2>&5
45508   ac_status=$?
45509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45510   (exit $ac_status); }; } &&
45511          { ac_try='test -s conftest$ac_exeext'
45512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45513   (eval $ac_try) 2>&5
45514   ac_status=$?
45515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45516   (exit $ac_status); }; }; then
45517   eval "$as_ac_var=yes"
45518 else
45519   echo "$as_me: failed program was:" >&5
45520 sed 's/^/| /' conftest.$ac_ext >&5
45521
45522 eval "$as_ac_var=no"
45523 fi
45524 rm -f conftest.err conftest.$ac_objext \
45525       conftest$ac_exeext conftest.$ac_ext
45526 fi
45527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45529 if test `eval echo '${'$as_ac_var'}'` = yes; then
45530   cat >>confdefs.h <<_ACEOF
45531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45532 _ACEOF
45533
45534 fi
45535 done
45536
45537 case "$host" in
45538  *-*-aix[45]*)
45539     # Just a stub.  Idiots.
45540     ;;
45541  *-*-irix[45]*)
45542     # Just a stub in "old" Irix.  Idiots.
45543     ;;
45544  *-*-linux*)
45545     # there, but more trouble than it is worth for now (resolver problems)
45546     ;;
45547  *-*-qnx*)
45548     # Apparently there but not working in QNX.  Idiots?
45549     ;;
45550  *-*-sco3.2v5.0.*)
45551     # Just a stub.  Idiots.
45552     ;;
45553  alpha*-dec-osf4*|alpha*-dec-osf5*)
45554     # mlockall is there, as a #define calling memlk via <sys/mman.h>
45555     # Not easy to test for - cheat.
45556
45557 for ac_func in memlk
45558 do
45559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45560 echo "$as_me:$LINENO: checking for $ac_func" >&5
45561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45562 if eval "test \"\${$as_ac_var+set}\" = set"; then
45563   echo $ECHO_N "(cached) $ECHO_C" >&6
45564 else
45565   cat >conftest.$ac_ext <<_ACEOF
45566 /* confdefs.h.  */
45567 _ACEOF
45568 cat confdefs.h >>conftest.$ac_ext
45569 cat >>conftest.$ac_ext <<_ACEOF
45570 /* end confdefs.h.  */
45571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45573 #define $ac_func innocuous_$ac_func
45574
45575 /* System header to define __stub macros and hopefully few prototypes,
45576     which can conflict with char $ac_func (); below.
45577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45578     <limits.h> exists even on freestanding compilers.  */
45579
45580 #ifdef __STDC__
45581 # include <limits.h>
45582 #else
45583 # include <assert.h>
45584 #endif
45585
45586 #undef $ac_func
45587
45588 /* Override any gcc2 internal prototype to avoid an error.  */
45589 #ifdef __cplusplus
45590 extern "C"
45591 {
45592 #endif
45593 /* We use char because int might match the return type of a gcc2
45594    builtin and then its argument prototype would still apply.  */
45595 char $ac_func ();
45596 /* The GNU C library defines this for functions which it implements
45597     to always fail with ENOSYS.  Some functions are actually named
45598     something starting with __ and the normal name is an alias.  */
45599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45600 choke me
45601 #else
45602 char (*f) () = $ac_func;
45603 #endif
45604 #ifdef __cplusplus
45605 }
45606 #endif
45607
45608 int
45609 main ()
45610 {
45611 return f != $ac_func;
45612   ;
45613   return 0;
45614 }
45615 _ACEOF
45616 rm -f conftest.$ac_objext conftest$ac_exeext
45617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45618   (eval $ac_link) 2>conftest.er1
45619   ac_status=$?
45620   grep -v '^ *+' conftest.er1 >conftest.err
45621   rm -f conftest.er1
45622   cat conftest.err >&5
45623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45624   (exit $ac_status); } &&
45625          { ac_try='test -z "$ac_c_werror_flag"
45626                          || test ! -s conftest.err'
45627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45628   (eval $ac_try) 2>&5
45629   ac_status=$?
45630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45631   (exit $ac_status); }; } &&
45632          { ac_try='test -s conftest$ac_exeext'
45633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45634   (eval $ac_try) 2>&5
45635   ac_status=$?
45636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45637   (exit $ac_status); }; }; then
45638   eval "$as_ac_var=yes"
45639 else
45640   echo "$as_me: failed program was:" >&5
45641 sed 's/^/| /' conftest.$ac_ext >&5
45642
45643 eval "$as_ac_var=no"
45644 fi
45645 rm -f conftest.err conftest.$ac_objext \
45646       conftest$ac_exeext conftest.$ac_ext
45647 fi
45648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45650 if test `eval echo '${'$as_ac_var'}'` = yes; then
45651   cat >>confdefs.h <<_ACEOF
45652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45653 _ACEOF
45654  ac_cv_func_mlockall='yes'
45655 fi
45656 done
45657
45658
45659 for ac_func in mlockall
45660 do
45661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45662 echo "$as_me:$LINENO: checking for $ac_func" >&5
45663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45664 if eval "test \"\${$as_ac_var+set}\" = set"; then
45665   echo $ECHO_N "(cached) $ECHO_C" >&6
45666 else
45667   cat >conftest.$ac_ext <<_ACEOF
45668 /* confdefs.h.  */
45669 _ACEOF
45670 cat confdefs.h >>conftest.$ac_ext
45671 cat >>conftest.$ac_ext <<_ACEOF
45672 /* end confdefs.h.  */
45673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45675 #define $ac_func innocuous_$ac_func
45676
45677 /* System header to define __stub macros and hopefully few prototypes,
45678     which can conflict with char $ac_func (); below.
45679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45680     <limits.h> exists even on freestanding compilers.  */
45681
45682 #ifdef __STDC__
45683 # include <limits.h>
45684 #else
45685 # include <assert.h>
45686 #endif
45687
45688 #undef $ac_func
45689
45690 /* Override any gcc2 internal prototype to avoid an error.  */
45691 #ifdef __cplusplus
45692 extern "C"
45693 {
45694 #endif
45695 /* We use char because int might match the return type of a gcc2
45696    builtin and then its argument prototype would still apply.  */
45697 char $ac_func ();
45698 /* The GNU C library defines this for functions which it implements
45699     to always fail with ENOSYS.  Some functions are actually named
45700     something starting with __ and the normal name is an alias.  */
45701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45702 choke me
45703 #else
45704 char (*f) () = $ac_func;
45705 #endif
45706 #ifdef __cplusplus
45707 }
45708 #endif
45709
45710 int
45711 main ()
45712 {
45713 return f != $ac_func;
45714   ;
45715   return 0;
45716 }
45717 _ACEOF
45718 rm -f conftest.$ac_objext conftest$ac_exeext
45719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45720   (eval $ac_link) 2>conftest.er1
45721   ac_status=$?
45722   grep -v '^ *+' conftest.er1 >conftest.err
45723   rm -f conftest.er1
45724   cat conftest.err >&5
45725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45726   (exit $ac_status); } &&
45727          { ac_try='test -z "$ac_c_werror_flag"
45728                          || test ! -s conftest.err'
45729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45730   (eval $ac_try) 2>&5
45731   ac_status=$?
45732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45733   (exit $ac_status); }; } &&
45734          { ac_try='test -s conftest$ac_exeext'
45735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45736   (eval $ac_try) 2>&5
45737   ac_status=$?
45738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739   (exit $ac_status); }; }; then
45740   eval "$as_ac_var=yes"
45741 else
45742   echo "$as_me: failed program was:" >&5
45743 sed 's/^/| /' conftest.$ac_ext >&5
45744
45745 eval "$as_ac_var=no"
45746 fi
45747 rm -f conftest.err conftest.$ac_objext \
45748       conftest$ac_exeext conftest.$ac_ext
45749 fi
45750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45752 if test `eval echo '${'$as_ac_var'}'` = yes; then
45753   cat >>confdefs.h <<_ACEOF
45754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45755 _ACEOF
45756
45757 fi
45758 done
45759
45760     ;;
45761  *)
45762 for ac_func in mlockall
45763 do
45764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45765 echo "$as_me:$LINENO: checking for $ac_func" >&5
45766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45767 if eval "test \"\${$as_ac_var+set}\" = set"; then
45768   echo $ECHO_N "(cached) $ECHO_C" >&6
45769 else
45770   cat >conftest.$ac_ext <<_ACEOF
45771 /* confdefs.h.  */
45772 _ACEOF
45773 cat confdefs.h >>conftest.$ac_ext
45774 cat >>conftest.$ac_ext <<_ACEOF
45775 /* end confdefs.h.  */
45776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45778 #define $ac_func innocuous_$ac_func
45779
45780 /* System header to define __stub macros and hopefully few prototypes,
45781     which can conflict with char $ac_func (); below.
45782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45783     <limits.h> exists even on freestanding compilers.  */
45784
45785 #ifdef __STDC__
45786 # include <limits.h>
45787 #else
45788 # include <assert.h>
45789 #endif
45790
45791 #undef $ac_func
45792
45793 /* Override any gcc2 internal prototype to avoid an error.  */
45794 #ifdef __cplusplus
45795 extern "C"
45796 {
45797 #endif
45798 /* We use char because int might match the return type of a gcc2
45799    builtin and then its argument prototype would still apply.  */
45800 char $ac_func ();
45801 /* The GNU C library defines this for functions which it implements
45802     to always fail with ENOSYS.  Some functions are actually named
45803     something starting with __ and the normal name is an alias.  */
45804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45805 choke me
45806 #else
45807 char (*f) () = $ac_func;
45808 #endif
45809 #ifdef __cplusplus
45810 }
45811 #endif
45812
45813 int
45814 main ()
45815 {
45816 return f != $ac_func;
45817   ;
45818   return 0;
45819 }
45820 _ACEOF
45821 rm -f conftest.$ac_objext conftest$ac_exeext
45822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45823   (eval $ac_link) 2>conftest.er1
45824   ac_status=$?
45825   grep -v '^ *+' conftest.er1 >conftest.err
45826   rm -f conftest.er1
45827   cat conftest.err >&5
45828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829   (exit $ac_status); } &&
45830          { ac_try='test -z "$ac_c_werror_flag"
45831                          || test ! -s conftest.err'
45832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45833   (eval $ac_try) 2>&5
45834   ac_status=$?
45835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45836   (exit $ac_status); }; } &&
45837          { ac_try='test -s conftest$ac_exeext'
45838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45839   (eval $ac_try) 2>&5
45840   ac_status=$?
45841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45842   (exit $ac_status); }; }; then
45843   eval "$as_ac_var=yes"
45844 else
45845   echo "$as_me: failed program was:" >&5
45846 sed 's/^/| /' conftest.$ac_ext >&5
45847
45848 eval "$as_ac_var=no"
45849 fi
45850 rm -f conftest.err conftest.$ac_objext \
45851       conftest$ac_exeext conftest.$ac_ext
45852 fi
45853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45855 if test `eval echo '${'$as_ac_var'}'` = yes; then
45856   cat >>confdefs.h <<_ACEOF
45857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45858 _ACEOF
45859
45860 fi
45861 done
45862
45863     ;;
45864 esac
45865
45866
45867 for ac_func in nice nlist
45868 do
45869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45870 echo "$as_me:$LINENO: checking for $ac_func" >&5
45871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45872 if eval "test \"\${$as_ac_var+set}\" = set"; then
45873   echo $ECHO_N "(cached) $ECHO_C" >&6
45874 else
45875   cat >conftest.$ac_ext <<_ACEOF
45876 /* confdefs.h.  */
45877 _ACEOF
45878 cat confdefs.h >>conftest.$ac_ext
45879 cat >>conftest.$ac_ext <<_ACEOF
45880 /* end confdefs.h.  */
45881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45883 #define $ac_func innocuous_$ac_func
45884
45885 /* System header to define __stub macros and hopefully few prototypes,
45886     which can conflict with char $ac_func (); below.
45887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45888     <limits.h> exists even on freestanding compilers.  */
45889
45890 #ifdef __STDC__
45891 # include <limits.h>
45892 #else
45893 # include <assert.h>
45894 #endif
45895
45896 #undef $ac_func
45897
45898 /* Override any gcc2 internal prototype to avoid an error.  */
45899 #ifdef __cplusplus
45900 extern "C"
45901 {
45902 #endif
45903 /* We use char because int might match the return type of a gcc2
45904    builtin and then its argument prototype would still apply.  */
45905 char $ac_func ();
45906 /* The GNU C library defines this for functions which it implements
45907     to always fail with ENOSYS.  Some functions are actually named
45908     something starting with __ and the normal name is an alias.  */
45909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45910 choke me
45911 #else
45912 char (*f) () = $ac_func;
45913 #endif
45914 #ifdef __cplusplus
45915 }
45916 #endif
45917
45918 int
45919 main ()
45920 {
45921 return f != $ac_func;
45922   ;
45923   return 0;
45924 }
45925 _ACEOF
45926 rm -f conftest.$ac_objext conftest$ac_exeext
45927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45928   (eval $ac_link) 2>conftest.er1
45929   ac_status=$?
45930   grep -v '^ *+' conftest.er1 >conftest.err
45931   rm -f conftest.er1
45932   cat conftest.err >&5
45933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45934   (exit $ac_status); } &&
45935          { ac_try='test -z "$ac_c_werror_flag"
45936                          || test ! -s conftest.err'
45937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45938   (eval $ac_try) 2>&5
45939   ac_status=$?
45940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45941   (exit $ac_status); }; } &&
45942          { ac_try='test -s conftest$ac_exeext'
45943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45944   (eval $ac_try) 2>&5
45945   ac_status=$?
45946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45947   (exit $ac_status); }; }; then
45948   eval "$as_ac_var=yes"
45949 else
45950   echo "$as_me: failed program was:" >&5
45951 sed 's/^/| /' conftest.$ac_ext >&5
45952
45953 eval "$as_ac_var=no"
45954 fi
45955 rm -f conftest.err conftest.$ac_objext \
45956       conftest$ac_exeext conftest.$ac_ext
45957 fi
45958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45960 if test `eval echo '${'$as_ac_var'}'` = yes; then
45961   cat >>confdefs.h <<_ACEOF
45962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45963 _ACEOF
45964
45965 fi
45966 done
45967
45968 case "$host" in
45969  *-*-solaris2.6)
45970     # Broken...
45971     ;;
45972  *)
45973
45974 for ac_func in ntp_adjtime ntp_gettime
45975 do
45976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45977 echo "$as_me:$LINENO: checking for $ac_func" >&5
45978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45979 if eval "test \"\${$as_ac_var+set}\" = set"; then
45980   echo $ECHO_N "(cached) $ECHO_C" >&6
45981 else
45982   cat >conftest.$ac_ext <<_ACEOF
45983 /* confdefs.h.  */
45984 _ACEOF
45985 cat confdefs.h >>conftest.$ac_ext
45986 cat >>conftest.$ac_ext <<_ACEOF
45987 /* end confdefs.h.  */
45988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45990 #define $ac_func innocuous_$ac_func
45991
45992 /* System header to define __stub macros and hopefully few prototypes,
45993     which can conflict with char $ac_func (); below.
45994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45995     <limits.h> exists even on freestanding compilers.  */
45996
45997 #ifdef __STDC__
45998 # include <limits.h>
45999 #else
46000 # include <assert.h>
46001 #endif
46002
46003 #undef $ac_func
46004
46005 /* Override any gcc2 internal prototype to avoid an error.  */
46006 #ifdef __cplusplus
46007 extern "C"
46008 {
46009 #endif
46010 /* We use char because int might match the return type of a gcc2
46011    builtin and then its argument prototype would still apply.  */
46012 char $ac_func ();
46013 /* The GNU C library defines this for functions which it implements
46014     to always fail with ENOSYS.  Some functions are actually named
46015     something starting with __ and the normal name is an alias.  */
46016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46017 choke me
46018 #else
46019 char (*f) () = $ac_func;
46020 #endif
46021 #ifdef __cplusplus
46022 }
46023 #endif
46024
46025 int
46026 main ()
46027 {
46028 return f != $ac_func;
46029   ;
46030   return 0;
46031 }
46032 _ACEOF
46033 rm -f conftest.$ac_objext conftest$ac_exeext
46034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46035   (eval $ac_link) 2>conftest.er1
46036   ac_status=$?
46037   grep -v '^ *+' conftest.er1 >conftest.err
46038   rm -f conftest.er1
46039   cat conftest.err >&5
46040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46041   (exit $ac_status); } &&
46042          { ac_try='test -z "$ac_c_werror_flag"
46043                          || test ! -s conftest.err'
46044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46045   (eval $ac_try) 2>&5
46046   ac_status=$?
46047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46048   (exit $ac_status); }; } &&
46049          { ac_try='test -s conftest$ac_exeext'
46050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46051   (eval $ac_try) 2>&5
46052   ac_status=$?
46053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46054   (exit $ac_status); }; }; then
46055   eval "$as_ac_var=yes"
46056 else
46057   echo "$as_me: failed program was:" >&5
46058 sed 's/^/| /' conftest.$ac_ext >&5
46059
46060 eval "$as_ac_var=no"
46061 fi
46062 rm -f conftest.err conftest.$ac_objext \
46063       conftest$ac_exeext conftest.$ac_ext
46064 fi
46065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46067 if test `eval echo '${'$as_ac_var'}'` = yes; then
46068   cat >>confdefs.h <<_ACEOF
46069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46070 _ACEOF
46071
46072 fi
46073 done
46074
46075     ;;
46076 esac
46077
46078
46079
46080
46081
46082
46083 for ac_func in plock pututline pututxline readlink recvmsg rtprio
46084 do
46085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46086 echo "$as_me:$LINENO: checking for $ac_func" >&5
46087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46088 if eval "test \"\${$as_ac_var+set}\" = set"; then
46089   echo $ECHO_N "(cached) $ECHO_C" >&6
46090 else
46091   cat >conftest.$ac_ext <<_ACEOF
46092 /* confdefs.h.  */
46093 _ACEOF
46094 cat confdefs.h >>conftest.$ac_ext
46095 cat >>conftest.$ac_ext <<_ACEOF
46096 /* end confdefs.h.  */
46097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46099 #define $ac_func innocuous_$ac_func
46100
46101 /* System header to define __stub macros and hopefully few prototypes,
46102     which can conflict with char $ac_func (); below.
46103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46104     <limits.h> exists even on freestanding compilers.  */
46105
46106 #ifdef __STDC__
46107 # include <limits.h>
46108 #else
46109 # include <assert.h>
46110 #endif
46111
46112 #undef $ac_func
46113
46114 /* Override any gcc2 internal prototype to avoid an error.  */
46115 #ifdef __cplusplus
46116 extern "C"
46117 {
46118 #endif
46119 /* We use char because int might match the return type of a gcc2
46120    builtin and then its argument prototype would still apply.  */
46121 char $ac_func ();
46122 /* The GNU C library defines this for functions which it implements
46123     to always fail with ENOSYS.  Some functions are actually named
46124     something starting with __ and the normal name is an alias.  */
46125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46126 choke me
46127 #else
46128 char (*f) () = $ac_func;
46129 #endif
46130 #ifdef __cplusplus
46131 }
46132 #endif
46133
46134 int
46135 main ()
46136 {
46137 return f != $ac_func;
46138   ;
46139   return 0;
46140 }
46141 _ACEOF
46142 rm -f conftest.$ac_objext conftest$ac_exeext
46143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46144   (eval $ac_link) 2>conftest.er1
46145   ac_status=$?
46146   grep -v '^ *+' conftest.er1 >conftest.err
46147   rm -f conftest.er1
46148   cat conftest.err >&5
46149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46150   (exit $ac_status); } &&
46151          { ac_try='test -z "$ac_c_werror_flag"
46152                          || test ! -s conftest.err'
46153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46154   (eval $ac_try) 2>&5
46155   ac_status=$?
46156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46157   (exit $ac_status); }; } &&
46158          { ac_try='test -s conftest$ac_exeext'
46159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46160   (eval $ac_try) 2>&5
46161   ac_status=$?
46162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46163   (exit $ac_status); }; }; then
46164   eval "$as_ac_var=yes"
46165 else
46166   echo "$as_me: failed program was:" >&5
46167 sed 's/^/| /' conftest.$ac_ext >&5
46168
46169 eval "$as_ac_var=no"
46170 fi
46171 rm -f conftest.err conftest.$ac_objext \
46172       conftest$ac_exeext conftest.$ac_ext
46173 fi
46174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46176 if test `eval echo '${'$as_ac_var'}'` = yes; then
46177   cat >>confdefs.h <<_ACEOF
46178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46179 _ACEOF
46180
46181 fi
46182 done
46183
46184 case "$host" in
46185  *-*-aix[45]*)
46186     # Just a stub in AIX 4.  Idiots.
46187     ;;
46188  *-*-solaris2.5*)
46189     # Just stubs in solaris2.5.  Idiots.
46190     ;;
46191  *)
46192 for ac_func in sched_setscheduler
46193 do
46194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46195 echo "$as_me:$LINENO: checking for $ac_func" >&5
46196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46197 if eval "test \"\${$as_ac_var+set}\" = set"; then
46198   echo $ECHO_N "(cached) $ECHO_C" >&6
46199 else
46200   cat >conftest.$ac_ext <<_ACEOF
46201 /* confdefs.h.  */
46202 _ACEOF
46203 cat confdefs.h >>conftest.$ac_ext
46204 cat >>conftest.$ac_ext <<_ACEOF
46205 /* end confdefs.h.  */
46206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46208 #define $ac_func innocuous_$ac_func
46209
46210 /* System header to define __stub macros and hopefully few prototypes,
46211     which can conflict with char $ac_func (); below.
46212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46213     <limits.h> exists even on freestanding compilers.  */
46214
46215 #ifdef __STDC__
46216 # include <limits.h>
46217 #else
46218 # include <assert.h>
46219 #endif
46220
46221 #undef $ac_func
46222
46223 /* Override any gcc2 internal prototype to avoid an error.  */
46224 #ifdef __cplusplus
46225 extern "C"
46226 {
46227 #endif
46228 /* We use char because int might match the return type of a gcc2
46229    builtin and then its argument prototype would still apply.  */
46230 char $ac_func ();
46231 /* The GNU C library defines this for functions which it implements
46232     to always fail with ENOSYS.  Some functions are actually named
46233     something starting with __ and the normal name is an alias.  */
46234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46235 choke me
46236 #else
46237 char (*f) () = $ac_func;
46238 #endif
46239 #ifdef __cplusplus
46240 }
46241 #endif
46242
46243 int
46244 main ()
46245 {
46246 return f != $ac_func;
46247   ;
46248   return 0;
46249 }
46250 _ACEOF
46251 rm -f conftest.$ac_objext conftest$ac_exeext
46252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46253   (eval $ac_link) 2>conftest.er1
46254   ac_status=$?
46255   grep -v '^ *+' conftest.er1 >conftest.err
46256   rm -f conftest.er1
46257   cat conftest.err >&5
46258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46259   (exit $ac_status); } &&
46260          { ac_try='test -z "$ac_c_werror_flag"
46261                          || test ! -s conftest.err'
46262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46263   (eval $ac_try) 2>&5
46264   ac_status=$?
46265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46266   (exit $ac_status); }; } &&
46267          { ac_try='test -s conftest$ac_exeext'
46268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46269   (eval $ac_try) 2>&5
46270   ac_status=$?
46271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46272   (exit $ac_status); }; }; then
46273   eval "$as_ac_var=yes"
46274 else
46275   echo "$as_me: failed program was:" >&5
46276 sed 's/^/| /' conftest.$ac_ext >&5
46277
46278 eval "$as_ac_var=no"
46279 fi
46280 rm -f conftest.err conftest.$ac_objext \
46281       conftest$ac_exeext conftest.$ac_ext
46282 fi
46283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46285 if test `eval echo '${'$as_ac_var'}'` = yes; then
46286   cat >>confdefs.h <<_ACEOF
46287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46288 _ACEOF
46289
46290 fi
46291 done
46292
46293     ;;
46294 esac
46295
46296
46297
46298
46299 for ac_func in setlinebuf setpgid setpriority setsid
46300 do
46301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46302 echo "$as_me:$LINENO: checking for $ac_func" >&5
46303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46304 if eval "test \"\${$as_ac_var+set}\" = set"; then
46305   echo $ECHO_N "(cached) $ECHO_C" >&6
46306 else
46307   cat >conftest.$ac_ext <<_ACEOF
46308 /* confdefs.h.  */
46309 _ACEOF
46310 cat confdefs.h >>conftest.$ac_ext
46311 cat >>conftest.$ac_ext <<_ACEOF
46312 /* end confdefs.h.  */
46313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46315 #define $ac_func innocuous_$ac_func
46316
46317 /* System header to define __stub macros and hopefully few prototypes,
46318     which can conflict with char $ac_func (); below.
46319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46320     <limits.h> exists even on freestanding compilers.  */
46321
46322 #ifdef __STDC__
46323 # include <limits.h>
46324 #else
46325 # include <assert.h>
46326 #endif
46327
46328 #undef $ac_func
46329
46330 /* Override any gcc2 internal prototype to avoid an error.  */
46331 #ifdef __cplusplus
46332 extern "C"
46333 {
46334 #endif
46335 /* We use char because int might match the return type of a gcc2
46336    builtin and then its argument prototype would still apply.  */
46337 char $ac_func ();
46338 /* The GNU C library defines this for functions which it implements
46339     to always fail with ENOSYS.  Some functions are actually named
46340     something starting with __ and the normal name is an alias.  */
46341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46342 choke me
46343 #else
46344 char (*f) () = $ac_func;
46345 #endif
46346 #ifdef __cplusplus
46347 }
46348 #endif
46349
46350 int
46351 main ()
46352 {
46353 return f != $ac_func;
46354   ;
46355   return 0;
46356 }
46357 _ACEOF
46358 rm -f conftest.$ac_objext conftest$ac_exeext
46359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46360   (eval $ac_link) 2>conftest.er1
46361   ac_status=$?
46362   grep -v '^ *+' conftest.er1 >conftest.err
46363   rm -f conftest.er1
46364   cat conftest.err >&5
46365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46366   (exit $ac_status); } &&
46367          { ac_try='test -z "$ac_c_werror_flag"
46368                          || test ! -s conftest.err'
46369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46370   (eval $ac_try) 2>&5
46371   ac_status=$?
46372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46373   (exit $ac_status); }; } &&
46374          { ac_try='test -s conftest$ac_exeext'
46375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46376   (eval $ac_try) 2>&5
46377   ac_status=$?
46378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46379   (exit $ac_status); }; }; then
46380   eval "$as_ac_var=yes"
46381 else
46382   echo "$as_me: failed program was:" >&5
46383 sed 's/^/| /' conftest.$ac_ext >&5
46384
46385 eval "$as_ac_var=no"
46386 fi
46387 rm -f conftest.err conftest.$ac_objext \
46388       conftest$ac_exeext conftest.$ac_ext
46389 fi
46390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46392 if test `eval echo '${'$as_ac_var'}'` = yes; then
46393   cat >>confdefs.h <<_ACEOF
46394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46395 _ACEOF
46396
46397 fi
46398 done
46399
46400
46401 for ac_func in setrlimit
46402 do
46403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46404 echo "$as_me:$LINENO: checking for $ac_func" >&5
46405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46406 if eval "test \"\${$as_ac_var+set}\" = set"; then
46407   echo $ECHO_N "(cached) $ECHO_C" >&6
46408 else
46409   cat >conftest.$ac_ext <<_ACEOF
46410 /* confdefs.h.  */
46411 _ACEOF
46412 cat confdefs.h >>conftest.$ac_ext
46413 cat >>conftest.$ac_ext <<_ACEOF
46414 /* end confdefs.h.  */
46415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46417 #define $ac_func innocuous_$ac_func
46418
46419 /* System header to define __stub macros and hopefully few prototypes,
46420     which can conflict with char $ac_func (); below.
46421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46422     <limits.h> exists even on freestanding compilers.  */
46423
46424 #ifdef __STDC__
46425 # include <limits.h>
46426 #else
46427 # include <assert.h>
46428 #endif
46429
46430 #undef $ac_func
46431
46432 /* Override any gcc2 internal prototype to avoid an error.  */
46433 #ifdef __cplusplus
46434 extern "C"
46435 {
46436 #endif
46437 /* We use char because int might match the return type of a gcc2
46438    builtin and then its argument prototype would still apply.  */
46439 char $ac_func ();
46440 /* The GNU C library defines this for functions which it implements
46441     to always fail with ENOSYS.  Some functions are actually named
46442     something starting with __ and the normal name is an alias.  */
46443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46444 choke me
46445 #else
46446 char (*f) () = $ac_func;
46447 #endif
46448 #ifdef __cplusplus
46449 }
46450 #endif
46451
46452 int
46453 main ()
46454 {
46455 return f != $ac_func;
46456   ;
46457   return 0;
46458 }
46459 _ACEOF
46460 rm -f conftest.$ac_objext conftest$ac_exeext
46461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46462   (eval $ac_link) 2>conftest.er1
46463   ac_status=$?
46464   grep -v '^ *+' conftest.er1 >conftest.err
46465   rm -f conftest.er1
46466   cat conftest.err >&5
46467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46468   (exit $ac_status); } &&
46469          { ac_try='test -z "$ac_c_werror_flag"
46470                          || test ! -s conftest.err'
46471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46472   (eval $ac_try) 2>&5
46473   ac_status=$?
46474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46475   (exit $ac_status); }; } &&
46476          { ac_try='test -s conftest$ac_exeext'
46477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46478   (eval $ac_try) 2>&5
46479   ac_status=$?
46480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481   (exit $ac_status); }; }; then
46482   eval "$as_ac_var=yes"
46483 else
46484   echo "$as_me: failed program was:" >&5
46485 sed 's/^/| /' conftest.$ac_ext >&5
46486
46487 eval "$as_ac_var=no"
46488 fi
46489 rm -f conftest.err conftest.$ac_objext \
46490       conftest$ac_exeext conftest.$ac_ext
46491 fi
46492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46494 if test `eval echo '${'$as_ac_var'}'` = yes; then
46495   cat >>confdefs.h <<_ACEOF
46496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46497 _ACEOF
46498
46499 fi
46500 done
46501
46502
46503 for ac_func in settimeofday
46504 do
46505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46506 echo "$as_me:$LINENO: checking for $ac_func" >&5
46507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46508 if eval "test \"\${$as_ac_var+set}\" = set"; then
46509   echo $ECHO_N "(cached) $ECHO_C" >&6
46510 else
46511   cat >conftest.$ac_ext <<_ACEOF
46512 /* confdefs.h.  */
46513 _ACEOF
46514 cat confdefs.h >>conftest.$ac_ext
46515 cat >>conftest.$ac_ext <<_ACEOF
46516 /* end confdefs.h.  */
46517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46519 #define $ac_func innocuous_$ac_func
46520
46521 /* System header to define __stub macros and hopefully few prototypes,
46522     which can conflict with char $ac_func (); below.
46523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46524     <limits.h> exists even on freestanding compilers.  */
46525
46526 #ifdef __STDC__
46527 # include <limits.h>
46528 #else
46529 # include <assert.h>
46530 #endif
46531
46532 #undef $ac_func
46533
46534 /* Override any gcc2 internal prototype to avoid an error.  */
46535 #ifdef __cplusplus
46536 extern "C"
46537 {
46538 #endif
46539 /* We use char because int might match the return type of a gcc2
46540    builtin and then its argument prototype would still apply.  */
46541 char $ac_func ();
46542 /* The GNU C library defines this for functions which it implements
46543     to always fail with ENOSYS.  Some functions are actually named
46544     something starting with __ and the normal name is an alias.  */
46545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46546 choke me
46547 #else
46548 char (*f) () = $ac_func;
46549 #endif
46550 #ifdef __cplusplus
46551 }
46552 #endif
46553
46554 int
46555 main ()
46556 {
46557 return f != $ac_func;
46558   ;
46559   return 0;
46560 }
46561 _ACEOF
46562 rm -f conftest.$ac_objext conftest$ac_exeext
46563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46564   (eval $ac_link) 2>conftest.er1
46565   ac_status=$?
46566   grep -v '^ *+' conftest.er1 >conftest.err
46567   rm -f conftest.er1
46568   cat conftest.err >&5
46569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46570   (exit $ac_status); } &&
46571          { ac_try='test -z "$ac_c_werror_flag"
46572                          || test ! -s conftest.err'
46573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46574   (eval $ac_try) 2>&5
46575   ac_status=$?
46576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46577   (exit $ac_status); }; } &&
46578          { ac_try='test -s conftest$ac_exeext'
46579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46580   (eval $ac_try) 2>&5
46581   ac_status=$?
46582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46583   (exit $ac_status); }; }; then
46584   eval "$as_ac_var=yes"
46585 else
46586   echo "$as_me: failed program was:" >&5
46587 sed 's/^/| /' conftest.$ac_ext >&5
46588
46589 eval "$as_ac_var=no"
46590 fi
46591 rm -f conftest.err conftest.$ac_objext \
46592       conftest$ac_exeext conftest.$ac_ext
46593 fi
46594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46596 if test `eval echo '${'$as_ac_var'}'` = yes; then
46597   cat >>confdefs.h <<_ACEOF
46598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46599 _ACEOF
46600
46601 else
46602
46603 case "$host" in
46604   *-*-mpeix*) ac_cv_func_settimeofday=yes
46605     ;;
46606 esac
46607 fi
46608 done
46609
46610
46611
46612 for ac_func in setvbuf sigaction
46613 do
46614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46615 echo "$as_me:$LINENO: checking for $ac_func" >&5
46616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46617 if eval "test \"\${$as_ac_var+set}\" = set"; then
46618   echo $ECHO_N "(cached) $ECHO_C" >&6
46619 else
46620   cat >conftest.$ac_ext <<_ACEOF
46621 /* confdefs.h.  */
46622 _ACEOF
46623 cat confdefs.h >>conftest.$ac_ext
46624 cat >>conftest.$ac_ext <<_ACEOF
46625 /* end confdefs.h.  */
46626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46628 #define $ac_func innocuous_$ac_func
46629
46630 /* System header to define __stub macros and hopefully few prototypes,
46631     which can conflict with char $ac_func (); below.
46632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46633     <limits.h> exists even on freestanding compilers.  */
46634
46635 #ifdef __STDC__
46636 # include <limits.h>
46637 #else
46638 # include <assert.h>
46639 #endif
46640
46641 #undef $ac_func
46642
46643 /* Override any gcc2 internal prototype to avoid an error.  */
46644 #ifdef __cplusplus
46645 extern "C"
46646 {
46647 #endif
46648 /* We use char because int might match the return type of a gcc2
46649    builtin and then its argument prototype would still apply.  */
46650 char $ac_func ();
46651 /* The GNU C library defines this for functions which it implements
46652     to always fail with ENOSYS.  Some functions are actually named
46653     something starting with __ and the normal name is an alias.  */
46654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46655 choke me
46656 #else
46657 char (*f) () = $ac_func;
46658 #endif
46659 #ifdef __cplusplus
46660 }
46661 #endif
46662
46663 int
46664 main ()
46665 {
46666 return f != $ac_func;
46667   ;
46668   return 0;
46669 }
46670 _ACEOF
46671 rm -f conftest.$ac_objext conftest$ac_exeext
46672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46673   (eval $ac_link) 2>conftest.er1
46674   ac_status=$?
46675   grep -v '^ *+' conftest.er1 >conftest.err
46676   rm -f conftest.er1
46677   cat conftest.err >&5
46678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679   (exit $ac_status); } &&
46680          { ac_try='test -z "$ac_c_werror_flag"
46681                          || test ! -s conftest.err'
46682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46683   (eval $ac_try) 2>&5
46684   ac_status=$?
46685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46686   (exit $ac_status); }; } &&
46687          { ac_try='test -s conftest$ac_exeext'
46688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46689   (eval $ac_try) 2>&5
46690   ac_status=$?
46691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46692   (exit $ac_status); }; }; then
46693   eval "$as_ac_var=yes"
46694 else
46695   echo "$as_me: failed program was:" >&5
46696 sed 's/^/| /' conftest.$ac_ext >&5
46697
46698 eval "$as_ac_var=no"
46699 fi
46700 rm -f conftest.err conftest.$ac_objext \
46701       conftest$ac_exeext conftest.$ac_ext
46702 fi
46703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46705 if test `eval echo '${'$as_ac_var'}'` = yes; then
46706   cat >>confdefs.h <<_ACEOF
46707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46708 _ACEOF
46709
46710 fi
46711 done
46712
46713
46714
46715
46716
46717
46718
46719
46720 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
46721 do
46722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46723 echo "$as_me:$LINENO: checking for $ac_func" >&5
46724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46725 if eval "test \"\${$as_ac_var+set}\" = set"; then
46726   echo $ECHO_N "(cached) $ECHO_C" >&6
46727 else
46728   cat >conftest.$ac_ext <<_ACEOF
46729 /* confdefs.h.  */
46730 _ACEOF
46731 cat confdefs.h >>conftest.$ac_ext
46732 cat >>conftest.$ac_ext <<_ACEOF
46733 /* end confdefs.h.  */
46734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46736 #define $ac_func innocuous_$ac_func
46737
46738 /* System header to define __stub macros and hopefully few prototypes,
46739     which can conflict with char $ac_func (); below.
46740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46741     <limits.h> exists even on freestanding compilers.  */
46742
46743 #ifdef __STDC__
46744 # include <limits.h>
46745 #else
46746 # include <assert.h>
46747 #endif
46748
46749 #undef $ac_func
46750
46751 /* Override any gcc2 internal prototype to avoid an error.  */
46752 #ifdef __cplusplus
46753 extern "C"
46754 {
46755 #endif
46756 /* We use char because int might match the return type of a gcc2
46757    builtin and then its argument prototype would still apply.  */
46758 char $ac_func ();
46759 /* The GNU C library defines this for functions which it implements
46760     to always fail with ENOSYS.  Some functions are actually named
46761     something starting with __ and the normal name is an alias.  */
46762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46763 choke me
46764 #else
46765 char (*f) () = $ac_func;
46766 #endif
46767 #ifdef __cplusplus
46768 }
46769 #endif
46770
46771 int
46772 main ()
46773 {
46774 return f != $ac_func;
46775   ;
46776   return 0;
46777 }
46778 _ACEOF
46779 rm -f conftest.$ac_objext conftest$ac_exeext
46780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46781   (eval $ac_link) 2>conftest.er1
46782   ac_status=$?
46783   grep -v '^ *+' conftest.er1 >conftest.err
46784   rm -f conftest.er1
46785   cat conftest.err >&5
46786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46787   (exit $ac_status); } &&
46788          { ac_try='test -z "$ac_c_werror_flag"
46789                          || test ! -s conftest.err'
46790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46791   (eval $ac_try) 2>&5
46792   ac_status=$?
46793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46794   (exit $ac_status); }; } &&
46795          { ac_try='test -s conftest$ac_exeext'
46796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46797   (eval $ac_try) 2>&5
46798   ac_status=$?
46799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46800   (exit $ac_status); }; }; then
46801   eval "$as_ac_var=yes"
46802 else
46803   echo "$as_me: failed program was:" >&5
46804 sed 's/^/| /' conftest.$ac_ext >&5
46805
46806 eval "$as_ac_var=no"
46807 fi
46808 rm -f conftest.err conftest.$ac_objext \
46809       conftest$ac_exeext conftest.$ac_ext
46810 fi
46811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46813 if test `eval echo '${'$as_ac_var'}'` = yes; then
46814   cat >>confdefs.h <<_ACEOF
46815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46816 _ACEOF
46817
46818 fi
46819 done
46820
46821
46822
46823
46824
46825 for ac_func in snprintf strdup strerror strstr
46826 do
46827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46828 echo "$as_me:$LINENO: checking for $ac_func" >&5
46829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46830 if eval "test \"\${$as_ac_var+set}\" = set"; then
46831   echo $ECHO_N "(cached) $ECHO_C" >&6
46832 else
46833   cat >conftest.$ac_ext <<_ACEOF
46834 /* confdefs.h.  */
46835 _ACEOF
46836 cat confdefs.h >>conftest.$ac_ext
46837 cat >>conftest.$ac_ext <<_ACEOF
46838 /* end confdefs.h.  */
46839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46841 #define $ac_func innocuous_$ac_func
46842
46843 /* System header to define __stub macros and hopefully few prototypes,
46844     which can conflict with char $ac_func (); below.
46845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46846     <limits.h> exists even on freestanding compilers.  */
46847
46848 #ifdef __STDC__
46849 # include <limits.h>
46850 #else
46851 # include <assert.h>
46852 #endif
46853
46854 #undef $ac_func
46855
46856 /* Override any gcc2 internal prototype to avoid an error.  */
46857 #ifdef __cplusplus
46858 extern "C"
46859 {
46860 #endif
46861 /* We use char because int might match the return type of a gcc2
46862    builtin and then its argument prototype would still apply.  */
46863 char $ac_func ();
46864 /* The GNU C library defines this for functions which it implements
46865     to always fail with ENOSYS.  Some functions are actually named
46866     something starting with __ and the normal name is an alias.  */
46867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46868 choke me
46869 #else
46870 char (*f) () = $ac_func;
46871 #endif
46872 #ifdef __cplusplus
46873 }
46874 #endif
46875
46876 int
46877 main ()
46878 {
46879 return f != $ac_func;
46880   ;
46881   return 0;
46882 }
46883 _ACEOF
46884 rm -f conftest.$ac_objext conftest$ac_exeext
46885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46886   (eval $ac_link) 2>conftest.er1
46887   ac_status=$?
46888   grep -v '^ *+' conftest.er1 >conftest.err
46889   rm -f conftest.er1
46890   cat conftest.err >&5
46891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46892   (exit $ac_status); } &&
46893          { ac_try='test -z "$ac_c_werror_flag"
46894                          || test ! -s conftest.err'
46895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46896   (eval $ac_try) 2>&5
46897   ac_status=$?
46898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46899   (exit $ac_status); }; } &&
46900          { ac_try='test -s conftest$ac_exeext'
46901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46902   (eval $ac_try) 2>&5
46903   ac_status=$?
46904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46905   (exit $ac_status); }; }; then
46906   eval "$as_ac_var=yes"
46907 else
46908   echo "$as_me: failed program was:" >&5
46909 sed 's/^/| /' conftest.$ac_ext >&5
46910
46911 eval "$as_ac_var=no"
46912 fi
46913 rm -f conftest.err conftest.$ac_objext \
46914       conftest$ac_exeext conftest.$ac_ext
46915 fi
46916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46918 if test `eval echo '${'$as_ac_var'}'` = yes; then
46919   cat >>confdefs.h <<_ACEOF
46920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46921 _ACEOF
46922
46923 fi
46924 done
46925
46926
46927 for ac_func in timegm
46928 do
46929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46930 echo "$as_me:$LINENO: checking for $ac_func" >&5
46931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46932 if eval "test \"\${$as_ac_var+set}\" = set"; then
46933   echo $ECHO_N "(cached) $ECHO_C" >&6
46934 else
46935   cat >conftest.$ac_ext <<_ACEOF
46936 /* confdefs.h.  */
46937 _ACEOF
46938 cat confdefs.h >>conftest.$ac_ext
46939 cat >>conftest.$ac_ext <<_ACEOF
46940 /* end confdefs.h.  */
46941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46943 #define $ac_func innocuous_$ac_func
46944
46945 /* System header to define __stub macros and hopefully few prototypes,
46946     which can conflict with char $ac_func (); below.
46947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46948     <limits.h> exists even on freestanding compilers.  */
46949
46950 #ifdef __STDC__
46951 # include <limits.h>
46952 #else
46953 # include <assert.h>
46954 #endif
46955
46956 #undef $ac_func
46957
46958 /* Override any gcc2 internal prototype to avoid an error.  */
46959 #ifdef __cplusplus
46960 extern "C"
46961 {
46962 #endif
46963 /* We use char because int might match the return type of a gcc2
46964    builtin and then its argument prototype would still apply.  */
46965 char $ac_func ();
46966 /* The GNU C library defines this for functions which it implements
46967     to always fail with ENOSYS.  Some functions are actually named
46968     something starting with __ and the normal name is an alias.  */
46969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46970 choke me
46971 #else
46972 char (*f) () = $ac_func;
46973 #endif
46974 #ifdef __cplusplus
46975 }
46976 #endif
46977
46978 int
46979 main ()
46980 {
46981 return f != $ac_func;
46982   ;
46983   return 0;
46984 }
46985 _ACEOF
46986 rm -f conftest.$ac_objext conftest$ac_exeext
46987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46988   (eval $ac_link) 2>conftest.er1
46989   ac_status=$?
46990   grep -v '^ *+' conftest.er1 >conftest.err
46991   rm -f conftest.er1
46992   cat conftest.err >&5
46993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46994   (exit $ac_status); } &&
46995          { ac_try='test -z "$ac_c_werror_flag"
46996                          || test ! -s conftest.err'
46997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46998   (eval $ac_try) 2>&5
46999   ac_status=$?
47000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47001   (exit $ac_status); }; } &&
47002          { ac_try='test -s conftest$ac_exeext'
47003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47004   (eval $ac_try) 2>&5
47005   ac_status=$?
47006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47007   (exit $ac_status); }; }; then
47008   eval "$as_ac_var=yes"
47009 else
47010   echo "$as_me: failed program was:" >&5
47011 sed 's/^/| /' conftest.$ac_ext >&5
47012
47013 eval "$as_ac_var=no"
47014 fi
47015 rm -f conftest.err conftest.$ac_objext \
47016       conftest$ac_exeext conftest.$ac_ext
47017 fi
47018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47020 if test `eval echo '${'$as_ac_var'}'` = yes; then
47021   cat >>confdefs.h <<_ACEOF
47022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47023 _ACEOF
47024
47025 fi
47026 done
47027
47028 case "$host" in
47029  *-*-aix[45]*)
47030     # Just stubs.  Idiots.
47031     ;;
47032  *-*-netbsd1*)
47033     # Just stubs.  Idiots.
47034     ;;
47035  *-*-netbsdelf1*)
47036     # Just stubs.  Idiots.
47037     ;;
47038  *-*-openbsd*)
47039     # Just stubs.  Idiots.
47040     ;;
47041  *)
47042
47043 for ac_func in timer_create timer_settime
47044 do
47045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47046 echo "$as_me:$LINENO: checking for $ac_func" >&5
47047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47048 if eval "test \"\${$as_ac_var+set}\" = set"; then
47049   echo $ECHO_N "(cached) $ECHO_C" >&6
47050 else
47051   cat >conftest.$ac_ext <<_ACEOF
47052 /* confdefs.h.  */
47053 _ACEOF
47054 cat confdefs.h >>conftest.$ac_ext
47055 cat >>conftest.$ac_ext <<_ACEOF
47056 /* end confdefs.h.  */
47057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47059 #define $ac_func innocuous_$ac_func
47060
47061 /* System header to define __stub macros and hopefully few prototypes,
47062     which can conflict with char $ac_func (); below.
47063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47064     <limits.h> exists even on freestanding compilers.  */
47065
47066 #ifdef __STDC__
47067 # include <limits.h>
47068 #else
47069 # include <assert.h>
47070 #endif
47071
47072 #undef $ac_func
47073
47074 /* Override any gcc2 internal prototype to avoid an error.  */
47075 #ifdef __cplusplus
47076 extern "C"
47077 {
47078 #endif
47079 /* We use char because int might match the return type of a gcc2
47080    builtin and then its argument prototype would still apply.  */
47081 char $ac_func ();
47082 /* The GNU C library defines this for functions which it implements
47083     to always fail with ENOSYS.  Some functions are actually named
47084     something starting with __ and the normal name is an alias.  */
47085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47086 choke me
47087 #else
47088 char (*f) () = $ac_func;
47089 #endif
47090 #ifdef __cplusplus
47091 }
47092 #endif
47093
47094 int
47095 main ()
47096 {
47097 return f != $ac_func;
47098   ;
47099   return 0;
47100 }
47101 _ACEOF
47102 rm -f conftest.$ac_objext conftest$ac_exeext
47103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47104   (eval $ac_link) 2>conftest.er1
47105   ac_status=$?
47106   grep -v '^ *+' conftest.er1 >conftest.err
47107   rm -f conftest.er1
47108   cat conftest.err >&5
47109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47110   (exit $ac_status); } &&
47111          { ac_try='test -z "$ac_c_werror_flag"
47112                          || test ! -s conftest.err'
47113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47114   (eval $ac_try) 2>&5
47115   ac_status=$?
47116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47117   (exit $ac_status); }; } &&
47118          { ac_try='test -s conftest$ac_exeext'
47119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47120   (eval $ac_try) 2>&5
47121   ac_status=$?
47122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47123   (exit $ac_status); }; }; then
47124   eval "$as_ac_var=yes"
47125 else
47126   echo "$as_me: failed program was:" >&5
47127 sed 's/^/| /' conftest.$ac_ext >&5
47128
47129 eval "$as_ac_var=no"
47130 fi
47131 rm -f conftest.err conftest.$ac_objext \
47132       conftest$ac_exeext conftest.$ac_ext
47133 fi
47134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47136 if test `eval echo '${'$as_ac_var'}'` = yes; then
47137   cat >>confdefs.h <<_ACEOF
47138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47139 _ACEOF
47140
47141 fi
47142 done
47143
47144     ;;
47145 esac
47146 case "$host" in
47147  *-pc-cygwin*)
47148     # I have no idea...
47149     ;;
47150  *)
47151 for ac_func in umask
47152 do
47153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47154 echo "$as_me:$LINENO: checking for $ac_func" >&5
47155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47156 if eval "test \"\${$as_ac_var+set}\" = set"; then
47157   echo $ECHO_N "(cached) $ECHO_C" >&6
47158 else
47159   cat >conftest.$ac_ext <<_ACEOF
47160 /* confdefs.h.  */
47161 _ACEOF
47162 cat confdefs.h >>conftest.$ac_ext
47163 cat >>conftest.$ac_ext <<_ACEOF
47164 /* end confdefs.h.  */
47165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47167 #define $ac_func innocuous_$ac_func
47168
47169 /* System header to define __stub macros and hopefully few prototypes,
47170     which can conflict with char $ac_func (); below.
47171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47172     <limits.h> exists even on freestanding compilers.  */
47173
47174 #ifdef __STDC__
47175 # include <limits.h>
47176 #else
47177 # include <assert.h>
47178 #endif
47179
47180 #undef $ac_func
47181
47182 /* Override any gcc2 internal prototype to avoid an error.  */
47183 #ifdef __cplusplus
47184 extern "C"
47185 {
47186 #endif
47187 /* We use char because int might match the return type of a gcc2
47188    builtin and then its argument prototype would still apply.  */
47189 char $ac_func ();
47190 /* The GNU C library defines this for functions which it implements
47191     to always fail with ENOSYS.  Some functions are actually named
47192     something starting with __ and the normal name is an alias.  */
47193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47194 choke me
47195 #else
47196 char (*f) () = $ac_func;
47197 #endif
47198 #ifdef __cplusplus
47199 }
47200 #endif
47201
47202 int
47203 main ()
47204 {
47205 return f != $ac_func;
47206   ;
47207   return 0;
47208 }
47209 _ACEOF
47210 rm -f conftest.$ac_objext conftest$ac_exeext
47211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47212   (eval $ac_link) 2>conftest.er1
47213   ac_status=$?
47214   grep -v '^ *+' conftest.er1 >conftest.err
47215   rm -f conftest.er1
47216   cat conftest.err >&5
47217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47218   (exit $ac_status); } &&
47219          { ac_try='test -z "$ac_c_werror_flag"
47220                          || test ! -s conftest.err'
47221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47222   (eval $ac_try) 2>&5
47223   ac_status=$?
47224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47225   (exit $ac_status); }; } &&
47226          { ac_try='test -s conftest$ac_exeext'
47227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47228   (eval $ac_try) 2>&5
47229   ac_status=$?
47230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47231   (exit $ac_status); }; }; then
47232   eval "$as_ac_var=yes"
47233 else
47234   echo "$as_me: failed program was:" >&5
47235 sed 's/^/| /' conftest.$ac_ext >&5
47236
47237 eval "$as_ac_var=no"
47238 fi
47239 rm -f conftest.err conftest.$ac_objext \
47240       conftest$ac_exeext conftest.$ac_ext
47241 fi
47242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47244 if test `eval echo '${'$as_ac_var'}'` = yes; then
47245   cat >>confdefs.h <<_ACEOF
47246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47247 _ACEOF
47248
47249 fi
47250 done
47251
47252     ;;
47253 esac
47254
47255
47256
47257
47258
47259 for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
47260 do
47261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47262 echo "$as_me:$LINENO: checking for $ac_func" >&5
47263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47264 if eval "test \"\${$as_ac_var+set}\" = set"; then
47265   echo $ECHO_N "(cached) $ECHO_C" >&6
47266 else
47267   cat >conftest.$ac_ext <<_ACEOF
47268 /* confdefs.h.  */
47269 _ACEOF
47270 cat confdefs.h >>conftest.$ac_ext
47271 cat >>conftest.$ac_ext <<_ACEOF
47272 /* end confdefs.h.  */
47273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47275 #define $ac_func innocuous_$ac_func
47276
47277 /* System header to define __stub macros and hopefully few prototypes,
47278     which can conflict with char $ac_func (); below.
47279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47280     <limits.h> exists even on freestanding compilers.  */
47281
47282 #ifdef __STDC__
47283 # include <limits.h>
47284 #else
47285 # include <assert.h>
47286 #endif
47287
47288 #undef $ac_func
47289
47290 /* Override any gcc2 internal prototype to avoid an error.  */
47291 #ifdef __cplusplus
47292 extern "C"
47293 {
47294 #endif
47295 /* We use char because int might match the return type of a gcc2
47296    builtin and then its argument prototype would still apply.  */
47297 char $ac_func ();
47298 /* The GNU C library defines this for functions which it implements
47299     to always fail with ENOSYS.  Some functions are actually named
47300     something starting with __ and the normal name is an alias.  */
47301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47302 choke me
47303 #else
47304 char (*f) () = $ac_func;
47305 #endif
47306 #ifdef __cplusplus
47307 }
47308 #endif
47309
47310 int
47311 main ()
47312 {
47313 return f != $ac_func;
47314   ;
47315   return 0;
47316 }
47317 _ACEOF
47318 rm -f conftest.$ac_objext conftest$ac_exeext
47319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47320   (eval $ac_link) 2>conftest.er1
47321   ac_status=$?
47322   grep -v '^ *+' conftest.er1 >conftest.err
47323   rm -f conftest.er1
47324   cat conftest.err >&5
47325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47326   (exit $ac_status); } &&
47327          { ac_try='test -z "$ac_c_werror_flag"
47328                          || test ! -s conftest.err'
47329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47330   (eval $ac_try) 2>&5
47331   ac_status=$?
47332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47333   (exit $ac_status); }; } &&
47334          { ac_try='test -s conftest$ac_exeext'
47335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47336   (eval $ac_try) 2>&5
47337   ac_status=$?
47338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339   (exit $ac_status); }; }; then
47340   eval "$as_ac_var=yes"
47341 else
47342   echo "$as_me: failed program was:" >&5
47343 sed 's/^/| /' conftest.$ac_ext >&5
47344
47345 eval "$as_ac_var=no"
47346 fi
47347 rm -f conftest.err conftest.$ac_objext \
47348       conftest$ac_exeext conftest.$ac_ext
47349 fi
47350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47352 if test `eval echo '${'$as_ac_var'}'` = yes; then
47353   cat >>confdefs.h <<_ACEOF
47354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47355 _ACEOF
47356
47357 fi
47358 done
47359
47360
47361 ###
47362
47363 # http://bugs.ntp.isc.org/737
47364 case "$ac_cv_func_recvmsg" in
47365  yes)
47366  echo "$as_me:$LINENO: checking if we need extra help to define struct iovec" >&5
47367 echo $ECHO_N "checking if we need extra help to define struct iovec... $ECHO_C" >&6
47368  if test "${ac_cv_struct_iovec_help+set}" = set; then
47369   echo $ECHO_N "(cached) $ECHO_C" >&6
47370 else
47371    for ac_cv_struct_iovec_help in '0' '1'; do
47372    cat >conftest.$ac_ext <<_ACEOF
47373 /* confdefs.h.  */
47374 _ACEOF
47375 cat confdefs.h >>conftest.$ac_ext
47376 cat >>conftest.$ac_ext <<_ACEOF
47377 /* end confdefs.h.  */
47378 #ifdef HAVE_SYS_TYPES_H
47379 #include <sys/types.h>
47380 #endif
47381 #ifdef HAVE_SYS_SOCKET_H
47382 #include <sys/socket.h>
47383 #endif
47384 #if $ac_cv_struct_iovec_help
47385 #include <sys/uio.h>
47386 #endif
47387
47388 void foo();
47389 void foo() {
47390         ssize_t x;
47391         int s = 0;
47392         struct iovec iov;
47393         struct msghdr mh;
47394         int flags = 0;
47395
47396         mh.msg_iov = &iov;
47397         x = recvmsg(s, &mh, flags);
47398 }
47399 int
47400 main ()
47401 {
47402
47403   ;
47404   return 0;
47405 }
47406 _ACEOF
47407 rm -f conftest.$ac_objext
47408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47409   (eval $ac_compile) 2>conftest.er1
47410   ac_status=$?
47411   grep -v '^ *+' conftest.er1 >conftest.err
47412   rm -f conftest.er1
47413   cat conftest.err >&5
47414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47415   (exit $ac_status); } &&
47416          { ac_try='test -z "$ac_c_werror_flag"
47417                          || test ! -s conftest.err'
47418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47419   (eval $ac_try) 2>&5
47420   ac_status=$?
47421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422   (exit $ac_status); }; } &&
47423          { ac_try='test -s conftest.$ac_objext'
47424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47425   (eval $ac_try) 2>&5
47426   ac_status=$?
47427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47428   (exit $ac_status); }; }; then
47429     ac_worked=yes ; break 1
47430 else
47431   echo "$as_me: failed program was:" >&5
47432 sed 's/^/| /' conftest.$ac_ext >&5
47433
47434 ac_worked=no
47435 fi
47436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47437   done
47438
47439 fi
47440     case "$ac_worked$ac_cv_struct_iovec_help" in
47441      yes1)
47442
47443 cat >>confdefs.h <<\_ACEOF
47444 #define HAVE_SYS_UIO_H 1
47445 _ACEOF
47446
47447         ans=yes
47448         ;;
47449      *) ans=no
47450     esac
47451     echo "$as_me:$LINENO: result: $ans" >&5
47452 echo "${ECHO_T}$ans" >&6
47453     ;;
47454 esac
47455
47456 case "$host" in
47457  *-*-sunos4*)
47458
47459 cat >>confdefs.h <<\_ACEOF
47460 #define SPRINTF_CHAR 1
47461 _ACEOF
47462
47463     ;;
47464 esac
47465
47466 echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5
47467 echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
47468 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
47469   echo $ECHO_N "(cached) $ECHO_C" >&6
47470 else
47471   cat >conftest.$ac_ext <<_ACEOF
47472 /* confdefs.h.  */
47473 _ACEOF
47474 cat confdefs.h >>conftest.$ac_ext
47475 cat >>conftest.$ac_ext <<_ACEOF
47476 /* end confdefs.h.  */
47477 #include <sys/time.h>
47478 int
47479 main ()
47480 {
47481
47482 gettimeofday((struct timeval*)0,(struct timezone*)0);
47483 settimeofday((struct timeval*)0,(struct timezone*)0);
47484
47485   ;
47486   return 0;
47487 }
47488 _ACEOF
47489 rm -f conftest.$ac_objext
47490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47491   (eval $ac_compile) 2>conftest.er1
47492   ac_status=$?
47493   grep -v '^ *+' conftest.er1 >conftest.err
47494   rm -f conftest.er1
47495   cat conftest.err >&5
47496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47497   (exit $ac_status); } &&
47498          { ac_try='test -z "$ac_c_werror_flag"
47499                          || test ! -s conftest.err'
47500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47501   (eval $ac_try) 2>&5
47502   ac_status=$?
47503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47504   (exit $ac_status); }; } &&
47505          { ac_try='test -s conftest.$ac_objext'
47506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47507   (eval $ac_try) 2>&5
47508   ac_status=$?
47509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510   (exit $ac_status); }; }; then
47511   ac_cv_func_Xettimeofday_nargs=2
47512 else
47513   echo "$as_me: failed program was:" >&5
47514 sed 's/^/| /' conftest.$ac_ext >&5
47515
47516 ac_cv_func_Xettimeofday_nargs=1
47517 fi
47518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47519
47520 fi
47521 echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5
47522 echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
47523 if test $ac_cv_func_Xettimeofday_nargs = 1; then
47524
47525 cat >>confdefs.h <<\_ACEOF
47526 #define SYSV_TIMEOFDAY 1
47527 _ACEOF
47528
47529 fi
47530
47531 echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5
47532 echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
47533 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
47534   echo $ECHO_N "(cached) $ECHO_C" >&6
47535 else
47536   cat >conftest.$ac_ext <<_ACEOF
47537 /* confdefs.h.  */
47538 _ACEOF
47539 cat confdefs.h >>conftest.$ac_ext
47540 cat >>conftest.$ac_ext <<_ACEOF
47541 /* end confdefs.h.  */
47542
47543 #ifdef HAVE_SYS_TYPES_H
47544 # include <sys/types.h>
47545 #endif
47546 #ifdef HAVE_UNISTD_H
47547 # include <unistd.h>
47548 #endif
47549
47550 int
47551 main ()
47552 {
47553 setpgrp(0,0);
47554   ;
47555   return 0;
47556 }
47557 _ACEOF
47558 rm -f conftest.$ac_objext
47559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47560   (eval $ac_compile) 2>conftest.er1
47561   ac_status=$?
47562   grep -v '^ *+' conftest.er1 >conftest.err
47563   rm -f conftest.er1
47564   cat conftest.err >&5
47565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47566   (exit $ac_status); } &&
47567          { ac_try='test -z "$ac_c_werror_flag"
47568                          || test ! -s conftest.err'
47569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47570   (eval $ac_try) 2>&5
47571   ac_status=$?
47572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47573   (exit $ac_status); }; } &&
47574          { ac_try='test -s conftest.$ac_objext'
47575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47576   (eval $ac_try) 2>&5
47577   ac_status=$?
47578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579   (exit $ac_status); }; }; then
47580   ac_cv_func_setpgrp_nargs=2
47581 else
47582   echo "$as_me: failed program was:" >&5
47583 sed 's/^/| /' conftest.$ac_ext >&5
47584
47585 ac_cv_func_setpgrp_nargs=0
47586 fi
47587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47588
47589 fi
47590 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5
47591 echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
47592 if test $ac_cv_func_setpgrp_nargs = 0; then
47593
47594 cat >>confdefs.h <<\_ACEOF
47595 #define HAVE_SETPGRP_0 1
47596 _ACEOF
47597
47598 fi
47599
47600 save_CFLAGS=$CFLAGS
47601 CFLAGS="$CFLAGS -I$srcdir/include"
47602
47603 echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5
47604 echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
47605 if test "${ac_cv_func_qsort_argtype+set}" = set; then
47606   echo $ECHO_N "(cached) $ECHO_C" >&6
47607 else
47608   cat >conftest.$ac_ext <<_ACEOF
47609 /* confdefs.h.  */
47610 _ACEOF
47611 cat confdefs.h >>conftest.$ac_ext
47612 cat >>conftest.$ac_ext <<_ACEOF
47613 /* end confdefs.h.  */
47614
47615 #include "l_stdlib.h"
47616
47617 #ifdef HAVE_PROTOTYPES
47618 #define P(x) x
47619 #else
47620 #define P(x) ()
47621 #endif
47622
47623 extern void *base;
47624 extern sortfunc P((const void *, const void *));
47625 int sortfunc(a, b)
47626   const void *a;
47627   const void *b; { return 0; }
47628
47629 int
47630 main ()
47631 {
47632
47633 qsort(base, 2, sizeof(char *), sortfunc);
47634
47635   ;
47636   return 0;
47637 }
47638 _ACEOF
47639 rm -f conftest.$ac_objext
47640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47641   (eval $ac_compile) 2>conftest.er1
47642   ac_status=$?
47643   grep -v '^ *+' conftest.er1 >conftest.err
47644   rm -f conftest.er1
47645   cat conftest.err >&5
47646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47647   (exit $ac_status); } &&
47648          { ac_try='test -z "$ac_c_werror_flag"
47649                          || test ! -s conftest.err'
47650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47651   (eval $ac_try) 2>&5
47652   ac_status=$?
47653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47654   (exit $ac_status); }; } &&
47655          { ac_try='test -s conftest.$ac_objext'
47656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47657   (eval $ac_try) 2>&5
47658   ac_status=$?
47659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660   (exit $ac_status); }; }; then
47661   ac_cv_func_qsort_argtype=void
47662 else
47663   echo "$as_me: failed program was:" >&5
47664 sed 's/^/| /' conftest.$ac_ext >&5
47665
47666 ac_cv_func_qsort_argtype=char
47667 fi
47668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47669
47670 fi
47671 echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5
47672 echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
47673 case "$ac_cv_func_qsort_argtype" in
47674  void)
47675
47676 cat >>confdefs.h <<\_ACEOF
47677 #define QSORT_USES_VOID_P 1
47678 _ACEOF
47679
47680     ;;
47681 esac
47682
47683 CFLAGS=$save_CFLAGS
47684
47685 echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5
47686 echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
47687 if test "${ac_cv_decl_errno+set}" = set; then
47688   echo $ECHO_N "(cached) $ECHO_C" >&6
47689 else
47690   cat >conftest.$ac_ext <<_ACEOF
47691 /* confdefs.h.  */
47692 _ACEOF
47693 cat confdefs.h >>conftest.$ac_ext
47694 cat >>conftest.$ac_ext <<_ACEOF
47695 /* end confdefs.h.  */
47696 #ifdef HAVE_ERRNO_H
47697 #include <errno.h>
47698 #endif
47699 int
47700 main ()
47701 {
47702 errno = 0;
47703   ;
47704   return 0;
47705 }
47706 _ACEOF
47707 rm -f conftest.$ac_objext
47708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47709   (eval $ac_compile) 2>conftest.er1
47710   ac_status=$?
47711   grep -v '^ *+' conftest.er1 >conftest.err
47712   rm -f conftest.er1
47713   cat conftest.err >&5
47714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715   (exit $ac_status); } &&
47716          { ac_try='test -z "$ac_c_werror_flag"
47717                          || test ! -s conftest.err'
47718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47719   (eval $ac_try) 2>&5
47720   ac_status=$?
47721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47722   (exit $ac_status); }; } &&
47723          { ac_try='test -s conftest.$ac_objext'
47724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47725   (eval $ac_try) 2>&5
47726   ac_status=$?
47727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47728   (exit $ac_status); }; }; then
47729   ac_cv_decl_errno=no
47730 else
47731   echo "$as_me: failed program was:" >&5
47732 sed 's/^/| /' conftest.$ac_ext >&5
47733
47734 ac_cv_decl_errno=yes
47735 fi
47736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47737 fi
47738 echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
47739 echo "${ECHO_T}$ac_cv_decl_errno" >&6
47740 case "$ac_cv_decl_errno" in
47741  yes)
47742 cat >>confdefs.h <<\_ACEOF
47743 #define DECL_ERRNO 1
47744 _ACEOF
47745  ;;
47746 esac
47747
47748 echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5
47749 echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
47750 if test "${ac_cv_decl_h_errno+set}" = set; then
47751   echo $ECHO_N "(cached) $ECHO_C" >&6
47752 else
47753   cat >conftest.$ac_ext <<_ACEOF
47754 /* confdefs.h.  */
47755 _ACEOF
47756 cat confdefs.h >>conftest.$ac_ext
47757 cat >>conftest.$ac_ext <<_ACEOF
47758 /* end confdefs.h.  */
47759 #include <sys/types.h>
47760 #ifdef HAVE_NETINET_IN_H
47761 #include <netinet/in.h>
47762 #endif
47763 #ifdef HAVE_ARPA_NAMESER_H
47764 #include <arpa/nameser.h>
47765 #endif
47766 #ifdef HAVE_NETDB_H
47767 #include <netdb.h>
47768 #endif
47769 #ifdef HAVE_RESOLV_H
47770 #include <resolv.h>
47771 #endif
47772 int
47773 main ()
47774 {
47775 extern int h_errno;
47776   ;
47777   return 0;
47778 }
47779 _ACEOF
47780 rm -f conftest.$ac_objext
47781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47782   (eval $ac_compile) 2>conftest.er1
47783   ac_status=$?
47784   grep -v '^ *+' conftest.er1 >conftest.err
47785   rm -f conftest.er1
47786   cat conftest.err >&5
47787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47788   (exit $ac_status); } &&
47789          { ac_try='test -z "$ac_c_werror_flag"
47790                          || test ! -s conftest.err'
47791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47792   (eval $ac_try) 2>&5
47793   ac_status=$?
47794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47795   (exit $ac_status); }; } &&
47796          { ac_try='test -s conftest.$ac_objext'
47797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47798   (eval $ac_try) 2>&5
47799   ac_status=$?
47800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47801   (exit $ac_status); }; }; then
47802   ac_cv_decl_h_errno=yes
47803 else
47804   echo "$as_me: failed program was:" >&5
47805 sed 's/^/| /' conftest.$ac_ext >&5
47806
47807 ac_cv_decl_h_errno=no
47808 fi
47809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47810 fi
47811 echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5
47812 echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
47813 case "$ac_cv_decl_h_errno" in
47814  yes)
47815 cat >>confdefs.h <<\_ACEOF
47816 #define DECL_H_ERRNO 1
47817 _ACEOF
47818  ;;
47819 esac
47820
47821 echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5
47822 echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
47823 if test "${ac_cv_decl_sys_errlist+set}" = set; then
47824   echo $ECHO_N "(cached) $ECHO_C" >&6
47825 else
47826   cat >conftest.$ac_ext <<_ACEOF
47827 /* confdefs.h.  */
47828 _ACEOF
47829 cat confdefs.h >>conftest.$ac_ext
47830 cat >>conftest.$ac_ext <<_ACEOF
47831 /* end confdefs.h.  */
47832 #include <stdio.h>
47833 #ifdef HAVE_ERRNO_H
47834 #include <errno.h>
47835 #endif
47836 int
47837 main ()
47838 {
47839 extern char *sys_errlist[];
47840
47841   ;
47842   return 0;
47843 }
47844 _ACEOF
47845 rm -f conftest.$ac_objext
47846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47847   (eval $ac_compile) 2>conftest.er1
47848   ac_status=$?
47849   grep -v '^ *+' conftest.er1 >conftest.err
47850   rm -f conftest.er1
47851   cat conftest.err >&5
47852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47853   (exit $ac_status); } &&
47854          { ac_try='test -z "$ac_c_werror_flag"
47855                          || test ! -s conftest.err'
47856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47857   (eval $ac_try) 2>&5
47858   ac_status=$?
47859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47860   (exit $ac_status); }; } &&
47861          { ac_try='test -s conftest.$ac_objext'
47862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47863   (eval $ac_try) 2>&5
47864   ac_status=$?
47865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47866   (exit $ac_status); }; }; then
47867   ac_cv_decl_sys_errlist=yes
47868 else
47869   echo "$as_me: failed program was:" >&5
47870 sed 's/^/| /' conftest.$ac_ext >&5
47871
47872 ac_cv_decl_sys_errlist=no
47873 fi
47874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47875 fi
47876 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5
47877 echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
47878 case "$ac_cv_decl_sys_errlist" in
47879  yes)
47880 cat >>confdefs.h <<\_ACEOF
47881 #define CHAR_SYS_ERRLIST 1
47882 _ACEOF
47883  ;;
47884 esac
47885
47886 echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5
47887 echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
47888 if test "${ac_cv_decl_syscall+set}" = set; then
47889   echo $ECHO_N "(cached) $ECHO_C" >&6
47890 else
47891   cat >conftest.$ac_ext <<_ACEOF
47892 /* confdefs.h.  */
47893 _ACEOF
47894 cat confdefs.h >>conftest.$ac_ext
47895 cat >>conftest.$ac_ext <<_ACEOF
47896 /* end confdefs.h.  */
47897
47898 #ifdef HAVE_SYS_TYPES_H
47899 # include <sys/types.h>
47900 #endif
47901 #ifdef HAVE_UNISTD_H
47902 # include <unistd.h>
47903 #endif
47904 #ifdef HAVE_PROTOTYPES
47905 #define P(x) x
47906 #else
47907 #define P(x) ()
47908 #endif
47909
47910 int
47911 main ()
47912 {
47913 extern int syscall P((int, ...));
47914   ;
47915   return 0;
47916 }
47917 _ACEOF
47918 rm -f conftest.$ac_objext
47919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47920   (eval $ac_compile) 2>conftest.er1
47921   ac_status=$?
47922   grep -v '^ *+' conftest.er1 >conftest.err
47923   rm -f conftest.er1
47924   cat conftest.err >&5
47925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47926   (exit $ac_status); } &&
47927          { ac_try='test -z "$ac_c_werror_flag"
47928                          || test ! -s conftest.err'
47929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47930   (eval $ac_try) 2>&5
47931   ac_status=$?
47932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47933   (exit $ac_status); }; } &&
47934          { ac_try='test -s conftest.$ac_objext'
47935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47936   (eval $ac_try) 2>&5
47937   ac_status=$?
47938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47939   (exit $ac_status); }; }; then
47940   ac_cv_decl_syscall=yes
47941 else
47942   echo "$as_me: failed program was:" >&5
47943 sed 's/^/| /' conftest.$ac_ext >&5
47944
47945 ac_cv_decl_syscall=no
47946 fi
47947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47948 fi
47949 echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5
47950 echo "${ECHO_T}$ac_cv_decl_syscall" >&6
47951 case "$ac_cv_decl_syscall" in
47952  yes)
47953 cat >>confdefs.h <<\_ACEOF
47954 #define DECL_SYSCALL 1
47955 _ACEOF
47956  ;;
47957 esac
47958
47959 case "$host" in
47960  *-*-aix4.3.*)
47961
47962 cat >>confdefs.h <<\_ACEOF
47963 #define DECL_HSTRERROR_0 1
47964 _ACEOF
47965                 # Needed for XLC under AIX 4.3.2
47966     ;;
47967  *-*-mpeix*)
47968
47969 cat >>confdefs.h <<\_ACEOF
47970 #define DECL_ADJTIME_0 1
47971 _ACEOF
47972
47973
47974 cat >>confdefs.h <<\_ACEOF
47975 #define DECL_INET_NTOA_0 1
47976 _ACEOF
47977
47978
47979 cat >>confdefs.h <<\_ACEOF
47980 #define DECL_MKTEMP_0 1
47981 _ACEOF
47982
47983
47984 cat >>confdefs.h <<\_ACEOF
47985 #define DECL_SELECT_0 1
47986 _ACEOF
47987
47988
47989 cat >>confdefs.h <<\_ACEOF
47990 #define DECL_SETITIMER_0 1
47991 _ACEOF
47992
47993
47994 cat >>confdefs.h <<\_ACEOF
47995 #define DECL_SYSLOG_0 1
47996 _ACEOF
47997
47998
47999 cat >>confdefs.h <<\_ACEOF
48000 #define DECL_TIMEOFDAY_0 1
48001 _ACEOF
48002
48003     ;;
48004  *-*-osf[45]*)
48005
48006 cat >>confdefs.h <<\_ACEOF
48007 #define DECL_PLOCK_0 1
48008 _ACEOF
48009
48010
48011 cat >>confdefs.h <<\_ACEOF
48012 #define DECL_STIME_1 1
48013 _ACEOF
48014
48015     ;;
48016  *-*-qnx*)
48017
48018 cat >>confdefs.h <<\_ACEOF
48019 #define DECL_ADJTIME_0 1
48020 _ACEOF
48021
48022     ;;
48023  *-*-riscos4*)
48024
48025 cat >>confdefs.h <<\_ACEOF
48026 #define DECL_ADJTIME_0 1
48027 _ACEOF
48028
48029
48030 cat >>confdefs.h <<\_ACEOF
48031 #define DECL_BZERO_0 1
48032 _ACEOF
48033
48034
48035 cat >>confdefs.h <<\_ACEOF
48036 #define DECL_IOCTL_0 1
48037 _ACEOF
48038
48039
48040 cat >>confdefs.h <<\_ACEOF
48041 #define DECL_IPC_0 1
48042 _ACEOF
48043
48044
48045 cat >>confdefs.h <<\_ACEOF
48046 #define DECL_MEMMOVE_0 1
48047 _ACEOF
48048
48049
48050 cat >>confdefs.h <<\_ACEOF
48051 #define DECL_MKTEMP_0 1
48052 _ACEOF
48053
48054
48055 cat >>confdefs.h <<\_ACEOF
48056 #define DECL_RENAME_0 1
48057 _ACEOF
48058
48059
48060 cat >>confdefs.h <<\_ACEOF
48061 #define DECL_SELECT_0 1
48062 _ACEOF
48063
48064
48065 cat >>confdefs.h <<\_ACEOF
48066 #define DECL_SETITIMER_0 1
48067 _ACEOF
48068
48069
48070 cat >>confdefs.h <<\_ACEOF
48071 #define DECL_SETPRIORITY_0 1
48072 _ACEOF
48073
48074
48075 cat >>confdefs.h <<\_ACEOF
48076 #define DECL_STDIO_0 1
48077 _ACEOF
48078
48079
48080 cat >>confdefs.h <<\_ACEOF
48081 #define DECL_STRTOL_0 1
48082 _ACEOF
48083
48084
48085 cat >>confdefs.h <<\_ACEOF
48086 #define DECL_SYSLOG_0 1
48087 _ACEOF
48088
48089
48090 cat >>confdefs.h <<\_ACEOF
48091 #define DECL_TIME_0 1
48092 _ACEOF
48093
48094
48095 cat >>confdefs.h <<\_ACEOF
48096 #define DECL_TIMEOFDAY_0 1
48097 _ACEOF
48098
48099
48100 cat >>confdefs.h <<\_ACEOF
48101 #define DECL_TOLOWER_0 1
48102 _ACEOF
48103
48104     ;;
48105  *-*-solaris2*)
48106
48107 cat >>confdefs.h <<\_ACEOF
48108 #define DECL_MKSTEMP_0 1
48109 _ACEOF
48110
48111
48112 cat >>confdefs.h <<\_ACEOF
48113 #define DECL_SETPRIORITY_1 1
48114 _ACEOF
48115
48116     case "$host" in
48117      *-*-solaris2.4)
48118
48119 cat >>confdefs.h <<\_ACEOF
48120 #define DECL_TIMEOFDAY_0 1
48121 _ACEOF
48122
48123         ;;
48124     esac
48125     ;;
48126  *-*-sunos4*)
48127
48128 cat >>confdefs.h <<\_ACEOF
48129 #define DECL_ADJTIME_0 1
48130 _ACEOF
48131
48132
48133 cat >>confdefs.h <<\_ACEOF
48134 #define DECL_BCOPY_0 1
48135 _ACEOF
48136
48137
48138 cat >>confdefs.h <<\_ACEOF
48139 #define DECL_BZERO_0 1
48140 _ACEOF
48141
48142
48143 cat >>confdefs.h <<\_ACEOF
48144 #define DECL_IOCTL_0 1
48145 _ACEOF
48146
48147
48148 cat >>confdefs.h <<\_ACEOF
48149 #define DECL_IPC_0 1
48150 _ACEOF
48151
48152
48153 cat >>confdefs.h <<\_ACEOF
48154 #define DECL_MEMMOVE_0 1
48155 _ACEOF
48156
48157
48158 cat >>confdefs.h <<\_ACEOF
48159 #define DECL_MKTEMP_0 1
48160 _ACEOF
48161
48162
48163 cat >>confdefs.h <<\_ACEOF
48164 #define DECL_MKSTEMP_0 1
48165 _ACEOF
48166
48167
48168 cat >>confdefs.h <<\_ACEOF
48169 #define DECL_RENAME_0 1
48170 _ACEOF
48171
48172
48173 cat >>confdefs.h <<\_ACEOF
48174 #define DECL_SELECT_0 1
48175 _ACEOF
48176
48177
48178 cat >>confdefs.h <<\_ACEOF
48179 #define DECL_SETITIMER_0 1
48180 _ACEOF
48181
48182
48183 cat >>confdefs.h <<\_ACEOF
48184 #define DECL_SETPRIORITY_0 1
48185 _ACEOF
48186
48187
48188 cat >>confdefs.h <<\_ACEOF
48189 #define DECL_SIGVEC_0 1
48190 _ACEOF
48191
48192     case "`basename $ac_cv_prog_CC`" in
48193      acc*) ;;
48194      *)
48195 cat >>confdefs.h <<\_ACEOF
48196 #define DECL_STDIO_0 1
48197 _ACEOF
48198
48199         ;;
48200     esac
48201
48202 cat >>confdefs.h <<\_ACEOF
48203 #define DECL_STRTOL_0 1
48204 _ACEOF
48205
48206
48207 cat >>confdefs.h <<\_ACEOF
48208 #define DECL_SYSLOG_0 1
48209 _ACEOF
48210
48211
48212 cat >>confdefs.h <<\_ACEOF
48213 #define DECL_TIME_0 1
48214 _ACEOF
48215
48216
48217 cat >>confdefs.h <<\_ACEOF
48218 #define DECL_TIMEOFDAY_0 1
48219 _ACEOF
48220
48221
48222 cat >>confdefs.h <<\_ACEOF
48223 #define DECL_TOLOWER_0 1
48224 _ACEOF
48225
48226
48227 cat >>confdefs.h <<\_ACEOF
48228 #define DECL_TOUPPER_0 1
48229 _ACEOF
48230
48231
48232 cat >>confdefs.h <<\_ACEOF
48233 #define DECL_STRERROR_0 1
48234 _ACEOF
48235
48236     ;;
48237  *-*-ultrix4*)
48238
48239 cat >>confdefs.h <<\_ACEOF
48240 #define DECL_ADJTIME_0 1
48241 _ACEOF
48242
48243
48244 cat >>confdefs.h <<\_ACEOF
48245 #define DECL_BZERO_0 1
48246 _ACEOF
48247
48248
48249 cat >>confdefs.h <<\_ACEOF
48250 #define DECL_CFSETISPEED_0 1
48251 _ACEOF
48252
48253
48254 cat >>confdefs.h <<\_ACEOF
48255 #define DECL_IOCTL_0 1
48256 _ACEOF
48257
48258
48259 cat >>confdefs.h <<\_ACEOF
48260 #define DECL_IPC_0 1
48261 _ACEOF
48262
48263
48264 cat >>confdefs.h <<\_ACEOF
48265 #define DECL_MKTEMP_0 1
48266 _ACEOF
48267
48268
48269 cat >>confdefs.h <<\_ACEOF
48270 #define DECL_NLIST_0 1
48271 _ACEOF
48272
48273
48274 cat >>confdefs.h <<\_ACEOF
48275 #define DECL_PLOCK_0 1
48276 _ACEOF
48277
48278
48279 cat >>confdefs.h <<\_ACEOF
48280 #define DECL_SELECT_0 1
48281 _ACEOF
48282
48283
48284 cat >>confdefs.h <<\_ACEOF
48285 #define DECL_SETITIMER_0 1
48286 _ACEOF
48287
48288
48289 cat >>confdefs.h <<\_ACEOF
48290 #define DECL_SETPRIORITY_0 1
48291 _ACEOF
48292
48293
48294 cat >>confdefs.h <<\_ACEOF
48295 #define DECL_STIME_0 1
48296 _ACEOF
48297
48298
48299 cat >>confdefs.h <<\_ACEOF
48300 #define DECL_SYSLOG_0 1
48301 _ACEOF
48302
48303
48304 cat >>confdefs.h <<\_ACEOF
48305 #define DECL_TIMEOFDAY_0 1
48306 _ACEOF
48307
48308     ;;
48309 esac
48310
48311 case "$host" in
48312  *-*-sco3.2*)
48313
48314 cat >>confdefs.h <<\_ACEOF
48315 #define TERMIOS_NEEDS__SVID3 1
48316 _ACEOF
48317
48318     ;;
48319 esac
48320
48321 echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5
48322 echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
48323 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
48324   echo $ECHO_N "(cached) $ECHO_C" >&6
48325 else
48326   ans=no
48327 case "$host" in
48328  *-*-hpux[567]*)
48329     ans=yes
48330     ;;
48331 esac
48332 ac_cv_var_rcvbuf_slop=$ans
48333 fi
48334 echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5
48335 echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
48336 case "$ac_cv_var_rcvbuf_slop" in
48337  yes)
48338 cat >>confdefs.h <<\_ACEOF
48339 #define NEED_RCVBUF_SLOP 1
48340 _ACEOF
48341  ;;
48342 esac
48343
48344 echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5
48345 echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
48346 if test "${ac_cv_var_open_bcast_socket+set}" = set; then
48347   echo $ECHO_N "(cached) $ECHO_C" >&6
48348 else
48349   ans=yes
48350 case "$host" in
48351  *-*-domainos)
48352     ans=no
48353     ;;
48354 esac
48355 ac_cv_var_open_bcast_socket=$ans
48356 fi
48357 echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5
48358 echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
48359 case "$ac_cv_var_open_bcast_socket" in
48360  yes)
48361 cat >>confdefs.h <<\_ACEOF
48362 #define OPEN_BCAST_SOCKET 1
48363 _ACEOF
48364  ;;
48365 esac
48366
48367 echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5
48368 echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
48369 if test "${ac_cv_var_hpux_findconfig+set}" = set; then
48370   echo $ECHO_N "(cached) $ECHO_C" >&6
48371 else
48372   ans=no
48373 case "$host" in
48374  *-*-hpux*)
48375     ans=yes
48376     ;;
48377 esac
48378 ac_cv_var_hpux_findconfig=$ans
48379 fi
48380 echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5
48381 echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
48382 case "$ac_cv_var_hpux_findconfig" in
48383  yes)
48384 cat >>confdefs.h <<\_ACEOF
48385 #define NEED_HPUX_FINDCONFIG 1
48386 _ACEOF
48387  ;;
48388 esac
48389
48390 echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5
48391 echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
48392 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
48393   echo $ECHO_N "(cached) $ECHO_C" >&6
48394 else
48395   case "$host" in
48396  *-*-hpux[567]*)
48397     ans=no
48398     ;;
48399  *-*-hpux*)
48400     ans=yes
48401     ;;
48402  *-*-linux*)
48403     ans=yes
48404     ;;
48405  *-*-sunos3*)
48406     ans=yes
48407     ;;
48408  *-*-ultrix2*)
48409     ans=yes
48410     ;;
48411  *)
48412     ans=no
48413     ;;
48414 esac
48415 ac_cv_arg_setpgrp_negpid=$ans
48416 fi
48417 echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5
48418 echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
48419 case "$ac_cv_arg_setpgrp_negpid" in
48420  yes)
48421 cat >>confdefs.h <<\_ACEOF
48422 #define UDP_BACKWARDS_SETOWN 1
48423 _ACEOF
48424  ;;
48425 esac
48426
48427 echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5
48428 echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
48429 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
48430   echo $ECHO_N "(cached) $ECHO_C" >&6
48431 else
48432   case "$host" in
48433  *-*-bsdi[23]*)
48434     ans=yes
48435     ;;
48436  *-*-freebsd*)
48437     ans=yes
48438     ;;
48439  *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7])
48440     ans=yes
48441     ;;
48442  *-*-openbsd*)
48443     ans=yes
48444     ;;
48445  *-*-osf*)
48446     ans=yes
48447     ;;
48448  *) ans=no
48449     ;;
48450 esac
48451 ac_cv_func_ctty_for_f_setown=$ans
48452 fi
48453 echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5
48454 echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
48455 case "$ac_cv_func_ctty_for_f_setown" in
48456  yes)
48457 cat >>confdefs.h <<\_ACEOF
48458 #define USE_FSETOWNCTTY 1
48459 _ACEOF
48460  ;;
48461 esac
48462
48463 echo "$as_me:$LINENO: checking if the OS misses to clear cached routes when more specific routes become available" >&5
48464 echo $ECHO_N "checking if the OS misses to clear cached routes when more specific routes become available... $ECHO_C" >&6
48465 if test "${ac_cv_os_routeupdates+set}" = set; then
48466   echo $ECHO_N "(cached) $ECHO_C" >&6
48467 else
48468   case "$host" in
48469  *-*-netbsd*)
48470     ans=yes
48471     ;;
48472  *) ans=no
48473     ;;
48474 esac
48475 ac_cv_os_routeupdates=$ans
48476 fi
48477 echo "$as_me:$LINENO: result: $ac_cv_os_routeupdates" >&5
48478 echo "${ECHO_T}$ac_cv_os_routeupdates" >&6
48479 case "$ac_cv_os_routeupdates" in
48480  yes)
48481 cat >>confdefs.h <<\_ACEOF
48482 #define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1
48483 _ACEOF
48484  ;;
48485 esac
48486
48487 echo "$as_me:$LINENO: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
48488 echo $ECHO_N "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... $ECHO_C" >&6
48489 if test "${ac_cv_os_wildcardreuse+set}" = set; then
48490   echo $ECHO_N "(cached) $ECHO_C" >&6
48491 else
48492   case "$host" in
48493  *-*-linux*)
48494     ans=yes
48495     ;;
48496  *) ans=no
48497     ;;
48498 esac
48499 ac_cv_os_wildcardreuse=$ans
48500 fi
48501 echo "$as_me:$LINENO: result: $ac_cv_os_wildcardreuse" >&5
48502 echo "${ECHO_T}$ac_cv_os_wildcardreuse" >&6
48503 case "$ac_cv_os_wildcardreuse" in
48504  yes)
48505 cat >>confdefs.h <<\_ACEOF
48506 #define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1
48507 _ACEOF
48508  ;;
48509 esac
48510
48511 ntp_warning='GRONK'
48512 echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5
48513 echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
48514 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
48515  yes*)
48516     ntp_warning=''
48517     ans='clock_settime()'
48518     ;;
48519  noyes*)
48520     ntp_warning='But clock_settime() would be better (if we had it)'
48521     ans='settimeofday()'
48522     ;;
48523  nonoyes)
48524     ntp_warning='Which is the worst of the three'
48525     ans='stime()'
48526     ;;
48527  *)
48528     case "$build" in
48529      $host) ntp_warning='Which leaves us with nothing to use!'
48530     ans=none
48531     ;;
48532 esac
48533 esac
48534 echo "$as_me:$LINENO: result: $ans" >&5
48535 echo "${ECHO_T}$ans" >&6
48536 case "$ntp_warning" in
48537  '') ;;
48538  *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5
48539 echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
48540     ;;
48541 esac
48542
48543 echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5
48544 echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
48545 if test "${ac_cv_var_syscall_bug+set}" = set; then
48546   echo $ECHO_N "(cached) $ECHO_C" >&6
48547 else
48548   case "$host" in
48549  *-*-solaris2.4*)
48550     ans=yes
48551     ;;
48552  *) ans=no
48553     ;;
48554 esac
48555 ac_cv_var_syscall_bug=$ans
48556 fi
48557 echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5
48558 echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
48559 case "$ac_cv_var_syscall_bug" in
48560  yes)
48561 cat >>confdefs.h <<\_ACEOF
48562 #define SYSCALL_BUG 1
48563 _ACEOF
48564  ;;
48565 esac
48566
48567 echo "$as_me:$LINENO: checking for SIGIO" >&5
48568 echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
48569 if test "${ac_cv_hdr_def_sigio+set}" = set; then
48570   echo $ECHO_N "(cached) $ECHO_C" >&6
48571 else
48572   cat >conftest.$ac_ext <<_ACEOF
48573 /* confdefs.h.  */
48574 _ACEOF
48575 cat confdefs.h >>conftest.$ac_ext
48576 cat >>conftest.$ac_ext <<_ACEOF
48577 /* end confdefs.h.  */
48578 #include <signal.h>
48579 #ifdef SIGIO
48580    yes
48581 #endif
48582
48583 _ACEOF
48584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48585   $EGREP "yes" >/dev/null 2>&1; then
48586   ac_cv_hdr_def_sigio=yes
48587 else
48588   ac_cv_hdr_def_sigio=no
48589 fi
48590 rm -f conftest*
48591
48592 fi
48593 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5
48594 echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
48595
48596 echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5
48597 echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
48598 if test "${ac_cv_var_signalled_io+set}" = set; then
48599   echo $ECHO_N "(cached) $ECHO_C" >&6
48600 else
48601   ans=no
48602 case "$ac_cv_hdr_def_sigio" in
48603  yes)
48604     ans=yes
48605     case "$host" in
48606      alpha*-dec-osf4*|alpha*-dec-osf5*)
48607         ans=no
48608         ;;
48609      *-convex-*)
48610         ans=no
48611         ;;
48612      *-dec-*)
48613         ans=no
48614         ;;
48615      *-pc-cygwin*)
48616         ans=no
48617         ;;
48618      *-sni-sysv*)
48619         ans=no
48620         ;;
48621      *-univel-sysv*)
48622         ans=no
48623         ;;
48624      *-*-irix6*)
48625         ans=no
48626         ;;
48627      *-*-freebsd*)
48628         ans=no
48629         ;;
48630      *-*-linux*)
48631         ans=no
48632         ;;
48633      *-*-unicosmp*)
48634         ans=no
48635         ;;
48636     esac
48637     ;;
48638 esac
48639 ac_cv_var_signalled_io=$ans
48640 fi
48641 echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5
48642 echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
48643 case "$ac_cv_var_signalled_io" in
48644  yes)
48645 cat >>confdefs.h <<\_ACEOF
48646 #define HAVE_SIGNALED_IO 1
48647 _ACEOF
48648  ;;
48649 esac
48650
48651 echo "$as_me:$LINENO: checking for SIGPOLL" >&5
48652 echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
48653 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
48654   echo $ECHO_N "(cached) $ECHO_C" >&6
48655 else
48656   cat >conftest.$ac_ext <<_ACEOF
48657 /* confdefs.h.  */
48658 _ACEOF
48659 cat confdefs.h >>conftest.$ac_ext
48660 cat >>conftest.$ac_ext <<_ACEOF
48661 /* end confdefs.h.  */
48662 #include <signal.h>
48663 #ifdef SIGPOLL
48664   yes
48665 #endif
48666
48667 _ACEOF
48668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48669   $EGREP "yes" >/dev/null 2>&1; then
48670   ac_cv_hdr_def_sigpoll=yes
48671 else
48672   ac_cv_hdr_def_sigpoll=no
48673 fi
48674 rm -f conftest*
48675
48676 fi
48677 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5
48678 echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
48679
48680 echo "$as_me:$LINENO: checking for SIGSYS" >&5
48681 echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
48682 if test "${ac_cv_hdr_def_sigsys+set}" = set; then
48683   echo $ECHO_N "(cached) $ECHO_C" >&6
48684 else
48685   cat >conftest.$ac_ext <<_ACEOF
48686 /* confdefs.h.  */
48687 _ACEOF
48688 cat confdefs.h >>conftest.$ac_ext
48689 cat >>conftest.$ac_ext <<_ACEOF
48690 /* end confdefs.h.  */
48691 #include <signal.h>
48692 #ifdef SIGSYS
48693   yes
48694 #endif
48695
48696 _ACEOF
48697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48698   $EGREP "yes" >/dev/null 2>&1; then
48699   ac_cv_hdr_def_sigsys=yes
48700 else
48701   ac_cv_hdr_def_sigsys=no
48702 fi
48703 rm -f conftest*
48704
48705 fi
48706 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5
48707 echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
48708
48709 echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5
48710 echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
48711 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
48712   echo $ECHO_N "(cached) $ECHO_C" >&6
48713 else
48714   ans=no
48715 case "$ac_cv_hdr_def_sigpoll" in
48716  yes)
48717     case "$host" in
48718      mips-sgi-irix*)
48719         ans=no
48720         ;;
48721      vax-dec-bsd)
48722         ans=no
48723         ;;
48724      *-pc-cygwin*)
48725         ans=no
48726         ;;
48727      *-sni-sysv*)
48728         ans=no
48729         ;;
48730      *-*-aix[45]*)
48731         ans=no
48732         ;;
48733      *-*-hpux*)
48734         ans=no
48735         ;;
48736      *-*-linux*)
48737         ans=no
48738         ;;
48739      *-*-osf*)
48740         ans=no
48741         ;;
48742      *-*-qnx*)
48743         ans=no
48744         ;;
48745      *-*-sunos*)
48746         ans=no
48747         ;;
48748      *-*-ultrix*)
48749         ans=no
48750         ;;
48751      *-*-unicosmp*)
48752         ans=no
48753         ;;
48754      *) ans=yes
48755         ;;
48756     esac
48757     ;;
48758 esac
48759 ac_cv_var_use_udp_sigpoll=$ans
48760 fi
48761 echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5
48762 echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
48763 case "$ac_cv_var_use_udp_sigpoll" in
48764  yes)
48765 cat >>confdefs.h <<\_ACEOF
48766 #define USE_UDP_SIGPOLL 1
48767 _ACEOF
48768  ;;
48769 esac
48770
48771 echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5
48772 echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
48773 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
48774   echo $ECHO_N "(cached) $ECHO_C" >&6
48775 else
48776   ans=no
48777 case "$ac_cv_hdr_def_sigpoll" in
48778  yes)
48779     case "$host" in
48780      mips-sgi-irix*)
48781         ans=no
48782         ;;
48783      vax-dec-bsd)
48784         ans=no
48785         ;;
48786      *-pc-cygwin*)
48787         ans=no
48788         ;;
48789      *-sni-sysv*)
48790         ans=no
48791         ;;
48792      *-*-aix[45]*)
48793         ans=no
48794         ;;
48795      *-*-hpux*)
48796         ans=no
48797         ;;
48798      *-*-linux*)
48799         ans=no
48800         ;;
48801      *-*-osf*)
48802         ans=no
48803         ;;
48804      *-*-sunos*)
48805         ans=no
48806         ;;
48807      *-*-ultrix*)
48808         ans=no
48809         ;;
48810      *-*-qnx*)
48811         ans=no
48812         ;;
48813      *-*-unicosmp*)
48814         ans=no
48815         ;;
48816      *) ans=yes
48817         ;;
48818     esac
48819     ;;
48820 esac
48821 ac_cv_var_use_tty_sigpoll=$ans
48822 fi
48823 echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5
48824 echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
48825 case "$ac_cv_var_use_tty_sigpoll" in
48826  yes)
48827 cat >>confdefs.h <<\_ACEOF
48828 #define USE_TTY_SIGPOLL 1
48829 _ACEOF
48830  ;;
48831 esac
48832
48833 case "$ac_cv_header_sys_sio_h" in
48834  yes)
48835     echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
48836 echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
48837 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
48838   echo $ECHO_N "(cached) $ECHO_C" >&6
48839 else
48840   cat >conftest.$ac_ext <<_ACEOF
48841 /* confdefs.h.  */
48842 _ACEOF
48843 cat confdefs.h >>conftest.$ac_ext
48844 cat >>conftest.$ac_ext <<_ACEOF
48845 /* end confdefs.h.  */
48846 #include <sys/sio.h>
48847 #ifdef TIOCDCDTIMESTAMP
48848   yes
48849 #endif
48850
48851 _ACEOF
48852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48853   $EGREP "yes" >/dev/null 2>&1; then
48854   ac_cv_hdr_def_tiocdcdtimestamp=yes
48855 else
48856   ac_cv_hdr_def_tiocdcdtimestamp=no
48857 fi
48858 rm -f conftest*
48859
48860 fi
48861 echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
48862 echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
48863     ;;
48864 esac
48865
48866 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
48867  yes)
48868     ac_cv_var_oncore_ok=yes
48869     ;;
48870 esac
48871
48872 echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5
48873 echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
48874 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
48875   echo $ECHO_N "(cached) $ECHO_C" >&6
48876 else
48877   ans=no
48878 case "$host" in
48879  *-*-aix*)
48880     ans=yes
48881     ;;
48882 esac
48883 ac_cv_var_nlist_extra_indirection=$ans
48884 fi
48885 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5
48886 echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
48887 case "$ac_cv_var_nlist_extra_indirection" in
48888  yes)
48889 cat >>confdefs.h <<\_ACEOF
48890 #define NLIST_EXTRA_INDIRECTION 1
48891 _ACEOF
48892  ;;
48893 esac
48894
48895 echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5
48896 echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
48897 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
48898   echo $ECHO_N "(cached) $ECHO_C" >&6
48899 else
48900   ans=no
48901 case "$host" in
48902  *-*-aix*)
48903     ans=40
48904     ;;
48905 esac
48906 ac_cv_var_min_rec_tickadj=$ans
48907 fi
48908 echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5
48909 echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
48910 case "$ac_cv_var_min_rec_tickadj" in
48911  ''|no) ;;
48912  *)
48913 cat >>confdefs.h <<_ACEOF
48914 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
48915 _ACEOF
48916  ;;
48917 esac
48918
48919 echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5
48920 echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
48921 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
48922   echo $ECHO_N "(cached) $ECHO_C" >&6
48923 else
48924   ans=no
48925 case "$host" in
48926  i?86-*-linux*)
48927     ans=yes
48928     ;;
48929  mips-sgi-irix*)
48930     ans=yes
48931     ;;
48932  i?86-*-freebsd[123].*)
48933     ;;
48934  i?86-*-freebsd*)
48935     ans=yes
48936     ;;
48937  *-*-unicosmp*)
48938     ans=yes
48939     ;;
48940 esac
48941 ac_cv_var_no_parenb_ignpar=$ans
48942 fi
48943 echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5
48944 echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
48945 case "$ac_cv_var_no_parenb_ignpar" in
48946  yes)
48947 cat >>confdefs.h <<\_ACEOF
48948 #define NO_PARENB_IGNPAR 1
48949 _ACEOF
48950  ;;
48951 esac
48952
48953 echo "$as_me:$LINENO: checking if we're including debugging code" >&5
48954 echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
48955 # Check whether --enable-debugging or --disable-debugging was given.
48956 if test "${enable_debugging+set}" = set; then
48957   enableval="$enable_debugging"
48958   ntp_ok=$enableval
48959 else
48960   ntp_ok=yes
48961 fi;
48962 if test "$ntp_ok" = "yes"; then
48963
48964 cat >>confdefs.h <<\_ACEOF
48965 #define DEBUG 1
48966 _ACEOF
48967
48968 fi
48969 echo "$as_me:$LINENO: result: $ntp_ok" >&5
48970 echo "${ECHO_T}$ntp_ok" >&6
48971
48972 echo "$as_me:$LINENO: checking if we including processing time debugging code" >&5
48973 echo $ECHO_N "checking if we including processing time debugging code... $ECHO_C" >&6
48974 # Check whether --enable-debug-timing or --disable-debug-timing was given.
48975 if test "${enable_debug_timing+set}" = set; then
48976   enableval="$enable_debug_timing"
48977   ntp_ok=$enableval
48978 else
48979   ntp_ok=no
48980 fi;
48981 if test "$ntp_ok" = "yes"; then
48982
48983 cat >>confdefs.h <<\_ACEOF
48984 #define DEBUG_TIMING 1
48985 _ACEOF
48986
48987 fi
48988 echo "$as_me:$LINENO: result: $ntp_ok" >&5
48989 echo "${ECHO_T}$ntp_ok" >&6
48990
48991 echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5
48992 echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
48993 # Check whether --enable-dst_minutes or --disable-dst_minutes was given.
48994 if test "${enable_dst_minutes+set}" = set; then
48995   enableval="$enable_dst_minutes"
48996   ans=$enableval
48997 else
48998   ans=60
48999 fi;
49000
49001 cat >>confdefs.h <<_ACEOF
49002 #define DSTMINUTES $ans
49003 _ACEOF
49004
49005 echo "$as_me:$LINENO: result: $ans" >&5
49006 echo "${ECHO_T}$ans" >&6
49007
49008 echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5
49009 echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
49010 if test "${ac_cv_var_tty_clk+set}" = set; then
49011   echo $ECHO_N "(cached) $ECHO_C" >&6
49012 else
49013   case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
49014   *yes*) ac_cv_var_tty_clk=yes ;;
49015  esac
49016 fi
49017 echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5
49018 echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
49019 case "$ac_cv_var_tty_clk" in
49020  yes)
49021 cat >>confdefs.h <<\_ACEOF
49022 #define TTYCLK 1
49023 _ACEOF
49024  ;;
49025 esac
49026
49027 echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5
49028 echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
49029 if test "${ac_cv_var_ppsclock+set}" = set; then
49030   echo $ECHO_N "(cached) $ECHO_C" >&6
49031 else
49032   ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
49033 fi
49034 echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5
49035 echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
49036 case "$ac_cv_var_ppsclock" in
49037  yes)
49038 cat >>confdefs.h <<\_ACEOF
49039 #define PPS 1
49040 _ACEOF
49041  ;;
49042 esac
49043
49044 echo "$as_me:$LINENO: checking for kernel multicast support" >&5
49045 echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
49046 if test "${ac_cv_var_mcast+set}" = set; then
49047   echo $ECHO_N "(cached) $ECHO_C" >&6
49048 else
49049   ac_cv_var_mcast=no
49050   case "$host" in
49051    i386-sequent-sysv4) ;;
49052    *) cat >conftest.$ac_ext <<_ACEOF
49053 /* confdefs.h.  */
49054 _ACEOF
49055 cat confdefs.h >>conftest.$ac_ext
49056 cat >>conftest.$ac_ext <<_ACEOF
49057 /* end confdefs.h.  */
49058 #include <netinet/in.h>
49059 #ifdef IP_ADD_MEMBERSHIP
49060    yes
49061 #endif
49062
49063 _ACEOF
49064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49065   $EGREP "yes" >/dev/null 2>&1; then
49066   ac_cv_var_mcast=yes
49067 fi
49068 rm -f conftest*
49069  ;;
49070   esac
49071 fi
49072 echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5
49073 echo "${ECHO_T}$ac_cv_var_mcast" >&6
49074 case "$ac_cv_var_mcast" in
49075  yes)
49076
49077 cat >>confdefs.h <<\_ACEOF
49078 #define MCAST 1
49079 _ACEOF
49080
49081     echo "$as_me:$LINENO: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
49082 echo $ECHO_N "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... $ECHO_C" >&6
49083 if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then
49084   echo $ECHO_N "(cached) $ECHO_C" >&6
49085 else
49086   case "$host" in
49087          *-*-netbsd*|*-*-linux*)
49088             ac_cv_var_typeof_ip_multicast_loop=u_int
49089             ;;
49090          *-*-winnt*)
49091             ac_cv_var_typeof_ip_multicast_loop=BOOL
49092             ;;
49093          *) ac_cv_var_typeof_ip_multicast_loop=u_char
49094             ;;
49095         esac
49096 fi
49097 echo "$as_me:$LINENO: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
49098 echo "${ECHO_T}$ac_cv_var_typeof_ip_multicast_loop" >&6
49099
49100 cat >>confdefs.h <<_ACEOF
49101 #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
49102 _ACEOF
49103
49104     ;;
49105 esac
49106
49107 echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5
49108 echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
49109 if test "${ac_cv_var_ntp_syscalls+set}" = set; then
49110   echo $ECHO_N "(cached) $ECHO_C" >&6
49111 else
49112   ac_cv_var_ntp_syscalls=no
49113  case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
49114   yesyes*)
49115     ac_cv_var_ntp_syscalls=libc
49116     ;;
49117   *yes)
49118     ac_cv_var_ntp_syscalls=inline
49119     ;;
49120   *) cat >conftest.$ac_ext <<_ACEOF
49121 /* confdefs.h.  */
49122 _ACEOF
49123 cat confdefs.h >>conftest.$ac_ext
49124 cat >>conftest.$ac_ext <<_ACEOF
49125 /* end confdefs.h.  */
49126 #include <sys/syscall.h>
49127 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
49128            yes
49129 #endif
49130
49131 _ACEOF
49132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49133   $EGREP "yes" >/dev/null 2>&1; then
49134   ac_cv_var_ntp_syscalls=kernel
49135 fi
49136 rm -f conftest*
49137
49138     ;;
49139  esac
49140 fi
49141 echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5
49142 echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
49143 case "$ac_cv_var_ntp_syscalls" in
49144  libc)
49145
49146 cat >>confdefs.h <<\_ACEOF
49147 #define NTP_SYSCALLS_LIBC 1
49148 _ACEOF
49149
49150     ;;
49151  kernel)
49152
49153 cat >>confdefs.h <<\_ACEOF
49154 #define NTP_SYSCALLS_STD 1
49155 _ACEOF
49156
49157     ;;
49158  *)
49159     ;;
49160 esac
49161
49162 echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5
49163 echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
49164 if test "${ac_cv_var_sta_fll+set}" = set; then
49165   echo $ECHO_N "(cached) $ECHO_C" >&6
49166 else
49167   cat >conftest.$ac_ext <<_ACEOF
49168 /* confdefs.h.  */
49169 _ACEOF
49170 cat confdefs.h >>conftest.$ac_ext
49171 cat >>conftest.$ac_ext <<_ACEOF
49172 /* end confdefs.h.  */
49173 #include <sys/timex.h>
49174 #ifdef STA_FLL
49175     yes
49176 #endif
49177
49178 _ACEOF
49179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49180   $EGREP "yes" >/dev/null 2>&1; then
49181   ac_cv_var_sta_fll=yes
49182 else
49183   ac_cv_var_sta_fll=no
49184 fi
49185 rm -f conftest*
49186
49187 fi
49188 echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5
49189 echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
49190
49191 echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5
49192 echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
49193 if test "${ac_cv_var_kernel_pll+set}" = set; then
49194   echo $ECHO_N "(cached) $ECHO_C" >&6
49195 else
49196   case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
49197  *no*)
49198     ac_cv_var_kernel_pll=no
49199     ;;
49200  *) ac_cv_var_kernel_pll=yes
49201     ;;
49202 esac
49203 fi
49204 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5
49205 echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
49206 case "$ac_cv_var_kernel_pll" in
49207  yes)
49208
49209 cat >>confdefs.h <<\_ACEOF
49210 #define KERNEL_PLL 1
49211 _ACEOF
49212
49213     ;;
49214 esac
49215
49216 echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
49217 echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
49218 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
49219   echo $ECHO_N "(cached) $ECHO_C" >&6
49220 else
49221   ans=no
49222   case "$host" in
49223    *-fujitsu-uxp*)
49224       ans=yes
49225       ;;
49226    *-ncr-sysv4*)
49227       ans=yes
49228       ;;
49229    *-univel-sysv*)
49230       ans=yes
49231       ;;
49232   esac
49233   ac_cv_var_size_returned_in_buffer=$ans
49234 fi
49235 echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5
49236 echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
49237 case "$ac_cv_var_size_returned_in_buffer" in
49238  yes)
49239 cat >>confdefs.h <<\_ACEOF
49240 #define SIZE_RETURNED_IN_BUFFER 1
49241 _ACEOF
49242  ;;
49243 esac
49244
49245
49246 # Check for ioctls TIOCGPPSEV
49247 echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5
49248 echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
49249 if test "$ac_cv_header_termios_h" = "yes"; then
49250     cat >conftest.$ac_ext <<_ACEOF
49251 /* confdefs.h.  */
49252 _ACEOF
49253 cat confdefs.h >>conftest.$ac_ext
49254 cat >>conftest.$ac_ext <<_ACEOF
49255 /* end confdefs.h.  */
49256 #include <termios.h>
49257 #ifdef TIOCGPPSEV
49258          yes
49259 #endif
49260
49261 _ACEOF
49262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49263   $EGREP "yes" >/dev/null 2>&1; then
49264   ntp_ok=yes
49265 else
49266   ntp_ok=no
49267 fi
49268 rm -f conftest*
49269
49270 else
49271 ntp_ok=no
49272 fi
49273 if test "$ntp_ok" = "yes"; then
49274
49275 cat >>confdefs.h <<\_ACEOF
49276 #define HAVE_TIOCGPPSEV 1
49277 _ACEOF
49278
49279     ac_cv_var_oncore_ok=yes
49280 fi
49281 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49282 echo "${ECHO_T}$ntp_ok" >&6
49283
49284 # Check for ioctls TIOCSPPS
49285 echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5
49286 echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
49287 if test "$ac_cv_header_termios_h" = "yes"; then
49288     cat >conftest.$ac_ext <<_ACEOF
49289 /* confdefs.h.  */
49290 _ACEOF
49291 cat confdefs.h >>conftest.$ac_ext
49292 cat >>conftest.$ac_ext <<_ACEOF
49293 /* end confdefs.h.  */
49294 #include <termios.h>
49295 #ifdef TIOCSPPS
49296          yes
49297 #endif
49298
49299 _ACEOF
49300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49301   $EGREP "yes" >/dev/null 2>&1; then
49302   ntp_ok=yes
49303 else
49304   ntp_ok=no
49305 fi
49306 rm -f conftest*
49307
49308 else
49309     ntp_ok=no
49310 fi
49311
49312 if test "$ntp_ok" = "yes"; then
49313
49314 cat >>confdefs.h <<\_ACEOF
49315 #define HAVE_TIOCSPPS 1
49316 _ACEOF
49317
49318 fi
49319 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49320 echo "${ECHO_T}$ntp_ok" >&6
49321
49322 # Check for ioctls CIOGETEV
49323 echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5
49324 echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
49325 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
49326     cat >conftest.$ac_ext <<_ACEOF
49327 /* confdefs.h.  */
49328 _ACEOF
49329 cat confdefs.h >>conftest.$ac_ext
49330 cat >>conftest.$ac_ext <<_ACEOF
49331 /* end confdefs.h.  */
49332 #include <sys/ppsclock.h>
49333 #ifdef CIOGETEV
49334          yes
49335 #endif
49336
49337 _ACEOF
49338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49339   $EGREP "yes" >/dev/null 2>&1; then
49340   ntp_ok=yes
49341 else
49342   ntp_ok=no
49343 fi
49344 rm -f conftest*
49345
49346 else
49347 ntp_ok=no
49348 fi
49349 if test "$ntp_ok" = "yes"; then
49350     ac_cv_var_oncore_ok=yes
49351
49352 cat >>confdefs.h <<\_ACEOF
49353 #define HAVE_CIOGETEV 1
49354 _ACEOF
49355
49356 fi
49357 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49358 echo "${ECHO_T}$ntp_ok" >&6
49359
49360
49361 # ATOM/PPSAPI stuff.
49362
49363 # ATOM used to require struct timespec, but that's been fixed now.
49364
49365 # case "$ac_cv_struct_timespec" in
49366 #  'yes')
49367 #     ac_cv_var_atom_ok=yes
49368 #     ;;
49369 # esac
49370 ac_cv_var_atom_ok=yes
49371
49372 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
49373
49374 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
49375
49376 # The PPSAPI needs struct timespec.
49377
49378 # The PPSAPI also needs a timepps header.
49379
49380 case "$ac_cv_c_inline$ac_cv_struct_timespec" in
49381  inlineyes)
49382     case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
49383      *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
49384
49385 cat >>confdefs.h <<\_ACEOF
49386 #define HAVE_PPSAPI 1
49387 _ACEOF
49388
49389         ac_cv_var_jupiter_ok=yes
49390         ac_cv_var_oncore_ok=yes
49391         ac_cv_var_parse_ok=yes
49392         ac_cv_var_ripe_ncc_ok=yes
49393         ;;
49394     esac
49395     ;;
49396 esac
49397
49398 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
49399 if test "${ac_cv_header_linux_serial_h+set}" = set; then
49400   echo "$as_me:$LINENO: checking for linux/serial.h" >&5
49401 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
49402 if test "${ac_cv_header_linux_serial_h+set}" = set; then
49403   echo $ECHO_N "(cached) $ECHO_C" >&6
49404 fi
49405 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
49406 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
49407 else
49408   # Is the header compilable?
49409 echo "$as_me:$LINENO: checking linux/serial.h usability" >&5
49410 echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6
49411 cat >conftest.$ac_ext <<_ACEOF
49412 /* confdefs.h.  */
49413 _ACEOF
49414 cat confdefs.h >>conftest.$ac_ext
49415 cat >>conftest.$ac_ext <<_ACEOF
49416 /* end confdefs.h.  */
49417 $ac_includes_default
49418 #include <linux/serial.h>
49419 _ACEOF
49420 rm -f conftest.$ac_objext
49421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49422   (eval $ac_compile) 2>conftest.er1
49423   ac_status=$?
49424   grep -v '^ *+' conftest.er1 >conftest.err
49425   rm -f conftest.er1
49426   cat conftest.err >&5
49427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49428   (exit $ac_status); } &&
49429          { ac_try='test -z "$ac_c_werror_flag"
49430                          || test ! -s conftest.err'
49431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49432   (eval $ac_try) 2>&5
49433   ac_status=$?
49434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49435   (exit $ac_status); }; } &&
49436          { ac_try='test -s conftest.$ac_objext'
49437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49438   (eval $ac_try) 2>&5
49439   ac_status=$?
49440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49441   (exit $ac_status); }; }; then
49442   ac_header_compiler=yes
49443 else
49444   echo "$as_me: failed program was:" >&5
49445 sed 's/^/| /' conftest.$ac_ext >&5
49446
49447 ac_header_compiler=no
49448 fi
49449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49451 echo "${ECHO_T}$ac_header_compiler" >&6
49452
49453 # Is the header present?
49454 echo "$as_me:$LINENO: checking linux/serial.h presence" >&5
49455 echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6
49456 cat >conftest.$ac_ext <<_ACEOF
49457 /* confdefs.h.  */
49458 _ACEOF
49459 cat confdefs.h >>conftest.$ac_ext
49460 cat >>conftest.$ac_ext <<_ACEOF
49461 /* end confdefs.h.  */
49462 #include <linux/serial.h>
49463 _ACEOF
49464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49466   ac_status=$?
49467   grep -v '^ *+' conftest.er1 >conftest.err
49468   rm -f conftest.er1
49469   cat conftest.err >&5
49470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49471   (exit $ac_status); } >/dev/null; then
49472   if test -s conftest.err; then
49473     ac_cpp_err=$ac_c_preproc_warn_flag
49474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49475   else
49476     ac_cpp_err=
49477   fi
49478 else
49479   ac_cpp_err=yes
49480 fi
49481 if test -z "$ac_cpp_err"; then
49482   ac_header_preproc=yes
49483 else
49484   echo "$as_me: failed program was:" >&5
49485 sed 's/^/| /' conftest.$ac_ext >&5
49486
49487   ac_header_preproc=no
49488 fi
49489 rm -f conftest.err conftest.$ac_ext
49490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49491 echo "${ECHO_T}$ac_header_preproc" >&6
49492
49493 # So?  What about this header?
49494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49495   yes:no: )
49496     { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5
49497 echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49498     { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the compiler's result" >&5
49499 echo "$as_me: WARNING: linux/serial.h: proceeding with the compiler's result" >&2;}
49500     ac_header_preproc=yes
49501     ;;
49502   no:yes:* )
49503     { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5
49504 echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;}
49505     { echo "$as_me:$LINENO: WARNING: linux/serial.h:     check for missing prerequisite headers?" >&5
49506 echo "$as_me: WARNING: linux/serial.h:     check for missing prerequisite headers?" >&2;}
49507     { echo "$as_me:$LINENO: WARNING: linux/serial.h: see the Autoconf documentation" >&5
49508 echo "$as_me: WARNING: linux/serial.h: see the Autoconf documentation" >&2;}
49509     { echo "$as_me:$LINENO: WARNING: linux/serial.h:     section \"Present But Cannot Be Compiled\"" >&5
49510 echo "$as_me: WARNING: linux/serial.h:     section \"Present But Cannot Be Compiled\"" >&2;}
49511     { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5
49512 echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;}
49513     { echo "$as_me:$LINENO: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&5
49514 echo "$as_me: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&2;}
49515     (
49516       cat <<\_ASBOX
49517 ## ------------------------------ ##
49518 ## Report this to the ntp lists.  ##
49519 ## ------------------------------ ##
49520 _ASBOX
49521     ) |
49522       sed "s/^/$as_me: WARNING:     /" >&2
49523     ;;
49524 esac
49525 echo "$as_me:$LINENO: checking for linux/serial.h" >&5
49526 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
49527 if test "${ac_cv_header_linux_serial_h+set}" = set; then
49528   echo $ECHO_N "(cached) $ECHO_C" >&6
49529 else
49530   ac_cv_header_linux_serial_h=$ac_header_preproc
49531 fi
49532 echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5
49533 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
49534
49535 fi
49536
49537
49538 echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5
49539 echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
49540 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
49541   yesyes)
49542     cat >conftest.$ac_ext <<_ACEOF
49543 /* confdefs.h.  */
49544 _ACEOF
49545 cat confdefs.h >>conftest.$ac_ext
49546 cat >>conftest.$ac_ext <<_ACEOF
49547 /* end confdefs.h.  */
49548 #include <sys/time.h>
49549 typedef int u_int;
49550
49551 #include <sys/ppsclock.h>
49552 #include <linux/serial.h>
49553
49554 #ifdef TIOCGSERIAL
49555 #ifdef TIOCSSERIAL
49556 #ifdef ASYNC_PPS_CD_POS
49557 #ifdef ASYNC_PPS_CD_NEG
49558 #ifdef CIOGETEV
49559          yes
49560 #endif
49561 #endif
49562 #endif
49563 #endif
49564 #endif
49565
49566 _ACEOF
49567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49568   $EGREP "yes" >/dev/null 2>&1; then
49569   ntp_ok=yes
49570 fi
49571 rm -f conftest*
49572
49573         ;;
49574   *)
49575         ntp_ok=no
49576         ;;
49577 esac
49578 if test "$ntp_ok" = "yes"; then
49579
49580 cat >>confdefs.h <<\_ACEOF
49581 #define HAVE_TIO_SERIAL_STUFF 1
49582 _ACEOF
49583
49584 fi
49585 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49586 echo "${ECHO_T}$ntp_ok" >&6
49587
49588 # Check for SHMEM_STATUS support
49589 echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5
49590 echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
49591 case "$ac_cv_header_sys_mman_h" in
49592  yes) ntp_ok=yes ;;
49593  *)   ntp_ok=no  ;;
49594 esac
49595 if test "$ntp_ok" = "yes"; then
49596
49597 cat >>confdefs.h <<\_ACEOF
49598 #define ONCORE_SHMEM_STATUS 1
49599 _ACEOF
49600
49601 fi
49602 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49603 echo "${ECHO_T}$ntp_ok" >&6
49604
49605
49606 ntp_refclock=no
49607
49608 # HPUX only, and by explicit request
49609 echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5
49610 echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
49611 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
49612 if test "${enable_BANCOMM+set}" = set; then
49613   enableval="$enable_BANCOMM"
49614   ntp_ok=$enableval
49615 else
49616   ntp_ok=no
49617 fi;
49618 if test "$ntp_ok" = "yes"; then
49619     ntp_refclock=yes
49620
49621 cat >>confdefs.h <<\_ACEOF
49622 #define CLOCK_BANC 1
49623 _ACEOF
49624
49625 fi
49626 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49627 echo "${ECHO_T}$ntp_ok" >&6
49628 case "$ntp_ok$host" in
49629  yes*-*-hpux*) ;;
49630  yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
49631 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
49632 esac
49633
49634 #HPUX only, and only by explicit request
49635 echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5
49636 echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
49637 # Check whether --enable-GPSVME or --disable-GPSVME was given.
49638 if test "${enable_GPSVME+set}" = set; then
49639   enableval="$enable_GPSVME"
49640   ntp_ok=$enableval
49641 else
49642   ntp_ok=no
49643 fi;
49644 if test "$ntp_ok" = "yes"; then
49645     ntp_refclock=yes
49646
49647 cat >>confdefs.h <<\_ACEOF
49648 #define CLOCK_GPSVME 1
49649 _ACEOF
49650
49651 fi
49652 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49653 echo "${ECHO_T}$ntp_ok" >&6
49654 case "$ntp_ok$host" in
49655  yes*-*-hpux*) ;;
49656  yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
49657 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
49658 esac
49659
49660 echo "$as_me:$LINENO: checking for PCL720 clock support" >&5
49661 echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
49662 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
49663  yesyesyes)
49664
49665 cat >>confdefs.h <<\_ACEOF
49666 #define CLOCK_PPS720 1
49667 _ACEOF
49668
49669     ans=yes
49670     ;;
49671  *)
49672     ans=no
49673     ;;
49674 esac
49675 echo "$as_me:$LINENO: result: $ans" >&5
49676 echo "${ECHO_T}$ans" >&6
49677
49678 echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5
49679 echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
49680 # Check whether --enable-all-clocks or --disable-all-clocks was given.
49681 if test "${enable_all_clocks+set}" = set; then
49682   enableval="$enable_all_clocks"
49683   ntp_eac=$enableval
49684 else
49685   ntp_eac=yes
49686 fi;
49687 echo "$as_me:$LINENO: result: $ntp_eac" >&5
49688 echo "${ECHO_T}$ntp_eac" >&6
49689
49690 # HMS: Should we also require ac_cv_var_parse_ok?
49691 echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5
49692 echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
49693 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
49694  yes*yes*)
49695     ntp_canparse=yes
49696     ;;
49697  *) ntp_canparse=no
49698     ;;
49699 esac
49700 echo "$as_me:$LINENO: result: $ntp_canparse" >&5
49701 echo "${ECHO_T}$ntp_canparse" >&6
49702
49703 echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5
49704 echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
49705 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
49706  *yes*)
49707     ntp_canaudio=yes
49708
49709 cat >>confdefs.h <<\_ACEOF
49710 #define HAVE_AUDIO
49711 _ACEOF
49712
49713     ;;
49714  *) ntp_canaudio=no ;;
49715 esac
49716 echo "$as_me:$LINENO: result: $ntp_canaudio" >&5
49717 echo "${ECHO_T}$ntp_canaudio" >&6
49718
49719 echo "$as_me:$LINENO: checking if we have support for the SHM refclock interface" >&5
49720 echo $ECHO_N "checking if we have support for the SHM refclock interface... $ECHO_C" >&6
49721 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
49722  yesyes)
49723     ntp_canshm=yes
49724     ;;
49725  *) ntp_canshm=no ;;
49726 esac
49727 echo "$as_me:$LINENO: result: $ntp_canshm" >&5
49728 echo "${ECHO_T}$ntp_canshm" >&6
49729
49730 # Requires modem control
49731 echo "$as_me:$LINENO: checking ACTS modem service" >&5
49732 echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
49733 # Check whether --enable-ACTS or --disable-ACTS was given.
49734 if test "${enable_ACTS+set}" = set; then
49735   enableval="$enable_ACTS"
49736   ntp_ok=$enableval
49737 else
49738   cat >conftest.$ac_ext <<_ACEOF
49739 /* confdefs.h.  */
49740 _ACEOF
49741 cat confdefs.h >>conftest.$ac_ext
49742 cat >>conftest.$ac_ext <<_ACEOF
49743 /* end confdefs.h.  */
49744 #include <termios.h>
49745 #ifdef HAVE_SYS_IOCTL_H
49746 #include <sys/ioctl.h>
49747 #endif
49748 #ifdef TIOCMBIS
49749          yes
49750 #endif
49751
49752 _ACEOF
49753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49754   $EGREP "yes" >/dev/null 2>&1; then
49755   ntp_ok=$ntp_eac
49756 else
49757   ntp_ok=no
49758 fi
49759 rm -f conftest*
49760
49761 fi;
49762 if test "$ntp_ok" = "yes"; then
49763     ntp_refclock=yes
49764
49765 cat >>confdefs.h <<\_ACEOF
49766 #define CLOCK_ACTS 1
49767 _ACEOF
49768
49769 fi
49770 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49771 echo "${ECHO_T}$ntp_ok" >&6
49772
49773 echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5
49774 echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
49775 # Check whether --enable-ARBITER or --disable-ARBITER was given.
49776 if test "${enable_ARBITER+set}" = set; then
49777   enableval="$enable_ARBITER"
49778   ntp_ok=$enableval
49779 else
49780   ntp_ok=$ntp_eac
49781 fi;
49782 if test "$ntp_ok" = "yes"; then
49783     ntp_refclock=yes
49784
49785 cat >>confdefs.h <<\_ACEOF
49786 #define CLOCK_ARBITER 1
49787 _ACEOF
49788
49789 fi
49790 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49791 echo "${ECHO_T}$ntp_ok" >&6
49792
49793 echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5
49794 echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
49795 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
49796 if test "${enable_ARCRON_MSF+set}" = set; then
49797   enableval="$enable_ARCRON_MSF"
49798   ntp_ok=$enableval
49799 else
49800   ntp_ok=$ntp_eac
49801 fi;
49802 if test "$ntp_ok" = "yes"; then
49803     ntp_refclock=yes
49804
49805 cat >>confdefs.h <<\_ACEOF
49806 #define CLOCK_ARCRON_MSF 1
49807 _ACEOF
49808
49809 fi
49810 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49811 echo "${ECHO_T}$ntp_ok" >&6
49812
49813 echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5
49814 echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
49815 # Check whether --enable-AS2201 or --disable-AS2201 was given.
49816 if test "${enable_AS2201+set}" = set; then
49817   enableval="$enable_AS2201"
49818   ntp_ok=$enableval
49819 else
49820   ntp_ok=$ntp_eac
49821 fi;
49822 if test "$ntp_ok" = "yes"; then
49823     ntp_refclock=yes
49824
49825 cat >>confdefs.h <<\_ACEOF
49826 #define CLOCK_AS2201 1
49827 _ACEOF
49828
49829 fi
49830 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49831 echo "${ECHO_T}$ntp_ok" >&6
49832
49833 echo "$as_me:$LINENO: checking ATOM PPS interface" >&5
49834 echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
49835 # Check whether --enable-ATOM or --disable-ATOM was given.
49836 if test "${enable_ATOM+set}" = set; then
49837   enableval="$enable_ATOM"
49838   ntp_ok=$enableval
49839 else
49840   ntp_ok=$ntp_eac
49841 fi;
49842 case "$ac_cv_var_atom_ok" in
49843  no) ntp_ok=no ;;
49844 esac
49845 if test "$ntp_ok" = "yes"; then
49846     ntp_refclock=yes
49847
49848 cat >>confdefs.h <<\_ACEOF
49849 #define CLOCK_ATOM 1
49850 _ACEOF
49851
49852 fi
49853 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49854 echo "${ECHO_T}$ntp_ok" >&6
49855
49856 echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5
49857 echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
49858 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
49859 if test "${enable_CHRONOLOG+set}" = set; then
49860   enableval="$enable_CHRONOLOG"
49861   ntp_ok=$enableval
49862 else
49863   ntp_ok=$ntp_eac
49864 fi;
49865 if test "$ntp_ok" = "yes"; then
49866     ntp_refclock=yes
49867
49868 cat >>confdefs.h <<\_ACEOF
49869 #define CLOCK_CHRONOLOG 1
49870 _ACEOF
49871
49872 fi
49873 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49874 echo "${ECHO_T}$ntp_ok" >&6
49875
49876 echo "$as_me:$LINENO: checking CHU modem/decoder" >&5
49877 echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
49878 # Check whether --enable-CHU or --disable-CHU was given.
49879 if test "${enable_CHU+set}" = set; then
49880   enableval="$enable_CHU"
49881   ntp_ok=$enableval
49882 else
49883   ntp_ok=$ntp_eac
49884 fi;
49885 if test "$ntp_ok" = "yes"; then
49886     ntp_refclock=yes
49887
49888 cat >>confdefs.h <<\_ACEOF
49889 #define CLOCK_CHU 1
49890 _ACEOF
49891
49892 fi
49893 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49894 echo "${ECHO_T}$ntp_ok" >&6
49895 ac_refclock_chu=$ntp_ok
49896
49897 echo "$as_me:$LINENO: checking CHU audio/decoder" >&5
49898 echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
49899 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
49900 if test "${enable_AUDIO_CHU+set}" = set; then
49901   enableval="$enable_AUDIO_CHU"
49902   ntp_ok=$enableval
49903 else
49904   case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
49905  *no*)  ntp_ok=no  ;;
49906  *)     ntp_ok=yes ;;
49907 esac
49908 fi;
49909 if test "$ntp_ok" = "yes"; then
49910
49911 cat >>confdefs.h <<\_ACEOF
49912 #define AUDIO_CHU 1
49913 _ACEOF
49914
49915 fi
49916 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49917 echo "${ECHO_T}$ntp_ok" >&6
49918 # We used to check for sunos/solaris target...
49919 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
49920  yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5
49921 echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
49922 esac
49923
49924 # Not under HP-UX
49925 echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5
49926 echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
49927 # Check whether --enable-DATUM or --disable-DATUM was given.
49928 if test "${enable_DATUM+set}" = set; then
49929   enableval="$enable_DATUM"
49930   ntp_ok=$enableval
49931 else
49932   case "$ac_cv_header_termios_h" in
49933     yes)
49934         ntp_ok=$ntp_eac
49935         ;;
49936     *) ntp_ok=no
49937         ;;
49938     esac
49939 fi;
49940 if test "$ntp_ok" = "yes"; then
49941     ntp_refclock=yes
49942
49943 cat >>confdefs.h <<\_ACEOF
49944 #define CLOCK_DATUM 1
49945 _ACEOF
49946
49947 fi
49948 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49949 echo "${ECHO_T}$ntp_ok" >&6
49950
49951 echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5
49952 echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
49953 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
49954 if test "${enable_DUMBCLOCK+set}" = set; then
49955   enableval="$enable_DUMBCLOCK"
49956   ntp_ok=$enableval
49957 else
49958   ntp_ok=$ntp_eac
49959 fi;
49960 if test "$ntp_ok" = "yes"; then
49961     ntp_refclock=yes
49962
49963 cat >>confdefs.h <<\_ACEOF
49964 #define CLOCK_DUMBCLOCK 1
49965 _ACEOF
49966
49967 fi
49968 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49969 echo "${ECHO_T}$ntp_ok" >&6
49970
49971 echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5
49972 echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
49973 # Check whether --enable-FG or --disable-FG was given.
49974 if test "${enable_FG+set}" = set; then
49975   enableval="$enable_FG"
49976   ntp_ok=$enableval
49977 else
49978   ntp_ok=$ntp_eac
49979 fi;
49980 if test "$ntp_ok" = "yes"; then
49981     ntp_refclock=yes
49982
49983 cat >>confdefs.h <<\_ACEOF
49984 #define CLOCK_FG 1
49985 _ACEOF
49986
49987 fi
49988 echo "$as_me:$LINENO: result: $ntp_ok" >&5
49989 echo "${ECHO_T}$ntp_ok" >&6
49990
49991 # Requires modem control
49992 echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5
49993 echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
49994 # Check whether --enable-HEATH or --disable-HEATH was given.
49995 if test "${enable_HEATH+set}" = set; then
49996   enableval="$enable_HEATH"
49997   ntp_ok=$enableval
49998 else
49999   cat >conftest.$ac_ext <<_ACEOF
50000 /* confdefs.h.  */
50001 _ACEOF
50002 cat confdefs.h >>conftest.$ac_ext
50003 cat >>conftest.$ac_ext <<_ACEOF
50004 /* end confdefs.h.  */
50005 #include <termios.h>
50006 #ifdef HAVE_SYS_IOCTL_H
50007 #include <sys/ioctl.h>
50008 #endif
50009 #ifdef TIOCMBIS
50010          yes
50011 #endif
50012
50013 _ACEOF
50014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50015   $EGREP "yes" >/dev/null 2>&1; then
50016   ntp_ok=$ntp_eac
50017 else
50018   ntp_ok=no
50019 fi
50020 rm -f conftest*
50021
50022 fi;
50023 if test "$ntp_ok" = "yes"; then
50024     ntp_refclock=yes
50025
50026 cat >>confdefs.h <<\_ACEOF
50027 #define CLOCK_HEATH 1
50028 _ACEOF
50029
50030 fi
50031 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50032 echo "${ECHO_T}$ntp_ok" >&6
50033
50034 echo "$as_me:$LINENO: checking for hopf serial clock device" >&5
50035 echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
50036 # Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
50037 if test "${enable_HOPFSERIAL+set}" = set; then
50038   enableval="$enable_HOPFSERIAL"
50039   ntp_ok=$enableval
50040 else
50041   ntp_ok=$ntp_eac
50042 fi;
50043 if test "$ntp_ok" = "yes"; then
50044     ntp_refclock=yes
50045
50046 cat >>confdefs.h <<\_ACEOF
50047 #define CLOCK_HOPF_SERIAL 1
50048 _ACEOF
50049
50050 fi
50051 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50052 echo "${ECHO_T}$ntp_ok" >&6
50053
50054 echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5
50055 echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
50056 # Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
50057 if test "${enable_HOPFPCI+set}" = set; then
50058   enableval="$enable_HOPFPCI"
50059   ntp_ok=$enableval
50060 else
50061   ntp_ok=$ntp_eac
50062 fi;
50063 if test "$ntp_ok" = "yes"; then
50064     ntp_refclock=yes
50065
50066 cat >>confdefs.h <<\_ACEOF
50067 #define CLOCK_HOPF_PCI 1
50068 _ACEOF
50069
50070 fi
50071 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50072 echo "${ECHO_T}$ntp_ok" >&6
50073
50074 echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5
50075 echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
50076 # Check whether --enable-HPGPS or --disable-HPGPS was given.
50077 if test "${enable_HPGPS+set}" = set; then
50078   enableval="$enable_HPGPS"
50079   ntp_ok=$enableval
50080 else
50081   ntp_ok=$ntp_eac
50082 fi;
50083 if test "$ntp_ok" = "yes"; then
50084     ntp_refclock=yes
50085
50086 cat >>confdefs.h <<\_ACEOF
50087 #define CLOCK_HPGPS 1
50088 _ACEOF
50089
50090 fi
50091 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50092 echo "${ECHO_T}$ntp_ok" >&6
50093
50094 echo "$as_me:$LINENO: checking IRIG audio decoder" >&5
50095 echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6
50096 # Check whether --enable-IRIG or --disable-IRIG was given.
50097 if test "${enable_IRIG+set}" = set; then
50098   enableval="$enable_IRIG"
50099   ntp_ok=$enableval
50100 else
50101   case "$ntp_eac$ntp_canaudio" in
50102      *no*)      ntp_ok=no  ;;
50103      *)         ntp_ok=yes ;;
50104     esac
50105 fi;
50106 if test "$ntp_ok" = "yes"; then
50107     ntp_refclock=yes
50108
50109 cat >>confdefs.h <<\_ACEOF
50110 #define CLOCK_IRIG 1
50111 _ACEOF
50112
50113 fi
50114 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50115 echo "${ECHO_T}$ntp_ok" >&6
50116 case "$ntp_ok$ntp_canaudio" in
50117  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
50118 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
50119 esac
50120
50121 echo "$as_me:$LINENO: checking for JJY receiver" >&5
50122 echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6
50123 # Check whether --enable-JJY or --disable-JJY was given.
50124 if test "${enable_JJY+set}" = set; then
50125   enableval="$enable_JJY"
50126   ntp_ok=$enableval
50127 else
50128   ntp_ok=$ntp_eac
50129 fi;
50130 if test "$ntp_ok" = "yes"; then
50131     ntp_refclock=yes
50132
50133 cat >>confdefs.h <<\_ACEOF
50134 #define CLOCK_JJY 1
50135 _ACEOF
50136
50137 fi
50138 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50139 echo "${ECHO_T}$ntp_ok" >&6
50140
50141 echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5
50142 echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
50143 # Check whether --enable-JUPITER or --disable-JUPITER was given.
50144 if test "${enable_JUPITER+set}" = set; then
50145   enableval="$enable_JUPITER"
50146   ntp_ok=$enableval
50147 else
50148   ntp_ok=$ntp_eac
50149 fi;
50150 case "$ac_cv_var_jupiter_ok" in
50151  no) ntp_ok=no ;;
50152 esac
50153 if test "$ntp_ok" = "yes"; then
50154     ntp_refclock=yes
50155
50156 cat >>confdefs.h <<\_ACEOF
50157 #define CLOCK_JUPITER 1
50158 _ACEOF
50159
50160 fi
50161 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50162 echo "${ECHO_T}$ntp_ok" >&6
50163
50164 echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5
50165 echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
50166 # Check whether --enable-LEITCH or --disable-LEITCH was given.
50167 if test "${enable_LEITCH+set}" = set; then
50168   enableval="$enable_LEITCH"
50169   ntp_ok=$enableval
50170 else
50171   ntp_ok=$ntp_eac
50172 fi;
50173 if test "$ntp_ok" = "yes"; then
50174     ntp_refclock=yes
50175
50176 cat >>confdefs.h <<\_ACEOF
50177 #define CLOCK_LEITCH 1
50178 _ACEOF
50179
50180 fi
50181 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50182 echo "${ECHO_T}$ntp_ok" >&6
50183
50184 echo "$as_me:$LINENO: checking local clock reference" >&5
50185 echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
50186 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
50187 if test "${enable_LOCAL_CLOCK+set}" = set; then
50188   enableval="$enable_LOCAL_CLOCK"
50189   ntp_ok=$enableval
50190 else
50191   ntp_ok=$ntp_eac
50192 fi;
50193 if test "$ntp_ok" = "yes"; then
50194     ntp_refclock=yes
50195
50196 cat >>confdefs.h <<\_ACEOF
50197 #define CLOCK_LOCAL 1
50198 _ACEOF
50199
50200 fi
50201 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50202 echo "${ECHO_T}$ntp_ok" >&6
50203
50204
50205 # Not Ultrix
50206 echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5
50207 echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
50208 # Check whether --enable-MX4200 or --disable-MX4200 was given.
50209 if test "${enable_MX4200+set}" = set; then
50210   enableval="$enable_MX4200"
50211   ntp_ok=$enableval
50212 else
50213   case "$ac_cv_var_ppsclock" in
50214      yes) ntp_ok=$ntp_eac
50215         ;;
50216      *) ntp_ok=no
50217         ;;
50218     esac
50219 fi;
50220 if test "$ntp_ok" = "yes"; then
50221     ntp_refclock=yes
50222
50223 cat >>confdefs.h <<\_ACEOF
50224 #define CLOCK_MX4200 1
50225 _ACEOF
50226
50227 fi
50228 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50229 echo "${ECHO_T}$ntp_ok" >&6
50230 case "$ntp_ok$host" in
50231  yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
50232 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
50233 esac
50234
50235 echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5
50236 echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6
50237 # Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given.
50238 if test "${enable_NEOCLOCK4X+set}" = set; then
50239   enableval="$enable_NEOCLOCK4X"
50240   ntp_ok=$enableval
50241 else
50242   ntp_ok=$ntp_eac
50243 fi;
50244 if test "$ntp_ok" = "yes"; then
50245     ntp_refclock=yes
50246
50247 cat >>confdefs.h <<\_ACEOF
50248 #define CLOCK_NEOCLOCK4X 1
50249 _ACEOF
50250
50251 fi
50252 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50253 echo "${ECHO_T}$ntp_ok" >&6
50254
50255 echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5
50256 echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
50257 # Check whether --enable-NMEA or --disable-NMEA was given.
50258 if test "${enable_NMEA+set}" = set; then
50259   enableval="$enable_NMEA"
50260   ntp_ok=$enableval
50261 else
50262   ntp_ok=$ntp_eac
50263 fi;
50264 if test "$ntp_ok" = "yes"; then
50265     ntp_refclock=yes
50266
50267 cat >>confdefs.h <<\_ACEOF
50268 #define CLOCK_NMEA 1
50269 _ACEOF
50270
50271 fi
50272 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50273 echo "${ECHO_T}$ntp_ok" >&6
50274
50275 echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
50276 echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
50277 # Check whether --enable-ONCORE or --disable-ONCORE was given.
50278 if test "${enable_ONCORE+set}" = set; then
50279   enableval="$enable_ONCORE"
50280   ntp_ok=$enableval
50281 else
50282   ntp_ok=$ntp_eac
50283 fi;
50284 case "$ac_cv_var_oncore_ok" in
50285  no) ntp_ok=no ;;
50286 esac
50287 if test "$ntp_ok" = "yes"; then
50288     ntp_refclock=yes
50289
50290 cat >>confdefs.h <<\_ACEOF
50291 #define CLOCK_ONCORE 1
50292 _ACEOF
50293
50294 fi
50295 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50296 echo "${ECHO_T}$ntp_ok" >&6
50297
50298 echo "$as_me:$LINENO: checking for Palisade clock" >&5
50299 echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
50300 # Check whether --enable-PALISADE or --disable-PALISADE was given.
50301 if test "${enable_PALISADE+set}" = set; then
50302   enableval="$enable_PALISADE"
50303   ntp_ok=$enableval
50304 else
50305   case "$ac_cv_header_termios_h" in
50306     yes)
50307         ntp_ok=$ntp_eac
50308         ;;
50309     *) ntp_ok=no
50310         ;;
50311     esac
50312 fi;
50313
50314 if test "$ntp_ok" = "yes"; then
50315     ntp_refclock=yes
50316
50317 cat >>confdefs.h <<\_ACEOF
50318 #define CLOCK_PALISADE 1
50319 _ACEOF
50320
50321 fi
50322 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50323 echo "${ECHO_T}$ntp_ok" >&6
50324
50325 echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5
50326 echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
50327 # Check whether --enable-PCF or --disable-PCF was given.
50328 if test "${enable_PCF+set}" = set; then
50329   enableval="$enable_PCF"
50330   ntp_ok=$enableval
50331 else
50332   ntp_ok=$ntp_eac
50333 fi;
50334 if test "$ntp_ok" = "yes"; then
50335     ntp_refclock=yes
50336
50337 cat >>confdefs.h <<\_ACEOF
50338 #define CLOCK_PCF 1
50339 _ACEOF
50340
50341 fi
50342 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50343 echo "${ECHO_T}$ntp_ok" >&6
50344
50345 echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
50346 echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
50347 # Check whether --enable-PST or --disable-PST was given.
50348 if test "${enable_PST+set}" = set; then
50349   enableval="$enable_PST"
50350   ntp_ok=$enableval
50351 else
50352   ntp_ok=$ntp_eac
50353 fi;
50354 if test "$ntp_ok" = "yes"; then
50355     ntp_refclock=yes
50356
50357 cat >>confdefs.h <<\_ACEOF
50358 #define CLOCK_PST 1
50359 _ACEOF
50360
50361 fi
50362 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50363 echo "${ECHO_T}$ntp_ok" >&6
50364
50365 echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5
50366 echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6
50367 # Check whether --enable-RIPENCC or --disable-RIPENCC was given.
50368 if test "${enable_RIPENCC+set}" = set; then
50369   enableval="$enable_RIPENCC"
50370   ntp_ok=$enableval
50371 else
50372   ntp_ok=no
50373 fi;
50374 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
50375 case "$ac_cv_var_ripe_ncc_ok" in
50376  no) ntp_ok=no ;;
50377 esac
50378 if test "$ntp_ok" = "yes"; then
50379     ntp_refclock=yes
50380
50381 cat >>confdefs.h <<\_ACEOF
50382 #define CLOCK_RIPENCC
50383 _ACEOF
50384
50385 fi
50386 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50387 echo "${ECHO_T}$ntp_ok" >&6
50388
50389 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
50390 # For *IX, we need sys/ipc.h and sys/shm.h.
50391 echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5
50392 echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
50393 # Check whether --enable-SHM or --disable-SHM was given.
50394 if test "${enable_SHM+set}" = set; then
50395   enableval="$enable_SHM"
50396   ntp_ok=$enableval
50397 else
50398   case "$ntp_eac$ntp_canshm" in
50399  *no*)  ntp_ok=no  ;;
50400  *)     ntp_ok=yes ;;
50401 esac
50402 fi;
50403 if test "$ntp_ok" = "yes"; then
50404     ntp_refclock=yes
50405
50406 cat >>confdefs.h <<\_ACEOF
50407 #define CLOCK_SHM 1
50408 _ACEOF
50409
50410 fi
50411 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50412 echo "${ECHO_T}$ntp_ok" >&6
50413
50414 echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
50415 echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
50416 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
50417 if test "${enable_SPECTRACOM+set}" = set; then
50418   enableval="$enable_SPECTRACOM"
50419   ntp_ok=$enableval
50420 else
50421   ntp_ok=$ntp_eac
50422 fi;
50423 if test "$ntp_ok" = "yes"; then
50424     ntp_refclock=yes
50425
50426 cat >>confdefs.h <<\_ACEOF
50427 #define CLOCK_SPECTRACOM 1
50428 _ACEOF
50429
50430 fi
50431 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50432 echo "${ECHO_T}$ntp_ok" >&6
50433
50434 echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
50435 echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
50436 # Check whether --enable-TPRO or --disable-TPRO was given.
50437 if test "${enable_TPRO+set}" = set; then
50438   enableval="$enable_TPRO"
50439   ntp_ok=$enableval
50440 else
50441   case "$ac_cv_header_sys_tpro_h" in
50442      yes)
50443         ntp_ok=$ntp_eac
50444         ;;
50445      *) ntp_ok=no
50446         ;;
50447     esac
50448 fi;
50449 if test "$ntp_ok" = "yes"; then
50450     ntp_refclock=yes
50451
50452 cat >>confdefs.h <<\_ACEOF
50453 #define CLOCK_TPRO 1
50454 _ACEOF
50455
50456 fi
50457 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50458 echo "${ECHO_T}$ntp_ok" >&6
50459 case "$ntp_ok$ac_cv_header_sys_tpro" in
50460  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
50461 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
50462 esac
50463
50464
50465 # Not on a vax-dec-bsd
50466 echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5
50467 echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
50468 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
50469 if test "${enable_TRUETIME+set}" = set; then
50470   enableval="$enable_TRUETIME"
50471   ntp_ok=$enableval
50472 else
50473   case "$host" in
50474      vax-dec-bsd)
50475         ntp_ok=no
50476         ;;
50477      *)
50478         ntp_ok=$ntp_eac
50479         ;;
50480     esac
50481 fi;
50482 if test "$ntp_ok" = "yes"; then
50483     ntp_refclock=yes
50484
50485 cat >>confdefs.h <<\_ACEOF
50486 #define CLOCK_TRUETIME 1
50487 _ACEOF
50488
50489 fi
50490 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50491 echo "${ECHO_T}$ntp_ok" >&6
50492 case "$ntp_ok$host" in
50493  yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
50494 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
50495 esac
50496
50497 echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5
50498 echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6
50499 # Check whether --enable-TT560 or --disable-TT560 was given.
50500 if test "${enable_TT560+set}" = set; then
50501   enableval="$enable_TT560"
50502   ntp_ok=$enableval
50503 else
50504   ntp_ok=no
50505 fi;
50506 if test "$ntp_ok" = "yes"; then
50507     ntp_refclock=yes
50508
50509 cat >>confdefs.h <<\_ACEOF
50510 #define CLOCK_TT560
50511 _ACEOF
50512
50513 fi
50514 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50515 echo "${ECHO_T}$ntp_ok" >&6
50516
50517 echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5
50518 echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
50519 # Check whether --enable-ULINK or --disable-ULINK was given.
50520 if test "${enable_ULINK+set}" = set; then
50521   enableval="$enable_ULINK"
50522   ntp_ok=$enableval
50523 else
50524   ntp_ok=$ntp_eac
50525 fi;
50526 if test "$ntp_ok" = "yes"; then
50527     ntp_refclock=yes
50528
50529 cat >>confdefs.h <<\_ACEOF
50530 #define CLOCK_ULINK 1
50531 _ACEOF
50532
50533 fi
50534 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50535 echo "${ECHO_T}$ntp_ok" >&6
50536
50537 echo "$as_me:$LINENO: checking WWV receiver" >&5
50538 echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
50539 # Check whether --enable-WWV or --disable-WWV was given.
50540 if test "${enable_WWV+set}" = set; then
50541   enableval="$enable_WWV"
50542   ntp_ok=$enableval
50543 else
50544   case "$ntp_eac$ntp_canaudio" in
50545      *no*)      ntp_ok=no  ;;
50546      *)         ntp_ok=yes ;;
50547     esac
50548 fi;
50549 if test "$ntp_ok" = "yes"; then
50550     ntp_refclock=yes
50551
50552 cat >>confdefs.h <<\_ACEOF
50553 #define CLOCK_WWV 1
50554 _ACEOF
50555
50556 fi
50557 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50558 echo "${ECHO_T}$ntp_ok" >&6
50559 case "$ntp_ok$ntp_canaudio" in
50560  yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5
50561 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
50562 esac
50563
50564 echo "$as_me:$LINENO: checking for Zyfer receiver" >&5
50565 echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6
50566 # Check whether --enable-ZYFER or --disable-ZYFER was given.
50567 if test "${enable_ZYFER+set}" = set; then
50568   enableval="$enable_ZYFER"
50569   ntp_ok=$enableval
50570 else
50571   ntp_ok=$ntp_eac
50572 fi;
50573 if test "$ntp_ok" = "yes"; then
50574     ntp_refclock=yes
50575
50576 cat >>confdefs.h <<\_ACEOF
50577 #define CLOCK_ZYFER 1
50578 _ACEOF
50579
50580 fi
50581 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50582 echo "${ECHO_T}$ntp_ok" >&6
50583
50584 echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5
50585 echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
50586 # Check whether --enable-parse-clocks or --disable-parse-clocks was given.
50587 if test "${enable_parse_clocks+set}" = set; then
50588   enableval="$enable_parse_clocks"
50589   ntp_eapc=$enableval
50590 else
50591   case "$ntp_eac" in
50592      yes) ntp_eapc=$ntp_canparse ;;
50593      *) ntp_eapc=no ;;
50594     esac
50595     # Delete the next line one of these days
50596     ntp_eapc=no
50597 fi;
50598 echo "$as_me:$LINENO: result: $ntp_eapc" >&5
50599 echo "${ECHO_T}$ntp_eapc" >&6
50600
50601 case "$ntp_eac$ntp_eapc$ntp_canparse" in
50602  noyes*)
50603     { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
50604 echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
50605    { (exit 1); exit 1; }; }
50606     ;;
50607  yesyesno)
50608     { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
50609 echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
50610    { (exit 1); exit 1; }; }
50611     ;;
50612  *) ;;
50613 esac
50614
50615 ntp_libparse=no
50616 ntp_parseutil=no
50617 ntp_rawdcf=no
50618
50619 echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5
50620 echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
50621 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
50622 if test "${enable_COMPUTIME+set}" = set; then
50623   enableval="$enable_COMPUTIME"
50624   ntp_ok=$enableval
50625 else
50626   ntp_ok=$ntp_eapc
50627 fi;
50628 if test "$ntp_ok" = "yes"; then
50629     ntp_libparse=yes
50630     ntp_refclock=yes
50631
50632 cat >>confdefs.h <<\_ACEOF
50633 #define CLOCK_COMPUTIME 1
50634 _ACEOF
50635
50636 fi
50637 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50638 echo "${ECHO_T}$ntp_ok" >&6
50639 case "$ntp_ok$ntp_canparse" in
50640  yesno)
50641     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50642 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50643    { (exit 1); exit 1; }; }
50644     ;;
50645 esac
50646
50647 echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5
50648 echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
50649 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
50650 if test "${enable_DCF7000+set}" = set; then
50651   enableval="$enable_DCF7000"
50652   ntp_ok=$enableval
50653 else
50654   ntp_ok=$ntp_eapc
50655 fi;
50656 if test "$ntp_ok" = "yes"; then
50657     ntp_libparse=yes
50658     ntp_refclock=yes
50659
50660 cat >>confdefs.h <<\_ACEOF
50661 #define CLOCK_DCF7000 1
50662 _ACEOF
50663
50664 fi
50665 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50666 echo "${ECHO_T}$ntp_ok" >&6
50667 case "$ntp_ok$ntp_canparse" in
50668  yesno)
50669     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50670 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50671    { (exit 1); exit 1; }; }
50672     ;;
50673 esac
50674
50675 echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5
50676 echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
50677 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
50678 if test "${enable_HOPF6021+set}" = set; then
50679   enableval="$enable_HOPF6021"
50680   ntp_ok=$enableval
50681 else
50682   ntp_ok=$ntp_eapc
50683 fi;
50684 if test "$ntp_ok" = "yes"; then
50685     ntp_libparse=yes
50686     ntp_refclock=yes
50687
50688 cat >>confdefs.h <<\_ACEOF
50689 #define CLOCK_HOPF6021 1
50690 _ACEOF
50691
50692 fi
50693 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50694 echo "${ECHO_T}$ntp_ok" >&6
50695 case "$ntp_ok$ntp_canparse" in
50696  yesno)
50697     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50698 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50699    { (exit 1); exit 1; }; }
50700     ;;
50701 esac
50702
50703 echo "$as_me:$LINENO: checking Meinberg clocks" >&5
50704 echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
50705 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
50706 if test "${enable_MEINBERG+set}" = set; then
50707   enableval="$enable_MEINBERG"
50708   ntp_ok=$enableval
50709 else
50710   ntp_ok=$ntp_eapc
50711 fi;
50712 if test "$ntp_ok" = "yes"; then
50713     ntp_libparse=yes
50714     ntp_refclock=yes
50715
50716 cat >>confdefs.h <<\_ACEOF
50717 #define CLOCK_MEINBERG 1
50718 _ACEOF
50719
50720 fi
50721 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50722 echo "${ECHO_T}$ntp_ok" >&6
50723 case "$ntp_ok$ntp_canparse" in
50724  yesno)
50725     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50726 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50727    { (exit 1); exit 1; }; }
50728     ;;
50729 esac
50730
50731 echo "$as_me:$LINENO: checking DCF77 raw time code" >&5
50732 echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
50733 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
50734 if test "${enable_RAWDCF+set}" = set; then
50735   enableval="$enable_RAWDCF"
50736   ntp_ok=$enableval
50737 else
50738   ntp_ok=$ntp_eapc
50739 fi;
50740 if test "$ntp_ok" = "yes"; then
50741     ntp_libparse=yes
50742     ntp_parseutil=yes
50743     ntp_refclock=yes
50744     ntp_rawdcf=yes
50745
50746 cat >>confdefs.h <<\_ACEOF
50747 #define CLOCK_RAWDCF 1
50748 _ACEOF
50749
50750 fi
50751 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50752 echo "${ECHO_T}$ntp_ok" >&6
50753 case "$ntp_ok$ntp_canparse" in
50754  yesno)
50755     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50756 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50757    { (exit 1); exit 1; }; }
50758     ;;
50759 esac
50760
50761 case "$ntp_rawdcf" in
50762  yes)
50763     echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5
50764 echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
50765 if test "${ac_cv_var_rawdcf_parity+set}" = set; then
50766   echo $ECHO_N "(cached) $ECHO_C" >&6
50767 else
50768   ans=no
50769     case "$host" in
50770      *-*-linux*)
50771         ans=yes
50772         ;;
50773     esac
50774     ac_cv_var_rawdcf_parity=$ans
50775 fi
50776 echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5
50777 echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
50778     case "$ac_cv_var_rawdcf_parity" in
50779      yes)
50780 cat >>confdefs.h <<\_ACEOF
50781 #define RAWDCF_NO_IGNPAR 1
50782 _ACEOF
50783  ;;
50784     esac
50785     ;;
50786
50787  *) # HMS: Is this a good idea?
50788     ac_cv_var_rawdcf_parity=no
50789     ;;
50790 esac
50791
50792 echo "$as_me:$LINENO: checking RCC 8000 clock" >&5
50793 echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
50794 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
50795 if test "${enable_RCC8000+set}" = set; then
50796   enableval="$enable_RCC8000"
50797   ntp_ok=$enableval
50798 else
50799   ntp_ok=$ntp_eapc
50800 fi;
50801 if test "$ntp_ok" = "yes"; then
50802     ntp_libparse=yes
50803     ntp_refclock=yes
50804
50805 cat >>confdefs.h <<\_ACEOF
50806 #define CLOCK_RCC8000 1
50807 _ACEOF
50808
50809 fi
50810 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50811 echo "${ECHO_T}$ntp_ok" >&6
50812 case "$ntp_ok$ntp_canparse" in
50813  yesno)
50814     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50815 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50816    { (exit 1); exit 1; }; }
50817     ;;
50818 esac
50819
50820 echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5
50821 echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
50822 # Check whether --enable-SCHMID or --disable-SCHMID was given.
50823 if test "${enable_SCHMID+set}" = set; then
50824   enableval="$enable_SCHMID"
50825   ntp_ok=$enableval
50826 else
50827   ntp_ok=$ntp_eapc
50828 fi;
50829 if test "$ntp_ok" = "yes"; then
50830     ntp_libparse=yes
50831     ntp_refclock=yes
50832
50833 cat >>confdefs.h <<\_ACEOF
50834 #define CLOCK_SCHMID 1
50835 _ACEOF
50836
50837 fi
50838 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50839 echo "${ECHO_T}$ntp_ok" >&6
50840 case "$ntp_ok$ntp_canparse" in
50841  yesno)
50842     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50843 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50844    { (exit 1); exit 1; }; }
50845     ;;
50846 esac
50847
50848 echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5
50849 echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
50850 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
50851 if test "${enable_TRIMTAIP+set}" = set; then
50852   enableval="$enable_TRIMTAIP"
50853   ntp_ok=$enableval
50854 else
50855   ntp_ok=$ntp_eapc
50856 fi;
50857 if test "$ntp_ok" = "yes"; then
50858     ntp_libparse=yes
50859     ntp_refclock=yes
50860
50861 cat >>confdefs.h <<\_ACEOF
50862 #define CLOCK_TRIMTAIP 1
50863 _ACEOF
50864
50865 fi
50866 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50867 echo "${ECHO_T}$ntp_ok" >&6
50868 case "$ntp_ok$ntp_canparse" in
50869  yesno)
50870     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50871 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50872    { (exit 1); exit 1; }; }
50873     ;;
50874 esac
50875
50876 echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5
50877 echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
50878 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
50879 if test "${enable_TRIMTSIP+set}" = set; then
50880   enableval="$enable_TRIMTSIP"
50881   ntp_ok=$enableval
50882 else
50883   ntp_ok=$ntp_eapc
50884 fi;
50885 if test "$ntp_ok" = "yes"; then
50886     ntp_libparse=yes
50887     ntp_refclock=yes
50888
50889 cat >>confdefs.h <<\_ACEOF
50890 #define CLOCK_TRIMTSIP 1
50891 _ACEOF
50892
50893 fi
50894 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50895 echo "${ECHO_T}$ntp_ok" >&6
50896 case "$ntp_ok$ntp_canparse" in
50897  yesno)
50898     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50899 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50900    { (exit 1); exit 1; }; }
50901     ;;
50902 esac
50903
50904 echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5
50905 echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
50906 # Check whether --enable-WHARTON or --disable-WHARTON was given.
50907 if test "${enable_WHARTON+set}" = set; then
50908   enableval="$enable_WHARTON"
50909   ntp_ok=$enableval
50910 else
50911   ntp_ok=$ntp_eapc
50912 fi;
50913 if test "$ntp_ok" = "yes"; then
50914     ntp_libparse=yes
50915     ntp_refclock=yes
50916
50917 cat >>confdefs.h <<\_ACEOF
50918 #define CLOCK_WHARTON_400A 1
50919 _ACEOF
50920
50921 fi
50922 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50923 echo "${ECHO_T}$ntp_ok" >&6
50924 case "$ntp_ok$ntp_canparse" in
50925  yesno)
50926     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50927 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50928    { (exit 1); exit 1; }; }
50929     ;;
50930 esac
50931
50932 echo "$as_me:$LINENO: checking VARITEXT clock" >&5
50933 echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
50934 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
50935 if test "${enable_VARITEXT+set}" = set; then
50936   enableval="$enable_VARITEXT"
50937   ntp_ok=$enableval
50938 else
50939   ntp_ok=$ntp_eapc
50940 fi;
50941 if test "$ntp_ok" = "yes"; then
50942     ntp_libparse=yes
50943     ntp_refclock=yes
50944
50945 cat >>confdefs.h <<\_ACEOF
50946 #define CLOCK_VARITEXT 1
50947 _ACEOF
50948
50949 fi
50950 echo "$as_me:$LINENO: result: $ntp_ok" >&5
50951 echo "${ECHO_T}$ntp_ok" >&6
50952 case "$ntp_ok$ntp_canparse" in
50953  yesno)
50954     { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5
50955 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
50956    { (exit 1); exit 1; }; }
50957     ;;
50958 esac
50959
50960
50961
50962
50963 echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5
50964 echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
50965 ans=no
50966 case "$ntp_libparse" in
50967  yes)
50968     ans=yes
50969
50970 cat >>confdefs.h <<\_ACEOF
50971 #define CLOCK_PARSE 1
50972 _ACEOF
50973
50974     LIBPARSE=../libparse/libparse.a
50975     MAKE_LIBPARSE=libparse.a
50976     # HMS: check_y2k trips the 34 year problem now...
50977     false && MAKE_CHECK_Y2K=check_y2k
50978
50979 cat >>confdefs.h <<\_ACEOF
50980 #define PPS_SAMPLE 1
50981 _ACEOF
50982
50983     cat >>confdefs.h <<\_ACEOF
50984 #define CLOCK_ATOM 1
50985 _ACEOF
50986
50987     ;;
50988 esac
50989 echo "$as_me:$LINENO: result: $ans" >&5
50990 echo "${ECHO_T}$ans" >&6
50991
50992 # AC_SUBST(RSAOBJS)
50993 # AC_SUBST(RSASRCS)
50994 # AC_SUBST(RSADIR)
50995 # AC_SUBST(RSAREF)
50996 # AC_SUBST(LIBRSAREF)
50997 # AC_SUBST(MAKE_LIBRSAREF)
50998
50999
51000
51001
51002
51003 echo "$as_me:$LINENO: checking for openssl library directory" >&5
51004 echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
51005
51006 # Check whether --with-openssl-libdir or --without-openssl-libdir was given.
51007 if test "${with_openssl_libdir+set}" = set; then
51008   withval="$with_openssl_libdir"
51009   ans=$withval
51010 else
51011   case "$build" in
51012  $host) ans=yes ;;
51013  *)     ans=no ;;
51014 esac
51015 fi;
51016 case "$ans" in
51017  no) ;;
51018  yes) # Look in:
51019     ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
51020     ;;
51021  *) # Look where they said
51022     ;;
51023 esac
51024 case "$ans" in
51025  no) ;;
51026  *) # Look for libcrypto.a and libssl.a:
51027     for i in $ans no
51028     do
51029         case "$host" in
51030          *-*-darwin*)
51031             test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
51032             ;;
51033          *)
51034             test -f $i/libcrypto.so -a -f $i/libssl.so && break
51035             test -f $i/libcrypto.a -a -f $i/libssl.a && break
51036             ;;
51037         esac
51038     done
51039     case "$i" in
51040      no)
51041         ans=no
51042         OPENSSL_LIB=
51043         ;;
51044      *) ans=$i
51045         OPENSSL_LIB=$ans
51046         ;;
51047     esac
51048     ;;
51049 esac
51050 echo "$as_me:$LINENO: result: $ans" >&5
51051 echo "${ECHO_T}$ans" >&6
51052
51053 echo "$as_me:$LINENO: checking for openssl include directory" >&5
51054 echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
51055
51056 # Check whether --with-openssl-incdir or --without-openssl-incdir was given.
51057 if test "${with_openssl_incdir+set}" = set; then
51058   withval="$with_openssl_incdir"
51059   ans=$withval
51060 else
51061   case "$build" in
51062  $host) ans=yes ;;
51063  *)     ans=no ;;
51064 esac
51065 fi;
51066 case "$ans" in
51067  no) ;;
51068  yes) # look in:
51069     ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
51070     ;;
51071  *) # Look where they said
51072     ;;
51073 esac
51074 case "$ans" in
51075  no) ;;
51076  *) # look for openssl/opensslconf.h:
51077     for i in $ans no
51078     do
51079         test -f $i/openssl/opensslconf.h && break
51080     done
51081     case "$i" in
51082      no)
51083         ans=no
51084         OPENSSL_INC=
51085         ;;
51086      *) ans=$i
51087         OPENSSL_INC=$ans
51088         ;;
51089     esac
51090     ;;
51091 esac
51092 echo "$as_me:$LINENO: result: $ans" >&5
51093 echo "${ECHO_T}$ans" >&6
51094
51095
51096 # Check whether --with-crypto or --without-crypto was given.
51097 if test "${with_crypto+set}" = set; then
51098   withval="$with_crypto"
51099   ans=$withval
51100 else
51101   ans=yes
51102 fi;
51103 case "$ans" in
51104  no) ;;
51105  yes|openssl)
51106     if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
51107     then
51108         ans=no
51109     else
51110         # We have OpenSSL inc/lib - use them.
51111         ans=openssl
51112         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
51113         LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
51114         case "$need_dash_r" in
51115          1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
51116             ;;
51117         esac
51118         LCRYPTO=-lcrypto
51119
51120
51121 cat >>confdefs.h <<\_ACEOF
51122 #define OPENSSL
51123 _ACEOF
51124
51125
51126
51127 for ac_func in EVP_md2 EVP_mdc2
51128 do
51129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51130 echo "$as_me:$LINENO: checking for $ac_func" >&5
51131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51132 if eval "test \"\${$as_ac_var+set}\" = set"; then
51133   echo $ECHO_N "(cached) $ECHO_C" >&6
51134 else
51135   cat >conftest.$ac_ext <<_ACEOF
51136 /* confdefs.h.  */
51137 _ACEOF
51138 cat confdefs.h >>conftest.$ac_ext
51139 cat >>conftest.$ac_ext <<_ACEOF
51140 /* end confdefs.h.  */
51141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51143 #define $ac_func innocuous_$ac_func
51144
51145 /* System header to define __stub macros and hopefully few prototypes,
51146     which can conflict with char $ac_func (); below.
51147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51148     <limits.h> exists even on freestanding compilers.  */
51149
51150 #ifdef __STDC__
51151 # include <limits.h>
51152 #else
51153 # include <assert.h>
51154 #endif
51155
51156 #undef $ac_func
51157
51158 /* Override any gcc2 internal prototype to avoid an error.  */
51159 #ifdef __cplusplus
51160 extern "C"
51161 {
51162 #endif
51163 /* We use char because int might match the return type of a gcc2
51164    builtin and then its argument prototype would still apply.  */
51165 char $ac_func ();
51166 /* The GNU C library defines this for functions which it implements
51167     to always fail with ENOSYS.  Some functions are actually named
51168     something starting with __ and the normal name is an alias.  */
51169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51170 choke me
51171 #else
51172 char (*f) () = $ac_func;
51173 #endif
51174 #ifdef __cplusplus
51175 }
51176 #endif
51177
51178 int
51179 main ()
51180 {
51181 return f != $ac_func;
51182   ;
51183   return 0;
51184 }
51185 _ACEOF
51186 rm -f conftest.$ac_objext conftest$ac_exeext
51187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51188   (eval $ac_link) 2>conftest.er1
51189   ac_status=$?
51190   grep -v '^ *+' conftest.er1 >conftest.err
51191   rm -f conftest.er1
51192   cat conftest.err >&5
51193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51194   (exit $ac_status); } &&
51195          { ac_try='test -z "$ac_c_werror_flag"
51196                          || test ! -s conftest.err'
51197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51198   (eval $ac_try) 2>&5
51199   ac_status=$?
51200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51201   (exit $ac_status); }; } &&
51202          { ac_try='test -s conftest$ac_exeext'
51203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51204   (eval $ac_try) 2>&5
51205   ac_status=$?
51206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51207   (exit $ac_status); }; }; then
51208   eval "$as_ac_var=yes"
51209 else
51210   echo "$as_me: failed program was:" >&5
51211 sed 's/^/| /' conftest.$ac_ext >&5
51212
51213 eval "$as_ac_var=no"
51214 fi
51215 rm -f conftest.err conftest.$ac_objext \
51216       conftest$ac_exeext conftest.$ac_ext
51217 fi
51218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51220 if test `eval echo '${'$as_ac_var'}'` = yes; then
51221   cat >>confdefs.h <<_ACEOF
51222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51223 _ACEOF
51224
51225 fi
51226 done
51227
51228     fi
51229     ;;
51230 esac
51231 echo "$as_me:$LINENO: checking for the level of crypto support" >&5
51232 echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
51233 echo "$as_me:$LINENO: result: $ans" >&5
51234 echo "${ECHO_T}$ans" >&6
51235
51236 echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5
51237 echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
51238
51239 # Check whether --with-electricfence or --without-electricfence was given.
51240 if test "${with_electricfence+set}" = set; then
51241   withval="$with_electricfence"
51242   ans=$withval
51243 else
51244   ans=no
51245 fi;
51246 case "$ans" in
51247  no) ;;
51248  *)
51249     LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
51250     EF_PROGS="eftest tstheap"
51251
51252     EF_LIBS=libefence.a
51253
51254     ans=yes
51255     ;;
51256 esac
51257 echo "$as_me:$LINENO: result: $ans" >&5
51258 echo "${ECHO_T}$ans" >&6
51259
51260
51261 echo "$as_me:$LINENO: checking if we want to run check-layout" >&5
51262 echo $ECHO_N "checking if we want to run check-layout... $ECHO_C" >&6
51263 case "$cross_compiling$PATH_PERL" in
51264  no/*)
51265     MAKE_CHECK_LAYOUT=check-layout
51266     ans=yes
51267     ;;
51268  *)
51269     ans=no
51270     ;;
51271 esac
51272 echo "$as_me:$LINENO: result: $ans" >&5
51273 echo "${ECHO_T}$ans" >&6
51274
51275
51276
51277
51278 echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5
51279 echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
51280 ans=no
51281 if test "$ntp_parseutil" = "yes"; then
51282     case "$host" in
51283      *-*-sunos4*|*-*-solaris2*|*-*-linux*|*-*-netbsd*)
51284         ans="dcfd testdcf"
51285         DCFD=dcfd
51286         TESTDCF=testdcf
51287         ;;
51288     esac
51289 fi
51290 echo "$as_me:$LINENO: result: $ans" >&5
51291 echo "${ECHO_T}$ans" >&6
51292
51293
51294 echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5
51295 echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
51296 ans=no
51297 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
51298  yesyes)
51299     case "$host" in
51300      sparc-*-sunos4*)
51301         case "$ac_cv_var_kernel_pll" in
51302         yes)
51303
51304 cat >>confdefs.h <<\_ACEOF
51305 #define PPS_SYNC 1
51306 _ACEOF
51307
51308             ;;
51309         esac
51310         ans=parsestreams
51311         MAKE_PARSEKMODULE=parsestreams.loadable_module.o
51312         ;;
51313      sparc-*-solaris2*)
51314         ans=parsesolaris
51315         MAKE_PARSEKMODULE=parse
51316         ;;
51317     esac
51318     ;;
51319 esac
51320 echo "$as_me:$LINENO: result: $ans" >&5
51321 echo "${ECHO_T}$ans" >&6
51322
51323 echo "$as_me:$LINENO: checking if we need basic refclock support" >&5
51324 echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
51325 if test "$ntp_refclock" = "yes"; then
51326
51327 cat >>confdefs.h <<\_ACEOF
51328 #define REFCLOCK 1
51329 _ACEOF
51330
51331 fi
51332 echo "$as_me:$LINENO: result: $ntp_refclock" >&5
51333 echo "${ECHO_T}$ntp_refclock" >&6
51334
51335
51336
51337 echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5
51338 echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
51339 case "$host" in
51340  *-*-hpux[56789]*)
51341     ans=yes
51342     ;;
51343  *) ans=no
51344     ;;
51345 esac
51346 if test "$ans" = "yes"; then
51347     MAKE_ADJTIMED=adjtimed
51348
51349 cat >>confdefs.h <<\_ACEOF
51350 #define NEED_HPUX_ADJTIME 1
51351 _ACEOF
51352
51353 fi
51354 echo "$as_me:$LINENO: result: $ans" >&5
51355 echo "${ECHO_T}$ans" >&6
51356
51357 echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5
51358 echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6
51359 case "$host" in
51360  *-*-qnx*)
51361     ans=yes
51362     ;;
51363  *) ans=no
51364     ;;
51365 esac
51366 if test "$ans" = "yes"; then
51367
51368 cat >>confdefs.h <<\_ACEOF
51369 #define NEED_QNX_ADJTIME 1
51370 _ACEOF
51371
51372 fi
51373 echo "$as_me:$LINENO: result: $ans" >&5
51374 echo "${ECHO_T}$ans" >&6
51375
51376 echo "$as_me:$LINENO: checking if we can read kmem" >&5
51377 echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
51378 if test "${ac_cv_var_can_kmem+set}" = set; then
51379   echo $ECHO_N "(cached) $ECHO_C" >&6
51380 else
51381   # Check whether --enable-kmem or --disable-kmem was given.
51382 if test "${enable_kmem+set}" = set; then
51383   enableval="$enable_kmem"
51384   ans=$enableval
51385 else
51386   case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
51387      *yes*)
51388         ans=yes
51389         ;;
51390      *) ans=no
51391         ;;
51392     esac
51393     case "$host" in
51394      *-*-aix*)
51395         #ans=no
51396         ;;
51397      *-*-domainos)      # Won't be found...
51398         ans=no
51399         ;;
51400      *-*-hpux*)
51401         #ans=no
51402         ;;
51403      *-*-irix[456]*)
51404         ans=no
51405         ;;
51406      *-*-linux*)
51407         ans=no
51408         ;;
51409      *-*-winnt3.5)
51410         ans=no
51411         ;;
51412      *-*-unicosmp*)
51413         ans=no
51414         ;;
51415     esac
51416
51417 fi;
51418 ac_cv_var_can_kmem=$ans
51419 fi
51420 echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5
51421 echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
51422
51423 case "$ac_cv_var_can_kmem" in
51424  *yes*) ;;
51425  *)
51426 cat >>confdefs.h <<\_ACEOF
51427 #define NOKMEM 1
51428 _ACEOF
51429  ;;
51430 esac
51431
51432 echo "$as_me:$LINENO: checking if adjtime is accurate" >&5
51433 echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
51434 if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
51435   echo $ECHO_N "(cached) $ECHO_C" >&6
51436 else
51437   # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
51438 if test "${enable_accurate_adjtime+set}" = set; then
51439   enableval="$enable_accurate_adjtime"
51440   ans=$enableval
51441 else
51442   case "$host" in
51443       i386-sequent-ptx*)
51444          ans=no
51445          ;;
51446       i386-unknown-osf1*)
51447          ans=yes
51448          ;;
51449       mips-sgi-irix[456]*)
51450          ans=yes
51451          ;;
51452       *-fujitsu-uxp*)
51453          ans=yes
51454          ;;
51455       *-ibm-aix[45]*)
51456          ans=yes
51457          ;;
51458       *-*-linux*)
51459          ans=yes
51460          ;;
51461       *-*-solaris2.[01])
51462          ans=no
51463          ;;
51464       *-*-solaris2*)
51465          ans=yes
51466          ;;
51467       *-*-unicosmp*)
51468          ans=yes
51469          ;;
51470       *) ans=no
51471          ;;
51472      esac
51473
51474 fi;
51475 ac_cv_var_adjtime_is_accurate=$ans
51476 fi
51477 echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5
51478 echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
51479 case "$ac_cv_var_adjtime_is_accurate" in
51480  yes)
51481 cat >>confdefs.h <<\_ACEOF
51482 #define ADJTIME_IS_ACCURATE 1
51483 _ACEOF
51484  ;;
51485 esac
51486
51487 echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5
51488 echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
51489 if test "${ac_cv_var_nlist_tick+set}" = set; then
51490   echo $ECHO_N "(cached) $ECHO_C" >&6
51491 else
51492   ans=_tick
51493 case "$host" in
51494  m68*-hp-hpux*) # HP9000/300?
51495     ans=_old_tick
51496     ;;
51497  *-apple-aux[23]*)
51498     ans=tick
51499     ;;
51500  *-hp-hpux*)
51501     ans=old_tick
51502     ;;
51503  *-ibm-aix[345]*)
51504     ans=no
51505     ;;
51506  *-*-mpeix*)
51507     ans=no
51508     ;;
51509  *-*-ptx*)
51510     ans=tick
51511     ;;
51512  *-*-sco3.2v[45]*)
51513     ans=no
51514     ;;
51515  *-*-solaris2*)
51516     ans=nsec_per_tick
51517     ;;
51518  *-*-sysv4*)
51519     ans=tick
51520     ;;
51521 esac
51522 ac_cv_var_nlist_tick=$ans
51523 fi
51524 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5
51525 echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
51526 case "$ac_cv_var_nlist_tick" in
51527  ''|no) ;;      # HMS: I think we can only get 'no' here...
51528  *)
51529 cat >>confdefs.h <<_ACEOF
51530 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
51531 _ACEOF
51532  ;;
51533 esac
51534 #
51535 echo "$as_me:$LINENO: checking for the units of 'tick'" >&5
51536 echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
51537 if test "${ac_cv_var_tick_nano+set}" = set; then
51538   echo $ECHO_N "(cached) $ECHO_C" >&6
51539 else
51540   ans=usec
51541 case "$host" in
51542  *-*-solaris2*)
51543     ans=nsec
51544     ;;
51545 esac
51546 ac_cv_var_tick_nano=$ans
51547 fi
51548 echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5
51549 echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
51550 case "$ac_cv_var_tick_nano" in
51551  nsec)
51552
51553 cat >>confdefs.h <<\_ACEOF
51554 #define TICK_NANO 1
51555 _ACEOF
51556
51557     ;;
51558 esac
51559 #
51560 echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5
51561 echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
51562 if test "${ac_cv_var_nlist_tickadj+set}" = set; then
51563   echo $ECHO_N "(cached) $ECHO_C" >&6
51564 else
51565   ans=_tickadj
51566 case "$host" in
51567  m68*-hp-hpux*) # HP9000/300?
51568     ans=_tickadj
51569     ;;
51570  *-apple-aux[23]*)
51571     ans=tickadj
51572     ;;
51573  *-hp-hpux10*)
51574     ans=no
51575     ;;
51576  *-hp-hpux9*)
51577     ans=no
51578     ;;
51579  *-hp-hpux*)
51580     ans=tickadj
51581     ;;
51582  *-*-aix*)
51583     ans=tickadj
51584     ;;
51585  *-*-mpeix*)
51586     ans=no
51587     ;;
51588  *-*-ptx*)
51589     ans=tickadj
51590     ;;
51591  *-*-sco3.2v4*)
51592     ans=no
51593     ;;
51594  *-*-sco3.2v5.0*)
51595     ans=clock_drift
51596     ;;
51597  *-*-solaris2*)
51598     ans=no      # hrestime_adj
51599     ;;
51600  *-*-sysv4*)
51601     ans=tickadj
51602     ;;
51603 esac
51604 ac_cv_var_nlist_tickadj=$ans
51605 fi
51606 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5
51607 echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
51608 case "$ac_cv_var_nlist_tickadj" in
51609  ''|no) ;;      # HMS: I think we can only get 'no' here...
51610  *)
51611 cat >>confdefs.h <<_ACEOF
51612 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
51613 _ACEOF
51614  ;;
51615 esac
51616 #
51617 echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5
51618 echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
51619 if test "${ac_cv_var_tickadj_nano+set}" = set; then
51620   echo $ECHO_N "(cached) $ECHO_C" >&6
51621 else
51622   ans=usec
51623 case "$host" in
51624  *-*-solaris2*)
51625     ans=nsec
51626     ;;
51627 esac
51628 ac_cv_var_tickadj_nano=$ans
51629 fi
51630 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5
51631 echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
51632 case "$ac_cv_var_tickadj_nano" in
51633  nsec)
51634
51635 cat >>confdefs.h <<\_ACEOF
51636 #define TICKADJ_NANO 1
51637 _ACEOF
51638
51639     ;;
51640 esac
51641 #
51642 echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5
51643 echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
51644 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
51645   echo $ECHO_N "(cached) $ECHO_C" >&6
51646 else
51647   case "$host" in
51648  *-apple-aux[23]*)
51649     ans=no
51650     ;;
51651  *-sni-sysv*)
51652     ans=dosynctodr
51653     ;;
51654  *-*-aix*)
51655     ans=dosynctodr
51656     ;;
51657  *-*-hpux*)
51658     ans=no
51659     ;;
51660  *-*-mpeix*)
51661     ans=no
51662     ;;
51663  *-*-nextstep*)
51664     ans=_dosynctodr
51665     ;;
51666  *-*-ptx*)
51667     ans=doresettodr
51668     ;;
51669  *-*-sco3.2v4*)
51670     ans=no
51671     ;;
51672  *-*-sco3.2v5*)
51673     ans=track_rtc
51674     ;;
51675  *-*-solaris2*)
51676     ans=dosynctodr
51677     ;;
51678  *-*-sysv4*)
51679     ans=doresettodr
51680     ;;
51681  *)
51682     ans=_dosynctodr
51683     ;;
51684 esac
51685 ac_cv_var_nlist_dosynctodr=$ans
51686 fi
51687 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5
51688 echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
51689 case "$ac_cv_var_nlist_dosynctodr" in
51690  no) ;;
51691  *)
51692 cat >>confdefs.h <<_ACEOF
51693 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
51694 _ACEOF
51695
51696      ;;
51697 esac
51698 #
51699 echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5
51700 echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
51701 if test "${ac_cv_var_nlist_noprintf+set}" = set; then
51702   echo $ECHO_N "(cached) $ECHO_C" >&6
51703 else
51704   case "$host" in
51705  *-apple-aux[23]*)
51706     ans=no
51707     ;;
51708  *-sni-sysv*)
51709     ans=noprintf
51710     ;;
51711  *-*-aix*)
51712     ans=noprintf
51713     ;;
51714  *-*-hpux*)
51715     ans=no
51716     ;;
51717  *-*-mpeix*)
51718     ans=no
51719     ;;
51720  *-*-ptx*)
51721     ans=noprintf
51722     ;;
51723  *-*-nextstep*)
51724     ans=_noprintf
51725     ;;
51726  *-*-solaris2*)
51727     ans=noprintf
51728     ;;
51729  *-*-sysv4*)
51730     ans=noprintf
51731     ;;
51732  *)
51733     ans=_noprintf
51734     ;;
51735 esac
51736 ac_cv_var_nlist_noprintf=$ans
51737 fi
51738 echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5
51739 echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
51740 case "$ac_cv_var_nlist_noprintf" in
51741  no) ;;
51742  *)
51743 cat >>confdefs.h <<_ACEOF
51744 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
51745 _ACEOF
51746
51747      ;;
51748 esac
51749
51750
51751
51752
51753 echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5
51754 echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
51755 if test "${ac_cv_var_tick+set}" = set; then
51756   echo $ECHO_N "(cached) $ECHO_C" >&6
51757 else
51758   # Check whether --enable-tick or --disable-tick was given.
51759 if test "${enable_tick+set}" = set; then
51760   enableval="$enable_tick"
51761   ans=$enableval
51762 else
51763   ans=no
51764      case "$host" in
51765       XXX-*-pc-cygwin*)
51766          ;;
51767       *-univel-sysv*)
51768          ans=10000
51769          ;;
51770       *-*-irix*)
51771          ans=10000
51772          ;;
51773       *-*-linux*)
51774          ans=txc.tick
51775          ;;
51776       *-*-mpeix*)
51777          ans=no
51778          ;;
51779       *-*-winnt3.5)
51780          ans='(every / 10)'
51781          ;;
51782       *-*-unicosmp*)
51783          ans=10000
51784          ;;
51785       *)
51786          ans='1000000L/hz'
51787          ;;
51788      esac
51789 fi;
51790 ac_cv_var_tick=$ans
51791 fi
51792 echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5
51793 echo "${ECHO_T}$ac_cv_var_tick" >&6
51794 case "$ac_cv_var_tick" in
51795  ''|no) ;;      # HMS: I think we can only get 'no' here...
51796  *)
51797 cat >>confdefs.h <<_ACEOF
51798 #define PRESET_TICK $ac_cv_var_tick
51799 _ACEOF
51800  ;;
51801 esac
51802
51803 echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5
51804 echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
51805 if test "${ac_cv_var_tickadj+set}" = set; then
51806   echo $ECHO_N "(cached) $ECHO_C" >&6
51807 else
51808   # Check whether --enable-tickadj or --disable-tickadj was given.
51809 if test "${enable_tickadj+set}" = set; then
51810   enableval="$enable_tickadj"
51811   ans=$enableval
51812 else
51813   ans='500/hz'
51814   case "$host" in
51815    *-fujitsu-uxp*)
51816       case "$ac_cv_var_adjtime_is_accurate" in
51817        yes) ans='tick/16' ;;
51818       esac
51819       ;;
51820    XXX-*-pc-cygwin*)
51821       ans=no
51822       ;;
51823    *-univel-sysv*)
51824       ans=80
51825       ;;
51826    *-*-aix*)
51827       case "$ac_cv_var_can_kmem" in
51828        no) ans=1000 ;;
51829       esac
51830       ;;
51831    *-*-domainos)        # Skippy: won't be found...
51832       case "$ac_cv_var_can_kmem" in
51833        no) ans=668 ;;
51834       esac
51835       ;;
51836    *-*-hpux*)
51837       case "$ac_cv_var_adjtime_is_accurate" in
51838        yes) ans='tick/16' ;;
51839       esac
51840       ;;
51841    *-*-irix*)
51842       ans=150
51843       ;;
51844    *-*-mpeix*)
51845       ans=no
51846       ;;
51847    *-*-sco3.2v5.0*)
51848       ans=10000L/hz
51849       ;;
51850    *-*-solaris2*)
51851       case "$ac_cv_var_adjtime_is_accurate" in
51852        yes)
51853           #ans='tick/16'
51854           ;;
51855       esac
51856       ;;
51857    *-*-winnt3.5)
51858       ans=50
51859       ;;
51860    *-*-unicosmp*)
51861       ans=150
51862       ;;
51863   esac
51864 fi;
51865 ac_cv_var_tickadj=$ans
51866 fi
51867 echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5
51868 echo "${ECHO_T}$ac_cv_var_tickadj" >&6
51869 case "$ac_cv_var_tickadj" in
51870  ''|no) ;;      # HMS: I think we can only get 'no' here...
51871  *)
51872 cat >>confdefs.h <<_ACEOF
51873 #define PRESET_TICKADJ $ac_cv_var_tickadj
51874 _ACEOF
51875  ;;
51876 esac
51877
51878 # Newer versions of ReliantUNIX round adjtime() values down to
51879 # 1/100s (system tick). Sigh ...
51880 # Unfortunately, there is no easy way to know if particular release
51881 # has this "feature" or any obvious way to test for it.
51882 case "$host" in
51883  mips-sni-sysv4*)
51884 cat >>confdefs.h <<\_ACEOF
51885 #define RELIANTUNIX_CLOCK 1
51886 _ACEOF
51887  ;;
51888 esac
51889
51890 case "$host" in
51891  *-*-sco3.2v5*)
51892 cat >>confdefs.h <<\_ACEOF
51893 #define SCO5_CLOCK 1
51894 _ACEOF
51895  ;;
51896 esac
51897
51898 ac_cv_make_tickadj=yes
51899 case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
51900  nonono)        # Don't read KMEM, no presets.  Bogus.
51901     { echo "$as_me:$LINENO: WARNING: Can't read kmem" >&5
51902 echo "$as_me: WARNING: Can't read kmem" >&2;}
51903     ac_cv_make_tickadj=no
51904     ;;
51905  nono*)         # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
51906     { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
51907 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
51908     ac_cv_make_tickadj=no
51909     ;;
51910  no*no)         # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
51911     { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
51912 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
51913     ac_cv_make_tickadj=no
51914     ;;
51915  no*)           # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
51916     ;;
51917  yesnono)       # Read KMEM, no presets.  Cool.
51918     ;;
51919  yesno*)        # Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
51920     { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
51921 echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
51922     ;;
51923  yes*no)        # Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
51924     ;;
51925  yes*)          # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
51926     ;;
51927  *)             # Generally bogus.
51928     { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5
51929 echo "$as_me: error: This shouldn't happen." >&2;}
51930    { (exit 1); exit 1; }; }
51931     ;;
51932 esac
51933
51934
51935 echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5
51936 echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
51937 if test "${ac_cv_make_ntptime+set}" = set; then
51938   echo $ECHO_N "(cached) $ECHO_C" >&6
51939 else
51940   case "$host" in
51941  *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
51942      yesyes)
51943         ans=yes
51944         ;;
51945      *)
51946         ans=no
51947         ;;
51948     esac
51949     ;;
51950 esac
51951 ac_cv_make_ntptime=$ans
51952 fi
51953 echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5
51954 echo "${ECHO_T}$ac_cv_make_ntptime" >&6
51955 case "$ac_cv_make_ntptime" in
51956  yes)
51957     MAKE_NTPTIME=ntptime
51958     ;;
51959 esac
51960
51961
51962 case "$host" in
51963  mips-sni-sysv4*)
51964     # tickadj is pretty useless on newer versions of ReliantUNIX
51965     # Do not bother
51966     ac_cv_make_tickadj=no
51967     ;;
51968  *-*-irix*)
51969     ac_cv_make_tickadj=no
51970     ;;
51971  *-*-solaris2*)
51972     # DLM says tickadj is a no-no starting with solaris2.5
51973     case "$host" in
51974      *-*-solaris2.1[0-9]*)
51975         ac_cv_make_tickadj=no
51976         ;;
51977      *-*-solaris2.[0-4]*) ;;
51978      *) ac_cv_make_tickadj=no ;;
51979     esac
51980     ;;
51981  *-*-unicosmp*)
51982     ac_cv_make_tickadj=no
51983     ;;
51984 esac
51985 echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5
51986 echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
51987 if test "${ac_cv_make_tickadj+set}" = set; then
51988   echo $ECHO_N "(cached) $ECHO_C" >&6
51989 else
51990   ac_cv_make_tickadj=yes
51991 fi
51992 echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5
51993 echo "${ECHO_T}$ac_cv_make_tickadj" >&6
51994 case "$ac_cv_make_tickadj" in
51995  yes)
51996     MAKE_TICKADJ=tickadj
51997     ;;
51998 esac
51999
52000
52001 echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5
52002 echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
52003 if test "${ac_cv_make_timetrim+set}" = set; then
52004   echo $ECHO_N "(cached) $ECHO_C" >&6
52005 else
52006   case "$host" in
52007  *-*-irix*)
52008     ac_cv_make_timetrim=yes
52009     ;;
52010  *-*-unicosmp*)
52011     ac_cv_make_timetrim=yes
52012     ;;
52013  *)
52014     ac_cv_make_timetrim=no
52015     ;;
52016 esac
52017 fi
52018 echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5
52019 echo "${ECHO_T}$ac_cv_make_timetrim" >&6
52020 case "$ac_cv_make_timetrim" in
52021  yes)
52022     MAKE_TIMETRIM=timetrim
52023     ;;
52024 esac
52025
52026
52027
52028 echo "$as_me:$LINENO: checking if we want to build the NTPD simulator" >&5
52029 echo $ECHO_N "checking if we want to build the NTPD simulator... $ECHO_C" >&6
52030 if test "${ac_cv_var_ntpd_sim+set}" = set; then
52031   echo $ECHO_N "(cached) $ECHO_C" >&6
52032 else
52033   # Check whether --enable-simulator or --disable-simulator was given.
52034 if test "${enable_simulator+set}" = set; then
52035   enableval="$enable_simulator"
52036   ans=$enableval
52037 else
52038   ans=no
52039 fi;
52040 ac_cv_var_ntpd_sim=$ans
52041 fi
52042 echo "$as_me:$LINENO: result: $ac_cv_var_ntpd_sim" >&5
52043 echo "${ECHO_T}$ac_cv_var_ntpd_sim" >&6
52044 case "$ac_cv_var_ntpd_sim" in
52045  yes)
52046     MAKE_NTPDSIM=ntpdsim
52047     MAKE_LIBNTPSIM=libntpsim.a
52048     ;;
52049 esac
52050
52051 case "$build" in
52052  $host)
52053     ;;
52054  *) case "$host" in
52055      *-*-vxworks*)
52056         LDFLAGS="$LDFLAGS -r"
52057         ;;
52058     esac
52059     ;;
52060 esac
52061
52062 echo "$as_me:$LINENO: checking if we should always slew the time" >&5
52063 echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
52064 if test "${ac_cv_var_slew_always+set}" = set; then
52065   echo $ECHO_N "(cached) $ECHO_C" >&6
52066 else
52067   # Check whether --enable-slew-always or --disable-slew-always was given.
52068 if test "${enable_slew_always+set}" = set; then
52069   enableval="$enable_slew_always"
52070   ans=$enableval
52071 else
52072   case "$host" in
52073       *-apple-aux[23]*)
52074          ans=yes
52075          ;;
52076       *-*-bsdi[012]*)
52077          ans=no
52078          ;;
52079       *-*-bsdi*)
52080          ans=yes
52081          ;;
52082       *-*-openvms*)     # HMS: won't be found
52083          ans=yes
52084          ;;
52085       *) ans=no
52086          ;;
52087      esac
52088
52089 fi;
52090 ac_cv_var_slew_always=$ans
52091 fi
52092 echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5
52093 echo "${ECHO_T}$ac_cv_var_slew_always" >&6
52094 case "$ac_cv_var_slew_always" in
52095  yes)
52096 cat >>confdefs.h <<\_ACEOF
52097 #define SLEWALWAYS 1
52098 _ACEOF
52099  ;;
52100 esac
52101
52102 echo "$as_me:$LINENO: checking if we should step and slew the time" >&5
52103 echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
52104 if test "${ac_cv_var_step_slew+set}" = set; then
52105   echo $ECHO_N "(cached) $ECHO_C" >&6
52106 else
52107   # Check whether --enable-step-slew or --disable-step-slew was given.
52108 if test "${enable_step_slew+set}" = set; then
52109   enableval="$enable_step_slew"
52110   ans=$enableval
52111 else
52112   case "$host" in
52113       *-sni-sysv*)
52114          ans=yes
52115          ;;
52116       *-univel-sysv*)
52117          ans=no
52118          ;;
52119       *-*-ptx*)
52120          ans=yes
52121          ;;
52122       *-*-solaris2.1[0-9]*)
52123          ans=no
52124          ;;
52125       *-*-solaris2.[012]*)
52126          ans=yes
52127          ;;
52128       *-*-sysv4*)       # HMS: Does this catch Fujitsu UXP?
52129          ans=yes
52130          ;;
52131       *) ans=no
52132          ;;
52133      esac
52134
52135 fi;
52136 ac_cv_var_step_slew=$ans
52137 fi
52138 echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5
52139 echo "${ECHO_T}$ac_cv_var_step_slew" >&6
52140 case "$ac_cv_var_step_slew" in
52141  yes)
52142 cat >>confdefs.h <<\_ACEOF
52143 #define STEP_SLEW 1
52144 _ACEOF
52145  ;;
52146 esac
52147
52148 echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5
52149 echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
52150 if test "${ac_cv_var_ntpdate_step+set}" = set; then
52151   echo $ECHO_N "(cached) $ECHO_C" >&6
52152 else
52153   # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
52154 if test "${enable_ntpdate_step+set}" = set; then
52155   enableval="$enable_ntpdate_step"
52156   ans=$enableval
52157 else
52158   case "$host" in
52159       *-apple-aux[23]*)
52160          ans=yes
52161          ;;
52162       *) ans=no
52163          ;;
52164      esac
52165
52166 fi;
52167 ac_cv_var_ntpdate_step=$ans
52168 fi
52169 echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5
52170 echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
52171 case "$ac_cv_var_ntpdate_step" in
52172  yes)
52173 cat >>confdefs.h <<\_ACEOF
52174 #define FORCE_NTPDATE_STEP 1
52175 _ACEOF
52176  ;;
52177 esac
52178
52179 echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5
52180 echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
52181 if test "${ac_cv_var_sync_todr+set}" = set; then
52182   echo $ECHO_N "(cached) $ECHO_C" >&6
52183 else
52184   # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
52185 if test "${enable_hourly_todr_sync+set}" = set; then
52186   enableval="$enable_hourly_todr_sync"
52187   ans=$enableval
52188 else
52189   case "$host" in
52190       *-*-nextstep*)
52191          ans=yes
52192          ;;
52193       *-*-openvms*)     # HMS: won't be found
52194          ans=yes
52195          ;;
52196       *) ans=no
52197          ;;
52198      esac
52199 fi;
52200 ac_cv_var_sync_todr=$ans
52201 fi
52202 echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5
52203 echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
52204 case "$ac_cv_var_sync_todr" in
52205  yes)
52206 cat >>confdefs.h <<\_ACEOF
52207 #define DOSYNCTODR 1
52208 _ACEOF
52209  ;;
52210 esac
52211
52212 echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5
52213 echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
52214 if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
52215   echo $ECHO_N "(cached) $ECHO_C" >&6
52216 else
52217   # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
52218 if test "${enable_kernel_fll_bug+set}" = set; then
52219   enableval="$enable_kernel_fll_bug"
52220   ans=$enableval
52221 else
52222   case "$host" in
52223      *-*-solaris2.6)
52224          unamev=`uname -v`
52225          case "$unamev" in
52226           Generic_105181-*)
52227              old_IFS="$IFS"
52228              IFS="-"
52229              set $unamev
52230              IFS="$old_IFS"
52231              if test "$2" -ge 17
52232              then
52233                 # Generic_105181-17 and higher
52234                 ans=no
52235              else
52236                 ans=yes
52237              fi
52238              ;;
52239           *) ans=yes
52240              ;;
52241          esac
52242          ;;
52243      *-*-solaris2.7)
52244          unamev=`uname -v`
52245          case "$unamev" in
52246           Generic_106541-*)
52247              old_IFS="$IFS"
52248              IFS="-"
52249              set $unamev
52250              IFS="$old_IFS"
52251              if test "$2" -ge 07
52252              then
52253                 # Generic_106541-07 and higher
52254                 ans=no
52255              else
52256                 ans=yes
52257              fi
52258              ;;
52259           *) ans=yes
52260              ;;
52261          esac
52262          ;;
52263      *) ans=no
52264          ;;
52265     esac
52266
52267 fi;
52268 ac_cv_var_kernel_fll_bug=$ans
52269 fi
52270 echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5
52271 echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
52272 case "$ac_cv_var_kernel_fll_bug" in
52273  yes)
52274 cat >>confdefs.h <<\_ACEOF
52275 #define KERNEL_FLL_BUG 1
52276 _ACEOF
52277  ;;
52278 esac
52279
52280 echo "$as_me:$LINENO: checking if we should use the IRIG sawtooth filter" >&5
52281 echo $ECHO_N "checking if we should use the IRIG sawtooth filter... $ECHO_C" >&6
52282 if test "${ac_cv_var_irig_sucks+set}" = set; then
52283   echo $ECHO_N "(cached) $ECHO_C" >&6
52284 else
52285   # Check whether --enable-irig-sawtooth or --disable-irig-sawtooth was given.
52286 if test "${enable_irig_sawtooth+set}" = set; then
52287   enableval="$enable_irig_sawtooth"
52288   ans=$enableval
52289 else
52290   case "$host" in
52291      *-*-solaris2.[89])
52292         ans=yes
52293         ;;
52294      *-*-solaris2.1[0-9]*)
52295         ans=yes
52296         ;;
52297      *) ans=no
52298         ;;
52299     esac
52300
52301 fi;
52302 ac_cv_var_irig_sucks=$ans
52303 fi
52304 echo "$as_me:$LINENO: result: $ac_cv_var_irig_sucks" >&5
52305 echo "${ECHO_T}$ac_cv_var_irig_sucks" >&6
52306 case "$ac_cv_var_irig_sucks" in
52307  yes)
52308 cat >>confdefs.h <<\_ACEOF
52309 #define IRIG_SUCKS 1
52310 _ACEOF
52311  ;;
52312 esac
52313
52314 echo "$as_me:$LINENO: checking if we should enable NIST lockclock scheme" >&5
52315 echo $ECHO_N "checking if we should enable NIST lockclock scheme... $ECHO_C" >&6
52316 if test "${ac_cv_var_nist_lockclock+set}" = set; then
52317   echo $ECHO_N "(cached) $ECHO_C" >&6
52318 else
52319   # Check whether --enable-nist or --disable-nist was given.
52320 if test "${enable_nist+set}" = set; then
52321   enableval="$enable_nist"
52322   ans=$enableval
52323 else
52324   ans=no
52325 fi;
52326 ac_cv_var_nist_lockclock=$ans
52327 fi
52328 echo "$as_me:$LINENO: result: $ac_cv_var_nist_lockclock" >&5
52329 echo "${ECHO_T}$ac_cv_var_nist_lockclock" >&6
52330 case "$ac_cv_var_nist_lockclock" in
52331  yes)
52332 cat >>confdefs.h <<\_ACEOF
52333 #define LOCKCLOCK 1
52334 _ACEOF
52335  ;;
52336 esac
52337
52338 #
52339 # ISC stuff
52340 #
52341
52342 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
52343
52344 cat >>confdefs.h <<\_ACEOF
52345 #define ISC_PLATFORM_HAVESALEN
52346 _ACEOF
52347
52348 fi
52349
52350 # Check whether --enable-ipv6 or --disable-ipv6 was given.
52351 if test "${enable_ipv6+set}" = set; then
52352   enableval="$enable_ipv6"
52353
52354 fi;
52355
52356 case "$enable_ipv6" in
52357  yes|''|autodetect)
52358     case "$host" in
52359      powerpc-ibm-aix4*) ;;
52360      *)
52361
52362 cat >>confdefs.h <<\_ACEOF
52363 #define WANT_IPV6
52364 _ACEOF
52365
52366         ;;
52367     esac
52368     ;;
52369  no)
52370     ;;
52371 esac
52372
52373 echo "$as_me:$LINENO: checking for IPv6 structures" >&5
52374 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6
52375 cat >conftest.$ac_ext <<_ACEOF
52376 /* confdefs.h.  */
52377 _ACEOF
52378 cat confdefs.h >>conftest.$ac_ext
52379 cat >>conftest.$ac_ext <<_ACEOF
52380 /* end confdefs.h.  */
52381
52382 #include <sys/types.h>
52383 #include <sys/socket.h>
52384 #include <netinet/in.h>
52385 int
52386 main ()
52387 {
52388 struct sockaddr_in6 sin6; return (0);
52389   ;
52390   return 0;
52391 }
52392 _ACEOF
52393 rm -f conftest.$ac_objext
52394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52395   (eval $ac_compile) 2>conftest.er1
52396   ac_status=$?
52397   grep -v '^ *+' conftest.er1 >conftest.err
52398   rm -f conftest.er1
52399   cat conftest.err >&5
52400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52401   (exit $ac_status); } &&
52402          { ac_try='test -z "$ac_c_werror_flag"
52403                          || test ! -s conftest.err'
52404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52405   (eval $ac_try) 2>&5
52406   ac_status=$?
52407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52408   (exit $ac_status); }; } &&
52409          { ac_try='test -s conftest.$ac_objext'
52410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52411   (eval $ac_try) 2>&5
52412   ac_status=$?
52413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52414   (exit $ac_status); }; }; then
52415   echo "$as_me:$LINENO: result: yes" >&5
52416 echo "${ECHO_T}yes" >&6
52417          found_ipv6=yes
52418 else
52419   echo "$as_me: failed program was:" >&5
52420 sed 's/^/| /' conftest.$ac_ext >&5
52421
52422 echo "$as_me:$LINENO: result: no" >&5
52423 echo "${ECHO_T}no" >&6
52424          found_ipv6=no
52425 fi
52426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52427
52428 #
52429 # See whether IPv6 support is provided via a Kame add-on.
52430 # This is done before other IPv6 linking tests so LIBS is properly set.
52431 #
52432 echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
52433 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6
52434
52435 # Check whether --with-kame or --without-kame was given.
52436 if test "${with_kame+set}" = set; then
52437   withval="$with_kame"
52438   use_kame="$withval"
52439 else
52440   use_kame="no"
52441 fi;
52442
52443 case "$use_kame" in
52444         no)
52445                 ;;
52446         yes)
52447                 kame_path=/usr/local/v6
52448                 ;;
52449         *)
52450                 kame_path="$use_kame"
52451                 ;;
52452 esac
52453
52454 case "$use_kame" in
52455         no)
52456                 echo "$as_me:$LINENO: result: no" >&5
52457 echo "${ECHO_T}no" >&6
52458                 ;;
52459         *)
52460                 if test -f $kame_path/lib/libinet6.a; then
52461                         echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
52462 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6
52463                         LIBS="-L$kame_path/lib -linet6 $LIBS"
52464                 else
52465                         { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
52466
52467 Please choose the proper path with the following command:
52468
52469     configure --with-kame=PATH
52470 " >&5
52471 echo "$as_me: error: $kame_path/lib/libinet6.a not found.
52472
52473 Please choose the proper path with the following command:
52474
52475     configure --with-kame=PATH
52476 " >&2;}
52477    { (exit 1); exit 1; }; }
52478                 fi
52479                 ;;
52480 esac
52481
52482 #
52483 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
52484 # Including it on Kame-using platforms is very bad, though, because
52485 # Kame uses #error against direct inclusion.   So include it on only
52486 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
52487 # This is done before the in6_pktinfo check because that's what
52488 # netinet6/in6.h is needed for.
52489 #
52490 case "$host" in
52491 *-bsdi4.[01]*)
52492         ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
52493         LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
52494         isc_netinet6in6_hack="#include <netinet6/in6.h>"
52495         ;;
52496 *)
52497         ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
52498         LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
52499         isc_netinet6in6_hack=""
52500         ;;
52501 esac
52502
52503 #
52504 # This is similar to the netinet6/in6.h issue.
52505 #
52506 case "$host" in
52507 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
52508         # UnixWare
52509         # ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
52510         # LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
52511
52512 cat >>confdefs.h <<\_ACEOF
52513 #define ISC_PLATFORM_FIXIN6ISADDR 1
52514 _ACEOF
52515
52516         isc_netinetin6_hack="#include <netinet/in6.h>"
52517         ;;
52518 *)
52519         # ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
52520         # LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
52521         # ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
52522         isc_netinetin6_hack=""
52523         ;;
52524 esac
52525
52526
52527 echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
52528 echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6
52529 cat >conftest.$ac_ext <<_ACEOF
52530 /* confdefs.h.  */
52531 _ACEOF
52532 cat confdefs.h >>conftest.$ac_ext
52533 cat >>conftest.$ac_ext <<_ACEOF
52534 /* end confdefs.h.  */
52535
52536 #include <sys/types.h>
52537 #include <net/if6.h>
52538
52539 int
52540 main ()
52541 {
52542  struct if_laddrconf a;
52543   ;
52544   return 0;
52545 }
52546 _ACEOF
52547 rm -f conftest.$ac_objext conftest$ac_exeext
52548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52549   (eval $ac_link) 2>conftest.er1
52550   ac_status=$?
52551   grep -v '^ *+' conftest.er1 >conftest.err
52552   rm -f conftest.er1
52553   cat conftest.err >&5
52554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52555   (exit $ac_status); } &&
52556          { ac_try='test -z "$ac_c_werror_flag"
52557                          || test ! -s conftest.err'
52558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52559   (eval $ac_try) 2>&5
52560   ac_status=$?
52561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52562   (exit $ac_status); }; } &&
52563          { ac_try='test -s conftest$ac_exeext'
52564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52565   (eval $ac_try) 2>&5
52566   ac_status=$?
52567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52568   (exit $ac_status); }; }; then
52569   echo "$as_me:$LINENO: result: yes" >&5
52570 echo "${ECHO_T}yes" >&6
52571
52572 cat >>confdefs.h <<\_ACEOF
52573 #define ISC_PLATFORM_HAVEIF_LADDRCONF
52574 _ACEOF
52575
52576 else
52577   echo "$as_me: failed program was:" >&5
52578 sed 's/^/| /' conftest.$ac_ext >&5
52579
52580 echo "$as_me:$LINENO: result: no" >&5
52581 echo "${ECHO_T}no" >&6
52582 fi
52583 rm -f conftest.err conftest.$ac_objext \
52584       conftest$ac_exeext conftest.$ac_ext
52585
52586 echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
52587 echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6
52588 cat >conftest.$ac_ext <<_ACEOF
52589 /* confdefs.h.  */
52590 _ACEOF
52591 cat confdefs.h >>conftest.$ac_ext
52592 cat >>conftest.$ac_ext <<_ACEOF
52593 /* end confdefs.h.  */
52594
52595 #include <sys/types.h>
52596 #include <net/if6.h>
52597
52598 int
52599 main ()
52600 {
52601  struct if_laddrreq a;
52602   ;
52603   return 0;
52604 }
52605 _ACEOF
52606 rm -f conftest.$ac_objext conftest$ac_exeext
52607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52608   (eval $ac_link) 2>conftest.er1
52609   ac_status=$?
52610   grep -v '^ *+' conftest.er1 >conftest.err
52611   rm -f conftest.er1
52612   cat conftest.err >&5
52613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52614   (exit $ac_status); } &&
52615          { ac_try='test -z "$ac_c_werror_flag"
52616                          || test ! -s conftest.err'
52617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52618   (eval $ac_try) 2>&5
52619   ac_status=$?
52620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52621   (exit $ac_status); }; } &&
52622          { ac_try='test -s conftest$ac_exeext'
52623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52624   (eval $ac_try) 2>&5
52625   ac_status=$?
52626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52627   (exit $ac_status); }; }; then
52628   echo "$as_me:$LINENO: result: yes" >&5
52629 echo "${ECHO_T}yes" >&6
52630
52631 cat >>confdefs.h <<\_ACEOF
52632 #define ISC_PLATFORM_HAVEIF_LADDRREQ
52633 _ACEOF
52634
52635 else
52636   echo "$as_me: failed program was:" >&5
52637 sed 's/^/| /' conftest.$ac_ext >&5
52638
52639 echo "$as_me:$LINENO: result: no" >&5
52640 echo "${ECHO_T}no" >&6
52641 fi
52642 rm -f conftest.err conftest.$ac_objext \
52643       conftest$ac_exeext conftest.$ac_ext
52644
52645 case "$found_ipv6" in
52646  yes)
52647
52648 cat >>confdefs.h <<\_ACEOF
52649 #define ISC_PLATFORM_HAVEIPV6
52650 _ACEOF
52651
52652
52653     echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
52654 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
52655 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
52656   echo $ECHO_N "(cached) $ECHO_C" >&6
52657 else
52658   cat >conftest.$ac_ext <<_ACEOF
52659 /* confdefs.h.  */
52660 _ACEOF
52661 cat confdefs.h >>conftest.$ac_ext
52662 cat >>conftest.$ac_ext <<_ACEOF
52663 /* end confdefs.h.  */
52664
52665 #include <sys/types.h>
52666 #include <sys/socket.h>
52667 #include <netinet/in.h>
52668 $isc_netinetin6_hack
52669 $isc_netinet6in6_hack
52670
52671
52672 int
52673 main ()
52674 {
52675 static struct sockaddr_in6 ac_aggr;
52676 if (ac_aggr.sin6_scope_id)
52677 return 0;
52678   ;
52679   return 0;
52680 }
52681 _ACEOF
52682 rm -f conftest.$ac_objext
52683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52684   (eval $ac_compile) 2>conftest.er1
52685   ac_status=$?
52686   grep -v '^ *+' conftest.er1 >conftest.err
52687   rm -f conftest.er1
52688   cat conftest.err >&5
52689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52690   (exit $ac_status); } &&
52691          { ac_try='test -z "$ac_c_werror_flag"
52692                          || test ! -s conftest.err'
52693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52694   (eval $ac_try) 2>&5
52695   ac_status=$?
52696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52697   (exit $ac_status); }; } &&
52698          { ac_try='test -s conftest.$ac_objext'
52699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52700   (eval $ac_try) 2>&5
52701   ac_status=$?
52702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52703   (exit $ac_status); }; }; then
52704   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
52705 else
52706   echo "$as_me: failed program was:" >&5
52707 sed 's/^/| /' conftest.$ac_ext >&5
52708
52709 cat >conftest.$ac_ext <<_ACEOF
52710 /* confdefs.h.  */
52711 _ACEOF
52712 cat confdefs.h >>conftest.$ac_ext
52713 cat >>conftest.$ac_ext <<_ACEOF
52714 /* end confdefs.h.  */
52715
52716 #include <sys/types.h>
52717 #include <sys/socket.h>
52718 #include <netinet/in.h>
52719 $isc_netinetin6_hack
52720 $isc_netinet6in6_hack
52721
52722
52723 int
52724 main ()
52725 {
52726 static struct sockaddr_in6 ac_aggr;
52727 if (sizeof ac_aggr.sin6_scope_id)
52728 return 0;
52729   ;
52730   return 0;
52731 }
52732 _ACEOF
52733 rm -f conftest.$ac_objext
52734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52735   (eval $ac_compile) 2>conftest.er1
52736   ac_status=$?
52737   grep -v '^ *+' conftest.er1 >conftest.err
52738   rm -f conftest.er1
52739   cat conftest.err >&5
52740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52741   (exit $ac_status); } &&
52742          { ac_try='test -z "$ac_c_werror_flag"
52743                          || test ! -s conftest.err'
52744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52745   (eval $ac_try) 2>&5
52746   ac_status=$?
52747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52748   (exit $ac_status); }; } &&
52749          { ac_try='test -s conftest.$ac_objext'
52750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52751   (eval $ac_try) 2>&5
52752   ac_status=$?
52753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52754   (exit $ac_status); }; }; then
52755   ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
52756 else
52757   echo "$as_me: failed program was:" >&5
52758 sed 's/^/| /' conftest.$ac_ext >&5
52759
52760 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
52761 fi
52762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52763 fi
52764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52765 fi
52766 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
52767 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
52768 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
52769
52770 cat >>confdefs.h <<_ACEOF
52771 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
52772 _ACEOF
52773
52774
52775 fi
52776
52777
52778     echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
52779 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6
52780     cat >conftest.$ac_ext <<_ACEOF
52781 /* confdefs.h.  */
52782 _ACEOF
52783 cat confdefs.h >>conftest.$ac_ext
52784 cat >>conftest.$ac_ext <<_ACEOF
52785 /* end confdefs.h.  */
52786
52787 #include <sys/types.h>
52788 #include <sys/socket.h>
52789 #include <netinet/in.h>
52790 $isc_netinetin6_hack
52791 $isc_netinet6in6_hack
52792
52793 int
52794 main ()
52795 {
52796 struct in6_pktinfo xyzzy; return (0);
52797   ;
52798   return 0;
52799 }
52800 _ACEOF
52801 rm -f conftest.$ac_objext
52802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52803   (eval $ac_compile) 2>conftest.er1
52804   ac_status=$?
52805   grep -v '^ *+' conftest.er1 >conftest.err
52806   rm -f conftest.er1
52807   cat conftest.err >&5
52808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52809   (exit $ac_status); } &&
52810          { ac_try='test -z "$ac_c_werror_flag"
52811                          || test ! -s conftest.err'
52812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52813   (eval $ac_try) 2>&5
52814   ac_status=$?
52815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52816   (exit $ac_status); }; } &&
52817          { ac_try='test -s conftest.$ac_objext'
52818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52819   (eval $ac_try) 2>&5
52820   ac_status=$?
52821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52822   (exit $ac_status); }; }; then
52823   echo "$as_me:$LINENO: result: yes" >&5
52824 echo "${ECHO_T}yes" >&6
52825
52826 cat >>confdefs.h <<\_ACEOF
52827 #define ISC_PLATFORM_HAVEIN6PKTINFO
52828 _ACEOF
52829
52830 else
52831   echo "$as_me: failed program was:" >&5
52832 sed 's/^/| /' conftest.$ac_ext >&5
52833
52834 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
52835 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6
52836 fi
52837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52838
52839     # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
52840     echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
52841 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6
52842     cat >conftest.$ac_ext <<_ACEOF
52843 /* confdefs.h.  */
52844 _ACEOF
52845 cat confdefs.h >>conftest.$ac_ext
52846 cat >>conftest.$ac_ext <<_ACEOF
52847 /* end confdefs.h.  */
52848
52849 #include <sys/types.h>
52850 #include <sys/socket.h>
52851 #include <netinet/in.h>
52852 $isc_netinetin6_hack
52853 $isc_netinet6in6_hack
52854
52855 int
52856 main ()
52857 {
52858 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
52859   ;
52860   return 0;
52861 }
52862 _ACEOF
52863 rm -f conftest.$ac_objext
52864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52865   (eval $ac_compile) 2>conftest.er1
52866   ac_status=$?
52867   grep -v '^ *+' conftest.er1 >conftest.err
52868   rm -f conftest.er1
52869   cat conftest.err >&5
52870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52871   (exit $ac_status); } &&
52872          { ac_try='test -z "$ac_c_werror_flag"
52873                          || test ! -s conftest.err'
52874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52875   (eval $ac_try) 2>&5
52876   ac_status=$?
52877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52878   (exit $ac_status); }; } &&
52879          { ac_try='test -s conftest.$ac_objext'
52880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52881   (eval $ac_try) 2>&5
52882   ac_status=$?
52883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52884   (exit $ac_status); }; }; then
52885   echo "$as_me:$LINENO: result: yes" >&5
52886 echo "${ECHO_T}yes" >&6
52887
52888 cat >>confdefs.h <<\_ACEOF
52889 #define ISC_PLATFORM_HAVESCOPEID
52890 _ACEOF
52891
52892 else
52893   echo "$as_me: failed program was:" >&5
52894 sed 's/^/| /' conftest.$ac_ext >&5
52895
52896 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
52897 fi
52898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52899     LWRES_HAVE_SIN6_SCOPE_ID="$result"
52900
52901     ;;
52902 esac
52903
52904 # We need this check run all the time...
52905 echo "$as_me:$LINENO: checking for in6addr_any" >&5
52906 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6
52907 cat >conftest.$ac_ext <<_ACEOF
52908 /* confdefs.h.  */
52909 _ACEOF
52910 cat confdefs.h >>conftest.$ac_ext
52911 cat >>conftest.$ac_ext <<_ACEOF
52912 /* end confdefs.h.  */
52913
52914 #include <sys/types.h>
52915 #include <sys/socket.h>
52916 #include <netinet/in.h>
52917 $isc_netinetin6_hack
52918 $isc_netinet6in6_hack
52919 $isc_in_addr6_hack
52920
52921 int
52922 main ()
52923 {
52924 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
52925   ;
52926   return 0;
52927 }
52928 _ACEOF
52929 rm -f conftest.$ac_objext conftest$ac_exeext
52930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52931   (eval $ac_link) 2>conftest.er1
52932   ac_status=$?
52933   grep -v '^ *+' conftest.er1 >conftest.err
52934   rm -f conftest.er1
52935   cat conftest.err >&5
52936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52937   (exit $ac_status); } &&
52938          { ac_try='test -z "$ac_c_werror_flag"
52939                          || test ! -s conftest.err'
52940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52941   (eval $ac_try) 2>&5
52942   ac_status=$?
52943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52944   (exit $ac_status); }; } &&
52945          { ac_try='test -s conftest$ac_exeext'
52946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52947   (eval $ac_try) 2>&5
52948   ac_status=$?
52949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52950   (exit $ac_status); }; }; then
52951   echo "$as_me:$LINENO: result: yes" >&5
52952 echo "${ECHO_T}yes" >&6
52953 else
52954   echo "$as_me: failed program was:" >&5
52955 sed 's/^/| /' conftest.$ac_ext >&5
52956
52957 echo "$as_me:$LINENO: result: no" >&5
52958 echo "${ECHO_T}no" >&6
52959
52960 cat >>confdefs.h <<\_ACEOF
52961 #define ISC_PLATFORM_NEEDIN6ADDRANY
52962 _ACEOF
52963
52964
52965 fi
52966 rm -f conftest.err conftest.$ac_objext \
52967       conftest$ac_exeext conftest.$ac_ext
52968
52969 #
52970 # Look for a sysctl call to get the list of network interfaces.
52971 #
52972 echo "$as_me:$LINENO: checking for interface list sysctl" >&5
52973 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6
52974 cat >conftest.$ac_ext <<_ACEOF
52975 /* confdefs.h.  */
52976 _ACEOF
52977 cat confdefs.h >>conftest.$ac_ext
52978 cat >>conftest.$ac_ext <<_ACEOF
52979 /* end confdefs.h.  */
52980
52981 #include <sys/param.h>
52982 #include <sys/sysctl.h>
52983 #include <sys/socket.h>
52984 #ifdef NET_RT_IFLIST
52985 found_rt_iflist
52986 #endif
52987
52988 _ACEOF
52989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52990   $EGREP "found_rt_iflist" >/dev/null 2>&1; then
52991   echo "$as_me:$LINENO: result: yes" >&5
52992 echo "${ECHO_T}yes" >&6
52993
52994 cat >>confdefs.h <<\_ACEOF
52995 #define HAVE_IFLIST_SYSCTL 1
52996 _ACEOF
52997
52998 else
52999   echo "$as_me:$LINENO: result: no" >&5
53000 echo "${ECHO_T}no" >&6
53001 fi
53002 rm -f conftest*
53003
53004
53005 ###
53006
53007
53008         ac_expanded=`(
53009             test "x$prefix" = xNONE && prefix="$ac_default_prefix"
53010             test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
53011             eval echo \""$sysconfdir"\"
53012         )`
53013
53014 cat >>confdefs.h <<_ACEOF
53015 #define NTP_KEYSDIR "$ac_expanded"
53016 _ACEOF
53017
53018
53019
53020           ac_config_files="$ac_config_files Makefile"
53021
53022           ac_config_files="$ac_config_files ElectricFence/Makefile"
53023
53024           ac_config_files="$ac_config_files adjtimed/Makefile"
53025
53026           ac_config_files="$ac_config_files clockstuff/Makefile"
53027
53028           ac_config_files="$ac_config_files include/Makefile"
53029
53030           ac_config_files="$ac_config_files include/isc/Makefile"
53031
53032           ac_config_files="$ac_config_files kernel/Makefile"
53033
53034           ac_config_files="$ac_config_files kernel/sys/Makefile"
53035
53036           ac_config_files="$ac_config_files libntp/Makefile"
53037
53038           ac_config_files="$ac_config_files libparse/Makefile"
53039
53040           ac_config_files="$ac_config_files ntpd/Makefile"
53041
53042           ac_config_files="$ac_config_files ntpdate/Makefile"
53043
53044           ac_config_files="$ac_config_files ntpdc/Makefile"
53045
53046           ac_config_files="$ac_config_files ntpdc/nl.pl"
53047
53048           ac_config_files="$ac_config_files ntpq/Makefile"
53049
53050           ac_config_files="$ac_config_files parseutil/Makefile"
53051
53052           ac_config_files="$ac_config_files scripts/Makefile"
53053
53054           ac_config_files="$ac_config_files scripts/calc_tickadj"
53055
53056           ac_config_files="$ac_config_files scripts/checktime"
53057
53058           ac_config_files="$ac_config_files scripts/freq_adj"
53059
53060           ac_config_files="$ac_config_files scripts/html2man"
53061
53062           ac_config_files="$ac_config_files scripts/mkver"
53063
53064           ac_config_files="$ac_config_files scripts/ntp-wait"
53065
53066           ac_config_files="$ac_config_files scripts/ntpsweep"
53067
53068           ac_config_files="$ac_config_files scripts/ntptrace"
53069
53070           ac_config_files="$ac_config_files scripts/ntpver"
53071
53072           ac_config_files="$ac_config_files scripts/plot_summary"
53073
53074           ac_config_files="$ac_config_files scripts/summary"
53075
53076           ac_config_files="$ac_config_files util/Makefile"
53077
53078
53079
53080 ac_subdirs_all="$ac_subdirs_all sntp"
53081
53082 subdirs="$subdirs sntp"
53083
53084
53085 cat >confcache <<\_ACEOF
53086 # This file is a shell script that caches the results of configure
53087 # tests run on this system so they can be shared between configure
53088 # scripts and configure runs, see configure's option --config-cache.
53089 # It is not useful on other systems.  If it contains results you don't
53090 # want to keep, you may remove or edit it.
53091 #
53092 # config.status only pays attention to the cache file if you give it
53093 # the --recheck option to rerun configure.
53094 #
53095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53097 # following values.
53098
53099 _ACEOF
53100
53101 # The following way of writing the cache mishandles newlines in values,
53102 # but we know of no workaround that is simple, portable, and efficient.
53103 # So, don't put newlines in cache variables' values.
53104 # Ultrix sh set writes to stderr and can't be redirected directly,
53105 # and sets the high bit in the cache file unless we assign to the vars.
53106 {
53107   (set) 2>&1 |
53108     case `(ac_space=' '; set | grep ac_space) 2>&1` in
53109     *ac_space=\ *])
53110       # `set' does not quote correctly, so add quotes (double-quote
53111       # substitution turns \\\\ into \\, and sed turns \\ into \).
53112       sed -n \
53113         "s/'/'\\\\''/g;
53114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53115       ;;
53116     *)
53117       # `set' quotes correctly as required by POSIX, so do not add quotes.
53118       sed -n \
53119         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
53120       ;;
53121     esac;
53122 } |
53123   sed '
53124      t clear
53125      : clear
53126      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53127      t end
53128      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53129      : end' >>confcache
53130 if diff $cache_file confcache >/dev/null 2>&1; then :; else
53131   if test -w $cache_file; then
53132     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53133     cat confcache >$cache_file
53134   else
53135     echo "not updating unwritable cache $cache_file"
53136   fi
53137 fi
53138 rm -f confcache
53139
53140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53141 # Let make expand exec_prefix.
53142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53143
53144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53146 # trailing colons and then remove the whole line if VPATH becomes empty
53147 # (actually we leave an empty line to preserve line numbers).
53148 if test "x$srcdir" = x.; then
53149   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53150 s/:*\$(srcdir):*/:/;
53151 s/:*\${srcdir}:*/:/;
53152 s/:*@srcdir@:*/:/;
53153 s/^\([^=]*=[     ]*\):*/\1/;
53154 s/:*$//;
53155 s/^[^=]*=[       ]*$//;
53156 }'
53157 fi
53158
53159 DEFS=-DHAVE_CONFIG_H
53160
53161 ac_libobjs=
53162 ac_ltlibobjs=
53163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53164   # 1. Remove the extension, and $U if already installed.
53165   ac_i=`echo "$ac_i" |
53166          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53167   # 2. Add them.
53168   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53169   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53170 done
53171 LIBOBJS=$ac_libobjs
53172
53173 LTLIBOBJS=$ac_ltlibobjs
53174
53175
53176 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53177   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53178 Usually this means the macro was only invoked conditionally." >&5
53179 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53180 Usually this means the macro was only invoked conditionally." >&2;}
53181    { (exit 1); exit 1; }; }
53182 fi
53183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53184   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53185 Usually this means the macro was only invoked conditionally." >&5
53186 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53187 Usually this means the macro was only invoked conditionally." >&2;}
53188    { (exit 1); exit 1; }; }
53189 fi
53190 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53191   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53192 Usually this means the macro was only invoked conditionally." >&5
53193 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53194 Usually this means the macro was only invoked conditionally." >&2;}
53195    { (exit 1); exit 1; }; }
53196 fi
53197 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
53198   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
53199 Usually this means the macro was only invoked conditionally." >&5
53200 echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
53201 Usually this means the macro was only invoked conditionally." >&2;}
53202    { (exit 1); exit 1; }; }
53203 fi
53204 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
53205   { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
53206 Usually this means the macro was only invoked conditionally." >&5
53207 echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
53208 Usually this means the macro was only invoked conditionally." >&2;}
53209    { (exit 1); exit 1; }; }
53210 fi
53211 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53212   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53213 Usually this means the macro was only invoked conditionally." >&5
53214 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53215 Usually this means the macro was only invoked conditionally." >&2;}
53216    { (exit 1); exit 1; }; }
53217 fi
53218
53219 : ${CONFIG_STATUS=./config.status}
53220 ac_clean_files_save=$ac_clean_files
53221 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53222 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53223 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53224 cat >$CONFIG_STATUS <<_ACEOF
53225 #! $SHELL
53226 # Generated by $as_me.
53227 # Run this file to recreate the current configuration.
53228 # Compiler output produced by configure, useful for debugging
53229 # configure, is in config.log if it exists.
53230
53231 debug=false
53232 ac_cs_recheck=false
53233 ac_cs_silent=false
53234 SHELL=\${CONFIG_SHELL-$SHELL}
53235 _ACEOF
53236
53237 cat >>$CONFIG_STATUS <<\_ACEOF
53238 ## --------------------- ##
53239 ## M4sh Initialization.  ##
53240 ## --------------------- ##
53241
53242 # Be Bourne compatible
53243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53244   emulate sh
53245   NULLCMD=:
53246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53247   # is contrary to our usage.  Disable this feature.
53248   alias -g '${1+"$@"}'='"$@"'
53249 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53250   set -o posix
53251 fi
53252 DUALCASE=1; export DUALCASE # for MKS sh
53253
53254 # Support unset when possible.
53255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53256   as_unset=unset
53257 else
53258   as_unset=false
53259 fi
53260
53261
53262 # Work around bugs in pre-3.0 UWIN ksh.
53263 $as_unset ENV MAIL MAILPATH
53264 PS1='$ '
53265 PS2='> '
53266 PS4='+ '
53267
53268 # NLS nuisances.
53269 for as_var in \
53270   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53271   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53272   LC_TELEPHONE LC_TIME
53273 do
53274   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53275     eval $as_var=C; export $as_var
53276   else
53277     $as_unset $as_var
53278   fi
53279 done
53280
53281 # Required to use basename.
53282 if expr a : '\(a\)' >/dev/null 2>&1; then
53283   as_expr=expr
53284 else
53285   as_expr=false
53286 fi
53287
53288 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53289   as_basename=basename
53290 else
53291   as_basename=false
53292 fi
53293
53294
53295 # Name of the executable.
53296 as_me=`$as_basename "$0" ||
53297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53298          X"$0" : 'X\(//\)$' \| \
53299          X"$0" : 'X\(/\)$' \| \
53300          .     : '\(.\)' 2>/dev/null ||
53301 echo X/"$0" |
53302     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53303           /^X\/\(\/\/\)$/{ s//\1/; q; }
53304           /^X\/\(\/\).*/{ s//\1/; q; }
53305           s/.*/./; q'`
53306
53307
53308 # PATH needs CR, and LINENO needs CR and PATH.
53309 # Avoid depending upon Character Ranges.
53310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53313 as_cr_digits='0123456789'
53314 as_cr_alnum=$as_cr_Letters$as_cr_digits
53315
53316 # The user is always right.
53317 if test "${PATH_SEPARATOR+set}" != set; then
53318   echo "#! /bin/sh" >conf$$.sh
53319   echo  "exit 0"   >>conf$$.sh
53320   chmod +x conf$$.sh
53321   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53322     PATH_SEPARATOR=';'
53323   else
53324     PATH_SEPARATOR=:
53325   fi
53326   rm -f conf$$.sh
53327 fi
53328
53329
53330   as_lineno_1=$LINENO
53331   as_lineno_2=$LINENO
53332   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53333   test "x$as_lineno_1" != "x$as_lineno_2" &&
53334   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53335   # Find who we are.  Look in the path if we contain no path at all
53336   # relative or not.
53337   case $0 in
53338     *[\\/]* ) as_myself=$0 ;;
53339     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53340 for as_dir in $PATH
53341 do
53342   IFS=$as_save_IFS
53343   test -z "$as_dir" && as_dir=.
53344   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53345 done
53346
53347        ;;
53348   esac
53349   # We did not find ourselves, most probably we were run as `sh COMMAND'
53350   # in which case we are not to be found in the path.
53351   if test "x$as_myself" = x; then
53352     as_myself=$0
53353   fi
53354   if test ! -f "$as_myself"; then
53355     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53356 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53357    { (exit 1); exit 1; }; }
53358   fi
53359   case $CONFIG_SHELL in
53360   '')
53361     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53362 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53363 do
53364   IFS=$as_save_IFS
53365   test -z "$as_dir" && as_dir=.
53366   for as_base in sh bash ksh sh5; do
53367          case $as_dir in
53368          /*)
53369            if ("$as_dir/$as_base" -c '
53370   as_lineno_1=$LINENO
53371   as_lineno_2=$LINENO
53372   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53373   test "x$as_lineno_1" != "x$as_lineno_2" &&
53374   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53375              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53376              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53377              CONFIG_SHELL=$as_dir/$as_base
53378              export CONFIG_SHELL
53379              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53380            fi;;
53381          esac
53382        done
53383 done
53384 ;;
53385   esac
53386
53387   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53388   # uniformly replaced by the line number.  The first 'sed' inserts a
53389   # line-number line before each line; the second 'sed' does the real
53390   # work.  The second script uses 'N' to pair each line-number line
53391   # with the numbered line, and appends trailing '-' during
53392   # substitution so that $LINENO is not a special case at line end.
53393   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53394   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53395   sed '=' <$as_myself |
53396     sed '
53397       N
53398       s,$,-,
53399       : loop
53400       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53401       t loop
53402       s,-$,,
53403       s,^['$as_cr_digits']*\n,,
53404     ' >$as_me.lineno &&
53405   chmod +x $as_me.lineno ||
53406     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53407 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53408    { (exit 1); exit 1; }; }
53409
53410   # Don't try to exec as it changes $[0], causing all sort of problems
53411   # (the dirname of $[0] is not the place where we might find the
53412   # original and so on.  Autoconf is especially sensible to this).
53413   . ./$as_me.lineno
53414   # Exit status is that of the last command.
53415   exit
53416 }
53417
53418
53419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53420   *c*,-n*) ECHO_N= ECHO_C='
53421 ' ECHO_T='      ' ;;
53422   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53423   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53424 esac
53425
53426 if expr a : '\(a\)' >/dev/null 2>&1; then
53427   as_expr=expr
53428 else
53429   as_expr=false
53430 fi
53431
53432 rm -f conf$$ conf$$.exe conf$$.file
53433 echo >conf$$.file
53434 if ln -s conf$$.file conf$$ 2>/dev/null; then
53435   # We could just check for DJGPP; but this test a) works b) is more generic
53436   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53437   if test -f conf$$.exe; then
53438     # Don't use ln at all; we don't have any links
53439     as_ln_s='cp -p'
53440   else
53441     as_ln_s='ln -s'
53442   fi
53443 elif ln conf$$.file conf$$ 2>/dev/null; then
53444   as_ln_s=ln
53445 else
53446   as_ln_s='cp -p'
53447 fi
53448 rm -f conf$$ conf$$.exe conf$$.file
53449
53450 if mkdir -p . 2>/dev/null; then
53451   as_mkdir_p=:
53452 else
53453   test -d ./-p && rmdir ./-p
53454   as_mkdir_p=false
53455 fi
53456
53457 as_executable_p="test -f"
53458
53459 # Sed expression to map a string onto a valid CPP name.
53460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53461
53462 # Sed expression to map a string onto a valid variable name.
53463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53464
53465
53466 # IFS
53467 # We need space, tab and new line, in precisely that order.
53468 as_nl='
53469 '
53470 IFS="   $as_nl"
53471
53472 # CDPATH.
53473 $as_unset CDPATH
53474
53475 exec 6>&1
53476
53477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53478 # report actual input values of CONFIG_FILES etc. instead of their
53479 # values after options handling.  Logging --version etc. is OK.
53480 exec 5>>config.log
53481 {
53482   echo
53483   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53484 ## Running $as_me. ##
53485 _ASBOX
53486 } >&5
53487 cat >&5 <<_CSEOF
53488
53489 This file was extended by ntp $as_me 4.2.4p5, which was
53490 generated by GNU Autoconf 2.59.  Invocation command line was
53491
53492   CONFIG_FILES    = $CONFIG_FILES
53493   CONFIG_HEADERS  = $CONFIG_HEADERS
53494   CONFIG_LINKS    = $CONFIG_LINKS
53495   CONFIG_COMMANDS = $CONFIG_COMMANDS
53496   $ $0 $@
53497
53498 _CSEOF
53499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53500 echo >&5
53501 _ACEOF
53502
53503 # Files that config.status was made for.
53504 if test -n "$ac_config_files"; then
53505   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53506 fi
53507
53508 if test -n "$ac_config_headers"; then
53509   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53510 fi
53511
53512 if test -n "$ac_config_links"; then
53513   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53514 fi
53515
53516 if test -n "$ac_config_commands"; then
53517   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53518 fi
53519
53520 cat >>$CONFIG_STATUS <<\_ACEOF
53521
53522 ac_cs_usage="\
53523 \`$as_me' instantiates files from templates according to the
53524 current configuration.
53525
53526 Usage: $0 [OPTIONS] [FILE]...
53527
53528   -h, --help       print this help, then exit
53529   -V, --version    print version number, then exit
53530   -q, --quiet      do not print progress messages
53531   -d, --debug      don't remove temporary files
53532       --recheck    update $as_me by reconfiguring in the same conditions
53533   --file=FILE[:TEMPLATE]
53534                    instantiate the configuration file FILE
53535   --header=FILE[:TEMPLATE]
53536                    instantiate the configuration header FILE
53537
53538 Configuration files:
53539 $config_files
53540
53541 Configuration headers:
53542 $config_headers
53543
53544 Configuration commands:
53545 $config_commands
53546
53547 Report bugs to <bug-autoconf@gnu.org>."
53548 _ACEOF
53549
53550 cat >>$CONFIG_STATUS <<_ACEOF
53551 ac_cs_version="\\
53552 ntp config.status 4.2.4p5
53553 configured by $0, generated by GNU Autoconf 2.59,
53554   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53555
53556 Copyright (C) 2003 Free Software Foundation, Inc.
53557 This config.status script is free software; the Free Software Foundation
53558 gives unlimited permission to copy, distribute and modify it."
53559 srcdir=$srcdir
53560 INSTALL="$INSTALL"
53561 _ACEOF
53562
53563 cat >>$CONFIG_STATUS <<\_ACEOF
53564 # If no file are specified by the user, then we need to provide default
53565 # value.  By we need to know if files were specified by the user.
53566 ac_need_defaults=:
53567 while test $# != 0
53568 do
53569   case $1 in
53570   --*=*)
53571     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53572     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53573     ac_shift=:
53574     ;;
53575   -*)
53576     ac_option=$1
53577     ac_optarg=$2
53578     ac_shift=shift
53579     ;;
53580   *) # This is not an option, so the user has probably given explicit
53581      # arguments.
53582      ac_option=$1
53583      ac_need_defaults=false;;
53584   esac
53585
53586   case $ac_option in
53587   # Handling of the options.
53588 _ACEOF
53589 cat >>$CONFIG_STATUS <<\_ACEOF
53590   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53591     ac_cs_recheck=: ;;
53592   --version | --vers* | -V )
53593     echo "$ac_cs_version"; exit 0 ;;
53594   --he | --h)
53595     # Conflict between --help and --header
53596     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53597 Try \`$0 --help' for more information." >&5
53598 echo "$as_me: error: ambiguous option: $1
53599 Try \`$0 --help' for more information." >&2;}
53600    { (exit 1); exit 1; }; };;
53601   --help | --hel | -h )
53602     echo "$ac_cs_usage"; exit 0 ;;
53603   --debug | --d* | -d )
53604     debug=: ;;
53605   --file | --fil | --fi | --f )
53606     $ac_shift
53607     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53608     ac_need_defaults=false;;
53609   --header | --heade | --head | --hea )
53610     $ac_shift
53611     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53612     ac_need_defaults=false;;
53613   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53614   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53615     ac_cs_silent=: ;;
53616
53617   # This is an error.
53618   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53619 Try \`$0 --help' for more information." >&5
53620 echo "$as_me: error: unrecognized option: $1
53621 Try \`$0 --help' for more information." >&2;}
53622    { (exit 1); exit 1; }; } ;;
53623
53624   *) ac_config_targets="$ac_config_targets $1" ;;
53625
53626   esac
53627   shift
53628 done
53629
53630 ac_configure_extra_args=
53631
53632 if $ac_cs_silent; then
53633   exec 6>/dev/null
53634   ac_configure_extra_args="$ac_configure_extra_args --silent"
53635 fi
53636
53637 _ACEOF
53638 cat >>$CONFIG_STATUS <<_ACEOF
53639 if \$ac_cs_recheck; then
53640   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53641   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53642 fi
53643
53644 _ACEOF
53645
53646 cat >>$CONFIG_STATUS <<_ACEOF
53647 #
53648 # INIT-COMMANDS section.
53649 #
53650
53651 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53652
53653 _ACEOF
53654
53655
53656
53657 cat >>$CONFIG_STATUS <<\_ACEOF
53658 for ac_config_target in $ac_config_targets
53659 do
53660   case "$ac_config_target" in
53661   # Handling of arguments.
53662   "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
53663   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53664   "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
53665   "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
53666   "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
53667   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53668   "include/isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
53669   "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
53670   "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
53671   "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
53672   "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
53673   "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
53674   "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
53675   "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
53676   "ntpdc/nl.pl" ) CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
53677   "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
53678   "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
53679   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
53680   "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
53681   "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
53682   "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
53683   "scripts/html2man" ) CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
53684   "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
53685   "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
53686   "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
53687   "scripts/ntptrace" ) CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
53688   "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
53689   "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
53690   "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
53691   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
53692   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53693   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
53694   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53696    { (exit 1); exit 1; }; };;
53697   esac
53698 done
53699
53700 # If the user did not use the arguments to specify the items to instantiate,
53701 # then the envvar interface is used.  Set only those that are not.
53702 # We use the long form for the default assignment because of an extremely
53703 # bizarre bug on SunOS 4.1.3.
53704 if $ac_need_defaults; then
53705   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53706   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53707   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53708 fi
53709
53710 # Have a temporary directory for convenience.  Make it in the build tree
53711 # simply because there is no reason to put it here, and in addition,
53712 # creating and moving files from /tmp can sometimes cause problems.
53713 # Create a temporary directory, and hook for its removal unless debugging.
53714 $debug ||
53715 {
53716   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53717   trap '{ (exit 1); exit 1; }' 1 2 13 15
53718 }
53719
53720 # Create a (secure) tmp directory for tmp files.
53721
53722 {
53723   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53724   test -n "$tmp" && test -d "$tmp"
53725 }  ||
53726 {
53727   tmp=./confstat$$-$RANDOM
53728   (umask 077 && mkdir $tmp)
53729 } ||
53730 {
53731    echo "$me: cannot create a temporary directory in ." >&2
53732    { (exit 1); exit 1; }
53733 }
53734
53735 _ACEOF
53736
53737 cat >>$CONFIG_STATUS <<_ACEOF
53738
53739 #
53740 # CONFIG_FILES section.
53741 #
53742
53743 # No need to generate the scripts if there are no CONFIG_FILES.
53744 # This happens for instance when ./config.status config.h
53745 if test -n "\$CONFIG_FILES"; then
53746   # Protect against being on the right side of a sed subst in config.status.
53747   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53748    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53749 s,@SHELL@,$SHELL,;t t
53750 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53751 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53752 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53753 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53754 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53755 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53756 s,@exec_prefix@,$exec_prefix,;t t
53757 s,@prefix@,$prefix,;t t
53758 s,@program_transform_name@,$program_transform_name,;t t
53759 s,@bindir@,$bindir,;t t
53760 s,@sbindir@,$sbindir,;t t
53761 s,@libexecdir@,$libexecdir,;t t
53762 s,@datadir@,$datadir,;t t
53763 s,@sysconfdir@,$sysconfdir,;t t
53764 s,@sharedstatedir@,$sharedstatedir,;t t
53765 s,@localstatedir@,$localstatedir,;t t
53766 s,@libdir@,$libdir,;t t
53767 s,@includedir@,$includedir,;t t
53768 s,@oldincludedir@,$oldincludedir,;t t
53769 s,@infodir@,$infodir,;t t
53770 s,@mandir@,$mandir,;t t
53771 s,@build_alias@,$build_alias,;t t
53772 s,@host_alias@,$host_alias,;t t
53773 s,@target_alias@,$target_alias,;t t
53774 s,@DEFS@,$DEFS,;t t
53775 s,@ECHO_C@,$ECHO_C,;t t
53776 s,@ECHO_N@,$ECHO_N,;t t
53777 s,@ECHO_T@,$ECHO_T,;t t
53778 s,@LIBS@,$LIBS,;t t
53779 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53780 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53781 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53782 s,@CYGPATH_W@,$CYGPATH_W,;t t
53783 s,@PACKAGE@,$PACKAGE,;t t
53784 s,@VERSION@,$VERSION,;t t
53785 s,@ACLOCAL@,$ACLOCAL,;t t
53786 s,@AUTOCONF@,$AUTOCONF,;t t
53787 s,@AUTOMAKE@,$AUTOMAKE,;t t
53788 s,@AUTOHEADER@,$AUTOHEADER,;t t
53789 s,@MAKEINFO@,$MAKEINFO,;t t
53790 s,@install_sh@,$install_sh,;t t
53791 s,@STRIP@,$STRIP,;t t
53792 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53793 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53794 s,@mkdir_p@,$mkdir_p,;t t
53795 s,@AWK@,$AWK,;t t
53796 s,@SET_MAKE@,$SET_MAKE,;t t
53797 s,@am__leading_dot@,$am__leading_dot,;t t
53798 s,@AMTAR@,$AMTAR,;t t
53799 s,@am__tar@,$am__tar,;t t
53800 s,@am__untar@,$am__untar,;t t
53801 s,@build@,$build,;t t
53802 s,@build_cpu@,$build_cpu,;t t
53803 s,@build_vendor@,$build_vendor,;t t
53804 s,@build_os@,$build_os,;t t
53805 s,@host@,$host,;t t
53806 s,@host_cpu@,$host_cpu,;t t
53807 s,@host_vendor@,$host_vendor,;t t
53808 s,@host_os@,$host_os,;t t
53809 s,@CC@,$CC,;t t
53810 s,@CFLAGS@,$CFLAGS,;t t
53811 s,@LDFLAGS@,$LDFLAGS,;t t
53812 s,@CPPFLAGS@,$CPPFLAGS,;t t
53813 s,@ac_ct_CC@,$ac_ct_CC,;t t
53814 s,@EXEEXT@,$EXEEXT,;t t
53815 s,@OBJEXT@,$OBJEXT,;t t
53816 s,@DEPDIR@,$DEPDIR,;t t
53817 s,@am__include@,$am__include,;t t
53818 s,@am__quote@,$am__quote,;t t
53819 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53820 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53821 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53822 s,@CCDEPMODE@,$CCDEPMODE,;t t
53823 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53824 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53825 s,@CPP@,$CPP,;t t
53826 s,@EGREP@,$EGREP,;t t
53827 s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
53828 s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t
53829 s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t
53830 s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
53831 s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
53832 s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
53833 s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
53834 s,@BINSUBDIR@,$BINSUBDIR,;t t
53835 s,@subdirs@,$subdirs,;t t
53836 s,@ARLIB_DIR@,$ARLIB_DIR,;t t
53837 s,@LN_S@,$LN_S,;t t
53838 s,@ECHO@,$ECHO,;t t
53839 s,@AR@,$AR,;t t
53840 s,@ac_ct_AR@,$ac_ct_AR,;t t
53841 s,@RANLIB@,$RANLIB,;t t
53842 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53843 s,@CXX@,$CXX,;t t
53844 s,@CXXFLAGS@,$CXXFLAGS,;t t
53845 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53846 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53847 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53848 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53849 s,@CXXCPP@,$CXXCPP,;t t
53850 s,@F77@,$F77,;t t
53851 s,@FFLAGS@,$FFLAGS,;t t
53852 s,@ac_ct_F77@,$ac_ct_F77,;t t
53853 s,@LIBTOOL@,$LIBTOOL,;t t
53854 s,@PATH_SH@,$PATH_SH,;t t
53855 s,@PATH_PERL@,$PATH_PERL,;t t
53856 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
53857 s,@U@,$U,;t t
53858 s,@ANSI2KNR@,$ANSI2KNR,;t t
53859 s,@LIBPARSE@,$LIBPARSE,;t t
53860 s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
53861 s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
53862 s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
53863 s,@OPENSSL@,$OPENSSL,;t t
53864 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
53865 s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
53866 s,@LCRYPTO@,$LCRYPTO,;t t
53867 s,@EF_PROGS@,$EF_PROGS,;t t
53868 s,@EF_LIBS@,$EF_LIBS,;t t
53869 s,@MAKE_CHECK_LAYOUT@,$MAKE_CHECK_LAYOUT,;t t
53870 s,@TESTDCF@,$TESTDCF,;t t
53871 s,@DCFD@,$DCFD,;t t
53872 s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
53873 s,@PROPDELAY@,$PROPDELAY,;t t
53874 s,@CHUTEST@,$CHUTEST,;t t
53875 s,@CLKTEST@,$CLKTEST,;t t
53876 s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
53877 s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
53878 s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
53879 s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
53880 s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t
53881 s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t
53882 s,@LIBOBJS@,$LIBOBJS,;t t
53883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53884 CEOF
53885
53886 _ACEOF
53887
53888   cat >>$CONFIG_STATUS <<\_ACEOF
53889   # Split the substitutions into bite-sized pieces for seds with
53890   # small command number limits, like on Digital OSF/1 and HP-UX.
53891   ac_max_sed_lines=48
53892   ac_sed_frag=1 # Number of current file.
53893   ac_beg=1 # First line for current file.
53894   ac_end=$ac_max_sed_lines # Line after last line for current file.
53895   ac_more_lines=:
53896   ac_sed_cmds=
53897   while $ac_more_lines; do
53898     if test $ac_beg -gt 1; then
53899       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53900     else
53901       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53902     fi
53903     if test ! -s $tmp/subs.frag; then
53904       ac_more_lines=false
53905     else
53906       # The purpose of the label and of the branching condition is to
53907       # speed up the sed processing (if there are no `@' at all, there
53908       # is no need to browse any of the substitutions).
53909       # These are the two extra sed commands mentioned above.
53910       (echo ':t
53911   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53912       if test -z "$ac_sed_cmds"; then
53913         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53914       else
53915         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53916       fi
53917       ac_sed_frag=`expr $ac_sed_frag + 1`
53918       ac_beg=$ac_end
53919       ac_end=`expr $ac_end + $ac_max_sed_lines`
53920     fi
53921   done
53922   if test -z "$ac_sed_cmds"; then
53923     ac_sed_cmds=cat
53924   fi
53925 fi # test -n "$CONFIG_FILES"
53926
53927 _ACEOF
53928 cat >>$CONFIG_STATUS <<\_ACEOF
53929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53931   case $ac_file in
53932   - | *:- | *:-:* ) # input from stdin
53933         cat >$tmp/stdin
53934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53938   * )   ac_file_in=$ac_file.in ;;
53939   esac
53940
53941   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53942   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53944          X"$ac_file" : 'X\(//\)[^/]' \| \
53945          X"$ac_file" : 'X\(//\)$' \| \
53946          X"$ac_file" : 'X\(/\)' \| \
53947          .     : '\(.\)' 2>/dev/null ||
53948 echo X"$ac_file" |
53949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53951           /^X\(\/\/\)$/{ s//\1/; q; }
53952           /^X\(\/\).*/{ s//\1/; q; }
53953           s/.*/./; q'`
53954   { if $as_mkdir_p; then
53955     mkdir -p "$ac_dir"
53956   else
53957     as_dir="$ac_dir"
53958     as_dirs=
53959     while test ! -d "$as_dir"; do
53960       as_dirs="$as_dir $as_dirs"
53961       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53963          X"$as_dir" : 'X\(//\)[^/]' \| \
53964          X"$as_dir" : 'X\(//\)$' \| \
53965          X"$as_dir" : 'X\(/\)' \| \
53966          .     : '\(.\)' 2>/dev/null ||
53967 echo X"$as_dir" |
53968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53970           /^X\(\/\/\)$/{ s//\1/; q; }
53971           /^X\(\/\).*/{ s//\1/; q; }
53972           s/.*/./; q'`
53973     done
53974     test ! -n "$as_dirs" || mkdir $as_dirs
53975   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53977    { (exit 1); exit 1; }; }; }
53978
53979   ac_builddir=.
53980
53981 if test "$ac_dir" != .; then
53982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53983   # A "../" for each directory in $ac_dir_suffix.
53984   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53985 else
53986   ac_dir_suffix= ac_top_builddir=
53987 fi
53988
53989 case $srcdir in
53990   .)  # No --srcdir option.  We are building in place.
53991     ac_srcdir=.
53992     if test -z "$ac_top_builddir"; then
53993        ac_top_srcdir=.
53994     else
53995        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53996     fi ;;
53997   [\\/]* | ?:[\\/]* )  # Absolute path.
53998     ac_srcdir=$srcdir$ac_dir_suffix;
53999     ac_top_srcdir=$srcdir ;;
54000   *) # Relative path.
54001     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54002     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54003 esac
54004
54005 # Do not use `cd foo && pwd` to compute absolute paths, because
54006 # the directories may not exist.
54007 case `pwd` in
54008 .) ac_abs_builddir="$ac_dir";;
54009 *)
54010   case "$ac_dir" in
54011   .) ac_abs_builddir=`pwd`;;
54012   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54013   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54014   esac;;
54015 esac
54016 case $ac_abs_builddir in
54017 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54018 *)
54019   case ${ac_top_builddir}. in
54020   .) ac_abs_top_builddir=$ac_abs_builddir;;
54021   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54022   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54023   esac;;
54024 esac
54025 case $ac_abs_builddir in
54026 .) ac_abs_srcdir=$ac_srcdir;;
54027 *)
54028   case $ac_srcdir in
54029   .) ac_abs_srcdir=$ac_abs_builddir;;
54030   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54031   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54032   esac;;
54033 esac
54034 case $ac_abs_builddir in
54035 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54036 *)
54037   case $ac_top_srcdir in
54038   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54039   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54040   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54041   esac;;
54042 esac
54043
54044
54045   case $INSTALL in
54046   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54047   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54048   esac
54049
54050   if test x"$ac_file" != x-; then
54051     { echo "$as_me:$LINENO: creating $ac_file" >&5
54052 echo "$as_me: creating $ac_file" >&6;}
54053     rm -f "$ac_file"
54054   fi
54055   # Let's still pretend it is `configure' which instantiates (i.e., don't
54056   # use $as_me), people would be surprised to read:
54057   #    /* config.h.  Generated by config.status.  */
54058   if test x"$ac_file" = x-; then
54059     configure_input=
54060   else
54061     configure_input="$ac_file.  "
54062   fi
54063   configure_input=$configure_input"Generated from `echo $ac_file_in |
54064                                      sed 's,.*/,,'` by configure."
54065
54066   # First look for the input files in the build tree, otherwise in the
54067   # src tree.
54068   ac_file_inputs=`IFS=:
54069     for f in $ac_file_in; do
54070       case $f in
54071       -) echo $tmp/stdin ;;
54072       [\\/$]*)
54073          # Absolute (can't be DOS-style, as IFS=:)
54074          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54075 echo "$as_me: error: cannot find input file: $f" >&2;}
54076    { (exit 1); exit 1; }; }
54077          echo "$f";;
54078       *) # Relative
54079          if test -f "$f"; then
54080            # Build tree
54081            echo "$f"
54082          elif test -f "$srcdir/$f"; then
54083            # Source tree
54084            echo "$srcdir/$f"
54085          else
54086            # /dev/null tree
54087            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54088 echo "$as_me: error: cannot find input file: $f" >&2;}
54089    { (exit 1); exit 1; }; }
54090          fi;;
54091       esac
54092     done` || { (exit 1); exit 1; }
54093 _ACEOF
54094 cat >>$CONFIG_STATUS <<_ACEOF
54095   sed "$ac_vpsub
54096 $extrasub
54097 _ACEOF
54098 cat >>$CONFIG_STATUS <<\_ACEOF
54099 :t
54100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54101 s,@configure_input@,$configure_input,;t t
54102 s,@srcdir@,$ac_srcdir,;t t
54103 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54104 s,@top_srcdir@,$ac_top_srcdir,;t t
54105 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54106 s,@builddir@,$ac_builddir,;t t
54107 s,@abs_builddir@,$ac_abs_builddir,;t t
54108 s,@top_builddir@,$ac_top_builddir,;t t
54109 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54110 s,@INSTALL@,$ac_INSTALL,;t t
54111 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54112   rm -f $tmp/stdin
54113   if test x"$ac_file" != x-; then
54114     mv $tmp/out $ac_file
54115   else
54116     cat $tmp/out
54117     rm -f $tmp/out
54118   fi
54119
54120   # Run the commands associated with the file.
54121   case $ac_file in
54122     ntpdc/nl.pl ) chmod +x ntpdc/nl.pl ;;
54123     scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;;
54124     scripts/checktime ) chmod +x scripts/checktime ;;
54125     scripts/freq_adj ) chmod +x scripts/freq_adj ;;
54126     scripts/html2man ) chmod +x scripts/html2man ;;
54127     scripts/mkver ) chmod +x scripts/mkver ;;
54128     scripts/ntp-wait ) chmod +x scripts/ntp-wait ;;
54129     scripts/ntpsweep ) chmod +x scripts/ntpsweep ;;
54130     scripts/ntptrace ) chmod +x scripts/ntptrace ;;
54131     scripts/ntpver ) chmod +x scripts/ntpver ;;
54132     scripts/plot_summary ) chmod +x scripts/plot_summary ;;
54133     scripts/summary ) chmod +x scripts/summary ;;
54134   esac
54135 done
54136 _ACEOF
54137 cat >>$CONFIG_STATUS <<\_ACEOF
54138
54139 #
54140 # CONFIG_HEADER section.
54141 #
54142
54143 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54144 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54145 #
54146 # ac_d sets the value in "#define NAME VALUE" lines.
54147 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54148 ac_dB='[         ].*$,\1#\2'
54149 ac_dC=' '
54150 ac_dD=',;t'
54151 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54152 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54153 ac_uB='$,\1#\2define\3'
54154 ac_uC=' '
54155 ac_uD=',;t'
54156
54157 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54158   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54159   case $ac_file in
54160   - | *:- | *:-:* ) # input from stdin
54161         cat >$tmp/stdin
54162         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54163         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54164   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54165         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54166   * )   ac_file_in=$ac_file.in ;;
54167   esac
54168
54169   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54170 echo "$as_me: creating $ac_file" >&6;}
54171
54172   # First look for the input files in the build tree, otherwise in the
54173   # src tree.
54174   ac_file_inputs=`IFS=:
54175     for f in $ac_file_in; do
54176       case $f in
54177       -) echo $tmp/stdin ;;
54178       [\\/$]*)
54179          # Absolute (can't be DOS-style, as IFS=:)
54180          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54181 echo "$as_me: error: cannot find input file: $f" >&2;}
54182    { (exit 1); exit 1; }; }
54183          # Do quote $f, to prevent DOS paths from being IFS'd.
54184          echo "$f";;
54185       *) # Relative
54186          if test -f "$f"; then
54187            # Build tree
54188            echo "$f"
54189          elif test -f "$srcdir/$f"; then
54190            # Source tree
54191            echo "$srcdir/$f"
54192          else
54193            # /dev/null tree
54194            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54195 echo "$as_me: error: cannot find input file: $f" >&2;}
54196    { (exit 1); exit 1; }; }
54197          fi;;
54198       esac
54199     done` || { (exit 1); exit 1; }
54200   # Remove the trailing spaces.
54201   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54202
54203 _ACEOF
54204
54205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54206 # `conftest.undefs', that substitutes the proper values into
54207 # config.h.in to produce config.h.  The first handles `#define'
54208 # templates, and the second `#undef' templates.
54209 # And first: Protect against being on the right side of a sed subst in
54210 # config.status.  Protect against being in an unquoted here document
54211 # in config.status.
54212 rm -f conftest.defines conftest.undefs
54213 # Using a here document instead of a string reduces the quoting nightmare.
54214 # Putting comments in sed scripts is not portable.
54215 #
54216 # `end' is used to avoid that the second main sed command (meant for
54217 # 0-ary CPP macros) applies to n-ary macro definitions.
54218 # See the Autoconf documentation for `clear'.
54219 cat >confdef2sed.sed <<\_ACEOF
54220 s/[\\&,]/\\&/g
54221 s,[\\$`],\\&,g
54222 t clear
54223 : clear
54224 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54225 t end
54226 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54227 : end
54228 _ACEOF
54229 # If some macros were called several times there might be several times
54230 # the same #defines, which is useless.  Nevertheless, we may not want to
54231 # sort them, since we want the *last* AC-DEFINE to be honored.
54232 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54233 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54234 rm -f confdef2sed.sed
54235
54236 # This sed command replaces #undef with comments.  This is necessary, for
54237 # example, in the case of _POSIX_SOURCE, which is predefined and required
54238 # on some systems where configure will not decide to define it.
54239 cat >>conftest.undefs <<\_ACEOF
54240 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54241 _ACEOF
54242
54243 # Break up conftest.defines because some shells have a limit on the size
54244 # of here documents, and old seds have small limits too (100 cmds).
54245 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54246 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54247 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54248 echo '  :' >>$CONFIG_STATUS
54249 rm -f conftest.tail
54250 while grep . conftest.defines >/dev/null
54251 do
54252   # Write a limited-size here document to $tmp/defines.sed.
54253   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54254   # Speed up: don't consider the non `#define' lines.
54255   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54256   # Work around the forget-to-reset-the-flag bug.
54257   echo 't clr' >>$CONFIG_STATUS
54258   echo ': clr' >>$CONFIG_STATUS
54259   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54260   echo 'CEOF
54261   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54262   rm -f $tmp/in
54263   mv $tmp/out $tmp/in
54264 ' >>$CONFIG_STATUS
54265   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54266   rm -f conftest.defines
54267   mv conftest.tail conftest.defines
54268 done
54269 rm -f conftest.defines
54270 echo '  fi # grep' >>$CONFIG_STATUS
54271 echo >>$CONFIG_STATUS
54272
54273 # Break up conftest.undefs because some shells have a limit on the size
54274 # of here documents, and old seds have small limits too (100 cmds).
54275 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54276 rm -f conftest.tail
54277 while grep . conftest.undefs >/dev/null
54278 do
54279   # Write a limited-size here document to $tmp/undefs.sed.
54280   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54281   # Speed up: don't consider the non `#undef'
54282   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54283   # Work around the forget-to-reset-the-flag bug.
54284   echo 't clr' >>$CONFIG_STATUS
54285   echo ': clr' >>$CONFIG_STATUS
54286   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54287   echo 'CEOF
54288   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54289   rm -f $tmp/in
54290   mv $tmp/out $tmp/in
54291 ' >>$CONFIG_STATUS
54292   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54293   rm -f conftest.undefs
54294   mv conftest.tail conftest.undefs
54295 done
54296 rm -f conftest.undefs
54297
54298 cat >>$CONFIG_STATUS <<\_ACEOF
54299   # Let's still pretend it is `configure' which instantiates (i.e., don't
54300   # use $as_me), people would be surprised to read:
54301   #    /* config.h.  Generated by config.status.  */
54302   if test x"$ac_file" = x-; then
54303     echo "/* Generated by configure.  */" >$tmp/config.h
54304   else
54305     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54306   fi
54307   cat $tmp/in >>$tmp/config.h
54308   rm -f $tmp/in
54309   if test x"$ac_file" != x-; then
54310     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54311       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54312 echo "$as_me: $ac_file is unchanged" >&6;}
54313     else
54314       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54316          X"$ac_file" : 'X\(//\)[^/]' \| \
54317          X"$ac_file" : 'X\(//\)$' \| \
54318          X"$ac_file" : 'X\(/\)' \| \
54319          .     : '\(.\)' 2>/dev/null ||
54320 echo X"$ac_file" |
54321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54323           /^X\(\/\/\)$/{ s//\1/; q; }
54324           /^X\(\/\).*/{ s//\1/; q; }
54325           s/.*/./; q'`
54326       { if $as_mkdir_p; then
54327     mkdir -p "$ac_dir"
54328   else
54329     as_dir="$ac_dir"
54330     as_dirs=
54331     while test ! -d "$as_dir"; do
54332       as_dirs="$as_dir $as_dirs"
54333       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54335          X"$as_dir" : 'X\(//\)[^/]' \| \
54336          X"$as_dir" : 'X\(//\)$' \| \
54337          X"$as_dir" : 'X\(/\)' \| \
54338          .     : '\(.\)' 2>/dev/null ||
54339 echo X"$as_dir" |
54340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54342           /^X\(\/\/\)$/{ s//\1/; q; }
54343           /^X\(\/\).*/{ s//\1/; q; }
54344           s/.*/./; q'`
54345     done
54346     test ! -n "$as_dirs" || mkdir $as_dirs
54347   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54349    { (exit 1); exit 1; }; }; }
54350
54351       rm -f $ac_file
54352       mv $tmp/config.h $ac_file
54353     fi
54354   else
54355     cat $tmp/config.h
54356     rm -f $tmp/config.h
54357   fi
54358 # Compute $ac_file's index in $config_headers.
54359 _am_stamp_count=1
54360 for _am_header in $config_headers :; do
54361   case $_am_header in
54362     $ac_file | $ac_file:* )
54363       break ;;
54364     * )
54365       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54366   esac
54367 done
54368 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54369 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54370          X$ac_file : 'X\(//\)[^/]' \| \
54371          X$ac_file : 'X\(//\)$' \| \
54372          X$ac_file : 'X\(/\)' \| \
54373          .     : '\(.\)' 2>/dev/null ||
54374 echo X$ac_file |
54375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54376           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54377           /^X\(\/\/\)$/{ s//\1/; q; }
54378           /^X\(\/\).*/{ s//\1/; q; }
54379           s/.*/./; q'`/stamp-h$_am_stamp_count
54380 done
54381 _ACEOF
54382 cat >>$CONFIG_STATUS <<\_ACEOF
54383
54384 #
54385 # CONFIG_COMMANDS section.
54386 #
54387 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54388   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54389   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54390   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54391 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54392          X"$ac_dest" : 'X\(//\)[^/]' \| \
54393          X"$ac_dest" : 'X\(//\)$' \| \
54394          X"$ac_dest" : 'X\(/\)' \| \
54395          .     : '\(.\)' 2>/dev/null ||
54396 echo X"$ac_dest" |
54397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54399           /^X\(\/\/\)$/{ s//\1/; q; }
54400           /^X\(\/\).*/{ s//\1/; q; }
54401           s/.*/./; q'`
54402   { if $as_mkdir_p; then
54403     mkdir -p "$ac_dir"
54404   else
54405     as_dir="$ac_dir"
54406     as_dirs=
54407     while test ! -d "$as_dir"; do
54408       as_dirs="$as_dir $as_dirs"
54409       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54411          X"$as_dir" : 'X\(//\)[^/]' \| \
54412          X"$as_dir" : 'X\(//\)$' \| \
54413          X"$as_dir" : 'X\(/\)' \| \
54414          .     : '\(.\)' 2>/dev/null ||
54415 echo X"$as_dir" |
54416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54417           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54418           /^X\(\/\/\)$/{ s//\1/; q; }
54419           /^X\(\/\).*/{ s//\1/; q; }
54420           s/.*/./; q'`
54421     done
54422     test ! -n "$as_dirs" || mkdir $as_dirs
54423   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54424 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54425    { (exit 1); exit 1; }; }; }
54426
54427   ac_builddir=.
54428
54429 if test "$ac_dir" != .; then
54430   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54431   # A "../" for each directory in $ac_dir_suffix.
54432   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54433 else
54434   ac_dir_suffix= ac_top_builddir=
54435 fi
54436
54437 case $srcdir in
54438   .)  # No --srcdir option.  We are building in place.
54439     ac_srcdir=.
54440     if test -z "$ac_top_builddir"; then
54441        ac_top_srcdir=.
54442     else
54443        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54444     fi ;;
54445   [\\/]* | ?:[\\/]* )  # Absolute path.
54446     ac_srcdir=$srcdir$ac_dir_suffix;
54447     ac_top_srcdir=$srcdir ;;
54448   *) # Relative path.
54449     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54450     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54451 esac
54452
54453 # Do not use `cd foo && pwd` to compute absolute paths, because
54454 # the directories may not exist.
54455 case `pwd` in
54456 .) ac_abs_builddir="$ac_dir";;
54457 *)
54458   case "$ac_dir" in
54459   .) ac_abs_builddir=`pwd`;;
54460   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54461   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54462   esac;;
54463 esac
54464 case $ac_abs_builddir in
54465 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54466 *)
54467   case ${ac_top_builddir}. in
54468   .) ac_abs_top_builddir=$ac_abs_builddir;;
54469   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54470   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54471   esac;;
54472 esac
54473 case $ac_abs_builddir in
54474 .) ac_abs_srcdir=$ac_srcdir;;
54475 *)
54476   case $ac_srcdir in
54477   .) ac_abs_srcdir=$ac_abs_builddir;;
54478   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54479   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54480   esac;;
54481 esac
54482 case $ac_abs_builddir in
54483 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54484 *)
54485   case $ac_top_srcdir in
54486   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54487   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54488   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54489   esac;;
54490 esac
54491
54492
54493   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54494 echo "$as_me: executing $ac_dest commands" >&6;}
54495   case $ac_dest in
54496     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54497   # Strip MF so we end up with the name of the file.
54498   mf=`echo "$mf" | sed -e 's/:.*$//'`
54499   # Check whether this is an Automake generated Makefile or not.
54500   # We used to match only the files named `Makefile.in', but
54501   # some people rename them; so instead we look at the file content.
54502   # Grep'ing the first line is not enough: some people post-process
54503   # each Makefile.in and add a new line on top of each file to say so.
54504   # So let's grep whole file.
54505   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54506     dirpart=`(dirname "$mf") 2>/dev/null ||
54507 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54508          X"$mf" : 'X\(//\)[^/]' \| \
54509          X"$mf" : 'X\(//\)$' \| \
54510          X"$mf" : 'X\(/\)' \| \
54511          .     : '\(.\)' 2>/dev/null ||
54512 echo X"$mf" |
54513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54514           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54515           /^X\(\/\/\)$/{ s//\1/; q; }
54516           /^X\(\/\).*/{ s//\1/; q; }
54517           s/.*/./; q'`
54518   else
54519     continue
54520   fi
54521   # Extract the definition of DEPDIR, am__include, and am__quote
54522   # from the Makefile without running `make'.
54523   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54524   test -z "$DEPDIR" && continue
54525   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54526   test -z "am__include" && continue
54527   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54528   # When using ansi2knr, U may be empty or an underscore; expand it
54529   U=`sed -n 's/^U = //p' < "$mf"`
54530   # Find all dependency output files, they are included files with
54531   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54532   # simplest approach to changing $(DEPDIR) to its actual value in the
54533   # expansion.
54534   for file in `sed -n "
54535     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54536        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54537     # Make sure the directory exists.
54538     test -f "$dirpart/$file" && continue
54539     fdir=`(dirname "$file") 2>/dev/null ||
54540 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54541          X"$file" : 'X\(//\)[^/]' \| \
54542          X"$file" : 'X\(//\)$' \| \
54543          X"$file" : 'X\(/\)' \| \
54544          .     : '\(.\)' 2>/dev/null ||
54545 echo X"$file" |
54546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54547           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54548           /^X\(\/\/\)$/{ s//\1/; q; }
54549           /^X\(\/\).*/{ s//\1/; q; }
54550           s/.*/./; q'`
54551     { if $as_mkdir_p; then
54552     mkdir -p $dirpart/$fdir
54553   else
54554     as_dir=$dirpart/$fdir
54555     as_dirs=
54556     while test ! -d "$as_dir"; do
54557       as_dirs="$as_dir $as_dirs"
54558       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54560          X"$as_dir" : 'X\(//\)[^/]' \| \
54561          X"$as_dir" : 'X\(//\)$' \| \
54562          X"$as_dir" : 'X\(/\)' \| \
54563          .     : '\(.\)' 2>/dev/null ||
54564 echo X"$as_dir" |
54565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54566           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54567           /^X\(\/\/\)$/{ s//\1/; q; }
54568           /^X\(\/\).*/{ s//\1/; q; }
54569           s/.*/./; q'`
54570     done
54571     test ! -n "$as_dirs" || mkdir $as_dirs
54572   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54573 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54574    { (exit 1); exit 1; }; }; }
54575
54576     # echo "creating $dirpart/$file"
54577     echo '# dummy' > "$dirpart/$file"
54578   done
54579 done
54580  ;;
54581   esac
54582 done
54583 _ACEOF
54584
54585 cat >>$CONFIG_STATUS <<\_ACEOF
54586
54587 { (exit 0); exit 0; }
54588 _ACEOF
54589 chmod +x $CONFIG_STATUS
54590 ac_clean_files=$ac_clean_files_save
54591
54592
54593 # configure is writing to config.log, and then calls config.status.
54594 # config.status does its own redirection, appending to config.log.
54595 # Unfortunately, on DOS this fails, as config.log is still kept open
54596 # by configure, so config.status won't be able to write to it; its
54597 # output is simply discarded.  So we exec the FD to /dev/null,
54598 # effectively closing config.log, so it can be properly (re)opened and
54599 # appended to by config.status.  When coming back to configure, we
54600 # need to make the FD available again.
54601 if test "$no_create" != yes; then
54602   ac_cs_success=:
54603   ac_config_status_args=
54604   test "$silent" = yes &&
54605     ac_config_status_args="$ac_config_status_args --quiet"
54606   exec 5>/dev/null
54607   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54608   exec 5>>config.log
54609   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54610   # would make configure fail if this is the last instruction.
54611   $ac_cs_success || { (exit 1); exit 1; }
54612 fi
54613
54614 #
54615 # CONFIG_SUBDIRS section.
54616 #
54617 if test "$no_recursion" != yes; then
54618
54619   # Remove --cache-file and --srcdir arguments so they do not pile up.
54620   ac_sub_configure_args=
54621   ac_prev=
54622   for ac_arg in $ac_configure_args; do
54623     if test -n "$ac_prev"; then
54624       ac_prev=
54625       continue
54626     fi
54627     case $ac_arg in
54628     -cache-file | --cache-file | --cache-fil | --cache-fi \
54629     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54630       ac_prev=cache_file ;;
54631     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54632     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54633     | --c=*)
54634       ;;
54635     --config-cache | -C)
54636       ;;
54637     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54638       ac_prev=srcdir ;;
54639     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54640       ;;
54641     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54642       ac_prev=prefix ;;
54643     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54644       ;;
54645     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
54646     esac
54647   done
54648
54649   # Always prepend --prefix to ensure using the same prefix
54650   # in subdir configurations.
54651   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
54652
54653   ac_popdir=`pwd`
54654   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54655
54656     # Do not complain, so a configure script can configure whichever
54657     # parts of a large source tree are present.
54658     test -d $srcdir/$ac_dir || continue
54659
54660     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
54661 echo "$as_me: configuring in $ac_dir" >&6;}
54662     { if $as_mkdir_p; then
54663     mkdir -p "$ac_dir"
54664   else
54665     as_dir="$ac_dir"
54666     as_dirs=
54667     while test ! -d "$as_dir"; do
54668       as_dirs="$as_dir $as_dirs"
54669       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54671          X"$as_dir" : 'X\(//\)[^/]' \| \
54672          X"$as_dir" : 'X\(//\)$' \| \
54673          X"$as_dir" : 'X\(/\)' \| \
54674          .     : '\(.\)' 2>/dev/null ||
54675 echo X"$as_dir" |
54676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54678           /^X\(\/\/\)$/{ s//\1/; q; }
54679           /^X\(\/\).*/{ s//\1/; q; }
54680           s/.*/./; q'`
54681     done
54682     test ! -n "$as_dirs" || mkdir $as_dirs
54683   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54685    { (exit 1); exit 1; }; }; }
54686
54687     ac_builddir=.
54688
54689 if test "$ac_dir" != .; then
54690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54691   # A "../" for each directory in $ac_dir_suffix.
54692   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54693 else
54694   ac_dir_suffix= ac_top_builddir=
54695 fi
54696
54697 case $srcdir in
54698   .)  # No --srcdir option.  We are building in place.
54699     ac_srcdir=.
54700     if test -z "$ac_top_builddir"; then
54701        ac_top_srcdir=.
54702     else
54703        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54704     fi ;;
54705   [\\/]* | ?:[\\/]* )  # Absolute path.
54706     ac_srcdir=$srcdir$ac_dir_suffix;
54707     ac_top_srcdir=$srcdir ;;
54708   *) # Relative path.
54709     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54710     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54711 esac
54712
54713 # Do not use `cd foo && pwd` to compute absolute paths, because
54714 # the directories may not exist.
54715 case `pwd` in
54716 .) ac_abs_builddir="$ac_dir";;
54717 *)
54718   case "$ac_dir" in
54719   .) ac_abs_builddir=`pwd`;;
54720   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54721   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54722   esac;;
54723 esac
54724 case $ac_abs_builddir in
54725 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54726 *)
54727   case ${ac_top_builddir}. in
54728   .) ac_abs_top_builddir=$ac_abs_builddir;;
54729   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54730   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54731   esac;;
54732 esac
54733 case $ac_abs_builddir in
54734 .) ac_abs_srcdir=$ac_srcdir;;
54735 *)
54736   case $ac_srcdir in
54737   .) ac_abs_srcdir=$ac_abs_builddir;;
54738   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54739   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54740   esac;;
54741 esac
54742 case $ac_abs_builddir in
54743 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54744 *)
54745   case $ac_top_srcdir in
54746   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54747   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54748   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54749   esac;;
54750 esac
54751
54752
54753     cd $ac_dir
54754
54755     # Check for guested configure; otherwise get Cygnus style configure.
54756     if test -f $ac_srcdir/configure.gnu; then
54757       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
54758     elif test -f $ac_srcdir/configure; then
54759       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
54760     elif test -f $ac_srcdir/configure.in; then
54761       ac_sub_configure=$ac_configure
54762     else
54763       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54764 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54765       ac_sub_configure=
54766     fi
54767
54768     # The recursion is here.
54769     if test -n "$ac_sub_configure"; then
54770       # Make the cache file name correct relative to the subdirectory.
54771       case $cache_file in
54772       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54773       *) # Relative path.
54774         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
54775       esac
54776
54777       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54778 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54779       # The eval makes quoting arguments work.
54780       eval $ac_sub_configure $ac_sub_configure_args \
54781            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
54782         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54783 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54784    { (exit 1); exit 1; }; }
54785     fi
54786
54787     cd $ac_popdir
54788   done
54789 fi
54790