xref: /netbsd-src/external/bsd/ntp/dist/configure (revision 6d322f2f4598f0d8a138f10ea648ec4fabe41f8b)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for ntp 4.2.7p404.
4#
5# Report bugs to <http://bugs.ntp.org./>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://bugs.ntp.org./ about your system, including any
251$0: error possibly output before this message. Then install
252$0: a modern shell, or manually run the script under such a
253$0: shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='ntp'
572PACKAGE_TARNAME='ntp'
573PACKAGE_VERSION='4.2.7p404'
574PACKAGE_STRING='ntp 4.2.7p404'
575PACKAGE_BUGREPORT='http://bugs.ntp.org./'
576PACKAGE_URL='http://www.ntp.org./'
577
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592#  include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597#  include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
614ac_header_list=
615enable_option_checking=no
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619subdirs
620PERLLIBDIR
621NTP_KEYSDIR
622GTEST_AVAILABLE_FALSE
623GTEST_AVAILABLE_TRUE
624GTEST_CPPFLAGS
625GTEST_CXXFLAGS
626GTEST_LIBS
627GTEST_LDFLAGS
628GTEST_CONFIG
629SAVECONFIG_ENABLED_FALSE
630SAVECONFIG_ENABLED_TRUE
631LSCF
632MAKE_NTPSNMPD
633SNMP_CFLAGS
634SNMP_CPPFLAGS
635SNMP_LIBS
636BUILD_SNTP_FALSE
637BUILD_SNTP_TRUE
638SNTP
639MAKE_NTPDSIM
640MAKE_LIBNTPSIM
641MAKE_TIMETRIM
642MAKE_TICKADJ
643MAKE_NTPTIME
644MAKE_ADJTIMED
645CHUTEST
646PROPDELAY
647MAKE_PARSEKMODULE
648DCFD
649TESTDCF
650MAKE_CHECK_LAYOUT
651VER_SUFFIX
652PKG_CONFIG
653MAKE_CHECK_Y2K
654MAKE_LIBPARSE_KERNEL
655MAKE_LIBPARSE
656LIBPARSE
657HAVE_RLIMIT_STACK
658HAVE_RLIMIT_MEMLOCK
659LDADD_NLIST
660PATH_NET_SNMP_CONFIG
661CONFIG_SHELL
662PATH_TEST
663PATH_PERL
664LIBOBJS
665PTHREADS_FALSE
666PTHREADS_TRUE
667LIBISC_PTHREADS_NOTHREADS
668PTHREAD_LIBS
669HAVE_INLINE
670ALLOCA
671LIBM
672EDITLINE_LIBS
673LDADD_LIBNTP
674NTP_CROSSCOMPILE_FALSE
675NTP_CROSSCOMPILE_TRUE
676LIBOPTS_DIR
677LIBOPTS_CFLAGS
678LIBOPTS_LDADD
679NEED_LIBOPTS_FALSE
680NEED_LIBOPTS_TRUE
681INSTALL_LIBOPTS_FALSE
682INSTALL_LIBOPTS_TRUE
683POSIX_SHELL
684LIBTOOL_DEPS
685CXXCPP
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691MANIFEST_TOOL
692RANLIB
693ac_ct_AR
694AR
695DLLTOOL
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703SED
704LIBTOOL
705TIMETRIM_MS
706TIMETRIM_DS
707TIMETRIM_DL
708TIMETRIM_DB
709TICKADJ_MS
710TICKADJ_DS
711TICKADJ_DL
712TICKADJ_DB
713SNTP_MS
714SNTP_DS
715SNTP_DL
716SNTP_DB
717NTP_WAIT_MS
718NTP_WAIT_DS
719NTP_WAIT_DL
720NTP_WAIT_DB
721NTP_KEYGEN_MS
722NTP_KEYGEN_DS
723NTP_KEYGEN_DL
724NTP_KEYGEN_DB
725NTPTRACE_MS
726NTPTRACE_DS
727NTPTRACE_DL
728NTPTRACE_DB
729NTPTIME_MS
730NTPTIME_DS
731NTPTIME_DL
732NTPTIME_DB
733NTPSNMPD_MS
734NTPSNMPD_DS
735NTPSNMPD_DL
736NTPSNMPD_DB
737NTPQ_MS
738NTPQ_DS
739NTPQ_DL
740NTPQ_DB
741NTPD_MS
742NTPD_DS
743NTPD_DL
744NTPD_DB
745NTPDSIM_MS
746NTPDSIM_DS
747NTPDSIM_DL
748NTPDSIM_DB
749NTPDC_MS
750NTPDC_DS
751NTPDC_DL
752NTPDC_DB
753NTPDATE_MS
754NTPDATE_DS
755NTPDATE_DL
756NTPDATE_DB
757MANTAGFMT
758CALC_TICKADJ_MS
759CALC_TICKADJ_DS
760CALC_TICKADJ_DL
761CALC_TICKADJ_DB
762WANT_CALC_TICKADJ_MS_FALSE
763WANT_CALC_TICKADJ_MS_TRUE
764VPATH_HACK_FALSE
765VPATH_HACK_TRUE
766YFLAGS
767YACC
768am__fastdepCXX_FALSE
769am__fastdepCXX_TRUE
770CXXDEPMODE
771ac_ct_CXX
772CXXFLAGS
773CXX
774LDFLAGS_NTP
775LDADD_NTP
776CPPFLAGS_NTP
777CFLAGS_NTP
778EGREP
779GREP
780CPP
781am__fastdepCC_FALSE
782am__fastdepCC_TRUE
783CCDEPMODE
784AMDEPBACKSLASH
785AMDEP_FALSE
786AMDEP_TRUE
787am__quote
788am__include
789DEPDIR
790OBJEXT
791EXEEXT
792ac_ct_CC
793CPPFLAGS
794LDFLAGS
795CFLAGS
796CC
797host_os
798host_vendor
799host_cpu
800host
801build_os
802build_vendor
803build_cpu
804build
805AM_BACKSLASH
806AM_DEFAULT_VERBOSITY
807am__untar
808am__tar
809AMTAR
810am__leading_dot
811SET_MAKE
812AWK
813mkdir_p
814MKDIR_P
815INSTALL_STRIP_PROGRAM
816STRIP
817install_sh
818MAKEINFO
819AUTOHEADER
820AUTOMAKE
821AUTOCONF
822ACLOCAL
823VERSION
824PACKAGE
825CYGPATH_W
826am__isrc
827INSTALL_DATA
828INSTALL_SCRIPT
829INSTALL_PROGRAM
830target_alias
831host_alias
832build_alias
833LIBS
834ECHO_T
835ECHO_N
836ECHO_C
837DEFS
838mandir
839localedir
840libdir
841psdir
842pdfdir
843dvidir
844htmldir
845infodir
846docdir
847oldincludedir
848includedir
849localstatedir
850sharedstatedir
851sysconfdir
852datadir
853datarootdir
854libexecdir
855sbindir
856bindir
857program_transform_name
858prefix
859exec_prefix
860PACKAGE_URL
861PACKAGE_BUGREPORT
862PACKAGE_STRING
863PACKAGE_VERSION
864PACKAGE_TARNAME
865PACKAGE_NAME
866PATH_SEPARATOR
867SHELL'
868ac_subst_files='calc_tickadj_opts
869ntp_wait_opts
870ntpsweep_opts
871ntptrace_opts
872summary_opts
873plot_summary_opts'
874ac_user_opts='
875enable_option_checking
876enable_silent_rules
877enable_dependency_tracking
878with_locfile
879enable_shared
880enable_static
881with_pic
882enable_fast_install
883with_gnu_ld
884with_sysroot
885enable_libtool_lock
886enable_nls
887enable_local_libopts
888enable_libopts_install
889with_autoopts_config
890enable_local_libevent
891with_lineeditlibs
892enable_debugging
893enable_thread_support
894with_threads
895enable_c99_snprintf
896enable_clockctl
897enable_linuxcaps
898enable_solarisprivs
899with_arlib
900with_net_snmp_config
901with_stack_limit
902with_memlock
903enable_debug_timing
904enable_dst_minutes
905enable_ignore_dns_errors
906enable_BANCOMM
907enable_GPSVME
908enable_all_clocks
909enable_ACTS
910enable_ARBITER
911enable_ARCRON_MSF
912enable_AS2201
913enable_ATOM
914enable_CHRONOLOG
915enable_CHU
916enable_AUDIO_CHU
917enable_DATUM
918enable_DUMBCLOCK
919enable_FG
920enable_HEATH
921enable_HOPFSERIAL
922enable_HOPFPCI
923enable_HPGPS
924enable_IRIG
925enable_JJY
926enable_JUPITER
927enable_LEITCH
928enable_LOCAL_CLOCK
929enable_MX4200
930enable_NEOCLOCK4X
931enable_NMEA
932enable_ONCORE
933enable_PALISADE
934enable_PCF
935enable_PST
936enable_RIPENCC
937enable_SHM
938enable_SPECTRACOM
939enable_TPRO
940enable_TRUETIME
941enable_TT560
942enable_ULINK
943enable_TSYNCPCI
944enable_WWV
945enable_ZYFER
946enable_parse_clocks
947enable_COMPUTIME
948enable_DCF7000
949enable_HOPF6021
950enable_MEINBERG
951enable_RAWDCF
952enable_RCC8000
953enable_SCHMID
954enable_TRIMTAIP
955enable_TRIMTSIP
956enable_WHARTON
957enable_VARITEXT
958enable_SEL240X
959with_crypto
960with_openssl_libdir
961with_openssl_incdir
962with_rpath
963enable_autokey
964enable_kmem
965enable_accurate_adjtime
966enable_tick
967enable_tickadj
968enable_simulator
969with_sntp
970with_ntpsnmpd
971enable_slew_always
972enable_step_slew
973enable_ntpdate_step
974enable_hourly_todr_sync
975enable_kernel_fll_bug
976enable_bug1243_fix
977enable_irig_sawtooth
978enable_nist
979enable_ntp_signd
980enable_ipv6
981with_kame
982enable_getifaddrs
983enable_saveconfig
984with_gtest
985'
986      ac_precious_vars='build_alias
987host_alias
988target_alias
989CC
990CFLAGS
991LDFLAGS
992LIBS
993CPPFLAGS
994CPP
995CXX
996CXXFLAGS
997CCC
998YACC
999YFLAGS
1000CXXCPP'
1001ac_subdirs_all='sntp'
1002
1003# Initialize some variables set by options.
1004ac_init_help=
1005ac_init_version=false
1006ac_unrecognized_opts=
1007ac_unrecognized_sep=
1008# The variables have the same names as the options, with
1009# dashes changed to underlines.
1010cache_file=/dev/null
1011exec_prefix=NONE
1012no_create=
1013no_recursion=
1014prefix=NONE
1015program_prefix=NONE
1016program_suffix=NONE
1017program_transform_name=s,x,x,
1018silent=
1019site=
1020srcdir=
1021verbose=
1022x_includes=NONE
1023x_libraries=NONE
1024
1025# Installation directory options.
1026# These are left unexpanded so users can "make install exec_prefix=/foo"
1027# and all the variables that are supposed to be based on exec_prefix
1028# by default will actually change.
1029# Use braces instead of parens because sh, perl, etc. also accept them.
1030# (The list follows the same order as the GNU Coding Standards.)
1031bindir='${exec_prefix}/bin'
1032sbindir='${exec_prefix}/sbin'
1033libexecdir='${exec_prefix}/libexec'
1034datarootdir='${prefix}/share'
1035datadir='${datarootdir}'
1036sysconfdir='${prefix}/etc'
1037sharedstatedir='${prefix}/com'
1038localstatedir='${prefix}/var'
1039includedir='${prefix}/include'
1040oldincludedir='/usr/include'
1041docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042infodir='${datarootdir}/info'
1043htmldir='${docdir}'
1044dvidir='${docdir}'
1045pdfdir='${docdir}'
1046psdir='${docdir}'
1047libdir='${exec_prefix}/lib'
1048localedir='${datarootdir}/locale'
1049mandir='${datarootdir}/man'
1050
1051ac_prev=
1052ac_dashdash=
1053for ac_option
1054do
1055  # If the previous option needs an argument, assign it.
1056  if test -n "$ac_prev"; then
1057    eval $ac_prev=\$ac_option
1058    ac_prev=
1059    continue
1060  fi
1061
1062  case $ac_option in
1063  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064  *=)   ac_optarg= ;;
1065  *)    ac_optarg=yes ;;
1066  esac
1067
1068  # Accept the important Cygnus configure options, so we can diagnose typos.
1069
1070  case $ac_dashdash$ac_option in
1071  --)
1072    ac_dashdash=yes ;;
1073
1074  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075    ac_prev=bindir ;;
1076  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077    bindir=$ac_optarg ;;
1078
1079  -build | --build | --buil | --bui | --bu)
1080    ac_prev=build_alias ;;
1081  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082    build_alias=$ac_optarg ;;
1083
1084  -cache-file | --cache-file | --cache-fil | --cache-fi \
1085  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086    ac_prev=cache_file ;;
1087  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089    cache_file=$ac_optarg ;;
1090
1091  --config-cache | -C)
1092    cache_file=config.cache ;;
1093
1094  -datadir | --datadir | --datadi | --datad)
1095    ac_prev=datadir ;;
1096  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097    datadir=$ac_optarg ;;
1098
1099  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100  | --dataroo | --dataro | --datar)
1101    ac_prev=datarootdir ;;
1102  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104    datarootdir=$ac_optarg ;;
1105
1106  -disable-* | --disable-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid feature name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"enable_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval enable_$ac_useropt=no ;;
1121
1122  -docdir | --docdir | --docdi | --doc | --do)
1123    ac_prev=docdir ;;
1124  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125    docdir=$ac_optarg ;;
1126
1127  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128    ac_prev=dvidir ;;
1129  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130    dvidir=$ac_optarg ;;
1131
1132  -enable-* | --enable-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid feature name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"enable_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150  | --exec | --exe | --ex)
1151    ac_prev=exec_prefix ;;
1152  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154  | --exec=* | --exe=* | --ex=*)
1155    exec_prefix=$ac_optarg ;;
1156
1157  -gas | --gas | --ga | --g)
1158    # Obsolete; use --with-gas.
1159    with_gas=yes ;;
1160
1161  -help | --help | --hel | --he | -h)
1162    ac_init_help=long ;;
1163  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164    ac_init_help=recursive ;;
1165  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166    ac_init_help=short ;;
1167
1168  -host | --host | --hos | --ho)
1169    ac_prev=host_alias ;;
1170  -host=* | --host=* | --hos=* | --ho=*)
1171    host_alias=$ac_optarg ;;
1172
1173  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174    ac_prev=htmldir ;;
1175  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176  | --ht=*)
1177    htmldir=$ac_optarg ;;
1178
1179  -includedir | --includedir | --includedi | --included | --include \
1180  | --includ | --inclu | --incl | --inc)
1181    ac_prev=includedir ;;
1182  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183  | --includ=* | --inclu=* | --incl=* | --inc=*)
1184    includedir=$ac_optarg ;;
1185
1186  -infodir | --infodir | --infodi | --infod | --info | --inf)
1187    ac_prev=infodir ;;
1188  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189    infodir=$ac_optarg ;;
1190
1191  -libdir | --libdir | --libdi | --libd)
1192    ac_prev=libdir ;;
1193  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194    libdir=$ac_optarg ;;
1195
1196  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197  | --libexe | --libex | --libe)
1198    ac_prev=libexecdir ;;
1199  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200  | --libexe=* | --libex=* | --libe=*)
1201    libexecdir=$ac_optarg ;;
1202
1203  -localedir | --localedir | --localedi | --localed | --locale)
1204    ac_prev=localedir ;;
1205  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206    localedir=$ac_optarg ;;
1207
1208  -localstatedir | --localstatedir | --localstatedi | --localstated \
1209  | --localstate | --localstat | --localsta | --localst | --locals)
1210    ac_prev=localstatedir ;;
1211  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213    localstatedir=$ac_optarg ;;
1214
1215  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216    ac_prev=mandir ;;
1217  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218    mandir=$ac_optarg ;;
1219
1220  -nfp | --nfp | --nf)
1221    # Obsolete; use --without-fp.
1222    with_fp=no ;;
1223
1224  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225  | --no-cr | --no-c | -n)
1226    no_create=yes ;;
1227
1228  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230    no_recursion=yes ;;
1231
1232  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234  | --oldin | --oldi | --old | --ol | --o)
1235    ac_prev=oldincludedir ;;
1236  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239    oldincludedir=$ac_optarg ;;
1240
1241  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242    ac_prev=prefix ;;
1243  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244    prefix=$ac_optarg ;;
1245
1246  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247  | --program-pre | --program-pr | --program-p)
1248    ac_prev=program_prefix ;;
1249  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251    program_prefix=$ac_optarg ;;
1252
1253  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254  | --program-suf | --program-su | --program-s)
1255    ac_prev=program_suffix ;;
1256  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258    program_suffix=$ac_optarg ;;
1259
1260  -program-transform-name | --program-transform-name \
1261  | --program-transform-nam | --program-transform-na \
1262  | --program-transform-n | --program-transform- \
1263  | --program-transform | --program-transfor \
1264  | --program-transfo | --program-transf \
1265  | --program-trans | --program-tran \
1266  | --progr-tra | --program-tr | --program-t)
1267    ac_prev=program_transform_name ;;
1268  -program-transform-name=* | --program-transform-name=* \
1269  | --program-transform-nam=* | --program-transform-na=* \
1270  | --program-transform-n=* | --program-transform-=* \
1271  | --program-transform=* | --program-transfor=* \
1272  | --program-transfo=* | --program-transf=* \
1273  | --program-trans=* | --program-tran=* \
1274  | --progr-tra=* | --program-tr=* | --program-t=*)
1275    program_transform_name=$ac_optarg ;;
1276
1277  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278    ac_prev=pdfdir ;;
1279  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280    pdfdir=$ac_optarg ;;
1281
1282  -psdir | --psdir | --psdi | --psd | --ps)
1283    ac_prev=psdir ;;
1284  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285    psdir=$ac_optarg ;;
1286
1287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288  | -silent | --silent | --silen | --sile | --sil)
1289    silent=yes ;;
1290
1291  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292    ac_prev=sbindir ;;
1293  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294  | --sbi=* | --sb=*)
1295    sbindir=$ac_optarg ;;
1296
1297  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299  | --sharedst | --shareds | --shared | --share | --shar \
1300  | --sha | --sh)
1301    ac_prev=sharedstatedir ;;
1302  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305  | --sha=* | --sh=*)
1306    sharedstatedir=$ac_optarg ;;
1307
1308  -site | --site | --sit)
1309    ac_prev=site ;;
1310  -site=* | --site=* | --sit=*)
1311    site=$ac_optarg ;;
1312
1313  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314    ac_prev=srcdir ;;
1315  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316    srcdir=$ac_optarg ;;
1317
1318  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319  | --syscon | --sysco | --sysc | --sys | --sy)
1320    ac_prev=sysconfdir ;;
1321  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323    sysconfdir=$ac_optarg ;;
1324
1325  -target | --target | --targe | --targ | --tar | --ta | --t)
1326    ac_prev=target_alias ;;
1327  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328    target_alias=$ac_optarg ;;
1329
1330  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331    verbose=yes ;;
1332
1333  -version | --version | --versio | --versi | --vers | -V)
1334    ac_init_version=: ;;
1335
1336  -with-* | --with-*)
1337    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338    # Reject names that are not valid shell variable names.
1339    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340      as_fn_error $? "invalid package name: $ac_useropt"
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=\$ac_optarg ;;
1351
1352  -without-* | --without-*)
1353    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356      as_fn_error $? "invalid package name: $ac_useropt"
1357    ac_useropt_orig=$ac_useropt
1358    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359    case $ac_user_opts in
1360      *"
1361"with_$ac_useropt"
1362"*) ;;
1363      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364	 ac_unrecognized_sep=', ';;
1365    esac
1366    eval with_$ac_useropt=no ;;
1367
1368  --x)
1369    # Obsolete; use --with-x.
1370    with_x=yes ;;
1371
1372  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373  | --x-incl | --x-inc | --x-in | --x-i)
1374    ac_prev=x_includes ;;
1375  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377    x_includes=$ac_optarg ;;
1378
1379  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381    ac_prev=x_libraries ;;
1382  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384    x_libraries=$ac_optarg ;;
1385
1386  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387Try \`$0 --help' for more information"
1388    ;;
1389
1390  *=*)
1391    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392    # Reject names that are not valid shell variable names.
1393    case $ac_envvar in #(
1394      '' | [0-9]* | *[!_$as_cr_alnum]* )
1395      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396    esac
1397    eval $ac_envvar=\$ac_optarg
1398    export $ac_envvar ;;
1399
1400  *)
1401    # FIXME: should be removed in autoconf 3.0.
1402    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1406    ;;
1407
1408  esac
1409done
1410
1411if test -n "$ac_prev"; then
1412  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413  as_fn_error $? "missing argument to $ac_option"
1414fi
1415
1416if test -n "$ac_unrecognized_opts"; then
1417  case $enable_option_checking in
1418    no) ;;
1419    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421  esac
1422fi
1423
1424# Check all directory arguments for consistency.
1425for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426		datadir sysconfdir sharedstatedir localstatedir includedir \
1427		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428		libdir localedir mandir
1429do
1430  eval ac_val=\$$ac_var
1431  # Remove trailing slashes.
1432  case $ac_val in
1433    */ )
1434      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435      eval $ac_var=\$ac_val;;
1436  esac
1437  # Be sure to have absolute directory names.
1438  case $ac_val in
1439    [\\/$]* | ?:[\\/]* )  continue;;
1440    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441  esac
1442  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1443done
1444
1445# There might be people who depend on the old broken behavior: `$host'
1446# used to hold the argument of --host etc.
1447# FIXME: To remove some day.
1448build=$build_alias
1449host=$host_alias
1450target=$target_alias
1451
1452# FIXME: To remove some day.
1453if test "x$host_alias" != x; then
1454  if test "x$build_alias" = x; then
1455    cross_compiling=maybe
1456    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1457    If a cross compiler is detected then cross compile mode will be used" >&2
1458  elif test "x$build_alias" != "x$host_alias"; then
1459    cross_compiling=yes
1460  fi
1461fi
1462
1463ac_tool_prefix=
1464test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466test "$silent" = yes && exec 6>/dev/null
1467
1468
1469ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470ac_ls_di=`ls -di .` &&
1471ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472  as_fn_error $? "working directory cannot be determined"
1473test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474  as_fn_error $? "pwd does not report name of working directory"
1475
1476
1477# Find the source files, if location was not specified.
1478if test -z "$srcdir"; then
1479  ac_srcdir_defaulted=yes
1480  # Try the directory containing this script, then the parent directory.
1481  ac_confdir=`$as_dirname -- "$as_myself" ||
1482$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483	 X"$as_myself" : 'X\(//\)[^/]' \| \
1484	 X"$as_myself" : 'X\(//\)$' \| \
1485	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486$as_echo X"$as_myself" |
1487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488	    s//\1/
1489	    q
1490	  }
1491	  /^X\(\/\/\)[^/].*/{
1492	    s//\1/
1493	    q
1494	  }
1495	  /^X\(\/\/\)$/{
1496	    s//\1/
1497	    q
1498	  }
1499	  /^X\(\/\).*/{
1500	    s//\1/
1501	    q
1502	  }
1503	  s/.*/./; q'`
1504  srcdir=$ac_confdir
1505  if test ! -r "$srcdir/$ac_unique_file"; then
1506    srcdir=..
1507  fi
1508else
1509  ac_srcdir_defaulted=no
1510fi
1511if test ! -r "$srcdir/$ac_unique_file"; then
1512  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514fi
1515ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516ac_abs_confdir=`(
1517	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518	pwd)`
1519# When building in place, set srcdir=.
1520if test "$ac_abs_confdir" = "$ac_pwd"; then
1521  srcdir=.
1522fi
1523# Remove unnecessary trailing slashes from srcdir.
1524# Double slashes in file names in object file debugging info
1525# mess up M-x gdb in Emacs.
1526case $srcdir in
1527*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528esac
1529for ac_var in $ac_precious_vars; do
1530  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531  eval ac_env_${ac_var}_value=\$${ac_var}
1532  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534done
1535
1536#
1537# Report the --help message.
1538#
1539if test "$ac_init_help" = "long"; then
1540  # Omit some internal or obsolete options to make the list less imposing.
1541  # This message is too long to be a string in the A/UX 3.1 sh.
1542  cat <<_ACEOF
1543\`configure' configures ntp 4.2.7p404 to adapt to many kinds of systems.
1544
1545Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548VAR=VALUE.  See below for descriptions of some of the useful variables.
1549
1550Defaults for the options are specified in brackets.
1551
1552Configuration:
1553  -h, --help              display this help and exit
1554      --help=short        display options specific to this package
1555      --help=recursive    display the short help of all the included packages
1556  -V, --version           display version information and exit
1557  -q, --quiet, --silent   do not print \`checking ...' messages
1558      --cache-file=FILE   cache test results in FILE [disabled]
1559  -C, --config-cache      alias for \`--cache-file=config.cache'
1560  -n, --no-create         do not create output files
1561      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1562
1563Installation directories:
1564  --prefix=PREFIX         install architecture-independent files in PREFIX
1565                          [$ac_default_prefix]
1566  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1567                          [PREFIX]
1568
1569By default, \`make install' will install all the files in
1570\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1571an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572for instance \`--prefix=\$HOME'.
1573
1574For better control, use the options below.
1575
1576Fine tuning of the installation directories:
1577  --bindir=DIR            user executables [EPREFIX/bin]
1578  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1579  --libexecdir=DIR        program executables [EPREFIX/libexec]
1580  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1581  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1582  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1583  --libdir=DIR            object code libraries [EPREFIX/lib]
1584  --includedir=DIR        C header files [PREFIX/include]
1585  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1586  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1587  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1588  --infodir=DIR           info documentation [DATAROOTDIR/info]
1589  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1590  --mandir=DIR            man documentation [DATAROOTDIR/man]
1591  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1592  --htmldir=DIR           html documentation [DOCDIR]
1593  --dvidir=DIR            dvi documentation [DOCDIR]
1594  --pdfdir=DIR            pdf documentation [DOCDIR]
1595  --psdir=DIR             ps documentation [DOCDIR]
1596_ACEOF
1597
1598  cat <<\_ACEOF
1599
1600Program names:
1601  --program-prefix=PREFIX            prepend PREFIX to installed program names
1602  --program-suffix=SUFFIX            append SUFFIX to installed program names
1603  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1604
1605System types:
1606  --build=BUILD     configure for building on BUILD [guessed]
1607  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608_ACEOF
1609fi
1610
1611if test -n "$ac_init_help"; then
1612  case $ac_init_help in
1613     short | recursive ) echo "Configuration of ntp 4.2.7p404:";;
1614   esac
1615  cat <<\_ACEOF
1616
1617Optional Features and Packages:
1618  --disable-option-checking  ignore unrecognized --enable/--with options
1619  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1620  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1621  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623  --enable-silent-rules          less verbose build output (undo: `make V=1')
1624  --disable-silent-rules         verbose build output (undo: `make V=0')
1625  --disable-dependency-tracking  speeds up one-time build
1626  --enable-dependency-tracking   do not reject slow dependency extractors
1627  --with-locfile=XXX      os-specific or "legacy"
1628  --enable-shared[=PKGS]  build shared libraries [default=no]
1629  --enable-static[=PKGS]  build static libraries [default=yes]
1630  --with-pic              try to use only PIC/non-PIC objects [default=use
1631                          both]
1632  --enable-fast-install[=PKGS]
1633                          optimize for fast installation [default=yes]
1634  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1635  --with-sysroot=DIR Search for dependent libraries within DIR
1636                        (or the compiler's sysroot if not specified).
1637  --disable-libtool-lock  avoid locking (might break parallel builds)
1638  --disable-nls           disable nls support in libopts
1639  --enable-local-libopts  Use the supplied libopts tearoff code
1640  --enable-libopts-install
1641                          Install libopts with client installation
1642  --with-autoopts-config  specify the config-info script
1643  --enable-local-libevent Force using the supplied libevent tearoff code
1644  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1645  defaults:               + yes, - no, s system-specific
1646  --enable-debugging      + include ntpd debugging code
1647  --enable-thread-support s use threads (+ if available)
1648  --with-threads	  with threads [auto]
1649  --enable-c99-snprintf   s force replacement
1650  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1651  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1652  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1653  --with-arlib            - deprecated, arlib not distributed
1654  --with-net-snmp-config  + =net-snmp-config
1655  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1656  --with-memlock          ? =32 (megabytes)
1657  --enable-debug-timing   - include processing time debugging code (costs
1658                          performance)
1659  --enable-dst-minutes    =60 minutes per DST adjustment
1660  --enable-ignore-dns-errors
1661                          - retry DNS queries on any error
1662  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1663  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1664  --enable-all-clocks     + include all suitable non-PARSE clocks:
1665  --enable-ACTS           s ACTS modem service
1666  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1667  --enable-ARCRON-MSF     + Arcron MSF receiver
1668  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1669  --enable-ATOM           s ATOM PPS interface
1670  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1671  --enable-CHU            + CHU modem/decoder
1672  --enable-AUDIO-CHU      s CHU audio/decoder
1673  --enable-DATUM          s Datum Programmable Time System
1674  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1675  --enable-FG             + Forum Graphic GPS
1676  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1677  --enable-HOPFSERIAL     + hopf serial clock device
1678  --enable-HOPFPCI        + hopf 6039 PCI board
1679  --enable-HPGPS          + HP 58503A GPS receiver
1680  --enable-IRIG           s IRIG audio decoder
1681  --enable-JJY            + JJY receiver
1682  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1683  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1684  --enable-LOCAL-CLOCK    + local clock reference
1685  --enable-MX4200         s Magnavox MX4200 GPS receiver
1686  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1687  --enable-NMEA           + NMEA GPS receiver
1688  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1689  --enable-PALISADE       s Palisade clock
1690  --enable-PCF            + Conrad parallel port radio clock
1691  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1692  --enable-RIPENCC        - RIPENCC specific Trimble driver
1693  --enable-SHM            s SHM clock attached thru shared memory
1694  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1695  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1696  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1697  --enable-TT560          - TrueTime 560 IRIG-B decoder
1698  --enable-ULINK          + Ultralink WWVB receiver
1699  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1700  --enable-WWV            s WWV Audio receiver
1701  --enable-ZYFER          + Zyfer GPStarplus receiver
1702  --enable-parse-clocks   - include all suitable PARSE clocks:
1703  --enable-COMPUTIME      s Diem Computime Radio Clock
1704  --enable-DCF7000        s ELV/DCF7000 clock
1705  --enable-HOPF6021       s HOPF 6021 clock
1706  --enable-MEINBERG       s Meinberg clocks
1707  --enable-RAWDCF         s DCF77 raw time code
1708  --enable-RCC8000        s RCC 8000 clock
1709  --enable-SCHMID         s Schmid DCF77 clock
1710  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1711  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1712  --enable-WHARTON        s WHARTON 400A Series clock
1713  --enable-VARITEXT       s VARITEXT clock
1714  --enable-SEL240X        s SEL240X clock
1715  --with-crypto           + =openssl,libcrypto
1716
1717  --with-openssl-libdir   + =/something/reasonable
1718
1719  --with-openssl-incdir   + =/something/reasonable
1720
1721  --without-rpath         s Disable auto-added -R linker paths
1722
1723  --enable-autokey        + support NTP Autokey protocol
1724  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1725  --enable-accurate-adjtime
1726                          s the adjtime() call is accurate
1727  --enable-tick=VALUE     s force a value for 'tick'
1728  --enable-tickadj=VALUE  s force a value for 'tickadj'
1729  --enable-simulator      - build/install the NTPD simulator?
1730  --without-sntp          - disable building sntp and sntp/tests
1731  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1732  --enable-slew-always    s always slew the time
1733  --enable-step-slew      s step and slew the time
1734  --enable-ntpdate-step   s if ntpdate should step the time
1735  --enable-hourly-todr-sync
1736                          s if we should sync TODR hourly
1737  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1738  --enable-bug1243-fix    + use unmodified autokey session keys
1739  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1740  --enable-nist           - if we should enable the NIST lockclock scheme
1741  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1742                          =/var/run/ntp_signd
1743  --enable-ipv6           s use IPv6?
1744
1745  --with-kame             - =/usr/local/v6
1746  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1747  --enable-saveconfig     + saveconfig mechanism
1748  --with-gtest            Use the gtest framework (Default: if it's available)
1749
1750Some influential environment variables:
1751  CC          C compiler command
1752  CFLAGS      C compiler flags
1753  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1754              nonstandard directory <lib dir>
1755  LIBS        libraries to pass to the linker, e.g. -l<library>
1756  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1757              you have headers in a nonstandard directory <include dir>
1758  CPP         C preprocessor
1759  CXX         C++ compiler command
1760  CXXFLAGS    C++ compiler flags
1761  YACC        The `Yet Another Compiler Compiler' implementation to use.
1762              Defaults to the first program found out of: `bison -y', `byacc',
1763              `yacc'.
1764  YFLAGS      The list of arguments that will be passed by default to $YACC.
1765              This script will default YFLAGS to the empty string to avoid a
1766              default value of `-d' given by some make applications.
1767  CXXCPP      C++ preprocessor
1768
1769Use these variables to override the choices made by `configure' or to help
1770it to find libraries and programs with nonstandard names/locations.
1771
1772Report bugs to <http://bugs.ntp.org./>.
1773ntp home page: <http://www.ntp.org./>.
1774_ACEOF
1775ac_status=$?
1776fi
1777
1778if test "$ac_init_help" = "recursive"; then
1779  # If there are subdirs, report their specific --help.
1780  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781    test -d "$ac_dir" ||
1782      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783      continue
1784    ac_builddir=.
1785
1786case "$ac_dir" in
1787.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788*)
1789  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790  # A ".." for each directory in $ac_dir_suffix.
1791  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792  case $ac_top_builddir_sub in
1793  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795  esac ;;
1796esac
1797ac_abs_top_builddir=$ac_pwd
1798ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799# for backward compatibility:
1800ac_top_builddir=$ac_top_build_prefix
1801
1802case $srcdir in
1803  .)  # We are building in place.
1804    ac_srcdir=.
1805    ac_top_srcdir=$ac_top_builddir_sub
1806    ac_abs_top_srcdir=$ac_pwd ;;
1807  [\\/]* | ?:[\\/]* )  # Absolute name.
1808    ac_srcdir=$srcdir$ac_dir_suffix;
1809    ac_top_srcdir=$srcdir
1810    ac_abs_top_srcdir=$srcdir ;;
1811  *) # Relative name.
1812    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813    ac_top_srcdir=$ac_top_build_prefix$srcdir
1814    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815esac
1816ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818    cd "$ac_dir" || { ac_status=$?; continue; }
1819    # Check for guested configure.
1820    if test -f "$ac_srcdir/configure.gnu"; then
1821      echo &&
1822      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823    elif test -f "$ac_srcdir/configure"; then
1824      echo &&
1825      $SHELL "$ac_srcdir/configure" --help=recursive
1826    else
1827      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828    fi || ac_status=$?
1829    cd "$ac_pwd" || { ac_status=$?; break; }
1830  done
1831fi
1832
1833test -n "$ac_init_help" && exit $ac_status
1834if $ac_init_version; then
1835  cat <<\_ACEOF
1836ntp configure 4.2.7p404
1837generated by GNU Autoconf 2.68
1838
1839Copyright (C) 2010 Free Software Foundation, Inc.
1840This configure script is free software; the Free Software Foundation
1841gives unlimited permission to copy, distribute and modify it.
1842_ACEOF
1843  exit
1844fi
1845
1846## ------------------------ ##
1847## Autoconf initialization. ##
1848## ------------------------ ##
1849
1850# ac_fn_c_try_compile LINENO
1851# --------------------------
1852# Try to compile conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_c_try_compile ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  rm -f conftest.$ac_objext
1857  if { { ac_try="$ac_compile"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864  (eval "$ac_compile") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } && {
1873	 test -z "$ac_c_werror_flag" ||
1874	 test ! -s conftest.err
1875       } && test -s conftest.$ac_objext; then :
1876  ac_retval=0
1877else
1878  $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881	ac_retval=1
1882fi
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884  as_fn_set_status $ac_retval
1885
1886} # ac_fn_c_try_compile
1887
1888# ac_fn_c_try_cpp LINENO
1889# ----------------------
1890# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891ac_fn_c_try_cpp ()
1892{
1893  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894  if { { ac_try="$ac_cpp conftest.$ac_ext"
1895case "(($ac_try" in
1896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897  *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902  ac_status=$?
1903  if test -s conftest.err; then
1904    grep -v '^ *+' conftest.err >conftest.er1
1905    cat conftest.er1 >&5
1906    mv -f conftest.er1 conftest.err
1907  fi
1908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909  test $ac_status = 0; } > conftest.i && {
1910	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911	 test ! -s conftest.err
1912       }; then :
1913  ac_retval=0
1914else
1915  $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918    ac_retval=1
1919fi
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921  as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_cpp
1924
1925# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926# -------------------------------------------------------
1927# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928# the include files in INCLUDES and setting the cache variable VAR
1929# accordingly.
1930ac_fn_c_check_header_mongrel ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  if eval \${$3+:} false; then :
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938fi
1939eval ac_res=\$$3
1940	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942else
1943  # Is the header compilable?
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945$as_echo_n "checking $2 usability... " >&6; }
1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949#include <$2>
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952  ac_header_compiler=yes
1953else
1954  ac_header_compiler=no
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958$as_echo "$ac_header_compiler" >&6; }
1959
1960# Is the header present?
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962$as_echo_n "checking $2 presence... " >&6; }
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h.  */
1965#include <$2>
1966_ACEOF
1967if ac_fn_c_try_cpp "$LINENO"; then :
1968  ac_header_preproc=yes
1969else
1970  ac_header_preproc=no
1971fi
1972rm -f conftest.err conftest.i conftest.$ac_ext
1973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974$as_echo "$ac_header_preproc" >&6; }
1975
1976# So?  What about this header?
1977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978  yes:no: )
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983    ;;
1984  no:yes:* )
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1988$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1992$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995( $as_echo "## ------------------------------------ ##
1996## Report this to http://bugs.ntp.org./ ##
1997## ------------------------------------ ##"
1998     ) | sed "s/^/$as_me: WARNING:     /" >&2
1999    ;;
2000esac
2001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004  $as_echo_n "(cached) " >&6
2005else
2006  eval "$3=\$ac_header_compiler"
2007fi
2008eval ac_res=\$$3
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011fi
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_header_mongrel
2015
2016# ac_fn_c_try_run LINENO
2017# ----------------------
2018# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2019# that executables *can* be run.
2020ac_fn_c_try_run ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  if { { ac_try="$ac_link"
2024case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_link") 2>&5
2031  ac_status=$?
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2034  { { case "(($ac_try" in
2035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036  *) ac_try_echo=$ac_try;;
2037esac
2038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039$as_echo "$ac_try_echo"; } >&5
2040  (eval "$ac_try") 2>&5
2041  ac_status=$?
2042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043  test $ac_status = 0; }; }; then :
2044  ac_retval=0
2045else
2046  $as_echo "$as_me: program exited with status $ac_status" >&5
2047       $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050       ac_retval=$ac_status
2051fi
2052  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054  as_fn_set_status $ac_retval
2055
2056} # ac_fn_c_try_run
2057
2058# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2059# -------------------------------------------------------
2060# Tests whether HEADER exists and can be compiled using the include files in
2061# INCLUDES, setting the cache variable VAR accordingly.
2062ac_fn_c_check_header_compile ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$4
2073#include <$2>
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  eval "$3=yes"
2077else
2078  eval "$3=no"
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082eval ac_res=\$$3
2083	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084$as_echo "$ac_res" >&6; }
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087} # ac_fn_c_check_header_compile
2088
2089# ac_fn_c_try_link LINENO
2090# -----------------------
2091# Try to link conftest.$ac_ext, and return whether this succeeded.
2092ac_fn_c_try_link ()
2093{
2094  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095  rm -f conftest.$ac_objext conftest$ac_exeext
2096  if { { ac_try="$ac_link"
2097case "(($ac_try" in
2098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099  *) ac_try_echo=$ac_try;;
2100esac
2101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102$as_echo "$ac_try_echo"; } >&5
2103  (eval "$ac_link") 2>conftest.err
2104  ac_status=$?
2105  if test -s conftest.err; then
2106    grep -v '^ *+' conftest.err >conftest.er1
2107    cat conftest.er1 >&5
2108    mv -f conftest.er1 conftest.err
2109  fi
2110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111  test $ac_status = 0; } && {
2112	 test -z "$ac_c_werror_flag" ||
2113	 test ! -s conftest.err
2114       } && test -s conftest$ac_exeext && {
2115	 test "$cross_compiling" = yes ||
2116	 $as_test_x conftest$ac_exeext
2117       }; then :
2118  ac_retval=0
2119else
2120  $as_echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123	ac_retval=1
2124fi
2125  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2126  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2127  # interfere with the next link command; also delete a directory that is
2128  # left behind by Apple's compiler.  We do this before executing the actions.
2129  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2130  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131  as_fn_set_status $ac_retval
2132
2133} # ac_fn_c_try_link
2134
2135# ac_fn_cxx_try_compile LINENO
2136# ----------------------------
2137# Try to compile conftest.$ac_ext, and return whether this succeeded.
2138ac_fn_cxx_try_compile ()
2139{
2140  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141  rm -f conftest.$ac_objext
2142  if { { ac_try="$ac_compile"
2143case "(($ac_try" in
2144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145  *) ac_try_echo=$ac_try;;
2146esac
2147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148$as_echo "$ac_try_echo"; } >&5
2149  (eval "$ac_compile") 2>conftest.err
2150  ac_status=$?
2151  if test -s conftest.err; then
2152    grep -v '^ *+' conftest.err >conftest.er1
2153    cat conftest.er1 >&5
2154    mv -f conftest.er1 conftest.err
2155  fi
2156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157  test $ac_status = 0; } && {
2158	 test -z "$ac_cxx_werror_flag" ||
2159	 test ! -s conftest.err
2160       } && test -s conftest.$ac_objext; then :
2161  ac_retval=0
2162else
2163  $as_echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
2166	ac_retval=1
2167fi
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169  as_fn_set_status $ac_retval
2170
2171} # ac_fn_cxx_try_compile
2172
2173# ac_fn_c_check_func LINENO FUNC VAR
2174# ----------------------------------
2175# Tests whether FUNC exists, setting the cache variable VAR accordingly
2176ac_fn_c_check_func ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
2181if eval \${$3+:} false; then :
2182  $as_echo_n "(cached) " >&6
2183else
2184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2188#define $2 innocuous_$2
2189
2190/* System header to define __stub macros and hopefully few prototypes,
2191    which can conflict with char $2 (); below.
2192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193    <limits.h> exists even on freestanding compilers.  */
2194
2195#ifdef __STDC__
2196# include <limits.h>
2197#else
2198# include <assert.h>
2199#endif
2200
2201#undef $2
2202
2203/* Override any GCC internal prototype to avoid an error.
2204   Use char because int might match the return type of a GCC
2205   builtin and then its argument prototype would still apply.  */
2206#ifdef __cplusplus
2207extern "C"
2208#endif
2209char $2 ();
2210/* The GNU C library defines this for functions which it implements
2211    to always fail with ENOSYS.  Some functions are actually named
2212    something starting with __ and the normal name is an alias.  */
2213#if defined __stub_$2 || defined __stub___$2
2214choke me
2215#endif
2216
2217int
2218main ()
2219{
2220return $2 ();
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_link "$LINENO"; then :
2226  eval "$3=yes"
2227else
2228  eval "$3=no"
2229fi
2230rm -f core conftest.err conftest.$ac_objext \
2231    conftest$ac_exeext conftest.$ac_ext
2232fi
2233eval ac_res=\$$3
2234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238} # ac_fn_c_check_func
2239
2240# ac_fn_cxx_try_cpp LINENO
2241# ------------------------
2242# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2243ac_fn_cxx_try_cpp ()
2244{
2245  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246  if { { ac_try="$ac_cpp conftest.$ac_ext"
2247case "(($ac_try" in
2248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249  *) ac_try_echo=$ac_try;;
2250esac
2251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252$as_echo "$ac_try_echo"; } >&5
2253  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2254  ac_status=$?
2255  if test -s conftest.err; then
2256    grep -v '^ *+' conftest.err >conftest.er1
2257    cat conftest.er1 >&5
2258    mv -f conftest.er1 conftest.err
2259  fi
2260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261  test $ac_status = 0; } > conftest.i && {
2262	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2263	 test ! -s conftest.err
2264       }; then :
2265  ac_retval=0
2266else
2267  $as_echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
2269
2270    ac_retval=1
2271fi
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273  as_fn_set_status $ac_retval
2274
2275} # ac_fn_cxx_try_cpp
2276
2277# ac_fn_cxx_try_link LINENO
2278# -------------------------
2279# Try to link conftest.$ac_ext, and return whether this succeeded.
2280ac_fn_cxx_try_link ()
2281{
2282  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283  rm -f conftest.$ac_objext conftest$ac_exeext
2284  if { { ac_try="$ac_link"
2285case "(($ac_try" in
2286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287  *) ac_try_echo=$ac_try;;
2288esac
2289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290$as_echo "$ac_try_echo"; } >&5
2291  (eval "$ac_link") 2>conftest.err
2292  ac_status=$?
2293  if test -s conftest.err; then
2294    grep -v '^ *+' conftest.err >conftest.er1
2295    cat conftest.er1 >&5
2296    mv -f conftest.er1 conftest.err
2297  fi
2298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299  test $ac_status = 0; } && {
2300	 test -z "$ac_cxx_werror_flag" ||
2301	 test ! -s conftest.err
2302       } && test -s conftest$ac_exeext && {
2303	 test "$cross_compiling" = yes ||
2304	 $as_test_x conftest$ac_exeext
2305       }; then :
2306  ac_retval=0
2307else
2308  $as_echo "$as_me: failed program was:" >&5
2309sed 's/^/| /' conftest.$ac_ext >&5
2310
2311	ac_retval=1
2312fi
2313  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2314  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2315  # interfere with the next link command; also delete a directory that is
2316  # left behind by Apple's compiler.  We do this before executing the actions.
2317  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2318  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319  as_fn_set_status $ac_retval
2320
2321} # ac_fn_cxx_try_link
2322
2323# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2324# -------------------------------------------
2325# Tests whether TYPE exists after having included INCLUDES, setting cache
2326# variable VAR accordingly.
2327ac_fn_c_check_type ()
2328{
2329  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331$as_echo_n "checking for $2... " >&6; }
2332if eval \${$3+:} false; then :
2333  $as_echo_n "(cached) " >&6
2334else
2335  eval "$3=no"
2336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h.  */
2338$4
2339int
2340main ()
2341{
2342if (sizeof ($2))
2343	 return 0;
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350/* end confdefs.h.  */
2351$4
2352int
2353main ()
2354{
2355if (sizeof (($2)))
2356	    return 0;
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361if ac_fn_c_try_compile "$LINENO"; then :
2362
2363else
2364  eval "$3=yes"
2365fi
2366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367fi
2368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2374
2375} # ac_fn_c_check_type
2376
2377# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2378# --------------------------------------------
2379# Tries to find the compile-time value of EXPR in a program that includes
2380# INCLUDES, setting VAR accordingly. Returns whether the value could be
2381# computed
2382ac_fn_c_compute_int ()
2383{
2384  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385  if test "$cross_compiling" = yes; then
2386    # Depending upon the size, compute the lo and hi bounds.
2387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h.  */
2389$4
2390int
2391main ()
2392{
2393static int test_array [1 - 2 * !(($2) >= 0)];
2394test_array [0] = 0
2395
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400if ac_fn_c_try_compile "$LINENO"; then :
2401  ac_lo=0 ac_mid=0
2402  while :; do
2403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h.  */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2410test_array [0] = 0
2411
2412  ;
2413  return 0;
2414}
2415_ACEOF
2416if ac_fn_c_try_compile "$LINENO"; then :
2417  ac_hi=$ac_mid; break
2418else
2419  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2420			if test $ac_lo -le $ac_mid; then
2421			  ac_lo= ac_hi=
2422			  break
2423			fi
2424			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2425fi
2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427  done
2428else
2429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h.  */
2431$4
2432int
2433main ()
2434{
2435static int test_array [1 - 2 * !(($2) < 0)];
2436test_array [0] = 0
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_compile "$LINENO"; then :
2443  ac_hi=-1 ac_mid=-1
2444  while :; do
2445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446/* end confdefs.h.  */
2447$4
2448int
2449main ()
2450{
2451static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2452test_array [0] = 0
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_compile "$LINENO"; then :
2459  ac_lo=$ac_mid; break
2460else
2461  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2462			if test $ac_mid -le $ac_hi; then
2463			  ac_lo= ac_hi=
2464			  break
2465			fi
2466			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2467fi
2468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469  done
2470else
2471  ac_lo= ac_hi=
2472fi
2473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474fi
2475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476# Binary search between lo and hi bounds.
2477while test "x$ac_lo" != "x$ac_hi"; do
2478  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480/* end confdefs.h.  */
2481$4
2482int
2483main ()
2484{
2485static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2486test_array [0] = 0
2487
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493  ac_hi=$ac_mid
2494else
2495  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498done
2499case $ac_lo in #((
2500?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2501'') ac_retval=1 ;;
2502esac
2503  else
2504    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h.  */
2506$4
2507static long int longval () { return $2; }
2508static unsigned long int ulongval () { return $2; }
2509#include <stdio.h>
2510#include <stdlib.h>
2511int
2512main ()
2513{
2514
2515  FILE *f = fopen ("conftest.val", "w");
2516  if (! f)
2517    return 1;
2518  if (($2) < 0)
2519    {
2520      long int i = longval ();
2521      if (i != ($2))
2522	return 1;
2523      fprintf (f, "%ld", i);
2524    }
2525  else
2526    {
2527      unsigned long int i = ulongval ();
2528      if (i != ($2))
2529	return 1;
2530      fprintf (f, "%lu", i);
2531    }
2532  /* Do not output a trailing newline, as this causes \r\n confusion
2533     on some platforms.  */
2534  return ferror (f) || fclose (f) != 0;
2535
2536  ;
2537  return 0;
2538}
2539_ACEOF
2540if ac_fn_c_try_run "$LINENO"; then :
2541  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2542else
2543  ac_retval=1
2544fi
2545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2546  conftest.$ac_objext conftest.beam conftest.$ac_ext
2547rm -f conftest.val
2548
2549  fi
2550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551  as_fn_set_status $ac_retval
2552
2553} # ac_fn_c_compute_int
2554
2555# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2556# ---------------------------------------------
2557# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2558# accordingly.
2559ac_fn_c_check_decl ()
2560{
2561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562  as_decl_name=`echo $2|sed 's/ *(.*//'`
2563  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2565$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2566if eval \${$3+:} false; then :
2567  $as_echo_n "(cached) " >&6
2568else
2569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h.  */
2571$4
2572int
2573main ()
2574{
2575#ifndef $as_decl_name
2576#ifdef __cplusplus
2577  (void) $as_decl_use;
2578#else
2579  (void) $as_decl_name;
2580#endif
2581#endif
2582
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587if ac_fn_c_try_compile "$LINENO"; then :
2588  eval "$3=yes"
2589else
2590  eval "$3=no"
2591fi
2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593fi
2594eval ac_res=\$$3
2595	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596$as_echo "$ac_res" >&6; }
2597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598
2599} # ac_fn_c_check_decl
2600
2601# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2602# ----------------------------------------------------
2603# Tries to find if the field MEMBER exists in type AGGR, after including
2604# INCLUDES, setting cache variable VAR accordingly.
2605ac_fn_c_check_member ()
2606{
2607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2609$as_echo_n "checking for $2.$3... " >&6; }
2610if eval \${$4+:} false; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h.  */
2615$5
2616int
2617main ()
2618{
2619static $2 ac_aggr;
2620if (ac_aggr.$3)
2621return 0;
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626if ac_fn_c_try_compile "$LINENO"; then :
2627  eval "$4=yes"
2628else
2629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h.  */
2631$5
2632int
2633main ()
2634{
2635static $2 ac_aggr;
2636if (sizeof ac_aggr.$3)
2637return 0;
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642if ac_fn_c_try_compile "$LINENO"; then :
2643  eval "$4=yes"
2644else
2645  eval "$4=no"
2646fi
2647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648fi
2649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650fi
2651eval ac_res=\$$4
2652	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2653$as_echo "$ac_res" >&6; }
2654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2655
2656} # ac_fn_c_check_member
2657cat >config.log <<_ACEOF
2658This file contains any messages produced by compilers while
2659running configure, to aid debugging if configure makes a mistake.
2660
2661It was created by ntp $as_me 4.2.7p404, which was
2662generated by GNU Autoconf 2.68.  Invocation command line was
2663
2664  $ $0 $@
2665
2666_ACEOF
2667exec 5>>config.log
2668{
2669cat <<_ASUNAME
2670## --------- ##
2671## Platform. ##
2672## --------- ##
2673
2674hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2675uname -m = `(uname -m) 2>/dev/null || echo unknown`
2676uname -r = `(uname -r) 2>/dev/null || echo unknown`
2677uname -s = `(uname -s) 2>/dev/null || echo unknown`
2678uname -v = `(uname -v) 2>/dev/null || echo unknown`
2679
2680/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2681/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2682
2683/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2684/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2685/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2686/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2687/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2688/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2689/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2690
2691_ASUNAME
2692
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    $as_echo "PATH: $as_dir"
2699  done
2700IFS=$as_save_IFS
2701
2702} >&5
2703
2704cat >&5 <<_ACEOF
2705
2706
2707## ----------- ##
2708## Core tests. ##
2709## ----------- ##
2710
2711_ACEOF
2712
2713
2714# Keep a trace of the command line.
2715# Strip out --no-create and --no-recursion so they do not pile up.
2716# Strip out --silent because we don't want to record it for future runs.
2717# Also quote any args containing shell meta-characters.
2718# Make two passes to allow for proper duplicate-argument suppression.
2719ac_configure_args=
2720ac_configure_args0=
2721ac_configure_args1=
2722ac_must_keep_next=false
2723for ac_pass in 1 2
2724do
2725  for ac_arg
2726  do
2727    case $ac_arg in
2728    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2729    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2730    | -silent | --silent | --silen | --sile | --sil)
2731      continue ;;
2732    *\'*)
2733      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2734    esac
2735    case $ac_pass in
2736    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2737    2)
2738      as_fn_append ac_configure_args1 " '$ac_arg'"
2739      if test $ac_must_keep_next = true; then
2740	ac_must_keep_next=false # Got value, back to normal.
2741      else
2742	case $ac_arg in
2743	  *=* | --config-cache | -C | -disable-* | --disable-* \
2744	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2745	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2746	  | -with-* | --with-* | -without-* | --without-* | --x)
2747	    case "$ac_configure_args0 " in
2748	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749	    esac
2750	    ;;
2751	  -* ) ac_must_keep_next=true ;;
2752	esac
2753      fi
2754      as_fn_append ac_configure_args " '$ac_arg'"
2755      ;;
2756    esac
2757  done
2758done
2759{ ac_configure_args0=; unset ac_configure_args0;}
2760{ ac_configure_args1=; unset ac_configure_args1;}
2761
2762# When interrupted or exit'd, cleanup temporary files, and complete
2763# config.log.  We remove comments because anyway the quotes in there
2764# would cause problems or look ugly.
2765# WARNING: Use '\'' to represent an apostrophe within the trap.
2766# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2767trap 'exit_status=$?
2768  # Save into config.log some information that might help in debugging.
2769  {
2770    echo
2771
2772    $as_echo "## ---------------- ##
2773## Cache variables. ##
2774## ---------------- ##"
2775    echo
2776    # The following way of writing the cache mishandles newlines in values,
2777(
2778  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779    eval ac_val=\$$ac_var
2780    case $ac_val in #(
2781    *${as_nl}*)
2782      case $ac_var in #(
2783      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785      esac
2786      case $ac_var in #(
2787      _ | IFS | as_nl) ;; #(
2788      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789      *) { eval $ac_var=; unset $ac_var;} ;;
2790      esac ;;
2791    esac
2792  done
2793  (set) 2>&1 |
2794    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795    *${as_nl}ac_space=\ *)
2796      sed -n \
2797	"s/'\''/'\''\\\\'\'''\''/g;
2798	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799      ;; #(
2800    *)
2801      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802      ;;
2803    esac |
2804    sort
2805)
2806    echo
2807
2808    $as_echo "## ----------------- ##
2809## Output variables. ##
2810## ----------------- ##"
2811    echo
2812    for ac_var in $ac_subst_vars
2813    do
2814      eval ac_val=\$$ac_var
2815      case $ac_val in
2816      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817      esac
2818      $as_echo "$ac_var='\''$ac_val'\''"
2819    done | sort
2820    echo
2821
2822    if test -n "$ac_subst_files"; then
2823      $as_echo "## ------------------- ##
2824## File substitutions. ##
2825## ------------------- ##"
2826      echo
2827      for ac_var in $ac_subst_files
2828      do
2829	eval ac_val=\$$ac_var
2830	case $ac_val in
2831	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832	esac
2833	$as_echo "$ac_var='\''$ac_val'\''"
2834      done | sort
2835      echo
2836    fi
2837
2838    if test -s confdefs.h; then
2839      $as_echo "## ----------- ##
2840## confdefs.h. ##
2841## ----------- ##"
2842      echo
2843      cat confdefs.h
2844      echo
2845    fi
2846    test "$ac_signal" != 0 &&
2847      $as_echo "$as_me: caught signal $ac_signal"
2848    $as_echo "$as_me: exit $exit_status"
2849  } >&5
2850  rm -f core *.core core.conftest.* &&
2851    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2852    exit $exit_status
2853' 0
2854for ac_signal in 1 2 13 15; do
2855  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2856done
2857ac_signal=0
2858
2859# confdefs.h avoids OS command line length limits that DEFS can exceed.
2860rm -f -r conftest* confdefs.h
2861
2862$as_echo "/* confdefs.h */" > confdefs.h
2863
2864# Predefined preprocessor variables.
2865
2866cat >>confdefs.h <<_ACEOF
2867#define PACKAGE_NAME "$PACKAGE_NAME"
2868_ACEOF
2869
2870cat >>confdefs.h <<_ACEOF
2871#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2872_ACEOF
2873
2874cat >>confdefs.h <<_ACEOF
2875#define PACKAGE_VERSION "$PACKAGE_VERSION"
2876_ACEOF
2877
2878cat >>confdefs.h <<_ACEOF
2879#define PACKAGE_STRING "$PACKAGE_STRING"
2880_ACEOF
2881
2882cat >>confdefs.h <<_ACEOF
2883#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2884_ACEOF
2885
2886cat >>confdefs.h <<_ACEOF
2887#define PACKAGE_URL "$PACKAGE_URL"
2888_ACEOF
2889
2890
2891# Let the site file select an alternate cache file if it wants to.
2892# Prefer an explicitly selected file to automatically selected ones.
2893ac_site_file1=NONE
2894ac_site_file2=NONE
2895if test -n "$CONFIG_SITE"; then
2896  # We do not want a PATH search for config.site.
2897  case $CONFIG_SITE in #((
2898    -*)  ac_site_file1=./$CONFIG_SITE;;
2899    */*) ac_site_file1=$CONFIG_SITE;;
2900    *)   ac_site_file1=./$CONFIG_SITE;;
2901  esac
2902elif test "x$prefix" != xNONE; then
2903  ac_site_file1=$prefix/share/config.site
2904  ac_site_file2=$prefix/etc/config.site
2905else
2906  ac_site_file1=$ac_default_prefix/share/config.site
2907  ac_site_file2=$ac_default_prefix/etc/config.site
2908fi
2909for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910do
2911  test "x$ac_site_file" = xNONE && continue
2912  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2913    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915    sed 's/^/| /' "$ac_site_file" >&5
2916    . "$ac_site_file" \
2917      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919as_fn_error $? "failed to load site script $ac_site_file
2920See \`config.log' for more details" "$LINENO" 5; }
2921  fi
2922done
2923
2924if test -r "$cache_file"; then
2925  # Some versions of bash will fail to source /dev/null (special files
2926  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2927  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2928    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2929$as_echo "$as_me: loading cache $cache_file" >&6;}
2930    case $cache_file in
2931      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2932      *)                      . "./$cache_file";;
2933    esac
2934  fi
2935else
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2937$as_echo "$as_me: creating cache $cache_file" >&6;}
2938  >$cache_file
2939fi
2940
2941as_fn_append ac_header_list " stdarg.h"
2942# Check that the precious variables saved in the cache have kept the same
2943# value.
2944ac_cache_corrupted=false
2945for ac_var in $ac_precious_vars; do
2946  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947  eval ac_new_set=\$ac_env_${ac_var}_set
2948  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949  eval ac_new_val=\$ac_env_${ac_var}_value
2950  case $ac_old_set,$ac_new_set in
2951    set,)
2952      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954      ac_cache_corrupted=: ;;
2955    ,set)
2956      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958      ac_cache_corrupted=: ;;
2959    ,);;
2960    *)
2961      if test "x$ac_old_val" != "x$ac_new_val"; then
2962	# differences in whitespace do not lead to failure.
2963	ac_old_val_w=`echo x $ac_old_val`
2964	ac_new_val_w=`echo x $ac_new_val`
2965	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968	  ac_cache_corrupted=:
2969	else
2970	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972	  eval $ac_var=\$ac_old_val
2973	fi
2974	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2975$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2976	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2977$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2978      fi;;
2979  esac
2980  # Pass precious variables to config.status.
2981  if test "$ac_new_set" = set; then
2982    case $ac_new_val in
2983    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984    *) ac_arg=$ac_var=$ac_new_val ;;
2985    esac
2986    case " $ac_configure_args " in
2987      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2988      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989    esac
2990  fi
2991done
2992if $ac_cache_corrupted; then
2993  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2997  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2998fi
2999## -------------------- ##
3000## Main body of script. ##
3001## -------------------- ##
3002
3003ac_ext=c
3004ac_cpp='$CPP $CPPFLAGS'
3005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008
3009
3010
3011ac_aux_dir=
3012for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3013  if test -f "$ac_dir/install-sh"; then
3014    ac_aux_dir=$ac_dir
3015    ac_install_sh="$ac_aux_dir/install-sh -c"
3016    break
3017  elif test -f "$ac_dir/install.sh"; then
3018    ac_aux_dir=$ac_dir
3019    ac_install_sh="$ac_aux_dir/install.sh -c"
3020    break
3021  elif test -f "$ac_dir/shtool"; then
3022    ac_aux_dir=$ac_dir
3023    ac_install_sh="$ac_aux_dir/shtool install -c"
3024    break
3025  fi
3026done
3027if test -z "$ac_aux_dir"; then
3028  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3029fi
3030
3031# These three variables are undocumented and unsupported,
3032# and are intended to be withdrawn in a future Autoconf release.
3033# They can cause serious problems if a builder's source tree is in a directory
3034# whose full name contains unusual characters.
3035ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3036ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3037ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3038
3039
3040
3041
3042
3043
3044
3045# Bump ntp_configure_cache_version for each change to configure.ac or
3046# .m4 files which invalidates cached values from previous configure
3047# runs.
3048#
3049# If the change affects cache variables used only by the main NTP
3050# configure.ac, then only its version number should be bumped, while
3051# the subdir configure.ac version numbers should be unchanged.  The
3052# same is true for a test/variable that is used only by one subdir
3053# being changed incompatibly; only that subdir's cache version needs
3054# bumping.
3055#
3056# If a change affects variables shared by all NTP configure scripts,
3057# please bump the version numbers of each.  If you are not sure, the
3058# safe choice is to bump all on any cache-invalidating change.
3059#
3060# In order to avoid the risk of version stamp collision between -stable
3061# and -dev branches, do not simply increment the version, instead use
3062# the date YYYYMMDD optionally with -HHMM if there is more than one
3063# bump in a day.
3064
3065ntp_configure_cache_version=20120806
3066
3067# When the cache version of config.cache and configure do not
3068# match, NTP_CACHEVERSION will flush the cache.
3069
3070
3071
3072    ntp_cache_flush=1
3073
3074    case "$ntp_cv_main_cache_version" in
3075     $ntp_configure_cache_version)
3076	# same version, good
3077	ntp_cache_flush=0
3078	;;
3079     '')
3080	# No cache, predates ntp_cv_main_cache_version, or is empty.
3081	case "$cache_file" in
3082	 /dev/null)
3083	    ntp_cache_flush=0
3084	    ;;
3085	 *)
3086	    case "$NTP_CACHEVERSION_PARENT" in
3087	     '')
3088		# Do not clear the cache immediately after it is created
3089		# empty as it is noisy.  Differentiate a newly-created
3090		# config.cache from one predating the cache version
3091		# mechanism by looking for the first cached variable set
3092		# by Autoconf
3093		case "$ac_cv_path_install" in
3094		 '')
3095		    # empty config.cache file
3096		    ntp_cache_flush=0
3097		esac
3098		;;
3099	     *)
3100		# Parent configure just created cache from empty,
3101		# flushing would be counterproductive.
3102		ntp_cache_flush=0;
3103		;;
3104	    esac
3105	esac
3106	;;
3107     *)
3108	# configure cache version mismatches config.cache version
3109	;;
3110    esac
3111
3112    case "$ntp_cache_flush" in
3113     1)
3114	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3115
3116	# Do we flush all variables or exclude others' version stamps?
3117
3118	case "$NTP_CACHEVERSION_PARENT" in
3119	 '')
3120	    # Clear all *_cv_* variables including our child subdirs'
3121	    # ntp_cv_*_cache_version variables.  This prevents subdir
3122	    # configure scripts from noticing a version mismatch just
3123	    # after the top configure in the invocation cleared and
3124	    # recreated the cache.
3125
3126	    c_varname_list=`set |
3127			    sed -n -e 's/=.*$//' \
3128				   -e '/_cv_/p'
3129			   `
3130	    ;;
3131	 *)
3132	    # This is not the top configure this particular invocation.
3133	    # Clear all *_cv_* variables sparing the version stamps
3134	    # of other configure scripts, so we don't trigger
3135	    # useless repeated clearings.
3136
3137	    c_varname_list=`set |
3138			    sed -n -e 's/=.*$//' \
3139				   -e '/ntp_cv_.*_cache_version/d' \
3140				   -e '/_cv_/p'
3141			   `
3142	esac
3143
3144	for c_varname in $c_varname_list
3145	do
3146	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3147	done
3148
3149	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3150$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3151	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3152$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3153	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3154$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3155	{ c_varname=; unset c_varname;}
3156	{ c_varname_list=; unset c_varname_list;}
3157	{ c_version=; unset c_version;}
3158    esac
3159
3160    { ntp_cache_flush=; unset ntp_cache_flush;}
3161
3162    # save configure version in config.cache for next time
3163    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3164
3165    # let any subdir configure.ac NTP_CACHEVERSION invocations
3166    # know they are not the top level.
3167    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3168
3169
3170am__api_version='1.11'
3171
3172# Find a good install program.  We prefer a C program (faster),
3173# so one script is as good as another.  But avoid the broken or
3174# incompatible versions:
3175# SysV /etc/install, /usr/sbin/install
3176# SunOS /usr/etc/install
3177# IRIX /sbin/install
3178# AIX /bin/install
3179# AmigaOS /C/install, which installs bootblocks on floppy discs
3180# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3181# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3182# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3183# OS/2's system install, which has a completely different semantic
3184# ./install, which can be erroneously created by make from ./install.sh.
3185# Reject install programs that cannot install multiple files.
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3187$as_echo_n "checking for a BSD-compatible install... " >&6; }
3188if test -z "$INSTALL"; then
3189if ${ac_cv_path_install+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    # Account for people who put trailing slashes in PATH elements.
3198case $as_dir/ in #((
3199  ./ | .// | /[cC]/* | \
3200  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3201  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3202  /usr/ucb/* ) ;;
3203  *)
3204    # OSF1 and SCO ODT 3.0 have their own names for install.
3205    # Don't use installbsd from OSF since it installs stuff as root
3206    # by default.
3207    for ac_prog in ginstall scoinst install; do
3208      for ac_exec_ext in '' $ac_executable_extensions; do
3209	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3210	  if test $ac_prog = install &&
3211	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3212	    # AIX install.  It has an incompatible calling convention.
3213	    :
3214	  elif test $ac_prog = install &&
3215	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3216	    # program-specific install script used by HP pwplus--don't use.
3217	    :
3218	  else
3219	    rm -rf conftest.one conftest.two conftest.dir
3220	    echo one > conftest.one
3221	    echo two > conftest.two
3222	    mkdir conftest.dir
3223	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3224	      test -s conftest.one && test -s conftest.two &&
3225	      test -s conftest.dir/conftest.one &&
3226	      test -s conftest.dir/conftest.two
3227	    then
3228	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3229	      break 3
3230	    fi
3231	  fi
3232	fi
3233      done
3234    done
3235    ;;
3236esac
3237
3238  done
3239IFS=$as_save_IFS
3240
3241rm -rf conftest.one conftest.two conftest.dir
3242
3243fi
3244  if test "${ac_cv_path_install+set}" = set; then
3245    INSTALL=$ac_cv_path_install
3246  else
3247    # As a last resort, use the slow shell script.  Don't cache a
3248    # value for INSTALL within a source directory, because that will
3249    # break other packages using the cache if that directory is
3250    # removed, or if the value is a relative name.
3251    INSTALL=$ac_install_sh
3252  fi
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3255$as_echo "$INSTALL" >&6; }
3256
3257# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3258# It thinks the first close brace ends the variable substitution.
3259test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3260
3261test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3262
3263test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3264
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3266$as_echo_n "checking whether build environment is sane... " >&6; }
3267# Just in case
3268sleep 1
3269echo timestamp > conftest.file
3270# Reject unsafe characters in $srcdir or the absolute working directory
3271# name.  Accept space and tab only in the latter.
3272am_lf='
3273'
3274case `pwd` in
3275  *[\\\"\#\$\&\'\`$am_lf]*)
3276    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3277esac
3278case $srcdir in
3279  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3280    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3281esac
3282
3283# Do `set' in a subshell so we don't clobber the current shell's
3284# arguments.  Must try -L first in case configure is actually a
3285# symlink; some systems play weird games with the mod time of symlinks
3286# (eg FreeBSD returns the mod time of the symlink's containing
3287# directory).
3288if (
3289   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3290   if test "$*" = "X"; then
3291      # -L didn't work.
3292      set X `ls -t "$srcdir/configure" conftest.file`
3293   fi
3294   rm -f conftest.file
3295   if test "$*" != "X $srcdir/configure conftest.file" \
3296      && test "$*" != "X conftest.file $srcdir/configure"; then
3297
3298      # If neither matched, then we have a broken ls.  This can happen
3299      # if, for instance, CONFIG_SHELL is bash and it inherits a
3300      # broken ls alias from the environment.  This has actually
3301      # happened.  Such a system could not be considered "sane".
3302      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3303alias in your environment" "$LINENO" 5
3304   fi
3305
3306   test "$2" = conftest.file
3307   )
3308then
3309   # Ok.
3310   :
3311else
3312   as_fn_error $? "newly created file is older than distributed files!
3313Check your system clock" "$LINENO" 5
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317test "$program_prefix" != NONE &&
3318  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3319# Use a double $ so make ignores it.
3320test "$program_suffix" != NONE &&
3321  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3322# Double any \ or $.
3323# By default was `s,x,x', remove it if useless.
3324ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3325program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3326
3327# expand $ac_aux_dir to an absolute path
3328am_aux_dir=`cd $ac_aux_dir && pwd`
3329
3330if test x"${MISSING+set}" != xset; then
3331  case $am_aux_dir in
3332  *\ * | *\	*)
3333    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3334  *)
3335    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3336  esac
3337fi
3338# Use eval to expand $SHELL
3339if eval "$MISSING --run true"; then
3340  am_missing_run="$MISSING --run "
3341else
3342  am_missing_run=
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3344$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3345fi
3346
3347if test x"${install_sh}" != xset; then
3348  case $am_aux_dir in
3349  *\ * | *\	*)
3350    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3351  *)
3352    install_sh="\${SHELL} $am_aux_dir/install-sh"
3353  esac
3354fi
3355
3356# Installed binaries are usually stripped using `strip' when the user
3357# run `make install-strip'.  However `strip' might not be the right
3358# tool to use in cross-compilation environments, therefore Automake
3359# will honor the `STRIP' environment variable to overrule this program.
3360if test "$cross_compiling" != no; then
3361  if test -n "$ac_tool_prefix"; then
3362  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3363set dummy ${ac_tool_prefix}strip; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_STRIP+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  if test -n "$STRIP"; then
3370  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381    break 2
3382  fi
3383done
3384  done
3385IFS=$as_save_IFS
3386
3387fi
3388fi
3389STRIP=$ac_cv_prog_STRIP
3390if test -n "$STRIP"; then
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3392$as_echo "$STRIP" >&6; }
3393else
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398
3399fi
3400if test -z "$ac_cv_prog_STRIP"; then
3401  ac_ct_STRIP=$STRIP
3402  # Extract the first word of "strip", so it can be a program name with args.
3403set dummy strip; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  if test -n "$ac_ct_STRIP"; then
3410  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415  IFS=$as_save_IFS
3416  test -z "$as_dir" && as_dir=.
3417    for ac_exec_ext in '' $ac_executable_extensions; do
3418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419    ac_cv_prog_ac_ct_STRIP="strip"
3420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421    break 2
3422  fi
3423done
3424  done
3425IFS=$as_save_IFS
3426
3427fi
3428fi
3429ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3430if test -n "$ac_ct_STRIP"; then
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3432$as_echo "$ac_ct_STRIP" >&6; }
3433else
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438  if test "x$ac_ct_STRIP" = x; then
3439    STRIP=":"
3440  else
3441    case $cross_compiling:$ac_tool_warned in
3442yes:)
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445ac_tool_warned=yes ;;
3446esac
3447    STRIP=$ac_ct_STRIP
3448  fi
3449else
3450  STRIP="$ac_cv_prog_STRIP"
3451fi
3452
3453fi
3454INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3455
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3457$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3458if test -z "$MKDIR_P"; then
3459  if ${ac_cv_path_mkdir+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3464do
3465  IFS=$as_save_IFS
3466  test -z "$as_dir" && as_dir=.
3467    for ac_prog in mkdir gmkdir; do
3468	 for ac_exec_ext in '' $ac_executable_extensions; do
3469	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3470	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3471	     'mkdir (GNU coreutils) '* | \
3472	     'mkdir (coreutils) '* | \
3473	     'mkdir (fileutils) '4.1*)
3474	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3475	       break 3;;
3476	   esac
3477	 done
3478       done
3479  done
3480IFS=$as_save_IFS
3481
3482fi
3483
3484  test -d ./--version && rmdir ./--version
3485  if test "${ac_cv_path_mkdir+set}" = set; then
3486    MKDIR_P="$ac_cv_path_mkdir -p"
3487  else
3488    # As a last resort, use the slow shell script.  Don't cache a
3489    # value for MKDIR_P within a source directory, because that will
3490    # break other packages using the cache if that directory is
3491    # removed, or if the value is a relative name.
3492    MKDIR_P="$ac_install_sh -d"
3493  fi
3494fi
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3496$as_echo "$MKDIR_P" >&6; }
3497
3498mkdir_p="$MKDIR_P"
3499case $mkdir_p in
3500  [\\/$]* | ?:[\\/]*) ;;
3501  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3502esac
3503
3504for ac_prog in gawk mawk nawk awk
3505do
3506  # Extract the first word of "$ac_prog", so it can be a program name with args.
3507set dummy $ac_prog; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if ${ac_cv_prog_AWK+:} false; then :
3511  $as_echo_n "(cached) " >&6
3512else
3513  if test -n "$AWK"; then
3514  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521    for ac_exec_ext in '' $ac_executable_extensions; do
3522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523    ac_cv_prog_AWK="$ac_prog"
3524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525    break 2
3526  fi
3527done
3528  done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533AWK=$ac_cv_prog_AWK
3534if test -n "$AWK"; then
3535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3536$as_echo "$AWK" >&6; }
3537else
3538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542
3543  test -n "$AWK" && break
3544done
3545
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3547$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3548set x ${MAKE-make}
3549ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3550if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  cat >conftest.make <<\_ACEOF
3554SHELL = /bin/sh
3555all:
3556	@echo '@@@%%%=$(MAKE)=@@@%%%'
3557_ACEOF
3558# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3559case `${MAKE-make} -f conftest.make 2>/dev/null` in
3560  *@@@%%%=?*=@@@%%%*)
3561    eval ac_cv_prog_make_${ac_make}_set=yes;;
3562  *)
3563    eval ac_cv_prog_make_${ac_make}_set=no;;
3564esac
3565rm -f conftest.make
3566fi
3567if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3569$as_echo "yes" >&6; }
3570  SET_MAKE=
3571else
3572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
3574  SET_MAKE="MAKE=${MAKE-make}"
3575fi
3576
3577rm -rf .tst 2>/dev/null
3578mkdir .tst 2>/dev/null
3579if test -d .tst; then
3580  am__leading_dot=.
3581else
3582  am__leading_dot=_
3583fi
3584rmdir .tst 2>/dev/null
3585
3586if test "`cd $srcdir && pwd`" != "`pwd`"; then
3587  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3588  # is not polluted with repeated "-I."
3589  am__isrc=' -I$(srcdir)'
3590  # test to see if srcdir already configured
3591  if test -f $srcdir/config.status; then
3592    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3593  fi
3594fi
3595
3596# test whether we have cygpath
3597if test -z "$CYGPATH_W"; then
3598  if (cygpath --version) >/dev/null 2>/dev/null; then
3599    CYGPATH_W='cygpath -w'
3600  else
3601    CYGPATH_W=echo
3602  fi
3603fi
3604
3605
3606# Define the identity of the package.
3607 PACKAGE='ntp'
3608 VERSION='4.2.7p404'
3609
3610
3611cat >>confdefs.h <<_ACEOF
3612#define PACKAGE "$PACKAGE"
3613_ACEOF
3614
3615
3616cat >>confdefs.h <<_ACEOF
3617#define VERSION "$VERSION"
3618_ACEOF
3619
3620# Some tools Automake needs.
3621
3622ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3623
3624
3625AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3626
3627
3628AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3629
3630
3631AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3632
3633
3634MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3635
3636# We need awk for the "check" target.  The system "awk" is bad on
3637# some platforms.
3638# Always define AMTAR for backward compatibility.
3639
3640AMTAR=${AMTAR-"${am_missing_run}tar"}
3641
3642am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3643
3644
3645
3646
3647
3648
3649# Check whether --enable-silent-rules was given.
3650if test "${enable_silent_rules+set}" = set; then :
3651  enableval=$enable_silent_rules;
3652fi
3653
3654case $enable_silent_rules in
3655yes) AM_DEFAULT_VERBOSITY=0;;
3656no)  AM_DEFAULT_VERBOSITY=1;;
3657*)   AM_DEFAULT_VERBOSITY=0;;
3658esac
3659AM_BACKSLASH='\'
3660
3661
3662# Make sure we can run config.sub.
3663$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3664  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3665
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3667$as_echo_n "checking build system type... " >&6; }
3668if ${ac_cv_build+:} false; then :
3669  $as_echo_n "(cached) " >&6
3670else
3671  ac_build_alias=$build_alias
3672test "x$ac_build_alias" = x &&
3673  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3674test "x$ac_build_alias" = x &&
3675  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3676ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3677  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3678
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3681$as_echo "$ac_cv_build" >&6; }
3682case $ac_cv_build in
3683*-*-*) ;;
3684*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3685esac
3686build=$ac_cv_build
3687ac_save_IFS=$IFS; IFS='-'
3688set x $ac_cv_build
3689shift
3690build_cpu=$1
3691build_vendor=$2
3692shift; shift
3693# Remember, the first character of IFS is used to create $*,
3694# except with old shells:
3695build_os=$*
3696IFS=$ac_save_IFS
3697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3698
3699
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3701$as_echo_n "checking host system type... " >&6; }
3702if ${ac_cv_host+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  if test "x$host_alias" = x; then
3706  ac_cv_host=$ac_cv_build
3707else
3708  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3709    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3710fi
3711
3712fi
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3714$as_echo "$ac_cv_host" >&6; }
3715case $ac_cv_host in
3716*-*-*) ;;
3717*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3718esac
3719host=$ac_cv_host
3720ac_save_IFS=$IFS; IFS='-'
3721set x $ac_cv_host
3722shift
3723host_cpu=$1
3724host_vendor=$2
3725shift; shift
3726# Remember, the first character of IFS is used to create $*,
3727# except with old shells:
3728host_os=$*
3729IFS=$ac_save_IFS
3730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3731
3732
3733
3734cat >>confdefs.h <<_ACEOF
3735#define STR_SYSTEM "$host"
3736_ACEOF
3737
3738ac_config_headers="$ac_config_headers config.h"
3739
3740
3741ntp_atom_ok=${ntp_atom_ok=no}
3742ntp_oncore_ok=${ntp_oncore_ok=no}
3743ntp_parse_ok=${ntp_parse_ok=no}
3744ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3745ntp_jupiter_ok=${ntp_jupiter_ok=no}
3746
3747DEPDIR="${am__leading_dot}deps"
3748
3749ac_config_commands="$ac_config_commands depfiles"
3750
3751
3752am_make=${MAKE-make}
3753cat > confinc << 'END'
3754am__doit:
3755	@echo this is the am__doit target
3756.PHONY: am__doit
3757END
3758# If we don't find an include directive, just comment out the code.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3760$as_echo_n "checking for style of include used by $am_make... " >&6; }
3761am__include="#"
3762am__quote=
3763_am_result=none
3764# First try GNU make style include.
3765echo "include confinc" > confmf
3766# Ignore all kinds of additional output from `make'.
3767case `$am_make -s -f confmf 2> /dev/null` in #(
3768*the\ am__doit\ target*)
3769  am__include=include
3770  am__quote=
3771  _am_result=GNU
3772  ;;
3773esac
3774# Now try BSD make style include.
3775if test "$am__include" = "#"; then
3776   echo '.include "confinc"' > confmf
3777   case `$am_make -s -f confmf 2> /dev/null` in #(
3778   *the\ am__doit\ target*)
3779     am__include=.include
3780     am__quote="\""
3781     _am_result=BSD
3782     ;;
3783   esac
3784fi
3785
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3788$as_echo "$_am_result" >&6; }
3789rm -f confinc confmf
3790
3791# Check whether --enable-dependency-tracking was given.
3792if test "${enable_dependency_tracking+set}" = set; then :
3793  enableval=$enable_dependency_tracking;
3794fi
3795
3796if test "x$enable_dependency_tracking" != xno; then
3797  am_depcomp="$ac_aux_dir/depcomp"
3798  AMDEPBACKSLASH='\'
3799fi
3800 if test "x$enable_dependency_tracking" != xno; then
3801  AMDEP_TRUE=
3802  AMDEP_FALSE='#'
3803else
3804  AMDEP_TRUE='#'
3805  AMDEP_FALSE=
3806fi
3807
3808
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814if test -n "$ac_tool_prefix"; then
3815  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3816set dummy ${ac_tool_prefix}gcc; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if ${ac_cv_prog_CC+:} false; then :
3820  $as_echo_n "(cached) " >&6
3821else
3822  if test -n "$CC"; then
3823  ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828  IFS=$as_save_IFS
3829  test -z "$as_dir" && as_dir=.
3830    for ac_exec_ext in '' $ac_executable_extensions; do
3831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834    break 2
3835  fi
3836done
3837  done
3838IFS=$as_save_IFS
3839
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852fi
3853if test -z "$ac_cv_prog_CC"; then
3854  ac_ct_CC=$CC
3855  # Extract the first word of "gcc", so it can be a program name with args.
3856set dummy gcc; ac_word=$2
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
3859if ${ac_cv_prog_ac_ct_CC+:} false; then :
3860  $as_echo_n "(cached) " >&6
3861else
3862  if test -n "$ac_ct_CC"; then
3863  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3864else
3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH
3867do
3868  IFS=$as_save_IFS
3869  test -z "$as_dir" && as_dir=.
3870    for ac_exec_ext in '' $ac_executable_extensions; do
3871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872    ac_cv_prog_ac_ct_CC="gcc"
3873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874    break 2
3875  fi
3876done
3877  done
3878IFS=$as_save_IFS
3879
3880fi
3881fi
3882ac_ct_CC=$ac_cv_prog_ac_ct_CC
3883if test -n "$ac_ct_CC"; then
3884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3885$as_echo "$ac_ct_CC" >&6; }
3886else
3887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888$as_echo "no" >&6; }
3889fi
3890
3891  if test "x$ac_ct_CC" = x; then
3892    CC=""
3893  else
3894    case $cross_compiling:$ac_tool_warned in
3895yes:)
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3898ac_tool_warned=yes ;;
3899esac
3900    CC=$ac_ct_CC
3901  fi
3902else
3903  CC="$ac_cv_prog_CC"
3904fi
3905
3906if test -z "$CC"; then
3907          if test -n "$ac_tool_prefix"; then
3908    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3909set dummy ${ac_tool_prefix}cc; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
3912if ${ac_cv_prog_CC+:} false; then :
3913  $as_echo_n "(cached) " >&6
3914else
3915  if test -n "$CC"; then
3916  ac_cv_prog_CC="$CC" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923    for ac_exec_ext in '' $ac_executable_extensions; do
3924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925    ac_cv_prog_CC="${ac_tool_prefix}cc"
3926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927    break 2
3928  fi
3929done
3930  done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935CC=$ac_cv_prog_CC
3936if test -n "$CC"; then
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938$as_echo "$CC" >&6; }
3939else
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944
3945  fi
3946fi
3947if test -z "$CC"; then
3948  # Extract the first word of "cc", so it can be a program name with args.
3949set dummy cc; ac_word=$2
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951$as_echo_n "checking for $ac_word... " >&6; }
3952if ${ac_cv_prog_CC+:} false; then :
3953  $as_echo_n "(cached) " >&6
3954else
3955  if test -n "$CC"; then
3956  ac_cv_prog_CC="$CC" # Let the user override the test.
3957else
3958  ac_prog_rejected=no
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_exec_ext in '' $ac_executable_extensions; do
3965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3967       ac_prog_rejected=yes
3968       continue
3969     fi
3970    ac_cv_prog_CC="cc"
3971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972    break 2
3973  fi
3974done
3975  done
3976IFS=$as_save_IFS
3977
3978if test $ac_prog_rejected = yes; then
3979  # We found a bogon in the path, so make sure we never use it.
3980  set dummy $ac_cv_prog_CC
3981  shift
3982  if test $# != 0; then
3983    # We chose a different compiler from the bogus one.
3984    # However, it has the same basename, so the bogon will be chosen
3985    # first if we set CC to just the basename; use the full file name.
3986    shift
3987    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3988  fi
3989fi
3990fi
3991fi
3992CC=$ac_cv_prog_CC
3993if test -n "$CC"; then
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995$as_echo "$CC" >&6; }
3996else
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999fi
4000
4001
4002fi
4003if test -z "$CC"; then
4004  if test -n "$ac_tool_prefix"; then
4005  for ac_prog in cl.exe
4006  do
4007    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if ${ac_cv_prog_CC+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -n "$CC"; then
4015  ac_cv_prog_CC="$CC" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020  IFS=$as_save_IFS
4021  test -z "$as_dir" && as_dir=.
4022    for ac_exec_ext in '' $ac_executable_extensions; do
4023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026    break 2
4027  fi
4028done
4029  done
4030IFS=$as_save_IFS
4031
4032fi
4033fi
4034CC=$ac_cv_prog_CC
4035if test -n "$CC"; then
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037$as_echo "$CC" >&6; }
4038else
4039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
4041fi
4042
4043
4044    test -n "$CC" && break
4045  done
4046fi
4047if test -z "$CC"; then
4048  ac_ct_CC=$CC
4049  for ac_prog in cl.exe
4050do
4051  # Extract the first word of "$ac_prog", so it can be a program name with args.
4052set dummy $ac_prog; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
4055if ${ac_cv_prog_ac_ct_CC+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  if test -n "$ac_ct_CC"; then
4059  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064  IFS=$as_save_IFS
4065  test -z "$as_dir" && as_dir=.
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4068    ac_cv_prog_ac_ct_CC="$ac_prog"
4069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070    break 2
4071  fi
4072done
4073  done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079if test -n "$ac_ct_CC"; then
4080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4081$as_echo "$ac_ct_CC" >&6; }
4082else
4083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088  test -n "$ac_ct_CC" && break
4089done
4090
4091  if test "x$ac_ct_CC" = x; then
4092    CC=""
4093  else
4094    case $cross_compiling:$ac_tool_warned in
4095yes:)
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4098ac_tool_warned=yes ;;
4099esac
4100    CC=$ac_ct_CC
4101  fi
4102fi
4103
4104fi
4105
4106
4107test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109as_fn_error $? "no acceptable C compiler found in \$PATH
4110See \`config.log' for more details" "$LINENO" 5; }
4111
4112# Provide some information about the compiler.
4113$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4114set X $ac_compile
4115ac_compiler=$2
4116for ac_option in --version -v -V -qversion; do
4117  { { ac_try="$ac_compiler $ac_option >&5"
4118case "(($ac_try" in
4119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120  *) ac_try_echo=$ac_try;;
4121esac
4122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123$as_echo "$ac_try_echo"; } >&5
4124  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4125  ac_status=$?
4126  if test -s conftest.err; then
4127    sed '10a\
4128... rest of stderr output deleted ...
4129         10q' conftest.err >conftest.er1
4130    cat conftest.er1 >&5
4131  fi
4132  rm -f conftest.er1 conftest.err
4133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134  test $ac_status = 0; }
4135done
4136
4137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139
4140int
4141main ()
4142{
4143
4144  ;
4145  return 0;
4146}
4147_ACEOF
4148ac_clean_files_save=$ac_clean_files
4149ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4150# Try to create an executable without -o first, disregard a.out.
4151# It will help us diagnose broken compilers, and finding out an intuition
4152# of exeext.
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4154$as_echo_n "checking whether the C compiler works... " >&6; }
4155ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4156
4157# The possible output files:
4158ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4159
4160ac_rmfiles=
4161for ac_file in $ac_files
4162do
4163  case $ac_file in
4164    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4165    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4166  esac
4167done
4168rm -f $ac_rmfiles
4169
4170if { { ac_try="$ac_link_default"
4171case "(($ac_try" in
4172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173  *) ac_try_echo=$ac_try;;
4174esac
4175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176$as_echo "$ac_try_echo"; } >&5
4177  (eval "$ac_link_default") 2>&5
4178  ac_status=$?
4179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180  test $ac_status = 0; }; then :
4181  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4182# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4183# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4184# so that the user can short-circuit this test for compilers unknown to
4185# Autoconf.
4186for ac_file in $ac_files ''
4187do
4188  test -f "$ac_file" || continue
4189  case $ac_file in
4190    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4191	;;
4192    [ab].out )
4193	# We found the default executable, but exeext='' is most
4194	# certainly right.
4195	break;;
4196    *.* )
4197	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4198	then :; else
4199	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4200	fi
4201	# We set ac_cv_exeext here because the later test for it is not
4202	# safe: cross compilers may not add the suffix if given an `-o'
4203	# argument, so we may need to know it at that point already.
4204	# Even if this section looks crufty: it has the advantage of
4205	# actually working.
4206	break;;
4207    * )
4208	break;;
4209  esac
4210done
4211test "$ac_cv_exeext" = no && ac_cv_exeext=
4212
4213else
4214  ac_file=''
4215fi
4216if test -z "$ac_file"; then :
4217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218$as_echo "no" >&6; }
4219$as_echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224as_fn_error 77 "C compiler cannot create executables
4225See \`config.log' for more details" "$LINENO" 5; }
4226else
4227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228$as_echo "yes" >&6; }
4229fi
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4231$as_echo_n "checking for C compiler default output file name... " >&6; }
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4233$as_echo "$ac_file" >&6; }
4234ac_exeext=$ac_cv_exeext
4235
4236rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4237ac_clean_files=$ac_clean_files_save
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4239$as_echo_n "checking for suffix of executables... " >&6; }
4240if { { ac_try="$ac_link"
4241case "(($ac_try" in
4242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243  *) ac_try_echo=$ac_try;;
4244esac
4245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246$as_echo "$ac_try_echo"; } >&5
4247  (eval "$ac_link") 2>&5
4248  ac_status=$?
4249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250  test $ac_status = 0; }; then :
4251  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4252# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4253# work properly (i.e., refer to `conftest.exe'), while it won't with
4254# `rm'.
4255for ac_file in conftest.exe conftest conftest.*; do
4256  test -f "$ac_file" || continue
4257  case $ac_file in
4258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4259    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4260	  break;;
4261    * ) break;;
4262  esac
4263done
4264else
4265  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4268See \`config.log' for more details" "$LINENO" 5; }
4269fi
4270rm -f conftest conftest$ac_cv_exeext
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4272$as_echo "$ac_cv_exeext" >&6; }
4273
4274rm -f conftest.$ac_ext
4275EXEEXT=$ac_cv_exeext
4276ac_exeext=$EXEEXT
4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <stdio.h>
4280int
4281main ()
4282{
4283FILE *f = fopen ("conftest.out", "w");
4284 return ferror (f) || fclose (f) != 0;
4285
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290ac_clean_files="$ac_clean_files conftest.out"
4291# Check that the compiler produces executables we can run.  If not, either
4292# the compiler is broken, or we cross compile.
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4294$as_echo_n "checking whether we are cross compiling... " >&6; }
4295if test "$cross_compiling" != yes; then
4296  { { ac_try="$ac_link"
4297case "(($ac_try" in
4298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299  *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302$as_echo "$ac_try_echo"; } >&5
4303  (eval "$ac_link") 2>&5
4304  ac_status=$?
4305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306  test $ac_status = 0; }
4307  if { ac_try='./conftest$ac_cv_exeext'
4308  { { case "(($ac_try" in
4309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310  *) ac_try_echo=$ac_try;;
4311esac
4312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313$as_echo "$ac_try_echo"; } >&5
4314  (eval "$ac_try") 2>&5
4315  ac_status=$?
4316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317  test $ac_status = 0; }; }; then
4318    cross_compiling=no
4319  else
4320    if test "$cross_compiling" = maybe; then
4321	cross_compiling=yes
4322    else
4323	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325as_fn_error $? "cannot run C compiled programs.
4326If you meant to cross compile, use \`--host'.
4327See \`config.log' for more details" "$LINENO" 5; }
4328    fi
4329  fi
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4332$as_echo "$cross_compiling" >&6; }
4333
4334rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4335ac_clean_files=$ac_clean_files_save
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4337$as_echo_n "checking for suffix of object files... " >&6; }
4338if ${ac_cv_objext+:} false; then :
4339  $as_echo_n "(cached) " >&6
4340else
4341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343
4344int
4345main ()
4346{
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352rm -f conftest.o conftest.obj
4353if { { ac_try="$ac_compile"
4354case "(($ac_try" in
4355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356  *) ac_try_echo=$ac_try;;
4357esac
4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359$as_echo "$ac_try_echo"; } >&5
4360  (eval "$ac_compile") 2>&5
4361  ac_status=$?
4362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363  test $ac_status = 0; }; then :
4364  for ac_file in conftest.o conftest.obj conftest.*; do
4365  test -f "$ac_file" || continue;
4366  case $ac_file in
4367    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4368    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4369       break;;
4370  esac
4371done
4372else
4373  $as_echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4378as_fn_error $? "cannot compute suffix of object files: cannot compile
4379See \`config.log' for more details" "$LINENO" 5; }
4380fi
4381rm -f conftest.$ac_cv_objext conftest.$ac_ext
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4384$as_echo "$ac_cv_objext" >&6; }
4385OBJEXT=$ac_cv_objext
4386ac_objext=$OBJEXT
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4388$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4389if ${ac_cv_c_compiler_gnu+:} false; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h.  */
4394
4395int
4396main ()
4397{
4398#ifndef __GNUC__
4399       choke me
4400#endif
4401
4402  ;
4403  return 0;
4404}
4405_ACEOF
4406if ac_fn_c_try_compile "$LINENO"; then :
4407  ac_compiler_gnu=yes
4408else
4409  ac_compiler_gnu=no
4410fi
4411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412ac_cv_c_compiler_gnu=$ac_compiler_gnu
4413
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4416$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4417if test $ac_compiler_gnu = yes; then
4418  GCC=yes
4419else
4420  GCC=
4421fi
4422ac_test_CFLAGS=${CFLAGS+set}
4423ac_save_CFLAGS=$CFLAGS
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4425$as_echo_n "checking whether $CC accepts -g... " >&6; }
4426if ${ac_cv_prog_cc_g+:} false; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  ac_save_c_werror_flag=$ac_c_werror_flag
4430   ac_c_werror_flag=yes
4431   ac_cv_prog_cc_g=no
4432   CFLAGS="-g"
4433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435
4436int
4437main ()
4438{
4439
4440  ;
4441  return 0;
4442}
4443_ACEOF
4444if ac_fn_c_try_compile "$LINENO"; then :
4445  ac_cv_prog_cc_g=yes
4446else
4447  CFLAGS=""
4448      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h.  */
4450
4451int
4452main ()
4453{
4454
4455  ;
4456  return 0;
4457}
4458_ACEOF
4459if ac_fn_c_try_compile "$LINENO"; then :
4460
4461else
4462  ac_c_werror_flag=$ac_save_c_werror_flag
4463	 CFLAGS="-g"
4464	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466
4467int
4468main ()
4469{
4470
4471  ;
4472  return 0;
4473}
4474_ACEOF
4475if ac_fn_c_try_compile "$LINENO"; then :
4476  ac_cv_prog_cc_g=yes
4477fi
4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483   ac_c_werror_flag=$ac_save_c_werror_flag
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4486$as_echo "$ac_cv_prog_cc_g" >&6; }
4487if test "$ac_test_CFLAGS" = set; then
4488  CFLAGS=$ac_save_CFLAGS
4489elif test $ac_cv_prog_cc_g = yes; then
4490  if test "$GCC" = yes; then
4491    CFLAGS="-g -O2"
4492  else
4493    CFLAGS="-g"
4494  fi
4495else
4496  if test "$GCC" = yes; then
4497    CFLAGS="-O2"
4498  else
4499    CFLAGS=
4500  fi
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4503$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4504if ${ac_cv_prog_cc_c89+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  ac_cv_prog_cc_c89=no
4508ac_save_CC=$CC
4509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <stdarg.h>
4512#include <stdio.h>
4513#include <sys/types.h>
4514#include <sys/stat.h>
4515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4516struct buf { int x; };
4517FILE * (*rcsopen) (struct buf *, struct stat *, int);
4518static char *e (p, i)
4519     char **p;
4520     int i;
4521{
4522  return p[i];
4523}
4524static char *f (char * (*g) (char **, int), char **p, ...)
4525{
4526  char *s;
4527  va_list v;
4528  va_start (v,p);
4529  s = g (p, va_arg (v,int));
4530  va_end (v);
4531  return s;
4532}
4533
4534/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4535   function prototypes and stuff, but not '\xHH' hex character constants.
4536   These don't provoke an error unfortunately, instead are silently treated
4537   as 'x'.  The following induces an error, until -std is added to get
4538   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4539   array size at least.  It's necessary to write '\x00'==0 to get something
4540   that's true only with -std.  */
4541int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4542
4543/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4544   inside strings and character constants.  */
4545#define FOO(x) 'x'
4546int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4547
4548int test (int i, double x);
4549struct s1 {int (*f) (int a);};
4550struct s2 {int (*f) (double a);};
4551int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4552int argc;
4553char **argv;
4554int
4555main ()
4556{
4557return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4563	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4564do
4565  CC="$ac_save_CC $ac_arg"
4566  if ac_fn_c_try_compile "$LINENO"; then :
4567  ac_cv_prog_cc_c89=$ac_arg
4568fi
4569rm -f core conftest.err conftest.$ac_objext
4570  test "x$ac_cv_prog_cc_c89" != "xno" && break
4571done
4572rm -f conftest.$ac_ext
4573CC=$ac_save_CC
4574
4575fi
4576# AC_CACHE_VAL
4577case "x$ac_cv_prog_cc_c89" in
4578  x)
4579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4580$as_echo "none needed" >&6; } ;;
4581  xno)
4582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4583$as_echo "unsupported" >&6; } ;;
4584  *)
4585    CC="$CC $ac_cv_prog_cc_c89"
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4587$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4588esac
4589if test "x$ac_cv_prog_cc_c89" != xno; then :
4590
4591fi
4592
4593ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599depcc="$CC"   am_compiler_list=
4600
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4602$as_echo_n "checking dependency style of $depcc... " >&6; }
4603if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4604  $as_echo_n "(cached) " >&6
4605else
4606  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4607  # We make a subdir and do the tests there.  Otherwise we can end up
4608  # making bogus files that we don't know about and never remove.  For
4609  # instance it was reported that on HP-UX the gcc test will end up
4610  # making a dummy file named `D' -- because `-MD' means `put the output
4611  # in D'.
4612  mkdir conftest.dir
4613  # Copy depcomp to subdir because otherwise we won't find it if we're
4614  # using a relative directory.
4615  cp "$am_depcomp" conftest.dir
4616  cd conftest.dir
4617  # We will build objects and dependencies in a subdirectory because
4618  # it helps to detect inapplicable dependency modes.  For instance
4619  # both Tru64's cc and ICC support -MD to output dependencies as a
4620  # side effect of compilation, but ICC will put the dependencies in
4621  # the current directory while Tru64 will put them in the object
4622  # directory.
4623  mkdir sub
4624
4625  am_cv_CC_dependencies_compiler_type=none
4626  if test "$am_compiler_list" = ""; then
4627     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4628  fi
4629  am__universal=false
4630  case " $depcc " in #(
4631     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4632     esac
4633
4634  for depmode in $am_compiler_list; do
4635    # Setup a source with many dependencies, because some compilers
4636    # like to wrap large dependency lists on column 80 (with \), and
4637    # we should not choose a depcomp mode which is confused by this.
4638    #
4639    # We need to recreate these files for each test, as the compiler may
4640    # overwrite some of them when testing with obscure command lines.
4641    # This happens at least with the AIX C compiler.
4642    : > sub/conftest.c
4643    for i in 1 2 3 4 5 6; do
4644      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4645      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4646      # Solaris 8's {/usr,}/bin/sh.
4647      touch sub/conftst$i.h
4648    done
4649    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4650
4651    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4652    # mode.  It turns out that the SunPro C++ compiler does not properly
4653    # handle `-M -o', and we need to detect this.  Also, some Intel
4654    # versions had trouble with output in subdirs
4655    am__obj=sub/conftest.${OBJEXT-o}
4656    am__minus_obj="-o $am__obj"
4657    case $depmode in
4658    gcc)
4659      # This depmode causes a compiler race in universal mode.
4660      test "$am__universal" = false || continue
4661      ;;
4662    nosideeffect)
4663      # after this tag, mechanisms are not by side-effect, so they'll
4664      # only be used when explicitly requested
4665      if test "x$enable_dependency_tracking" = xyes; then
4666	continue
4667      else
4668	break
4669      fi
4670      ;;
4671    msvisualcpp | msvcmsys)
4672      # This compiler won't grok `-c -o', but also, the minuso test has
4673      # not run yet.  These depmodes are late enough in the game, and
4674      # so weak that their functioning should not be impacted.
4675      am__obj=conftest.${OBJEXT-o}
4676      am__minus_obj=
4677      ;;
4678    none) break ;;
4679    esac
4680    if depmode=$depmode \
4681       source=sub/conftest.c object=$am__obj \
4682       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4683       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4684         >/dev/null 2>conftest.err &&
4685       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4686       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4688       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689      # icc doesn't choke on unknown options, it will just issue warnings
4690      # or remarks (even with -Werror).  So we grep stderr for any message
4691      # that says an option was ignored or not supported.
4692      # When given -MP, icc 7.0 and 7.1 complain thusly:
4693      #   icc: Command line warning: ignoring option '-M'; no argument required
4694      # The diagnosis changed in icc 8.0:
4695      #   icc: Command line remark: option '-MP' not supported
4696      if (grep 'ignoring option' conftest.err ||
4697          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698        am_cv_CC_dependencies_compiler_type=$depmode
4699        break
4700      fi
4701    fi
4702  done
4703
4704  cd ..
4705  rm -rf conftest.dir
4706else
4707  am_cv_CC_dependencies_compiler_type=none
4708fi
4709
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4712$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4713CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4714
4715 if
4716  test "x$enable_dependency_tracking" != xno \
4717  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4718  am__fastdepCC_TRUE=
4719  am__fastdepCC_FALSE='#'
4720else
4721  am__fastdepCC_TRUE='#'
4722  am__fastdepCC_FALSE=
4723fi
4724
4725
4726
4727ac_ext=c
4728ac_cpp='$CPP $CPPFLAGS'
4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4733$as_echo_n "checking how to run the C preprocessor... " >&6; }
4734# On Suns, sometimes $CPP names a directory.
4735if test -n "$CPP" && test -d "$CPP"; then
4736  CPP=
4737fi
4738if test -z "$CPP"; then
4739  if ${ac_cv_prog_CPP+:} false; then :
4740  $as_echo_n "(cached) " >&6
4741else
4742      # Double quotes because CPP needs to be expanded
4743    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4744    do
4745      ac_preproc_ok=false
4746for ac_c_preproc_warn_flag in '' yes
4747do
4748  # Use a header file that comes with gcc, so configuring glibc
4749  # with a fresh cross-compiler works.
4750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751  # <limits.h> exists even on freestanding compilers.
4752  # On the NeXT, cc -E runs the code through the compiler's parser,
4753  # not just through cpp. "Syntax error" is here to catch this case.
4754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756#ifdef __STDC__
4757# include <limits.h>
4758#else
4759# include <assert.h>
4760#endif
4761		     Syntax error
4762_ACEOF
4763if ac_fn_c_try_cpp "$LINENO"; then :
4764
4765else
4766  # Broken: fails on valid input.
4767continue
4768fi
4769rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771  # OK, works on sane cases.  Now check whether nonexistent headers
4772  # can be detected and how.
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775#include <ac_nonexistent.h>
4776_ACEOF
4777if ac_fn_c_try_cpp "$LINENO"; then :
4778  # Broken: success on invalid input.
4779continue
4780else
4781  # Passes both tests.
4782ac_preproc_ok=:
4783break
4784fi
4785rm -f conftest.err conftest.i conftest.$ac_ext
4786
4787done
4788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789rm -f conftest.i conftest.err conftest.$ac_ext
4790if $ac_preproc_ok; then :
4791  break
4792fi
4793
4794    done
4795    ac_cv_prog_CPP=$CPP
4796
4797fi
4798  CPP=$ac_cv_prog_CPP
4799else
4800  ac_cv_prog_CPP=$CPP
4801fi
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4803$as_echo "$CPP" >&6; }
4804ac_preproc_ok=false
4805for ac_c_preproc_warn_flag in '' yes
4806do
4807  # Use a header file that comes with gcc, so configuring glibc
4808  # with a fresh cross-compiler works.
4809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810  # <limits.h> exists even on freestanding compilers.
4811  # On the NeXT, cc -E runs the code through the compiler's parser,
4812  # not just through cpp. "Syntax error" is here to catch this case.
4813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815#ifdef __STDC__
4816# include <limits.h>
4817#else
4818# include <assert.h>
4819#endif
4820		     Syntax error
4821_ACEOF
4822if ac_fn_c_try_cpp "$LINENO"; then :
4823
4824else
4825  # Broken: fails on valid input.
4826continue
4827fi
4828rm -f conftest.err conftest.i conftest.$ac_ext
4829
4830  # OK, works on sane cases.  Now check whether nonexistent headers
4831  # can be detected and how.
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834#include <ac_nonexistent.h>
4835_ACEOF
4836if ac_fn_c_try_cpp "$LINENO"; then :
4837  # Broken: success on invalid input.
4838continue
4839else
4840  # Passes both tests.
4841ac_preproc_ok=:
4842break
4843fi
4844rm -f conftest.err conftest.i conftest.$ac_ext
4845
4846done
4847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848rm -f conftest.i conftest.err conftest.$ac_ext
4849if $ac_preproc_ok; then :
4850
4851else
4852  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4854as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4855See \`config.log' for more details" "$LINENO" 5; }
4856fi
4857
4858ac_ext=c
4859ac_cpp='$CPP $CPPFLAGS'
4860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4866$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4867if ${ac_cv_path_GREP+:} false; then :
4868  $as_echo_n "(cached) " >&6
4869else
4870  if test -z "$GREP"; then
4871  ac_path_GREP_found=false
4872  # Loop through the user's path and test for each of PROGNAME-LIST
4873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878    for ac_prog in grep ggrep; do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4881      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4882# Check for GNU ac_path_GREP and select it if it is found.
4883  # Check for GNU $ac_path_GREP
4884case `"$ac_path_GREP" --version 2>&1` in
4885*GNU*)
4886  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887*)
4888  ac_count=0
4889  $as_echo_n 0123456789 >"conftest.in"
4890  while :
4891  do
4892    cat "conftest.in" "conftest.in" >"conftest.tmp"
4893    mv "conftest.tmp" "conftest.in"
4894    cp "conftest.in" "conftest.nl"
4895    $as_echo 'GREP' >> "conftest.nl"
4896    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898    as_fn_arith $ac_count + 1 && ac_count=$as_val
4899    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4900      # Best one so far, save it but keep looking for a better one
4901      ac_cv_path_GREP="$ac_path_GREP"
4902      ac_path_GREP_max=$ac_count
4903    fi
4904    # 10*(2^10) chars as input seems more than enough
4905    test $ac_count -gt 10 && break
4906  done
4907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910      $ac_path_GREP_found && break 3
4911    done
4912  done
4913  done
4914IFS=$as_save_IFS
4915  if test -z "$ac_cv_path_GREP"; then
4916    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917  fi
4918else
4919  ac_cv_path_GREP=$GREP
4920fi
4921
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4924$as_echo "$ac_cv_path_GREP" >&6; }
4925 GREP="$ac_cv_path_GREP"
4926
4927
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4929$as_echo_n "checking for egrep... " >&6; }
4930if ${ac_cv_path_EGREP+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4934   then ac_cv_path_EGREP="$GREP -E"
4935   else
4936     if test -z "$EGREP"; then
4937  ac_path_EGREP_found=false
4938  # Loop through the user's path and test for each of PROGNAME-LIST
4939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941do
4942  IFS=$as_save_IFS
4943  test -z "$as_dir" && as_dir=.
4944    for ac_prog in egrep; do
4945    for ac_exec_ext in '' $ac_executable_extensions; do
4946      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4947      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4948# Check for GNU ac_path_EGREP and select it if it is found.
4949  # Check for GNU $ac_path_EGREP
4950case `"$ac_path_EGREP" --version 2>&1` in
4951*GNU*)
4952  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953*)
4954  ac_count=0
4955  $as_echo_n 0123456789 >"conftest.in"
4956  while :
4957  do
4958    cat "conftest.in" "conftest.in" >"conftest.tmp"
4959    mv "conftest.tmp" "conftest.in"
4960    cp "conftest.in" "conftest.nl"
4961    $as_echo 'EGREP' >> "conftest.nl"
4962    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964    as_fn_arith $ac_count + 1 && ac_count=$as_val
4965    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4966      # Best one so far, save it but keep looking for a better one
4967      ac_cv_path_EGREP="$ac_path_EGREP"
4968      ac_path_EGREP_max=$ac_count
4969    fi
4970    # 10*(2^10) chars as input seems more than enough
4971    test $ac_count -gt 10 && break
4972  done
4973  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974esac
4975
4976      $ac_path_EGREP_found && break 3
4977    done
4978  done
4979  done
4980IFS=$as_save_IFS
4981  if test -z "$ac_cv_path_EGREP"; then
4982    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983  fi
4984else
4985  ac_cv_path_EGREP=$EGREP
4986fi
4987
4988   fi
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4991$as_echo "$ac_cv_path_EGREP" >&6; }
4992 EGREP="$ac_cv_path_EGREP"
4993
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4996$as_echo_n "checking for ANSI C header files... " >&6; }
4997if ${ac_cv_header_stdc+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002#include <stdlib.h>
5003#include <stdarg.h>
5004#include <string.h>
5005#include <float.h>
5006
5007int
5008main ()
5009{
5010
5011  ;
5012  return 0;
5013}
5014_ACEOF
5015if ac_fn_c_try_compile "$LINENO"; then :
5016  ac_cv_header_stdc=yes
5017else
5018  ac_cv_header_stdc=no
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021
5022if test $ac_cv_header_stdc = yes; then
5023  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025/* end confdefs.h.  */
5026#include <string.h>
5027
5028_ACEOF
5029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5030  $EGREP "memchr" >/dev/null 2>&1; then :
5031
5032else
5033  ac_cv_header_stdc=no
5034fi
5035rm -f conftest*
5036
5037fi
5038
5039if test $ac_cv_header_stdc = yes; then
5040  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h.  */
5043#include <stdlib.h>
5044
5045_ACEOF
5046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5047  $EGREP "free" >/dev/null 2>&1; then :
5048
5049else
5050  ac_cv_header_stdc=no
5051fi
5052rm -f conftest*
5053
5054fi
5055
5056if test $ac_cv_header_stdc = yes; then
5057  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5058  if test "$cross_compiling" = yes; then :
5059  :
5060else
5061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063#include <ctype.h>
5064#include <stdlib.h>
5065#if ((' ' & 0x0FF) == 0x020)
5066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068#else
5069# define ISLOWER(c) \
5070		   (('a' <= (c) && (c) <= 'i') \
5071		     || ('j' <= (c) && (c) <= 'r') \
5072		     || ('s' <= (c) && (c) <= 'z'))
5073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074#endif
5075
5076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5077int
5078main ()
5079{
5080  int i;
5081  for (i = 0; i < 256; i++)
5082    if (XOR (islower (i), ISLOWER (i))
5083	|| toupper (i) != TOUPPER (i))
5084      return 2;
5085  return 0;
5086}
5087_ACEOF
5088if ac_fn_c_try_run "$LINENO"; then :
5089
5090else
5091  ac_cv_header_stdc=no
5092fi
5093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5094  conftest.$ac_objext conftest.beam conftest.$ac_ext
5095fi
5096
5097fi
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5100$as_echo "$ac_cv_header_stdc" >&6; }
5101if test $ac_cv_header_stdc = yes; then
5102
5103$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5104
5105fi
5106
5107# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5108for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5109		  inttypes.h stdint.h unistd.h
5110do :
5111  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5113"
5114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5115  cat >>confdefs.h <<_ACEOF
5116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5117_ACEOF
5118
5119fi
5120
5121done
5122
5123
5124
5125
5126
5127  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5128if test "x$ac_cv_header_minix_config_h" = xyes; then :
5129  MINIX=yes
5130else
5131  MINIX=
5132fi
5133
5134
5135  if test "$MINIX" = yes; then
5136
5137$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5138
5139
5140$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5141
5142
5143$as_echo "#define _MINIX 1" >>confdefs.h
5144
5145  fi
5146
5147        case "$host_os" in
5148    hpux*)
5149
5150$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5151
5152      ;;
5153  esac
5154
5155
5156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5157$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5158if ${ac_cv_safe_to_define___extensions__+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163
5164#         define __EXTENSIONS__ 1
5165          $ac_includes_default
5166int
5167main ()
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  ac_cv_safe_to_define___extensions__=yes
5176else
5177  ac_cv_safe_to_define___extensions__=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5182$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5183  test $ac_cv_safe_to_define___extensions__ = yes &&
5184    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5185
5186  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5187
5188  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5189
5190  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5191
5192  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5193
5194
5195if test "x$CC" != xcc; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5197$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5200$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5201fi
5202set dummy $CC; ac_cc=`$as_echo "$2" |
5203		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5204if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209
5210int
5211main ()
5212{
5213
5214  ;
5215  return 0;
5216}
5217_ACEOF
5218# Make sure it works both with $CC and with simple cc.
5219# We do the test twice because some compilers refuse to overwrite an
5220# existing .o file with -o, though they will create one.
5221ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5222rm -f conftest2.*
5223if { { case "(($ac_try" in
5224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225  *) ac_try_echo=$ac_try;;
5226esac
5227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5228$as_echo "$ac_try_echo"; } >&5
5229  (eval "$ac_try") 2>&5
5230  ac_status=$?
5231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232  test $ac_status = 0; } &&
5233   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235  *) ac_try_echo=$ac_try;;
5236esac
5237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5238$as_echo "$ac_try_echo"; } >&5
5239  (eval "$ac_try") 2>&5
5240  ac_status=$?
5241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5242  test $ac_status = 0; };
5243then
5244  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5245  if test "x$CC" != xcc; then
5246    # Test first that cc exists at all.
5247    if { ac_try='cc -c conftest.$ac_ext >&5'
5248  { { case "(($ac_try" in
5249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250  *) ac_try_echo=$ac_try;;
5251esac
5252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5253$as_echo "$ac_try_echo"; } >&5
5254  (eval "$ac_try") 2>&5
5255  ac_status=$?
5256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257  test $ac_status = 0; }; }; then
5258      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5259      rm -f conftest2.*
5260      if { { case "(($ac_try" in
5261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262  *) ac_try_echo=$ac_try;;
5263esac
5264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5265$as_echo "$ac_try_echo"; } >&5
5266  (eval "$ac_try") 2>&5
5267  ac_status=$?
5268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269  test $ac_status = 0; } &&
5270	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272  *) ac_try_echo=$ac_try;;
5273esac
5274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5275$as_echo "$ac_try_echo"; } >&5
5276  (eval "$ac_try") 2>&5
5277  ac_status=$?
5278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5279  test $ac_status = 0; };
5280      then
5281	# cc works too.
5282	:
5283      else
5284	# cc exists but doesn't like -o.
5285	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5286      fi
5287    fi
5288  fi
5289else
5290  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5291fi
5292rm -f core conftest*
5293
5294fi
5295if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297$as_echo "yes" >&6; }
5298else
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
5301
5302$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5303
5304fi
5305
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308if ${ac_cv_prog_cc_c89+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  ac_cv_prog_cc_c89=no
5312ac_save_CC=$CC
5313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315#include <stdarg.h>
5316#include <stdio.h>
5317#include <sys/types.h>
5318#include <sys/stat.h>
5319/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5320struct buf { int x; };
5321FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322static char *e (p, i)
5323     char **p;
5324     int i;
5325{
5326  return p[i];
5327}
5328static char *f (char * (*g) (char **, int), char **p, ...)
5329{
5330  char *s;
5331  va_list v;
5332  va_start (v,p);
5333  s = g (p, va_arg (v,int));
5334  va_end (v);
5335  return s;
5336}
5337
5338/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5339   function prototypes and stuff, but not '\xHH' hex character constants.
5340   These don't provoke an error unfortunately, instead are silently treated
5341   as 'x'.  The following induces an error, until -std is added to get
5342   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5343   array size at least.  It's necessary to write '\x00'==0 to get something
5344   that's true only with -std.  */
5345int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5346
5347/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348   inside strings and character constants.  */
5349#define FOO(x) 'x'
5350int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5351
5352int test (int i, double x);
5353struct s1 {int (*f) (int a);};
5354struct s2 {int (*f) (double a);};
5355int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356int argc;
5357char **argv;
5358int
5359main ()
5360{
5361return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5362  ;
5363  return 0;
5364}
5365_ACEOF
5366for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5368do
5369  CC="$ac_save_CC $ac_arg"
5370  if ac_fn_c_try_compile "$LINENO"; then :
5371  ac_cv_prog_cc_c89=$ac_arg
5372fi
5373rm -f core conftest.err conftest.$ac_objext
5374  test "x$ac_cv_prog_cc_c89" != "xno" && break
5375done
5376rm -f conftest.$ac_ext
5377CC=$ac_save_CC
5378
5379fi
5380# AC_CACHE_VAL
5381case "x$ac_cv_prog_cc_c89" in
5382  x)
5383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384$as_echo "none needed" >&6; } ;;
5385  xno)
5386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387$as_echo "unsupported" >&6; } ;;
5388  *)
5389    CC="$CC $ac_cv_prog_cc_c89"
5390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5392esac
5393if test "x$ac_cv_prog_cc_c89" != xno; then :
5394
5395fi
5396
5397
5398
5399
5400
5401
5402ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407if test -n "$ac_tool_prefix"; then
5408  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5409set dummy ${ac_tool_prefix}gcc; ac_word=$2
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
5412if ${ac_cv_prog_CC+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  if test -n "$CC"; then
5416  ac_cv_prog_CC="$CC" # Let the user override the test.
5417else
5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421  IFS=$as_save_IFS
5422  test -z "$as_dir" && as_dir=.
5423    for ac_exec_ext in '' $ac_executable_extensions; do
5424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427    break 2
5428  fi
5429done
5430  done
5431IFS=$as_save_IFS
5432
5433fi
5434fi
5435CC=$ac_cv_prog_CC
5436if test -n "$CC"; then
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5438$as_echo "$CC" >&6; }
5439else
5440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }
5442fi
5443
5444
5445fi
5446if test -z "$ac_cv_prog_CC"; then
5447  ac_ct_CC=$CC
5448  # Extract the first word of "gcc", so it can be a program name with args.
5449set dummy gcc; ac_word=$2
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
5452if ${ac_cv_prog_ac_ct_CC+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  if test -n "$ac_ct_CC"; then
5456  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  test -z "$as_dir" && as_dir=.
5463    for ac_exec_ext in '' $ac_executable_extensions; do
5464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465    ac_cv_prog_ac_ct_CC="gcc"
5466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467    break 2
5468  fi
5469done
5470  done
5471IFS=$as_save_IFS
5472
5473fi
5474fi
5475ac_ct_CC=$ac_cv_prog_ac_ct_CC
5476if test -n "$ac_ct_CC"; then
5477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5478$as_echo "$ac_ct_CC" >&6; }
5479else
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481$as_echo "no" >&6; }
5482fi
5483
5484  if test "x$ac_ct_CC" = x; then
5485    CC=""
5486  else
5487    case $cross_compiling:$ac_tool_warned in
5488yes:)
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491ac_tool_warned=yes ;;
5492esac
5493    CC=$ac_ct_CC
5494  fi
5495else
5496  CC="$ac_cv_prog_CC"
5497fi
5498
5499if test -z "$CC"; then
5500          if test -n "$ac_tool_prefix"; then
5501    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5502set dummy ${ac_tool_prefix}cc; ac_word=$2
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504$as_echo_n "checking for $ac_word... " >&6; }
5505if ${ac_cv_prog_CC+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  if test -n "$CC"; then
5509  ac_cv_prog_CC="$CC" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514  IFS=$as_save_IFS
5515  test -z "$as_dir" && as_dir=.
5516    for ac_exec_ext in '' $ac_executable_extensions; do
5517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518    ac_cv_prog_CC="${ac_tool_prefix}cc"
5519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520    break 2
5521  fi
5522done
5523  done
5524IFS=$as_save_IFS
5525
5526fi
5527fi
5528CC=$ac_cv_prog_CC
5529if test -n "$CC"; then
5530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5531$as_echo "$CC" >&6; }
5532else
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535fi
5536
5537
5538  fi
5539fi
5540if test -z "$CC"; then
5541  # Extract the first word of "cc", so it can be a program name with args.
5542set dummy cc; ac_word=$2
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544$as_echo_n "checking for $ac_word... " >&6; }
5545if ${ac_cv_prog_CC+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  if test -n "$CC"; then
5549  ac_cv_prog_CC="$CC" # Let the user override the test.
5550else
5551  ac_prog_rejected=no
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555  IFS=$as_save_IFS
5556  test -z "$as_dir" && as_dir=.
5557    for ac_exec_ext in '' $ac_executable_extensions; do
5558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5560       ac_prog_rejected=yes
5561       continue
5562     fi
5563    ac_cv_prog_CC="cc"
5564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565    break 2
5566  fi
5567done
5568  done
5569IFS=$as_save_IFS
5570
5571if test $ac_prog_rejected = yes; then
5572  # We found a bogon in the path, so make sure we never use it.
5573  set dummy $ac_cv_prog_CC
5574  shift
5575  if test $# != 0; then
5576    # We chose a different compiler from the bogus one.
5577    # However, it has the same basename, so the bogon will be chosen
5578    # first if we set CC to just the basename; use the full file name.
5579    shift
5580    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5581  fi
5582fi
5583fi
5584fi
5585CC=$ac_cv_prog_CC
5586if test -n "$CC"; then
5587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5588$as_echo "$CC" >&6; }
5589else
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
5592fi
5593
5594
5595fi
5596if test -z "$CC"; then
5597  if test -n "$ac_tool_prefix"; then
5598  for ac_prog in cl.exe
5599  do
5600    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if ${ac_cv_prog_CC+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  if test -n "$CC"; then
5608  ac_cv_prog_CC="$CC" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613  IFS=$as_save_IFS
5614  test -z "$as_dir" && as_dir=.
5615    for ac_exec_ext in '' $ac_executable_extensions; do
5616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619    break 2
5620  fi
5621done
5622  done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627CC=$ac_cv_prog_CC
5628if test -n "$CC"; then
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5630$as_echo "$CC" >&6; }
5631else
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636
5637    test -n "$CC" && break
5638  done
5639fi
5640if test -z "$CC"; then
5641  ac_ct_CC=$CC
5642  for ac_prog in cl.exe
5643do
5644  # Extract the first word of "$ac_prog", so it can be a program name with args.
5645set dummy $ac_prog; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_ac_ct_CC+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if test -n "$ac_ct_CC"; then
5652  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661    ac_cv_prog_ac_ct_CC="$ac_prog"
5662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_CC=$ac_cv_prog_ac_ct_CC
5672if test -n "$ac_ct_CC"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5674$as_echo "$ac_ct_CC" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681  test -n "$ac_ct_CC" && break
5682done
5683
5684  if test "x$ac_ct_CC" = x; then
5685    CC=""
5686  else
5687    case $cross_compiling:$ac_tool_warned in
5688yes:)
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691ac_tool_warned=yes ;;
5692esac
5693    CC=$ac_ct_CC
5694  fi
5695fi
5696
5697fi
5698
5699
5700test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5702as_fn_error $? "no acceptable C compiler found in \$PATH
5703See \`config.log' for more details" "$LINENO" 5; }
5704
5705# Provide some information about the compiler.
5706$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5707set X $ac_compile
5708ac_compiler=$2
5709for ac_option in --version -v -V -qversion; do
5710  { { ac_try="$ac_compiler $ac_option >&5"
5711case "(($ac_try" in
5712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713  *) ac_try_echo=$ac_try;;
5714esac
5715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716$as_echo "$ac_try_echo"; } >&5
5717  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5718  ac_status=$?
5719  if test -s conftest.err; then
5720    sed '10a\
5721... rest of stderr output deleted ...
5722         10q' conftest.err >conftest.er1
5723    cat conftest.er1 >&5
5724  fi
5725  rm -f conftest.er1 conftest.err
5726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727  test $ac_status = 0; }
5728done
5729
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5731$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5732if ${ac_cv_c_compiler_gnu+:} false; then :
5733  $as_echo_n "(cached) " >&6
5734else
5735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737
5738int
5739main ()
5740{
5741#ifndef __GNUC__
5742       choke me
5743#endif
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750  ac_compiler_gnu=yes
5751else
5752  ac_compiler_gnu=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755ac_cv_c_compiler_gnu=$ac_compiler_gnu
5756
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5759$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5760if test $ac_compiler_gnu = yes; then
5761  GCC=yes
5762else
5763  GCC=
5764fi
5765ac_test_CFLAGS=${CFLAGS+set}
5766ac_save_CFLAGS=$CFLAGS
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5768$as_echo_n "checking whether $CC accepts -g... " >&6; }
5769if ${ac_cv_prog_cc_g+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  ac_save_c_werror_flag=$ac_c_werror_flag
5773   ac_c_werror_flag=yes
5774   ac_cv_prog_cc_g=no
5775   CFLAGS="-g"
5776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778
5779int
5780main ()
5781{
5782
5783  ;
5784  return 0;
5785}
5786_ACEOF
5787if ac_fn_c_try_compile "$LINENO"; then :
5788  ac_cv_prog_cc_g=yes
5789else
5790  CFLAGS=""
5791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h.  */
5793
5794int
5795main ()
5796{
5797
5798  ;
5799  return 0;
5800}
5801_ACEOF
5802if ac_fn_c_try_compile "$LINENO"; then :
5803
5804else
5805  ac_c_werror_flag=$ac_save_c_werror_flag
5806	 CFLAGS="-g"
5807	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h.  */
5809
5810int
5811main ()
5812{
5813
5814  ;
5815  return 0;
5816}
5817_ACEOF
5818if ac_fn_c_try_compile "$LINENO"; then :
5819  ac_cv_prog_cc_g=yes
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824fi
5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826   ac_c_werror_flag=$ac_save_c_werror_flag
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5829$as_echo "$ac_cv_prog_cc_g" >&6; }
5830if test "$ac_test_CFLAGS" = set; then
5831  CFLAGS=$ac_save_CFLAGS
5832elif test $ac_cv_prog_cc_g = yes; then
5833  if test "$GCC" = yes; then
5834    CFLAGS="-g -O2"
5835  else
5836    CFLAGS="-g"
5837  fi
5838else
5839  if test "$GCC" = yes; then
5840    CFLAGS="-O2"
5841  else
5842    CFLAGS=
5843  fi
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5846$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5847if ${ac_cv_prog_cc_c89+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  ac_cv_prog_cc_c89=no
5851ac_save_CC=$CC
5852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854#include <stdarg.h>
5855#include <stdio.h>
5856#include <sys/types.h>
5857#include <sys/stat.h>
5858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5859struct buf { int x; };
5860FILE * (*rcsopen) (struct buf *, struct stat *, int);
5861static char *e (p, i)
5862     char **p;
5863     int i;
5864{
5865  return p[i];
5866}
5867static char *f (char * (*g) (char **, int), char **p, ...)
5868{
5869  char *s;
5870  va_list v;
5871  va_start (v,p);
5872  s = g (p, va_arg (v,int));
5873  va_end (v);
5874  return s;
5875}
5876
5877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5878   function prototypes and stuff, but not '\xHH' hex character constants.
5879   These don't provoke an error unfortunately, instead are silently treated
5880   as 'x'.  The following induces an error, until -std is added to get
5881   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5882   array size at least.  It's necessary to write '\x00'==0 to get something
5883   that's true only with -std.  */
5884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5885
5886/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5887   inside strings and character constants.  */
5888#define FOO(x) 'x'
5889int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5890
5891int test (int i, double x);
5892struct s1 {int (*f) (int a);};
5893struct s2 {int (*f) (double a);};
5894int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5895int argc;
5896char **argv;
5897int
5898main ()
5899{
5900return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5906	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5907do
5908  CC="$ac_save_CC $ac_arg"
5909  if ac_fn_c_try_compile "$LINENO"; then :
5910  ac_cv_prog_cc_c89=$ac_arg
5911fi
5912rm -f core conftest.err conftest.$ac_objext
5913  test "x$ac_cv_prog_cc_c89" != "xno" && break
5914done
5915rm -f conftest.$ac_ext
5916CC=$ac_save_CC
5917
5918fi
5919# AC_CACHE_VAL
5920case "x$ac_cv_prog_cc_c89" in
5921  x)
5922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5923$as_echo "none needed" >&6; } ;;
5924  xno)
5925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5926$as_echo "unsupported" >&6; } ;;
5927  *)
5928    CC="$CC $ac_cv_prog_cc_c89"
5929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5930$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5931esac
5932if test "x$ac_cv_prog_cc_c89" != xno; then :
5933
5934fi
5935
5936ac_ext=c
5937ac_cpp='$CPP $CPPFLAGS'
5938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941
5942depcc="$CC"   am_compiler_list=
5943
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5945$as_echo_n "checking dependency style of $depcc... " >&6; }
5946if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5950  # We make a subdir and do the tests there.  Otherwise we can end up
5951  # making bogus files that we don't know about and never remove.  For
5952  # instance it was reported that on HP-UX the gcc test will end up
5953  # making a dummy file named `D' -- because `-MD' means `put the output
5954  # in D'.
5955  mkdir conftest.dir
5956  # Copy depcomp to subdir because otherwise we won't find it if we're
5957  # using a relative directory.
5958  cp "$am_depcomp" conftest.dir
5959  cd conftest.dir
5960  # We will build objects and dependencies in a subdirectory because
5961  # it helps to detect inapplicable dependency modes.  For instance
5962  # both Tru64's cc and ICC support -MD to output dependencies as a
5963  # side effect of compilation, but ICC will put the dependencies in
5964  # the current directory while Tru64 will put them in the object
5965  # directory.
5966  mkdir sub
5967
5968  am_cv_CC_dependencies_compiler_type=none
5969  if test "$am_compiler_list" = ""; then
5970     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5971  fi
5972  am__universal=false
5973  case " $depcc " in #(
5974     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5975     esac
5976
5977  for depmode in $am_compiler_list; do
5978    # Setup a source with many dependencies, because some compilers
5979    # like to wrap large dependency lists on column 80 (with \), and
5980    # we should not choose a depcomp mode which is confused by this.
5981    #
5982    # We need to recreate these files for each test, as the compiler may
5983    # overwrite some of them when testing with obscure command lines.
5984    # This happens at least with the AIX C compiler.
5985    : > sub/conftest.c
5986    for i in 1 2 3 4 5 6; do
5987      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5988      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5989      # Solaris 8's {/usr,}/bin/sh.
5990      touch sub/conftst$i.h
5991    done
5992    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5993
5994    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5995    # mode.  It turns out that the SunPro C++ compiler does not properly
5996    # handle `-M -o', and we need to detect this.  Also, some Intel
5997    # versions had trouble with output in subdirs
5998    am__obj=sub/conftest.${OBJEXT-o}
5999    am__minus_obj="-o $am__obj"
6000    case $depmode in
6001    gcc)
6002      # This depmode causes a compiler race in universal mode.
6003      test "$am__universal" = false || continue
6004      ;;
6005    nosideeffect)
6006      # after this tag, mechanisms are not by side-effect, so they'll
6007      # only be used when explicitly requested
6008      if test "x$enable_dependency_tracking" = xyes; then
6009	continue
6010      else
6011	break
6012      fi
6013      ;;
6014    msvisualcpp | msvcmsys)
6015      # This compiler won't grok `-c -o', but also, the minuso test has
6016      # not run yet.  These depmodes are late enough in the game, and
6017      # so weak that their functioning should not be impacted.
6018      am__obj=conftest.${OBJEXT-o}
6019      am__minus_obj=
6020      ;;
6021    none) break ;;
6022    esac
6023    if depmode=$depmode \
6024       source=sub/conftest.c object=$am__obj \
6025       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6026       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6027         >/dev/null 2>conftest.err &&
6028       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6029       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6030       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6031       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6032      # icc doesn't choke on unknown options, it will just issue warnings
6033      # or remarks (even with -Werror).  So we grep stderr for any message
6034      # that says an option was ignored or not supported.
6035      # When given -MP, icc 7.0 and 7.1 complain thusly:
6036      #   icc: Command line warning: ignoring option '-M'; no argument required
6037      # The diagnosis changed in icc 8.0:
6038      #   icc: Command line remark: option '-MP' not supported
6039      if (grep 'ignoring option' conftest.err ||
6040          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6041        am_cv_CC_dependencies_compiler_type=$depmode
6042        break
6043      fi
6044    fi
6045  done
6046
6047  cd ..
6048  rm -rf conftest.dir
6049else
6050  am_cv_CC_dependencies_compiler_type=none
6051fi
6052
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6055$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6056CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6057
6058 if
6059  test "x$enable_dependency_tracking" != xno \
6060  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6061  am__fastdepCC_TRUE=
6062  am__fastdepCC_FALSE='#'
6063else
6064  am__fastdepCC_TRUE='#'
6065  am__fastdepCC_FALSE=
6066fi
6067
6068
6069# Ralf Wildenhues: With per-target flags we need CC_C_O
6070# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6071# FIXME: we rely on the cache variable name because
6072# there is no other way.
6073set dummy $CC
6074am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6075eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6076if test "$am_t" != yes; then
6077   # Losing compiler, so override with the script.
6078   # FIXME: It is wrong to rewrite CC.
6079   # But if we don't then we get into trouble of one sort or another.
6080   # A longer-term fix would be to have automake use am__CC in this case,
6081   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6082   CC="$am_aux_dir/compile $CC"
6083fi
6084
6085
6086if test $ac_cv_c_compiler_gnu = yes; then
6087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6088$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6089if ${ac_cv_prog_gcc_traditional+:} false; then :
6090  $as_echo_n "(cached) " >&6
6091else
6092    ac_pattern="Autoconf.*'x'"
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095#include <sgtty.h>
6096Autoconf TIOCGETP
6097_ACEOF
6098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6100  ac_cv_prog_gcc_traditional=yes
6101else
6102  ac_cv_prog_gcc_traditional=no
6103fi
6104rm -f conftest*
6105
6106
6107  if test $ac_cv_prog_gcc_traditional = no; then
6108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109/* end confdefs.h.  */
6110#include <termio.h>
6111Autoconf TCGETA
6112_ACEOF
6113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6115  ac_cv_prog_gcc_traditional=yes
6116fi
6117rm -f conftest*
6118
6119  fi
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6122$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6123  if test $ac_cv_prog_gcc_traditional = yes; then
6124    CC="$CC -traditional"
6125  fi
6126fi
6127
6128
6129
6130
6131CFLAGS_NTP=
6132CPPFLAGS_NTP=
6133LDADD_NTP=
6134LDFLAGS_NTP=
6135
6136
6137
6138
6139
6140case "$ac_cv_prog_cc_c89" in
6141 no)
6142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6143		 version 4.2.5 and higher." >&5
6144$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6145		 version 4.2.5 and higher." >&2;}
6146    ;;
6147esac
6148
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6150$as_echo_n "checking if $CC can handle #warning... " >&6; }
6151if ${ntp_cv_cpp_warning+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156
6157int
6158main ()
6159{
6160#warning foo
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"; then :
6166  ntp_cv_cpp_warning=yes
6167else
6168  ntp_cv_cpp_warning=no
6169
6170fi
6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6175$as_echo "$ntp_cv_cpp_warning" >&6; }
6176case "$ntp_cv_cpp_warning" in
6177 no)
6178
6179$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6180
6181esac
6182
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6184$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6185if ${ntp_cv_cc_attribute+:} false; then :
6186  $as_echo_n "(cached) " >&6
6187else
6188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h.  */
6190
6191int
6192main ()
6193{
6194void foo(void) __attribute__((__noreturn__));
6195
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"; then :
6201  ntp_cv_cc_attribute=yes
6202else
6203  ntp_cv_cc_attribute=no
6204
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6210$as_echo "$ntp_cv_cc_attribute" >&6; }
6211case "$ntp_cv_cc_attribute" in
6212 yes)
6213
6214$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6215
6216esac
6217
6218
6219case "$GCC" in
6220 yes)
6221    SAVED_CFLAGS="$CFLAGS"
6222    CFLAGS="$CFLAGS -Wstrict-overflow"
6223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6224$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6225if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h.  */
6230
6231int
6232main ()
6233{
6234
6235  ;
6236  return 0;
6237}
6238_ACEOF
6239if ac_fn_c_try_compile "$LINENO"; then :
6240  ntp_cv_gcc_Wstrict_overflow=yes
6241else
6242  ntp_cv_gcc_Wstrict_overflow=no
6243
6244fi
6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6249$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6250    #
6251    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6252    # flag to CFLAGS.
6253    #
6254    CFLAGS="$SAVED_CFLAGS -Winit-self"
6255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6256$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6257if ${ntp_cv_gcc_Winit_self+:} false; then :
6258  $as_echo_n "(cached) " >&6
6259else
6260
6261	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263
6264int
6265main ()
6266{
6267
6268  ;
6269  return 0;
6270}
6271_ACEOF
6272if ac_fn_c_try_compile "$LINENO"; then :
6273  ntp_cv_gcc_Winit_self=yes
6274else
6275  ntp_cv_gcc_Winit_self=no
6276
6277fi
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279
6280
6281fi
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6283$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6284    CFLAGS="$SAVED_CFLAGS"
6285    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6286    #
6287    # $ntp_cv_gcc_Winit_self is tested later to add the
6288    # flag to CFLAGS_NTP.
6289    #
6290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6291$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6292if ${ntp_cv_gc_sections_runs+:} false; then :
6293  $as_echo_n "(cached) " >&6
6294else
6295
6296	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
6297	    CFLAGS="$CFLAGS -Wl,--gc-sections"
6298	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299/* end confdefs.h.  */
6300
6301			#include <stdlib.h>
6302			#include <stdio.h>
6303
6304int
6305main ()
6306{
6307
6308			FILE *	fpC;
6309			char	buf[32];
6310			size_t	cch;
6311			int	read_success_once;
6312
6313			fpC = fopen("conftest.c", "r");
6314			if (NULL == fpC)
6315				exit(1);
6316			do {
6317				cch = fread(buf, sizeof(buf), 1, fpC);
6318				read_success_once |= (0 != cch);
6319			} while (0 != cch);
6320			if (!read_success_once)
6321				exit(2);
6322			if (!feof(fpC))
6323				exit(3);
6324			if (0 != fclose(fpC))
6325				exit(4);
6326
6327			exit(EXIT_SUCCESS);
6328
6329
6330  ;
6331  return 0;
6332}
6333_ACEOF
6334if ac_fn_c_try_link "$LINENO"; then :
6335
6336		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6337			ntp_cv_gc_sections_runs=no
6338		    else
6339			ntp_cv_gc_sections_runs=no
6340			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6341		    fi
6342
6343else
6344  ntp_cv_gc_sections_runs=no
6345
6346fi
6347rm -f core conftest.err conftest.$ac_objext \
6348    conftest$ac_exeext conftest.$ac_ext
6349	    CFLAGS="$origCFLAGS"
6350	    { origCFLAGS=; unset origCFLAGS;}
6351
6352
6353fi
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6355$as_echo "$ntp_cv_gc_sections_runs" >&6; }
6356    case "$ntp_cv_gc_sections_runs" in
6357     yes)
6358	LDADD_LIBNTP="-Wl,--gc-sections"
6359	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6360	;;
6361     no)
6362	LDADD_LIBNTP=
6363	;;
6364    esac
6365    CFLAGS_NTP="$CFLAGS_NTP -Wall"
6366    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6367    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6368    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6369    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6370    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6371    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6372    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6373    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6374    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6375    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6376    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6377    case "$ntp_cv_gcc_Winit_self" in
6378     yes)
6379	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6380    esac
6381    case "$ntp_cv_gcc_Wstrict_overflow" in
6382     yes)
6383	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6384    esac
6385    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6386esac
6387
6388
6389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6390$as_echo_n "checking additional compiler flags... " >&6; }
6391    # allow ntp_os_flags to be preset to skip this stuff
6392    case "${ntp_os_cflags+set}" in
6393     set)
6394	;;
6395     *)
6396	ntp_os_cflags=
6397	case "$host_os" in
6398	 aix[1-3]*)
6399	    ;;
6400	 aix4.[0-2]*)
6401	    # turn on additional headers
6402	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6403	    ;;
6404	 aix5.3*)
6405	    # avoid circular dependencies in yp headers, and more
6406	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6407	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6408	    ;;
6409	 aix*)
6410	    # XXX Only verified thru AIX6.
6411	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6412	    # avoid circular dependencies in yp headers
6413	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6414	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6415	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6416	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6417	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6418	    ;;
6419	 amigaos)
6420	    ntp_os_cflags="-DSYS_AMIGA"
6421	    ;;
6422	 darwin*|macosx*|rhapsody*)
6423	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
6424	    ;;
6425	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
6426	    case "$GCC" in
6427	     yes)
6428		;;
6429	     *)
6430		# use Ansi compiler on HPUX, and some -Wp magic
6431		ntp_os_cflags="-Ae -Wp,-H18816"
6432		;;
6433	    esac
6434	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6435	    ;;
6436	 hpux*)
6437	    case "$GCC" in
6438	     yes)
6439		;;
6440	     *)
6441		# use Ansi compiler on HPUX
6442		ntp_os_cflags="-Ae"
6443	    esac
6444	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE"
6445	    ;;
6446	 irix6*)
6447	    case "$CC" in
6448	     cc)
6449		# do not use 64-bit compiler
6450		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6451	    esac
6452	    ;;
6453	 nextstep3)
6454	    ntp_os_cflags="-posix"
6455	    ;;
6456	 solaris1*|solaris2.[0-5]|solaris2.5.*)
6457	    ;;
6458	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6459	    ;;
6460	 solaris2*|sunos5*)
6461	    # turn on 64-bit file offset interface
6462	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6463	    ;;
6464	 vxworks*)
6465	    case "$build" in
6466	     $host)
6467		;;
6468	     *)
6469		# Quick and dirty sanity check
6470		case "$VX_KERNEL" in
6471		 '')
6472		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6473		esac
6474		ntp_os_cflags="-DSYS_VXWORKS"
6475	    esac
6476	    ;;
6477	esac
6478    esac
6479    case "$ntp_os_flags" in
6480     '')
6481	ntp_os_cflags_msg="none needed"
6482	;;
6483     *)
6484	ntp_os_cflags_msg="$ntp_os_cflags"
6485    esac
6486    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6488$as_echo "$ntp_os_cflags_msg" >&6; }
6489    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6490
6491
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6494$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6495if ${ac_cv_c_bigendian+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  ac_cv_c_bigendian=unknown
6499    # See if we're dealing with a universal compiler.
6500    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502#ifndef __APPLE_CC__
6503	       not a universal capable compiler
6504	     #endif
6505	     typedef int dummy;
6506
6507_ACEOF
6508if ac_fn_c_try_compile "$LINENO"; then :
6509
6510	# Check for potential -arch flags.  It is not universal unless
6511	# there are at least two -arch flags with different values.
6512	ac_arch=
6513	ac_prev=
6514	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6515	 if test -n "$ac_prev"; then
6516	   case $ac_word in
6517	     i?86 | x86_64 | ppc | ppc64)
6518	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6519		 ac_arch=$ac_word
6520	       else
6521		 ac_cv_c_bigendian=universal
6522		 break
6523	       fi
6524	       ;;
6525	   esac
6526	   ac_prev=
6527	 elif test "x$ac_word" = "x-arch"; then
6528	   ac_prev=arch
6529	 fi
6530       done
6531fi
6532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533    if test $ac_cv_c_bigendian = unknown; then
6534      # See if sys/param.h defines the BYTE_ORDER macro.
6535      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h.  */
6537#include <sys/types.h>
6538	     #include <sys/param.h>
6539
6540int
6541main ()
6542{
6543#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6544		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6545		     && LITTLE_ENDIAN)
6546	      bogus endian macros
6547	     #endif
6548
6549  ;
6550  return 0;
6551}
6552_ACEOF
6553if ac_fn_c_try_compile "$LINENO"; then :
6554  # It does; now see whether it defined to BIG_ENDIAN or not.
6555	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556/* end confdefs.h.  */
6557#include <sys/types.h>
6558		#include <sys/param.h>
6559
6560int
6561main ()
6562{
6563#if BYTE_ORDER != BIG_ENDIAN
6564		 not big endian
6565		#endif
6566
6567  ;
6568  return 0;
6569}
6570_ACEOF
6571if ac_fn_c_try_compile "$LINENO"; then :
6572  ac_cv_c_bigendian=yes
6573else
6574  ac_cv_c_bigendian=no
6575fi
6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579    fi
6580    if test $ac_cv_c_bigendian = unknown; then
6581      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6582      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584#include <limits.h>
6585
6586int
6587main ()
6588{
6589#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6590	      bogus endian macros
6591	     #endif
6592
6593  ;
6594  return 0;
6595}
6596_ACEOF
6597if ac_fn_c_try_compile "$LINENO"; then :
6598  # It does; now see whether it defined to _BIG_ENDIAN or not.
6599	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601#include <limits.h>
6602
6603int
6604main ()
6605{
6606#ifndef _BIG_ENDIAN
6607		 not big endian
6608		#endif
6609
6610  ;
6611  return 0;
6612}
6613_ACEOF
6614if ac_fn_c_try_compile "$LINENO"; then :
6615  ac_cv_c_bigendian=yes
6616else
6617  ac_cv_c_bigendian=no
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620fi
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622    fi
6623    if test $ac_cv_c_bigendian = unknown; then
6624      # Compile a test program.
6625      if test "$cross_compiling" = yes; then :
6626  # Try to guess by grepping values from an object file.
6627	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629short int ascii_mm[] =
6630		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6631		short int ascii_ii[] =
6632		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6633		int use_ascii (int i) {
6634		  return ascii_mm[i] + ascii_ii[i];
6635		}
6636		short int ebcdic_ii[] =
6637		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6638		short int ebcdic_mm[] =
6639		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6640		int use_ebcdic (int i) {
6641		  return ebcdic_mm[i] + ebcdic_ii[i];
6642		}
6643		extern int foo;
6644
6645int
6646main ()
6647{
6648return use_ascii (foo) == use_ebcdic (foo);
6649  ;
6650  return 0;
6651}
6652_ACEOF
6653if ac_fn_c_try_compile "$LINENO"; then :
6654  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6655	      ac_cv_c_bigendian=yes
6656	    fi
6657	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6658	      if test "$ac_cv_c_bigendian" = unknown; then
6659		ac_cv_c_bigendian=no
6660	      else
6661		# finding both strings is unlikely to happen, but who knows?
6662		ac_cv_c_bigendian=unknown
6663	      fi
6664	    fi
6665fi
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667else
6668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h.  */
6670$ac_includes_default
6671int
6672main ()
6673{
6674
6675	     /* Are we little or big endian?  From Harbison&Steele.  */
6676	     union
6677	     {
6678	       long int l;
6679	       char c[sizeof (long int)];
6680	     } u;
6681	     u.l = 1;
6682	     return u.c[sizeof (long int) - 1] == 1;
6683
6684  ;
6685  return 0;
6686}
6687_ACEOF
6688if ac_fn_c_try_run "$LINENO"; then :
6689  ac_cv_c_bigendian=no
6690else
6691  ac_cv_c_bigendian=yes
6692fi
6693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6694  conftest.$ac_objext conftest.beam conftest.$ac_ext
6695fi
6696
6697    fi
6698fi
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6700$as_echo "$ac_cv_c_bigendian" >&6; }
6701 case $ac_cv_c_bigendian in #(
6702   yes)
6703     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6704;; #(
6705   no)
6706      ;; #(
6707   universal)
6708
6709$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6710
6711     ;; #(
6712   *)
6713     as_fn_error $? "unknown endianness
6714 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6715 esac
6716
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6718$as_echo_n "checking for working volatile... " >&6; }
6719if ${ac_cv_c_volatile+:} false; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723/* end confdefs.h.  */
6724
6725int
6726main ()
6727{
6728
6729volatile int x;
6730int * volatile y = (int *) 0;
6731return !x && !y;
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736if ac_fn_c_try_compile "$LINENO"; then :
6737  ac_cv_c_volatile=yes
6738else
6739  ac_cv_c_volatile=no
6740fi
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742fi
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6744$as_echo "$ac_cv_c_volatile" >&6; }
6745if test $ac_cv_c_volatile = no; then
6746
6747$as_echo "#define volatile /**/" >>confdefs.h
6748
6749fi
6750
6751ac_ext=c
6752ac_cpp='$CPP $CPPFLAGS'
6753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755ac_compiler_gnu=$ac_cv_c_compiler_gnu
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6757$as_echo_n "checking how to run the C preprocessor... " >&6; }
6758# On Suns, sometimes $CPP names a directory.
6759if test -n "$CPP" && test -d "$CPP"; then
6760  CPP=
6761fi
6762if test -z "$CPP"; then
6763  if ${ac_cv_prog_CPP+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766      # Double quotes because CPP needs to be expanded
6767    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6768    do
6769      ac_preproc_ok=false
6770for ac_c_preproc_warn_flag in '' yes
6771do
6772  # Use a header file that comes with gcc, so configuring glibc
6773  # with a fresh cross-compiler works.
6774  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775  # <limits.h> exists even on freestanding compilers.
6776  # On the NeXT, cc -E runs the code through the compiler's parser,
6777  # not just through cpp. "Syntax error" is here to catch this case.
6778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780#ifdef __STDC__
6781# include <limits.h>
6782#else
6783# include <assert.h>
6784#endif
6785		     Syntax error
6786_ACEOF
6787if ac_fn_c_try_cpp "$LINENO"; then :
6788
6789else
6790  # Broken: fails on valid input.
6791continue
6792fi
6793rm -f conftest.err conftest.i conftest.$ac_ext
6794
6795  # OK, works on sane cases.  Now check whether nonexistent headers
6796  # can be detected and how.
6797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h.  */
6799#include <ac_nonexistent.h>
6800_ACEOF
6801if ac_fn_c_try_cpp "$LINENO"; then :
6802  # Broken: success on invalid input.
6803continue
6804else
6805  # Passes both tests.
6806ac_preproc_ok=:
6807break
6808fi
6809rm -f conftest.err conftest.i conftest.$ac_ext
6810
6811done
6812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6813rm -f conftest.i conftest.err conftest.$ac_ext
6814if $ac_preproc_ok; then :
6815  break
6816fi
6817
6818    done
6819    ac_cv_prog_CPP=$CPP
6820
6821fi
6822  CPP=$ac_cv_prog_CPP
6823else
6824  ac_cv_prog_CPP=$CPP
6825fi
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6827$as_echo "$CPP" >&6; }
6828ac_preproc_ok=false
6829for ac_c_preproc_warn_flag in '' yes
6830do
6831  # Use a header file that comes with gcc, so configuring glibc
6832  # with a fresh cross-compiler works.
6833  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834  # <limits.h> exists even on freestanding compilers.
6835  # On the NeXT, cc -E runs the code through the compiler's parser,
6836  # not just through cpp. "Syntax error" is here to catch this case.
6837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h.  */
6839#ifdef __STDC__
6840# include <limits.h>
6841#else
6842# include <assert.h>
6843#endif
6844		     Syntax error
6845_ACEOF
6846if ac_fn_c_try_cpp "$LINENO"; then :
6847
6848else
6849  # Broken: fails on valid input.
6850continue
6851fi
6852rm -f conftest.err conftest.i conftest.$ac_ext
6853
6854  # OK, works on sane cases.  Now check whether nonexistent headers
6855  # can be detected and how.
6856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h.  */
6858#include <ac_nonexistent.h>
6859_ACEOF
6860if ac_fn_c_try_cpp "$LINENO"; then :
6861  # Broken: success on invalid input.
6862continue
6863else
6864  # Passes both tests.
6865ac_preproc_ok=:
6866break
6867fi
6868rm -f conftest.err conftest.i conftest.$ac_ext
6869
6870done
6871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6872rm -f conftest.i conftest.err conftest.$ac_ext
6873if $ac_preproc_ok; then :
6874
6875else
6876  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6878as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6879See \`config.log' for more details" "$LINENO" 5; }
6880fi
6881
6882ac_ext=c
6883ac_cpp='$CPP $CPPFLAGS'
6884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887
6888
6889
6890ac_ext=c
6891ac_cpp='$CPP $CPPFLAGS'
6892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894ac_compiler_gnu=$ac_cv_c_compiler_gnu
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6896$as_echo_n "checking how to run the C preprocessor... " >&6; }
6897# On Suns, sometimes $CPP names a directory.
6898if test -n "$CPP" && test -d "$CPP"; then
6899  CPP=
6900fi
6901if test -z "$CPP"; then
6902  if ${ac_cv_prog_CPP+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905      # Double quotes because CPP needs to be expanded
6906    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6907    do
6908      ac_preproc_ok=false
6909for ac_c_preproc_warn_flag in '' yes
6910do
6911  # Use a header file that comes with gcc, so configuring glibc
6912  # with a fresh cross-compiler works.
6913  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6914  # <limits.h> exists even on freestanding compilers.
6915  # On the NeXT, cc -E runs the code through the compiler's parser,
6916  # not just through cpp. "Syntax error" is here to catch this case.
6917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919#ifdef __STDC__
6920# include <limits.h>
6921#else
6922# include <assert.h>
6923#endif
6924		     Syntax error
6925_ACEOF
6926if ac_fn_c_try_cpp "$LINENO"; then :
6927
6928else
6929  # Broken: fails on valid input.
6930continue
6931fi
6932rm -f conftest.err conftest.i conftest.$ac_ext
6933
6934  # OK, works on sane cases.  Now check whether nonexistent headers
6935  # can be detected and how.
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938#include <ac_nonexistent.h>
6939_ACEOF
6940if ac_fn_c_try_cpp "$LINENO"; then :
6941  # Broken: success on invalid input.
6942continue
6943else
6944  # Passes both tests.
6945ac_preproc_ok=:
6946break
6947fi
6948rm -f conftest.err conftest.i conftest.$ac_ext
6949
6950done
6951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6952rm -f conftest.i conftest.err conftest.$ac_ext
6953if $ac_preproc_ok; then :
6954  break
6955fi
6956
6957    done
6958    ac_cv_prog_CPP=$CPP
6959
6960fi
6961  CPP=$ac_cv_prog_CPP
6962else
6963  ac_cv_prog_CPP=$CPP
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6966$as_echo "$CPP" >&6; }
6967ac_preproc_ok=false
6968for ac_c_preproc_warn_flag in '' yes
6969do
6970  # Use a header file that comes with gcc, so configuring glibc
6971  # with a fresh cross-compiler works.
6972  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973  # <limits.h> exists even on freestanding compilers.
6974  # On the NeXT, cc -E runs the code through the compiler's parser,
6975  # not just through cpp. "Syntax error" is here to catch this case.
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978#ifdef __STDC__
6979# include <limits.h>
6980#else
6981# include <assert.h>
6982#endif
6983		     Syntax error
6984_ACEOF
6985if ac_fn_c_try_cpp "$LINENO"; then :
6986
6987else
6988  # Broken: fails on valid input.
6989continue
6990fi
6991rm -f conftest.err conftest.i conftest.$ac_ext
6992
6993  # OK, works on sane cases.  Now check whether nonexistent headers
6994  # can be detected and how.
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997#include <ac_nonexistent.h>
6998_ACEOF
6999if ac_fn_c_try_cpp "$LINENO"; then :
7000  # Broken: success on invalid input.
7001continue
7002else
7003  # Passes both tests.
7004ac_preproc_ok=:
7005break
7006fi
7007rm -f conftest.err conftest.i conftest.$ac_ext
7008
7009done
7010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7011rm -f conftest.i conftest.err conftest.$ac_ext
7012if $ac_preproc_ok; then :
7013
7014else
7015  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7017as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7018See \`config.log' for more details" "$LINENO" 5; }
7019fi
7020
7021ac_ext=c
7022ac_cpp='$CPP $CPPFLAGS'
7023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025ac_compiler_gnu=$ac_cv_c_compiler_gnu
7026
7027ac_ext=cpp
7028ac_cpp='$CXXCPP $CPPFLAGS'
7029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7032if test -z "$CXX"; then
7033  if test -n "$CCC"; then
7034    CXX=$CCC
7035  else
7036    if test -n "$ac_tool_prefix"; then
7037  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7038  do
7039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042$as_echo_n "checking for $ac_word... " >&6; }
7043if ${ac_cv_prog_CXX+:} false; then :
7044  $as_echo_n "(cached) " >&6
7045else
7046  if test -n "$CXX"; then
7047  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7048else
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052  IFS=$as_save_IFS
7053  test -z "$as_dir" && as_dir=.
7054    for ac_exec_ext in '' $ac_executable_extensions; do
7055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058    break 2
7059  fi
7060done
7061  done
7062IFS=$as_save_IFS
7063
7064fi
7065fi
7066CXX=$ac_cv_prog_CXX
7067if test -n "$CXX"; then
7068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7069$as_echo "$CXX" >&6; }
7070else
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072$as_echo "no" >&6; }
7073fi
7074
7075
7076    test -n "$CXX" && break
7077  done
7078fi
7079if test -z "$CXX"; then
7080  ac_ct_CXX=$CXX
7081  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7082do
7083  # Extract the first word of "$ac_prog", so it can be a program name with args.
7084set dummy $ac_prog; ac_word=$2
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086$as_echo_n "checking for $ac_word... " >&6; }
7087if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7088  $as_echo_n "(cached) " >&6
7089else
7090  if test -n "$ac_ct_CXX"; then
7091  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096  IFS=$as_save_IFS
7097  test -z "$as_dir" && as_dir=.
7098    for ac_exec_ext in '' $ac_executable_extensions; do
7099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100    ac_cv_prog_ac_ct_CXX="$ac_prog"
7101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105  done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7111if test -n "$ac_ct_CXX"; then
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7113$as_echo "$ac_ct_CXX" >&6; }
7114else
7115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }
7117fi
7118
7119
7120  test -n "$ac_ct_CXX" && break
7121done
7122
7123  if test "x$ac_ct_CXX" = x; then
7124    CXX="g++"
7125  else
7126    case $cross_compiling:$ac_tool_warned in
7127yes:)
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130ac_tool_warned=yes ;;
7131esac
7132    CXX=$ac_ct_CXX
7133  fi
7134fi
7135
7136  fi
7137fi
7138# Provide some information about the compiler.
7139$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7140set X $ac_compile
7141ac_compiler=$2
7142for ac_option in --version -v -V -qversion; do
7143  { { ac_try="$ac_compiler $ac_option >&5"
7144case "(($ac_try" in
7145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146  *) ac_try_echo=$ac_try;;
7147esac
7148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7149$as_echo "$ac_try_echo"; } >&5
7150  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7151  ac_status=$?
7152  if test -s conftest.err; then
7153    sed '10a\
7154... rest of stderr output deleted ...
7155         10q' conftest.err >conftest.er1
7156    cat conftest.er1 >&5
7157  fi
7158  rm -f conftest.er1 conftest.err
7159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160  test $ac_status = 0; }
7161done
7162
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7164$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7165if ${ac_cv_cxx_compiler_gnu+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170
7171int
7172main ()
7173{
7174#ifndef __GNUC__
7175       choke me
7176#endif
7177
7178  ;
7179  return 0;
7180}
7181_ACEOF
7182if ac_fn_cxx_try_compile "$LINENO"; then :
7183  ac_compiler_gnu=yes
7184else
7185  ac_compiler_gnu=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7189
7190fi
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7192$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7193if test $ac_compiler_gnu = yes; then
7194  GXX=yes
7195else
7196  GXX=
7197fi
7198ac_test_CXXFLAGS=${CXXFLAGS+set}
7199ac_save_CXXFLAGS=$CXXFLAGS
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7201$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7202if ${ac_cv_prog_cxx_g+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7206   ac_cxx_werror_flag=yes
7207   ac_cv_prog_cxx_g=no
7208   CXXFLAGS="-g"
7209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211
7212int
7213main ()
7214{
7215
7216  ;
7217  return 0;
7218}
7219_ACEOF
7220if ac_fn_cxx_try_compile "$LINENO"; then :
7221  ac_cv_prog_cxx_g=yes
7222else
7223  CXXFLAGS=""
7224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226
7227int
7228main ()
7229{
7230
7231  ;
7232  return 0;
7233}
7234_ACEOF
7235if ac_fn_cxx_try_compile "$LINENO"; then :
7236
7237else
7238  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7239	 CXXFLAGS="-g"
7240	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241/* end confdefs.h.  */
7242
7243int
7244main ()
7245{
7246
7247  ;
7248  return 0;
7249}
7250_ACEOF
7251if ac_fn_cxx_try_compile "$LINENO"; then :
7252  ac_cv_prog_cxx_g=yes
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7262$as_echo "$ac_cv_prog_cxx_g" >&6; }
7263if test "$ac_test_CXXFLAGS" = set; then
7264  CXXFLAGS=$ac_save_CXXFLAGS
7265elif test $ac_cv_prog_cxx_g = yes; then
7266  if test "$GXX" = yes; then
7267    CXXFLAGS="-g -O2"
7268  else
7269    CXXFLAGS="-g"
7270  fi
7271else
7272  if test "$GXX" = yes; then
7273    CXXFLAGS="-O2"
7274  else
7275    CXXFLAGS=
7276  fi
7277fi
7278ac_ext=c
7279ac_cpp='$CPP $CPPFLAGS'
7280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283
7284depcc="$CXX"  am_compiler_list=
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7287$as_echo_n "checking dependency style of $depcc... " >&6; }
7288if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7292  # We make a subdir and do the tests there.  Otherwise we can end up
7293  # making bogus files that we don't know about and never remove.  For
7294  # instance it was reported that on HP-UX the gcc test will end up
7295  # making a dummy file named `D' -- because `-MD' means `put the output
7296  # in D'.
7297  mkdir conftest.dir
7298  # Copy depcomp to subdir because otherwise we won't find it if we're
7299  # using a relative directory.
7300  cp "$am_depcomp" conftest.dir
7301  cd conftest.dir
7302  # We will build objects and dependencies in a subdirectory because
7303  # it helps to detect inapplicable dependency modes.  For instance
7304  # both Tru64's cc and ICC support -MD to output dependencies as a
7305  # side effect of compilation, but ICC will put the dependencies in
7306  # the current directory while Tru64 will put them in the object
7307  # directory.
7308  mkdir sub
7309
7310  am_cv_CXX_dependencies_compiler_type=none
7311  if test "$am_compiler_list" = ""; then
7312     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7313  fi
7314  am__universal=false
7315  case " $depcc " in #(
7316     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7317     esac
7318
7319  for depmode in $am_compiler_list; do
7320    # Setup a source with many dependencies, because some compilers
7321    # like to wrap large dependency lists on column 80 (with \), and
7322    # we should not choose a depcomp mode which is confused by this.
7323    #
7324    # We need to recreate these files for each test, as the compiler may
7325    # overwrite some of them when testing with obscure command lines.
7326    # This happens at least with the AIX C compiler.
7327    : > sub/conftest.c
7328    for i in 1 2 3 4 5 6; do
7329      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7330      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7331      # Solaris 8's {/usr,}/bin/sh.
7332      touch sub/conftst$i.h
7333    done
7334    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7335
7336    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7337    # mode.  It turns out that the SunPro C++ compiler does not properly
7338    # handle `-M -o', and we need to detect this.  Also, some Intel
7339    # versions had trouble with output in subdirs
7340    am__obj=sub/conftest.${OBJEXT-o}
7341    am__minus_obj="-o $am__obj"
7342    case $depmode in
7343    gcc)
7344      # This depmode causes a compiler race in universal mode.
7345      test "$am__universal" = false || continue
7346      ;;
7347    nosideeffect)
7348      # after this tag, mechanisms are not by side-effect, so they'll
7349      # only be used when explicitly requested
7350      if test "x$enable_dependency_tracking" = xyes; then
7351	continue
7352      else
7353	break
7354      fi
7355      ;;
7356    msvisualcpp | msvcmsys)
7357      # This compiler won't grok `-c -o', but also, the minuso test has
7358      # not run yet.  These depmodes are late enough in the game, and
7359      # so weak that their functioning should not be impacted.
7360      am__obj=conftest.${OBJEXT-o}
7361      am__minus_obj=
7362      ;;
7363    none) break ;;
7364    esac
7365    if depmode=$depmode \
7366       source=sub/conftest.c object=$am__obj \
7367       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7368       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7369         >/dev/null 2>conftest.err &&
7370       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7371       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7372       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7373       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7374      # icc doesn't choke on unknown options, it will just issue warnings
7375      # or remarks (even with -Werror).  So we grep stderr for any message
7376      # that says an option was ignored or not supported.
7377      # When given -MP, icc 7.0 and 7.1 complain thusly:
7378      #   icc: Command line warning: ignoring option '-M'; no argument required
7379      # The diagnosis changed in icc 8.0:
7380      #   icc: Command line remark: option '-MP' not supported
7381      if (grep 'ignoring option' conftest.err ||
7382          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7383        am_cv_CXX_dependencies_compiler_type=$depmode
7384        break
7385      fi
7386    fi
7387  done
7388
7389  cd ..
7390  rm -rf conftest.dir
7391else
7392  am_cv_CXX_dependencies_compiler_type=none
7393fi
7394
7395fi
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7397$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7398CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7399
7400 if
7401  test "x$enable_dependency_tracking" != xno \
7402  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7403  am__fastdepCXX_TRUE=
7404  am__fastdepCXX_FALSE='#'
7405else
7406  am__fastdepCXX_TRUE='#'
7407  am__fastdepCXX_FALSE=
7408fi
7409
7410
7411for ac_prog in 'bison -y' byacc
7412do
7413  # Extract the first word of "$ac_prog", so it can be a program name with args.
7414set dummy $ac_prog; ac_word=$2
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416$as_echo_n "checking for $ac_word... " >&6; }
7417if ${ac_cv_prog_YACC+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  if test -n "$YACC"; then
7421  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7422else
7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426  IFS=$as_save_IFS
7427  test -z "$as_dir" && as_dir=.
7428    for ac_exec_ext in '' $ac_executable_extensions; do
7429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430    ac_cv_prog_YACC="$ac_prog"
7431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432    break 2
7433  fi
7434done
7435  done
7436IFS=$as_save_IFS
7437
7438fi
7439fi
7440YACC=$ac_cv_prog_YACC
7441if test -n "$YACC"; then
7442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7443$as_echo "$YACC" >&6; }
7444else
7445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446$as_echo "no" >&6; }
7447fi
7448
7449
7450  test -n "$YACC" && break
7451done
7452test -n "$YACC" || YACC="yacc"
7453
7454if test "x$CC" != xcc; then
7455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7456$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7457else
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7459$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7460fi
7461set dummy $CC; ac_cc=`$as_echo "$2" |
7462		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7463if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7464  $as_echo_n "(cached) " >&6
7465else
7466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h.  */
7468
7469int
7470main ()
7471{
7472
7473  ;
7474  return 0;
7475}
7476_ACEOF
7477# Make sure it works both with $CC and with simple cc.
7478# We do the test twice because some compilers refuse to overwrite an
7479# existing .o file with -o, though they will create one.
7480ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7481rm -f conftest2.*
7482if { { case "(($ac_try" in
7483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484  *) ac_try_echo=$ac_try;;
7485esac
7486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7487$as_echo "$ac_try_echo"; } >&5
7488  (eval "$ac_try") 2>&5
7489  ac_status=$?
7490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7491  test $ac_status = 0; } &&
7492   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494  *) ac_try_echo=$ac_try;;
7495esac
7496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7497$as_echo "$ac_try_echo"; } >&5
7498  (eval "$ac_try") 2>&5
7499  ac_status=$?
7500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501  test $ac_status = 0; };
7502then
7503  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7504  if test "x$CC" != xcc; then
7505    # Test first that cc exists at all.
7506    if { ac_try='cc -c conftest.$ac_ext >&5'
7507  { { case "(($ac_try" in
7508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509  *) ac_try_echo=$ac_try;;
7510esac
7511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7512$as_echo "$ac_try_echo"; } >&5
7513  (eval "$ac_try") 2>&5
7514  ac_status=$?
7515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516  test $ac_status = 0; }; }; then
7517      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7518      rm -f conftest2.*
7519      if { { case "(($ac_try" in
7520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521  *) ac_try_echo=$ac_try;;
7522esac
7523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524$as_echo "$ac_try_echo"; } >&5
7525  (eval "$ac_try") 2>&5
7526  ac_status=$?
7527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528  test $ac_status = 0; } &&
7529	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531  *) ac_try_echo=$ac_try;;
7532esac
7533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7534$as_echo "$ac_try_echo"; } >&5
7535  (eval "$ac_try") 2>&5
7536  ac_status=$?
7537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538  test $ac_status = 0; };
7539      then
7540	# cc works too.
7541	:
7542      else
7543	# cc exists but doesn't like -o.
7544	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7545      fi
7546    fi
7547  fi
7548else
7549  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7550fi
7551rm -f core conftest*
7552
7553fi
7554if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7556$as_echo "yes" >&6; }
7557else
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560
7561$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7562
7563fi
7564
7565
7566
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
7568$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
7569ntp_vpath_hack="no"
7570case "$srcdir::${force_ntp_vpath_hack-no}" in
7571 .::*)
7572    ;; # VPATH_HACK path is for VPATH builds only.
7573 *::yes)
7574    ntp_vpath_hack="yes"
7575    ;;
7576 *::*)
7577    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
7578     '')
7579	ntp_vpath_hack="yes"
7580    esac
7581esac
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
7583$as_echo "$ntp_vpath_hack" >&6; }
7584 if test x$ntp_vpath_hack = xyes; then
7585  VPATH_HACK_TRUE=
7586  VPATH_HACK_FALSE='#'
7587else
7588  VPATH_HACK_TRUE='#'
7589  VPATH_HACK_FALSE=
7590fi
7591
7592
7593
7594
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
7596$as_echo_n "checking for install dir and man conventions... " >&6; }
7597
7598
7599# Check whether --with-locfile was given.
7600if test "${with_locfile+set}" = set; then :
7601  withval=$with_locfile;
7602else
7603  with_locfile=no
7604
7605fi
7606
7607
7608(									\
7609    SENTINEL_DIR="$PWD" &&						\
7610    cd $srcdir/sntp &&							\
7611    case "$with_locfile" in						\
7612     yes|no|'')								\
7613	scripts/genLocInfo -d "$SENTINEL_DIR"				\
7614	;;								\
7615     *)									\
7616	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
7617	;;								\
7618    esac								\
7619) > genLocInfo.i 2> genLocInfo.err
7620. ./genLocInfo.i
7621
7622case "$GENLOCINFO" in
7623 OK)
7624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
7625$as_echo "in file $GENLOCINFOFILE" >&6; }
7626    rm genLocInfo.err genLocInfo.i
7627    ;;
7628 *)
7629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
7630$as_echo "failed." >&6; }
7631    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
7632    ;;
7633esac
7634
7635 if test "$CALC_TICKADJ_MS" ; then
7636  WANT_CALC_TICKADJ_MS_TRUE=
7637  WANT_CALC_TICKADJ_MS_FALSE='#'
7638else
7639  WANT_CALC_TICKADJ_MS_TRUE='#'
7640  WANT_CALC_TICKADJ_MS_FALSE=
7641fi
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705# So far, the only shared library we might use is libopts.
7706# It's a small library - we might as well use a static version of it.
7707# Check whether --enable-shared was given.
7708if test "${enable_shared+set}" = set; then :
7709  enableval=$enable_shared; p=${PACKAGE-default}
7710    case $enableval in
7711    yes) enable_shared=yes ;;
7712    no) enable_shared=no ;;
7713    *)
7714      enable_shared=no
7715      # Look at the argument we got.  We use all the common list separators.
7716      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7717      for pkg in $enableval; do
7718	IFS="$lt_save_ifs"
7719	if test "X$pkg" = "X$p"; then
7720	  enable_shared=yes
7721	fi
7722      done
7723      IFS="$lt_save_ifs"
7724      ;;
7725    esac
7726else
7727  enable_shared=no
7728fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738case `pwd` in
7739  *\ * | *\	*)
7740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7741$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7742esac
7743
7744
7745
7746macro_version='2.4'
7747macro_revision='1.3293'
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761ltmain="$ac_aux_dir/ltmain.sh"
7762
7763# Backslashify metacharacters that are still active within
7764# double-quoted strings.
7765sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7766
7767# Same as above, but do not quote variable references.
7768double_quote_subst='s/\(["`\\]\)/\\\1/g'
7769
7770# Sed substitution to delay expansion of an escaped shell variable in a
7771# double_quote_subst'ed string.
7772delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7773
7774# Sed substitution to delay expansion of an escaped single quote.
7775delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7776
7777# Sed substitution to avoid accidental globbing in evaled expressions
7778no_glob_subst='s/\*/\\\*/g'
7779
7780ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7781ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7782ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7783
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7785$as_echo_n "checking how to print strings... " >&6; }
7786# Test print first, because it will be a builtin if present.
7787if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7788   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7789  ECHO='print -r --'
7790elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7791  ECHO='printf %s\n'
7792else
7793  # Use this function as a fallback that always works.
7794  func_fallback_echo ()
7795  {
7796    eval 'cat <<_LTECHO_EOF
7797$1
7798_LTECHO_EOF'
7799  }
7800  ECHO='func_fallback_echo'
7801fi
7802
7803# func_echo_all arg...
7804# Invoke $ECHO with all args, space-separated.
7805func_echo_all ()
7806{
7807    $ECHO ""
7808}
7809
7810case "$ECHO" in
7811  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7812$as_echo "printf" >&6; } ;;
7813  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7814$as_echo "print -r" >&6; } ;;
7815  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7816$as_echo "cat" >&6; } ;;
7817esac
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7833$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7834if ${ac_cv_path_SED+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7838     for ac_i in 1 2 3 4 5 6 7; do
7839       ac_script="$ac_script$as_nl$ac_script"
7840     done
7841     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7842     { ac_script=; unset ac_script;}
7843     if test -z "$SED"; then
7844  ac_path_SED_found=false
7845  # Loop through the user's path and test for each of PROGNAME-LIST
7846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849  IFS=$as_save_IFS
7850  test -z "$as_dir" && as_dir=.
7851    for ac_prog in sed gsed; do
7852    for ac_exec_ext in '' $ac_executable_extensions; do
7853      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7854      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7855# Check for GNU ac_path_SED and select it if it is found.
7856  # Check for GNU $ac_path_SED
7857case `"$ac_path_SED" --version 2>&1` in
7858*GNU*)
7859  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7860*)
7861  ac_count=0
7862  $as_echo_n 0123456789 >"conftest.in"
7863  while :
7864  do
7865    cat "conftest.in" "conftest.in" >"conftest.tmp"
7866    mv "conftest.tmp" "conftest.in"
7867    cp "conftest.in" "conftest.nl"
7868    $as_echo '' >> "conftest.nl"
7869    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7870    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7871    as_fn_arith $ac_count + 1 && ac_count=$as_val
7872    if test $ac_count -gt ${ac_path_SED_max-0}; then
7873      # Best one so far, save it but keep looking for a better one
7874      ac_cv_path_SED="$ac_path_SED"
7875      ac_path_SED_max=$ac_count
7876    fi
7877    # 10*(2^10) chars as input seems more than enough
7878    test $ac_count -gt 10 && break
7879  done
7880  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7881esac
7882
7883      $ac_path_SED_found && break 3
7884    done
7885  done
7886  done
7887IFS=$as_save_IFS
7888  if test -z "$ac_cv_path_SED"; then
7889    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7890  fi
7891else
7892  ac_cv_path_SED=$SED
7893fi
7894
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7897$as_echo "$ac_cv_path_SED" >&6; }
7898 SED="$ac_cv_path_SED"
7899  rm -f conftest.sed
7900
7901test -z "$SED" && SED=sed
7902Xsed="$SED -e 1s/^X//"
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7915$as_echo_n "checking for fgrep... " >&6; }
7916if ${ac_cv_path_FGREP+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7920   then ac_cv_path_FGREP="$GREP -F"
7921   else
7922     if test -z "$FGREP"; then
7923  ac_path_FGREP_found=false
7924  # Loop through the user's path and test for each of PROGNAME-LIST
7925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7927do
7928  IFS=$as_save_IFS
7929  test -z "$as_dir" && as_dir=.
7930    for ac_prog in fgrep; do
7931    for ac_exec_ext in '' $ac_executable_extensions; do
7932      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7933      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7934# Check for GNU ac_path_FGREP and select it if it is found.
7935  # Check for GNU $ac_path_FGREP
7936case `"$ac_path_FGREP" --version 2>&1` in
7937*GNU*)
7938  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7939*)
7940  ac_count=0
7941  $as_echo_n 0123456789 >"conftest.in"
7942  while :
7943  do
7944    cat "conftest.in" "conftest.in" >"conftest.tmp"
7945    mv "conftest.tmp" "conftest.in"
7946    cp "conftest.in" "conftest.nl"
7947    $as_echo 'FGREP' >> "conftest.nl"
7948    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7949    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7950    as_fn_arith $ac_count + 1 && ac_count=$as_val
7951    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7952      # Best one so far, save it but keep looking for a better one
7953      ac_cv_path_FGREP="$ac_path_FGREP"
7954      ac_path_FGREP_max=$ac_count
7955    fi
7956    # 10*(2^10) chars as input seems more than enough
7957    test $ac_count -gt 10 && break
7958  done
7959  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7960esac
7961
7962      $ac_path_FGREP_found && break 3
7963    done
7964  done
7965  done
7966IFS=$as_save_IFS
7967  if test -z "$ac_cv_path_FGREP"; then
7968    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7969  fi
7970else
7971  ac_cv_path_FGREP=$FGREP
7972fi
7973
7974   fi
7975fi
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7977$as_echo "$ac_cv_path_FGREP" >&6; }
7978 FGREP="$ac_cv_path_FGREP"
7979
7980
7981test -z "$GREP" && GREP=grep
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001# Check whether --with-gnu-ld was given.
8002if test "${with_gnu_ld+set}" = set; then :
8003  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8004else
8005  with_gnu_ld=no
8006fi
8007
8008ac_prog=ld
8009if test "$GCC" = yes; then
8010  # Check if gcc -print-prog-name=ld gives a path.
8011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8012$as_echo_n "checking for ld used by $CC... " >&6; }
8013  case $host in
8014  *-*-mingw*)
8015    # gcc leaves a trailing carriage return which upsets mingw
8016    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8017  *)
8018    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8019  esac
8020  case $ac_prog in
8021    # Accept absolute paths.
8022    [\\/]* | ?:[\\/]*)
8023      re_direlt='/[^/][^/]*/\.\./'
8024      # Canonicalize the pathname of ld
8025      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8026      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8027	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8028      done
8029      test -z "$LD" && LD="$ac_prog"
8030      ;;
8031  "")
8032    # If it fails, then pretend we aren't using GCC.
8033    ac_prog=ld
8034    ;;
8035  *)
8036    # If it is relative, then search for the first ld in PATH.
8037    with_gnu_ld=unknown
8038    ;;
8039  esac
8040elif test "$with_gnu_ld" = yes; then
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8042$as_echo_n "checking for GNU ld... " >&6; }
8043else
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8045$as_echo_n "checking for non-GNU ld... " >&6; }
8046fi
8047if ${lt_cv_path_LD+:} false; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  if test -z "$LD"; then
8051  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8052  for ac_dir in $PATH; do
8053    IFS="$lt_save_ifs"
8054    test -z "$ac_dir" && ac_dir=.
8055    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8056      lt_cv_path_LD="$ac_dir/$ac_prog"
8057      # Check to see if the program is GNU ld.  I'd rather use --version,
8058      # but apparently some variants of GNU ld only accept -v.
8059      # Break only if it was the GNU/non-GNU ld that we prefer.
8060      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8061      *GNU* | *'with BFD'*)
8062	test "$with_gnu_ld" != no && break
8063	;;
8064      *)
8065	test "$with_gnu_ld" != yes && break
8066	;;
8067      esac
8068    fi
8069  done
8070  IFS="$lt_save_ifs"
8071else
8072  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8073fi
8074fi
8075
8076LD="$lt_cv_path_LD"
8077if test -n "$LD"; then
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8079$as_echo "$LD" >&6; }
8080else
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
8084test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8086$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8087if ${lt_cv_prog_gnu_ld+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8091case `$LD -v 2>&1 </dev/null` in
8092*GNU* | *'with BFD'*)
8093  lt_cv_prog_gnu_ld=yes
8094  ;;
8095*)
8096  lt_cv_prog_gnu_ld=no
8097  ;;
8098esac
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8101$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8102with_gnu_ld=$lt_cv_prog_gnu_ld
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8113$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8114if ${lt_cv_path_NM+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  if test -n "$NM"; then
8118  # Let the user override the test.
8119  lt_cv_path_NM="$NM"
8120else
8121  lt_nm_to_check="${ac_tool_prefix}nm"
8122  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8123    lt_nm_to_check="$lt_nm_to_check nm"
8124  fi
8125  for lt_tmp_nm in $lt_nm_to_check; do
8126    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8127    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8128      IFS="$lt_save_ifs"
8129      test -z "$ac_dir" && ac_dir=.
8130      tmp_nm="$ac_dir/$lt_tmp_nm"
8131      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8132	# Check to see if the nm accepts a BSD-compat flag.
8133	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8134	#   nm: unknown option "B" ignored
8135	# Tru64's nm complains that /dev/null is an invalid object file
8136	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8137	*/dev/null* | *'Invalid file or object type'*)
8138	  lt_cv_path_NM="$tmp_nm -B"
8139	  break
8140	  ;;
8141	*)
8142	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8143	  */dev/null*)
8144	    lt_cv_path_NM="$tmp_nm -p"
8145	    break
8146	    ;;
8147	  *)
8148	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8149	    continue # so that we can try to find one that supports BSD flags
8150	    ;;
8151	  esac
8152	  ;;
8153	esac
8154      fi
8155    done
8156    IFS="$lt_save_ifs"
8157  done
8158  : ${lt_cv_path_NM=no}
8159fi
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8162$as_echo "$lt_cv_path_NM" >&6; }
8163if test "$lt_cv_path_NM" != "no"; then
8164  NM="$lt_cv_path_NM"
8165else
8166  # Didn't find any BSD compatible name lister, look for dumpbin.
8167  if test -n "$DUMPBIN"; then :
8168    # Let the user override the test.
8169  else
8170    if test -n "$ac_tool_prefix"; then
8171  for ac_prog in dumpbin "link -dump"
8172  do
8173    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if ${ac_cv_prog_DUMPBIN+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  if test -n "$DUMPBIN"; then
8181  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186  IFS=$as_save_IFS
8187  test -z "$as_dir" && as_dir=.
8188    for ac_exec_ext in '' $ac_executable_extensions; do
8189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192    break 2
8193  fi
8194done
8195  done
8196IFS=$as_save_IFS
8197
8198fi
8199fi
8200DUMPBIN=$ac_cv_prog_DUMPBIN
8201if test -n "$DUMPBIN"; then
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8203$as_echo "$DUMPBIN" >&6; }
8204else
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
8208
8209
8210    test -n "$DUMPBIN" && break
8211  done
8212fi
8213if test -z "$DUMPBIN"; then
8214  ac_ct_DUMPBIN=$DUMPBIN
8215  for ac_prog in dumpbin "link -dump"
8216do
8217  # Extract the first word of "$ac_prog", so it can be a program name with args.
8218set dummy $ac_prog; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  if test -n "$ac_ct_DUMPBIN"; then
8225  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230  IFS=$as_save_IFS
8231  test -z "$as_dir" && as_dir=.
8232    for ac_exec_ext in '' $ac_executable_extensions; do
8233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236    break 2
8237  fi
8238done
8239  done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8245if test -n "$ac_ct_DUMPBIN"; then
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8247$as_echo "$ac_ct_DUMPBIN" >&6; }
8248else
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253
8254  test -n "$ac_ct_DUMPBIN" && break
8255done
8256
8257  if test "x$ac_ct_DUMPBIN" = x; then
8258    DUMPBIN=":"
8259  else
8260    case $cross_compiling:$ac_tool_warned in
8261yes:)
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8264ac_tool_warned=yes ;;
8265esac
8266    DUMPBIN=$ac_ct_DUMPBIN
8267  fi
8268fi
8269
8270    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8271    *COFF*)
8272      DUMPBIN="$DUMPBIN -symbols"
8273      ;;
8274    *)
8275      DUMPBIN=:
8276      ;;
8277    esac
8278  fi
8279
8280  if test "$DUMPBIN" != ":"; then
8281    NM="$DUMPBIN"
8282  fi
8283fi
8284test -z "$NM" && NM=nm
8285
8286
8287
8288
8289
8290
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8292$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8293if ${lt_cv_nm_interface+:} false; then :
8294  $as_echo_n "(cached) " >&6
8295else
8296  lt_cv_nm_interface="BSD nm"
8297  echo "int some_variable = 0;" > conftest.$ac_ext
8298  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8299  (eval "$ac_compile" 2>conftest.err)
8300  cat conftest.err >&5
8301  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8302  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8303  cat conftest.err >&5
8304  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8305  cat conftest.out >&5
8306  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8307    lt_cv_nm_interface="MS dumpbin"
8308  fi
8309  rm -f conftest*
8310fi
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8312$as_echo "$lt_cv_nm_interface" >&6; }
8313
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8315$as_echo_n "checking whether ln -s works... " >&6; }
8316LN_S=$as_ln_s
8317if test "$LN_S" = "ln -s"; then
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8319$as_echo "yes" >&6; }
8320else
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8322$as_echo "no, using $LN_S" >&6; }
8323fi
8324
8325# find the maximum length of command line arguments
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8327$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8328if ${lt_cv_sys_max_cmd_len+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331    i=0
8332  teststring="ABCD"
8333
8334  case $build_os in
8335  msdosdjgpp*)
8336    # On DJGPP, this test can blow up pretty badly due to problems in libc
8337    # (any single argument exceeding 2000 bytes causes a buffer overrun
8338    # during glob expansion).  Even if it were fixed, the result of this
8339    # check would be larger than it should be.
8340    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8341    ;;
8342
8343  gnu*)
8344    # Under GNU Hurd, this test is not required because there is
8345    # no limit to the length of command line arguments.
8346    # Libtool will interpret -1 as no limit whatsoever
8347    lt_cv_sys_max_cmd_len=-1;
8348    ;;
8349
8350  cygwin* | mingw* | cegcc*)
8351    # On Win9x/ME, this test blows up -- it succeeds, but takes
8352    # about 5 minutes as the teststring grows exponentially.
8353    # Worse, since 9x/ME are not pre-emptively multitasking,
8354    # you end up with a "frozen" computer, even though with patience
8355    # the test eventually succeeds (with a max line length of 256k).
8356    # Instead, let's just punt: use the minimum linelength reported by
8357    # all of the supported platforms: 8192 (on NT/2K/XP).
8358    lt_cv_sys_max_cmd_len=8192;
8359    ;;
8360
8361  mint*)
8362    # On MiNT this can take a long time and run out of memory.
8363    lt_cv_sys_max_cmd_len=8192;
8364    ;;
8365
8366  amigaos*)
8367    # On AmigaOS with pdksh, this test takes hours, literally.
8368    # So we just punt and use a minimum line length of 8192.
8369    lt_cv_sys_max_cmd_len=8192;
8370    ;;
8371
8372  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8373    # This has been around since 386BSD, at least.  Likely further.
8374    if test -x /sbin/sysctl; then
8375      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8376    elif test -x /usr/sbin/sysctl; then
8377      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8378    else
8379      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8380    fi
8381    # And add a safety zone
8382    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8383    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8384    ;;
8385
8386  interix*)
8387    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8388    lt_cv_sys_max_cmd_len=196608
8389    ;;
8390
8391  osf*)
8392    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8393    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8394    # nice to cause kernel panics so lets avoid the loop below.
8395    # First set a reasonable default.
8396    lt_cv_sys_max_cmd_len=16384
8397    #
8398    if test -x /sbin/sysconfig; then
8399      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8400        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8401      esac
8402    fi
8403    ;;
8404  sco3.2v5*)
8405    lt_cv_sys_max_cmd_len=102400
8406    ;;
8407  sysv5* | sco5v6* | sysv4.2uw2*)
8408    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8409    if test -n "$kargmax"; then
8410      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8411    else
8412      lt_cv_sys_max_cmd_len=32768
8413    fi
8414    ;;
8415  *)
8416    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8417    if test -n "$lt_cv_sys_max_cmd_len"; then
8418      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8419      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8420    else
8421      # Make teststring a little bigger before we do anything with it.
8422      # a 1K string should be a reasonable start.
8423      for i in 1 2 3 4 5 6 7 8 ; do
8424        teststring=$teststring$teststring
8425      done
8426      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8427      # If test is not a shell built-in, we'll probably end up computing a
8428      # maximum length that is only half of the actual maximum length, but
8429      # we can't tell.
8430      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8431	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8432	      test $i != 17 # 1/2 MB should be enough
8433      do
8434        i=`expr $i + 1`
8435        teststring=$teststring$teststring
8436      done
8437      # Only check the string length outside the loop.
8438      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8439      teststring=
8440      # Add a significant safety factor because C++ compilers can tack on
8441      # massive amounts of additional arguments before passing them to the
8442      # linker.  It appears as though 1/2 is a usable value.
8443      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8444    fi
8445    ;;
8446  esac
8447
8448fi
8449
8450if test -n $lt_cv_sys_max_cmd_len ; then
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8452$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8453else
8454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8455$as_echo "none" >&6; }
8456fi
8457max_cmd_len=$lt_cv_sys_max_cmd_len
8458
8459
8460
8461
8462
8463
8464: ${CP="cp -f"}
8465: ${MV="mv -f"}
8466: ${RM="rm -f"}
8467
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8469$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8470# Try some XSI features
8471xsi_shell=no
8472( _lt_dummy="a/b/c"
8473  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8474      = c,a/b,b/c, \
8475    && eval 'test $(( 1 + 1 )) -eq 2 \
8476    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8477  && xsi_shell=yes
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8479$as_echo "$xsi_shell" >&6; }
8480
8481
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8483$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8484lt_shell_append=no
8485( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8486    >/dev/null 2>&1 \
8487  && lt_shell_append=yes
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8489$as_echo "$lt_shell_append" >&6; }
8490
8491
8492if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8493  lt_unset=unset
8494else
8495  lt_unset=false
8496fi
8497
8498
8499
8500
8501
8502# test EBCDIC or ASCII
8503case `echo X|tr X '\101'` in
8504 A) # ASCII based system
8505    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8506  lt_SP2NL='tr \040 \012'
8507  lt_NL2SP='tr \015\012 \040\040'
8508  ;;
8509 *) # EBCDIC based system
8510  lt_SP2NL='tr \100 \n'
8511  lt_NL2SP='tr \r\n \100\100'
8512  ;;
8513esac
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8524$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8525if ${lt_cv_to_host_file_cmd+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528  case $host in
8529  *-*-mingw* )
8530    case $build in
8531      *-*-mingw* ) # actually msys
8532        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8533        ;;
8534      *-*-cygwin* )
8535        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8536        ;;
8537      * ) # otherwise, assume *nix
8538        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8539        ;;
8540    esac
8541    ;;
8542  *-*-cygwin* )
8543    case $build in
8544      *-*-mingw* ) # actually msys
8545        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8546        ;;
8547      *-*-cygwin* )
8548        lt_cv_to_host_file_cmd=func_convert_file_noop
8549        ;;
8550      * ) # otherwise, assume *nix
8551        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8552        ;;
8553    esac
8554    ;;
8555  * ) # unhandled hosts (and "normal" native builds)
8556    lt_cv_to_host_file_cmd=func_convert_file_noop
8557    ;;
8558esac
8559
8560fi
8561
8562to_host_file_cmd=$lt_cv_to_host_file_cmd
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8564$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8565
8566
8567
8568
8569
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8571$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8572if ${lt_cv_to_tool_file_cmd+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  #assume ordinary cross tools, or native build.
8576lt_cv_to_tool_file_cmd=func_convert_file_noop
8577case $host in
8578  *-*-mingw* )
8579    case $build in
8580      *-*-mingw* ) # actually msys
8581        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8582        ;;
8583    esac
8584    ;;
8585esac
8586
8587fi
8588
8589to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8591$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8592
8593
8594
8595
8596
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8598$as_echo_n "checking for $LD option to reload object files... " >&6; }
8599if ${lt_cv_ld_reload_flag+:} false; then :
8600  $as_echo_n "(cached) " >&6
8601else
8602  lt_cv_ld_reload_flag='-r'
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8605$as_echo "$lt_cv_ld_reload_flag" >&6; }
8606reload_flag=$lt_cv_ld_reload_flag
8607case $reload_flag in
8608"" | " "*) ;;
8609*) reload_flag=" $reload_flag" ;;
8610esac
8611reload_cmds='$LD$reload_flag -o $output$reload_objs'
8612case $host_os in
8613  cygwin* | mingw* | pw32* | cegcc*)
8614    if test "$GCC" != yes; then
8615      reload_cmds=false
8616    fi
8617    ;;
8618  darwin*)
8619    if test "$GCC" = yes; then
8620      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8621    else
8622      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8623    fi
8624    ;;
8625esac
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635if test -n "$ac_tool_prefix"; then
8636  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8637set dummy ${ac_tool_prefix}objdump; ac_word=$2
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if ${ac_cv_prog_OBJDUMP+:} false; then :
8641  $as_echo_n "(cached) " >&6
8642else
8643  if test -n "$OBJDUMP"; then
8644  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8645else
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649  IFS=$as_save_IFS
8650  test -z "$as_dir" && as_dir=.
8651    for ac_exec_ext in '' $ac_executable_extensions; do
8652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655    break 2
8656  fi
8657done
8658  done
8659IFS=$as_save_IFS
8660
8661fi
8662fi
8663OBJDUMP=$ac_cv_prog_OBJDUMP
8664if test -n "$OBJDUMP"; then
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8666$as_echo "$OBJDUMP" >&6; }
8667else
8668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669$as_echo "no" >&6; }
8670fi
8671
8672
8673fi
8674if test -z "$ac_cv_prog_OBJDUMP"; then
8675  ac_ct_OBJDUMP=$OBJDUMP
8676  # Extract the first word of "objdump", so it can be a program name with args.
8677set dummy objdump; ac_word=$2
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679$as_echo_n "checking for $ac_word... " >&6; }
8680if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  if test -n "$ac_ct_OBJDUMP"; then
8684  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8685else
8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689  IFS=$as_save_IFS
8690  test -z "$as_dir" && as_dir=.
8691    for ac_exec_ext in '' $ac_executable_extensions; do
8692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695    break 2
8696  fi
8697done
8698  done
8699IFS=$as_save_IFS
8700
8701fi
8702fi
8703ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8704if test -n "$ac_ct_OBJDUMP"; then
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8706$as_echo "$ac_ct_OBJDUMP" >&6; }
8707else
8708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709$as_echo "no" >&6; }
8710fi
8711
8712  if test "x$ac_ct_OBJDUMP" = x; then
8713    OBJDUMP="false"
8714  else
8715    case $cross_compiling:$ac_tool_warned in
8716yes:)
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8719ac_tool_warned=yes ;;
8720esac
8721    OBJDUMP=$ac_ct_OBJDUMP
8722  fi
8723else
8724  OBJDUMP="$ac_cv_prog_OBJDUMP"
8725fi
8726
8727test -z "$OBJDUMP" && OBJDUMP=objdump
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8738$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8739if ${lt_cv_deplibs_check_method+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  lt_cv_file_magic_cmd='$MAGIC_CMD'
8743lt_cv_file_magic_test_file=
8744lt_cv_deplibs_check_method='unknown'
8745# Need to set the preceding variable on all platforms that support
8746# interlibrary dependencies.
8747# 'none' -- dependencies not supported.
8748# `unknown' -- same as none, but documents that we really don't know.
8749# 'pass_all' -- all dependencies passed with no checks.
8750# 'test_compile' -- check by making test program.
8751# 'file_magic [[regex]]' -- check by looking for files in library path
8752# which responds to the $file_magic_cmd with a given extended regex.
8753# If you have `file' or equivalent on your system and you're not sure
8754# whether `pass_all' will *always* work, you probably want this one.
8755
8756case $host_os in
8757aix[4-9]*)
8758  lt_cv_deplibs_check_method=pass_all
8759  ;;
8760
8761beos*)
8762  lt_cv_deplibs_check_method=pass_all
8763  ;;
8764
8765bsdi[45]*)
8766  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8767  lt_cv_file_magic_cmd='/usr/bin/file -L'
8768  lt_cv_file_magic_test_file=/shlib/libc.so
8769  ;;
8770
8771cygwin*)
8772  # func_win32_libid is a shell function defined in ltmain.sh
8773  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8774  lt_cv_file_magic_cmd='func_win32_libid'
8775  ;;
8776
8777mingw* | pw32*)
8778  # Base MSYS/MinGW do not provide the 'file' command needed by
8779  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8780  # unless we find 'file', for example because we are cross-compiling.
8781  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8782  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8783    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8784    lt_cv_file_magic_cmd='func_win32_libid'
8785  else
8786    # Keep this pattern in sync with the one in func_win32_libid.
8787    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8788    lt_cv_file_magic_cmd='$OBJDUMP -f'
8789  fi
8790  ;;
8791
8792cegcc*)
8793  # use the weaker test based on 'objdump'. See mingw*.
8794  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8795  lt_cv_file_magic_cmd='$OBJDUMP -f'
8796  ;;
8797
8798darwin* | rhapsody*)
8799  lt_cv_deplibs_check_method=pass_all
8800  ;;
8801
8802freebsd* | dragonfly*)
8803  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8804    case $host_cpu in
8805    i*86 )
8806      # Not sure whether the presence of OpenBSD here was a mistake.
8807      # Let's accept both of them until this is cleared up.
8808      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8809      lt_cv_file_magic_cmd=/usr/bin/file
8810      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8811      ;;
8812    esac
8813  else
8814    lt_cv_deplibs_check_method=pass_all
8815  fi
8816  ;;
8817
8818gnu*)
8819  lt_cv_deplibs_check_method=pass_all
8820  ;;
8821
8822haiku*)
8823  lt_cv_deplibs_check_method=pass_all
8824  ;;
8825
8826hpux10.20* | hpux11*)
8827  lt_cv_file_magic_cmd=/usr/bin/file
8828  case $host_cpu in
8829  ia64*)
8830    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8831    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8832    ;;
8833  hppa*64*)
8834    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8835    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8836    ;;
8837  *)
8838    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8839    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8840    ;;
8841  esac
8842  ;;
8843
8844interix[3-9]*)
8845  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8846  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8847  ;;
8848
8849irix5* | irix6* | nonstopux*)
8850  case $LD in
8851  *-32|*"-32 ") libmagic=32-bit;;
8852  *-n32|*"-n32 ") libmagic=N32;;
8853  *-64|*"-64 ") libmagic=64-bit;;
8854  *) libmagic=never-match;;
8855  esac
8856  lt_cv_deplibs_check_method=pass_all
8857  ;;
8858
8859# This must be Linux ELF.
8860linux* | k*bsd*-gnu | kopensolaris*-gnu)
8861  lt_cv_deplibs_check_method=pass_all
8862  ;;
8863
8864netbsd*)
8865  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8866    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8867  else
8868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8869  fi
8870  ;;
8871
8872newos6*)
8873  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8874  lt_cv_file_magic_cmd=/usr/bin/file
8875  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8876  ;;
8877
8878*nto* | *qnx*)
8879  lt_cv_deplibs_check_method=pass_all
8880  ;;
8881
8882openbsd*)
8883  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8884    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8885  else
8886    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8887  fi
8888  ;;
8889
8890osf3* | osf4* | osf5*)
8891  lt_cv_deplibs_check_method=pass_all
8892  ;;
8893
8894rdos*)
8895  lt_cv_deplibs_check_method=pass_all
8896  ;;
8897
8898solaris*)
8899  lt_cv_deplibs_check_method=pass_all
8900  ;;
8901
8902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8903  lt_cv_deplibs_check_method=pass_all
8904  ;;
8905
8906sysv4 | sysv4.3*)
8907  case $host_vendor in
8908  motorola)
8909    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]'
8910    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8911    ;;
8912  ncr)
8913    lt_cv_deplibs_check_method=pass_all
8914    ;;
8915  sequent)
8916    lt_cv_file_magic_cmd='/bin/file'
8917    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8918    ;;
8919  sni)
8920    lt_cv_file_magic_cmd='/bin/file'
8921    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8922    lt_cv_file_magic_test_file=/lib/libc.so
8923    ;;
8924  siemens)
8925    lt_cv_deplibs_check_method=pass_all
8926    ;;
8927  pc)
8928    lt_cv_deplibs_check_method=pass_all
8929    ;;
8930  esac
8931  ;;
8932
8933tpf*)
8934  lt_cv_deplibs_check_method=pass_all
8935  ;;
8936esac
8937
8938fi
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8940$as_echo "$lt_cv_deplibs_check_method" >&6; }
8941
8942file_magic_glob=
8943want_nocaseglob=no
8944if test "$build" = "$host"; then
8945  case $host_os in
8946  mingw* | pw32*)
8947    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8948      want_nocaseglob=yes
8949    else
8950      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8951    fi
8952    ;;
8953  esac
8954fi
8955
8956file_magic_cmd=$lt_cv_file_magic_cmd
8957deplibs_check_method=$lt_cv_deplibs_check_method
8958test -z "$deplibs_check_method" && deplibs_check_method=unknown
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981if test -n "$ac_tool_prefix"; then
8982  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8983set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985$as_echo_n "checking for $ac_word... " >&6; }
8986if ${ac_cv_prog_DLLTOOL+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  if test -n "$DLLTOOL"; then
8990  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995  IFS=$as_save_IFS
8996  test -z "$as_dir" && as_dir=.
8997    for ac_exec_ext in '' $ac_executable_extensions; do
8998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8999    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001    break 2
9002  fi
9003done
9004  done
9005IFS=$as_save_IFS
9006
9007fi
9008fi
9009DLLTOOL=$ac_cv_prog_DLLTOOL
9010if test -n "$DLLTOOL"; then
9011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9012$as_echo "$DLLTOOL" >&6; }
9013else
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015$as_echo "no" >&6; }
9016fi
9017
9018
9019fi
9020if test -z "$ac_cv_prog_DLLTOOL"; then
9021  ac_ct_DLLTOOL=$DLLTOOL
9022  # Extract the first word of "dlltool", so it can be a program name with args.
9023set dummy dlltool; ac_word=$2
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9025$as_echo_n "checking for $ac_word... " >&6; }
9026if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9027  $as_echo_n "(cached) " >&6
9028else
9029  if test -n "$ac_ct_DLLTOOL"; then
9030  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9031else
9032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033for as_dir in $PATH
9034do
9035  IFS=$as_save_IFS
9036  test -z "$as_dir" && as_dir=.
9037    for ac_exec_ext in '' $ac_executable_extensions; do
9038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9039    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041    break 2
9042  fi
9043done
9044  done
9045IFS=$as_save_IFS
9046
9047fi
9048fi
9049ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9050if test -n "$ac_ct_DLLTOOL"; then
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9052$as_echo "$ac_ct_DLLTOOL" >&6; }
9053else
9054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055$as_echo "no" >&6; }
9056fi
9057
9058  if test "x$ac_ct_DLLTOOL" = x; then
9059    DLLTOOL="false"
9060  else
9061    case $cross_compiling:$ac_tool_warned in
9062yes:)
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9065ac_tool_warned=yes ;;
9066esac
9067    DLLTOOL=$ac_ct_DLLTOOL
9068  fi
9069else
9070  DLLTOOL="$ac_cv_prog_DLLTOOL"
9071fi
9072
9073test -z "$DLLTOOL" && DLLTOOL=dlltool
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9085$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9086if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9087  $as_echo_n "(cached) " >&6
9088else
9089  lt_cv_sharedlib_from_linklib_cmd='unknown'
9090
9091case $host_os in
9092cygwin* | mingw* | pw32* | cegcc*)
9093  # two different shell functions defined in ltmain.sh
9094  # decide which to use based on capabilities of $DLLTOOL
9095  case `$DLLTOOL --help 2>&1` in
9096  *--identify-strict*)
9097    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9098    ;;
9099  *)
9100    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9101    ;;
9102  esac
9103  ;;
9104*)
9105  # fallback: assume linklib IS sharedlib
9106  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9107  ;;
9108esac
9109
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9112$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9113sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9114test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9115
9116
9117
9118
9119
9120
9121
9122if test -n "$ac_tool_prefix"; then
9123  for ac_prog in ar
9124  do
9125    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9126set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128$as_echo_n "checking for $ac_word... " >&6; }
9129if ${ac_cv_prog_AR+:} false; then :
9130  $as_echo_n "(cached) " >&6
9131else
9132  if test -n "$AR"; then
9133  ac_cv_prog_AR="$AR" # Let the user override the test.
9134else
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138  IFS=$as_save_IFS
9139  test -z "$as_dir" && as_dir=.
9140    for ac_exec_ext in '' $ac_executable_extensions; do
9141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9142    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144    break 2
9145  fi
9146done
9147  done
9148IFS=$as_save_IFS
9149
9150fi
9151fi
9152AR=$ac_cv_prog_AR
9153if test -n "$AR"; then
9154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9155$as_echo "$AR" >&6; }
9156else
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158$as_echo "no" >&6; }
9159fi
9160
9161
9162    test -n "$AR" && break
9163  done
9164fi
9165if test -z "$AR"; then
9166  ac_ct_AR=$AR
9167  for ac_prog in ar
9168do
9169  # Extract the first word of "$ac_prog", so it can be a program name with args.
9170set dummy $ac_prog; ac_word=$2
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172$as_echo_n "checking for $ac_word... " >&6; }
9173if ${ac_cv_prog_ac_ct_AR+:} false; then :
9174  $as_echo_n "(cached) " >&6
9175else
9176  if test -n "$ac_ct_AR"; then
9177  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9178else
9179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180for as_dir in $PATH
9181do
9182  IFS=$as_save_IFS
9183  test -z "$as_dir" && as_dir=.
9184    for ac_exec_ext in '' $ac_executable_extensions; do
9185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186    ac_cv_prog_ac_ct_AR="$ac_prog"
9187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188    break 2
9189  fi
9190done
9191  done
9192IFS=$as_save_IFS
9193
9194fi
9195fi
9196ac_ct_AR=$ac_cv_prog_ac_ct_AR
9197if test -n "$ac_ct_AR"; then
9198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9199$as_echo "$ac_ct_AR" >&6; }
9200else
9201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202$as_echo "no" >&6; }
9203fi
9204
9205
9206  test -n "$ac_ct_AR" && break
9207done
9208
9209  if test "x$ac_ct_AR" = x; then
9210    AR="false"
9211  else
9212    case $cross_compiling:$ac_tool_warned in
9213yes:)
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9216ac_tool_warned=yes ;;
9217esac
9218    AR=$ac_ct_AR
9219  fi
9220fi
9221
9222: ${AR=ar}
9223: ${AR_FLAGS=cru}
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9236$as_echo_n "checking for archiver @FILE support... " >&6; }
9237if ${lt_cv_ar_at_file+:} false; then :
9238  $as_echo_n "(cached) " >&6
9239else
9240  lt_cv_ar_at_file=no
9241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243
9244int
9245main ()
9246{
9247
9248  ;
9249  return 0;
9250}
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"; then :
9253  echo conftest.$ac_objext > conftest.lst
9254      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9255      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9256  (eval $lt_ar_try) 2>&5
9257  ac_status=$?
9258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259  test $ac_status = 0; }
9260      if test "$ac_status" -eq 0; then
9261	# Ensure the archiver fails upon bogus file names.
9262	rm -f conftest.$ac_objext libconftest.a
9263	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9264  (eval $lt_ar_try) 2>&5
9265  ac_status=$?
9266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9267  test $ac_status = 0; }
9268	if test "$ac_status" -ne 0; then
9269          lt_cv_ar_at_file=@
9270        fi
9271      fi
9272      rm -f conftest.* libconftest.a
9273
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276
9277fi
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9279$as_echo "$lt_cv_ar_at_file" >&6; }
9280
9281if test "x$lt_cv_ar_at_file" = xno; then
9282  archiver_list_spec=
9283else
9284  archiver_list_spec=$lt_cv_ar_at_file
9285fi
9286
9287
9288
9289
9290
9291
9292
9293if test -n "$ac_tool_prefix"; then
9294  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9295set dummy ${ac_tool_prefix}strip; ac_word=$2
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9297$as_echo_n "checking for $ac_word... " >&6; }
9298if ${ac_cv_prog_STRIP+:} false; then :
9299  $as_echo_n "(cached) " >&6
9300else
9301  if test -n "$STRIP"; then
9302  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9303else
9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307  IFS=$as_save_IFS
9308  test -z "$as_dir" && as_dir=.
9309    for ac_exec_ext in '' $ac_executable_extensions; do
9310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9311    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9313    break 2
9314  fi
9315done
9316  done
9317IFS=$as_save_IFS
9318
9319fi
9320fi
9321STRIP=$ac_cv_prog_STRIP
9322if test -n "$STRIP"; then
9323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9324$as_echo "$STRIP" >&6; }
9325else
9326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327$as_echo "no" >&6; }
9328fi
9329
9330
9331fi
9332if test -z "$ac_cv_prog_STRIP"; then
9333  ac_ct_STRIP=$STRIP
9334  # Extract the first word of "strip", so it can be a program name with args.
9335set dummy strip; ac_word=$2
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337$as_echo_n "checking for $ac_word... " >&6; }
9338if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  if test -n "$ac_ct_STRIP"; then
9342  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9343else
9344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345for as_dir in $PATH
9346do
9347  IFS=$as_save_IFS
9348  test -z "$as_dir" && as_dir=.
9349    for ac_exec_ext in '' $ac_executable_extensions; do
9350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351    ac_cv_prog_ac_ct_STRIP="strip"
9352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353    break 2
9354  fi
9355done
9356  done
9357IFS=$as_save_IFS
9358
9359fi
9360fi
9361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9362if test -n "$ac_ct_STRIP"; then
9363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9364$as_echo "$ac_ct_STRIP" >&6; }
9365else
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367$as_echo "no" >&6; }
9368fi
9369
9370  if test "x$ac_ct_STRIP" = x; then
9371    STRIP=":"
9372  else
9373    case $cross_compiling:$ac_tool_warned in
9374yes:)
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9377ac_tool_warned=yes ;;
9378esac
9379    STRIP=$ac_ct_STRIP
9380  fi
9381else
9382  STRIP="$ac_cv_prog_STRIP"
9383fi
9384
9385test -z "$STRIP" && STRIP=:
9386
9387
9388
9389
9390
9391
9392if test -n "$ac_tool_prefix"; then
9393  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9394set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396$as_echo_n "checking for $ac_word... " >&6; }
9397if ${ac_cv_prog_RANLIB+:} false; then :
9398  $as_echo_n "(cached) " >&6
9399else
9400  if test -n "$RANLIB"; then
9401  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9402else
9403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404for as_dir in $PATH
9405do
9406  IFS=$as_save_IFS
9407  test -z "$as_dir" && as_dir=.
9408    for ac_exec_ext in '' $ac_executable_extensions; do
9409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9410    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412    break 2
9413  fi
9414done
9415  done
9416IFS=$as_save_IFS
9417
9418fi
9419fi
9420RANLIB=$ac_cv_prog_RANLIB
9421if test -n "$RANLIB"; then
9422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9423$as_echo "$RANLIB" >&6; }
9424else
9425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426$as_echo "no" >&6; }
9427fi
9428
9429
9430fi
9431if test -z "$ac_cv_prog_RANLIB"; then
9432  ac_ct_RANLIB=$RANLIB
9433  # Extract the first word of "ranlib", so it can be a program name with args.
9434set dummy ranlib; ac_word=$2
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436$as_echo_n "checking for $ac_word... " >&6; }
9437if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  if test -n "$ac_ct_RANLIB"; then
9441  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9442else
9443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444for as_dir in $PATH
9445do
9446  IFS=$as_save_IFS
9447  test -z "$as_dir" && as_dir=.
9448    for ac_exec_ext in '' $ac_executable_extensions; do
9449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450    ac_cv_prog_ac_ct_RANLIB="ranlib"
9451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452    break 2
9453  fi
9454done
9455  done
9456IFS=$as_save_IFS
9457
9458fi
9459fi
9460ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9461if test -n "$ac_ct_RANLIB"; then
9462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9463$as_echo "$ac_ct_RANLIB" >&6; }
9464else
9465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466$as_echo "no" >&6; }
9467fi
9468
9469  if test "x$ac_ct_RANLIB" = x; then
9470    RANLIB=":"
9471  else
9472    case $cross_compiling:$ac_tool_warned in
9473yes:)
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9476ac_tool_warned=yes ;;
9477esac
9478    RANLIB=$ac_ct_RANLIB
9479  fi
9480else
9481  RANLIB="$ac_cv_prog_RANLIB"
9482fi
9483
9484test -z "$RANLIB" && RANLIB=:
9485
9486
9487
9488
9489
9490
9491# Determine commands to create old-style static archives.
9492old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9493old_postinstall_cmds='chmod 644 $oldlib'
9494old_postuninstall_cmds=
9495
9496if test -n "$RANLIB"; then
9497  case $host_os in
9498  openbsd*)
9499    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9500    ;;
9501  *)
9502    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9503    ;;
9504  esac
9505  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9506fi
9507
9508case $host_os in
9509  darwin*)
9510    lock_old_archive_extraction=yes ;;
9511  *)
9512    lock_old_archive_extraction=no ;;
9513esac
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553# If no C compiler was specified, use CC.
9554LTCC=${LTCC-"$CC"}
9555
9556# If no C compiler flags were specified, use CFLAGS.
9557LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9558
9559# Allow CC to be a program name with arguments.
9560compiler=$CC
9561
9562
9563# Check for command to grab the raw symbol name followed by C symbol from nm.
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9565$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9566if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569
9570# These are sane defaults that work on at least a few old systems.
9571# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9572
9573# Character class describing NM global symbol codes.
9574symcode='[BCDEGRST]'
9575
9576# Regexp to match symbols that can be accessed directly from C.
9577sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9578
9579# Define system-specific variables.
9580case $host_os in
9581aix*)
9582  symcode='[BCDT]'
9583  ;;
9584cygwin* | mingw* | pw32* | cegcc*)
9585  symcode='[ABCDGISTW]'
9586  ;;
9587hpux*)
9588  if test "$host_cpu" = ia64; then
9589    symcode='[ABCDEGRST]'
9590  fi
9591  ;;
9592irix* | nonstopux*)
9593  symcode='[BCDEGRST]'
9594  ;;
9595osf*)
9596  symcode='[BCDEGQRST]'
9597  ;;
9598solaris*)
9599  symcode='[BDRT]'
9600  ;;
9601sco3.2v5*)
9602  symcode='[DT]'
9603  ;;
9604sysv4.2uw2*)
9605  symcode='[DT]'
9606  ;;
9607sysv5* | sco5v6* | unixware* | OpenUNIX*)
9608  symcode='[ABDT]'
9609  ;;
9610sysv4)
9611  symcode='[DFNSTU]'
9612  ;;
9613esac
9614
9615# If we're using GNU nm, then use its standard symbol codes.
9616case `$NM -V 2>&1` in
9617*GNU* | *'with BFD'*)
9618  symcode='[ABCDGIRSTW]' ;;
9619esac
9620
9621# Transform an extracted symbol line into a proper C declaration.
9622# Some systems (esp. on ia64) link data and code symbols differently,
9623# so use this general approach.
9624lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9625
9626# Transform an extracted symbol line into symbol name and symbol address
9627lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9628lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9629
9630# Handle CRLF in mingw tool chain
9631opt_cr=
9632case $build_os in
9633mingw*)
9634  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9635  ;;
9636esac
9637
9638# Try without a prefix underscore, then with it.
9639for ac_symprfx in "" "_"; do
9640
9641  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9642  symxfrm="\\1 $ac_symprfx\\2 \\2"
9643
9644  # Write the raw and C identifiers.
9645  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9646    # Fake it for dumpbin and say T for any non-static function
9647    # and D for any global variable.
9648    # Also find C++ and __fastcall symbols from MSVC++,
9649    # which start with @ or ?.
9650    lt_cv_sys_global_symbol_pipe="$AWK '"\
9651"     {last_section=section; section=\$ 3};"\
9652"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9653"     \$ 0!~/External *\|/{next};"\
9654"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9655"     {if(hide[section]) next};"\
9656"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9657"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9658"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9659"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9660"     ' prfx=^$ac_symprfx"
9661  else
9662    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9663  fi
9664  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9665
9666  # Check to see that the pipe works correctly.
9667  pipe_works=no
9668
9669  rm -f conftest*
9670  cat > conftest.$ac_ext <<_LT_EOF
9671#ifdef __cplusplus
9672extern "C" {
9673#endif
9674char nm_test_var;
9675void nm_test_func(void);
9676void nm_test_func(void){}
9677#ifdef __cplusplus
9678}
9679#endif
9680int main(){nm_test_var='a';nm_test_func();return(0);}
9681_LT_EOF
9682
9683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9684  (eval $ac_compile) 2>&5
9685  ac_status=$?
9686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9687  test $ac_status = 0; }; then
9688    # Now try to grab the symbols.
9689    nlist=conftest.nm
9690    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9691  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9692  ac_status=$?
9693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9694  test $ac_status = 0; } && test -s "$nlist"; then
9695      # Try sorting and uniquifying the output.
9696      if sort "$nlist" | uniq > "$nlist"T; then
9697	mv -f "$nlist"T "$nlist"
9698      else
9699	rm -f "$nlist"T
9700      fi
9701
9702      # Make sure that we snagged all the symbols we need.
9703      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9704	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9705	  cat <<_LT_EOF > conftest.$ac_ext
9706/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9707#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9708/* DATA imports from DLLs on WIN32 con't be const, because runtime
9709   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9710# define LT_DLSYM_CONST
9711#elif defined(__osf__)
9712/* This system does not cope well with relocations in const data.  */
9713# define LT_DLSYM_CONST
9714#else
9715# define LT_DLSYM_CONST const
9716#endif
9717
9718#ifdef __cplusplus
9719extern "C" {
9720#endif
9721
9722_LT_EOF
9723	  # Now generate the symbol file.
9724	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9725
9726	  cat <<_LT_EOF >> conftest.$ac_ext
9727
9728/* The mapping between symbol names and symbols.  */
9729LT_DLSYM_CONST struct {
9730  const char *name;
9731  void       *address;
9732}
9733lt__PROGRAM__LTX_preloaded_symbols[] =
9734{
9735  { "@PROGRAM@", (void *) 0 },
9736_LT_EOF
9737	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9738	  cat <<\_LT_EOF >> conftest.$ac_ext
9739  {0, (void *) 0}
9740};
9741
9742/* This works around a problem in FreeBSD linker */
9743#ifdef FREEBSD_WORKAROUND
9744static const void *lt_preloaded_setup() {
9745  return lt__PROGRAM__LTX_preloaded_symbols;
9746}
9747#endif
9748
9749#ifdef __cplusplus
9750}
9751#endif
9752_LT_EOF
9753	  # Now try linking the two files.
9754	  mv conftest.$ac_objext conftstm.$ac_objext
9755	  lt_globsym_save_LIBS=$LIBS
9756	  lt_globsym_save_CFLAGS=$CFLAGS
9757	  LIBS="conftstm.$ac_objext"
9758	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9759	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9760  (eval $ac_link) 2>&5
9761  ac_status=$?
9762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9763  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9764	    pipe_works=yes
9765	  fi
9766	  LIBS=$lt_globsym_save_LIBS
9767	  CFLAGS=$lt_globsym_save_CFLAGS
9768	else
9769	  echo "cannot find nm_test_func in $nlist" >&5
9770	fi
9771      else
9772	echo "cannot find nm_test_var in $nlist" >&5
9773      fi
9774    else
9775      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9776    fi
9777  else
9778    echo "$progname: failed program was:" >&5
9779    cat conftest.$ac_ext >&5
9780  fi
9781  rm -rf conftest* conftst*
9782
9783  # Do not use the global_symbol_pipe unless it works.
9784  if test "$pipe_works" = yes; then
9785    break
9786  else
9787    lt_cv_sys_global_symbol_pipe=
9788  fi
9789done
9790
9791fi
9792
9793if test -z "$lt_cv_sys_global_symbol_pipe"; then
9794  lt_cv_sys_global_symbol_to_cdecl=
9795fi
9796if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9798$as_echo "failed" >&6; }
9799else
9800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9801$as_echo "ok" >&6; }
9802fi
9803
9804# Response file support.
9805if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9806  nm_file_list_spec='@'
9807elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9808  nm_file_list_spec='@'
9809fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9838$as_echo_n "checking for sysroot... " >&6; }
9839
9840# Check whether --with-sysroot was given.
9841if test "${with_sysroot+set}" = set; then :
9842  withval=$with_sysroot;
9843else
9844  with_sysroot=no
9845fi
9846
9847
9848lt_sysroot=
9849case ${with_sysroot} in #(
9850 yes)
9851   if test "$GCC" = yes; then
9852     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9853   fi
9854   ;; #(
9855 /*)
9856   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9857   ;; #(
9858 no|'')
9859   ;; #(
9860 *)
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9862$as_echo "${with_sysroot}" >&6; }
9863   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9864   ;;
9865esac
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9868$as_echo "${lt_sysroot:-no}" >&6; }
9869
9870
9871
9872
9873
9874# Check whether --enable-libtool-lock was given.
9875if test "${enable_libtool_lock+set}" = set; then :
9876  enableval=$enable_libtool_lock;
9877fi
9878
9879test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9880
9881# Some flags need to be propagated to the compiler or linker for good
9882# libtool support.
9883case $host in
9884ia64-*-hpux*)
9885  # Find out which ABI we are using.
9886  echo 'int i;' > conftest.$ac_ext
9887  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9888  (eval $ac_compile) 2>&5
9889  ac_status=$?
9890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9891  test $ac_status = 0; }; then
9892    case `/usr/bin/file conftest.$ac_objext` in
9893      *ELF-32*)
9894	HPUX_IA64_MODE="32"
9895	;;
9896      *ELF-64*)
9897	HPUX_IA64_MODE="64"
9898	;;
9899    esac
9900  fi
9901  rm -rf conftest*
9902  ;;
9903*-*-irix6*)
9904  # Find out which ABI we are using.
9905  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9906  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9907  (eval $ac_compile) 2>&5
9908  ac_status=$?
9909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910  test $ac_status = 0; }; then
9911    if test "$lt_cv_prog_gnu_ld" = yes; then
9912      case `/usr/bin/file conftest.$ac_objext` in
9913	*32-bit*)
9914	  LD="${LD-ld} -melf32bsmip"
9915	  ;;
9916	*N32*)
9917	  LD="${LD-ld} -melf32bmipn32"
9918	  ;;
9919	*64-bit*)
9920	  LD="${LD-ld} -melf64bmip"
9921	;;
9922      esac
9923    else
9924      case `/usr/bin/file conftest.$ac_objext` in
9925	*32-bit*)
9926	  LD="${LD-ld} -32"
9927	  ;;
9928	*N32*)
9929	  LD="${LD-ld} -n32"
9930	  ;;
9931	*64-bit*)
9932	  LD="${LD-ld} -64"
9933	  ;;
9934      esac
9935    fi
9936  fi
9937  rm -rf conftest*
9938  ;;
9939
9940x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9941s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9942  # Find out which ABI we are using.
9943  echo 'int i;' > conftest.$ac_ext
9944  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9945  (eval $ac_compile) 2>&5
9946  ac_status=$?
9947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948  test $ac_status = 0; }; then
9949    case `/usr/bin/file conftest.o` in
9950      *32-bit*)
9951	case $host in
9952	  x86_64-*kfreebsd*-gnu)
9953	    LD="${LD-ld} -m elf_i386_fbsd"
9954	    ;;
9955	  x86_64-*linux*)
9956	    LD="${LD-ld} -m elf_i386"
9957	    ;;
9958	  ppc64-*linux*|powerpc64-*linux*)
9959	    LD="${LD-ld} -m elf32ppclinux"
9960	    ;;
9961	  s390x-*linux*)
9962	    LD="${LD-ld} -m elf_s390"
9963	    ;;
9964	  sparc64-*linux*)
9965	    LD="${LD-ld} -m elf32_sparc"
9966	    ;;
9967	esac
9968	;;
9969      *64-bit*)
9970	case $host in
9971	  x86_64-*kfreebsd*-gnu)
9972	    LD="${LD-ld} -m elf_x86_64_fbsd"
9973	    ;;
9974	  x86_64-*linux*)
9975	    LD="${LD-ld} -m elf_x86_64"
9976	    ;;
9977	  ppc*-*linux*|powerpc*-*linux*)
9978	    LD="${LD-ld} -m elf64ppc"
9979	    ;;
9980	  s390*-*linux*|s390*-*tpf*)
9981	    LD="${LD-ld} -m elf64_s390"
9982	    ;;
9983	  sparc*-*linux*)
9984	    LD="${LD-ld} -m elf64_sparc"
9985	    ;;
9986	esac
9987	;;
9988    esac
9989  fi
9990  rm -rf conftest*
9991  ;;
9992
9993*-*-sco3.2v5*)
9994  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9995  SAVE_CFLAGS="$CFLAGS"
9996  CFLAGS="$CFLAGS -belf"
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9998$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9999if ${lt_cv_cc_needs_belf+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  ac_ext=c
10003ac_cpp='$CPP $CPPFLAGS'
10004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10006ac_compiler_gnu=$ac_cv_c_compiler_gnu
10007
10008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010
10011int
10012main ()
10013{
10014
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019if ac_fn_c_try_link "$LINENO"; then :
10020  lt_cv_cc_needs_belf=yes
10021else
10022  lt_cv_cc_needs_belf=no
10023fi
10024rm -f core conftest.err conftest.$ac_objext \
10025    conftest$ac_exeext conftest.$ac_ext
10026     ac_ext=c
10027ac_cpp='$CPP $CPPFLAGS'
10028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10030ac_compiler_gnu=$ac_cv_c_compiler_gnu
10031
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10034$as_echo "$lt_cv_cc_needs_belf" >&6; }
10035  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10036    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10037    CFLAGS="$SAVE_CFLAGS"
10038  fi
10039  ;;
10040sparc*-*solaris*)
10041  # Find out which ABI we are using.
10042  echo 'int i;' > conftest.$ac_ext
10043  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10044  (eval $ac_compile) 2>&5
10045  ac_status=$?
10046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10047  test $ac_status = 0; }; then
10048    case `/usr/bin/file conftest.o` in
10049    *64-bit*)
10050      case $lt_cv_prog_gnu_ld in
10051      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10052      *)
10053	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10054	  LD="${LD-ld} -64"
10055	fi
10056	;;
10057      esac
10058      ;;
10059    esac
10060  fi
10061  rm -rf conftest*
10062  ;;
10063esac
10064
10065need_locks="$enable_libtool_lock"
10066
10067if test -n "$ac_tool_prefix"; then
10068  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10069set dummy ${ac_tool_prefix}mt; ac_word=$2
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071$as_echo_n "checking for $ac_word... " >&6; }
10072if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10073  $as_echo_n "(cached) " >&6
10074else
10075  if test -n "$MANIFEST_TOOL"; then
10076  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10077else
10078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079for as_dir in $PATH
10080do
10081  IFS=$as_save_IFS
10082  test -z "$as_dir" && as_dir=.
10083    for ac_exec_ext in '' $ac_executable_extensions; do
10084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10085    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087    break 2
10088  fi
10089done
10090  done
10091IFS=$as_save_IFS
10092
10093fi
10094fi
10095MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10096if test -n "$MANIFEST_TOOL"; then
10097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10098$as_echo "$MANIFEST_TOOL" >&6; }
10099else
10100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101$as_echo "no" >&6; }
10102fi
10103
10104
10105fi
10106if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10107  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10108  # Extract the first word of "mt", so it can be a program name with args.
10109set dummy mt; ac_word=$2
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111$as_echo_n "checking for $ac_word... " >&6; }
10112if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10113  $as_echo_n "(cached) " >&6
10114else
10115  if test -n "$ac_ct_MANIFEST_TOOL"; then
10116  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10117else
10118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119for as_dir in $PATH
10120do
10121  IFS=$as_save_IFS
10122  test -z "$as_dir" && as_dir=.
10123    for ac_exec_ext in '' $ac_executable_extensions; do
10124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10125    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127    break 2
10128  fi
10129done
10130  done
10131IFS=$as_save_IFS
10132
10133fi
10134fi
10135ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10136if test -n "$ac_ct_MANIFEST_TOOL"; then
10137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10138$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10139else
10140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141$as_echo "no" >&6; }
10142fi
10143
10144  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10145    MANIFEST_TOOL=":"
10146  else
10147    case $cross_compiling:$ac_tool_warned in
10148yes:)
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10151ac_tool_warned=yes ;;
10152esac
10153    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10154  fi
10155else
10156  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10157fi
10158
10159test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10161$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10162if ${lt_cv_path_mainfest_tool+:} false; then :
10163  $as_echo_n "(cached) " >&6
10164else
10165  lt_cv_path_mainfest_tool=no
10166  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10167  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10168  cat conftest.err >&5
10169  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10170    lt_cv_path_mainfest_tool=yes
10171  fi
10172  rm -f conftest*
10173fi
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10175$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10176if test "x$lt_cv_path_mainfest_tool" != xyes; then
10177  MANIFEST_TOOL=:
10178fi
10179
10180
10181
10182
10183
10184
10185  case $host_os in
10186    rhapsody* | darwin*)
10187    if test -n "$ac_tool_prefix"; then
10188  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10189set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191$as_echo_n "checking for $ac_word... " >&6; }
10192if ${ac_cv_prog_DSYMUTIL+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  if test -n "$DSYMUTIL"; then
10196  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10197else
10198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199for as_dir in $PATH
10200do
10201  IFS=$as_save_IFS
10202  test -z "$as_dir" && as_dir=.
10203    for ac_exec_ext in '' $ac_executable_extensions; do
10204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207    break 2
10208  fi
10209done
10210  done
10211IFS=$as_save_IFS
10212
10213fi
10214fi
10215DSYMUTIL=$ac_cv_prog_DSYMUTIL
10216if test -n "$DSYMUTIL"; then
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10218$as_echo "$DSYMUTIL" >&6; }
10219else
10220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
10222fi
10223
10224
10225fi
10226if test -z "$ac_cv_prog_DSYMUTIL"; then
10227  ac_ct_DSYMUTIL=$DSYMUTIL
10228  # Extract the first word of "dsymutil", so it can be a program name with args.
10229set dummy dsymutil; ac_word=$2
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231$as_echo_n "checking for $ac_word... " >&6; }
10232if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  if test -n "$ac_ct_DSYMUTIL"; then
10236  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10237else
10238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239for as_dir in $PATH
10240do
10241  IFS=$as_save_IFS
10242  test -z "$as_dir" && as_dir=.
10243    for ac_exec_ext in '' $ac_executable_extensions; do
10244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247    break 2
10248  fi
10249done
10250  done
10251IFS=$as_save_IFS
10252
10253fi
10254fi
10255ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10256if test -n "$ac_ct_DSYMUTIL"; then
10257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10258$as_echo "$ac_ct_DSYMUTIL" >&6; }
10259else
10260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261$as_echo "no" >&6; }
10262fi
10263
10264  if test "x$ac_ct_DSYMUTIL" = x; then
10265    DSYMUTIL=":"
10266  else
10267    case $cross_compiling:$ac_tool_warned in
10268yes:)
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10271ac_tool_warned=yes ;;
10272esac
10273    DSYMUTIL=$ac_ct_DSYMUTIL
10274  fi
10275else
10276  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10277fi
10278
10279    if test -n "$ac_tool_prefix"; then
10280  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10281set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283$as_echo_n "checking for $ac_word... " >&6; }
10284if ${ac_cv_prog_NMEDIT+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  if test -n "$NMEDIT"; then
10288  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10289else
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293  IFS=$as_save_IFS
10294  test -z "$as_dir" && as_dir=.
10295    for ac_exec_ext in '' $ac_executable_extensions; do
10296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299    break 2
10300  fi
10301done
10302  done
10303IFS=$as_save_IFS
10304
10305fi
10306fi
10307NMEDIT=$ac_cv_prog_NMEDIT
10308if test -n "$NMEDIT"; then
10309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10310$as_echo "$NMEDIT" >&6; }
10311else
10312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
10314fi
10315
10316
10317fi
10318if test -z "$ac_cv_prog_NMEDIT"; then
10319  ac_ct_NMEDIT=$NMEDIT
10320  # Extract the first word of "nmedit", so it can be a program name with args.
10321set dummy nmedit; ac_word=$2
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323$as_echo_n "checking for $ac_word... " >&6; }
10324if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10325  $as_echo_n "(cached) " >&6
10326else
10327  if test -n "$ac_ct_NMEDIT"; then
10328  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10329else
10330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331for as_dir in $PATH
10332do
10333  IFS=$as_save_IFS
10334  test -z "$as_dir" && as_dir=.
10335    for ac_exec_ext in '' $ac_executable_extensions; do
10336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10337    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339    break 2
10340  fi
10341done
10342  done
10343IFS=$as_save_IFS
10344
10345fi
10346fi
10347ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10348if test -n "$ac_ct_NMEDIT"; then
10349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10350$as_echo "$ac_ct_NMEDIT" >&6; }
10351else
10352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353$as_echo "no" >&6; }
10354fi
10355
10356  if test "x$ac_ct_NMEDIT" = x; then
10357    NMEDIT=":"
10358  else
10359    case $cross_compiling:$ac_tool_warned in
10360yes:)
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10363ac_tool_warned=yes ;;
10364esac
10365    NMEDIT=$ac_ct_NMEDIT
10366  fi
10367else
10368  NMEDIT="$ac_cv_prog_NMEDIT"
10369fi
10370
10371    if test -n "$ac_tool_prefix"; then
10372  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10373set dummy ${ac_tool_prefix}lipo; ac_word=$2
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375$as_echo_n "checking for $ac_word... " >&6; }
10376if ${ac_cv_prog_LIPO+:} false; then :
10377  $as_echo_n "(cached) " >&6
10378else
10379  if test -n "$LIPO"; then
10380  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10381else
10382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385  IFS=$as_save_IFS
10386  test -z "$as_dir" && as_dir=.
10387    for ac_exec_ext in '' $ac_executable_extensions; do
10388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10389    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391    break 2
10392  fi
10393done
10394  done
10395IFS=$as_save_IFS
10396
10397fi
10398fi
10399LIPO=$ac_cv_prog_LIPO
10400if test -n "$LIPO"; then
10401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10402$as_echo "$LIPO" >&6; }
10403else
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405$as_echo "no" >&6; }
10406fi
10407
10408
10409fi
10410if test -z "$ac_cv_prog_LIPO"; then
10411  ac_ct_LIPO=$LIPO
10412  # Extract the first word of "lipo", so it can be a program name with args.
10413set dummy lipo; ac_word=$2
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415$as_echo_n "checking for $ac_word... " >&6; }
10416if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  if test -n "$ac_ct_LIPO"; then
10420  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10421else
10422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425  IFS=$as_save_IFS
10426  test -z "$as_dir" && as_dir=.
10427    for ac_exec_ext in '' $ac_executable_extensions; do
10428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429    ac_cv_prog_ac_ct_LIPO="lipo"
10430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431    break 2
10432  fi
10433done
10434  done
10435IFS=$as_save_IFS
10436
10437fi
10438fi
10439ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10440if test -n "$ac_ct_LIPO"; then
10441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10442$as_echo "$ac_ct_LIPO" >&6; }
10443else
10444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445$as_echo "no" >&6; }
10446fi
10447
10448  if test "x$ac_ct_LIPO" = x; then
10449    LIPO=":"
10450  else
10451    case $cross_compiling:$ac_tool_warned in
10452yes:)
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10455ac_tool_warned=yes ;;
10456esac
10457    LIPO=$ac_ct_LIPO
10458  fi
10459else
10460  LIPO="$ac_cv_prog_LIPO"
10461fi
10462
10463    if test -n "$ac_tool_prefix"; then
10464  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10465set dummy ${ac_tool_prefix}otool; ac_word=$2
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467$as_echo_n "checking for $ac_word... " >&6; }
10468if ${ac_cv_prog_OTOOL+:} false; then :
10469  $as_echo_n "(cached) " >&6
10470else
10471  if test -n "$OTOOL"; then
10472  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10473else
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477  IFS=$as_save_IFS
10478  test -z "$as_dir" && as_dir=.
10479    for ac_exec_ext in '' $ac_executable_extensions; do
10480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483    break 2
10484  fi
10485done
10486  done
10487IFS=$as_save_IFS
10488
10489fi
10490fi
10491OTOOL=$ac_cv_prog_OTOOL
10492if test -n "$OTOOL"; then
10493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10494$as_echo "$OTOOL" >&6; }
10495else
10496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
10498fi
10499
10500
10501fi
10502if test -z "$ac_cv_prog_OTOOL"; then
10503  ac_ct_OTOOL=$OTOOL
10504  # Extract the first word of "otool", so it can be a program name with args.
10505set dummy otool; ac_word=$2
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10507$as_echo_n "checking for $ac_word... " >&6; }
10508if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10509  $as_echo_n "(cached) " >&6
10510else
10511  if test -n "$ac_ct_OTOOL"; then
10512  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10513else
10514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515for as_dir in $PATH
10516do
10517  IFS=$as_save_IFS
10518  test -z "$as_dir" && as_dir=.
10519    for ac_exec_ext in '' $ac_executable_extensions; do
10520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10521    ac_cv_prog_ac_ct_OTOOL="otool"
10522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523    break 2
10524  fi
10525done
10526  done
10527IFS=$as_save_IFS
10528
10529fi
10530fi
10531ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10532if test -n "$ac_ct_OTOOL"; then
10533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10534$as_echo "$ac_ct_OTOOL" >&6; }
10535else
10536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537$as_echo "no" >&6; }
10538fi
10539
10540  if test "x$ac_ct_OTOOL" = x; then
10541    OTOOL=":"
10542  else
10543    case $cross_compiling:$ac_tool_warned in
10544yes:)
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10547ac_tool_warned=yes ;;
10548esac
10549    OTOOL=$ac_ct_OTOOL
10550  fi
10551else
10552  OTOOL="$ac_cv_prog_OTOOL"
10553fi
10554
10555    if test -n "$ac_tool_prefix"; then
10556  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10557set dummy ${ac_tool_prefix}otool64; ac_word=$2
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559$as_echo_n "checking for $ac_word... " >&6; }
10560if ${ac_cv_prog_OTOOL64+:} false; then :
10561  $as_echo_n "(cached) " >&6
10562else
10563  if test -n "$OTOOL64"; then
10564  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10565else
10566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567for as_dir in $PATH
10568do
10569  IFS=$as_save_IFS
10570  test -z "$as_dir" && as_dir=.
10571    for ac_exec_ext in '' $ac_executable_extensions; do
10572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10573    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575    break 2
10576  fi
10577done
10578  done
10579IFS=$as_save_IFS
10580
10581fi
10582fi
10583OTOOL64=$ac_cv_prog_OTOOL64
10584if test -n "$OTOOL64"; then
10585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10586$as_echo "$OTOOL64" >&6; }
10587else
10588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589$as_echo "no" >&6; }
10590fi
10591
10592
10593fi
10594if test -z "$ac_cv_prog_OTOOL64"; then
10595  ac_ct_OTOOL64=$OTOOL64
10596  # Extract the first word of "otool64", so it can be a program name with args.
10597set dummy otool64; ac_word=$2
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599$as_echo_n "checking for $ac_word... " >&6; }
10600if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10601  $as_echo_n "(cached) " >&6
10602else
10603  if test -n "$ac_ct_OTOOL64"; then
10604  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10605else
10606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607for as_dir in $PATH
10608do
10609  IFS=$as_save_IFS
10610  test -z "$as_dir" && as_dir=.
10611    for ac_exec_ext in '' $ac_executable_extensions; do
10612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10613    ac_cv_prog_ac_ct_OTOOL64="otool64"
10614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10615    break 2
10616  fi
10617done
10618  done
10619IFS=$as_save_IFS
10620
10621fi
10622fi
10623ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10624if test -n "$ac_ct_OTOOL64"; then
10625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10626$as_echo "$ac_ct_OTOOL64" >&6; }
10627else
10628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629$as_echo "no" >&6; }
10630fi
10631
10632  if test "x$ac_ct_OTOOL64" = x; then
10633    OTOOL64=":"
10634  else
10635    case $cross_compiling:$ac_tool_warned in
10636yes:)
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10639ac_tool_warned=yes ;;
10640esac
10641    OTOOL64=$ac_ct_OTOOL64
10642  fi
10643else
10644  OTOOL64="$ac_cv_prog_OTOOL64"
10645fi
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10674$as_echo_n "checking for -single_module linker flag... " >&6; }
10675if ${lt_cv_apple_cc_single_mod+:} false; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  lt_cv_apple_cc_single_mod=no
10679      if test -z "${LT_MULTI_MODULE}"; then
10680	# By default we will add the -single_module flag. You can override
10681	# by either setting the environment variable LT_MULTI_MODULE
10682	# non-empty at configure time, or by adding -multi_module to the
10683	# link flags.
10684	rm -rf libconftest.dylib*
10685	echo "int foo(void){return 1;}" > conftest.c
10686	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10687-dynamiclib -Wl,-single_module conftest.c" >&5
10688	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10689	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10690        _lt_result=$?
10691	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10692	  lt_cv_apple_cc_single_mod=yes
10693	else
10694	  cat conftest.err >&5
10695	fi
10696	rm -rf libconftest.dylib*
10697	rm -f conftest.*
10698      fi
10699fi
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10701$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10703$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10704if ${lt_cv_ld_exported_symbols_list+:} false; then :
10705  $as_echo_n "(cached) " >&6
10706else
10707  lt_cv_ld_exported_symbols_list=no
10708      save_LDFLAGS=$LDFLAGS
10709      echo "_main" > conftest.sym
10710      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10711      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712/* end confdefs.h.  */
10713
10714int
10715main ()
10716{
10717
10718  ;
10719  return 0;
10720}
10721_ACEOF
10722if ac_fn_c_try_link "$LINENO"; then :
10723  lt_cv_ld_exported_symbols_list=yes
10724else
10725  lt_cv_ld_exported_symbols_list=no
10726fi
10727rm -f core conftest.err conftest.$ac_objext \
10728    conftest$ac_exeext conftest.$ac_ext
10729	LDFLAGS="$save_LDFLAGS"
10730
10731fi
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10733$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10735$as_echo_n "checking for -force_load linker flag... " >&6; }
10736if ${lt_cv_ld_force_load+:} false; then :
10737  $as_echo_n "(cached) " >&6
10738else
10739  lt_cv_ld_force_load=no
10740      cat > conftest.c << _LT_EOF
10741int forced_loaded() { return 2;}
10742_LT_EOF
10743      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10744      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10745      echo "$AR cru libconftest.a conftest.o" >&5
10746      $AR cru libconftest.a conftest.o 2>&5
10747      echo "$RANLIB libconftest.a" >&5
10748      $RANLIB libconftest.a 2>&5
10749      cat > conftest.c << _LT_EOF
10750int main() { return 0;}
10751_LT_EOF
10752      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10753      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10754      _lt_result=$?
10755      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10756	lt_cv_ld_force_load=yes
10757      else
10758	cat conftest.err >&5
10759      fi
10760        rm -f conftest.err libconftest.a conftest conftest.c
10761        rm -rf conftest.dSYM
10762
10763fi
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10765$as_echo "$lt_cv_ld_force_load" >&6; }
10766    case $host_os in
10767    rhapsody* | darwin1.[012])
10768      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10769    darwin1.*)
10770      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10771    darwin*) # darwin 5.x on
10772      # if running on 10.5 or later, the deployment target defaults
10773      # to the OS version, if on x86, and 10.4, the deployment
10774      # target defaults to 10.4. Don't you love it?
10775      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10776	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10777	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10778	10.[012]*)
10779	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10780	10.*)
10781	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10782      esac
10783    ;;
10784  esac
10785    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10786      _lt_dar_single_mod='$single_module'
10787    fi
10788    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10789      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10790    else
10791      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10792    fi
10793    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10794      _lt_dsymutil='~$DSYMUTIL $lib || :'
10795    else
10796      _lt_dsymutil=
10797    fi
10798    ;;
10799  esac
10800
10801for ac_header in dlfcn.h
10802do :
10803  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10804"
10805if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10806  cat >>confdefs.h <<_ACEOF
10807#define HAVE_DLFCN_H 1
10808_ACEOF
10809
10810fi
10811
10812done
10813
10814
10815
10816
10817func_stripname_cnf ()
10818{
10819  case ${2} in
10820  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10821  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10822  esac
10823} # func_stripname_cnf
10824
10825
10826
10827
10828
10829# Set options
10830
10831
10832
10833        enable_dlopen=no
10834
10835
10836  enable_win32_dll=no
10837
10838
10839
10840  # Check whether --enable-static was given.
10841if test "${enable_static+set}" = set; then :
10842  enableval=$enable_static; p=${PACKAGE-default}
10843    case $enableval in
10844    yes) enable_static=yes ;;
10845    no) enable_static=no ;;
10846    *)
10847     enable_static=no
10848      # Look at the argument we got.  We use all the common list separators.
10849      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10850      for pkg in $enableval; do
10851	IFS="$lt_save_ifs"
10852	if test "X$pkg" = "X$p"; then
10853	  enable_static=yes
10854	fi
10855      done
10856      IFS="$lt_save_ifs"
10857      ;;
10858    esac
10859else
10860  enable_static=yes
10861fi
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872# Check whether --with-pic was given.
10873if test "${with_pic+set}" = set; then :
10874  withval=$with_pic; pic_mode="$withval"
10875else
10876  pic_mode=default
10877fi
10878
10879
10880test -z "$pic_mode" && pic_mode=default
10881
10882
10883
10884
10885
10886
10887
10888  # Check whether --enable-fast-install was given.
10889if test "${enable_fast_install+set}" = set; then :
10890  enableval=$enable_fast_install; p=${PACKAGE-default}
10891    case $enableval in
10892    yes) enable_fast_install=yes ;;
10893    no) enable_fast_install=no ;;
10894    *)
10895      enable_fast_install=no
10896      # Look at the argument we got.  We use all the common list separators.
10897      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10898      for pkg in $enableval; do
10899	IFS="$lt_save_ifs"
10900	if test "X$pkg" = "X$p"; then
10901	  enable_fast_install=yes
10902	fi
10903      done
10904      IFS="$lt_save_ifs"
10905      ;;
10906    esac
10907else
10908  enable_fast_install=yes
10909fi
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921# This can be used to rebuild libtool when needed
10922LIBTOOL_DEPS="$ltmain"
10923
10924# Always use our own libtool.
10925LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952test -z "$LN_S" && LN_S="ln -s"
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967if test -n "${ZSH_VERSION+set}" ; then
10968   setopt NO_GLOB_SUBST
10969fi
10970
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10972$as_echo_n "checking for objdir... " >&6; }
10973if ${lt_cv_objdir+:} false; then :
10974  $as_echo_n "(cached) " >&6
10975else
10976  rm -f .libs 2>/dev/null
10977mkdir .libs 2>/dev/null
10978if test -d .libs; then
10979  lt_cv_objdir=.libs
10980else
10981  # MS-DOS does not allow filenames that begin with a dot.
10982  lt_cv_objdir=_libs
10983fi
10984rmdir .libs 2>/dev/null
10985fi
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10987$as_echo "$lt_cv_objdir" >&6; }
10988objdir=$lt_cv_objdir
10989
10990
10991
10992
10993
10994cat >>confdefs.h <<_ACEOF
10995#define LT_OBJDIR "$lt_cv_objdir/"
10996_ACEOF
10997
10998
10999
11000
11001case $host_os in
11002aix3*)
11003  # AIX sometimes has problems with the GCC collect2 program.  For some
11004  # reason, if we set the COLLECT_NAMES environment variable, the problems
11005  # vanish in a puff of smoke.
11006  if test "X${COLLECT_NAMES+set}" != Xset; then
11007    COLLECT_NAMES=
11008    export COLLECT_NAMES
11009  fi
11010  ;;
11011esac
11012
11013# Global variables:
11014ofile=libtool
11015can_build_shared=yes
11016
11017# All known linkers require a `.a' archive for static linking (except MSVC,
11018# which needs '.lib').
11019libext=a
11020
11021with_gnu_ld="$lt_cv_prog_gnu_ld"
11022
11023old_CC="$CC"
11024old_CFLAGS="$CFLAGS"
11025
11026# Set sane defaults for various variables
11027test -z "$CC" && CC=cc
11028test -z "$LTCC" && LTCC=$CC
11029test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11030test -z "$LD" && LD=ld
11031test -z "$ac_objext" && ac_objext=o
11032
11033for cc_temp in $compiler""; do
11034  case $cc_temp in
11035    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11036    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11037    \-*) ;;
11038    *) break;;
11039  esac
11040done
11041cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11042
11043
11044# Only perform the check for file, if the check method requires it
11045test -z "$MAGIC_CMD" && MAGIC_CMD=file
11046case $deplibs_check_method in
11047file_magic*)
11048  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11050$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11051if ${lt_cv_path_MAGIC_CMD+:} false; then :
11052  $as_echo_n "(cached) " >&6
11053else
11054  case $MAGIC_CMD in
11055[\\/*] |  ?:[\\/]*)
11056  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11057  ;;
11058*)
11059  lt_save_MAGIC_CMD="$MAGIC_CMD"
11060  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11061  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11062  for ac_dir in $ac_dummy; do
11063    IFS="$lt_save_ifs"
11064    test -z "$ac_dir" && ac_dir=.
11065    if test -f $ac_dir/${ac_tool_prefix}file; then
11066      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11067      if test -n "$file_magic_test_file"; then
11068	case $deplibs_check_method in
11069	"file_magic "*)
11070	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11071	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11072	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11073	    $EGREP "$file_magic_regex" > /dev/null; then
11074	    :
11075	  else
11076	    cat <<_LT_EOF 1>&2
11077
11078*** Warning: the command libtool uses to detect shared libraries,
11079*** $file_magic_cmd, produces output that libtool cannot recognize.
11080*** The result is that libtool may fail to recognize shared libraries
11081*** as such.  This will affect the creation of libtool libraries that
11082*** depend on shared libraries, but programs linked with such libtool
11083*** libraries will work regardless of this problem.  Nevertheless, you
11084*** may want to report the problem to your system manager and/or to
11085*** bug-libtool@gnu.org
11086
11087_LT_EOF
11088	  fi ;;
11089	esac
11090      fi
11091      break
11092    fi
11093  done
11094  IFS="$lt_save_ifs"
11095  MAGIC_CMD="$lt_save_MAGIC_CMD"
11096  ;;
11097esac
11098fi
11099
11100MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11101if test -n "$MAGIC_CMD"; then
11102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11103$as_echo "$MAGIC_CMD" >&6; }
11104else
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106$as_echo "no" >&6; }
11107fi
11108
11109
11110
11111
11112
11113if test -z "$lt_cv_path_MAGIC_CMD"; then
11114  if test -n "$ac_tool_prefix"; then
11115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11116$as_echo_n "checking for file... " >&6; }
11117if ${lt_cv_path_MAGIC_CMD+:} false; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  case $MAGIC_CMD in
11121[\\/*] |  ?:[\\/]*)
11122  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11123  ;;
11124*)
11125  lt_save_MAGIC_CMD="$MAGIC_CMD"
11126  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11127  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11128  for ac_dir in $ac_dummy; do
11129    IFS="$lt_save_ifs"
11130    test -z "$ac_dir" && ac_dir=.
11131    if test -f $ac_dir/file; then
11132      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11133      if test -n "$file_magic_test_file"; then
11134	case $deplibs_check_method in
11135	"file_magic "*)
11136	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11137	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11138	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11139	    $EGREP "$file_magic_regex" > /dev/null; then
11140	    :
11141	  else
11142	    cat <<_LT_EOF 1>&2
11143
11144*** Warning: the command libtool uses to detect shared libraries,
11145*** $file_magic_cmd, produces output that libtool cannot recognize.
11146*** The result is that libtool may fail to recognize shared libraries
11147*** as such.  This will affect the creation of libtool libraries that
11148*** depend on shared libraries, but programs linked with such libtool
11149*** libraries will work regardless of this problem.  Nevertheless, you
11150*** may want to report the problem to your system manager and/or to
11151*** bug-libtool@gnu.org
11152
11153_LT_EOF
11154	  fi ;;
11155	esac
11156      fi
11157      break
11158    fi
11159  done
11160  IFS="$lt_save_ifs"
11161  MAGIC_CMD="$lt_save_MAGIC_CMD"
11162  ;;
11163esac
11164fi
11165
11166MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11167if test -n "$MAGIC_CMD"; then
11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11169$as_echo "$MAGIC_CMD" >&6; }
11170else
11171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
11173fi
11174
11175
11176  else
11177    MAGIC_CMD=:
11178  fi
11179fi
11180
11181  fi
11182  ;;
11183esac
11184
11185# Use C for the default configuration in the libtool script
11186
11187lt_save_CC="$CC"
11188ac_ext=c
11189ac_cpp='$CPP $CPPFLAGS'
11190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192ac_compiler_gnu=$ac_cv_c_compiler_gnu
11193
11194
11195# Source file extension for C test sources.
11196ac_ext=c
11197
11198# Object file extension for compiled C test sources.
11199objext=o
11200objext=$objext
11201
11202# Code to be used in simple compile tests
11203lt_simple_compile_test_code="int some_variable = 0;"
11204
11205# Code to be used in simple link tests
11206lt_simple_link_test_code='int main(){return(0);}'
11207
11208
11209
11210
11211
11212
11213
11214# If no C compiler was specified, use CC.
11215LTCC=${LTCC-"$CC"}
11216
11217# If no C compiler flags were specified, use CFLAGS.
11218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11219
11220# Allow CC to be a program name with arguments.
11221compiler=$CC
11222
11223# Save the default compiler, since it gets overwritten when the other
11224# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11225compiler_DEFAULT=$CC
11226
11227# save warnings/boilerplate of simple test code
11228ac_outfile=conftest.$ac_objext
11229echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11230eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11231_lt_compiler_boilerplate=`cat conftest.err`
11232$RM conftest*
11233
11234ac_outfile=conftest.$ac_objext
11235echo "$lt_simple_link_test_code" >conftest.$ac_ext
11236eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11237_lt_linker_boilerplate=`cat conftest.err`
11238$RM -r conftest*
11239
11240
11241## CAVEAT EMPTOR:
11242## There is no encapsulation within the following macros, do not change
11243## the running order or otherwise move them around unless you know exactly
11244## what you are doing...
11245if test -n "$compiler"; then
11246
11247lt_prog_compiler_no_builtin_flag=
11248
11249if test "$GCC" = yes; then
11250  case $cc_basename in
11251  nvcc*)
11252    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11253  *)
11254    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11255  esac
11256
11257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11258$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11259if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11260  $as_echo_n "(cached) " >&6
11261else
11262  lt_cv_prog_compiler_rtti_exceptions=no
11263   ac_outfile=conftest.$ac_objext
11264   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11265   lt_compiler_flag="-fno-rtti -fno-exceptions"
11266   # Insert the option either (1) after the last *FLAGS variable, or
11267   # (2) before a word containing "conftest.", or (3) at the end.
11268   # Note that $ac_compile itself does not contain backslashes and begins
11269   # with a dollar sign (not a hyphen), so the echo should work correctly.
11270   # The option is referenced via a variable to avoid confusing sed.
11271   lt_compile=`echo "$ac_compile" | $SED \
11272   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11273   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11274   -e 's:$: $lt_compiler_flag:'`
11275   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11276   (eval "$lt_compile" 2>conftest.err)
11277   ac_status=$?
11278   cat conftest.err >&5
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   if (exit $ac_status) && test -s "$ac_outfile"; then
11281     # The compiler can only warn and ignore the option if not recognized
11282     # So say no if there are warnings other than the usual output.
11283     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11284     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11285     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11286       lt_cv_prog_compiler_rtti_exceptions=yes
11287     fi
11288   fi
11289   $RM conftest*
11290
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11293$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11294
11295if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11296    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11297else
11298    :
11299fi
11300
11301fi
11302
11303
11304
11305
11306
11307
11308  lt_prog_compiler_wl=
11309lt_prog_compiler_pic=
11310lt_prog_compiler_static=
11311
11312
11313  if test "$GCC" = yes; then
11314    lt_prog_compiler_wl='-Wl,'
11315    lt_prog_compiler_static='-static'
11316
11317    case $host_os in
11318      aix*)
11319      # All AIX code is PIC.
11320      if test "$host_cpu" = ia64; then
11321	# AIX 5 now supports IA64 processor
11322	lt_prog_compiler_static='-Bstatic'
11323      fi
11324      ;;
11325
11326    amigaos*)
11327      case $host_cpu in
11328      powerpc)
11329            # see comment about AmigaOS4 .so support
11330            lt_prog_compiler_pic='-fPIC'
11331        ;;
11332      m68k)
11333            # FIXME: we need at least 68020 code to build shared libraries, but
11334            # adding the `-m68020' flag to GCC prevents building anything better,
11335            # like `-m68040'.
11336            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11337        ;;
11338      esac
11339      ;;
11340
11341    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11342      # PIC is the default for these OSes.
11343      ;;
11344
11345    mingw* | cygwin* | pw32* | os2* | cegcc*)
11346      # This hack is so that the source file can tell whether it is being
11347      # built for inclusion in a dll (and should export symbols for example).
11348      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11349      # (--disable-auto-import) libraries
11350      lt_prog_compiler_pic='-DDLL_EXPORT'
11351      ;;
11352
11353    darwin* | rhapsody*)
11354      # PIC is the default on this platform
11355      # Common symbols not allowed in MH_DYLIB files
11356      lt_prog_compiler_pic='-fno-common'
11357      ;;
11358
11359    haiku*)
11360      # PIC is the default for Haiku.
11361      # The "-static" flag exists, but is broken.
11362      lt_prog_compiler_static=
11363      ;;
11364
11365    hpux*)
11366      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11367      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11368      # sets the default TLS model and affects inlining.
11369      case $host_cpu in
11370      hppa*64*)
11371	# +Z the default
11372	;;
11373      *)
11374	lt_prog_compiler_pic='-fPIC'
11375	;;
11376      esac
11377      ;;
11378
11379    interix[3-9]*)
11380      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11381      # Instead, we relocate shared libraries at runtime.
11382      ;;
11383
11384    msdosdjgpp*)
11385      # Just because we use GCC doesn't mean we suddenly get shared libraries
11386      # on systems that don't support them.
11387      lt_prog_compiler_can_build_shared=no
11388      enable_shared=no
11389      ;;
11390
11391    *nto* | *qnx*)
11392      # QNX uses GNU C++, but need to define -shared option too, otherwise
11393      # it will coredump.
11394      lt_prog_compiler_pic='-fPIC -shared'
11395      ;;
11396
11397    sysv4*MP*)
11398      if test -d /usr/nec; then
11399	lt_prog_compiler_pic=-Kconform_pic
11400      fi
11401      ;;
11402
11403    *)
11404      lt_prog_compiler_pic='-fPIC'
11405      ;;
11406    esac
11407
11408    case $cc_basename in
11409    nvcc*) # Cuda Compiler Driver 2.2
11410      lt_prog_compiler_wl='-Xlinker '
11411      lt_prog_compiler_pic='-Xcompiler -fPIC'
11412      ;;
11413    esac
11414  else
11415    # PORTME Check for flag to pass linker flags through the system compiler.
11416    case $host_os in
11417    aix*)
11418      lt_prog_compiler_wl='-Wl,'
11419      if test "$host_cpu" = ia64; then
11420	# AIX 5 now supports IA64 processor
11421	lt_prog_compiler_static='-Bstatic'
11422      else
11423	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11424      fi
11425      ;;
11426
11427    mingw* | cygwin* | pw32* | os2* | cegcc*)
11428      # This hack is so that the source file can tell whether it is being
11429      # built for inclusion in a dll (and should export symbols for example).
11430      lt_prog_compiler_pic='-DDLL_EXPORT'
11431      ;;
11432
11433    hpux9* | hpux10* | hpux11*)
11434      lt_prog_compiler_wl='-Wl,'
11435      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11436      # not for PA HP-UX.
11437      case $host_cpu in
11438      hppa*64*|ia64*)
11439	# +Z the default
11440	;;
11441      *)
11442	lt_prog_compiler_pic='+Z'
11443	;;
11444      esac
11445      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11446      lt_prog_compiler_static='${wl}-a ${wl}archive'
11447      ;;
11448
11449    irix5* | irix6* | nonstopux*)
11450      lt_prog_compiler_wl='-Wl,'
11451      # PIC (with -KPIC) is the default.
11452      lt_prog_compiler_static='-non_shared'
11453      ;;
11454
11455    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11456      case $cc_basename in
11457      # old Intel for x86_64 which still supported -KPIC.
11458      ecc*)
11459	lt_prog_compiler_wl='-Wl,'
11460	lt_prog_compiler_pic='-KPIC'
11461	lt_prog_compiler_static='-static'
11462        ;;
11463      # icc used to be incompatible with GCC.
11464      # ICC 10 doesn't accept -KPIC any more.
11465      icc* | ifort*)
11466	lt_prog_compiler_wl='-Wl,'
11467	lt_prog_compiler_pic='-fPIC'
11468	lt_prog_compiler_static='-static'
11469        ;;
11470      # Lahey Fortran 8.1.
11471      lf95*)
11472	lt_prog_compiler_wl='-Wl,'
11473	lt_prog_compiler_pic='--shared'
11474	lt_prog_compiler_static='--static'
11475	;;
11476      nagfor*)
11477	# NAG Fortran compiler
11478	lt_prog_compiler_wl='-Wl,-Wl,,'
11479	lt_prog_compiler_pic='-PIC'
11480	lt_prog_compiler_static='-Bstatic'
11481	;;
11482      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11483        # Portland Group compilers (*not* the Pentium gcc compiler,
11484	# which looks to be a dead project)
11485	lt_prog_compiler_wl='-Wl,'
11486	lt_prog_compiler_pic='-fpic'
11487	lt_prog_compiler_static='-Bstatic'
11488        ;;
11489      ccc*)
11490        lt_prog_compiler_wl='-Wl,'
11491        # All Alpha code is PIC.
11492        lt_prog_compiler_static='-non_shared'
11493        ;;
11494      xl* | bgxl* | bgf* | mpixl*)
11495	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11496	lt_prog_compiler_wl='-Wl,'
11497	lt_prog_compiler_pic='-qpic'
11498	lt_prog_compiler_static='-qstaticlink'
11499	;;
11500      *)
11501	case `$CC -V 2>&1 | sed 5q` in
11502	*Sun\ F* | *Sun*Fortran*)
11503	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11504	  lt_prog_compiler_pic='-KPIC'
11505	  lt_prog_compiler_static='-Bstatic'
11506	  lt_prog_compiler_wl=''
11507	  ;;
11508	*Sun\ C*)
11509	  # Sun C 5.9
11510	  lt_prog_compiler_pic='-KPIC'
11511	  lt_prog_compiler_static='-Bstatic'
11512	  lt_prog_compiler_wl='-Wl,'
11513	  ;;
11514	esac
11515	;;
11516      esac
11517      ;;
11518
11519    newsos6)
11520      lt_prog_compiler_pic='-KPIC'
11521      lt_prog_compiler_static='-Bstatic'
11522      ;;
11523
11524    *nto* | *qnx*)
11525      # QNX uses GNU C++, but need to define -shared option too, otherwise
11526      # it will coredump.
11527      lt_prog_compiler_pic='-fPIC -shared'
11528      ;;
11529
11530    osf3* | osf4* | osf5*)
11531      lt_prog_compiler_wl='-Wl,'
11532      # All OSF/1 code is PIC.
11533      lt_prog_compiler_static='-non_shared'
11534      ;;
11535
11536    rdos*)
11537      lt_prog_compiler_static='-non_shared'
11538      ;;
11539
11540    solaris*)
11541      lt_prog_compiler_pic='-KPIC'
11542      lt_prog_compiler_static='-Bstatic'
11543      case $cc_basename in
11544      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11545	lt_prog_compiler_wl='-Qoption ld ';;
11546      *)
11547	lt_prog_compiler_wl='-Wl,';;
11548      esac
11549      ;;
11550
11551    sunos4*)
11552      lt_prog_compiler_wl='-Qoption ld '
11553      lt_prog_compiler_pic='-PIC'
11554      lt_prog_compiler_static='-Bstatic'
11555      ;;
11556
11557    sysv4 | sysv4.2uw2* | sysv4.3*)
11558      lt_prog_compiler_wl='-Wl,'
11559      lt_prog_compiler_pic='-KPIC'
11560      lt_prog_compiler_static='-Bstatic'
11561      ;;
11562
11563    sysv4*MP*)
11564      if test -d /usr/nec ;then
11565	lt_prog_compiler_pic='-Kconform_pic'
11566	lt_prog_compiler_static='-Bstatic'
11567      fi
11568      ;;
11569
11570    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11571      lt_prog_compiler_wl='-Wl,'
11572      lt_prog_compiler_pic='-KPIC'
11573      lt_prog_compiler_static='-Bstatic'
11574      ;;
11575
11576    unicos*)
11577      lt_prog_compiler_wl='-Wl,'
11578      lt_prog_compiler_can_build_shared=no
11579      ;;
11580
11581    uts4*)
11582      lt_prog_compiler_pic='-pic'
11583      lt_prog_compiler_static='-Bstatic'
11584      ;;
11585
11586    *)
11587      lt_prog_compiler_can_build_shared=no
11588      ;;
11589    esac
11590  fi
11591
11592case $host_os in
11593  # For platforms which do not support PIC, -DPIC is meaningless:
11594  *djgpp*)
11595    lt_prog_compiler_pic=
11596    ;;
11597  *)
11598    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11599    ;;
11600esac
11601
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11603$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11604if ${lt_cv_prog_compiler_pic+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11610$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11611lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11612
11613#
11614# Check to make sure the PIC flag actually works.
11615#
11616if test -n "$lt_prog_compiler_pic"; then
11617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11618$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11619if ${lt_cv_prog_compiler_pic_works+:} false; then :
11620  $as_echo_n "(cached) " >&6
11621else
11622  lt_cv_prog_compiler_pic_works=no
11623   ac_outfile=conftest.$ac_objext
11624   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11625   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11626   # Insert the option either (1) after the last *FLAGS variable, or
11627   # (2) before a word containing "conftest.", or (3) at the end.
11628   # Note that $ac_compile itself does not contain backslashes and begins
11629   # with a dollar sign (not a hyphen), so the echo should work correctly.
11630   # The option is referenced via a variable to avoid confusing sed.
11631   lt_compile=`echo "$ac_compile" | $SED \
11632   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11633   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11634   -e 's:$: $lt_compiler_flag:'`
11635   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11636   (eval "$lt_compile" 2>conftest.err)
11637   ac_status=$?
11638   cat conftest.err >&5
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   if (exit $ac_status) && test -s "$ac_outfile"; then
11641     # The compiler can only warn and ignore the option if not recognized
11642     # So say no if there are warnings other than the usual output.
11643     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11644     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11645     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11646       lt_cv_prog_compiler_pic_works=yes
11647     fi
11648   fi
11649   $RM conftest*
11650
11651fi
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11653$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11654
11655if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11656    case $lt_prog_compiler_pic in
11657     "" | " "*) ;;
11658     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11659     esac
11660else
11661    lt_prog_compiler_pic=
11662     lt_prog_compiler_can_build_shared=no
11663fi
11664
11665fi
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677#
11678# Check to make sure the static flag actually works.
11679#
11680wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11682$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11683if ${lt_cv_prog_compiler_static_works+:} false; then :
11684  $as_echo_n "(cached) " >&6
11685else
11686  lt_cv_prog_compiler_static_works=no
11687   save_LDFLAGS="$LDFLAGS"
11688   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11689   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11690   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11691     # The linker can only warn and ignore the option if not recognized
11692     # So say no if there are warnings
11693     if test -s conftest.err; then
11694       # Append any errors to the config.log.
11695       cat conftest.err 1>&5
11696       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11697       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11698       if diff conftest.exp conftest.er2 >/dev/null; then
11699         lt_cv_prog_compiler_static_works=yes
11700       fi
11701     else
11702       lt_cv_prog_compiler_static_works=yes
11703     fi
11704   fi
11705   $RM -r conftest*
11706   LDFLAGS="$save_LDFLAGS"
11707
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11710$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11711
11712if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11713    :
11714else
11715    lt_prog_compiler_static=
11716fi
11717
11718
11719
11720
11721
11722
11723
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11726if ${lt_cv_prog_compiler_c_o+:} false; then :
11727  $as_echo_n "(cached) " >&6
11728else
11729  lt_cv_prog_compiler_c_o=no
11730   $RM -r conftest 2>/dev/null
11731   mkdir conftest
11732   cd conftest
11733   mkdir out
11734   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11735
11736   lt_compiler_flag="-o out/conftest2.$ac_objext"
11737   # Insert the option either (1) after the last *FLAGS variable, or
11738   # (2) before a word containing "conftest.", or (3) at the end.
11739   # Note that $ac_compile itself does not contain backslashes and begins
11740   # with a dollar sign (not a hyphen), so the echo should work correctly.
11741   lt_compile=`echo "$ac_compile" | $SED \
11742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11744   -e 's:$: $lt_compiler_flag:'`
11745   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11746   (eval "$lt_compile" 2>out/conftest.err)
11747   ac_status=$?
11748   cat out/conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11751   then
11752     # The compiler can only warn and ignore the option if not recognized
11753     # So say no if there are warnings
11754     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11755     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11756     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11757       lt_cv_prog_compiler_c_o=yes
11758     fi
11759   fi
11760   chmod u+w . 2>&5
11761   $RM conftest*
11762   # SGI C++ compiler will create directory out/ii_files/ for
11763   # template instantiation
11764   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11765   $RM out/* && rmdir out
11766   cd ..
11767   $RM -r conftest
11768   $RM conftest*
11769
11770fi
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11772$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11773
11774
11775
11776
11777
11778
11779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11781if ${lt_cv_prog_compiler_c_o+:} false; then :
11782  $as_echo_n "(cached) " >&6
11783else
11784  lt_cv_prog_compiler_c_o=no
11785   $RM -r conftest 2>/dev/null
11786   mkdir conftest
11787   cd conftest
11788   mkdir out
11789   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11790
11791   lt_compiler_flag="-o out/conftest2.$ac_objext"
11792   # Insert the option either (1) after the last *FLAGS variable, or
11793   # (2) before a word containing "conftest.", or (3) at the end.
11794   # Note that $ac_compile itself does not contain backslashes and begins
11795   # with a dollar sign (not a hyphen), so the echo should work correctly.
11796   lt_compile=`echo "$ac_compile" | $SED \
11797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11799   -e 's:$: $lt_compiler_flag:'`
11800   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11801   (eval "$lt_compile" 2>out/conftest.err)
11802   ac_status=$?
11803   cat out/conftest.err >&5
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11806   then
11807     # The compiler can only warn and ignore the option if not recognized
11808     # So say no if there are warnings
11809     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11810     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11811     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11812       lt_cv_prog_compiler_c_o=yes
11813     fi
11814   fi
11815   chmod u+w . 2>&5
11816   $RM conftest*
11817   # SGI C++ compiler will create directory out/ii_files/ for
11818   # template instantiation
11819   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11820   $RM out/* && rmdir out
11821   cd ..
11822   $RM -r conftest
11823   $RM conftest*
11824
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11827$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11828
11829
11830
11831
11832hard_links="nottested"
11833if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11834  # do not overwrite the value of need_locks provided by the user
11835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11836$as_echo_n "checking if we can lock with hard links... " >&6; }
11837  hard_links=yes
11838  $RM conftest*
11839  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11840  touch conftest.a
11841  ln conftest.a conftest.b 2>&5 || hard_links=no
11842  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11844$as_echo "$hard_links" >&6; }
11845  if test "$hard_links" = no; then
11846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11847$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11848    need_locks=warn
11849  fi
11850else
11851  need_locks=no
11852fi
11853
11854
11855
11856
11857
11858
11859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11860$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11861
11862  runpath_var=
11863  allow_undefined_flag=
11864  always_export_symbols=no
11865  archive_cmds=
11866  archive_expsym_cmds=
11867  compiler_needs_object=no
11868  enable_shared_with_static_runtimes=no
11869  export_dynamic_flag_spec=
11870  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11871  hardcode_automatic=no
11872  hardcode_direct=no
11873  hardcode_direct_absolute=no
11874  hardcode_libdir_flag_spec=
11875  hardcode_libdir_flag_spec_ld=
11876  hardcode_libdir_separator=
11877  hardcode_minus_L=no
11878  hardcode_shlibpath_var=unsupported
11879  inherit_rpath=no
11880  link_all_deplibs=unknown
11881  module_cmds=
11882  module_expsym_cmds=
11883  old_archive_from_new_cmds=
11884  old_archive_from_expsyms_cmds=
11885  thread_safe_flag_spec=
11886  whole_archive_flag_spec=
11887  # include_expsyms should be a list of space-separated symbols to be *always*
11888  # included in the symbol list
11889  include_expsyms=
11890  # exclude_expsyms can be an extended regexp of symbols to exclude
11891  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11892  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11893  # as well as any symbol that contains `d'.
11894  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11895  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11896  # platforms (ab)use it in PIC code, but their linkers get confused if
11897  # the symbol is explicitly referenced.  Since portable code cannot
11898  # rely on this symbol name, it's probably fine to never include it in
11899  # preloaded symbol tables.
11900  # Exclude shared library initialization/finalization symbols.
11901  extract_expsyms_cmds=
11902
11903  case $host_os in
11904  cygwin* | mingw* | pw32* | cegcc*)
11905    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11906    # When not using gcc, we currently assume that we are using
11907    # Microsoft Visual C++.
11908    if test "$GCC" != yes; then
11909      with_gnu_ld=no
11910    fi
11911    ;;
11912  interix*)
11913    # we just hope/assume this is gcc and not c89 (= MSVC++)
11914    with_gnu_ld=yes
11915    ;;
11916  openbsd*)
11917    with_gnu_ld=no
11918    ;;
11919  esac
11920
11921  ld_shlibs=yes
11922
11923  # On some targets, GNU ld is compatible enough with the native linker
11924  # that we're better off using the native interface for both.
11925  lt_use_gnu_ld_interface=no
11926  if test "$with_gnu_ld" = yes; then
11927    case $host_os in
11928      aix*)
11929	# The AIX port of GNU ld has always aspired to compatibility
11930	# with the native linker.  However, as the warning in the GNU ld
11931	# block says, versions before 2.19.5* couldn't really create working
11932	# shared libraries, regardless of the interface used.
11933	case `$LD -v 2>&1` in
11934	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11935	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11936	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11937	  *)
11938	    lt_use_gnu_ld_interface=yes
11939	    ;;
11940	esac
11941	;;
11942      *)
11943	lt_use_gnu_ld_interface=yes
11944	;;
11945    esac
11946  fi
11947
11948  if test "$lt_use_gnu_ld_interface" = yes; then
11949    # If archive_cmds runs LD, not CC, wlarc should be empty
11950    wlarc='${wl}'
11951
11952    # Set some defaults for GNU ld with shared library support. These
11953    # are reset later if shared libraries are not supported. Putting them
11954    # here allows them to be overridden if necessary.
11955    runpath_var=LD_RUN_PATH
11956    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11957    export_dynamic_flag_spec='${wl}--export-dynamic'
11958    # ancient GNU ld didn't support --whole-archive et. al.
11959    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11960      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11961    else
11962      whole_archive_flag_spec=
11963    fi
11964    supports_anon_versioning=no
11965    case `$LD -v 2>&1` in
11966      *GNU\ gold*) supports_anon_versioning=yes ;;
11967      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11968      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11969      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11970      *\ 2.11.*) ;; # other 2.11 versions
11971      *) supports_anon_versioning=yes ;;
11972    esac
11973
11974    # See if GNU ld supports shared libraries.
11975    case $host_os in
11976    aix[3-9]*)
11977      # On AIX/PPC, the GNU linker is very broken
11978      if test "$host_cpu" != ia64; then
11979	ld_shlibs=no
11980	cat <<_LT_EOF 1>&2
11981
11982*** Warning: the GNU linker, at least up to release 2.19, is reported
11983*** to be unable to reliably create shared libraries on AIX.
11984*** Therefore, libtool is disabling shared libraries support.  If you
11985*** really care for shared libraries, you may want to install binutils
11986*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11987*** You will then need to restart the configuration process.
11988
11989_LT_EOF
11990      fi
11991      ;;
11992
11993    amigaos*)
11994      case $host_cpu in
11995      powerpc)
11996            # see comment about AmigaOS4 .so support
11997            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998            archive_expsym_cmds=''
11999        ;;
12000      m68k)
12001            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)'
12002            hardcode_libdir_flag_spec='-L$libdir'
12003            hardcode_minus_L=yes
12004        ;;
12005      esac
12006      ;;
12007
12008    beos*)
12009      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12010	allow_undefined_flag=unsupported
12011	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12012	# support --undefined.  This deserves some investigation.  FIXME
12013	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12014      else
12015	ld_shlibs=no
12016      fi
12017      ;;
12018
12019    cygwin* | mingw* | pw32* | cegcc*)
12020      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12021      # as there is no search path for DLLs.
12022      hardcode_libdir_flag_spec='-L$libdir'
12023      export_dynamic_flag_spec='${wl}--export-all-symbols'
12024      allow_undefined_flag=unsupported
12025      always_export_symbols=no
12026      enable_shared_with_static_runtimes=yes
12027      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12028      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12029
12030      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12031        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12032	# If the export-symbols file already is a .def file (1st line
12033	# is EXPORTS), use it as is; otherwise, prepend...
12034	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12035	  cp $export_symbols $output_objdir/$soname.def;
12036	else
12037	  echo EXPORTS > $output_objdir/$soname.def;
12038	  cat $export_symbols >> $output_objdir/$soname.def;
12039	fi~
12040	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12041      else
12042	ld_shlibs=no
12043      fi
12044      ;;
12045
12046    haiku*)
12047      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12048      link_all_deplibs=yes
12049      ;;
12050
12051    interix[3-9]*)
12052      hardcode_direct=no
12053      hardcode_shlibpath_var=no
12054      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12055      export_dynamic_flag_spec='${wl}-E'
12056      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12057      # Instead, shared libraries are loaded at an image base (0x10000000 by
12058      # default) and relocated if they conflict, which is a slow very memory
12059      # consuming and fragmenting process.  To avoid this, we pick a random,
12060      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12061      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12062      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12063      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12064      ;;
12065
12066    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12067      tmp_diet=no
12068      if test "$host_os" = linux-dietlibc; then
12069	case $cc_basename in
12070	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12071	esac
12072      fi
12073      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12074	 && test "$tmp_diet" = no
12075      then
12076	tmp_addflag=' $pic_flag'
12077	tmp_sharedflag='-shared'
12078	case $cc_basename,$host_cpu in
12079        pgcc*)				# Portland Group C compiler
12080	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12081	  tmp_addflag=' $pic_flag'
12082	  ;;
12083	pgf77* | pgf90* | pgf95* | pgfortran*)
12084					# Portland Group f77 and f90 compilers
12085	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12086	  tmp_addflag=' $pic_flag -Mnomain' ;;
12087	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12088	  tmp_addflag=' -i_dynamic' ;;
12089	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12090	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12091	ifc* | ifort*)			# Intel Fortran compiler
12092	  tmp_addflag=' -nofor_main' ;;
12093	lf95*)				# Lahey Fortran 8.1
12094	  whole_archive_flag_spec=
12095	  tmp_sharedflag='--shared' ;;
12096	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12097	  tmp_sharedflag='-qmkshrobj'
12098	  tmp_addflag= ;;
12099	nvcc*)	# Cuda Compiler Driver 2.2
12100	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12101	  compiler_needs_object=yes
12102	  ;;
12103	esac
12104	case `$CC -V 2>&1 | sed 5q` in
12105	*Sun\ C*)			# Sun C 5.9
12106	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12107	  compiler_needs_object=yes
12108	  tmp_sharedflag='-G' ;;
12109	*Sun\ F*)			# Sun Fortran 8.3
12110	  tmp_sharedflag='-G' ;;
12111	esac
12112	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12113
12114        if test "x$supports_anon_versioning" = xyes; then
12115          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12116	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12117	    echo "local: *; };" >> $output_objdir/$libname.ver~
12118	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12119        fi
12120
12121	case $cc_basename in
12122	xlf* | bgf* | bgxlf* | mpixlf*)
12123	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12124	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12125	  hardcode_libdir_flag_spec=
12126	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12127	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12128	  if test "x$supports_anon_versioning" = xyes; then
12129	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12130	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12131	      echo "local: *; };" >> $output_objdir/$libname.ver~
12132	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12133	  fi
12134	  ;;
12135	esac
12136      else
12137        ld_shlibs=no
12138      fi
12139      ;;
12140
12141    netbsd*)
12142      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12143	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12144	wlarc=
12145      else
12146	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12147	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12148      fi
12149      ;;
12150
12151    solaris*)
12152      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12153	ld_shlibs=no
12154	cat <<_LT_EOF 1>&2
12155
12156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12157*** create shared libraries on Solaris systems.  Therefore, libtool
12158*** is disabling shared libraries support.  We urge you to upgrade GNU
12159*** binutils to release 2.9.1 or newer.  Another option is to modify
12160*** your PATH or compiler configuration so that the native linker is
12161*** used, and then restart.
12162
12163_LT_EOF
12164      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12165	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12166	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12167      else
12168	ld_shlibs=no
12169      fi
12170      ;;
12171
12172    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12173      case `$LD -v 2>&1` in
12174        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12175	ld_shlibs=no
12176	cat <<_LT_EOF 1>&2
12177
12178*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12179*** reliably create shared libraries on SCO systems.  Therefore, libtool
12180*** is disabling shared libraries support.  We urge you to upgrade GNU
12181*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12182*** your PATH or compiler configuration so that the native linker is
12183*** used, and then restart.
12184
12185_LT_EOF
12186	;;
12187	*)
12188	  # For security reasons, it is highly recommended that you always
12189	  # use absolute paths for naming shared libraries, and exclude the
12190	  # DT_RUNPATH tag from executables and libraries.  But doing so
12191	  # requires that you compile everything twice, which is a pain.
12192	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12193	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12194	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12195	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12196	  else
12197	    ld_shlibs=no
12198	  fi
12199	;;
12200      esac
12201      ;;
12202
12203    sunos4*)
12204      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12205      wlarc=
12206      hardcode_direct=yes
12207      hardcode_shlibpath_var=no
12208      ;;
12209
12210    *)
12211      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12212	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12213	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12214      else
12215	ld_shlibs=no
12216      fi
12217      ;;
12218    esac
12219
12220    if test "$ld_shlibs" = no; then
12221      runpath_var=
12222      hardcode_libdir_flag_spec=
12223      export_dynamic_flag_spec=
12224      whole_archive_flag_spec=
12225    fi
12226  else
12227    # PORTME fill in a description of your system's linker (not GNU ld)
12228    case $host_os in
12229    aix3*)
12230      allow_undefined_flag=unsupported
12231      always_export_symbols=yes
12232      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'
12233      # Note: this linker hardcodes the directories in LIBPATH if there
12234      # are no directories specified by -L.
12235      hardcode_minus_L=yes
12236      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12237	# Neither direct hardcoding nor static linking is supported with a
12238	# broken collect2.
12239	hardcode_direct=unsupported
12240      fi
12241      ;;
12242
12243    aix[4-9]*)
12244      if test "$host_cpu" = ia64; then
12245	# On IA64, the linker does run time linking by default, so we don't
12246	# have to do anything special.
12247	aix_use_runtimelinking=no
12248	exp_sym_flag='-Bexport'
12249	no_entry_flag=""
12250      else
12251	# If we're using GNU nm, then we don't want the "-C" option.
12252	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12253	# Also, AIX nm treats weak defined symbols like other global
12254	# defined symbols, whereas GNU nm marks them as "W".
12255	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12256	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12257	else
12258	  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'
12259	fi
12260	aix_use_runtimelinking=no
12261
12262	# Test if we are trying to use run time linking or normal
12263	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12264	# need to do runtime linking.
12265	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12266	  for ld_flag in $LDFLAGS; do
12267	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12268	    aix_use_runtimelinking=yes
12269	    break
12270	  fi
12271	  done
12272	  ;;
12273	esac
12274
12275	exp_sym_flag='-bexport'
12276	no_entry_flag='-bnoentry'
12277      fi
12278
12279      # When large executables or shared objects are built, AIX ld can
12280      # have problems creating the table of contents.  If linking a library
12281      # or program results in "error TOC overflow" add -mminimal-toc to
12282      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12283      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12284
12285      archive_cmds=''
12286      hardcode_direct=yes
12287      hardcode_direct_absolute=yes
12288      hardcode_libdir_separator=':'
12289      link_all_deplibs=yes
12290      file_list_spec='${wl}-f,'
12291
12292      if test "$GCC" = yes; then
12293	case $host_os in aix4.[012]|aix4.[012].*)
12294	# We only want to do this on AIX 4.2 and lower, the check
12295	# below for broken collect2 doesn't work under 4.3+
12296	  collect2name=`${CC} -print-prog-name=collect2`
12297	  if test -f "$collect2name" &&
12298	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12299	  then
12300	  # We have reworked collect2
12301	  :
12302	  else
12303	  # We have old collect2
12304	  hardcode_direct=unsupported
12305	  # It fails to find uninstalled libraries when the uninstalled
12306	  # path is not listed in the libpath.  Setting hardcode_minus_L
12307	  # to unsupported forces relinking
12308	  hardcode_minus_L=yes
12309	  hardcode_libdir_flag_spec='-L$libdir'
12310	  hardcode_libdir_separator=
12311	  fi
12312	  ;;
12313	esac
12314	shared_flag='-shared'
12315	if test "$aix_use_runtimelinking" = yes; then
12316	  shared_flag="$shared_flag "'${wl}-G'
12317	fi
12318      else
12319	# not using gcc
12320	if test "$host_cpu" = ia64; then
12321	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12322	# chokes on -Wl,-G. The following line is correct:
12323	  shared_flag='-G'
12324	else
12325	  if test "$aix_use_runtimelinking" = yes; then
12326	    shared_flag='${wl}-G'
12327	  else
12328	    shared_flag='${wl}-bM:SRE'
12329	  fi
12330	fi
12331      fi
12332
12333      export_dynamic_flag_spec='${wl}-bexpall'
12334      # It seems that -bexpall does not export symbols beginning with
12335      # underscore (_), so it is better to generate a list of symbols to export.
12336      always_export_symbols=yes
12337      if test "$aix_use_runtimelinking" = yes; then
12338	# Warning - without using the other runtime loading flags (-brtl),
12339	# -berok will link without error, but may produce a broken library.
12340	allow_undefined_flag='-berok'
12341        # Determine the default libpath from the value encoded in an
12342        # empty executable.
12343        if test "${lt_cv_aix_libpath+set}" = set; then
12344  aix_libpath=$lt_cv_aix_libpath
12345else
12346  if ${lt_cv_aix_libpath_+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351
12352int
12353main ()
12354{
12355
12356  ;
12357  return 0;
12358}
12359_ACEOF
12360if ac_fn_c_try_link "$LINENO"; then :
12361
12362  lt_aix_libpath_sed='
12363      /Import File Strings/,/^$/ {
12364	  /^0/ {
12365	      s/^0  *\([^ ]*\) *$/\1/
12366	      p
12367	  }
12368      }'
12369  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12370  # Check for a 64-bit object if we didn't find anything.
12371  if test -z "$lt_cv_aix_libpath_"; then
12372    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373  fi
12374fi
12375rm -f core conftest.err conftest.$ac_objext \
12376    conftest$ac_exeext conftest.$ac_ext
12377  if test -z "$lt_cv_aix_libpath_"; then
12378    lt_cv_aix_libpath_="/usr/lib:/lib"
12379  fi
12380
12381fi
12382
12383  aix_libpath=$lt_cv_aix_libpath_
12384fi
12385
12386        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12387        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12388      else
12389	if test "$host_cpu" = ia64; then
12390	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12391	  allow_undefined_flag="-z nodefs"
12392	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12393	else
12394	 # Determine the default libpath from the value encoded in an
12395	 # empty executable.
12396	 if test "${lt_cv_aix_libpath+set}" = set; then
12397  aix_libpath=$lt_cv_aix_libpath
12398else
12399  if ${lt_cv_aix_libpath_+:} false; then :
12400  $as_echo_n "(cached) " >&6
12401else
12402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h.  */
12404
12405int
12406main ()
12407{
12408
12409  ;
12410  return 0;
12411}
12412_ACEOF
12413if ac_fn_c_try_link "$LINENO"; then :
12414
12415  lt_aix_libpath_sed='
12416      /Import File Strings/,/^$/ {
12417	  /^0/ {
12418	      s/^0  *\([^ ]*\) *$/\1/
12419	      p
12420	  }
12421      }'
12422  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12423  # Check for a 64-bit object if we didn't find anything.
12424  if test -z "$lt_cv_aix_libpath_"; then
12425    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12426  fi
12427fi
12428rm -f core conftest.err conftest.$ac_objext \
12429    conftest$ac_exeext conftest.$ac_ext
12430  if test -z "$lt_cv_aix_libpath_"; then
12431    lt_cv_aix_libpath_="/usr/lib:/lib"
12432  fi
12433
12434fi
12435
12436  aix_libpath=$lt_cv_aix_libpath_
12437fi
12438
12439	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12440	  # Warning - without using the other run time loading flags,
12441	  # -berok will link without error, but may produce a broken library.
12442	  no_undefined_flag=' ${wl}-bernotok'
12443	  allow_undefined_flag=' ${wl}-berok'
12444	  if test "$with_gnu_ld" = yes; then
12445	    # We only use this code for GNU lds that support --whole-archive.
12446	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12447	  else
12448	    # Exported symbols can be pulled into shared objects from archives
12449	    whole_archive_flag_spec='$convenience'
12450	  fi
12451	  archive_cmds_need_lc=yes
12452	  # This is similar to how AIX traditionally builds its shared libraries.
12453	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12454	fi
12455      fi
12456      ;;
12457
12458    amigaos*)
12459      case $host_cpu in
12460      powerpc)
12461            # see comment about AmigaOS4 .so support
12462            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12463            archive_expsym_cmds=''
12464        ;;
12465      m68k)
12466            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)'
12467            hardcode_libdir_flag_spec='-L$libdir'
12468            hardcode_minus_L=yes
12469        ;;
12470      esac
12471      ;;
12472
12473    bsdi[45]*)
12474      export_dynamic_flag_spec=-rdynamic
12475      ;;
12476
12477    cygwin* | mingw* | pw32* | cegcc*)
12478      # When not using gcc, we currently assume that we are using
12479      # Microsoft Visual C++.
12480      # hardcode_libdir_flag_spec is actually meaningless, as there is
12481      # no search path for DLLs.
12482      case $cc_basename in
12483      cl*)
12484	# Native MSVC
12485	hardcode_libdir_flag_spec=' '
12486	allow_undefined_flag=unsupported
12487	always_export_symbols=yes
12488	file_list_spec='@'
12489	# Tell ltmain to make .lib files, not .a files.
12490	libext=lib
12491	# Tell ltmain to make .dll files, not .so files.
12492	shrext_cmds=".dll"
12493	# FIXME: Setting linknames here is a bad hack.
12494	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12495	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12496	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12497	  else
12498	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12499	  fi~
12500	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12501	  linknames='
12502	# The linker will not automatically build a static lib if we build a DLL.
12503	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12504	enable_shared_with_static_runtimes=yes
12505	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12506	# Don't use ranlib
12507	old_postinstall_cmds='chmod 644 $oldlib'
12508	postlink_cmds='lt_outputfile="@OUTPUT@"~
12509	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12510	  case $lt_outputfile in
12511	    *.exe|*.EXE) ;;
12512	    *)
12513	      lt_outputfile="$lt_outputfile.exe"
12514	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12515	      ;;
12516	  esac~
12517	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12518	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12519	    $RM "$lt_outputfile.manifest";
12520	  fi'
12521	;;
12522      *)
12523	# Assume MSVC wrapper
12524	hardcode_libdir_flag_spec=' '
12525	allow_undefined_flag=unsupported
12526	# Tell ltmain to make .lib files, not .a files.
12527	libext=lib
12528	# Tell ltmain to make .dll files, not .so files.
12529	shrext_cmds=".dll"
12530	# FIXME: Setting linknames here is a bad hack.
12531	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12532	# The linker will automatically build a .lib file if we build a DLL.
12533	old_archive_from_new_cmds='true'
12534	# FIXME: Should let the user specify the lib program.
12535	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12536	enable_shared_with_static_runtimes=yes
12537	;;
12538      esac
12539      ;;
12540
12541    darwin* | rhapsody*)
12542
12543
12544  archive_cmds_need_lc=no
12545  hardcode_direct=no
12546  hardcode_automatic=yes
12547  hardcode_shlibpath_var=unsupported
12548  if test "$lt_cv_ld_force_load" = "yes"; then
12549    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12550  else
12551    whole_archive_flag_spec=''
12552  fi
12553  link_all_deplibs=yes
12554  allow_undefined_flag="$_lt_dar_allow_undefined"
12555  case $cc_basename in
12556     ifort*) _lt_dar_can_shared=yes ;;
12557     *) _lt_dar_can_shared=$GCC ;;
12558  esac
12559  if test "$_lt_dar_can_shared" = "yes"; then
12560    output_verbose_link_cmd=func_echo_all
12561    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12562    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12563    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12564    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12565
12566  else
12567  ld_shlibs=no
12568  fi
12569
12570      ;;
12571
12572    dgux*)
12573      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574      hardcode_libdir_flag_spec='-L$libdir'
12575      hardcode_shlibpath_var=no
12576      ;;
12577
12578    freebsd1*)
12579      ld_shlibs=no
12580      ;;
12581
12582    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12583    # support.  Future versions do this automatically, but an explicit c++rt0.o
12584    # does not break anything, and helps significantly (at the cost of a little
12585    # extra space).
12586    freebsd2.2*)
12587      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12588      hardcode_libdir_flag_spec='-R$libdir'
12589      hardcode_direct=yes
12590      hardcode_shlibpath_var=no
12591      ;;
12592
12593    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12594    freebsd2*)
12595      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12596      hardcode_direct=yes
12597      hardcode_minus_L=yes
12598      hardcode_shlibpath_var=no
12599      ;;
12600
12601    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12602    freebsd* | dragonfly*)
12603      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12604      hardcode_libdir_flag_spec='-R$libdir'
12605      hardcode_direct=yes
12606      hardcode_shlibpath_var=no
12607      ;;
12608
12609    hpux9*)
12610      if test "$GCC" = yes; then
12611	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12612      else
12613	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'
12614      fi
12615      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12616      hardcode_libdir_separator=:
12617      hardcode_direct=yes
12618
12619      # hardcode_minus_L: Not really in the search PATH,
12620      # but as the default location of the library.
12621      hardcode_minus_L=yes
12622      export_dynamic_flag_spec='${wl}-E'
12623      ;;
12624
12625    hpux10*)
12626      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12627	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12628      else
12629	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12630      fi
12631      if test "$with_gnu_ld" = no; then
12632	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12633	hardcode_libdir_flag_spec_ld='+b $libdir'
12634	hardcode_libdir_separator=:
12635	hardcode_direct=yes
12636	hardcode_direct_absolute=yes
12637	export_dynamic_flag_spec='${wl}-E'
12638	# hardcode_minus_L: Not really in the search PATH,
12639	# but as the default location of the library.
12640	hardcode_minus_L=yes
12641      fi
12642      ;;
12643
12644    hpux11*)
12645      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12646	case $host_cpu in
12647	hppa*64*)
12648	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12649	  ;;
12650	ia64*)
12651	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12652	  ;;
12653	*)
12654	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12655	  ;;
12656	esac
12657      else
12658	case $host_cpu in
12659	hppa*64*)
12660	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12661	  ;;
12662	ia64*)
12663	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12664	  ;;
12665	*)
12666
12667	  # Older versions of the 11.00 compiler do not understand -b yet
12668	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12669	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12670$as_echo_n "checking if $CC understands -b... " >&6; }
12671if ${lt_cv_prog_compiler__b+:} false; then :
12672  $as_echo_n "(cached) " >&6
12673else
12674  lt_cv_prog_compiler__b=no
12675   save_LDFLAGS="$LDFLAGS"
12676   LDFLAGS="$LDFLAGS -b"
12677   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12678   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12679     # The linker can only warn and ignore the option if not recognized
12680     # So say no if there are warnings
12681     if test -s conftest.err; then
12682       # Append any errors to the config.log.
12683       cat conftest.err 1>&5
12684       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12685       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12686       if diff conftest.exp conftest.er2 >/dev/null; then
12687         lt_cv_prog_compiler__b=yes
12688       fi
12689     else
12690       lt_cv_prog_compiler__b=yes
12691     fi
12692   fi
12693   $RM -r conftest*
12694   LDFLAGS="$save_LDFLAGS"
12695
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12698$as_echo "$lt_cv_prog_compiler__b" >&6; }
12699
12700if test x"$lt_cv_prog_compiler__b" = xyes; then
12701    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12702else
12703    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12704fi
12705
12706	  ;;
12707	esac
12708      fi
12709      if test "$with_gnu_ld" = no; then
12710	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12711	hardcode_libdir_separator=:
12712
12713	case $host_cpu in
12714	hppa*64*|ia64*)
12715	  hardcode_direct=no
12716	  hardcode_shlibpath_var=no
12717	  ;;
12718	*)
12719	  hardcode_direct=yes
12720	  hardcode_direct_absolute=yes
12721	  export_dynamic_flag_spec='${wl}-E'
12722
12723	  # hardcode_minus_L: Not really in the search PATH,
12724	  # but as the default location of the library.
12725	  hardcode_minus_L=yes
12726	  ;;
12727	esac
12728      fi
12729      ;;
12730
12731    irix5* | irix6* | nonstopux*)
12732      if test "$GCC" = yes; then
12733	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12734	# Try to use the -exported_symbol ld option, if it does not
12735	# work, assume that -exports_file does not work either and
12736	# implicitly export all symbols.
12737	# This should be the same for all languages, so no per-tag cache variable.
12738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12739$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12740if ${lt_cv_irix_exported_symbol+:} false; then :
12741  $as_echo_n "(cached) " >&6
12742else
12743  save_LDFLAGS="$LDFLAGS"
12744	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12745	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746/* end confdefs.h.  */
12747int foo (void) { return 0; }
12748_ACEOF
12749if ac_fn_c_try_link "$LINENO"; then :
12750  lt_cv_irix_exported_symbol=yes
12751else
12752  lt_cv_irix_exported_symbol=no
12753fi
12754rm -f core conftest.err conftest.$ac_objext \
12755    conftest$ac_exeext conftest.$ac_ext
12756           LDFLAGS="$save_LDFLAGS"
12757fi
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12759$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12760	if test "$lt_cv_irix_exported_symbol" = yes; then
12761          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12762	fi
12763      else
12764	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12765	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12766      fi
12767      archive_cmds_need_lc='no'
12768      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12769      hardcode_libdir_separator=:
12770      inherit_rpath=yes
12771      link_all_deplibs=yes
12772      ;;
12773
12774    netbsd*)
12775      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12776	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12777      else
12778	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12779      fi
12780      hardcode_libdir_flag_spec='-R$libdir'
12781      hardcode_direct=yes
12782      hardcode_shlibpath_var=no
12783      ;;
12784
12785    newsos6)
12786      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12787      hardcode_direct=yes
12788      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12789      hardcode_libdir_separator=:
12790      hardcode_shlibpath_var=no
12791      ;;
12792
12793    *nto* | *qnx*)
12794      ;;
12795
12796    openbsd*)
12797      if test -f /usr/libexec/ld.so; then
12798	hardcode_direct=yes
12799	hardcode_shlibpath_var=no
12800	hardcode_direct_absolute=yes
12801	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12802	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12803	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12804	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12805	  export_dynamic_flag_spec='${wl}-E'
12806	else
12807	  case $host_os in
12808	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12809	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12810	     hardcode_libdir_flag_spec='-R$libdir'
12811	     ;;
12812	   *)
12813	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12814	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12815	     ;;
12816	  esac
12817	fi
12818      else
12819	ld_shlibs=no
12820      fi
12821      ;;
12822
12823    os2*)
12824      hardcode_libdir_flag_spec='-L$libdir'
12825      hardcode_minus_L=yes
12826      allow_undefined_flag=unsupported
12827      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'
12828      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12829      ;;
12830
12831    osf3*)
12832      if test "$GCC" = yes; then
12833	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12834	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12835      else
12836	allow_undefined_flag=' -expect_unresolved \*'
12837	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12838      fi
12839      archive_cmds_need_lc='no'
12840      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12841      hardcode_libdir_separator=:
12842      ;;
12843
12844    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12845      if test "$GCC" = yes; then
12846	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12847	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12848	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12849      else
12850	allow_undefined_flag=' -expect_unresolved \*'
12851	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12852	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12853	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12854
12855	# Both c and cxx compiler support -rpath directly
12856	hardcode_libdir_flag_spec='-rpath $libdir'
12857      fi
12858      archive_cmds_need_lc='no'
12859      hardcode_libdir_separator=:
12860      ;;
12861
12862    solaris*)
12863      no_undefined_flag=' -z defs'
12864      if test "$GCC" = yes; then
12865	wlarc='${wl}'
12866	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12867	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12868	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12869      else
12870	case `$CC -V 2>&1` in
12871	*"Compilers 5.0"*)
12872	  wlarc=''
12873	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12874	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12875	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12876	  ;;
12877	*)
12878	  wlarc='${wl}'
12879	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12880	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12881	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12882	  ;;
12883	esac
12884      fi
12885      hardcode_libdir_flag_spec='-R$libdir'
12886      hardcode_shlibpath_var=no
12887      case $host_os in
12888      solaris2.[0-5] | solaris2.[0-5].*) ;;
12889      *)
12890	# The compiler driver will combine and reorder linker options,
12891	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12892	# but is careful enough not to reorder.
12893	# Supported since Solaris 2.6 (maybe 2.5.1?)
12894	if test "$GCC" = yes; then
12895	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12896	else
12897	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12898	fi
12899	;;
12900      esac
12901      link_all_deplibs=yes
12902      ;;
12903
12904    sunos4*)
12905      if test "x$host_vendor" = xsequent; then
12906	# Use $CC to link under sequent, because it throws in some extra .o
12907	# files that make .init and .fini sections work.
12908	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12909      else
12910	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12911      fi
12912      hardcode_libdir_flag_spec='-L$libdir'
12913      hardcode_direct=yes
12914      hardcode_minus_L=yes
12915      hardcode_shlibpath_var=no
12916      ;;
12917
12918    sysv4)
12919      case $host_vendor in
12920	sni)
12921	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922	  hardcode_direct=yes # is this really true???
12923	;;
12924	siemens)
12925	  ## LD is ld it makes a PLAMLIB
12926	  ## CC just makes a GrossModule.
12927	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12928	  reload_cmds='$CC -r -o $output$reload_objs'
12929	  hardcode_direct=no
12930        ;;
12931	motorola)
12932	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12933	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12934	;;
12935      esac
12936      runpath_var='LD_RUN_PATH'
12937      hardcode_shlibpath_var=no
12938      ;;
12939
12940    sysv4.3*)
12941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942      hardcode_shlibpath_var=no
12943      export_dynamic_flag_spec='-Bexport'
12944      ;;
12945
12946    sysv4*MP*)
12947      if test -d /usr/nec; then
12948	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12949	hardcode_shlibpath_var=no
12950	runpath_var=LD_RUN_PATH
12951	hardcode_runpath_var=yes
12952	ld_shlibs=yes
12953      fi
12954      ;;
12955
12956    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12957      no_undefined_flag='${wl}-z,text'
12958      archive_cmds_need_lc=no
12959      hardcode_shlibpath_var=no
12960      runpath_var='LD_RUN_PATH'
12961
12962      if test "$GCC" = yes; then
12963	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12965      else
12966	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12967	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968      fi
12969      ;;
12970
12971    sysv5* | sco3.2v5* | sco5v6*)
12972      # Note: We can NOT use -z defs as we might desire, because we do not
12973      # link with -lc, and that would cause any symbols used from libc to
12974      # always be unresolved, which means just about no library would
12975      # ever link correctly.  If we're not using GNU ld we use -z text
12976      # though, which does catch some bad symbols but isn't as heavy-handed
12977      # as -z defs.
12978      no_undefined_flag='${wl}-z,text'
12979      allow_undefined_flag='${wl}-z,nodefs'
12980      archive_cmds_need_lc=no
12981      hardcode_shlibpath_var=no
12982      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12983      hardcode_libdir_separator=':'
12984      link_all_deplibs=yes
12985      export_dynamic_flag_spec='${wl}-Bexport'
12986      runpath_var='LD_RUN_PATH'
12987
12988      if test "$GCC" = yes; then
12989	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12990	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12991      else
12992	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12993	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12994      fi
12995      ;;
12996
12997    uts4*)
12998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12999      hardcode_libdir_flag_spec='-L$libdir'
13000      hardcode_shlibpath_var=no
13001      ;;
13002
13003    *)
13004      ld_shlibs=no
13005      ;;
13006    esac
13007
13008    if test x$host_vendor = xsni; then
13009      case $host in
13010      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13011	export_dynamic_flag_spec='${wl}-Blargedynsym'
13012	;;
13013      esac
13014    fi
13015  fi
13016
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13018$as_echo "$ld_shlibs" >&6; }
13019test "$ld_shlibs" = no && can_build_shared=no
13020
13021with_gnu_ld=$with_gnu_ld
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037#
13038# Do we need to explicitly link libc?
13039#
13040case "x$archive_cmds_need_lc" in
13041x|xyes)
13042  # Assume -lc should be added
13043  archive_cmds_need_lc=yes
13044
13045  if test "$enable_shared" = yes && test "$GCC" = yes; then
13046    case $archive_cmds in
13047    *'~'*)
13048      # FIXME: we may have to deal with multi-command sequences.
13049      ;;
13050    '$CC '*)
13051      # Test whether the compiler implicitly links with -lc since on some
13052      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13053      # to ld, don't add -lc before -lgcc.
13054      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13055$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13056if ${lt_cv_archive_cmds_need_lc+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  $RM conftest*
13060	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13061
13062	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13063  (eval $ac_compile) 2>&5
13064  ac_status=$?
13065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066  test $ac_status = 0; } 2>conftest.err; then
13067	  soname=conftest
13068	  lib=conftest
13069	  libobjs=conftest.$ac_objext
13070	  deplibs=
13071	  wl=$lt_prog_compiler_wl
13072	  pic_flag=$lt_prog_compiler_pic
13073	  compiler_flags=-v
13074	  linker_flags=-v
13075	  verstring=
13076	  output_objdir=.
13077	  libname=conftest
13078	  lt_save_allow_undefined_flag=$allow_undefined_flag
13079	  allow_undefined_flag=
13080	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13081  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13082  ac_status=$?
13083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13084  test $ac_status = 0; }
13085	  then
13086	    lt_cv_archive_cmds_need_lc=no
13087	  else
13088	    lt_cv_archive_cmds_need_lc=yes
13089	  fi
13090	  allow_undefined_flag=$lt_save_allow_undefined_flag
13091	else
13092	  cat conftest.err 1>&5
13093	fi
13094	$RM conftest*
13095
13096fi
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13098$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13099      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13100      ;;
13101    esac
13102  fi
13103  ;;
13104esac
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13263$as_echo_n "checking dynamic linker characteristics... " >&6; }
13264
13265if test "$GCC" = yes; then
13266  case $host_os in
13267    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13268    *) lt_awk_arg="/^libraries:/" ;;
13269  esac
13270  case $host_os in
13271    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13272    *) lt_sed_strip_eq="s,=/,/,g" ;;
13273  esac
13274  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13275  case $lt_search_path_spec in
13276  *\;*)
13277    # if the path contains ";" then we assume it to be the separator
13278    # otherwise default to the standard path separator (i.e. ":") - it is
13279    # assumed that no part of a normal pathname contains ";" but that should
13280    # okay in the real world where ";" in dirpaths is itself problematic.
13281    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13282    ;;
13283  *)
13284    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13285    ;;
13286  esac
13287  # Ok, now we have the path, separated by spaces, we can step through it
13288  # and add multilib dir if necessary.
13289  lt_tmp_lt_search_path_spec=
13290  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13291  for lt_sys_path in $lt_search_path_spec; do
13292    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13293      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13294    else
13295      test -d "$lt_sys_path" && \
13296	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13297    fi
13298  done
13299  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13300BEGIN {RS=" "; FS="/|\n";} {
13301  lt_foo="";
13302  lt_count=0;
13303  for (lt_i = NF; lt_i > 0; lt_i--) {
13304    if ($lt_i != "" && $lt_i != ".") {
13305      if ($lt_i == "..") {
13306        lt_count++;
13307      } else {
13308        if (lt_count == 0) {
13309          lt_foo="/" $lt_i lt_foo;
13310        } else {
13311          lt_count--;
13312        }
13313      }
13314    }
13315  }
13316  if (lt_foo != "") { lt_freq[lt_foo]++; }
13317  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13318}'`
13319  # AWK program above erroneously prepends '/' to C:/dos/paths
13320  # for these hosts.
13321  case $host_os in
13322    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13323      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13324  esac
13325  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13326else
13327  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13328fi
13329library_names_spec=
13330libname_spec='lib$name'
13331soname_spec=
13332shrext_cmds=".so"
13333postinstall_cmds=
13334postuninstall_cmds=
13335finish_cmds=
13336finish_eval=
13337shlibpath_var=
13338shlibpath_overrides_runpath=unknown
13339version_type=none
13340dynamic_linker="$host_os ld.so"
13341sys_lib_dlsearch_path_spec="/lib /usr/lib"
13342need_lib_prefix=unknown
13343hardcode_into_libs=no
13344
13345# when you set need_version to no, make sure it does not cause -set_version
13346# flags to be left without arguments
13347need_version=unknown
13348
13349case $host_os in
13350aix3*)
13351  version_type=linux
13352  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13353  shlibpath_var=LIBPATH
13354
13355  # AIX 3 has no versioning support, so we append a major version to the name.
13356  soname_spec='${libname}${release}${shared_ext}$major'
13357  ;;
13358
13359aix[4-9]*)
13360  version_type=linux
13361  need_lib_prefix=no
13362  need_version=no
13363  hardcode_into_libs=yes
13364  if test "$host_cpu" = ia64; then
13365    # AIX 5 supports IA64
13366    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13367    shlibpath_var=LD_LIBRARY_PATH
13368  else
13369    # With GCC up to 2.95.x, collect2 would create an import file
13370    # for dependence libraries.  The import file would start with
13371    # the line `#! .'.  This would cause the generated library to
13372    # depend on `.', always an invalid library.  This was fixed in
13373    # development snapshots of GCC prior to 3.0.
13374    case $host_os in
13375      aix4 | aix4.[01] | aix4.[01].*)
13376      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13377	   echo ' yes '
13378	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13379	:
13380      else
13381	can_build_shared=no
13382      fi
13383      ;;
13384    esac
13385    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13386    # soname into executable. Probably we can add versioning support to
13387    # collect2, so additional links can be useful in future.
13388    if test "$aix_use_runtimelinking" = yes; then
13389      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13390      # instead of lib<name>.a to let people know that these are not
13391      # typical AIX shared libraries.
13392      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13393    else
13394      # We preserve .a as extension for shared libraries through AIX4.2
13395      # and later when we are not doing run time linking.
13396      library_names_spec='${libname}${release}.a $libname.a'
13397      soname_spec='${libname}${release}${shared_ext}$major'
13398    fi
13399    shlibpath_var=LIBPATH
13400  fi
13401  ;;
13402
13403amigaos*)
13404  case $host_cpu in
13405  powerpc)
13406    # Since July 2007 AmigaOS4 officially supports .so libraries.
13407    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13408    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409    ;;
13410  m68k)
13411    library_names_spec='$libname.ixlibrary $libname.a'
13412    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13413    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13414    ;;
13415  esac
13416  ;;
13417
13418beos*)
13419  library_names_spec='${libname}${shared_ext}'
13420  dynamic_linker="$host_os ld.so"
13421  shlibpath_var=LIBRARY_PATH
13422  ;;
13423
13424bsdi[45]*)
13425  version_type=linux
13426  need_version=no
13427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13428  soname_spec='${libname}${release}${shared_ext}$major'
13429  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13430  shlibpath_var=LD_LIBRARY_PATH
13431  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13432  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13433  # the default ld.so.conf also contains /usr/contrib/lib and
13434  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13435  # libtool to hard-code these into programs
13436  ;;
13437
13438cygwin* | mingw* | pw32* | cegcc*)
13439  version_type=windows
13440  shrext_cmds=".dll"
13441  need_version=no
13442  need_lib_prefix=no
13443
13444  case $GCC,$cc_basename in
13445  yes,*)
13446    # gcc
13447    library_names_spec='$libname.dll.a'
13448    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13449    postinstall_cmds='base_file=`basename \${file}`~
13450      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13451      dldir=$destdir/`dirname \$dlpath`~
13452      test -d \$dldir || mkdir -p \$dldir~
13453      $install_prog $dir/$dlname \$dldir/$dlname~
13454      chmod a+x \$dldir/$dlname~
13455      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13456        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13457      fi'
13458    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13459      dlpath=$dir/\$dldll~
13460       $RM \$dlpath'
13461    shlibpath_overrides_runpath=yes
13462
13463    case $host_os in
13464    cygwin*)
13465      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13466      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13467
13468      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13469      ;;
13470    mingw* | cegcc*)
13471      # MinGW DLLs use traditional 'lib' prefix
13472      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13473      ;;
13474    pw32*)
13475      # pw32 DLLs use 'pw' prefix rather than 'lib'
13476      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13477      ;;
13478    esac
13479    dynamic_linker='Win32 ld.exe'
13480    ;;
13481
13482  *,cl*)
13483    # Native MSVC
13484    libname_spec='$name'
13485    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13486    library_names_spec='${libname}.dll.lib'
13487
13488    case $build_os in
13489    mingw*)
13490      sys_lib_search_path_spec=
13491      lt_save_ifs=$IFS
13492      IFS=';'
13493      for lt_path in $LIB
13494      do
13495        IFS=$lt_save_ifs
13496        # Let DOS variable expansion print the short 8.3 style file name.
13497        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13498        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13499      done
13500      IFS=$lt_save_ifs
13501      # Convert to MSYS style.
13502      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13503      ;;
13504    cygwin*)
13505      # Convert to unix form, then to dos form, then back to unix form
13506      # but this time dos style (no spaces!) so that the unix form looks
13507      # like /cygdrive/c/PROGRA~1:/cygdr...
13508      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13509      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13510      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13511      ;;
13512    *)
13513      sys_lib_search_path_spec="$LIB"
13514      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13515        # It is most probably a Windows format PATH.
13516        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13517      else
13518        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13519      fi
13520      # FIXME: find the short name or the path components, as spaces are
13521      # common. (e.g. "Program Files" -> "PROGRA~1")
13522      ;;
13523    esac
13524
13525    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13526    postinstall_cmds='base_file=`basename \${file}`~
13527      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13528      dldir=$destdir/`dirname \$dlpath`~
13529      test -d \$dldir || mkdir -p \$dldir~
13530      $install_prog $dir/$dlname \$dldir/$dlname'
13531    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13532      dlpath=$dir/\$dldll~
13533       $RM \$dlpath'
13534    shlibpath_overrides_runpath=yes
13535    dynamic_linker='Win32 link.exe'
13536    ;;
13537
13538  *)
13539    # Assume MSVC wrapper
13540    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13541    dynamic_linker='Win32 ld.exe'
13542    ;;
13543  esac
13544  # FIXME: first we should search . and the directory the executable is in
13545  shlibpath_var=PATH
13546  ;;
13547
13548darwin* | rhapsody*)
13549  dynamic_linker="$host_os dyld"
13550  version_type=darwin
13551  need_lib_prefix=no
13552  need_version=no
13553  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13554  soname_spec='${libname}${release}${major}$shared_ext'
13555  shlibpath_overrides_runpath=yes
13556  shlibpath_var=DYLD_LIBRARY_PATH
13557  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13558
13559  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13560  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13561  ;;
13562
13563dgux*)
13564  version_type=linux
13565  need_lib_prefix=no
13566  need_version=no
13567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13568  soname_spec='${libname}${release}${shared_ext}$major'
13569  shlibpath_var=LD_LIBRARY_PATH
13570  ;;
13571
13572freebsd1*)
13573  dynamic_linker=no
13574  ;;
13575
13576freebsd* | dragonfly*)
13577  # DragonFly does not have aout.  When/if they implement a new
13578  # versioning mechanism, adjust this.
13579  if test -x /usr/bin/objformat; then
13580    objformat=`/usr/bin/objformat`
13581  else
13582    case $host_os in
13583    freebsd[123]*) objformat=aout ;;
13584    *) objformat=elf ;;
13585    esac
13586  fi
13587  version_type=freebsd-$objformat
13588  case $version_type in
13589    freebsd-elf*)
13590      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13591      need_version=no
13592      need_lib_prefix=no
13593      ;;
13594    freebsd-*)
13595      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13596      need_version=yes
13597      ;;
13598  esac
13599  shlibpath_var=LD_LIBRARY_PATH
13600  case $host_os in
13601  freebsd2*)
13602    shlibpath_overrides_runpath=yes
13603    ;;
13604  freebsd3.[01]* | freebsdelf3.[01]*)
13605    shlibpath_overrides_runpath=yes
13606    hardcode_into_libs=yes
13607    ;;
13608  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13609  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13610    shlibpath_overrides_runpath=no
13611    hardcode_into_libs=yes
13612    ;;
13613  *) # from 4.6 on, and DragonFly
13614    shlibpath_overrides_runpath=yes
13615    hardcode_into_libs=yes
13616    ;;
13617  esac
13618  ;;
13619
13620gnu*)
13621  version_type=linux
13622  need_lib_prefix=no
13623  need_version=no
13624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13625  soname_spec='${libname}${release}${shared_ext}$major'
13626  shlibpath_var=LD_LIBRARY_PATH
13627  hardcode_into_libs=yes
13628  ;;
13629
13630haiku*)
13631  version_type=linux
13632  need_lib_prefix=no
13633  need_version=no
13634  dynamic_linker="$host_os runtime_loader"
13635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13636  soname_spec='${libname}${release}${shared_ext}$major'
13637  shlibpath_var=LIBRARY_PATH
13638  shlibpath_overrides_runpath=yes
13639  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13640  hardcode_into_libs=yes
13641  ;;
13642
13643hpux9* | hpux10* | hpux11*)
13644  # Give a soname corresponding to the major version so that dld.sl refuses to
13645  # link against other versions.
13646  version_type=sunos
13647  need_lib_prefix=no
13648  need_version=no
13649  case $host_cpu in
13650  ia64*)
13651    shrext_cmds='.so'
13652    hardcode_into_libs=yes
13653    dynamic_linker="$host_os dld.so"
13654    shlibpath_var=LD_LIBRARY_PATH
13655    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657    soname_spec='${libname}${release}${shared_ext}$major'
13658    if test "X$HPUX_IA64_MODE" = X32; then
13659      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13660    else
13661      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13662    fi
13663    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13664    ;;
13665  hppa*64*)
13666    shrext_cmds='.sl'
13667    hardcode_into_libs=yes
13668    dynamic_linker="$host_os dld.sl"
13669    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13670    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13671    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672    soname_spec='${libname}${release}${shared_ext}$major'
13673    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13674    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13675    ;;
13676  *)
13677    shrext_cmds='.sl'
13678    dynamic_linker="$host_os dld.sl"
13679    shlibpath_var=SHLIB_PATH
13680    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13681    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682    soname_spec='${libname}${release}${shared_ext}$major'
13683    ;;
13684  esac
13685  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13686  postinstall_cmds='chmod 555 $lib'
13687  # or fails outright, so override atomically:
13688  install_override_mode=555
13689  ;;
13690
13691interix[3-9]*)
13692  version_type=linux
13693  need_lib_prefix=no
13694  need_version=no
13695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13696  soname_spec='${libname}${release}${shared_ext}$major'
13697  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13698  shlibpath_var=LD_LIBRARY_PATH
13699  shlibpath_overrides_runpath=no
13700  hardcode_into_libs=yes
13701  ;;
13702
13703irix5* | irix6* | nonstopux*)
13704  case $host_os in
13705    nonstopux*) version_type=nonstopux ;;
13706    *)
13707	if test "$lt_cv_prog_gnu_ld" = yes; then
13708		version_type=linux
13709	else
13710		version_type=irix
13711	fi ;;
13712  esac
13713  need_lib_prefix=no
13714  need_version=no
13715  soname_spec='${libname}${release}${shared_ext}$major'
13716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13717  case $host_os in
13718  irix5* | nonstopux*)
13719    libsuff= shlibsuff=
13720    ;;
13721  *)
13722    case $LD in # libtool.m4 will add one of these switches to LD
13723    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13724      libsuff= shlibsuff= libmagic=32-bit;;
13725    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13726      libsuff=32 shlibsuff=N32 libmagic=N32;;
13727    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13728      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13729    *) libsuff= shlibsuff= libmagic=never-match;;
13730    esac
13731    ;;
13732  esac
13733  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13734  shlibpath_overrides_runpath=no
13735  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13736  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13737  hardcode_into_libs=yes
13738  ;;
13739
13740# No shared lib support for Linux oldld, aout, or coff.
13741linux*oldld* | linux*aout* | linux*coff*)
13742  dynamic_linker=no
13743  ;;
13744
13745# This must be Linux ELF.
13746linux* | k*bsd*-gnu | kopensolaris*-gnu)
13747  version_type=linux
13748  need_lib_prefix=no
13749  need_version=no
13750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13751  soname_spec='${libname}${release}${shared_ext}$major'
13752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13753  shlibpath_var=LD_LIBRARY_PATH
13754  shlibpath_overrides_runpath=no
13755
13756  # Some binutils ld are patched to set DT_RUNPATH
13757  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13758  $as_echo_n "(cached) " >&6
13759else
13760  lt_cv_shlibpath_overrides_runpath=no
13761    save_LDFLAGS=$LDFLAGS
13762    save_libdir=$libdir
13763    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13764	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766/* end confdefs.h.  */
13767
13768int
13769main ()
13770{
13771
13772  ;
13773  return 0;
13774}
13775_ACEOF
13776if ac_fn_c_try_link "$LINENO"; then :
13777  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13778  lt_cv_shlibpath_overrides_runpath=yes
13779fi
13780fi
13781rm -f core conftest.err conftest.$ac_objext \
13782    conftest$ac_exeext conftest.$ac_ext
13783    LDFLAGS=$save_LDFLAGS
13784    libdir=$save_libdir
13785
13786fi
13787
13788  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13789
13790  # This implies no fast_install, which is unacceptable.
13791  # Some rework will be needed to allow for fast_install
13792  # before this can be enabled.
13793  hardcode_into_libs=yes
13794
13795  # Append ld.so.conf contents to the search path
13796  if test -f /etc/ld.so.conf; then
13797    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13798    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13799  fi
13800
13801  # We used to test for /lib/ld.so.1 and disable shared libraries on
13802  # powerpc, because MkLinux only supported shared libraries with the
13803  # GNU dynamic linker.  Since this was broken with cross compilers,
13804  # most powerpc-linux boxes support dynamic linking these days and
13805  # people can always --disable-shared, the test was removed, and we
13806  # assume the GNU/Linux dynamic linker is in use.
13807  dynamic_linker='GNU/Linux ld.so'
13808  ;;
13809
13810netbsd*)
13811  version_type=sunos
13812  need_lib_prefix=no
13813  need_version=no
13814  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13815    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13816    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13817    dynamic_linker='NetBSD (a.out) ld.so'
13818  else
13819    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13820    soname_spec='${libname}${release}${shared_ext}$major'
13821    dynamic_linker='NetBSD ld.elf_so'
13822  fi
13823  shlibpath_var=LD_LIBRARY_PATH
13824  shlibpath_overrides_runpath=yes
13825  hardcode_into_libs=yes
13826  ;;
13827
13828newsos6)
13829  version_type=linux
13830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831  shlibpath_var=LD_LIBRARY_PATH
13832  shlibpath_overrides_runpath=yes
13833  ;;
13834
13835*nto* | *qnx*)
13836  version_type=qnx
13837  need_lib_prefix=no
13838  need_version=no
13839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840  soname_spec='${libname}${release}${shared_ext}$major'
13841  shlibpath_var=LD_LIBRARY_PATH
13842  shlibpath_overrides_runpath=no
13843  hardcode_into_libs=yes
13844  dynamic_linker='ldqnx.so'
13845  ;;
13846
13847openbsd*)
13848  version_type=sunos
13849  sys_lib_dlsearch_path_spec="/usr/lib"
13850  need_lib_prefix=no
13851  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13852  case $host_os in
13853    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13854    *)				need_version=no  ;;
13855  esac
13856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13857  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13858  shlibpath_var=LD_LIBRARY_PATH
13859  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13860    case $host_os in
13861      openbsd2.[89] | openbsd2.[89].*)
13862	shlibpath_overrides_runpath=no
13863	;;
13864      *)
13865	shlibpath_overrides_runpath=yes
13866	;;
13867      esac
13868  else
13869    shlibpath_overrides_runpath=yes
13870  fi
13871  ;;
13872
13873os2*)
13874  libname_spec='$name'
13875  shrext_cmds=".dll"
13876  need_lib_prefix=no
13877  library_names_spec='$libname${shared_ext} $libname.a'
13878  dynamic_linker='OS/2 ld.exe'
13879  shlibpath_var=LIBPATH
13880  ;;
13881
13882osf3* | osf4* | osf5*)
13883  version_type=osf
13884  need_lib_prefix=no
13885  need_version=no
13886  soname_spec='${libname}${release}${shared_ext}$major'
13887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13888  shlibpath_var=LD_LIBRARY_PATH
13889  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13890  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13891  ;;
13892
13893rdos*)
13894  dynamic_linker=no
13895  ;;
13896
13897solaris*)
13898  version_type=linux
13899  need_lib_prefix=no
13900  need_version=no
13901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902  soname_spec='${libname}${release}${shared_ext}$major'
13903  shlibpath_var=LD_LIBRARY_PATH
13904  shlibpath_overrides_runpath=yes
13905  hardcode_into_libs=yes
13906  # ldd complains unless libraries are executable
13907  postinstall_cmds='chmod +x $lib'
13908  ;;
13909
13910sunos4*)
13911  version_type=sunos
13912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13913  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13914  shlibpath_var=LD_LIBRARY_PATH
13915  shlibpath_overrides_runpath=yes
13916  if test "$with_gnu_ld" = yes; then
13917    need_lib_prefix=no
13918  fi
13919  need_version=yes
13920  ;;
13921
13922sysv4 | sysv4.3*)
13923  version_type=linux
13924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925  soname_spec='${libname}${release}${shared_ext}$major'
13926  shlibpath_var=LD_LIBRARY_PATH
13927  case $host_vendor in
13928    sni)
13929      shlibpath_overrides_runpath=no
13930      need_lib_prefix=no
13931      runpath_var=LD_RUN_PATH
13932      ;;
13933    siemens)
13934      need_lib_prefix=no
13935      ;;
13936    motorola)
13937      need_lib_prefix=no
13938      need_version=no
13939      shlibpath_overrides_runpath=no
13940      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13941      ;;
13942  esac
13943  ;;
13944
13945sysv4*MP*)
13946  if test -d /usr/nec ;then
13947    version_type=linux
13948    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13949    soname_spec='$libname${shared_ext}.$major'
13950    shlibpath_var=LD_LIBRARY_PATH
13951  fi
13952  ;;
13953
13954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13955  version_type=freebsd-elf
13956  need_lib_prefix=no
13957  need_version=no
13958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13959  soname_spec='${libname}${release}${shared_ext}$major'
13960  shlibpath_var=LD_LIBRARY_PATH
13961  shlibpath_overrides_runpath=yes
13962  hardcode_into_libs=yes
13963  if test "$with_gnu_ld" = yes; then
13964    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13965  else
13966    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13967    case $host_os in
13968      sco3.2v5*)
13969        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13970	;;
13971    esac
13972  fi
13973  sys_lib_dlsearch_path_spec='/usr/lib'
13974  ;;
13975
13976tpf*)
13977  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13978  version_type=linux
13979  need_lib_prefix=no
13980  need_version=no
13981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982  shlibpath_var=LD_LIBRARY_PATH
13983  shlibpath_overrides_runpath=no
13984  hardcode_into_libs=yes
13985  ;;
13986
13987uts4*)
13988  version_type=linux
13989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990  soname_spec='${libname}${release}${shared_ext}$major'
13991  shlibpath_var=LD_LIBRARY_PATH
13992  ;;
13993
13994*)
13995  dynamic_linker=no
13996  ;;
13997esac
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13999$as_echo "$dynamic_linker" >&6; }
14000test "$dynamic_linker" = no && can_build_shared=no
14001
14002variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14003if test "$GCC" = yes; then
14004  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14005fi
14006
14007if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14008  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14009fi
14010if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14011  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14012fi
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14106$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14107hardcode_action=
14108if test -n "$hardcode_libdir_flag_spec" ||
14109   test -n "$runpath_var" ||
14110   test "X$hardcode_automatic" = "Xyes" ; then
14111
14112  # We can hardcode non-existent directories.
14113  if test "$hardcode_direct" != no &&
14114     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14115     # have to relink, otherwise we might link with an installed library
14116     # when we should be linking with a yet-to-be-installed one
14117     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14118     test "$hardcode_minus_L" != no; then
14119    # Linking always hardcodes the temporary library directory.
14120    hardcode_action=relink
14121  else
14122    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14123    hardcode_action=immediate
14124  fi
14125else
14126  # We cannot hardcode anything, or else we can only hardcode existing
14127  # directories.
14128  hardcode_action=unsupported
14129fi
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14131$as_echo "$hardcode_action" >&6; }
14132
14133if test "$hardcode_action" = relink ||
14134   test "$inherit_rpath" = yes; then
14135  # Fast installation is not supported
14136  enable_fast_install=no
14137elif test "$shlibpath_overrides_runpath" = yes ||
14138     test "$enable_shared" = no; then
14139  # Fast installation is not necessary
14140  enable_fast_install=needless
14141fi
14142
14143
14144
14145
14146
14147
14148  if test "x$enable_dlopen" != xyes; then
14149  enable_dlopen=unknown
14150  enable_dlopen_self=unknown
14151  enable_dlopen_self_static=unknown
14152else
14153  lt_cv_dlopen=no
14154  lt_cv_dlopen_libs=
14155
14156  case $host_os in
14157  beos*)
14158    lt_cv_dlopen="load_add_on"
14159    lt_cv_dlopen_libs=
14160    lt_cv_dlopen_self=yes
14161    ;;
14162
14163  mingw* | pw32* | cegcc*)
14164    lt_cv_dlopen="LoadLibrary"
14165    lt_cv_dlopen_libs=
14166    ;;
14167
14168  cygwin*)
14169    lt_cv_dlopen="dlopen"
14170    lt_cv_dlopen_libs=
14171    ;;
14172
14173  darwin*)
14174  # if libdl is installed we need to link against it
14175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14176$as_echo_n "checking for dlopen in -ldl... " >&6; }
14177if ${ac_cv_lib_dl_dlopen+:} false; then :
14178  $as_echo_n "(cached) " >&6
14179else
14180  ac_check_lib_save_LIBS=$LIBS
14181LIBS="-ldl  $LIBS"
14182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h.  */
14184
14185/* Override any GCC internal prototype to avoid an error.
14186   Use char because int might match the return type of a GCC
14187   builtin and then its argument prototype would still apply.  */
14188#ifdef __cplusplus
14189extern "C"
14190#endif
14191char dlopen ();
14192int
14193main ()
14194{
14195return dlopen ();
14196  ;
14197  return 0;
14198}
14199_ACEOF
14200if ac_fn_c_try_link "$LINENO"; then :
14201  ac_cv_lib_dl_dlopen=yes
14202else
14203  ac_cv_lib_dl_dlopen=no
14204fi
14205rm -f core conftest.err conftest.$ac_objext \
14206    conftest$ac_exeext conftest.$ac_ext
14207LIBS=$ac_check_lib_save_LIBS
14208fi
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14210$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14211if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14212  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14213else
14214
14215    lt_cv_dlopen="dyld"
14216    lt_cv_dlopen_libs=
14217    lt_cv_dlopen_self=yes
14218
14219fi
14220
14221    ;;
14222
14223  *)
14224    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14225if test "x$ac_cv_func_shl_load" = xyes; then :
14226  lt_cv_dlopen="shl_load"
14227else
14228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14229$as_echo_n "checking for shl_load in -ldld... " >&6; }
14230if ${ac_cv_lib_dld_shl_load+:} false; then :
14231  $as_echo_n "(cached) " >&6
14232else
14233  ac_check_lib_save_LIBS=$LIBS
14234LIBS="-ldld  $LIBS"
14235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236/* end confdefs.h.  */
14237
14238/* Override any GCC internal prototype to avoid an error.
14239   Use char because int might match the return type of a GCC
14240   builtin and then its argument prototype would still apply.  */
14241#ifdef __cplusplus
14242extern "C"
14243#endif
14244char shl_load ();
14245int
14246main ()
14247{
14248return shl_load ();
14249  ;
14250  return 0;
14251}
14252_ACEOF
14253if ac_fn_c_try_link "$LINENO"; then :
14254  ac_cv_lib_dld_shl_load=yes
14255else
14256  ac_cv_lib_dld_shl_load=no
14257fi
14258rm -f core conftest.err conftest.$ac_objext \
14259    conftest$ac_exeext conftest.$ac_ext
14260LIBS=$ac_check_lib_save_LIBS
14261fi
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14263$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14264if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14265  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14266else
14267  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14268if test "x$ac_cv_func_dlopen" = xyes; then :
14269  lt_cv_dlopen="dlopen"
14270else
14271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14272$as_echo_n "checking for dlopen in -ldl... " >&6; }
14273if ${ac_cv_lib_dl_dlopen+:} false; then :
14274  $as_echo_n "(cached) " >&6
14275else
14276  ac_check_lib_save_LIBS=$LIBS
14277LIBS="-ldl  $LIBS"
14278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279/* end confdefs.h.  */
14280
14281/* Override any GCC internal prototype to avoid an error.
14282   Use char because int might match the return type of a GCC
14283   builtin and then its argument prototype would still apply.  */
14284#ifdef __cplusplus
14285extern "C"
14286#endif
14287char dlopen ();
14288int
14289main ()
14290{
14291return dlopen ();
14292  ;
14293  return 0;
14294}
14295_ACEOF
14296if ac_fn_c_try_link "$LINENO"; then :
14297  ac_cv_lib_dl_dlopen=yes
14298else
14299  ac_cv_lib_dl_dlopen=no
14300fi
14301rm -f core conftest.err conftest.$ac_objext \
14302    conftest$ac_exeext conftest.$ac_ext
14303LIBS=$ac_check_lib_save_LIBS
14304fi
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14306$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14307if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14308  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14309else
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14311$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14312if ${ac_cv_lib_svld_dlopen+:} false; then :
14313  $as_echo_n "(cached) " >&6
14314else
14315  ac_check_lib_save_LIBS=$LIBS
14316LIBS="-lsvld  $LIBS"
14317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318/* end confdefs.h.  */
14319
14320/* Override any GCC internal prototype to avoid an error.
14321   Use char because int might match the return type of a GCC
14322   builtin and then its argument prototype would still apply.  */
14323#ifdef __cplusplus
14324extern "C"
14325#endif
14326char dlopen ();
14327int
14328main ()
14329{
14330return dlopen ();
14331  ;
14332  return 0;
14333}
14334_ACEOF
14335if ac_fn_c_try_link "$LINENO"; then :
14336  ac_cv_lib_svld_dlopen=yes
14337else
14338  ac_cv_lib_svld_dlopen=no
14339fi
14340rm -f core conftest.err conftest.$ac_objext \
14341    conftest$ac_exeext conftest.$ac_ext
14342LIBS=$ac_check_lib_save_LIBS
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14345$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14346if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14347  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14348else
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14350$as_echo_n "checking for dld_link in -ldld... " >&6; }
14351if ${ac_cv_lib_dld_dld_link+:} false; then :
14352  $as_echo_n "(cached) " >&6
14353else
14354  ac_check_lib_save_LIBS=$LIBS
14355LIBS="-ldld  $LIBS"
14356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357/* end confdefs.h.  */
14358
14359/* Override any GCC internal prototype to avoid an error.
14360   Use char because int might match the return type of a GCC
14361   builtin and then its argument prototype would still apply.  */
14362#ifdef __cplusplus
14363extern "C"
14364#endif
14365char dld_link ();
14366int
14367main ()
14368{
14369return dld_link ();
14370  ;
14371  return 0;
14372}
14373_ACEOF
14374if ac_fn_c_try_link "$LINENO"; then :
14375  ac_cv_lib_dld_dld_link=yes
14376else
14377  ac_cv_lib_dld_dld_link=no
14378fi
14379rm -f core conftest.err conftest.$ac_objext \
14380    conftest$ac_exeext conftest.$ac_ext
14381LIBS=$ac_check_lib_save_LIBS
14382fi
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14384$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14385if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14386  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14387fi
14388
14389
14390fi
14391
14392
14393fi
14394
14395
14396fi
14397
14398
14399fi
14400
14401
14402fi
14403
14404    ;;
14405  esac
14406
14407  if test "x$lt_cv_dlopen" != xno; then
14408    enable_dlopen=yes
14409  else
14410    enable_dlopen=no
14411  fi
14412
14413  case $lt_cv_dlopen in
14414  dlopen)
14415    save_CPPFLAGS="$CPPFLAGS"
14416    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14417
14418    save_LDFLAGS="$LDFLAGS"
14419    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14420
14421    save_LIBS="$LIBS"
14422    LIBS="$lt_cv_dlopen_libs $LIBS"
14423
14424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14425$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14426if ${lt_cv_dlopen_self+:} false; then :
14427  $as_echo_n "(cached) " >&6
14428else
14429  	  if test "$cross_compiling" = yes; then :
14430  lt_cv_dlopen_self=cross
14431else
14432  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14433  lt_status=$lt_dlunknown
14434  cat > conftest.$ac_ext <<_LT_EOF
14435#line $LINENO "configure"
14436#include "confdefs.h"
14437
14438#if HAVE_DLFCN_H
14439#include <dlfcn.h>
14440#endif
14441
14442#include <stdio.h>
14443
14444#ifdef RTLD_GLOBAL
14445#  define LT_DLGLOBAL		RTLD_GLOBAL
14446#else
14447#  ifdef DL_GLOBAL
14448#    define LT_DLGLOBAL		DL_GLOBAL
14449#  else
14450#    define LT_DLGLOBAL		0
14451#  endif
14452#endif
14453
14454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14455   find out it does not work in some platform. */
14456#ifndef LT_DLLAZY_OR_NOW
14457#  ifdef RTLD_LAZY
14458#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14459#  else
14460#    ifdef DL_LAZY
14461#      define LT_DLLAZY_OR_NOW		DL_LAZY
14462#    else
14463#      ifdef RTLD_NOW
14464#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14465#      else
14466#        ifdef DL_NOW
14467#          define LT_DLLAZY_OR_NOW	DL_NOW
14468#        else
14469#          define LT_DLLAZY_OR_NOW	0
14470#        endif
14471#      endif
14472#    endif
14473#  endif
14474#endif
14475
14476/* When -fvisbility=hidden is used, assume the code has been annotated
14477   correspondingly for the symbols needed.  */
14478#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14479int fnord () __attribute__((visibility("default")));
14480#endif
14481
14482int fnord () { return 42; }
14483int main ()
14484{
14485  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14486  int status = $lt_dlunknown;
14487
14488  if (self)
14489    {
14490      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14491      else
14492        {
14493	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14494          else puts (dlerror ());
14495	}
14496      /* dlclose (self); */
14497    }
14498  else
14499    puts (dlerror ());
14500
14501  return status;
14502}
14503_LT_EOF
14504  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14505  (eval $ac_link) 2>&5
14506  ac_status=$?
14507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14508  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14509    (./conftest; exit; ) >&5 2>/dev/null
14510    lt_status=$?
14511    case x$lt_status in
14512      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14513      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14514      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14515    esac
14516  else :
14517    # compilation failed
14518    lt_cv_dlopen_self=no
14519  fi
14520fi
14521rm -fr conftest*
14522
14523
14524fi
14525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14526$as_echo "$lt_cv_dlopen_self" >&6; }
14527
14528    if test "x$lt_cv_dlopen_self" = xyes; then
14529      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14530      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14531$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14532if ${lt_cv_dlopen_self_static+:} false; then :
14533  $as_echo_n "(cached) " >&6
14534else
14535  	  if test "$cross_compiling" = yes; then :
14536  lt_cv_dlopen_self_static=cross
14537else
14538  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14539  lt_status=$lt_dlunknown
14540  cat > conftest.$ac_ext <<_LT_EOF
14541#line $LINENO "configure"
14542#include "confdefs.h"
14543
14544#if HAVE_DLFCN_H
14545#include <dlfcn.h>
14546#endif
14547
14548#include <stdio.h>
14549
14550#ifdef RTLD_GLOBAL
14551#  define LT_DLGLOBAL		RTLD_GLOBAL
14552#else
14553#  ifdef DL_GLOBAL
14554#    define LT_DLGLOBAL		DL_GLOBAL
14555#  else
14556#    define LT_DLGLOBAL		0
14557#  endif
14558#endif
14559
14560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14561   find out it does not work in some platform. */
14562#ifndef LT_DLLAZY_OR_NOW
14563#  ifdef RTLD_LAZY
14564#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14565#  else
14566#    ifdef DL_LAZY
14567#      define LT_DLLAZY_OR_NOW		DL_LAZY
14568#    else
14569#      ifdef RTLD_NOW
14570#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14571#      else
14572#        ifdef DL_NOW
14573#          define LT_DLLAZY_OR_NOW	DL_NOW
14574#        else
14575#          define LT_DLLAZY_OR_NOW	0
14576#        endif
14577#      endif
14578#    endif
14579#  endif
14580#endif
14581
14582/* When -fvisbility=hidden is used, assume the code has been annotated
14583   correspondingly for the symbols needed.  */
14584#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14585int fnord () __attribute__((visibility("default")));
14586#endif
14587
14588int fnord () { return 42; }
14589int main ()
14590{
14591  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14592  int status = $lt_dlunknown;
14593
14594  if (self)
14595    {
14596      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14597      else
14598        {
14599	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14600          else puts (dlerror ());
14601	}
14602      /* dlclose (self); */
14603    }
14604  else
14605    puts (dlerror ());
14606
14607  return status;
14608}
14609_LT_EOF
14610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14611  (eval $ac_link) 2>&5
14612  ac_status=$?
14613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14615    (./conftest; exit; ) >&5 2>/dev/null
14616    lt_status=$?
14617    case x$lt_status in
14618      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14619      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14620      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14621    esac
14622  else :
14623    # compilation failed
14624    lt_cv_dlopen_self_static=no
14625  fi
14626fi
14627rm -fr conftest*
14628
14629
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14632$as_echo "$lt_cv_dlopen_self_static" >&6; }
14633    fi
14634
14635    CPPFLAGS="$save_CPPFLAGS"
14636    LDFLAGS="$save_LDFLAGS"
14637    LIBS="$save_LIBS"
14638    ;;
14639  esac
14640
14641  case $lt_cv_dlopen_self in
14642  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14643  *) enable_dlopen_self=unknown ;;
14644  esac
14645
14646  case $lt_cv_dlopen_self_static in
14647  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14648  *) enable_dlopen_self_static=unknown ;;
14649  esac
14650fi
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668striplib=
14669old_striplib=
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14671$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14672if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14673  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14674  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14676$as_echo "yes" >&6; }
14677else
14678# FIXME - insert some real tests, host_os isn't really good enough
14679  case $host_os in
14680  darwin*)
14681    if test -n "$STRIP" ; then
14682      striplib="$STRIP -x"
14683      old_striplib="$STRIP -S"
14684      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14685$as_echo "yes" >&6; }
14686    else
14687      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688$as_echo "no" >&6; }
14689    fi
14690    ;;
14691  *)
14692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693$as_echo "no" >&6; }
14694    ;;
14695  esac
14696fi
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709  # Report which library types will actually be built
14710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14711$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14713$as_echo "$can_build_shared" >&6; }
14714
14715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14716$as_echo_n "checking whether to build shared libraries... " >&6; }
14717  test "$can_build_shared" = "no" && enable_shared=no
14718
14719  # On AIX, shared libraries and static libraries use the same namespace, and
14720  # are all built from PIC.
14721  case $host_os in
14722  aix3*)
14723    test "$enable_shared" = yes && enable_static=no
14724    if test -n "$RANLIB"; then
14725      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14726      postinstall_cmds='$RANLIB $lib'
14727    fi
14728    ;;
14729
14730  aix[4-9]*)
14731    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14732      test "$enable_shared" = yes && enable_static=no
14733    fi
14734    ;;
14735  esac
14736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14737$as_echo "$enable_shared" >&6; }
14738
14739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14740$as_echo_n "checking whether to build static libraries... " >&6; }
14741  # Make sure either enable_shared or enable_static is yes.
14742  test "$enable_shared" = yes || enable_static=yes
14743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14744$as_echo "$enable_static" >&6; }
14745
14746
14747
14748
14749fi
14750ac_ext=c
14751ac_cpp='$CPP $CPPFLAGS'
14752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754ac_compiler_gnu=$ac_cv_c_compiler_gnu
14755
14756CC="$lt_save_CC"
14757
14758      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14759    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14760    (test "X$CXX" != "Xg++"))) ; then
14761  ac_ext=cpp
14762ac_cpp='$CXXCPP $CPPFLAGS'
14763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14767$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14768if test -z "$CXXCPP"; then
14769  if ${ac_cv_prog_CXXCPP+:} false; then :
14770  $as_echo_n "(cached) " >&6
14771else
14772      # Double quotes because CXXCPP needs to be expanded
14773    for CXXCPP in "$CXX -E" "/lib/cpp"
14774    do
14775      ac_preproc_ok=false
14776for ac_cxx_preproc_warn_flag in '' yes
14777do
14778  # Use a header file that comes with gcc, so configuring glibc
14779  # with a fresh cross-compiler works.
14780  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14781  # <limits.h> exists even on freestanding compilers.
14782  # On the NeXT, cc -E runs the code through the compiler's parser,
14783  # not just through cpp. "Syntax error" is here to catch this case.
14784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785/* end confdefs.h.  */
14786#ifdef __STDC__
14787# include <limits.h>
14788#else
14789# include <assert.h>
14790#endif
14791		     Syntax error
14792_ACEOF
14793if ac_fn_cxx_try_cpp "$LINENO"; then :
14794
14795else
14796  # Broken: fails on valid input.
14797continue
14798fi
14799rm -f conftest.err conftest.i conftest.$ac_ext
14800
14801  # OK, works on sane cases.  Now check whether nonexistent headers
14802  # can be detected and how.
14803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804/* end confdefs.h.  */
14805#include <ac_nonexistent.h>
14806_ACEOF
14807if ac_fn_cxx_try_cpp "$LINENO"; then :
14808  # Broken: success on invalid input.
14809continue
14810else
14811  # Passes both tests.
14812ac_preproc_ok=:
14813break
14814fi
14815rm -f conftest.err conftest.i conftest.$ac_ext
14816
14817done
14818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14819rm -f conftest.i conftest.err conftest.$ac_ext
14820if $ac_preproc_ok; then :
14821  break
14822fi
14823
14824    done
14825    ac_cv_prog_CXXCPP=$CXXCPP
14826
14827fi
14828  CXXCPP=$ac_cv_prog_CXXCPP
14829else
14830  ac_cv_prog_CXXCPP=$CXXCPP
14831fi
14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14833$as_echo "$CXXCPP" >&6; }
14834ac_preproc_ok=false
14835for ac_cxx_preproc_warn_flag in '' yes
14836do
14837  # Use a header file that comes with gcc, so configuring glibc
14838  # with a fresh cross-compiler works.
14839  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14840  # <limits.h> exists even on freestanding compilers.
14841  # On the NeXT, cc -E runs the code through the compiler's parser,
14842  # not just through cpp. "Syntax error" is here to catch this case.
14843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h.  */
14845#ifdef __STDC__
14846# include <limits.h>
14847#else
14848# include <assert.h>
14849#endif
14850		     Syntax error
14851_ACEOF
14852if ac_fn_cxx_try_cpp "$LINENO"; then :
14853
14854else
14855  # Broken: fails on valid input.
14856continue
14857fi
14858rm -f conftest.err conftest.i conftest.$ac_ext
14859
14860  # OK, works on sane cases.  Now check whether nonexistent headers
14861  # can be detected and how.
14862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h.  */
14864#include <ac_nonexistent.h>
14865_ACEOF
14866if ac_fn_cxx_try_cpp "$LINENO"; then :
14867  # Broken: success on invalid input.
14868continue
14869else
14870  # Passes both tests.
14871ac_preproc_ok=:
14872break
14873fi
14874rm -f conftest.err conftest.i conftest.$ac_ext
14875
14876done
14877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14878rm -f conftest.i conftest.err conftest.$ac_ext
14879if $ac_preproc_ok; then :
14880
14881else
14882  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14884as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14885See \`config.log' for more details" "$LINENO" 5; }
14886fi
14887
14888ac_ext=c
14889ac_cpp='$CPP $CPPFLAGS'
14890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894else
14895  _lt_caught_CXX_error=yes
14896fi
14897
14898ac_ext=cpp
14899ac_cpp='$CXXCPP $CPPFLAGS'
14900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14903
14904archive_cmds_need_lc_CXX=no
14905allow_undefined_flag_CXX=
14906always_export_symbols_CXX=no
14907archive_expsym_cmds_CXX=
14908compiler_needs_object_CXX=no
14909export_dynamic_flag_spec_CXX=
14910hardcode_direct_CXX=no
14911hardcode_direct_absolute_CXX=no
14912hardcode_libdir_flag_spec_CXX=
14913hardcode_libdir_flag_spec_ld_CXX=
14914hardcode_libdir_separator_CXX=
14915hardcode_minus_L_CXX=no
14916hardcode_shlibpath_var_CXX=unsupported
14917hardcode_automatic_CXX=no
14918inherit_rpath_CXX=no
14919module_cmds_CXX=
14920module_expsym_cmds_CXX=
14921link_all_deplibs_CXX=unknown
14922old_archive_cmds_CXX=$old_archive_cmds
14923reload_flag_CXX=$reload_flag
14924reload_cmds_CXX=$reload_cmds
14925no_undefined_flag_CXX=
14926whole_archive_flag_spec_CXX=
14927enable_shared_with_static_runtimes_CXX=no
14928
14929# Source file extension for C++ test sources.
14930ac_ext=cpp
14931
14932# Object file extension for compiled C++ test sources.
14933objext=o
14934objext_CXX=$objext
14935
14936# No sense in running all these tests if we already determined that
14937# the CXX compiler isn't working.  Some variables (like enable_shared)
14938# are currently assumed to apply to all compilers on this platform,
14939# and will be corrupted by setting them based on a non-working compiler.
14940if test "$_lt_caught_CXX_error" != yes; then
14941  # Code to be used in simple compile tests
14942  lt_simple_compile_test_code="int some_variable = 0;"
14943
14944  # Code to be used in simple link tests
14945  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14946
14947  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14948
14949
14950
14951
14952
14953
14954# If no C compiler was specified, use CC.
14955LTCC=${LTCC-"$CC"}
14956
14957# If no C compiler flags were specified, use CFLAGS.
14958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14959
14960# Allow CC to be a program name with arguments.
14961compiler=$CC
14962
14963
14964  # save warnings/boilerplate of simple test code
14965  ac_outfile=conftest.$ac_objext
14966echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14967eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14968_lt_compiler_boilerplate=`cat conftest.err`
14969$RM conftest*
14970
14971  ac_outfile=conftest.$ac_objext
14972echo "$lt_simple_link_test_code" >conftest.$ac_ext
14973eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14974_lt_linker_boilerplate=`cat conftest.err`
14975$RM -r conftest*
14976
14977
14978  # Allow CC to be a program name with arguments.
14979  lt_save_CC=$CC
14980  lt_save_CFLAGS=$CFLAGS
14981  lt_save_LD=$LD
14982  lt_save_GCC=$GCC
14983  GCC=$GXX
14984  lt_save_with_gnu_ld=$with_gnu_ld
14985  lt_save_path_LD=$lt_cv_path_LD
14986  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14987    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14988  else
14989    $as_unset lt_cv_prog_gnu_ld
14990  fi
14991  if test -n "${lt_cv_path_LDCXX+set}"; then
14992    lt_cv_path_LD=$lt_cv_path_LDCXX
14993  else
14994    $as_unset lt_cv_path_LD
14995  fi
14996  test -z "${LDCXX+set}" || LD=$LDCXX
14997  CC=${CXX-"c++"}
14998  CFLAGS=$CXXFLAGS
14999  compiler=$CC
15000  compiler_CXX=$CC
15001  for cc_temp in $compiler""; do
15002  case $cc_temp in
15003    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15004    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15005    \-*) ;;
15006    *) break;;
15007  esac
15008done
15009cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15010
15011
15012  if test -n "$compiler"; then
15013    # We don't want -fno-exception when compiling C++ code, so set the
15014    # no_builtin_flag separately
15015    if test "$GXX" = yes; then
15016      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15017    else
15018      lt_prog_compiler_no_builtin_flag_CXX=
15019    fi
15020
15021    if test "$GXX" = yes; then
15022      # Set up default GNU C++ configuration
15023
15024
15025
15026# Check whether --with-gnu-ld was given.
15027if test "${with_gnu_ld+set}" = set; then :
15028  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15029else
15030  with_gnu_ld=no
15031fi
15032
15033ac_prog=ld
15034if test "$GCC" = yes; then
15035  # Check if gcc -print-prog-name=ld gives a path.
15036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15037$as_echo_n "checking for ld used by $CC... " >&6; }
15038  case $host in
15039  *-*-mingw*)
15040    # gcc leaves a trailing carriage return which upsets mingw
15041    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15042  *)
15043    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15044  esac
15045  case $ac_prog in
15046    # Accept absolute paths.
15047    [\\/]* | ?:[\\/]*)
15048      re_direlt='/[^/][^/]*/\.\./'
15049      # Canonicalize the pathname of ld
15050      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15051      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15052	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15053      done
15054      test -z "$LD" && LD="$ac_prog"
15055      ;;
15056  "")
15057    # If it fails, then pretend we aren't using GCC.
15058    ac_prog=ld
15059    ;;
15060  *)
15061    # If it is relative, then search for the first ld in PATH.
15062    with_gnu_ld=unknown
15063    ;;
15064  esac
15065elif test "$with_gnu_ld" = yes; then
15066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15067$as_echo_n "checking for GNU ld... " >&6; }
15068else
15069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15070$as_echo_n "checking for non-GNU ld... " >&6; }
15071fi
15072if ${lt_cv_path_LD+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075  if test -z "$LD"; then
15076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15077  for ac_dir in $PATH; do
15078    IFS="$lt_save_ifs"
15079    test -z "$ac_dir" && ac_dir=.
15080    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15081      lt_cv_path_LD="$ac_dir/$ac_prog"
15082      # Check to see if the program is GNU ld.  I'd rather use --version,
15083      # but apparently some variants of GNU ld only accept -v.
15084      # Break only if it was the GNU/non-GNU ld that we prefer.
15085      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15086      *GNU* | *'with BFD'*)
15087	test "$with_gnu_ld" != no && break
15088	;;
15089      *)
15090	test "$with_gnu_ld" != yes && break
15091	;;
15092      esac
15093    fi
15094  done
15095  IFS="$lt_save_ifs"
15096else
15097  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15098fi
15099fi
15100
15101LD="$lt_cv_path_LD"
15102if test -n "$LD"; then
15103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15104$as_echo "$LD" >&6; }
15105else
15106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107$as_echo "no" >&6; }
15108fi
15109test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15111$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15112if ${lt_cv_prog_gnu_ld+:} false; then :
15113  $as_echo_n "(cached) " >&6
15114else
15115  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15116case `$LD -v 2>&1 </dev/null` in
15117*GNU* | *'with BFD'*)
15118  lt_cv_prog_gnu_ld=yes
15119  ;;
15120*)
15121  lt_cv_prog_gnu_ld=no
15122  ;;
15123esac
15124fi
15125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15126$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15127with_gnu_ld=$lt_cv_prog_gnu_ld
15128
15129
15130
15131
15132
15133
15134
15135      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15136      # archiving commands below assume that GNU ld is being used.
15137      if test "$with_gnu_ld" = yes; then
15138        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140
15141        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15142        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15143
15144        # If archive_cmds runs LD, not CC, wlarc should be empty
15145        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15146        #     investigate it a little bit more. (MM)
15147        wlarc='${wl}'
15148
15149        # ancient GNU ld didn't support --whole-archive et. al.
15150        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15151	  $GREP 'no-whole-archive' > /dev/null; then
15152          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15153        else
15154          whole_archive_flag_spec_CXX=
15155        fi
15156      else
15157        with_gnu_ld=no
15158        wlarc=
15159
15160        # A generic and very simple default shared library creation
15161        # command for GNU C++ for the case where it uses the native
15162        # linker, instead of GNU ld.  If possible, this setting should
15163        # overridden to take advantage of the native linker features on
15164        # the platform it is being used on.
15165        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15166      fi
15167
15168      # Commands to make compiler produce verbose output that lists
15169      # what "hidden" libraries, object files and flags are used when
15170      # linking a shared library.
15171      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15172
15173    else
15174      GXX=no
15175      with_gnu_ld=no
15176      wlarc=
15177    fi
15178
15179    # PORTME: fill in a description of your system's C++ link characteristics
15180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15181$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15182    ld_shlibs_CXX=yes
15183    case $host_os in
15184      aix3*)
15185        # FIXME: insert proper C++ library support
15186        ld_shlibs_CXX=no
15187        ;;
15188      aix[4-9]*)
15189        if test "$host_cpu" = ia64; then
15190          # On IA64, the linker does run time linking by default, so we don't
15191          # have to do anything special.
15192          aix_use_runtimelinking=no
15193          exp_sym_flag='-Bexport'
15194          no_entry_flag=""
15195        else
15196          aix_use_runtimelinking=no
15197
15198          # Test if we are trying to use run time linking or normal
15199          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15200          # need to do runtime linking.
15201          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15202	    for ld_flag in $LDFLAGS; do
15203	      case $ld_flag in
15204	      *-brtl*)
15205	        aix_use_runtimelinking=yes
15206	        break
15207	        ;;
15208	      esac
15209	    done
15210	    ;;
15211          esac
15212
15213          exp_sym_flag='-bexport'
15214          no_entry_flag='-bnoentry'
15215        fi
15216
15217        # When large executables or shared objects are built, AIX ld can
15218        # have problems creating the table of contents.  If linking a library
15219        # or program results in "error TOC overflow" add -mminimal-toc to
15220        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15221        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15222
15223        archive_cmds_CXX=''
15224        hardcode_direct_CXX=yes
15225        hardcode_direct_absolute_CXX=yes
15226        hardcode_libdir_separator_CXX=':'
15227        link_all_deplibs_CXX=yes
15228        file_list_spec_CXX='${wl}-f,'
15229
15230        if test "$GXX" = yes; then
15231          case $host_os in aix4.[012]|aix4.[012].*)
15232          # We only want to do this on AIX 4.2 and lower, the check
15233          # below for broken collect2 doesn't work under 4.3+
15234	  collect2name=`${CC} -print-prog-name=collect2`
15235	  if test -f "$collect2name" &&
15236	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15237	  then
15238	    # We have reworked collect2
15239	    :
15240	  else
15241	    # We have old collect2
15242	    hardcode_direct_CXX=unsupported
15243	    # It fails to find uninstalled libraries when the uninstalled
15244	    # path is not listed in the libpath.  Setting hardcode_minus_L
15245	    # to unsupported forces relinking
15246	    hardcode_minus_L_CXX=yes
15247	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15248	    hardcode_libdir_separator_CXX=
15249	  fi
15250          esac
15251          shared_flag='-shared'
15252	  if test "$aix_use_runtimelinking" = yes; then
15253	    shared_flag="$shared_flag "'${wl}-G'
15254	  fi
15255        else
15256          # not using gcc
15257          if test "$host_cpu" = ia64; then
15258	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15259	  # chokes on -Wl,-G. The following line is correct:
15260	  shared_flag='-G'
15261          else
15262	    if test "$aix_use_runtimelinking" = yes; then
15263	      shared_flag='${wl}-G'
15264	    else
15265	      shared_flag='${wl}-bM:SRE'
15266	    fi
15267          fi
15268        fi
15269
15270        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15271        # It seems that -bexpall does not export symbols beginning with
15272        # underscore (_), so it is better to generate a list of symbols to
15273	# export.
15274        always_export_symbols_CXX=yes
15275        if test "$aix_use_runtimelinking" = yes; then
15276          # Warning - without using the other runtime loading flags (-brtl),
15277          # -berok will link without error, but may produce a broken library.
15278          allow_undefined_flag_CXX='-berok'
15279          # Determine the default libpath from the value encoded in an empty
15280          # executable.
15281          if test "${lt_cv_aix_libpath+set}" = set; then
15282  aix_libpath=$lt_cv_aix_libpath
15283else
15284  if ${lt_cv_aix_libpath__CXX+:} false; then :
15285  $as_echo_n "(cached) " >&6
15286else
15287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288/* end confdefs.h.  */
15289
15290int
15291main ()
15292{
15293
15294  ;
15295  return 0;
15296}
15297_ACEOF
15298if ac_fn_cxx_try_link "$LINENO"; then :
15299
15300  lt_aix_libpath_sed='
15301      /Import File Strings/,/^$/ {
15302	  /^0/ {
15303	      s/^0  *\([^ ]*\) *$/\1/
15304	      p
15305	  }
15306      }'
15307  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308  # Check for a 64-bit object if we didn't find anything.
15309  if test -z "$lt_cv_aix_libpath__CXX"; then
15310    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311  fi
15312fi
15313rm -f core conftest.err conftest.$ac_objext \
15314    conftest$ac_exeext conftest.$ac_ext
15315  if test -z "$lt_cv_aix_libpath__CXX"; then
15316    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15317  fi
15318
15319fi
15320
15321  aix_libpath=$lt_cv_aix_libpath__CXX
15322fi
15323
15324          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15325
15326          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15327        else
15328          if test "$host_cpu" = ia64; then
15329	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15330	    allow_undefined_flag_CXX="-z nodefs"
15331	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15332          else
15333	    # Determine the default libpath from the value encoded in an
15334	    # empty executable.
15335	    if test "${lt_cv_aix_libpath+set}" = set; then
15336  aix_libpath=$lt_cv_aix_libpath
15337else
15338  if ${lt_cv_aix_libpath__CXX+:} false; then :
15339  $as_echo_n "(cached) " >&6
15340else
15341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342/* end confdefs.h.  */
15343
15344int
15345main ()
15346{
15347
15348  ;
15349  return 0;
15350}
15351_ACEOF
15352if ac_fn_cxx_try_link "$LINENO"; then :
15353
15354  lt_aix_libpath_sed='
15355      /Import File Strings/,/^$/ {
15356	  /^0/ {
15357	      s/^0  *\([^ ]*\) *$/\1/
15358	      p
15359	  }
15360      }'
15361  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15362  # Check for a 64-bit object if we didn't find anything.
15363  if test -z "$lt_cv_aix_libpath__CXX"; then
15364    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15365  fi
15366fi
15367rm -f core conftest.err conftest.$ac_objext \
15368    conftest$ac_exeext conftest.$ac_ext
15369  if test -z "$lt_cv_aix_libpath__CXX"; then
15370    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15371  fi
15372
15373fi
15374
15375  aix_libpath=$lt_cv_aix_libpath__CXX
15376fi
15377
15378	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15379	    # Warning - without using the other run time loading flags,
15380	    # -berok will link without error, but may produce a broken library.
15381	    no_undefined_flag_CXX=' ${wl}-bernotok'
15382	    allow_undefined_flag_CXX=' ${wl}-berok'
15383	    if test "$with_gnu_ld" = yes; then
15384	      # We only use this code for GNU lds that support --whole-archive.
15385	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15386	    else
15387	      # Exported symbols can be pulled into shared objects from archives
15388	      whole_archive_flag_spec_CXX='$convenience'
15389	    fi
15390	    archive_cmds_need_lc_CXX=yes
15391	    # This is similar to how AIX traditionally builds its shared
15392	    # libraries.
15393	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15394          fi
15395        fi
15396        ;;
15397
15398      beos*)
15399	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15400	  allow_undefined_flag_CXX=unsupported
15401	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15402	  # support --undefined.  This deserves some investigation.  FIXME
15403	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15404	else
15405	  ld_shlibs_CXX=no
15406	fi
15407	;;
15408
15409      chorus*)
15410        case $cc_basename in
15411          *)
15412	  # FIXME: insert proper C++ library support
15413	  ld_shlibs_CXX=no
15414	  ;;
15415        esac
15416        ;;
15417
15418      cygwin* | mingw* | pw32* | cegcc*)
15419	case $GXX,$cc_basename in
15420	,cl* | no,cl*)
15421	  # Native MSVC
15422	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15423	  # no search path for DLLs.
15424	  hardcode_libdir_flag_spec_CXX=' '
15425	  allow_undefined_flag_CXX=unsupported
15426	  always_export_symbols_CXX=yes
15427	  file_list_spec_CXX='@'
15428	  # Tell ltmain to make .lib files, not .a files.
15429	  libext=lib
15430	  # Tell ltmain to make .dll files, not .so files.
15431	  shrext_cmds=".dll"
15432	  # FIXME: Setting linknames here is a bad hack.
15433	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15434	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15435	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15436	    else
15437	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15438	    fi~
15439	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15440	    linknames='
15441	  # The linker will not automatically build a static lib if we build a DLL.
15442	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15443	  enable_shared_with_static_runtimes_CXX=yes
15444	  # Don't use ranlib
15445	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15446	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15447	    lt_tool_outputfile="@TOOL_OUTPUT@"~
15448	    case $lt_outputfile in
15449	      *.exe|*.EXE) ;;
15450	      *)
15451		lt_outputfile="$lt_outputfile.exe"
15452		lt_tool_outputfile="$lt_tool_outputfile.exe"
15453		;;
15454	    esac~
15455	    func_to_tool_file "$lt_outputfile"~
15456	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15457	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15458	      $RM "$lt_outputfile.manifest";
15459	    fi'
15460	  ;;
15461	*)
15462	  # g++
15463	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15464	  # as there is no search path for DLLs.
15465	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15466	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15467	  allow_undefined_flag_CXX=unsupported
15468	  always_export_symbols_CXX=no
15469	  enable_shared_with_static_runtimes_CXX=yes
15470
15471	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15472	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15473	    # If the export-symbols file already is a .def file (1st line
15474	    # is EXPORTS), use it as is; otherwise, prepend...
15475	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476	      cp $export_symbols $output_objdir/$soname.def;
15477	    else
15478	      echo EXPORTS > $output_objdir/$soname.def;
15479	      cat $export_symbols >> $output_objdir/$soname.def;
15480	    fi~
15481	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15482	  else
15483	    ld_shlibs_CXX=no
15484	  fi
15485	  ;;
15486	esac
15487	;;
15488      darwin* | rhapsody*)
15489
15490
15491  archive_cmds_need_lc_CXX=no
15492  hardcode_direct_CXX=no
15493  hardcode_automatic_CXX=yes
15494  hardcode_shlibpath_var_CXX=unsupported
15495  if test "$lt_cv_ld_force_load" = "yes"; then
15496    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15497  else
15498    whole_archive_flag_spec_CXX=''
15499  fi
15500  link_all_deplibs_CXX=yes
15501  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15502  case $cc_basename in
15503     ifort*) _lt_dar_can_shared=yes ;;
15504     *) _lt_dar_can_shared=$GCC ;;
15505  esac
15506  if test "$_lt_dar_can_shared" = "yes"; then
15507    output_verbose_link_cmd=func_echo_all
15508    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15509    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15510    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15511    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15512       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15513      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${_lt_dsymutil}"
15514      archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
15515    fi
15516
15517  else
15518  ld_shlibs_CXX=no
15519  fi
15520
15521	;;
15522
15523      dgux*)
15524        case $cc_basename in
15525          ec++*)
15526	    # FIXME: insert proper C++ library support
15527	    ld_shlibs_CXX=no
15528	    ;;
15529          ghcx*)
15530	    # Green Hills C++ Compiler
15531	    # FIXME: insert proper C++ library support
15532	    ld_shlibs_CXX=no
15533	    ;;
15534          *)
15535	    # FIXME: insert proper C++ library support
15536	    ld_shlibs_CXX=no
15537	    ;;
15538        esac
15539        ;;
15540
15541      freebsd[12]*)
15542        # C++ shared libraries reported to be fairly broken before
15543	# switch to ELF
15544        ld_shlibs_CXX=no
15545        ;;
15546
15547      freebsd-elf*)
15548        archive_cmds_need_lc_CXX=no
15549        ;;
15550
15551      freebsd* | dragonfly*)
15552        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15553        # conventions
15554        ld_shlibs_CXX=yes
15555        ;;
15556
15557      gnu*)
15558        ;;
15559
15560      haiku*)
15561        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15562        link_all_deplibs_CXX=yes
15563        ;;
15564
15565      hpux9*)
15566        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15567        hardcode_libdir_separator_CXX=:
15568        export_dynamic_flag_spec_CXX='${wl}-E'
15569        hardcode_direct_CXX=yes
15570        hardcode_minus_L_CXX=yes # Not in the search PATH,
15571				             # but as the default
15572				             # location of the library.
15573
15574        case $cc_basename in
15575          CC*)
15576            # FIXME: insert proper C++ library support
15577            ld_shlibs_CXX=no
15578            ;;
15579          aCC*)
15580            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'
15581            # Commands to make compiler produce verbose output that lists
15582            # what "hidden" libraries, object files and flags are used when
15583            # linking a shared library.
15584            #
15585            # There doesn't appear to be a way to prevent this compiler from
15586            # explicitly linking system object files so we need to strip them
15587            # from the output so that they don't get included in the library
15588            # dependencies.
15589            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15590            ;;
15591          *)
15592            if test "$GXX" = yes; then
15593              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
15594            else
15595              # FIXME: insert proper C++ library support
15596              ld_shlibs_CXX=no
15597            fi
15598            ;;
15599        esac
15600        ;;
15601
15602      hpux10*|hpux11*)
15603        if test $with_gnu_ld = no; then
15604	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15605	  hardcode_libdir_separator_CXX=:
15606
15607          case $host_cpu in
15608            hppa*64*|ia64*)
15609              ;;
15610            *)
15611	      export_dynamic_flag_spec_CXX='${wl}-E'
15612              ;;
15613          esac
15614        fi
15615        case $host_cpu in
15616          hppa*64*|ia64*)
15617            hardcode_direct_CXX=no
15618            hardcode_shlibpath_var_CXX=no
15619            ;;
15620          *)
15621            hardcode_direct_CXX=yes
15622            hardcode_direct_absolute_CXX=yes
15623            hardcode_minus_L_CXX=yes # Not in the search PATH,
15624					         # but as the default
15625					         # location of the library.
15626            ;;
15627        esac
15628
15629        case $cc_basename in
15630          CC*)
15631	    # FIXME: insert proper C++ library support
15632	    ld_shlibs_CXX=no
15633	    ;;
15634          aCC*)
15635	    case $host_cpu in
15636	      hppa*64*)
15637	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15638	        ;;
15639	      ia64*)
15640	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15641	        ;;
15642	      *)
15643	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15644	        ;;
15645	    esac
15646	    # Commands to make compiler produce verbose output that lists
15647	    # what "hidden" libraries, object files and flags are used when
15648	    # linking a shared library.
15649	    #
15650	    # There doesn't appear to be a way to prevent this compiler from
15651	    # explicitly linking system object files so we need to strip them
15652	    # from the output so that they don't get included in the library
15653	    # dependencies.
15654	    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; func_echo_all "$list"'
15655	    ;;
15656          *)
15657	    if test "$GXX" = yes; then
15658	      if test $with_gnu_ld = no; then
15659	        case $host_cpu in
15660	          hppa*64*)
15661	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15662	            ;;
15663	          ia64*)
15664	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15665	            ;;
15666	          *)
15667	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15668	            ;;
15669	        esac
15670	      fi
15671	    else
15672	      # FIXME: insert proper C++ library support
15673	      ld_shlibs_CXX=no
15674	    fi
15675	    ;;
15676        esac
15677        ;;
15678
15679      interix[3-9]*)
15680	hardcode_direct_CXX=no
15681	hardcode_shlibpath_var_CXX=no
15682	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15683	export_dynamic_flag_spec_CXX='${wl}-E'
15684	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15685	# Instead, shared libraries are loaded at an image base (0x10000000 by
15686	# default) and relocated if they conflict, which is a slow very memory
15687	# consuming and fragmenting process.  To avoid this, we pick a random,
15688	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15689	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15690	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15691	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15692	;;
15693      irix5* | irix6*)
15694        case $cc_basename in
15695          CC*)
15696	    # SGI C++
15697	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15698
15699	    # Archives containing C++ object files must be created using
15700	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15701	    # necessary to make sure instantiated templates are included
15702	    # in the archive.
15703	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15704	    ;;
15705          *)
15706	    if test "$GXX" = yes; then
15707	      if test "$with_gnu_ld" = no; then
15708	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15709	      else
15710	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15711	      fi
15712	    fi
15713	    link_all_deplibs_CXX=yes
15714	    ;;
15715        esac
15716        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15717        hardcode_libdir_separator_CXX=:
15718        inherit_rpath_CXX=yes
15719        ;;
15720
15721      linux* | k*bsd*-gnu | kopensolaris*-gnu)
15722        case $cc_basename in
15723          KCC*)
15724	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15725
15726	    # KCC will only create a shared library if the output file
15727	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15728	    # to its proper name (with version) after linking.
15729	    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'
15730	    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'
15731	    # Commands to make compiler produce verbose output that lists
15732	    # what "hidden" libraries, object files and flags are used when
15733	    # linking a shared library.
15734	    #
15735	    # There doesn't appear to be a way to prevent this compiler from
15736	    # explicitly linking system object files so we need to strip them
15737	    # from the output so that they don't get included in the library
15738	    # dependencies.
15739	    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; func_echo_all "$list"'
15740
15741	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15742	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15743
15744	    # Archives containing C++ object files must be created using
15745	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15746	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15747	    ;;
15748	  icpc* | ecpc* )
15749	    # Intel C++
15750	    with_gnu_ld=yes
15751	    # version 8.0 and above of icpc choke on multiply defined symbols
15752	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15753	    # earlier do not add the objects themselves.
15754	    case `$CC -V 2>&1` in
15755	      *"Version 7."*)
15756	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757		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'
15758		;;
15759	      *)  # Version 8.0 or newer
15760	        tmp_idyn=
15761	        case $host_cpu in
15762		  ia64*) tmp_idyn=' -i_dynamic';;
15763		esac
15764	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15765		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'
15766		;;
15767	    esac
15768	    archive_cmds_need_lc_CXX=no
15769	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15770	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15771	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15772	    ;;
15773          pgCC* | pgcpp*)
15774            # Portland Group C++ compiler
15775	    case `$CC -V` in
15776	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15777	      prelink_cmds_CXX='tpldir=Template.dir~
15778		rm -rf $tpldir~
15779		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15780		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15781	      old_archive_cmds_CXX='tpldir=Template.dir~
15782		rm -rf $tpldir~
15783		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15784		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15785		$RANLIB $oldlib'
15786	      archive_cmds_CXX='tpldir=Template.dir~
15787		rm -rf $tpldir~
15788		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15789		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15790	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15791		rm -rf $tpldir~
15792		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15793		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15794	      ;;
15795	    *) # Version 6 and above use weak symbols
15796	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15797	      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'
15798	      ;;
15799	    esac
15800
15801	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15802	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15803	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15804            ;;
15805	  cxx*)
15806	    # Compaq C++
15807	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15808	    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'
15809
15810	    runpath_var=LD_RUN_PATH
15811	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15812	    hardcode_libdir_separator_CXX=:
15813
15814	    # Commands to make compiler produce verbose output that lists
15815	    # what "hidden" libraries, object files and flags are used when
15816	    # linking a shared library.
15817	    #
15818	    # There doesn't appear to be a way to prevent this compiler from
15819	    # explicitly linking system object files so we need to strip them
15820	    # from the output so that they don't get included in the library
15821	    # dependencies.
15822	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
15823	    ;;
15824	  xl* | mpixl* | bgxl*)
15825	    # IBM XL 8.0 on PPC, with GNU ld
15826	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15827	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15828	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15829	    if test "x$supports_anon_versioning" = xyes; then
15830	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15831		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15832		echo "local: *; };" >> $output_objdir/$libname.ver~
15833		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15834	    fi
15835	    ;;
15836	  *)
15837	    case `$CC -V 2>&1 | sed 5q` in
15838	    *Sun\ C*)
15839	      # Sun C++ 5.9
15840	      no_undefined_flag_CXX=' -zdefs'
15841	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15842	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15843	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15844	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15845	      compiler_needs_object_CXX=yes
15846
15847	      # Not sure whether something based on
15848	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15849	      # would be better.
15850	      output_verbose_link_cmd='func_echo_all'
15851
15852	      # Archives containing C++ object files must be created using
15853	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15854	      # necessary to make sure instantiated templates are included
15855	      # in the archive.
15856	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15857	      ;;
15858	    esac
15859	    ;;
15860	esac
15861	;;
15862
15863      lynxos*)
15864        # FIXME: insert proper C++ library support
15865	ld_shlibs_CXX=no
15866	;;
15867
15868      m88k*)
15869        # FIXME: insert proper C++ library support
15870        ld_shlibs_CXX=no
15871	;;
15872
15873      mvs*)
15874        case $cc_basename in
15875          cxx*)
15876	    # FIXME: insert proper C++ library support
15877	    ld_shlibs_CXX=no
15878	    ;;
15879	  *)
15880	    # FIXME: insert proper C++ library support
15881	    ld_shlibs_CXX=no
15882	    ;;
15883	esac
15884	;;
15885
15886      netbsd*)
15887        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15888	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15889	  wlarc=
15890	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15891	  hardcode_direct_CXX=yes
15892	  hardcode_shlibpath_var_CXX=no
15893	fi
15894	# Workaround some broken pre-1.5 toolchains
15895	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15896	;;
15897
15898      *nto* | *qnx*)
15899        ld_shlibs_CXX=yes
15900	;;
15901
15902      openbsd2*)
15903        # C++ shared libraries are fairly broken
15904	ld_shlibs_CXX=no
15905	;;
15906
15907      openbsd*)
15908	if test -f /usr/libexec/ld.so; then
15909	  hardcode_direct_CXX=yes
15910	  hardcode_shlibpath_var_CXX=no
15911	  hardcode_direct_absolute_CXX=yes
15912	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15913	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15914	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15915	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15916	    export_dynamic_flag_spec_CXX='${wl}-E'
15917	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15918	  fi
15919	  output_verbose_link_cmd=func_echo_all
15920	else
15921	  ld_shlibs_CXX=no
15922	fi
15923	;;
15924
15925      osf3* | osf4* | osf5*)
15926        case $cc_basename in
15927          KCC*)
15928	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15929
15930	    # KCC will only create a shared library if the output file
15931	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15932	    # to its proper name (with version) after linking.
15933	    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'
15934
15935	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15936	    hardcode_libdir_separator_CXX=:
15937
15938	    # Archives containing C++ object files must be created using
15939	    # the KAI C++ compiler.
15940	    case $host in
15941	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15942	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15943	    esac
15944	    ;;
15945          RCC*)
15946	    # Rational C++ 2.4.1
15947	    # FIXME: insert proper C++ library support
15948	    ld_shlibs_CXX=no
15949	    ;;
15950          cxx*)
15951	    case $host in
15952	      osf3*)
15953	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15954	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15955	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15956		;;
15957	      *)
15958	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15959	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15960	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15961	          echo "-hidden">> $lib.exp~
15962	          $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~
15963	          $RM $lib.exp'
15964	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15965		;;
15966	    esac
15967
15968	    hardcode_libdir_separator_CXX=:
15969
15970	    # Commands to make compiler produce verbose output that lists
15971	    # what "hidden" libraries, object files and flags are used when
15972	    # linking a shared library.
15973	    #
15974	    # There doesn't appear to be a way to prevent this compiler from
15975	    # explicitly linking system object files so we need to strip them
15976	    # from the output so that they don't get included in the library
15977	    # dependencies.
15978	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
15979	    ;;
15980	  *)
15981	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15982	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15983	      case $host in
15984	        osf3*)
15985	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15986		  ;;
15987	        *)
15988	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15989		  ;;
15990	      esac
15991
15992	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15993	      hardcode_libdir_separator_CXX=:
15994
15995	      # Commands to make compiler produce verbose output that lists
15996	      # what "hidden" libraries, object files and flags are used when
15997	      # linking a shared library.
15998	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15999
16000	    else
16001	      # FIXME: insert proper C++ library support
16002	      ld_shlibs_CXX=no
16003	    fi
16004	    ;;
16005        esac
16006        ;;
16007
16008      psos*)
16009        # FIXME: insert proper C++ library support
16010        ld_shlibs_CXX=no
16011        ;;
16012
16013      sunos4*)
16014        case $cc_basename in
16015          CC*)
16016	    # Sun C++ 4.x
16017	    # FIXME: insert proper C++ library support
16018	    ld_shlibs_CXX=no
16019	    ;;
16020          lcc*)
16021	    # Lucid
16022	    # FIXME: insert proper C++ library support
16023	    ld_shlibs_CXX=no
16024	    ;;
16025          *)
16026	    # FIXME: insert proper C++ library support
16027	    ld_shlibs_CXX=no
16028	    ;;
16029        esac
16030        ;;
16031
16032      solaris*)
16033        case $cc_basename in
16034          CC* | sunCC*)
16035	    # Sun C++ 4.2, 5.x and Centerline C++
16036            archive_cmds_need_lc_CXX=yes
16037	    no_undefined_flag_CXX=' -zdefs'
16038	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16039	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16040	      $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'
16041
16042	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16043	    hardcode_shlibpath_var_CXX=no
16044	    case $host_os in
16045	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16046	      *)
16047		# The compiler driver will combine and reorder linker options,
16048		# but understands `-z linker_flag'.
16049	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16050		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16051	        ;;
16052	    esac
16053	    link_all_deplibs_CXX=yes
16054
16055	    output_verbose_link_cmd='func_echo_all'
16056
16057	    # Archives containing C++ object files must be created using
16058	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16059	    # necessary to make sure instantiated templates are included
16060	    # in the archive.
16061	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16062	    ;;
16063          gcx*)
16064	    # Green Hills C++ Compiler
16065	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16066
16067	    # The C++ compiler must be used to create the archive.
16068	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16069	    ;;
16070          *)
16071	    # GNU C++ compiler with Solaris linker
16072	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16073	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16074	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16075	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16076	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16077		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16078
16079	        # Commands to make compiler produce verbose output that lists
16080	        # what "hidden" libraries, object files and flags are used when
16081	        # linking a shared library.
16082	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16083	      else
16084	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
16085	        # platform.
16086	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16087	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16088		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16089
16090	        # Commands to make compiler produce verbose output that lists
16091	        # what "hidden" libraries, object files and flags are used when
16092	        # linking a shared library.
16093	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16094	      fi
16095
16096	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16097	      case $host_os in
16098		solaris2.[0-5] | solaris2.[0-5].*) ;;
16099		*)
16100		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16101		  ;;
16102	      esac
16103	    fi
16104	    ;;
16105        esac
16106        ;;
16107
16108    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16109      no_undefined_flag_CXX='${wl}-z,text'
16110      archive_cmds_need_lc_CXX=no
16111      hardcode_shlibpath_var_CXX=no
16112      runpath_var='LD_RUN_PATH'
16113
16114      case $cc_basename in
16115        CC*)
16116	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16117	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16118	  ;;
16119	*)
16120	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16121	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16122	  ;;
16123      esac
16124      ;;
16125
16126      sysv5* | sco3.2v5* | sco5v6*)
16127	# Note: We can NOT use -z defs as we might desire, because we do not
16128	# link with -lc, and that would cause any symbols used from libc to
16129	# always be unresolved, which means just about no library would
16130	# ever link correctly.  If we're not using GNU ld we use -z text
16131	# though, which does catch some bad symbols but isn't as heavy-handed
16132	# as -z defs.
16133	no_undefined_flag_CXX='${wl}-z,text'
16134	allow_undefined_flag_CXX='${wl}-z,nodefs'
16135	archive_cmds_need_lc_CXX=no
16136	hardcode_shlibpath_var_CXX=no
16137	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16138	hardcode_libdir_separator_CXX=':'
16139	link_all_deplibs_CXX=yes
16140	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16141	runpath_var='LD_RUN_PATH'
16142
16143	case $cc_basename in
16144          CC*)
16145	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16147	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16148	      '"$old_archive_cmds_CXX"
16149	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16150	      '"$reload_cmds_CXX"
16151	    ;;
16152	  *)
16153	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16154	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16155	    ;;
16156	esac
16157      ;;
16158
16159      tandem*)
16160        case $cc_basename in
16161          NCC*)
16162	    # NonStop-UX NCC 3.20
16163	    # FIXME: insert proper C++ library support
16164	    ld_shlibs_CXX=no
16165	    ;;
16166          *)
16167	    # FIXME: insert proper C++ library support
16168	    ld_shlibs_CXX=no
16169	    ;;
16170        esac
16171        ;;
16172
16173      vxworks*)
16174        # FIXME: insert proper C++ library support
16175        ld_shlibs_CXX=no
16176        ;;
16177
16178      *)
16179        # FIXME: insert proper C++ library support
16180        ld_shlibs_CXX=no
16181        ;;
16182    esac
16183
16184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16185$as_echo "$ld_shlibs_CXX" >&6; }
16186    test "$ld_shlibs_CXX" = no && can_build_shared=no
16187
16188    GCC_CXX="$GXX"
16189    LD_CXX="$LD"
16190
16191    ## CAVEAT EMPTOR:
16192    ## There is no encapsulation within the following macros, do not change
16193    ## the running order or otherwise move them around unless you know exactly
16194    ## what you are doing...
16195    # Dependencies to place before and after the object being linked:
16196predep_objects_CXX=
16197postdep_objects_CXX=
16198predeps_CXX=
16199postdeps_CXX=
16200compiler_lib_search_path_CXX=
16201
16202cat > conftest.$ac_ext <<_LT_EOF
16203class Foo
16204{
16205public:
16206  Foo (void) { a = 0; }
16207private:
16208  int a;
16209};
16210_LT_EOF
16211
16212
16213_lt_libdeps_save_CFLAGS=$CFLAGS
16214case "$CC $CFLAGS " in #(
16215*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16216*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16217esac
16218
16219if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16220  (eval $ac_compile) 2>&5
16221  ac_status=$?
16222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223  test $ac_status = 0; }; then
16224  # Parse the compiler output and extract the necessary
16225  # objects, libraries and library flags.
16226
16227  # Sentinel used to keep track of whether or not we are before
16228  # the conftest object file.
16229  pre_test_object_deps_done=no
16230
16231  for p in `eval "$output_verbose_link_cmd"`; do
16232    case ${prev}${p} in
16233
16234    -L* | -R* | -l*)
16235       # Some compilers place space between "-{L,R}" and the path.
16236       # Remove the space.
16237       if test $p = "-L" ||
16238          test $p = "-R"; then
16239	 prev=$p
16240	 continue
16241       fi
16242
16243       # Expand the sysroot to ease extracting the directories later.
16244       if test -z "$prev"; then
16245         case $p in
16246         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16247         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16248         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16249         esac
16250       fi
16251       case $p in
16252       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16253       esac
16254       if test "$pre_test_object_deps_done" = no; then
16255	 case ${prev} in
16256	 -L | -R)
16257	   # Internal compiler library paths should come after those
16258	   # provided the user.  The postdeps already come after the
16259	   # user supplied libs so there is no need to process them.
16260	   if test -z "$compiler_lib_search_path_CXX"; then
16261	     compiler_lib_search_path_CXX="${prev}${p}"
16262	   else
16263	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16264	   fi
16265	   ;;
16266	 # The "-l" case would never come before the object being
16267	 # linked, so don't bother handling this case.
16268	 esac
16269       else
16270	 if test -z "$postdeps_CXX"; then
16271	   postdeps_CXX="${prev}${p}"
16272	 else
16273	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16274	 fi
16275       fi
16276       prev=
16277       ;;
16278
16279    *.lto.$objext) ;; # Ignore GCC LTO objects
16280    *.$objext)
16281       # This assumes that the test object file only shows up
16282       # once in the compiler output.
16283       if test "$p" = "conftest.$objext"; then
16284	 pre_test_object_deps_done=yes
16285	 continue
16286       fi
16287
16288       if test "$pre_test_object_deps_done" = no; then
16289	 if test -z "$predep_objects_CXX"; then
16290	   predep_objects_CXX="$p"
16291	 else
16292	   predep_objects_CXX="$predep_objects_CXX $p"
16293	 fi
16294       else
16295	 if test -z "$postdep_objects_CXX"; then
16296	   postdep_objects_CXX="$p"
16297	 else
16298	   postdep_objects_CXX="$postdep_objects_CXX $p"
16299	 fi
16300       fi
16301       ;;
16302
16303    *) ;; # Ignore the rest.
16304
16305    esac
16306  done
16307
16308  # Clean up.
16309  rm -f a.out a.exe
16310else
16311  echo "libtool.m4: error: problem compiling CXX test program"
16312fi
16313
16314$RM -f confest.$objext
16315CFLAGS=$_lt_libdeps_save_CFLAGS
16316
16317# PORTME: override above test on systems where it is broken
16318case $host_os in
16319interix[3-9]*)
16320  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16321  # hack all around it, let's just trust "g++" to DTRT.
16322  predep_objects_CXX=
16323  postdep_objects_CXX=
16324  postdeps_CXX=
16325  ;;
16326
16327linux*)
16328  case `$CC -V 2>&1 | sed 5q` in
16329  *Sun\ C*)
16330    # Sun C++ 5.9
16331
16332    # The more standards-conforming stlport4 library is
16333    # incompatible with the Cstd library. Avoid specifying
16334    # it if it's in CXXFLAGS. Ignore libCrun as
16335    # -library=stlport4 depends on it.
16336    case " $CXX $CXXFLAGS " in
16337    *" -library=stlport4 "*)
16338      solaris_use_stlport4=yes
16339      ;;
16340    esac
16341
16342    if test "$solaris_use_stlport4" != yes; then
16343      postdeps_CXX='-library=Cstd -library=Crun'
16344    fi
16345    ;;
16346  esac
16347  ;;
16348
16349solaris*)
16350  case $cc_basename in
16351  CC* | sunCC*)
16352    # The more standards-conforming stlport4 library is
16353    # incompatible with the Cstd library. Avoid specifying
16354    # it if it's in CXXFLAGS. Ignore libCrun as
16355    # -library=stlport4 depends on it.
16356    case " $CXX $CXXFLAGS " in
16357    *" -library=stlport4 "*)
16358      solaris_use_stlport4=yes
16359      ;;
16360    esac
16361
16362    # Adding this requires a known-good setup of shared libraries for
16363    # Sun compiler versions before 5.6, else PIC objects from an old
16364    # archive will be linked into the output, leading to subtle bugs.
16365    if test "$solaris_use_stlport4" != yes; then
16366      postdeps_CXX='-library=Cstd -library=Crun'
16367    fi
16368    ;;
16369  esac
16370  ;;
16371esac
16372
16373
16374case " $postdeps_CXX " in
16375*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16376esac
16377 compiler_lib_search_dirs_CXX=
16378if test -n "${compiler_lib_search_path_CXX}"; then
16379 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16380fi
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412    lt_prog_compiler_wl_CXX=
16413lt_prog_compiler_pic_CXX=
16414lt_prog_compiler_static_CXX=
16415
16416
16417  # C++ specific cases for pic, static, wl, etc.
16418  if test "$GXX" = yes; then
16419    lt_prog_compiler_wl_CXX='-Wl,'
16420    lt_prog_compiler_static_CXX='-static'
16421
16422    case $host_os in
16423    aix*)
16424      # All AIX code is PIC.
16425      if test "$host_cpu" = ia64; then
16426	# AIX 5 now supports IA64 processor
16427	lt_prog_compiler_static_CXX='-Bstatic'
16428      fi
16429      ;;
16430
16431    amigaos*)
16432      case $host_cpu in
16433      powerpc)
16434            # see comment about AmigaOS4 .so support
16435            lt_prog_compiler_pic_CXX='-fPIC'
16436        ;;
16437      m68k)
16438            # FIXME: we need at least 68020 code to build shared libraries, but
16439            # adding the `-m68020' flag to GCC prevents building anything better,
16440            # like `-m68040'.
16441            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16442        ;;
16443      esac
16444      ;;
16445
16446    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16447      # PIC is the default for these OSes.
16448      ;;
16449    mingw* | cygwin* | os2* | pw32* | cegcc*)
16450      # This hack is so that the source file can tell whether it is being
16451      # built for inclusion in a dll (and should export symbols for example).
16452      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16453      # (--disable-auto-import) libraries
16454      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16455      ;;
16456    darwin* | rhapsody*)
16457      # PIC is the default on this platform
16458      # Common symbols not allowed in MH_DYLIB files
16459      lt_prog_compiler_pic_CXX='-fno-common'
16460      ;;
16461    *djgpp*)
16462      # DJGPP does not support shared libraries at all
16463      lt_prog_compiler_pic_CXX=
16464      ;;
16465    haiku*)
16466      # PIC is the default for Haiku.
16467      # The "-static" flag exists, but is broken.
16468      lt_prog_compiler_static_CXX=
16469      ;;
16470    interix[3-9]*)
16471      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16472      # Instead, we relocate shared libraries at runtime.
16473      ;;
16474    sysv4*MP*)
16475      if test -d /usr/nec; then
16476	lt_prog_compiler_pic_CXX=-Kconform_pic
16477      fi
16478      ;;
16479    hpux*)
16480      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16481      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16482      # sets the default TLS model and affects inlining.
16483      case $host_cpu in
16484      hppa*64*)
16485	;;
16486      *)
16487	lt_prog_compiler_pic_CXX='-fPIC'
16488	;;
16489      esac
16490      ;;
16491    *qnx* | *nto*)
16492      # QNX uses GNU C++, but need to define -shared option too, otherwise
16493      # it will coredump.
16494      lt_prog_compiler_pic_CXX='-fPIC -shared'
16495      ;;
16496    *)
16497      lt_prog_compiler_pic_CXX='-fPIC'
16498      ;;
16499    esac
16500  else
16501    case $host_os in
16502      aix[4-9]*)
16503	# All AIX code is PIC.
16504	if test "$host_cpu" = ia64; then
16505	  # AIX 5 now supports IA64 processor
16506	  lt_prog_compiler_static_CXX='-Bstatic'
16507	else
16508	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16509	fi
16510	;;
16511      chorus*)
16512	case $cc_basename in
16513	cxch68*)
16514	  # Green Hills C++ Compiler
16515	  # _LT_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"
16516	  ;;
16517	esac
16518	;;
16519      mingw* | cygwin* | os2* | pw32* | cegcc*)
16520	# This hack is so that the source file can tell whether it is being
16521	# built for inclusion in a dll (and should export symbols for example).
16522	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16523	;;
16524      dgux*)
16525	case $cc_basename in
16526	  ec++*)
16527	    lt_prog_compiler_pic_CXX='-KPIC'
16528	    ;;
16529	  ghcx*)
16530	    # Green Hills C++ Compiler
16531	    lt_prog_compiler_pic_CXX='-pic'
16532	    ;;
16533	  *)
16534	    ;;
16535	esac
16536	;;
16537      freebsd* | dragonfly*)
16538	# FreeBSD uses GNU C++
16539	;;
16540      hpux9* | hpux10* | hpux11*)
16541	case $cc_basename in
16542	  CC*)
16543	    lt_prog_compiler_wl_CXX='-Wl,'
16544	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16545	    if test "$host_cpu" != ia64; then
16546	      lt_prog_compiler_pic_CXX='+Z'
16547	    fi
16548	    ;;
16549	  aCC*)
16550	    lt_prog_compiler_wl_CXX='-Wl,'
16551	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16552	    case $host_cpu in
16553	    hppa*64*|ia64*)
16554	      # +Z the default
16555	      ;;
16556	    *)
16557	      lt_prog_compiler_pic_CXX='+Z'
16558	      ;;
16559	    esac
16560	    ;;
16561	  *)
16562	    ;;
16563	esac
16564	;;
16565      interix*)
16566	# This is c89, which is MS Visual C++ (no shared libs)
16567	# Anyone wants to do a port?
16568	;;
16569      irix5* | irix6* | nonstopux*)
16570	case $cc_basename in
16571	  CC*)
16572	    lt_prog_compiler_wl_CXX='-Wl,'
16573	    lt_prog_compiler_static_CXX='-non_shared'
16574	    # CC pic flag -KPIC is the default.
16575	    ;;
16576	  *)
16577	    ;;
16578	esac
16579	;;
16580      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16581	case $cc_basename in
16582	  KCC*)
16583	    # KAI C++ Compiler
16584	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16585	    lt_prog_compiler_pic_CXX='-fPIC'
16586	    ;;
16587	  ecpc* )
16588	    # old Intel C++ for x86_64 which still supported -KPIC.
16589	    lt_prog_compiler_wl_CXX='-Wl,'
16590	    lt_prog_compiler_pic_CXX='-KPIC'
16591	    lt_prog_compiler_static_CXX='-static'
16592	    ;;
16593	  icpc* )
16594	    # Intel C++, used to be incompatible with GCC.
16595	    # ICC 10 doesn't accept -KPIC any more.
16596	    lt_prog_compiler_wl_CXX='-Wl,'
16597	    lt_prog_compiler_pic_CXX='-fPIC'
16598	    lt_prog_compiler_static_CXX='-static'
16599	    ;;
16600	  pgCC* | pgcpp*)
16601	    # Portland Group C++ compiler
16602	    lt_prog_compiler_wl_CXX='-Wl,'
16603	    lt_prog_compiler_pic_CXX='-fpic'
16604	    lt_prog_compiler_static_CXX='-Bstatic'
16605	    ;;
16606	  cxx*)
16607	    # Compaq C++
16608	    # Make sure the PIC flag is empty.  It appears that all Alpha
16609	    # Linux and Compaq Tru64 Unix objects are PIC.
16610	    lt_prog_compiler_pic_CXX=
16611	    lt_prog_compiler_static_CXX='-non_shared'
16612	    ;;
16613	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16614	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16615	    lt_prog_compiler_wl_CXX='-Wl,'
16616	    lt_prog_compiler_pic_CXX='-qpic'
16617	    lt_prog_compiler_static_CXX='-qstaticlink'
16618	    ;;
16619	  *)
16620	    case `$CC -V 2>&1 | sed 5q` in
16621	    *Sun\ C*)
16622	      # Sun C++ 5.9
16623	      lt_prog_compiler_pic_CXX='-KPIC'
16624	      lt_prog_compiler_static_CXX='-Bstatic'
16625	      lt_prog_compiler_wl_CXX='-Qoption ld '
16626	      ;;
16627	    esac
16628	    ;;
16629	esac
16630	;;
16631      lynxos*)
16632	;;
16633      m88k*)
16634	;;
16635      mvs*)
16636	case $cc_basename in
16637	  cxx*)
16638	    lt_prog_compiler_pic_CXX='-W c,exportall'
16639	    ;;
16640	  *)
16641	    ;;
16642	esac
16643	;;
16644      netbsd*)
16645	;;
16646      *qnx* | *nto*)
16647        # QNX uses GNU C++, but need to define -shared option too, otherwise
16648        # it will coredump.
16649        lt_prog_compiler_pic_CXX='-fPIC -shared'
16650        ;;
16651      osf3* | osf4* | osf5*)
16652	case $cc_basename in
16653	  KCC*)
16654	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16655	    ;;
16656	  RCC*)
16657	    # Rational C++ 2.4.1
16658	    lt_prog_compiler_pic_CXX='-pic'
16659	    ;;
16660	  cxx*)
16661	    # Digital/Compaq C++
16662	    lt_prog_compiler_wl_CXX='-Wl,'
16663	    # Make sure the PIC flag is empty.  It appears that all Alpha
16664	    # Linux and Compaq Tru64 Unix objects are PIC.
16665	    lt_prog_compiler_pic_CXX=
16666	    lt_prog_compiler_static_CXX='-non_shared'
16667	    ;;
16668	  *)
16669	    ;;
16670	esac
16671	;;
16672      psos*)
16673	;;
16674      solaris*)
16675	case $cc_basename in
16676	  CC* | sunCC*)
16677	    # Sun C++ 4.2, 5.x and Centerline C++
16678	    lt_prog_compiler_pic_CXX='-KPIC'
16679	    lt_prog_compiler_static_CXX='-Bstatic'
16680	    lt_prog_compiler_wl_CXX='-Qoption ld '
16681	    ;;
16682	  gcx*)
16683	    # Green Hills C++ Compiler
16684	    lt_prog_compiler_pic_CXX='-PIC'
16685	    ;;
16686	  *)
16687	    ;;
16688	esac
16689	;;
16690      sunos4*)
16691	case $cc_basename in
16692	  CC*)
16693	    # Sun C++ 4.x
16694	    lt_prog_compiler_pic_CXX='-pic'
16695	    lt_prog_compiler_static_CXX='-Bstatic'
16696	    ;;
16697	  lcc*)
16698	    # Lucid
16699	    lt_prog_compiler_pic_CXX='-pic'
16700	    ;;
16701	  *)
16702	    ;;
16703	esac
16704	;;
16705      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16706	case $cc_basename in
16707	  CC*)
16708	    lt_prog_compiler_wl_CXX='-Wl,'
16709	    lt_prog_compiler_pic_CXX='-KPIC'
16710	    lt_prog_compiler_static_CXX='-Bstatic'
16711	    ;;
16712	esac
16713	;;
16714      tandem*)
16715	case $cc_basename in
16716	  NCC*)
16717	    # NonStop-UX NCC 3.20
16718	    lt_prog_compiler_pic_CXX='-KPIC'
16719	    ;;
16720	  *)
16721	    ;;
16722	esac
16723	;;
16724      vxworks*)
16725	;;
16726      *)
16727	lt_prog_compiler_can_build_shared_CXX=no
16728	;;
16729    esac
16730  fi
16731
16732case $host_os in
16733  # For platforms which do not support PIC, -DPIC is meaningless:
16734  *djgpp*)
16735    lt_prog_compiler_pic_CXX=
16736    ;;
16737  *)
16738    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16739    ;;
16740esac
16741
16742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16743$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16744if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16745  $as_echo_n "(cached) " >&6
16746else
16747  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16748fi
16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16750$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16751lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16752
16753#
16754# Check to make sure the PIC flag actually works.
16755#
16756if test -n "$lt_prog_compiler_pic_CXX"; then
16757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16758$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16759if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16760  $as_echo_n "(cached) " >&6
16761else
16762  lt_cv_prog_compiler_pic_works_CXX=no
16763   ac_outfile=conftest.$ac_objext
16764   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16765   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16766   # Insert the option either (1) after the last *FLAGS variable, or
16767   # (2) before a word containing "conftest.", or (3) at the end.
16768   # Note that $ac_compile itself does not contain backslashes and begins
16769   # with a dollar sign (not a hyphen), so the echo should work correctly.
16770   # The option is referenced via a variable to avoid confusing sed.
16771   lt_compile=`echo "$ac_compile" | $SED \
16772   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16773   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16774   -e 's:$: $lt_compiler_flag:'`
16775   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16776   (eval "$lt_compile" 2>conftest.err)
16777   ac_status=$?
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   if (exit $ac_status) && test -s "$ac_outfile"; then
16781     # The compiler can only warn and ignore the option if not recognized
16782     # So say no if there are warnings other than the usual output.
16783     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16784     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16785     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16786       lt_cv_prog_compiler_pic_works_CXX=yes
16787     fi
16788   fi
16789   $RM conftest*
16790
16791fi
16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16793$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16794
16795if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16796    case $lt_prog_compiler_pic_CXX in
16797     "" | " "*) ;;
16798     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16799     esac
16800else
16801    lt_prog_compiler_pic_CXX=
16802     lt_prog_compiler_can_build_shared_CXX=no
16803fi
16804
16805fi
16806
16807
16808
16809
16810
16811#
16812# Check to make sure the static flag actually works.
16813#
16814wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16816$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16817if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16818  $as_echo_n "(cached) " >&6
16819else
16820  lt_cv_prog_compiler_static_works_CXX=no
16821   save_LDFLAGS="$LDFLAGS"
16822   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16823   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16824   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16825     # The linker can only warn and ignore the option if not recognized
16826     # So say no if there are warnings
16827     if test -s conftest.err; then
16828       # Append any errors to the config.log.
16829       cat conftest.err 1>&5
16830       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16831       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16832       if diff conftest.exp conftest.er2 >/dev/null; then
16833         lt_cv_prog_compiler_static_works_CXX=yes
16834       fi
16835     else
16836       lt_cv_prog_compiler_static_works_CXX=yes
16837     fi
16838   fi
16839   $RM -r conftest*
16840   LDFLAGS="$save_LDFLAGS"
16841
16842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16844$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16845
16846if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16847    :
16848else
16849    lt_prog_compiler_static_CXX=
16850fi
16851
16852
16853
16854
16855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16856$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16857if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16858  $as_echo_n "(cached) " >&6
16859else
16860  lt_cv_prog_compiler_c_o_CXX=no
16861   $RM -r conftest 2>/dev/null
16862   mkdir conftest
16863   cd conftest
16864   mkdir out
16865   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16866
16867   lt_compiler_flag="-o out/conftest2.$ac_objext"
16868   # Insert the option either (1) after the last *FLAGS variable, or
16869   # (2) before a word containing "conftest.", or (3) at the end.
16870   # Note that $ac_compile itself does not contain backslashes and begins
16871   # with a dollar sign (not a hyphen), so the echo should work correctly.
16872   lt_compile=`echo "$ac_compile" | $SED \
16873   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16874   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16875   -e 's:$: $lt_compiler_flag:'`
16876   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16877   (eval "$lt_compile" 2>out/conftest.err)
16878   ac_status=$?
16879   cat out/conftest.err >&5
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16882   then
16883     # The compiler can only warn and ignore the option if not recognized
16884     # So say no if there are warnings
16885     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16886     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16887     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16888       lt_cv_prog_compiler_c_o_CXX=yes
16889     fi
16890   fi
16891   chmod u+w . 2>&5
16892   $RM conftest*
16893   # SGI C++ compiler will create directory out/ii_files/ for
16894   # template instantiation
16895   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16896   $RM out/* && rmdir out
16897   cd ..
16898   $RM -r conftest
16899   $RM conftest*
16900
16901fi
16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16903$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16904
16905
16906
16907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16909if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16910  $as_echo_n "(cached) " >&6
16911else
16912  lt_cv_prog_compiler_c_o_CXX=no
16913   $RM -r conftest 2>/dev/null
16914   mkdir conftest
16915   cd conftest
16916   mkdir out
16917   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16918
16919   lt_compiler_flag="-o out/conftest2.$ac_objext"
16920   # Insert the option either (1) after the last *FLAGS variable, or
16921   # (2) before a word containing "conftest.", or (3) at the end.
16922   # Note that $ac_compile itself does not contain backslashes and begins
16923   # with a dollar sign (not a hyphen), so the echo should work correctly.
16924   lt_compile=`echo "$ac_compile" | $SED \
16925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16927   -e 's:$: $lt_compiler_flag:'`
16928   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16929   (eval "$lt_compile" 2>out/conftest.err)
16930   ac_status=$?
16931   cat out/conftest.err >&5
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16934   then
16935     # The compiler can only warn and ignore the option if not recognized
16936     # So say no if there are warnings
16937     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16938     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16939     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16940       lt_cv_prog_compiler_c_o_CXX=yes
16941     fi
16942   fi
16943   chmod u+w . 2>&5
16944   $RM conftest*
16945   # SGI C++ compiler will create directory out/ii_files/ for
16946   # template instantiation
16947   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16948   $RM out/* && rmdir out
16949   cd ..
16950   $RM -r conftest
16951   $RM conftest*
16952
16953fi
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16955$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16956
16957
16958
16959
16960hard_links="nottested"
16961if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16962  # do not overwrite the value of need_locks provided by the user
16963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16964$as_echo_n "checking if we can lock with hard links... " >&6; }
16965  hard_links=yes
16966  $RM conftest*
16967  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16968  touch conftest.a
16969  ln conftest.a conftest.b 2>&5 || hard_links=no
16970  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16972$as_echo "$hard_links" >&6; }
16973  if test "$hard_links" = no; then
16974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16975$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16976    need_locks=warn
16977  fi
16978else
16979  need_locks=no
16980fi
16981
16982
16983
16984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16985$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16986
16987  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16988  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16989  case $host_os in
16990  aix[4-9]*)
16991    # If we're using GNU nm, then we don't want the "-C" option.
16992    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16993    # Also, AIX nm treats weak defined symbols like other global defined
16994    # symbols, whereas GNU nm marks them as "W".
16995    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16996      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16997    else
16998      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'
16999    fi
17000    ;;
17001  pw32*)
17002    export_symbols_cmds_CXX="$ltdll_cmds"
17003    ;;
17004  cygwin* | mingw* | cegcc*)
17005    case $cc_basename in
17006    cl*) ;;
17007    *)
17008      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17009      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17010      ;;
17011    esac
17012    ;;
17013  *)
17014    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17015    ;;
17016  esac
17017
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17019$as_echo "$ld_shlibs_CXX" >&6; }
17020test "$ld_shlibs_CXX" = no && can_build_shared=no
17021
17022with_gnu_ld_CXX=$with_gnu_ld
17023
17024
17025
17026
17027
17028
17029#
17030# Do we need to explicitly link libc?
17031#
17032case "x$archive_cmds_need_lc_CXX" in
17033x|xyes)
17034  # Assume -lc should be added
17035  archive_cmds_need_lc_CXX=yes
17036
17037  if test "$enable_shared" = yes && test "$GCC" = yes; then
17038    case $archive_cmds_CXX in
17039    *'~'*)
17040      # FIXME: we may have to deal with multi-command sequences.
17041      ;;
17042    '$CC '*)
17043      # Test whether the compiler implicitly links with -lc since on some
17044      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17045      # to ld, don't add -lc before -lgcc.
17046      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17047$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17048if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17049  $as_echo_n "(cached) " >&6
17050else
17051  $RM conftest*
17052	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17053
17054	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17055  (eval $ac_compile) 2>&5
17056  ac_status=$?
17057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17058  test $ac_status = 0; } 2>conftest.err; then
17059	  soname=conftest
17060	  lib=conftest
17061	  libobjs=conftest.$ac_objext
17062	  deplibs=
17063	  wl=$lt_prog_compiler_wl_CXX
17064	  pic_flag=$lt_prog_compiler_pic_CXX
17065	  compiler_flags=-v
17066	  linker_flags=-v
17067	  verstring=
17068	  output_objdir=.
17069	  libname=conftest
17070	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17071	  allow_undefined_flag_CXX=
17072	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17073  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17074  ac_status=$?
17075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17076  test $ac_status = 0; }
17077	  then
17078	    lt_cv_archive_cmds_need_lc_CXX=no
17079	  else
17080	    lt_cv_archive_cmds_need_lc_CXX=yes
17081	  fi
17082	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17083	else
17084	  cat conftest.err 1>&5
17085	fi
17086	$RM conftest*
17087
17088fi
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17090$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17091      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17092      ;;
17093    esac
17094  fi
17095  ;;
17096esac
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17162$as_echo_n "checking dynamic linker characteristics... " >&6; }
17163
17164library_names_spec=
17165libname_spec='lib$name'
17166soname_spec=
17167shrext_cmds=".so"
17168postinstall_cmds=
17169postuninstall_cmds=
17170finish_cmds=
17171finish_eval=
17172shlibpath_var=
17173shlibpath_overrides_runpath=unknown
17174version_type=none
17175dynamic_linker="$host_os ld.so"
17176sys_lib_dlsearch_path_spec="/lib /usr/lib"
17177need_lib_prefix=unknown
17178hardcode_into_libs=no
17179
17180# when you set need_version to no, make sure it does not cause -set_version
17181# flags to be left without arguments
17182need_version=unknown
17183
17184case $host_os in
17185aix3*)
17186  version_type=linux
17187  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17188  shlibpath_var=LIBPATH
17189
17190  # AIX 3 has no versioning support, so we append a major version to the name.
17191  soname_spec='${libname}${release}${shared_ext}$major'
17192  ;;
17193
17194aix[4-9]*)
17195  version_type=linux
17196  need_lib_prefix=no
17197  need_version=no
17198  hardcode_into_libs=yes
17199  if test "$host_cpu" = ia64; then
17200    # AIX 5 supports IA64
17201    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17202    shlibpath_var=LD_LIBRARY_PATH
17203  else
17204    # With GCC up to 2.95.x, collect2 would create an import file
17205    # for dependence libraries.  The import file would start with
17206    # the line `#! .'.  This would cause the generated library to
17207    # depend on `.', always an invalid library.  This was fixed in
17208    # development snapshots of GCC prior to 3.0.
17209    case $host_os in
17210      aix4 | aix4.[01] | aix4.[01].*)
17211      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17212	   echo ' yes '
17213	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17214	:
17215      else
17216	can_build_shared=no
17217      fi
17218      ;;
17219    esac
17220    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17221    # soname into executable. Probably we can add versioning support to
17222    # collect2, so additional links can be useful in future.
17223    if test "$aix_use_runtimelinking" = yes; then
17224      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17225      # instead of lib<name>.a to let people know that these are not
17226      # typical AIX shared libraries.
17227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228    else
17229      # We preserve .a as extension for shared libraries through AIX4.2
17230      # and later when we are not doing run time linking.
17231      library_names_spec='${libname}${release}.a $libname.a'
17232      soname_spec='${libname}${release}${shared_ext}$major'
17233    fi
17234    shlibpath_var=LIBPATH
17235  fi
17236  ;;
17237
17238amigaos*)
17239  case $host_cpu in
17240  powerpc)
17241    # Since July 2007 AmigaOS4 officially supports .so libraries.
17242    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244    ;;
17245  m68k)
17246    library_names_spec='$libname.ixlibrary $libname.a'
17247    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17248    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
17249    ;;
17250  esac
17251  ;;
17252
17253beos*)
17254  library_names_spec='${libname}${shared_ext}'
17255  dynamic_linker="$host_os ld.so"
17256  shlibpath_var=LIBRARY_PATH
17257  ;;
17258
17259bsdi[45]*)
17260  version_type=linux
17261  need_version=no
17262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263  soname_spec='${libname}${release}${shared_ext}$major'
17264  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17265  shlibpath_var=LD_LIBRARY_PATH
17266  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17267  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17268  # the default ld.so.conf also contains /usr/contrib/lib and
17269  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17270  # libtool to hard-code these into programs
17271  ;;
17272
17273cygwin* | mingw* | pw32* | cegcc*)
17274  version_type=windows
17275  shrext_cmds=".dll"
17276  need_version=no
17277  need_lib_prefix=no
17278
17279  case $GCC,$cc_basename in
17280  yes,*)
17281    # gcc
17282    library_names_spec='$libname.dll.a'
17283    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17284    postinstall_cmds='base_file=`basename \${file}`~
17285      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17286      dldir=$destdir/`dirname \$dlpath`~
17287      test -d \$dldir || mkdir -p \$dldir~
17288      $install_prog $dir/$dlname \$dldir/$dlname~
17289      chmod a+x \$dldir/$dlname~
17290      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17291        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17292      fi'
17293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17294      dlpath=$dir/\$dldll~
17295       $RM \$dlpath'
17296    shlibpath_overrides_runpath=yes
17297
17298    case $host_os in
17299    cygwin*)
17300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17302
17303      ;;
17304    mingw* | cegcc*)
17305      # MinGW DLLs use traditional 'lib' prefix
17306      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17307      ;;
17308    pw32*)
17309      # pw32 DLLs use 'pw' prefix rather than 'lib'
17310      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17311      ;;
17312    esac
17313    dynamic_linker='Win32 ld.exe'
17314    ;;
17315
17316  *,cl*)
17317    # Native MSVC
17318    libname_spec='$name'
17319    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17320    library_names_spec='${libname}.dll.lib'
17321
17322    case $build_os in
17323    mingw*)
17324      sys_lib_search_path_spec=
17325      lt_save_ifs=$IFS
17326      IFS=';'
17327      for lt_path in $LIB
17328      do
17329        IFS=$lt_save_ifs
17330        # Let DOS variable expansion print the short 8.3 style file name.
17331        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17332        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17333      done
17334      IFS=$lt_save_ifs
17335      # Convert to MSYS style.
17336      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17337      ;;
17338    cygwin*)
17339      # Convert to unix form, then to dos form, then back to unix form
17340      # but this time dos style (no spaces!) so that the unix form looks
17341      # like /cygdrive/c/PROGRA~1:/cygdr...
17342      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17343      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17344      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17345      ;;
17346    *)
17347      sys_lib_search_path_spec="$LIB"
17348      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17349        # It is most probably a Windows format PATH.
17350        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17351      else
17352        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17353      fi
17354      # FIXME: find the short name or the path components, as spaces are
17355      # common. (e.g. "Program Files" -> "PROGRA~1")
17356      ;;
17357    esac
17358
17359    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17360    postinstall_cmds='base_file=`basename \${file}`~
17361      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17362      dldir=$destdir/`dirname \$dlpath`~
17363      test -d \$dldir || mkdir -p \$dldir~
17364      $install_prog $dir/$dlname \$dldir/$dlname'
17365    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17366      dlpath=$dir/\$dldll~
17367       $RM \$dlpath'
17368    shlibpath_overrides_runpath=yes
17369    dynamic_linker='Win32 link.exe'
17370    ;;
17371
17372  *)
17373    # Assume MSVC wrapper
17374    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17375    dynamic_linker='Win32 ld.exe'
17376    ;;
17377  esac
17378  # FIXME: first we should search . and the directory the executable is in
17379  shlibpath_var=PATH
17380  ;;
17381
17382darwin* | rhapsody*)
17383  dynamic_linker="$host_os dyld"
17384  version_type=darwin
17385  need_lib_prefix=no
17386  need_version=no
17387  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17388  soname_spec='${libname}${release}${major}$shared_ext'
17389  shlibpath_overrides_runpath=yes
17390  shlibpath_var=DYLD_LIBRARY_PATH
17391  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17392
17393  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17394  ;;
17395
17396dgux*)
17397  version_type=linux
17398  need_lib_prefix=no
17399  need_version=no
17400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17401  soname_spec='${libname}${release}${shared_ext}$major'
17402  shlibpath_var=LD_LIBRARY_PATH
17403  ;;
17404
17405freebsd1*)
17406  dynamic_linker=no
17407  ;;
17408
17409freebsd* | dragonfly*)
17410  # DragonFly does not have aout.  When/if they implement a new
17411  # versioning mechanism, adjust this.
17412  if test -x /usr/bin/objformat; then
17413    objformat=`/usr/bin/objformat`
17414  else
17415    case $host_os in
17416    freebsd[123]*) objformat=aout ;;
17417    *) objformat=elf ;;
17418    esac
17419  fi
17420  version_type=freebsd-$objformat
17421  case $version_type in
17422    freebsd-elf*)
17423      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17424      need_version=no
17425      need_lib_prefix=no
17426      ;;
17427    freebsd-*)
17428      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17429      need_version=yes
17430      ;;
17431  esac
17432  shlibpath_var=LD_LIBRARY_PATH
17433  case $host_os in
17434  freebsd2*)
17435    shlibpath_overrides_runpath=yes
17436    ;;
17437  freebsd3.[01]* | freebsdelf3.[01]*)
17438    shlibpath_overrides_runpath=yes
17439    hardcode_into_libs=yes
17440    ;;
17441  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17442  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17443    shlibpath_overrides_runpath=no
17444    hardcode_into_libs=yes
17445    ;;
17446  *) # from 4.6 on, and DragonFly
17447    shlibpath_overrides_runpath=yes
17448    hardcode_into_libs=yes
17449    ;;
17450  esac
17451  ;;
17452
17453gnu*)
17454  version_type=linux
17455  need_lib_prefix=no
17456  need_version=no
17457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17458  soname_spec='${libname}${release}${shared_ext}$major'
17459  shlibpath_var=LD_LIBRARY_PATH
17460  hardcode_into_libs=yes
17461  ;;
17462
17463haiku*)
17464  version_type=linux
17465  need_lib_prefix=no
17466  need_version=no
17467  dynamic_linker="$host_os runtime_loader"
17468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17469  soname_spec='${libname}${release}${shared_ext}$major'
17470  shlibpath_var=LIBRARY_PATH
17471  shlibpath_overrides_runpath=yes
17472  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17473  hardcode_into_libs=yes
17474  ;;
17475
17476hpux9* | hpux10* | hpux11*)
17477  # Give a soname corresponding to the major version so that dld.sl refuses to
17478  # link against other versions.
17479  version_type=sunos
17480  need_lib_prefix=no
17481  need_version=no
17482  case $host_cpu in
17483  ia64*)
17484    shrext_cmds='.so'
17485    hardcode_into_libs=yes
17486    dynamic_linker="$host_os dld.so"
17487    shlibpath_var=LD_LIBRARY_PATH
17488    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490    soname_spec='${libname}${release}${shared_ext}$major'
17491    if test "X$HPUX_IA64_MODE" = X32; then
17492      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17493    else
17494      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17495    fi
17496    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17497    ;;
17498  hppa*64*)
17499    shrext_cmds='.sl'
17500    hardcode_into_libs=yes
17501    dynamic_linker="$host_os dld.sl"
17502    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17503    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505    soname_spec='${libname}${release}${shared_ext}$major'
17506    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17507    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17508    ;;
17509  *)
17510    shrext_cmds='.sl'
17511    dynamic_linker="$host_os dld.sl"
17512    shlibpath_var=SHLIB_PATH
17513    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17514    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515    soname_spec='${libname}${release}${shared_ext}$major'
17516    ;;
17517  esac
17518  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17519  postinstall_cmds='chmod 555 $lib'
17520  # or fails outright, so override atomically:
17521  install_override_mode=555
17522  ;;
17523
17524interix[3-9]*)
17525  version_type=linux
17526  need_lib_prefix=no
17527  need_version=no
17528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17529  soname_spec='${libname}${release}${shared_ext}$major'
17530  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17531  shlibpath_var=LD_LIBRARY_PATH
17532  shlibpath_overrides_runpath=no
17533  hardcode_into_libs=yes
17534  ;;
17535
17536irix5* | irix6* | nonstopux*)
17537  case $host_os in
17538    nonstopux*) version_type=nonstopux ;;
17539    *)
17540	if test "$lt_cv_prog_gnu_ld" = yes; then
17541		version_type=linux
17542	else
17543		version_type=irix
17544	fi ;;
17545  esac
17546  need_lib_prefix=no
17547  need_version=no
17548  soname_spec='${libname}${release}${shared_ext}$major'
17549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17550  case $host_os in
17551  irix5* | nonstopux*)
17552    libsuff= shlibsuff=
17553    ;;
17554  *)
17555    case $LD in # libtool.m4 will add one of these switches to LD
17556    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17557      libsuff= shlibsuff= libmagic=32-bit;;
17558    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17559      libsuff=32 shlibsuff=N32 libmagic=N32;;
17560    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17561      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17562    *) libsuff= shlibsuff= libmagic=never-match;;
17563    esac
17564    ;;
17565  esac
17566  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17567  shlibpath_overrides_runpath=no
17568  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17569  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17570  hardcode_into_libs=yes
17571  ;;
17572
17573# No shared lib support for Linux oldld, aout, or coff.
17574linux*oldld* | linux*aout* | linux*coff*)
17575  dynamic_linker=no
17576  ;;
17577
17578# This must be Linux ELF.
17579linux* | k*bsd*-gnu | kopensolaris*-gnu)
17580  version_type=linux
17581  need_lib_prefix=no
17582  need_version=no
17583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584  soname_spec='${libname}${release}${shared_ext}$major'
17585  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17586  shlibpath_var=LD_LIBRARY_PATH
17587  shlibpath_overrides_runpath=no
17588
17589  # Some binutils ld are patched to set DT_RUNPATH
17590  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17591  $as_echo_n "(cached) " >&6
17592else
17593  lt_cv_shlibpath_overrides_runpath=no
17594    save_LDFLAGS=$LDFLAGS
17595    save_libdir=$libdir
17596    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17597	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17598    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599/* end confdefs.h.  */
17600
17601int
17602main ()
17603{
17604
17605  ;
17606  return 0;
17607}
17608_ACEOF
17609if ac_fn_cxx_try_link "$LINENO"; then :
17610  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17611  lt_cv_shlibpath_overrides_runpath=yes
17612fi
17613fi
17614rm -f core conftest.err conftest.$ac_objext \
17615    conftest$ac_exeext conftest.$ac_ext
17616    LDFLAGS=$save_LDFLAGS
17617    libdir=$save_libdir
17618
17619fi
17620
17621  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17622
17623  # This implies no fast_install, which is unacceptable.
17624  # Some rework will be needed to allow for fast_install
17625  # before this can be enabled.
17626  hardcode_into_libs=yes
17627
17628  # Append ld.so.conf contents to the search path
17629  if test -f /etc/ld.so.conf; then
17630    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17631    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17632  fi
17633
17634  # We used to test for /lib/ld.so.1 and disable shared libraries on
17635  # powerpc, because MkLinux only supported shared libraries with the
17636  # GNU dynamic linker.  Since this was broken with cross compilers,
17637  # most powerpc-linux boxes support dynamic linking these days and
17638  # people can always --disable-shared, the test was removed, and we
17639  # assume the GNU/Linux dynamic linker is in use.
17640  dynamic_linker='GNU/Linux ld.so'
17641  ;;
17642
17643netbsd*)
17644  version_type=sunos
17645  need_lib_prefix=no
17646  need_version=no
17647  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17649    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17650    dynamic_linker='NetBSD (a.out) ld.so'
17651  else
17652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17653    soname_spec='${libname}${release}${shared_ext}$major'
17654    dynamic_linker='NetBSD ld.elf_so'
17655  fi
17656  shlibpath_var=LD_LIBRARY_PATH
17657  shlibpath_overrides_runpath=yes
17658  hardcode_into_libs=yes
17659  ;;
17660
17661newsos6)
17662  version_type=linux
17663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664  shlibpath_var=LD_LIBRARY_PATH
17665  shlibpath_overrides_runpath=yes
17666  ;;
17667
17668*nto* | *qnx*)
17669  version_type=qnx
17670  need_lib_prefix=no
17671  need_version=no
17672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673  soname_spec='${libname}${release}${shared_ext}$major'
17674  shlibpath_var=LD_LIBRARY_PATH
17675  shlibpath_overrides_runpath=no
17676  hardcode_into_libs=yes
17677  dynamic_linker='ldqnx.so'
17678  ;;
17679
17680openbsd*)
17681  version_type=sunos
17682  sys_lib_dlsearch_path_spec="/usr/lib"
17683  need_lib_prefix=no
17684  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17685  case $host_os in
17686    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17687    *)				need_version=no  ;;
17688  esac
17689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17690  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17691  shlibpath_var=LD_LIBRARY_PATH
17692  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17693    case $host_os in
17694      openbsd2.[89] | openbsd2.[89].*)
17695	shlibpath_overrides_runpath=no
17696	;;
17697      *)
17698	shlibpath_overrides_runpath=yes
17699	;;
17700      esac
17701  else
17702    shlibpath_overrides_runpath=yes
17703  fi
17704  ;;
17705
17706os2*)
17707  libname_spec='$name'
17708  shrext_cmds=".dll"
17709  need_lib_prefix=no
17710  library_names_spec='$libname${shared_ext} $libname.a'
17711  dynamic_linker='OS/2 ld.exe'
17712  shlibpath_var=LIBPATH
17713  ;;
17714
17715osf3* | osf4* | osf5*)
17716  version_type=osf
17717  need_lib_prefix=no
17718  need_version=no
17719  soname_spec='${libname}${release}${shared_ext}$major'
17720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721  shlibpath_var=LD_LIBRARY_PATH
17722  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17723  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17724  ;;
17725
17726rdos*)
17727  dynamic_linker=no
17728  ;;
17729
17730solaris*)
17731  version_type=linux
17732  need_lib_prefix=no
17733  need_version=no
17734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735  soname_spec='${libname}${release}${shared_ext}$major'
17736  shlibpath_var=LD_LIBRARY_PATH
17737  shlibpath_overrides_runpath=yes
17738  hardcode_into_libs=yes
17739  # ldd complains unless libraries are executable
17740  postinstall_cmds='chmod +x $lib'
17741  ;;
17742
17743sunos4*)
17744  version_type=sunos
17745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17746  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17747  shlibpath_var=LD_LIBRARY_PATH
17748  shlibpath_overrides_runpath=yes
17749  if test "$with_gnu_ld" = yes; then
17750    need_lib_prefix=no
17751  fi
17752  need_version=yes
17753  ;;
17754
17755sysv4 | sysv4.3*)
17756  version_type=linux
17757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758  soname_spec='${libname}${release}${shared_ext}$major'
17759  shlibpath_var=LD_LIBRARY_PATH
17760  case $host_vendor in
17761    sni)
17762      shlibpath_overrides_runpath=no
17763      need_lib_prefix=no
17764      runpath_var=LD_RUN_PATH
17765      ;;
17766    siemens)
17767      need_lib_prefix=no
17768      ;;
17769    motorola)
17770      need_lib_prefix=no
17771      need_version=no
17772      shlibpath_overrides_runpath=no
17773      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17774      ;;
17775  esac
17776  ;;
17777
17778sysv4*MP*)
17779  if test -d /usr/nec ;then
17780    version_type=linux
17781    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17782    soname_spec='$libname${shared_ext}.$major'
17783    shlibpath_var=LD_LIBRARY_PATH
17784  fi
17785  ;;
17786
17787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17788  version_type=freebsd-elf
17789  need_lib_prefix=no
17790  need_version=no
17791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17792  soname_spec='${libname}${release}${shared_ext}$major'
17793  shlibpath_var=LD_LIBRARY_PATH
17794  shlibpath_overrides_runpath=yes
17795  hardcode_into_libs=yes
17796  if test "$with_gnu_ld" = yes; then
17797    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17798  else
17799    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17800    case $host_os in
17801      sco3.2v5*)
17802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17803	;;
17804    esac
17805  fi
17806  sys_lib_dlsearch_path_spec='/usr/lib'
17807  ;;
17808
17809tpf*)
17810  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17811  version_type=linux
17812  need_lib_prefix=no
17813  need_version=no
17814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17815  shlibpath_var=LD_LIBRARY_PATH
17816  shlibpath_overrides_runpath=no
17817  hardcode_into_libs=yes
17818  ;;
17819
17820uts4*)
17821  version_type=linux
17822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823  soname_spec='${libname}${release}${shared_ext}$major'
17824  shlibpath_var=LD_LIBRARY_PATH
17825  ;;
17826
17827*)
17828  dynamic_linker=no
17829  ;;
17830esac
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17832$as_echo "$dynamic_linker" >&6; }
17833test "$dynamic_linker" = no && can_build_shared=no
17834
17835variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17836if test "$GCC" = yes; then
17837  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17838fi
17839
17840if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17841  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17842fi
17843if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17844  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17845fi
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17885$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17886hardcode_action_CXX=
17887if test -n "$hardcode_libdir_flag_spec_CXX" ||
17888   test -n "$runpath_var_CXX" ||
17889   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17890
17891  # We can hardcode non-existent directories.
17892  if test "$hardcode_direct_CXX" != no &&
17893     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17894     # have to relink, otherwise we might link with an installed library
17895     # when we should be linking with a yet-to-be-installed one
17896     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17897     test "$hardcode_minus_L_CXX" != no; then
17898    # Linking always hardcodes the temporary library directory.
17899    hardcode_action_CXX=relink
17900  else
17901    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17902    hardcode_action_CXX=immediate
17903  fi
17904else
17905  # We cannot hardcode anything, or else we can only hardcode existing
17906  # directories.
17907  hardcode_action_CXX=unsupported
17908fi
17909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17910$as_echo "$hardcode_action_CXX" >&6; }
17911
17912if test "$hardcode_action_CXX" = relink ||
17913   test "$inherit_rpath_CXX" = yes; then
17914  # Fast installation is not supported
17915  enable_fast_install=no
17916elif test "$shlibpath_overrides_runpath" = yes ||
17917     test "$enable_shared" = no; then
17918  # Fast installation is not necessary
17919  enable_fast_install=needless
17920fi
17921
17922
17923
17924
17925
17926
17927
17928  fi # test -n "$compiler"
17929
17930  CC=$lt_save_CC
17931  CFLAGS=$lt_save_CFLAGS
17932  LDCXX=$LD
17933  LD=$lt_save_LD
17934  GCC=$lt_save_GCC
17935  with_gnu_ld=$lt_save_with_gnu_ld
17936  lt_cv_path_LDCXX=$lt_cv_path_LD
17937  lt_cv_path_LD=$lt_save_path_LD
17938  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17939  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17940fi # test "$_lt_caught_CXX_error" != yes
17941
17942ac_ext=c
17943ac_cpp='$CPP $CPPFLAGS'
17944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17946ac_compiler_gnu=$ac_cv_c_compiler_gnu
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960        ac_config_commands="$ac_config_commands libtool"
17961
17962
17963
17964
17965# Only expand once:
17966
17967
17968
17969
17970# NTP has (so far) been relying on leading-edge autogen, which
17971# means we need the appropriate corresponding libopts as well.
17972# Therefore, by default:
17973# - use the version of libopts we ship with
17974# - do not install it
17975# - build a static copy (AC_DISABLE_SHARED - done earlier)
17976case "${enable_local_libopts+set}" in
17977 set) ;;
17978 *) enable_local_libopts=yes ;;
17979esac
17980case "${enable_libopts_install+set}" in
17981 set) ;;
17982 *) enable_libopts_install=no ;;
17983esac
17984enable_nls=no
17985ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17986if test "x$ac_cv_type_pid_t" = xyes; then :
17987
17988else
17989
17990cat >>confdefs.h <<_ACEOF
17991#define pid_t int
17992_ACEOF
17993
17994fi
17995
17996
17997
17998  ac_header_dirent=no
17999for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18000  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18002$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18003if eval \${$as_ac_Header+:} false; then :
18004  $as_echo_n "(cached) " >&6
18005else
18006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007/* end confdefs.h.  */
18008#include <sys/types.h>
18009#include <$ac_hdr>
18010
18011int
18012main ()
18013{
18014if ((DIR *) 0)
18015return 0;
18016  ;
18017  return 0;
18018}
18019_ACEOF
18020if ac_fn_c_try_compile "$LINENO"; then :
18021  eval "$as_ac_Header=yes"
18022else
18023  eval "$as_ac_Header=no"
18024fi
18025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026fi
18027eval ac_res=\$$as_ac_Header
18028	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18029$as_echo "$ac_res" >&6; }
18030if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18031  cat >>confdefs.h <<_ACEOF
18032#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18033_ACEOF
18034
18035ac_header_dirent=$ac_hdr; break
18036fi
18037
18038done
18039# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18040if test $ac_header_dirent = dirent.h; then
18041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18042$as_echo_n "checking for library containing opendir... " >&6; }
18043if ${ac_cv_search_opendir+:} false; then :
18044  $as_echo_n "(cached) " >&6
18045else
18046  ac_func_search_save_LIBS=$LIBS
18047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049
18050/* Override any GCC internal prototype to avoid an error.
18051   Use char because int might match the return type of a GCC
18052   builtin and then its argument prototype would still apply.  */
18053#ifdef __cplusplus
18054extern "C"
18055#endif
18056char opendir ();
18057int
18058main ()
18059{
18060return opendir ();
18061  ;
18062  return 0;
18063}
18064_ACEOF
18065for ac_lib in '' dir; do
18066  if test -z "$ac_lib"; then
18067    ac_res="none required"
18068  else
18069    ac_res=-l$ac_lib
18070    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18071  fi
18072  if ac_fn_c_try_link "$LINENO"; then :
18073  ac_cv_search_opendir=$ac_res
18074fi
18075rm -f core conftest.err conftest.$ac_objext \
18076    conftest$ac_exeext
18077  if ${ac_cv_search_opendir+:} false; then :
18078  break
18079fi
18080done
18081if ${ac_cv_search_opendir+:} false; then :
18082
18083else
18084  ac_cv_search_opendir=no
18085fi
18086rm conftest.$ac_ext
18087LIBS=$ac_func_search_save_LIBS
18088fi
18089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18090$as_echo "$ac_cv_search_opendir" >&6; }
18091ac_res=$ac_cv_search_opendir
18092if test "$ac_res" != no; then :
18093  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18094
18095fi
18096
18097else
18098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18099$as_echo_n "checking for library containing opendir... " >&6; }
18100if ${ac_cv_search_opendir+:} false; then :
18101  $as_echo_n "(cached) " >&6
18102else
18103  ac_func_search_save_LIBS=$LIBS
18104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h.  */
18106
18107/* Override any GCC internal prototype to avoid an error.
18108   Use char because int might match the return type of a GCC
18109   builtin and then its argument prototype would still apply.  */
18110#ifdef __cplusplus
18111extern "C"
18112#endif
18113char opendir ();
18114int
18115main ()
18116{
18117return opendir ();
18118  ;
18119  return 0;
18120}
18121_ACEOF
18122for ac_lib in '' x; do
18123  if test -z "$ac_lib"; then
18124    ac_res="none required"
18125  else
18126    ac_res=-l$ac_lib
18127    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18128  fi
18129  if ac_fn_c_try_link "$LINENO"; then :
18130  ac_cv_search_opendir=$ac_res
18131fi
18132rm -f core conftest.err conftest.$ac_objext \
18133    conftest$ac_exeext
18134  if ${ac_cv_search_opendir+:} false; then :
18135  break
18136fi
18137done
18138if ${ac_cv_search_opendir+:} false; then :
18139
18140else
18141  ac_cv_search_opendir=no
18142fi
18143rm conftest.$ac_ext
18144LIBS=$ac_func_search_save_LIBS
18145fi
18146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18147$as_echo "$ac_cv_search_opendir" >&6; }
18148ac_res=$ac_cv_search_opendir
18149if test "$ac_res" != no; then :
18150  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18151
18152fi
18153
18154fi
18155
18156
18157  # =================
18158  # AC_CHECK_HEADERS
18159  # =================
18160  for ac_header in  \
18161      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
18162      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
18163      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
18164      fcntl.h       libgen.h      libintl.h     memory.h \
18165      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
18166      unistd.h      utime.h
18167do :
18168  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18171  cat >>confdefs.h <<_ACEOF
18172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18173_ACEOF
18174
18175fi
18176
18177done
18178
18179
18180  for ac_header in stdarg.h     varargs.h
18181do :
18182  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18183ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18184if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18185  cat >>confdefs.h <<_ACEOF
18186#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18187_ACEOF
18188 lo_have_arg_hdr=true;break
18189else
18190  lo_have_arg_hdr=false
18191fi
18192
18193done
18194
18195
18196  for ac_header in string.h     strings.h
18197do :
18198  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18199ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18201  cat >>confdefs.h <<_ACEOF
18202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18203_ACEOF
18204 lo_have_str_hdr=true;break
18205else
18206  lo_have_str_hdr=false
18207fi
18208
18209done
18210
18211
18212  for ac_header in limits.h     sys/limits.h  values.h
18213do :
18214  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18215ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18216if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18217  cat >>confdefs.h <<_ACEOF
18218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18219_ACEOF
18220 lo_have_lim_hdr=true;break
18221else
18222  lo_have_lim_hdr=false
18223fi
18224
18225done
18226
18227
18228  for ac_header in inttypes.h   stdint.h
18229do :
18230  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18231ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18233  cat >>confdefs.h <<_ACEOF
18234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18235_ACEOF
18236 lo_have_typ_hdr=true;break
18237else
18238  lo_have_typ_hdr=false
18239fi
18240
18241done
18242
18243
18244  # ----------------------------------------------------------------------
18245  # check for various programs used during the build.
18246  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18247  # ----------------------------------------------------------------------
18248  for ac_header in runetype.h wchar.h
18249do :
18250  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18251ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18252  $ac_includes_default
18253  #if HAVE_RUNETYPE_H
18254  # include <runetype.h>
18255  #endif
18256
18257"
18258if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18259  cat >>confdefs.h <<_ACEOF
18260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18261_ACEOF
18262
18263fi
18264
18265done
18266
18267
18268  # Check whether --enable-nls was given.
18269if test "${enable_nls+set}" = set; then :
18270  enableval=$enable_nls;
18271fi
18272
18273  if test "x$enable_nls" != "xno" && \
18274  test "X${ac_cv_header_libintl_h}" = Xyes; then :
18275
18276
18277$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18278
18279fi
18280
18281  # --------------------------------------------
18282  # Verify certain entries from AC_CHECK_HEADERS
18283  # --------------------------------------------
18284  ${lo_have_arg_hdr} || \
18285    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
18286
18287  ${lo_have_str_hdr} || \
18288    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
18289
18290  ${lo_have_lim_hdr} || \
18291    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
18292
18293  ${lo_have_typ_hdr} || \
18294    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
18295
18296  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
18297  do eval as_ac_var=\${ac_cv_header_${f}_h}
18298     test "X${as_ac_var}" = Xyes || {
18299       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
18300     }
18301  done
18302  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
18303    echo '#include <stdint.h>' > inttypes.h
18304
18305  # ----------------------------------------------------------------------
18306  # Checks for typedefs
18307  # ----------------------------------------------------------------------
18308  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18309if test "x$ac_cv_type_wchar_t" = xyes; then :
18310
18311cat >>confdefs.h <<_ACEOF
18312#define HAVE_WCHAR_T 1
18313_ACEOF
18314
18315
18316fi
18317
18318  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
18319    $ac_includes_default
18320    #if HAVE_RUNETYPE_H
18321    # include <runetype.h>
18322    #endif
18323    #if HAVE_WCHAR_H
18324    # include <wchar.h>
18325    #endif
18326
18327"
18328if test "x$ac_cv_type_wint_t" = xyes; then :
18329
18330cat >>confdefs.h <<_ACEOF
18331#define HAVE_WINT_T 1
18332_ACEOF
18333
18334
18335fi
18336
18337  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
18338if test "x$ac_cv_type_int8_t" = xyes; then :
18339
18340cat >>confdefs.h <<_ACEOF
18341#define HAVE_INT8_T 1
18342_ACEOF
18343
18344
18345fi
18346ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
18347if test "x$ac_cv_type_uint8_t" = xyes; then :
18348
18349cat >>confdefs.h <<_ACEOF
18350#define HAVE_UINT8_T 1
18351_ACEOF
18352
18353
18354fi
18355ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
18356if test "x$ac_cv_type_int16_t" = xyes; then :
18357
18358cat >>confdefs.h <<_ACEOF
18359#define HAVE_INT16_T 1
18360_ACEOF
18361
18362
18363fi
18364ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
18365if test "x$ac_cv_type_uint16_t" = xyes; then :
18366
18367cat >>confdefs.h <<_ACEOF
18368#define HAVE_UINT16_T 1
18369_ACEOF
18370
18371
18372fi
18373ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
18374if test "x$ac_cv_type_int32_t" = xyes; then :
18375
18376cat >>confdefs.h <<_ACEOF
18377#define HAVE_INT32_T 1
18378_ACEOF
18379
18380
18381fi
18382ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
18383if test "x$ac_cv_type_uint32_t" = xyes; then :
18384
18385cat >>confdefs.h <<_ACEOF
18386#define HAVE_UINT32_T 1
18387_ACEOF
18388
18389
18390fi
18391ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
18392if test "x$ac_cv_type_intptr_t" = xyes; then :
18393
18394cat >>confdefs.h <<_ACEOF
18395#define HAVE_INTPTR_T 1
18396_ACEOF
18397
18398
18399fi
18400ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
18401if test "x$ac_cv_type_uintptr_t" = xyes; then :
18402
18403cat >>confdefs.h <<_ACEOF
18404#define HAVE_UINTPTR_T 1
18405_ACEOF
18406
18407
18408fi
18409ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
18410if test "x$ac_cv_type_uint_t" = xyes; then :
18411
18412cat >>confdefs.h <<_ACEOF
18413#define HAVE_UINT_T 1
18414_ACEOF
18415
18416
18417fi
18418ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18419if test "x$ac_cv_type_pid_t" = xyes; then :
18420
18421cat >>confdefs.h <<_ACEOF
18422#define HAVE_PID_T 1
18423_ACEOF
18424
18425
18426fi
18427ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18428if test "x$ac_cv_type_size_t" = xyes; then :
18429
18430cat >>confdefs.h <<_ACEOF
18431#define HAVE_SIZE_T 1
18432_ACEOF
18433
18434
18435fi
18436
18437  # The cast to long int works around a bug in the HP C Compiler
18438# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18439# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18440# This bug is HP SR number 8606223364.
18441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
18442$as_echo_n "checking size of char*... " >&6; }
18443if ${ac_cv_sizeof_charp+:} false; then :
18444  $as_echo_n "(cached) " >&6
18445else
18446  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
18447
18448else
18449  if test "$ac_cv_type_charp" = yes; then
18450     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18452as_fn_error 77 "cannot compute sizeof (char*)
18453See \`config.log' for more details" "$LINENO" 5; }
18454   else
18455     ac_cv_sizeof_charp=0
18456   fi
18457fi
18458
18459fi
18460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
18461$as_echo "$ac_cv_sizeof_charp" >&6; }
18462
18463
18464
18465cat >>confdefs.h <<_ACEOF
18466#define SIZEOF_CHARP $ac_cv_sizeof_charp
18467_ACEOF
18468
18469
18470  # The cast to long int works around a bug in the HP C Compiler
18471# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18472# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18473# This bug is HP SR number 8606223364.
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18475$as_echo_n "checking size of int... " >&6; }
18476if ${ac_cv_sizeof_int+:} false; then :
18477  $as_echo_n "(cached) " >&6
18478else
18479  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18480
18481else
18482  if test "$ac_cv_type_int" = yes; then
18483     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18485as_fn_error 77 "cannot compute sizeof (int)
18486See \`config.log' for more details" "$LINENO" 5; }
18487   else
18488     ac_cv_sizeof_int=0
18489   fi
18490fi
18491
18492fi
18493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18494$as_echo "$ac_cv_sizeof_int" >&6; }
18495
18496
18497
18498cat >>confdefs.h <<_ACEOF
18499#define SIZEOF_INT $ac_cv_sizeof_int
18500_ACEOF
18501
18502
18503  # The cast to long int works around a bug in the HP C Compiler
18504# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18505# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18506# This bug is HP SR number 8606223364.
18507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18508$as_echo_n "checking size of long... " >&6; }
18509if ${ac_cv_sizeof_long+:} false; then :
18510  $as_echo_n "(cached) " >&6
18511else
18512  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18513
18514else
18515  if test "$ac_cv_type_long" = yes; then
18516     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18518as_fn_error 77 "cannot compute sizeof (long)
18519See \`config.log' for more details" "$LINENO" 5; }
18520   else
18521     ac_cv_sizeof_long=0
18522   fi
18523fi
18524
18525fi
18526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18527$as_echo "$ac_cv_sizeof_long" >&6; }
18528
18529
18530
18531cat >>confdefs.h <<_ACEOF
18532#define SIZEOF_LONG $ac_cv_sizeof_long
18533_ACEOF
18534
18535
18536  # The cast to long int works around a bug in the HP C Compiler
18537# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18538# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18539# This bug is HP SR number 8606223364.
18540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18541$as_echo_n "checking size of short... " >&6; }
18542if ${ac_cv_sizeof_short+:} false; then :
18543  $as_echo_n "(cached) " >&6
18544else
18545  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
18546
18547else
18548  if test "$ac_cv_type_short" = yes; then
18549     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18551as_fn_error 77 "cannot compute sizeof (short)
18552See \`config.log' for more details" "$LINENO" 5; }
18553   else
18554     ac_cv_sizeof_short=0
18555   fi
18556fi
18557
18558fi
18559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18560$as_echo "$ac_cv_sizeof_short" >&6; }
18561
18562
18563
18564cat >>confdefs.h <<_ACEOF
18565#define SIZEOF_SHORT $ac_cv_sizeof_short
18566_ACEOF
18567
18568
18569
18570  # ------------
18571  # AC_CHECK_LIB
18572  # ------------
18573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
18574$as_echo_n "checking for pathfind in -lgen... " >&6; }
18575if ${ac_cv_lib_gen_pathfind+:} false; then :
18576  $as_echo_n "(cached) " >&6
18577else
18578  ac_check_lib_save_LIBS=$LIBS
18579LIBS="-lgen  $LIBS"
18580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581/* end confdefs.h.  */
18582
18583/* Override any GCC internal prototype to avoid an error.
18584   Use char because int might match the return type of a GCC
18585   builtin and then its argument prototype would still apply.  */
18586#ifdef __cplusplus
18587extern "C"
18588#endif
18589char pathfind ();
18590int
18591main ()
18592{
18593return pathfind ();
18594  ;
18595  return 0;
18596}
18597_ACEOF
18598if ac_fn_c_try_link "$LINENO"; then :
18599  ac_cv_lib_gen_pathfind=yes
18600else
18601  ac_cv_lib_gen_pathfind=no
18602fi
18603rm -f core conftest.err conftest.$ac_objext \
18604    conftest$ac_exeext conftest.$ac_ext
18605LIBS=$ac_check_lib_save_LIBS
18606fi
18607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
18608$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
18609if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
18610  cat >>confdefs.h <<_ACEOF
18611#define HAVE_LIBGEN 1
18612_ACEOF
18613
18614  LIBS="-lgen $LIBS"
18615
18616fi
18617
18618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
18619$as_echo_n "checking for gettext in -lintl... " >&6; }
18620if ${ac_cv_lib_intl_gettext+:} false; then :
18621  $as_echo_n "(cached) " >&6
18622else
18623  ac_check_lib_save_LIBS=$LIBS
18624LIBS="-lintl  $LIBS"
18625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626/* end confdefs.h.  */
18627
18628/* Override any GCC internal prototype to avoid an error.
18629   Use char because int might match the return type of a GCC
18630   builtin and then its argument prototype would still apply.  */
18631#ifdef __cplusplus
18632extern "C"
18633#endif
18634char gettext ();
18635int
18636main ()
18637{
18638return gettext ();
18639  ;
18640  return 0;
18641}
18642_ACEOF
18643if ac_fn_c_try_link "$LINENO"; then :
18644  ac_cv_lib_intl_gettext=yes
18645else
18646  ac_cv_lib_intl_gettext=no
18647fi
18648rm -f core conftest.err conftest.$ac_objext \
18649    conftest$ac_exeext conftest.$ac_ext
18650LIBS=$ac_check_lib_save_LIBS
18651fi
18652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
18653$as_echo "$ac_cv_lib_intl_gettext" >&6; }
18654if test "x$ac_cv_lib_intl_gettext" = xyes; then :
18655  cat >>confdefs.h <<_ACEOF
18656#define HAVE_LIBINTL 1
18657_ACEOF
18658
18659  LIBS="-lintl $LIBS"
18660
18661fi
18662
18663  for ac_func in vprintf
18664do :
18665  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18666if test "x$ac_cv_func_vprintf" = xyes; then :
18667  cat >>confdefs.h <<_ACEOF
18668#define HAVE_VPRINTF 1
18669_ACEOF
18670
18671ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18672if test "x$ac_cv_func__doprnt" = xyes; then :
18673
18674$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
18675
18676fi
18677
18678fi
18679done
18680
18681
18682  for ac_header in vfork.h
18683do :
18684  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18685if test "x$ac_cv_header_vfork_h" = xyes; then :
18686  cat >>confdefs.h <<_ACEOF
18687#define HAVE_VFORK_H 1
18688_ACEOF
18689
18690fi
18691
18692done
18693
18694for ac_func in fork vfork
18695do :
18696  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18697ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18698if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18699  cat >>confdefs.h <<_ACEOF
18700#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18701_ACEOF
18702
18703fi
18704done
18705
18706if test "x$ac_cv_func_fork" = xyes; then
18707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18708$as_echo_n "checking for working fork... " >&6; }
18709if ${ac_cv_func_fork_works+:} false; then :
18710  $as_echo_n "(cached) " >&6
18711else
18712  if test "$cross_compiling" = yes; then :
18713  ac_cv_func_fork_works=cross
18714else
18715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716/* end confdefs.h.  */
18717$ac_includes_default
18718int
18719main ()
18720{
18721
18722	  /* By Ruediger Kuhlmann. */
18723	  return fork () < 0;
18724
18725  ;
18726  return 0;
18727}
18728_ACEOF
18729if ac_fn_c_try_run "$LINENO"; then :
18730  ac_cv_func_fork_works=yes
18731else
18732  ac_cv_func_fork_works=no
18733fi
18734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18735  conftest.$ac_objext conftest.beam conftest.$ac_ext
18736fi
18737
18738fi
18739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18740$as_echo "$ac_cv_func_fork_works" >&6; }
18741
18742else
18743  ac_cv_func_fork_works=$ac_cv_func_fork
18744fi
18745if test "x$ac_cv_func_fork_works" = xcross; then
18746  case $host in
18747    *-*-amigaos* | *-*-msdosdjgpp*)
18748      # Override, as these systems have only a dummy fork() stub
18749      ac_cv_func_fork_works=no
18750      ;;
18751    *)
18752      ac_cv_func_fork_works=yes
18753      ;;
18754  esac
18755  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18756$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18757fi
18758ac_cv_func_vfork_works=$ac_cv_func_vfork
18759if test "x$ac_cv_func_vfork" = xyes; then
18760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18761$as_echo_n "checking for working vfork... " >&6; }
18762if ${ac_cv_func_vfork_works+:} false; then :
18763  $as_echo_n "(cached) " >&6
18764else
18765  if test "$cross_compiling" = yes; then :
18766  ac_cv_func_vfork_works=cross
18767else
18768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769/* end confdefs.h.  */
18770/* Thanks to Paul Eggert for this test.  */
18771$ac_includes_default
18772#include <sys/wait.h>
18773#ifdef HAVE_VFORK_H
18774# include <vfork.h>
18775#endif
18776/* On some sparc systems, changes by the child to local and incoming
18777   argument registers are propagated back to the parent.  The compiler
18778   is told about this with #include <vfork.h>, but some compilers
18779   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
18780   static variable whose address is put into a register that is
18781   clobbered by the vfork.  */
18782static void
18783#ifdef __cplusplus
18784sparc_address_test (int arg)
18785# else
18786sparc_address_test (arg) int arg;
18787#endif
18788{
18789  static pid_t child;
18790  if (!child) {
18791    child = vfork ();
18792    if (child < 0) {
18793      perror ("vfork");
18794      _exit(2);
18795    }
18796    if (!child) {
18797      arg = getpid();
18798      write(-1, "", 0);
18799      _exit (arg);
18800    }
18801  }
18802}
18803
18804int
18805main ()
18806{
18807  pid_t parent = getpid ();
18808  pid_t child;
18809
18810  sparc_address_test (0);
18811
18812  child = vfork ();
18813
18814  if (child == 0) {
18815    /* Here is another test for sparc vfork register problems.  This
18816       test uses lots of local variables, at least as many local
18817       variables as main has allocated so far including compiler
18818       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
18819       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
18820       reuse the register of parent for one of the local variables,
18821       since it will think that parent can't possibly be used any more
18822       in this routine.  Assigning to the local variable will thus
18823       munge parent in the parent process.  */
18824    pid_t
18825      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18826      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18827    /* Convince the compiler that p..p7 are live; otherwise, it might
18828       use the same hardware register for all 8 local variables.  */
18829    if (p != p1 || p != p2 || p != p3 || p != p4
18830	|| p != p5 || p != p6 || p != p7)
18831      _exit(1);
18832
18833    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18834       from child file descriptors.  If the child closes a descriptor
18835       before it execs or exits, this munges the parent's descriptor
18836       as well.  Test for this by closing stdout in the child.  */
18837    _exit(close(fileno(stdout)) != 0);
18838  } else {
18839    int status;
18840    struct stat st;
18841
18842    while (wait(&status) != child)
18843      ;
18844    return (
18845	 /* Was there some problem with vforking?  */
18846	 child < 0
18847
18848	 /* Did the child fail?  (This shouldn't happen.)  */
18849	 || status
18850
18851	 /* Did the vfork/compiler bug occur?  */
18852	 || parent != getpid()
18853
18854	 /* Did the file descriptor bug occur?  */
18855	 || fstat(fileno(stdout), &st) != 0
18856	 );
18857  }
18858}
18859_ACEOF
18860if ac_fn_c_try_run "$LINENO"; then :
18861  ac_cv_func_vfork_works=yes
18862else
18863  ac_cv_func_vfork_works=no
18864fi
18865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18866  conftest.$ac_objext conftest.beam conftest.$ac_ext
18867fi
18868
18869fi
18870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18871$as_echo "$ac_cv_func_vfork_works" >&6; }
18872
18873fi;
18874if test "x$ac_cv_func_fork_works" = xcross; then
18875  ac_cv_func_vfork_works=$ac_cv_func_vfork
18876  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18877$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18878fi
18879
18880if test "x$ac_cv_func_vfork_works" = xyes; then
18881
18882$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18883
18884else
18885
18886$as_echo "#define vfork fork" >>confdefs.h
18887
18888fi
18889if test "x$ac_cv_func_fork_works" = xyes; then
18890
18891$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18892
18893fi
18894
18895  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
18896                 strrchr strsignal fchmod fstat chmod
18897do :
18898  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18899ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18900if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18901  cat >>confdefs.h <<_ACEOF
18902#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18903_ACEOF
18904
18905fi
18906done
18907
18908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
18909$as_echo_n "checking for a sed that does not truncate output... " >&6; }
18910if ${ac_cv_path_SED+:} false; then :
18911  $as_echo_n "(cached) " >&6
18912else
18913            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
18914     for ac_i in 1 2 3 4 5 6 7; do
18915       ac_script="$ac_script$as_nl$ac_script"
18916     done
18917     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
18918     { ac_script=; unset ac_script;}
18919     if test -z "$SED"; then
18920  ac_path_SED_found=false
18921  # Loop through the user's path and test for each of PROGNAME-LIST
18922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18923for as_dir in $PATH
18924do
18925  IFS=$as_save_IFS
18926  test -z "$as_dir" && as_dir=.
18927    for ac_prog in sed gsed; do
18928    for ac_exec_ext in '' $ac_executable_extensions; do
18929      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
18930      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
18931# Check for GNU ac_path_SED and select it if it is found.
18932  # Check for GNU $ac_path_SED
18933case `"$ac_path_SED" --version 2>&1` in
18934*GNU*)
18935  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
18936*)
18937  ac_count=0
18938  $as_echo_n 0123456789 >"conftest.in"
18939  while :
18940  do
18941    cat "conftest.in" "conftest.in" >"conftest.tmp"
18942    mv "conftest.tmp" "conftest.in"
18943    cp "conftest.in" "conftest.nl"
18944    $as_echo '' >> "conftest.nl"
18945    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
18946    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18947    as_fn_arith $ac_count + 1 && ac_count=$as_val
18948    if test $ac_count -gt ${ac_path_SED_max-0}; then
18949      # Best one so far, save it but keep looking for a better one
18950      ac_cv_path_SED="$ac_path_SED"
18951      ac_path_SED_max=$ac_count
18952    fi
18953    # 10*(2^10) chars as input seems more than enough
18954    test $ac_count -gt 10 && break
18955  done
18956  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18957esac
18958
18959      $ac_path_SED_found && break 3
18960    done
18961  done
18962  done
18963IFS=$as_save_IFS
18964  if test -z "$ac_cv_path_SED"; then
18965    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
18966  fi
18967else
18968  ac_cv_path_SED=$SED
18969fi
18970
18971fi
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
18973$as_echo "$ac_cv_path_SED" >&6; }
18974 SED="$ac_cv_path_SED"
18975  rm -f conftest.sed
18976
18977  while :
18978  do
18979      POSIX_SHELL=`which bash`
18980      test -x "$POSIX_SHELL" && break
18981      POSIX_SHELL=`which dash`
18982      test -x "$POSIX_SHELL" && break
18983      POSIX_SHELL=/usr/xpg4/bin/sh
18984      test -x "$POSIX_SHELL" && break
18985      POSIX_SHELL=`/bin/sh -c '
18986          exec 2>/dev/null
18987          if ! true ; then exit 1 ; fi
18988          echo /bin/sh'`
18989      test -x "$POSIX_SHELL" && break
18990      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
18991  done
18992
18993cat >>confdefs.h <<_ACEOF
18994#define POSIX_SHELL "${POSIX_SHELL}"
18995_ACEOF
18996
18997
18998
18999
19000
19001  LIBOPTS_BUILD_BLOCKED=true
19002
19003
19004  NEED_LIBOPTS_DIR=''
19005
19006  # Check whether --enable-local-libopts was given.
19007if test "${enable_local_libopts+set}" = set; then :
19008  enableval=$enable_local_libopts;
19009    if test x$enableval = xyes ; then
19010       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19011$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19012       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19013       NEED_LIBOPTS_DIR=true
19014       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19015    fi
19016fi
19017
19018
19019  # Check whether --enable-libopts-install was given.
19020if test "${enable_libopts_install+set}" = set; then :
19021  enableval=$enable_libopts_install;
19022fi
19023
19024   if test "X${enable_libopts_install}" = Xyes; then
19025  INSTALL_LIBOPTS_TRUE=
19026  INSTALL_LIBOPTS_FALSE='#'
19027else
19028  INSTALL_LIBOPTS_TRUE='#'
19029  INSTALL_LIBOPTS_FALSE=
19030fi
19031
19032
19033  if test -z "${NEED_LIBOPTS_DIR}" ; then
19034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19035$as_echo_n "checking whether autoopts-config can be found... " >&6; }
19036
19037# Check whether --with-autoopts-config was given.
19038if test "${with_autoopts_config+set}" = set; then :
19039  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19040else
19041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19042$as_echo_n "checking whether autoopts-config is specified... " >&6; }
19043if ${lo_cv_with_autoopts_config+:} false; then :
19044  $as_echo_n "(cached) " >&6
19045else
19046  if autoopts-config --help 2>/dev/null 1>&2
19047        then lo_cv_with_autoopts_config=autoopts-config
19048        elif libopts-config --help 2>/dev/null 1>&2
19049        then lo_cv_with_autoopts_config=libopts-config
19050        else lo_cv_with_autoopts_config=no ; fi
19051fi
19052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19053$as_echo "$lo_cv_with_autoopts_config" >&6; }
19054
19055fi
19056 # end of AC_ARG_WITH
19057
19058     if ${lo_cv_test_autoopts+:} false; then :
19059  $as_echo_n "(cached) " >&6
19060else
19061
19062        if test -z "${lo_cv_with_autoopts_config}" \
19063                -o X"${lo_cv_with_autoopts_config}" = Xno
19064        then
19065           if autoopts-config --help 2>/dev/null 1>&2
19066           then lo_cv_with_autoopts_config=autoopts-config
19067           elif libopts-config --help 2>/dev/null 1>&2
19068           then lo_cv_with_autoopts_config=libopts-config
19069           else lo_cv_with_autoopts_config=false ; fi
19070        fi
19071        lo_cv_test_autoopts=`
19072            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19073        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19074        then lo_cv_test_autoopts=no ; fi
19075
19076fi
19077 # end of CACHE_VAL
19078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19079$as_echo "${lo_cv_test_autoopts}" >&6; }
19080
19081     if test "X${lo_cv_test_autoopts}" != Xno
19082     then
19083        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19084        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19085     else
19086        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19087        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19088        NEED_LIBOPTS_DIR=true
19089     fi
19090  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19091  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19092    NEED_LIBOPTS_DIR=''
19093  fi
19094   if test -n "${NEED_LIBOPTS_DIR}"; then
19095  NEED_LIBOPTS_TRUE=
19096  NEED_LIBOPTS_FALSE='#'
19097else
19098  NEED_LIBOPTS_TRUE='#'
19099  NEED_LIBOPTS_FALSE=
19100fi
19101
19102
19103
19104  LIBOPTS_DIR=sntp/libopts
19105
19106
19107# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19108
19109  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19110
19111
19112
19113
19114# Check whether --enable-local-libevent was given.
19115if test "${enable_local_libevent+set}" = set; then :
19116  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19117else
19118  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19119
19120fi
19121
19122
19123
19124
19125
19126
19127# Expose a cross-compilation indicator to makefiles
19128 if test $build != $host; then
19129  NTP_CROSSCOMPILE_TRUE=
19130  NTP_CROSSCOMPILE_FALSE='#'
19131else
19132  NTP_CROSSCOMPILE_TRUE='#'
19133  NTP_CROSSCOMPILE_FALSE=
19134fi
19135
19136
19137
19138ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19139if test "x$ac_cv_type_size_t" = xyes; then :
19140
19141else
19142
19143cat >>confdefs.h <<_ACEOF
19144#define size_t unsigned int
19145_ACEOF
19146
19147fi
19148
19149
19150            # Check whether --enable-c99-snprintf was given.
19151if test "${enable_c99_snprintf+set}" = set; then :
19152  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
19153else
19154  force_c99_snprintf=no
19155
19156fi
19157
19158    case "$force_c99_snprintf" in
19159     yes)
19160	hw_force_rpl_snprintf=yes
19161	hw_force_rpl_vsnprintf=yes
19162    esac
19163
19164
19165
19166
19167
19168
19169  for ac_header in $ac_header_list
19170do :
19171  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19172ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19173"
19174if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19175  cat >>confdefs.h <<_ACEOF
19176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19177_ACEOF
19178
19179fi
19180
19181done
19182
19183
19184
19185
19186
19187
19188
19189      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
19190if test "x$ac_cv_func_vsnprintf" = xyes; then :
19191  hw_cv_func_vsnprintf=yes
19192else
19193  hw_cv_func_vsnprintf=no
19194fi
19195
19196  if test "$hw_cv_func_vsnprintf" = yes; then :
19197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
19198$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
19199if ${hw_cv_func_vsnprintf_c99+:} false; then :
19200  $as_echo_n "(cached) " >&6
19201else
19202  if test "$cross_compiling" = yes; then :
19203  hw_cv_func_vsnprintf_c99=no
19204else
19205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19206/* end confdefs.h.  */
19207#if HAVE_STDARG_H
19208          #include <stdarg.h>
19209          #endif
19210          #include <stdio.h>
19211          static int testprintf(char *buf, size_t size, const char *format, ...)
19212          {
19213            int result;
19214            va_list ap;
19215            va_start(ap, format);
19216            result = vsnprintf(buf, size, format, ap);
19217            va_end(ap);
19218            return result;
19219          }
19220int
19221main ()
19222{
19223char buf[43];
19224          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
19225              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
19226              buf[0] != 'T' || buf[3] != '\0')
19227            return 1;
19228  ;
19229  return 0;
19230}
19231_ACEOF
19232if ac_fn_c_try_run "$LINENO"; then :
19233  hw_cv_func_vsnprintf_c99=yes
19234else
19235  hw_cv_func_vsnprintf_c99=no
19236fi
19237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19238  conftest.$ac_objext conftest.beam conftest.$ac_ext
19239fi
19240
19241fi
19242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
19243$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
19244else
19245  hw_cv_func_vsnprintf_c99=no
19246fi
19247
19248$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
19249
19250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
19251$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
19252  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
19253  hw_use_rpl_vsnprintf=yes
19254else
19255  hw_use_rpl_vsnprintf=no
19256fi
19257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
19258$as_echo "$hw_use_rpl_vsnprintf" >&6; }
19259  if test "$hw_use_rpl_vsnprintf" = yes; then :
19260
19261$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
19262
19263    if test ${hw_nodef_vsnprintf=no} = no; then :
19264
19265$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
19266
19267fi
19268    for ac_header in inttypes.h locale.h stddef.h stdint.h
19269do :
19270  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19271ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19273  cat >>confdefs.h <<_ACEOF
19274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19275_ACEOF
19276
19277fi
19278
19279done
19280
19281    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
19282"
19283if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
19284
19285cat >>confdefs.h <<_ACEOF
19286#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
19287_ACEOF
19288
19289
19290fi
19291ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
19292"
19293if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
19294
19295cat >>confdefs.h <<_ACEOF
19296#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
19297_ACEOF
19298
19299
19300fi
19301
19302
19303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19304$as_echo_n "checking for long double... " >&6; }
19305if ${ac_cv_type_long_double+:} false; then :
19306  $as_echo_n "(cached) " >&6
19307else
19308  if test "$GCC" = yes; then
19309       ac_cv_type_long_double=yes
19310     else
19311       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h.  */
19313/* The Stardent Vistra knows sizeof (long double), but does
19314		 not support it.  */
19315	      long double foo = 0.0L;
19316int
19317main ()
19318{
19319static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19320	      sizeof (double) <= sizeof (long double))];
19321test_array [0] = 0
19322
19323  ;
19324  return 0;
19325}
19326_ACEOF
19327if ac_fn_c_try_compile "$LINENO"; then :
19328  ac_cv_type_long_double=yes
19329else
19330  ac_cv_type_long_double=no
19331fi
19332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333     fi
19334fi
19335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
19336$as_echo "$ac_cv_type_long_double" >&6; }
19337  if test $ac_cv_type_long_double = yes; then
19338
19339$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19340
19341  fi
19342
19343
19344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19345$as_echo_n "checking for long long int... " >&6; }
19346if ${ac_cv_type_long_long_int+:} false; then :
19347  $as_echo_n "(cached) " >&6
19348else
19349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350/* end confdefs.h.  */
19351
19352  /* For now, do not test the preprocessor; as of 2007 there are too many
19353	 implementations with broken preprocessors.  Perhaps this can
19354	 be revisited in 2012.  In the meantime, code should not expect
19355	 #if to work with literals wider than 32 bits.  */
19356      /* Test literals.  */
19357      long long int ll = 9223372036854775807ll;
19358      long long int nll = -9223372036854775807LL;
19359      unsigned long long int ull = 18446744073709551615ULL;
19360      /* Test constant expressions.   */
19361      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19362		     ? 1 : -1)];
19363      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19364		     ? 1 : -1)];
19365      int i = 63;
19366int
19367main ()
19368{
19369/* Test availability of runtime routines for shift and division.  */
19370      long long int llmax = 9223372036854775807ll;
19371      unsigned long long int ullmax = 18446744073709551615ull;
19372      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19373	      | (llmax / ll) | (llmax % ll)
19374	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19375	      | (ullmax / ull) | (ullmax % ull));
19376  ;
19377  return 0;
19378}
19379
19380_ACEOF
19381if ac_fn_c_try_link "$LINENO"; then :
19382  			if test "$cross_compiling" = yes; then :
19383  ac_cv_type_long_long_int=yes
19384else
19385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386/* end confdefs.h.  */
19387#include <limits.h>
19388	       #ifndef LLONG_MAX
19389	       # define HALF \
19390			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
19391	       # define LLONG_MAX (HALF - 1 + HALF)
19392	       #endif
19393int
19394main ()
19395{
19396long long int n = 1;
19397	       int i;
19398	       for (i = 0; ; i++)
19399		 {
19400		   long long int m = n << i;
19401		   if (m >> i != n)
19402		     return 1;
19403		   if (LLONG_MAX / 2 < m)
19404		     break;
19405		 }
19406	       return 0;
19407  ;
19408  return 0;
19409}
19410_ACEOF
19411if ac_fn_c_try_run "$LINENO"; then :
19412  ac_cv_type_long_long_int=yes
19413else
19414  ac_cv_type_long_long_int=no
19415fi
19416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19417  conftest.$ac_objext conftest.beam conftest.$ac_ext
19418fi
19419
19420else
19421  ac_cv_type_long_long_int=no
19422fi
19423rm -f core conftest.err conftest.$ac_objext \
19424    conftest$ac_exeext conftest.$ac_ext
19425fi
19426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19427$as_echo "$ac_cv_type_long_long_int" >&6; }
19428  if test $ac_cv_type_long_long_int = yes; then
19429
19430$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19431
19432  fi
19433
19434
19435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19436$as_echo_n "checking for unsigned long long int... " >&6; }
19437if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19438  $as_echo_n "(cached) " >&6
19439else
19440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441/* end confdefs.h.  */
19442
19443  /* For now, do not test the preprocessor; as of 2007 there are too many
19444	 implementations with broken preprocessors.  Perhaps this can
19445	 be revisited in 2012.  In the meantime, code should not expect
19446	 #if to work with literals wider than 32 bits.  */
19447      /* Test literals.  */
19448      long long int ll = 9223372036854775807ll;
19449      long long int nll = -9223372036854775807LL;
19450      unsigned long long int ull = 18446744073709551615ULL;
19451      /* Test constant expressions.   */
19452      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19453		     ? 1 : -1)];
19454      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19455		     ? 1 : -1)];
19456      int i = 63;
19457int
19458main ()
19459{
19460/* Test availability of runtime routines for shift and division.  */
19461      long long int llmax = 9223372036854775807ll;
19462      unsigned long long int ullmax = 18446744073709551615ull;
19463      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19464	      | (llmax / ll) | (llmax % ll)
19465	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19466	      | (ullmax / ull) | (ullmax % ull));
19467  ;
19468  return 0;
19469}
19470
19471_ACEOF
19472if ac_fn_c_try_link "$LINENO"; then :
19473  ac_cv_type_unsigned_long_long_int=yes
19474else
19475  ac_cv_type_unsigned_long_long_int=no
19476fi
19477rm -f core conftest.err conftest.$ac_objext \
19478    conftest$ac_exeext conftest.$ac_ext
19479fi
19480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19481$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19482  if test $ac_cv_type_unsigned_long_long_int = yes; then
19483
19484$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19485
19486  fi
19487
19488    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19489if test "x$ac_cv_type_size_t" = xyes; then :
19490
19491else
19492
19493cat >>confdefs.h <<_ACEOF
19494#define size_t unsigned int
19495_ACEOF
19496
19497fi
19498
19499
19500
19501  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
19502if test "x$ac_cv_type_intmax_t" = xyes; then :
19503
19504$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19505
19506else
19507  test $ac_cv_type_long_long_int = yes \
19508       && ac_type='long long int' \
19509       || ac_type='long int'
19510
19511cat >>confdefs.h <<_ACEOF
19512#define intmax_t $ac_type
19513_ACEOF
19514
19515fi
19516
19517
19518
19519
19520  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
19521if test "x$ac_cv_type_uintmax_t" = xyes; then :
19522
19523$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19524
19525else
19526  test $ac_cv_type_unsigned_long_long_int = yes \
19527       && ac_type='unsigned long long int' \
19528       || ac_type='unsigned long int'
19529
19530cat >>confdefs.h <<_ACEOF
19531#define uintmax_t $ac_type
19532_ACEOF
19533
19534fi
19535
19536
19537
19538  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19539if test "x$ac_cv_type_uintptr_t" = xyes; then :
19540
19541$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
19542
19543else
19544  for ac_type in 'unsigned int' 'unsigned long int' \
19545	'unsigned long long int'; do
19546       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19547/* end confdefs.h.  */
19548$ac_includes_default
19549int
19550main ()
19551{
19552static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
19553test_array [0] = 0
19554
19555  ;
19556  return 0;
19557}
19558_ACEOF
19559if ac_fn_c_try_compile "$LINENO"; then :
19560
19561cat >>confdefs.h <<_ACEOF
19562#define uintptr_t $ac_type
19563_ACEOF
19564
19565	  ac_type=
19566fi
19567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568       test -z "$ac_type" && break
19569     done
19570fi
19571
19572
19573    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19574if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19575
19576cat >>confdefs.h <<_ACEOF
19577#define HAVE_PTRDIFF_T 1
19578_ACEOF
19579
19580
19581fi
19582
19583    for ac_func in localeconv
19584do :
19585  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
19586if test "x$ac_cv_func_localeconv" = xyes; then :
19587  cat >>confdefs.h <<_ACEOF
19588#define HAVE_LOCALECONV 1
19589_ACEOF
19590
19591fi
19592done
19593
19594
19595  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
19596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19597$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19598if ${ac_cv_c_const+:} false; then :
19599  $as_echo_n "(cached) " >&6
19600else
19601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602/* end confdefs.h.  */
19603
19604int
19605main ()
19606{
19607/* FIXME: Include the comments suggested by Paul. */
19608#ifndef __cplusplus
19609  /* Ultrix mips cc rejects this.  */
19610  typedef int charset[2];
19611  const charset cs;
19612  /* SunOS 4.1.1 cc rejects this.  */
19613  char const *const *pcpcc;
19614  char **ppc;
19615  /* NEC SVR4.0.2 mips cc rejects this.  */
19616  struct point {int x, y;};
19617  static struct point const zero = {0,0};
19618  /* AIX XL C 1.02.0.0 rejects this.
19619     It does not let you subtract one const X* pointer from another in
19620     an arm of an if-expression whose if-part is not a constant
19621     expression */
19622  const char *g = "string";
19623  pcpcc = &g + (g ? g-g : 0);
19624  /* HPUX 7.0 cc rejects these. */
19625  ++pcpcc;
19626  ppc = (char**) pcpcc;
19627  pcpcc = (char const *const *) ppc;
19628  { /* SCO 3.2v4 cc rejects this.  */
19629    char *t;
19630    char const *s = 0 ? (char *) 0 : (char const *) 0;
19631
19632    *t++ = 0;
19633    if (s) return 0;
19634  }
19635  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19636    int x[] = {25, 17};
19637    const int *foo = &x[0];
19638    ++foo;
19639  }
19640  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19641    typedef const int *iptr;
19642    iptr p = 0;
19643    ++p;
19644  }
19645  { /* AIX XL C 1.02.0.0 rejects this saying
19646       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19647    struct s { int j; const int *ap[3]; };
19648    struct s *b; b->j = 5;
19649  }
19650  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19651    const int foo = 10;
19652    if (!foo) return 0;
19653  }
19654  return !cs[0] && !zero.x;
19655#endif
19656
19657  ;
19658  return 0;
19659}
19660_ACEOF
19661if ac_fn_c_try_compile "$LINENO"; then :
19662  ac_cv_c_const=yes
19663else
19664  ac_cv_c_const=no
19665fi
19666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667fi
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19669$as_echo "$ac_cv_c_const" >&6; }
19670if test $ac_cv_c_const = no; then
19671
19672$as_echo "#define const /**/" >>confdefs.h
19673
19674fi
19675
19676
19677
19678
19679    case " $LIBOBJS " in
19680  *" snprintf.$ac_objext "* ) ;;
19681  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19682 ;;
19683esac
19684
19685    _hw_cv_func_xprintf_replace_done=yes
19686fi
19687
19688fi
19689
19690
19691    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19692if test "x$ac_cv_func_snprintf" = xyes; then :
19693  hw_cv_func_snprintf=yes
19694else
19695  hw_cv_func_snprintf=no
19696fi
19697
19698  if test "$hw_cv_func_snprintf" = yes; then :
19699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
19700$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
19701if ${hw_cv_func_snprintf_c99+:} false; then :
19702  $as_echo_n "(cached) " >&6
19703else
19704  if test "$cross_compiling" = yes; then :
19705  hw_cv_func_snprintf_c99=no
19706else
19707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708/* end confdefs.h.  */
19709#include <stdio.h>
19710int
19711main ()
19712{
19713char buf[43];
19714          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
19715              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
19716              buf[0] != 'T' || buf[3] != '\0')
19717            return 1;
19718  ;
19719  return 0;
19720}
19721_ACEOF
19722if ac_fn_c_try_run "$LINENO"; then :
19723  hw_cv_func_snprintf_c99=yes
19724else
19725  hw_cv_func_snprintf_c99=no
19726fi
19727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19728  conftest.$ac_objext conftest.beam conftest.$ac_ext
19729fi
19730
19731fi
19732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
19733$as_echo "$hw_cv_func_snprintf_c99" >&6; }
19734else
19735  hw_cv_func_snprintf_c99=no
19736fi
19737
19738$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19739
19740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
19741$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
19742  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
19743  hw_use_rpl_snprintf=yes
19744else
19745  hw_use_rpl_snprintf=no
19746fi
19747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
19748$as_echo "$hw_use_rpl_snprintf" >&6; }
19749  if test "$hw_use_rpl_snprintf" = yes; then :
19750
19751$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
19752
19753    if test ${hw_nodef_snprintf=no} = no; then :
19754
19755$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
19756
19757fi
19758
19759  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
19760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19761$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19762if ${ac_cv_c_const+:} false; then :
19763  $as_echo_n "(cached) " >&6
19764else
19765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766/* end confdefs.h.  */
19767
19768int
19769main ()
19770{
19771/* FIXME: Include the comments suggested by Paul. */
19772#ifndef __cplusplus
19773  /* Ultrix mips cc rejects this.  */
19774  typedef int charset[2];
19775  const charset cs;
19776  /* SunOS 4.1.1 cc rejects this.  */
19777  char const *const *pcpcc;
19778  char **ppc;
19779  /* NEC SVR4.0.2 mips cc rejects this.  */
19780  struct point {int x, y;};
19781  static struct point const zero = {0,0};
19782  /* AIX XL C 1.02.0.0 rejects this.
19783     It does not let you subtract one const X* pointer from another in
19784     an arm of an if-expression whose if-part is not a constant
19785     expression */
19786  const char *g = "string";
19787  pcpcc = &g + (g ? g-g : 0);
19788  /* HPUX 7.0 cc rejects these. */
19789  ++pcpcc;
19790  ppc = (char**) pcpcc;
19791  pcpcc = (char const *const *) ppc;
19792  { /* SCO 3.2v4 cc rejects this.  */
19793    char *t;
19794    char const *s = 0 ? (char *) 0 : (char const *) 0;
19795
19796    *t++ = 0;
19797    if (s) return 0;
19798  }
19799  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19800    int x[] = {25, 17};
19801    const int *foo = &x[0];
19802    ++foo;
19803  }
19804  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19805    typedef const int *iptr;
19806    iptr p = 0;
19807    ++p;
19808  }
19809  { /* AIX XL C 1.02.0.0 rejects this saying
19810       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19811    struct s { int j; const int *ap[3]; };
19812    struct s *b; b->j = 5;
19813  }
19814  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19815    const int foo = 10;
19816    if (!foo) return 0;
19817  }
19818  return !cs[0] && !zero.x;
19819#endif
19820
19821  ;
19822  return 0;
19823}
19824_ACEOF
19825if ac_fn_c_try_compile "$LINENO"; then :
19826  ac_cv_c_const=yes
19827else
19828  ac_cv_c_const=no
19829fi
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831fi
19832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19833$as_echo "$ac_cv_c_const" >&6; }
19834if test $ac_cv_c_const = no; then
19835
19836$as_echo "#define const /**/" >>confdefs.h
19837
19838fi
19839
19840
19841
19842
19843    case " $LIBOBJS " in
19844  *" snprintf.$ac_objext "* ) ;;
19845  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19846 ;;
19847esac
19848
19849    _hw_cv_func_xprintf_replace_done=yes
19850fi
19851
19852fi
19853
19854
19855
19856
19857
19858# HMS: Save $LIBS and empty it.
19859# any LIBS we add here should go in to LDADD_LIBNTP
19860
19861__LIBS=$LIBS
19862LIBS=
19863
19864
19865
19866
19867
19868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
19869$as_echo_n "checking for directory path separator... " >&6; }
19870if ${ntp_cv_dir_sep+:} false; then :
19871  $as_echo_n "(cached) " >&6
19872else
19873
19874	case "$ntp_cv_dir_sep" in
19875	 '')
19876	    case "$target_os" in
19877	     *djgpp | *mingw32* | *emx*)
19878		ntp_cv_dir_sep="'\\'"
19879		;;
19880	     *)
19881		ntp_cv_dir_sep="'/'"
19882		;;
19883	    esac
19884	esac
19885
19886
19887fi
19888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
19889$as_echo "$ntp_cv_dir_sep" >&6; }
19890
19891cat >>confdefs.h <<_ACEOF
19892#define DIR_SEP $ntp_cv_dir_sep
19893_ACEOF
19894
19895
19896
19897    NTP_ORIG_LIBS="$LIBS"
19898
19899# Check whether --with-lineeditlibs was given.
19900if test "${with_lineeditlibs+set}" = set; then :
19901  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
19902else
19903  use_lineeditlibs="edit,editline"
19904
19905fi
19906
19907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
19908$as_echo_n "checking line editing libraries... " >&6; }
19909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
19910$as_echo "$use_lineeditlibs" >&6; }
19911    case "$use_lineeditlibs" in
19912     no)
19913	ntp_lib_lineedit=no
19914	;;
19915     *)
19916	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
19917	    for term_lib in "" termcap curses ncurses; do
19918		case "$term_lib" in
19919		 '')
19920		    TRY_LIB="-l$lineedit_lib"
19921		    ;;
19922		 *)
19923		    TRY_LIB="-l$lineedit_lib -l$term_lib"
19924		    ;;
19925		esac
19926		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
19927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
19928$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
19929		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930/* end confdefs.h.  */
19931
19932/* Override any GCC internal prototype to avoid an error.
19933   Use char because int might match the return type of a GCC
19934   builtin and then its argument prototype would still apply.  */
19935#ifdef __cplusplus
19936extern "C"
19937#endif
19938char readline ();
19939int
19940main ()
19941{
19942return readline ();
19943  ;
19944  return 0;
19945}
19946_ACEOF
19947if ac_fn_c_try_link "$LINENO"; then :
19948  ntp_lib_lineedit="$TRY_LIB"
19949fi
19950rm -f core conftest.err conftest.$ac_objext \
19951    conftest$ac_exeext conftest.$ac_ext
19952		case "$ntp_lib_lineedit" in
19953		 '')
19954		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955$as_echo "no" >&6; }
19956		    ;;
19957		 *)
19958		    # Use readline()
19959		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19960$as_echo "yes" >&6; }
19961		    break
19962		esac
19963		case "$term_lib" in
19964		 '')
19965		    # do not try el_gets without a terminal library
19966		    ;;
19967		 *)
19968		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
19969$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
19970		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19971/* end confdefs.h.  */
19972
19973/* Override any GCC internal prototype to avoid an error.
19974   Use char because int might match the return type of a GCC
19975   builtin and then its argument prototype would still apply.  */
19976#ifdef __cplusplus
19977extern "C"
19978#endif
19979char el_gets ();
19980int
19981main ()
19982{
19983return el_gets ();
19984  ;
19985  return 0;
19986}
19987_ACEOF
19988if ac_fn_c_try_link "$LINENO"; then :
19989  ntp_lib_lineedit="$TRY_LIB"
19990fi
19991rm -f core conftest.err conftest.$ac_objext \
19992    conftest$ac_exeext conftest.$ac_ext
19993		    case "$ntp_lib_lineedit" in
19994		     '')
19995			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19996$as_echo "no" >&6; }
19997			;;
19998		     *) # Use el_gets()
19999			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20000$as_echo "yes" >&6; }
20001			break
20002			;;
20003		    esac	# $ntp_lib_lineedit
20004		esac		# $term_lib
20005	    done
20006	    case "$ntp_lib_lineedit" in
20007	     '')
20008		;;
20009	     *)
20010		break
20011		;;
20012	    esac
20013	done
20014	LIBS="$NTP_ORIG_LIBS"
20015	;;
20016    esac	# $use_lineeditlibs
20017
20018    case "$ntp_lib_lineedit" in
20019     '')
20020	ntp_lib_lineedit="no"
20021	;;
20022     no)
20023	;;
20024     *)
20025	EDITLINE_LIBS="$ntp_lib_lineedit"
20026
20027	;;
20028    esac	# $ntp_lib_lineedit
20029
20030    case "$ntp_lib_lineedit" in
20031     no)
20032	;;
20033     *)
20034	for ac_header in readline.h readline/readline.h histedit.h
20035do :
20036  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20037ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20039  cat >>confdefs.h <<_ACEOF
20040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20041_ACEOF
20042
20043fi
20044
20045done
20046
20047	for ac_header in history.h readline/history.h
20048do :
20049  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20050ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20051if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20052  cat >>confdefs.h <<_ACEOF
20053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20054_ACEOF
20055
20056fi
20057
20058done
20059
20060
20061	case "$ac_cv_header_histedit_h" in
20062	 yes)
20063	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
20064$as_echo_n "checking number of arguments to el_init()... " >&6; }
20065if ${ntp_cv_el_init_args+:} false; then :
20066  $as_echo_n "(cached) " >&6
20067else
20068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069/* end confdefs.h.  */
20070
20071			    #include <stdio.h>
20072			    #include <histedit.h>
20073
20074int
20075main ()
20076{
20077
20078			    el_init("conftest", stdin, stdout, stderr);
20079
20080
20081  ;
20082  return 0;
20083}
20084_ACEOF
20085if ac_fn_c_try_compile "$LINENO"; then :
20086  ntp_cv_el_init_args=4
20087else
20088  ntp_cv_el_init_args=3
20089
20090fi
20091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20092
20093fi
20094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
20095$as_echo "$ntp_cv_el_init_args" >&6; }
20096
20097cat >>confdefs.h <<_ACEOF
20098#define EL_INIT_ARGS $ntp_cv_el_init_args
20099_ACEOF
20100
20101	esac
20102
20103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20104$as_echo_n "checking whether readline supports history... " >&6; }
20105
20106	ntp_lib_lineedit_history="no"
20107	ORIG_LIBS="$LIBS"
20108	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
20109	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110/* end confdefs.h.  */
20111
20112/* Override any GCC internal prototype to avoid an error.
20113   Use char because int might match the return type of a GCC
20114   builtin and then its argument prototype would still apply.  */
20115#ifdef __cplusplus
20116extern "C"
20117#endif
20118char add_history ();
20119int
20120main ()
20121{
20122return add_history ();
20123  ;
20124  return 0;
20125}
20126_ACEOF
20127if ac_fn_c_try_link "$LINENO"; then :
20128  ntp_lib_lineedit_history="yes"
20129fi
20130rm -f core conftest.err conftest.$ac_objext \
20131    conftest$ac_exeext conftest.$ac_ext
20132	LIBS="$ORIG_LIBS"
20133
20134	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
20135$as_echo "$ntp_lib_lineedit_history" >&6; }
20136
20137	case "$ntp_lib_lineedit_history" in
20138	 yes)
20139
20140$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20141
20142	esac
20143    esac	# $ntp_lib_lineedit
20144    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
20145    { ORIG_LIBS=; unset ORIG_LIBS;}
20146    { TRY_LIB=; unset TRY_LIB;}
20147    { use_lineeditlibs=; unset use_lineeditlibs;}
20148
20149
20150LIBM=
20151case "$host" in
20152 *-*-darwin*)
20153    ;;
20154 *)
20155    _libs=$LIBS
20156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
20157$as_echo_n "checking for library containing cos... " >&6; }
20158if ${ac_cv_search_cos+:} false; then :
20159  $as_echo_n "(cached) " >&6
20160else
20161  ac_func_search_save_LIBS=$LIBS
20162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163/* end confdefs.h.  */
20164
20165/* Override any GCC internal prototype to avoid an error.
20166   Use char because int might match the return type of a GCC
20167   builtin and then its argument prototype would still apply.  */
20168#ifdef __cplusplus
20169extern "C"
20170#endif
20171char cos ();
20172int
20173main ()
20174{
20175return cos ();
20176  ;
20177  return 0;
20178}
20179_ACEOF
20180for ac_lib in '' m; do
20181  if test -z "$ac_lib"; then
20182    ac_res="none required"
20183  else
20184    ac_res=-l$ac_lib
20185    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20186  fi
20187  if ac_fn_c_try_link "$LINENO"; then :
20188  ac_cv_search_cos=$ac_res
20189fi
20190rm -f core conftest.err conftest.$ac_objext \
20191    conftest$ac_exeext
20192  if ${ac_cv_search_cos+:} false; then :
20193  break
20194fi
20195done
20196if ${ac_cv_search_cos+:} false; then :
20197
20198else
20199  ac_cv_search_cos=no
20200fi
20201rm conftest.$ac_ext
20202LIBS=$ac_func_search_save_LIBS
20203fi
20204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
20205$as_echo "$ac_cv_search_cos" >&6; }
20206ac_res=$ac_cv_search_cos
20207if test "$ac_res" != no; then :
20208  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20209  LIBM="-lm"
20210fi
20211
20212    LIBS=$_libs
20213    ;;
20214esac
20215
20216{ _libs=; unset _libs;}
20217
20218
20219for ac_header in vfork.h
20220do :
20221  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20222if test "x$ac_cv_header_vfork_h" = xyes; then :
20223  cat >>confdefs.h <<_ACEOF
20224#define HAVE_VFORK_H 1
20225_ACEOF
20226
20227fi
20228
20229done
20230
20231for ac_func in fork vfork
20232do :
20233  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20234ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20235if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20236  cat >>confdefs.h <<_ACEOF
20237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20238_ACEOF
20239
20240fi
20241done
20242
20243if test "x$ac_cv_func_fork" = xyes; then
20244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20245$as_echo_n "checking for working fork... " >&6; }
20246if ${ac_cv_func_fork_works+:} false; then :
20247  $as_echo_n "(cached) " >&6
20248else
20249  if test "$cross_compiling" = yes; then :
20250  ac_cv_func_fork_works=cross
20251else
20252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253/* end confdefs.h.  */
20254$ac_includes_default
20255int
20256main ()
20257{
20258
20259	  /* By Ruediger Kuhlmann. */
20260	  return fork () < 0;
20261
20262  ;
20263  return 0;
20264}
20265_ACEOF
20266if ac_fn_c_try_run "$LINENO"; then :
20267  ac_cv_func_fork_works=yes
20268else
20269  ac_cv_func_fork_works=no
20270fi
20271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20272  conftest.$ac_objext conftest.beam conftest.$ac_ext
20273fi
20274
20275fi
20276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20277$as_echo "$ac_cv_func_fork_works" >&6; }
20278
20279else
20280  ac_cv_func_fork_works=$ac_cv_func_fork
20281fi
20282if test "x$ac_cv_func_fork_works" = xcross; then
20283  case $host in
20284    *-*-amigaos* | *-*-msdosdjgpp*)
20285      # Override, as these systems have only a dummy fork() stub
20286      ac_cv_func_fork_works=no
20287      ;;
20288    *)
20289      ac_cv_func_fork_works=yes
20290      ;;
20291  esac
20292  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20293$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20294fi
20295ac_cv_func_vfork_works=$ac_cv_func_vfork
20296if test "x$ac_cv_func_vfork" = xyes; then
20297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20298$as_echo_n "checking for working vfork... " >&6; }
20299if ${ac_cv_func_vfork_works+:} false; then :
20300  $as_echo_n "(cached) " >&6
20301else
20302  if test "$cross_compiling" = yes; then :
20303  ac_cv_func_vfork_works=cross
20304else
20305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306/* end confdefs.h.  */
20307/* Thanks to Paul Eggert for this test.  */
20308$ac_includes_default
20309#include <sys/wait.h>
20310#ifdef HAVE_VFORK_H
20311# include <vfork.h>
20312#endif
20313/* On some sparc systems, changes by the child to local and incoming
20314   argument registers are propagated back to the parent.  The compiler
20315   is told about this with #include <vfork.h>, but some compilers
20316   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
20317   static variable whose address is put into a register that is
20318   clobbered by the vfork.  */
20319static void
20320#ifdef __cplusplus
20321sparc_address_test (int arg)
20322# else
20323sparc_address_test (arg) int arg;
20324#endif
20325{
20326  static pid_t child;
20327  if (!child) {
20328    child = vfork ();
20329    if (child < 0) {
20330      perror ("vfork");
20331      _exit(2);
20332    }
20333    if (!child) {
20334      arg = getpid();
20335      write(-1, "", 0);
20336      _exit (arg);
20337    }
20338  }
20339}
20340
20341int
20342main ()
20343{
20344  pid_t parent = getpid ();
20345  pid_t child;
20346
20347  sparc_address_test (0);
20348
20349  child = vfork ();
20350
20351  if (child == 0) {
20352    /* Here is another test for sparc vfork register problems.  This
20353       test uses lots of local variables, at least as many local
20354       variables as main has allocated so far including compiler
20355       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
20356       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
20357       reuse the register of parent for one of the local variables,
20358       since it will think that parent can't possibly be used any more
20359       in this routine.  Assigning to the local variable will thus
20360       munge parent in the parent process.  */
20361    pid_t
20362      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20363      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20364    /* Convince the compiler that p..p7 are live; otherwise, it might
20365       use the same hardware register for all 8 local variables.  */
20366    if (p != p1 || p != p2 || p != p3 || p != p4
20367	|| p != p5 || p != p6 || p != p7)
20368      _exit(1);
20369
20370    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20371       from child file descriptors.  If the child closes a descriptor
20372       before it execs or exits, this munges the parent's descriptor
20373       as well.  Test for this by closing stdout in the child.  */
20374    _exit(close(fileno(stdout)) != 0);
20375  } else {
20376    int status;
20377    struct stat st;
20378
20379    while (wait(&status) != child)
20380      ;
20381    return (
20382	 /* Was there some problem with vforking?  */
20383	 child < 0
20384
20385	 /* Did the child fail?  (This shouldn't happen.)  */
20386	 || status
20387
20388	 /* Did the vfork/compiler bug occur?  */
20389	 || parent != getpid()
20390
20391	 /* Did the file descriptor bug occur?  */
20392	 || fstat(fileno(stdout), &st) != 0
20393	 );
20394  }
20395}
20396_ACEOF
20397if ac_fn_c_try_run "$LINENO"; then :
20398  ac_cv_func_vfork_works=yes
20399else
20400  ac_cv_func_vfork_works=no
20401fi
20402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20403  conftest.$ac_objext conftest.beam conftest.$ac_ext
20404fi
20405
20406fi
20407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20408$as_echo "$ac_cv_func_vfork_works" >&6; }
20409
20410fi;
20411if test "x$ac_cv_func_fork_works" = xcross; then
20412  ac_cv_func_vfork_works=$ac_cv_func_vfork
20413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20414$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20415fi
20416
20417if test "x$ac_cv_func_vfork_works" = xyes; then
20418
20419$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20420
20421else
20422
20423$as_echo "#define vfork fork" >>confdefs.h
20424
20425fi
20426if test "x$ac_cv_func_fork_works" = xyes; then
20427
20428$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20429
20430fi
20431
20432# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20433# for constant arguments.  Useless!
20434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20435$as_echo_n "checking for working alloca.h... " >&6; }
20436if ${ac_cv_working_alloca_h+:} false; then :
20437  $as_echo_n "(cached) " >&6
20438else
20439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440/* end confdefs.h.  */
20441#include <alloca.h>
20442int
20443main ()
20444{
20445char *p = (char *) alloca (2 * sizeof (int));
20446			  if (p) return 0;
20447  ;
20448  return 0;
20449}
20450_ACEOF
20451if ac_fn_c_try_link "$LINENO"; then :
20452  ac_cv_working_alloca_h=yes
20453else
20454  ac_cv_working_alloca_h=no
20455fi
20456rm -f core conftest.err conftest.$ac_objext \
20457    conftest$ac_exeext conftest.$ac_ext
20458fi
20459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20460$as_echo "$ac_cv_working_alloca_h" >&6; }
20461if test $ac_cv_working_alloca_h = yes; then
20462
20463$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20464
20465fi
20466
20467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20468$as_echo_n "checking for alloca... " >&6; }
20469if ${ac_cv_func_alloca_works+:} false; then :
20470  $as_echo_n "(cached) " >&6
20471else
20472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473/* end confdefs.h.  */
20474#ifdef __GNUC__
20475# define alloca __builtin_alloca
20476#else
20477# ifdef _MSC_VER
20478#  include <malloc.h>
20479#  define alloca _alloca
20480# else
20481#  ifdef HAVE_ALLOCA_H
20482#   include <alloca.h>
20483#  else
20484#   ifdef _AIX
20485 #pragma alloca
20486#   else
20487#    ifndef alloca /* predefined by HP cc +Olibcalls */
20488void *alloca (size_t);
20489#    endif
20490#   endif
20491#  endif
20492# endif
20493#endif
20494
20495int
20496main ()
20497{
20498char *p = (char *) alloca (1);
20499				    if (p) return 0;
20500  ;
20501  return 0;
20502}
20503_ACEOF
20504if ac_fn_c_try_link "$LINENO"; then :
20505  ac_cv_func_alloca_works=yes
20506else
20507  ac_cv_func_alloca_works=no
20508fi
20509rm -f core conftest.err conftest.$ac_objext \
20510    conftest$ac_exeext conftest.$ac_ext
20511fi
20512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20513$as_echo "$ac_cv_func_alloca_works" >&6; }
20514
20515if test $ac_cv_func_alloca_works = yes; then
20516
20517$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20518
20519else
20520  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20521# that cause trouble.  Some versions do not even contain alloca or
20522# contain a buggy version.  If you still want to use their alloca,
20523# use ar to extract alloca.o from them instead of compiling alloca.c.
20524
20525ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20526
20527$as_echo "#define C_ALLOCA 1" >>confdefs.h
20528
20529
20530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20531$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20532if ${ac_cv_os_cray+:} false; then :
20533  $as_echo_n "(cached) " >&6
20534else
20535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536/* end confdefs.h.  */
20537#if defined CRAY && ! defined CRAY2
20538webecray
20539#else
20540wenotbecray
20541#endif
20542
20543_ACEOF
20544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20545  $EGREP "webecray" >/dev/null 2>&1; then :
20546  ac_cv_os_cray=yes
20547else
20548  ac_cv_os_cray=no
20549fi
20550rm -f conftest*
20551
20552fi
20553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20554$as_echo "$ac_cv_os_cray" >&6; }
20555if test $ac_cv_os_cray = yes; then
20556  for ac_func in _getb67 GETB67 getb67; do
20557    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20559if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20560
20561cat >>confdefs.h <<_ACEOF
20562#define CRAY_STACKSEG_END $ac_func
20563_ACEOF
20564
20565    break
20566fi
20567
20568  done
20569fi
20570
20571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20572$as_echo_n "checking stack direction for C alloca... " >&6; }
20573if ${ac_cv_c_stack_direction+:} false; then :
20574  $as_echo_n "(cached) " >&6
20575else
20576  if test "$cross_compiling" = yes; then :
20577  ac_cv_c_stack_direction=0
20578else
20579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580/* end confdefs.h.  */
20581$ac_includes_default
20582int
20583find_stack_direction ()
20584{
20585  static char *addr = 0;
20586  auto char dummy;
20587  if (addr == 0)
20588    {
20589      addr = &dummy;
20590      return find_stack_direction ();
20591    }
20592  else
20593    return (&dummy > addr) ? 1 : -1;
20594}
20595
20596int
20597main ()
20598{
20599  return find_stack_direction () < 0;
20600}
20601_ACEOF
20602if ac_fn_c_try_run "$LINENO"; then :
20603  ac_cv_c_stack_direction=1
20604else
20605  ac_cv_c_stack_direction=-1
20606fi
20607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20608  conftest.$ac_objext conftest.beam conftest.$ac_ext
20609fi
20610
20611fi
20612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20613$as_echo "$ac_cv_c_stack_direction" >&6; }
20614cat >>confdefs.h <<_ACEOF
20615#define STACK_DIRECTION $ac_cv_c_stack_direction
20616_ACEOF
20617
20618
20619fi
20620
20621ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
20622if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
20623  ac_have_decl=1
20624else
20625  ac_have_decl=0
20626fi
20627
20628cat >>confdefs.h <<_ACEOF
20629#define HAVE_DECL_STRERROR_R $ac_have_decl
20630_ACEOF
20631
20632for ac_func in strerror_r
20633do :
20634  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20635if test "x$ac_cv_func_strerror_r" = xyes; then :
20636  cat >>confdefs.h <<_ACEOF
20637#define HAVE_STRERROR_R 1
20638_ACEOF
20639
20640fi
20641done
20642
20643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20644$as_echo_n "checking whether strerror_r returns char *... " >&6; }
20645if ${ac_cv_func_strerror_r_char_p+:} false; then :
20646  $as_echo_n "(cached) " >&6
20647else
20648
20649    ac_cv_func_strerror_r_char_p=no
20650    if test $ac_cv_have_decl_strerror_r = yes; then
20651      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652/* end confdefs.h.  */
20653$ac_includes_default
20654int
20655main ()
20656{
20657
20658	  char buf[100];
20659	  char x = *strerror_r (0, buf, sizeof buf);
20660	  char *p = strerror_r (0, buf, sizeof buf);
20661	  return !p || x;
20662
20663  ;
20664  return 0;
20665}
20666_ACEOF
20667if ac_fn_c_try_compile "$LINENO"; then :
20668  ac_cv_func_strerror_r_char_p=yes
20669fi
20670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20671    else
20672      # strerror_r is not declared.  Choose between
20673      # systems that have relatively inaccessible declarations for the
20674      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
20675      # former has a strerror_r that returns char*, while the latter
20676      # has a strerror_r that returns `int'.
20677      # This test should segfault on the DEC system.
20678      if test "$cross_compiling" = yes; then :
20679  :
20680else
20681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682/* end confdefs.h.  */
20683$ac_includes_default
20684	extern char *strerror_r ();
20685int
20686main ()
20687{
20688char buf[100];
20689	  char x = *strerror_r (0, buf, sizeof buf);
20690	  return ! isalpha (x);
20691  ;
20692  return 0;
20693}
20694_ACEOF
20695if ac_fn_c_try_run "$LINENO"; then :
20696  ac_cv_func_strerror_r_char_p=yes
20697fi
20698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20699  conftest.$ac_objext conftest.beam conftest.$ac_ext
20700fi
20701
20702    fi
20703
20704fi
20705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20706$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
20707if test $ac_cv_func_strerror_r_char_p = yes; then
20708
20709$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20710
20711fi
20712
20713
20714ac_busted_vpath_in_make=no
20715case "$build" in
20716 *-*-irix6.1*)	# 64 bit only
20717    # busted vpath?
20718    ;;
20719 *-*-irix6*)	# 6.2 (and later?)
20720    ac_busted_vpath_in_make=yes
20721    ;;
20722 *-*-solaris2.5.1)
20723    ac_busted_vpath_in_make=yes
20724    ;;
20725 *-*-unicosmp*)
20726    ac_busted_vpath_in_make=yes
20727    ;;
20728esac
20729
20730case "$ac_busted_vpath_in_make$srcdir" in
20731 yes.|no*)
20732    ;;
20733 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
20734     '')
20735	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
20736    esac
20737    ;;
20738esac
20739
20740case "$host" in
20741 *-*-aix4*)
20742	# Bug 2516:
20743	# Was *-*-aix[[4-9]]*
20744	# XXX only verified thru AIX6.  But...
20745	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
20746	# that this support would be in 5.3, removed in 6, and added back.
20747	#
20748	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
20749	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
20750	# IBM pulls its thumbs out long enough to implement clock_settime,
20751	# this conditional will need to change.  Maybe use AC_TRY_RUN
20752	# instead to try to set the time to itself and check errno.
20753    ;;
20754 *)
20755    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20756$as_echo_n "checking for library containing clock_gettime... " >&6; }
20757if ${ac_cv_search_clock_gettime+:} false; then :
20758  $as_echo_n "(cached) " >&6
20759else
20760  ac_func_search_save_LIBS=$LIBS
20761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762/* end confdefs.h.  */
20763
20764/* Override any GCC internal prototype to avoid an error.
20765   Use char because int might match the return type of a GCC
20766   builtin and then its argument prototype would still apply.  */
20767#ifdef __cplusplus
20768extern "C"
20769#endif
20770char clock_gettime ();
20771int
20772main ()
20773{
20774return clock_gettime ();
20775  ;
20776  return 0;
20777}
20778_ACEOF
20779for ac_lib in '' rt; do
20780  if test -z "$ac_lib"; then
20781    ac_res="none required"
20782  else
20783    ac_res=-l$ac_lib
20784    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20785  fi
20786  if ac_fn_c_try_link "$LINENO"; then :
20787  ac_cv_search_clock_gettime=$ac_res
20788fi
20789rm -f core conftest.err conftest.$ac_objext \
20790    conftest$ac_exeext
20791  if ${ac_cv_search_clock_gettime+:} false; then :
20792  break
20793fi
20794done
20795if ${ac_cv_search_clock_gettime+:} false; then :
20796
20797else
20798  ac_cv_search_clock_gettime=no
20799fi
20800rm conftest.$ac_ext
20801LIBS=$ac_func_search_save_LIBS
20802fi
20803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20804$as_echo "$ac_cv_search_clock_gettime" >&6; }
20805ac_res=$ac_cv_search_clock_gettime
20806if test "$ac_res" != no; then :
20807  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20808  case "$ac_cv_search_clock_gettime" in
20809 'none required') ;;
20810 no) ;;
20811 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
20812 esac
20813
20814fi
20815
20816    for ac_func in clock_getres clock_gettime clock_settime
20817do :
20818  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20820if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20821  cat >>confdefs.h <<_ACEOF
20822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823_ACEOF
20824
20825fi
20826done
20827
20828    ;;
20829esac
20830
20831for ac_func in getclock stime timegm strlcpy strlcat
20832do :
20833  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20834ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20835if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20836  cat >>confdefs.h <<_ACEOF
20837#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20838_ACEOF
20839
20840fi
20841done
20842
20843
20844#
20845for ac_header in errno.h sys/socket.h sys/types.h time.h
20846do :
20847  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20850  cat >>confdefs.h <<_ACEOF
20851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20852_ACEOF
20853
20854fi
20855
20856done
20857
20858for ac_header in net/if.h
20859do :
20860  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
20861    #ifdef HAVE_SYS_SOCKET_H
20862    # include <sys/socket.h>
20863    #endif
20864
20865"
20866if test "x$ac_cv_header_net_if_h" = xyes; then :
20867  cat >>confdefs.h <<_ACEOF
20868#define HAVE_NET_IF_H 1
20869_ACEOF
20870
20871fi
20872
20873done
20874
20875case "$host" in
20876 *-hp-hpux*)
20877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
20878$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
20879if ${ntp_cv_predecl_mpinfou+:} false; then :
20880  $as_echo_n "(cached) " >&6
20881else
20882
20883	    np_cv_predecl_mpinfou=no
20884	    case "$ac_cv_header_net_if_h" in
20885	     no)
20886		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887/* end confdefs.h.  */
20888
20889			    typedef union mpinfou {
20890				    struct pdk_mpinfo *pdkptr;
20891				    struct mpinfo *pikptr;
20892			    } mpinfou_t;
20893			    #ifdef HAVE_SYS_SOCKET_H
20894			    # include <sys/socket.h>
20895			    #endif
20896			    #include <net/if.h>
20897
20898int
20899main ()
20900{
20901
20902
20903
20904  ;
20905  return 0;
20906}
20907_ACEOF
20908if ac_fn_c_try_compile "$LINENO"; then :
20909
20910			ntp_cv_predecl_mpinfou=yes
20911			ac_cv_header_net_if_h=yes
20912
20913
20914fi
20915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916	    esac
20917
20918
20919fi
20920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
20921$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
20922    case "$ntp_cv_predecl_mpinfou" in
20923     yes)
20924	cat >>confdefs.h <<_ACEOF
20925#ifndef MPINFOU_PREDECLARED
20926# define MPINFOU_PREDECLARED
20927typedef union mpinfou {
20928	struct pdk_mpinfo *pdkptr;
20929	struct mpinfo *pikptr;
20930} mpinfou_t;
20931#endif
20932_ACEOF
20933
20934    esac
20935esac
20936
20937case "$host" in
20938 *-linux*)
20939    for ac_header in linux/if_addr.h
20940do :
20941  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
20942	#ifdef HAVE_SYS_SOCKET_H
20943	# include <sys/socket.h>
20944	#endif
20945
20946"
20947if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
20948  cat >>confdefs.h <<_ACEOF
20949#define HAVE_LINUX_IF_ADDR_H 1
20950_ACEOF
20951
20952fi
20953
20954done
20955
20956esac
20957
20958for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
20959do :
20960  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20961ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20963  cat >>confdefs.h <<_ACEOF
20964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20965_ACEOF
20966
20967fi
20968
20969done
20970
20971# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
20972for ac_header in sys/sysctl.h
20973do :
20974  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
20975    #if defined HAVE_SYS_PARAM_H
20976    # include <sys/param.h>
20977    #endif
20978
20979"
20980if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20981  cat >>confdefs.h <<_ACEOF
20982#define HAVE_SYS_SYSCTL_H 1
20983_ACEOF
20984
20985fi
20986
20987done
20988
20989for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
20990do :
20991  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20994  cat >>confdefs.h <<_ACEOF
20995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20996_ACEOF
20997
20998fi
20999
21000done
21001
21002
21003for ac_header in resolv.h
21004do :
21005  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
21006    #ifdef HAVE_SYS_TYPES_H
21007    # include <sys/types.h>
21008    #endif
21009    #ifdef HAVE_NETINET_IN_H
21010    # include <netinet/in.h>
21011    #endif
21012    #ifdef HAVE_ARPA_NAMESER_H
21013    # include <arpa/nameser.h>
21014    #endif
21015
21016"
21017if test "x$ac_cv_header_resolv_h" = xyes; then :
21018  cat >>confdefs.h <<_ACEOF
21019#define HAVE_RESOLV_H 1
21020_ACEOF
21021
21022fi
21023
21024done
21025
21026
21027for ac_header in net/if_var.h
21028do :
21029  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
21030    #if HAVE_SYS_TYPES_H
21031    # include <sys/types.h>
21032    #endif
21033    #ifdef HAVE_SYS_SOCKET_H
21034    # include <sys/socket.h>
21035    #endif
21036    #ifdef HAVE_NETINET_IN_H
21037    # include <netinet/in.h>
21038    #endif
21039    #ifdef HAVE_NET_IF_H
21040    # include <net/if.h>
21041    #endif
21042
21043"
21044if test "x$ac_cv_header_net_if_var_h" = xyes; then :
21045  cat >>confdefs.h <<_ACEOF
21046#define HAVE_NET_IF_VAR_H 1
21047_ACEOF
21048
21049fi
21050
21051done
21052
21053
21054for ac_header in netinet/ip.h netinet/in_var.h
21055do :
21056  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21057ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21058    #ifdef HAVE_SYS_TYPES_H
21059    # include <sys/types.h>
21060    #endif
21061    #ifdef HAVE_SYS_SOCKET_H
21062    # include <sys/socket.h>
21063    #endif
21064    #ifdef HAVE_NET_IF_H
21065    # include <net/if.h>
21066    #endif
21067    #ifdef HAVE_NETINET_IN_H
21068    # include <netinet/in.h>
21069    #endif
21070    #ifdef HAVE_NET_IF_VAR_H
21071    # include <net/if_var.h>
21072    #endif
21073    #ifdef HAVE_NETINET_IN_SYSTM_H
21074    # include <netinet/in_systm.h>
21075    #endif
21076
21077"
21078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21079  cat >>confdefs.h <<_ACEOF
21080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21081_ACEOF
21082
21083fi
21084
21085done
21086
21087
21088# HMS: Do we need to check for -lsocket before or after these tests?
21089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
21090$as_echo_n "checking for library containing inet_pton... " >&6; }
21091if ${ac_cv_search_inet_pton+:} false; then :
21092  $as_echo_n "(cached) " >&6
21093else
21094  ac_func_search_save_LIBS=$LIBS
21095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096/* end confdefs.h.  */
21097
21098/* Override any GCC internal prototype to avoid an error.
21099   Use char because int might match the return type of a GCC
21100   builtin and then its argument prototype would still apply.  */
21101#ifdef __cplusplus
21102extern "C"
21103#endif
21104char inet_pton ();
21105int
21106main ()
21107{
21108return inet_pton ();
21109  ;
21110  return 0;
21111}
21112_ACEOF
21113for ac_lib in '' nsl; do
21114  if test -z "$ac_lib"; then
21115    ac_res="none required"
21116  else
21117    ac_res=-l$ac_lib
21118    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21119  fi
21120  if ac_fn_c_try_link "$LINENO"; then :
21121  ac_cv_search_inet_pton=$ac_res
21122fi
21123rm -f core conftest.err conftest.$ac_objext \
21124    conftest$ac_exeext
21125  if ${ac_cv_search_inet_pton+:} false; then :
21126  break
21127fi
21128done
21129if ${ac_cv_search_inet_pton+:} false; then :
21130
21131else
21132  ac_cv_search_inet_pton=no
21133fi
21134rm conftest.$ac_ext
21135LIBS=$ac_func_search_save_LIBS
21136fi
21137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
21138$as_echo "$ac_cv_search_inet_pton" >&6; }
21139ac_res=$ac_cv_search_inet_pton
21140if test "$ac_res" != no; then :
21141  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21142  case "$ac_cv_search_inet_pton" in
21143 'none required') ;;
21144 no) ;;
21145 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
21146 esac
21147
21148fi
21149
21150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21151$as_echo_n "checking for library containing inet_ntop... " >&6; }
21152if ${ac_cv_search_inet_ntop+:} false; then :
21153  $as_echo_n "(cached) " >&6
21154else
21155  ac_func_search_save_LIBS=$LIBS
21156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157/* end confdefs.h.  */
21158
21159/* Override any GCC internal prototype to avoid an error.
21160   Use char because int might match the return type of a GCC
21161   builtin and then its argument prototype would still apply.  */
21162#ifdef __cplusplus
21163extern "C"
21164#endif
21165char inet_ntop ();
21166int
21167main ()
21168{
21169return inet_ntop ();
21170  ;
21171  return 0;
21172}
21173_ACEOF
21174for ac_lib in '' resolv; do
21175  if test -z "$ac_lib"; then
21176    ac_res="none required"
21177  else
21178    ac_res=-l$ac_lib
21179    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
21180  fi
21181  if ac_fn_c_try_link "$LINENO"; then :
21182  ac_cv_search_inet_ntop=$ac_res
21183fi
21184rm -f core conftest.err conftest.$ac_objext \
21185    conftest$ac_exeext
21186  if ${ac_cv_search_inet_ntop+:} false; then :
21187  break
21188fi
21189done
21190if ${ac_cv_search_inet_ntop+:} false; then :
21191
21192else
21193  ac_cv_search_inet_ntop=no
21194fi
21195rm conftest.$ac_ext
21196LIBS=$ac_func_search_save_LIBS
21197fi
21198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21199$as_echo "$ac_cv_search_inet_ntop" >&6; }
21200ac_res=$ac_cv_search_inet_ntop
21201if test "$ac_res" != no; then :
21202  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21203  case "$ac_cv_search_inet_ntop" in
21204 'none required') ;;
21205 no) ;;
21206 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
21207 esac
21208
21209fi
21210
21211
21212# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
21213# avoid keying on the OS name:  If we find socket functions in
21214# libsocket, next try for them in libxnet without libsocket, if found,
21215# list both.  If we simply tested libxnet first, we would find the
21216# functions there and never add libsocket.  See also [Bug 660]
21217# http://bugs.ntp.org/show_bug.cgi?id=660#c9
21218saved_LIBS=$LIBS
21219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
21220$as_echo_n "checking for library containing setsockopt... " >&6; }
21221if ${ac_cv_search_setsockopt+:} false; then :
21222  $as_echo_n "(cached) " >&6
21223else
21224  ac_func_search_save_LIBS=$LIBS
21225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21226/* end confdefs.h.  */
21227
21228/* Override any GCC internal prototype to avoid an error.
21229   Use char because int might match the return type of a GCC
21230   builtin and then its argument prototype would still apply.  */
21231#ifdef __cplusplus
21232extern "C"
21233#endif
21234char setsockopt ();
21235int
21236main ()
21237{
21238return setsockopt ();
21239  ;
21240  return 0;
21241}
21242_ACEOF
21243for ac_lib in '' socket; do
21244  if test -z "$ac_lib"; then
21245    ac_res="none required"
21246  else
21247    ac_res=-l$ac_lib
21248    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21249  fi
21250  if ac_fn_c_try_link "$LINENO"; then :
21251  ac_cv_search_setsockopt=$ac_res
21252fi
21253rm -f core conftest.err conftest.$ac_objext \
21254    conftest$ac_exeext
21255  if ${ac_cv_search_setsockopt+:} false; then :
21256  break
21257fi
21258done
21259if ${ac_cv_search_setsockopt+:} false; then :
21260
21261else
21262  ac_cv_search_setsockopt=no
21263fi
21264rm conftest.$ac_ext
21265LIBS=$ac_func_search_save_LIBS
21266fi
21267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
21268$as_echo "$ac_cv_search_setsockopt" >&6; }
21269ac_res=$ac_cv_search_setsockopt
21270if test "$ac_res" != no; then :
21271  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21272  case "$ac_cv_search_setsockopt" in
21273 'none required') ;;
21274 no) ;;
21275 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
21276 esac
21277
21278fi
21279
21280case "$ac_cv_search_setsockopt" in
21281 -lsocket)
21282    LIBS="$saved_LIBS"
21283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
21284$as_echo_n "checking for library containing getsockopt... " >&6; }
21285if ${ac_cv_search_getsockopt+:} false; then :
21286  $as_echo_n "(cached) " >&6
21287else
21288  ac_func_search_save_LIBS=$LIBS
21289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21290/* end confdefs.h.  */
21291
21292/* Override any GCC internal prototype to avoid an error.
21293   Use char because int might match the return type of a GCC
21294   builtin and then its argument prototype would still apply.  */
21295#ifdef __cplusplus
21296extern "C"
21297#endif
21298char getsockopt ();
21299int
21300main ()
21301{
21302return getsockopt ();
21303  ;
21304  return 0;
21305}
21306_ACEOF
21307for ac_lib in '' xnet; do
21308  if test -z "$ac_lib"; then
21309    ac_res="none required"
21310  else
21311    ac_res=-l$ac_lib
21312    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21313  fi
21314  if ac_fn_c_try_link "$LINENO"; then :
21315  ac_cv_search_getsockopt=$ac_res
21316fi
21317rm -f core conftest.err conftest.$ac_objext \
21318    conftest$ac_exeext
21319  if ${ac_cv_search_getsockopt+:} false; then :
21320  break
21321fi
21322done
21323if ${ac_cv_search_getsockopt+:} false; then :
21324
21325else
21326  ac_cv_search_getsockopt=no
21327fi
21328rm conftest.$ac_ext
21329LIBS=$ac_func_search_save_LIBS
21330fi
21331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
21332$as_echo "$ac_cv_search_getsockopt" >&6; }
21333ac_res=$ac_cv_search_getsockopt
21334if test "$ac_res" != no; then :
21335  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21336  case "$ac_cv_search_getsockopt" in
21337 'none required') ;;
21338 no) ;;
21339 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
21340 esac
21341
21342fi
21343
21344    # XXX Possible trouble here - reading the comments above and looking at the
21345    # code below I wonder if we'll add -lxnet when we don't need it.
21346    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
21347    # there when it is not needed?
21348    case "$ac_cv_search_getsockopt" in
21349     -lxnet)
21350	LIBS="-lxnet -lsocket $saved_LIBS"
21351	;;
21352     *) LIBS="-lsocket $saved_LIBS"
21353	;;
21354    esac
21355    ;;
21356esac
21357{ saved_LIBS=; unset saved_LIBS;}
21358
21359# Bug 2427 - look for recvmsg here.
21360for ac_func in recvmsg
21361do :
21362  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
21363if test "x$ac_cv_func_recvmsg" = xyes; then :
21364  cat >>confdefs.h <<_ACEOF
21365#define HAVE_RECVMSG 1
21366_ACEOF
21367
21368fi
21369done
21370
21371
21372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21373$as_echo_n "checking for inline... " >&6; }
21374if ${ac_cv_c_inline+:} false; then :
21375  $as_echo_n "(cached) " >&6
21376else
21377  ac_cv_c_inline=no
21378for ac_kw in inline __inline__ __inline; do
21379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380/* end confdefs.h.  */
21381#ifndef __cplusplus
21382typedef int foo_t;
21383static $ac_kw foo_t static_foo () {return 0; }
21384$ac_kw foo_t foo () {return 0; }
21385#endif
21386
21387_ACEOF
21388if ac_fn_c_try_compile "$LINENO"; then :
21389  ac_cv_c_inline=$ac_kw
21390fi
21391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392  test "$ac_cv_c_inline" != no && break
21393done
21394
21395fi
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21397$as_echo "$ac_cv_c_inline" >&6; }
21398
21399case $ac_cv_c_inline in
21400  inline | yes) ;;
21401  *)
21402    case $ac_cv_c_inline in
21403      no) ac_val=;;
21404      *) ac_val=$ac_cv_c_inline;;
21405    esac
21406    cat >>confdefs.h <<_ACEOF
21407#ifndef __cplusplus
21408#define inline $ac_val
21409#endif
21410_ACEOF
21411    ;;
21412esac
21413
21414
21415case "$ac_cv_c_inline" in
21416 '')
21417    ;;
21418 *)
21419
21420$as_echo "#define HAVE_INLINE 1" >>confdefs.h
21421
21422
21423esac
21424
21425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21426$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21427if ${ac_cv_header_time+:} false; then :
21428  $as_echo_n "(cached) " >&6
21429else
21430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21431/* end confdefs.h.  */
21432#include <sys/types.h>
21433#include <sys/time.h>
21434#include <time.h>
21435
21436int
21437main ()
21438{
21439if ((struct tm *) 0)
21440return 0;
21441  ;
21442  return 0;
21443}
21444_ACEOF
21445if ac_fn_c_try_compile "$LINENO"; then :
21446  ac_cv_header_time=yes
21447else
21448  ac_cv_header_time=no
21449fi
21450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451fi
21452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21453$as_echo "$ac_cv_header_time" >&6; }
21454if test $ac_cv_header_time = yes; then
21455
21456$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21457
21458fi
21459
21460# The cast to long int works around a bug in the HP C Compiler
21461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21463# This bug is HP SR number 8606223364.
21464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
21465$as_echo_n "checking size of time_t... " >&6; }
21466if ${ac_cv_sizeof_time_t+:} false; then :
21467  $as_echo_n "(cached) " >&6
21468else
21469  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
21470
21471else
21472  if test "$ac_cv_type_time_t" = yes; then
21473     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21475as_fn_error 77 "cannot compute sizeof (time_t)
21476See \`config.log' for more details" "$LINENO" 5; }
21477   else
21478     ac_cv_sizeof_time_t=0
21479   fi
21480fi
21481
21482fi
21483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
21484$as_echo "$ac_cv_sizeof_time_t" >&6; }
21485
21486
21487
21488cat >>confdefs.h <<_ACEOF
21489#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
21490_ACEOF
21491
21492
21493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21494$as_echo_n "checking whether char is unsigned... " >&6; }
21495if ${ac_cv_c_char_unsigned+:} false; then :
21496  $as_echo_n "(cached) " >&6
21497else
21498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21499/* end confdefs.h.  */
21500$ac_includes_default
21501int
21502main ()
21503{
21504static int test_array [1 - 2 * !(((char) -1) < 0)];
21505test_array [0] = 0
21506
21507  ;
21508  return 0;
21509}
21510_ACEOF
21511if ac_fn_c_try_compile "$LINENO"; then :
21512  ac_cv_c_char_unsigned=no
21513else
21514  ac_cv_c_char_unsigned=yes
21515fi
21516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517fi
21518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21519$as_echo "$ac_cv_c_char_unsigned" >&6; }
21520if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21521  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21522
21523fi
21524		# The cast to long int works around a bug in the HP C Compiler
21525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21527# This bug is HP SR number 8606223364.
21528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
21529$as_echo_n "checking size of signed char... " >&6; }
21530if ${ac_cv_sizeof_signed_char+:} false; then :
21531  $as_echo_n "(cached) " >&6
21532else
21533  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
21534
21535else
21536  if test "$ac_cv_type_signed_char" = yes; then
21537     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21539as_fn_error 77 "cannot compute sizeof (signed char)
21540See \`config.log' for more details" "$LINENO" 5; }
21541   else
21542     ac_cv_sizeof_signed_char=0
21543   fi
21544fi
21545
21546fi
21547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
21548$as_echo "$ac_cv_sizeof_signed_char" >&6; }
21549
21550
21551
21552cat >>confdefs.h <<_ACEOF
21553#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
21554_ACEOF
21555
21556
21557ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
21558if test "x$ac_cv_type_s_char" = xyes; then :
21559
21560cat >>confdefs.h <<_ACEOF
21561#define HAVE_S_CHAR 1
21562_ACEOF
21563
21564
21565fi
21566ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
21567if test "x$ac_cv_type_long_long" = xyes; then :
21568
21569cat >>confdefs.h <<_ACEOF
21570#define HAVE_LONG_LONG 1
21571_ACEOF
21572
21573
21574fi
21575
21576# The cast to long int works around a bug in the HP C Compiler
21577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21579# This bug is HP SR number 8606223364.
21580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21581$as_echo_n "checking size of short... " >&6; }
21582if ${ac_cv_sizeof_short+:} false; then :
21583  $as_echo_n "(cached) " >&6
21584else
21585  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
21586
21587else
21588  if test "$ac_cv_type_short" = yes; then
21589     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21591as_fn_error 77 "cannot compute sizeof (short)
21592See \`config.log' for more details" "$LINENO" 5; }
21593   else
21594     ac_cv_sizeof_short=0
21595   fi
21596fi
21597
21598fi
21599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21600$as_echo "$ac_cv_sizeof_short" >&6; }
21601
21602
21603
21604cat >>confdefs.h <<_ACEOF
21605#define SIZEOF_SHORT $ac_cv_sizeof_short
21606_ACEOF
21607
21608
21609# The cast to long int works around a bug in the HP C Compiler
21610# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21611# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21612# This bug is HP SR number 8606223364.
21613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21614$as_echo_n "checking size of int... " >&6; }
21615if ${ac_cv_sizeof_int+:} false; then :
21616  $as_echo_n "(cached) " >&6
21617else
21618  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
21619
21620else
21621  if test "$ac_cv_type_int" = yes; then
21622     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21624as_fn_error 77 "cannot compute sizeof (int)
21625See \`config.log' for more details" "$LINENO" 5; }
21626   else
21627     ac_cv_sizeof_int=0
21628   fi
21629fi
21630
21631fi
21632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21633$as_echo "$ac_cv_sizeof_int" >&6; }
21634
21635
21636
21637cat >>confdefs.h <<_ACEOF
21638#define SIZEOF_INT $ac_cv_sizeof_int
21639_ACEOF
21640
21641
21642# The cast to long int works around a bug in the HP C Compiler
21643# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21644# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21645# This bug is HP SR number 8606223364.
21646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21647$as_echo_n "checking size of long... " >&6; }
21648if ${ac_cv_sizeof_long+:} false; then :
21649  $as_echo_n "(cached) " >&6
21650else
21651  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21652
21653else
21654  if test "$ac_cv_type_long" = yes; then
21655     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21657as_fn_error 77 "cannot compute sizeof (long)
21658See \`config.log' for more details" "$LINENO" 5; }
21659   else
21660     ac_cv_sizeof_long=0
21661   fi
21662fi
21663
21664fi
21665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21666$as_echo "$ac_cv_sizeof_long" >&6; }
21667
21668
21669
21670cat >>confdefs.h <<_ACEOF
21671#define SIZEOF_LONG $ac_cv_sizeof_long
21672_ACEOF
21673
21674
21675
21676case "$ac_cv_type_long_long" in
21677 no)
21678    ;;
21679 *)
21680    # The cast to long int works around a bug in the HP C Compiler
21681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21683# This bug is HP SR number 8606223364.
21684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21685$as_echo_n "checking size of long long... " >&6; }
21686if ${ac_cv_sizeof_long_long+:} false; then :
21687  $as_echo_n "(cached) " >&6
21688else
21689  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
21690
21691else
21692  if test "$ac_cv_type_long_long" = yes; then
21693     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21695as_fn_error 77 "cannot compute sizeof (long long)
21696See \`config.log' for more details" "$LINENO" 5; }
21697   else
21698     ac_cv_sizeof_long_long=0
21699   fi
21700fi
21701
21702fi
21703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21704$as_echo "$ac_cv_sizeof_long_long" >&6; }
21705
21706
21707
21708cat >>confdefs.h <<_ACEOF
21709#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21710_ACEOF
21711
21712
21713    ;;
21714esac
21715
21716case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
21717 *yes)
21718    # We have a typedef for s_char.  Might as well believe it...
21719    ;;
21720 no0no)
21721    # We have signed chars, can't say 'signed char', no s_char typedef.
21722
21723$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21724
21725    ;;
21726 no1no)
21727    # We have signed chars, can say 'signed char', no s_char typedef.
21728
21729$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21730
21731    ;;
21732 yes0no)
21733    # We have unsigned chars, can't say 'signed char', no s_char typedef.
21734    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
21735    ;;
21736 yes1no)
21737    # We have unsigned chars, can say 'signed char', no s_char typedef.
21738
21739$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
21740
21741    ;;
21742esac
21743
21744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21745$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21746if ${ac_cv_type_uid_t+:} false; then :
21747  $as_echo_n "(cached) " >&6
21748else
21749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21750/* end confdefs.h.  */
21751#include <sys/types.h>
21752
21753_ACEOF
21754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21755  $EGREP "uid_t" >/dev/null 2>&1; then :
21756  ac_cv_type_uid_t=yes
21757else
21758  ac_cv_type_uid_t=no
21759fi
21760rm -f conftest*
21761
21762fi
21763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21764$as_echo "$ac_cv_type_uid_t" >&6; }
21765if test $ac_cv_type_uid_t = no; then
21766
21767$as_echo "#define uid_t int" >>confdefs.h
21768
21769
21770$as_echo "#define gid_t int" >>confdefs.h
21771
21772fi
21773
21774
21775
21776
21777
21778
21779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
21780$as_echo_n "checking if we're including debugging code... " >&6; }
21781# Check whether --enable-debugging was given.
21782if test "${enable_debugging+set}" = set; then :
21783  enableval=$enable_debugging; ntp_ok=$enableval
21784else
21785  ntp_ok=yes
21786
21787fi
21788
21789case "$ntp_ok" in
21790 yes)
21791
21792$as_echo "#define DEBUG 1" >>confdefs.h
21793
21794esac
21795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
21796$as_echo "$ntp_ok" >&6; }
21797
21798
21799
21800# check if we can compile with pthreads
21801for ac_header in semaphore.h
21802do :
21803  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
21804if test "x$ac_cv_header_semaphore_h" = xyes; then :
21805  cat >>confdefs.h <<_ACEOF
21806#define HAVE_SEMAPHORE_H 1
21807_ACEOF
21808
21809fi
21810
21811done
21812
21813for ac_func in socketpair
21814do :
21815  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
21816if test "x$ac_cv_func_socketpair" = xyes; then :
21817  cat >>confdefs.h <<_ACEOF
21818#define HAVE_SOCKETPAIR 1
21819_ACEOF
21820
21821fi
21822done
21823
21824# Check whether --enable-thread-support was given.
21825if test "${enable_thread_support+set}" = set; then :
21826  enableval=$enable_thread_support;
21827else
21828  enable_thread_support=yes
21829
21830fi
21831
21832have_pthreads=no
21833case "$enable_thread_support" in
21834 yes)
21835    ol_found_pthreads=no
21836
21837
21838
21839ac_ext=c
21840ac_cpp='$CPP $CPPFLAGS'
21841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843ac_compiler_gnu=$ac_cv_c_compiler_gnu
21844
21845# OpenLDAP --with-threads
21846
21847# Check whether --with-threads was given.
21848if test "${with_threads+set}" = set; then :
21849  withval=$with_threads;
21850	ol_arg=invalid
21851	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
21852		if test "$withval" = "$ol_val" ; then
21853			ol_arg="$ol_val"
21854		fi
21855	done
21856	if test "$ol_arg" = "invalid" ; then
21857		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
21858	fi
21859	ol_with_threads="$ol_arg"
21860
21861else
21862  	ol_with_threads="auto"
21863fi
21864# end --with-threads
21865
21866
21867case "$ol_with_threads$host" in
21868 auto*-*-solaris2.[0-6])
21869        ol_with_threads=no
21870    ;;
21871esac
21872
21873
21874ol_aix_threads=no
21875case "$host" in
21876*-*-aix*) 	if test -z "$CC" ; then
21877		case "$ol_with_threads" in
21878		auto | yes |  posix) ol_aix_threads=yes ;;
21879		esac
21880	fi
21881;;
21882esac
21883
21884if test $ol_aix_threads = yes ; then
21885	if test -z "${CC}" ; then
21886		for ac_prog in cc_r xlc_r cc
21887do
21888  # Extract the first word of "$ac_prog", so it can be a program name with args.
21889set dummy $ac_prog; ac_word=$2
21890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21891$as_echo_n "checking for $ac_word... " >&6; }
21892if ${ac_cv_prog_CC+:} false; then :
21893  $as_echo_n "(cached) " >&6
21894else
21895  if test -n "$CC"; then
21896  ac_cv_prog_CC="$CC" # Let the user override the test.
21897else
21898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899for as_dir in $PATH
21900do
21901  IFS=$as_save_IFS
21902  test -z "$as_dir" && as_dir=.
21903    for ac_exec_ext in '' $ac_executable_extensions; do
21904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21905    ac_cv_prog_CC="$ac_prog"
21906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21907    break 2
21908  fi
21909done
21910  done
21911IFS=$as_save_IFS
21912
21913fi
21914fi
21915CC=$ac_cv_prog_CC
21916if test -n "$CC"; then
21917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
21918$as_echo "$CC" >&6; }
21919else
21920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921$as_echo "no" >&6; }
21922fi
21923
21924
21925  test -n "$CC" && break
21926done
21927
21928
21929		if test "$CC" = cc ; then
21930						if test $ol_with_threads != auto ; then
21931				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
21932			else
21933				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
21934$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
21935			fi
21936			ol_with_threads=no
21937  		fi
21938	fi
21939
21940	case ${CC} in cc_r | xlc_r)
21941		ol_with_threads=posix
21942		ol_cv_pthread_create=yes
21943		;;
21944	esac
21945fi
21946
21947ol_link_threads=no
21948ol_with_yielding_select=${ol_with_yielding_select-auto}
21949
21950case $ol_with_threads in auto | yes | nt)
21951
21952
21953	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
21954if test "x$ac_cv_func__beginthread" = xyes; then :
21955
21956fi
21957
21958
21959	if test $ac_cv_func__beginthread = yes ; then
21960
21961$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
21962
21963		ol_cv_nt_threads=yes
21964	fi
21965
21966
21967	if test "$ol_cv_nt_threads" = yes ; then
21968		ol_link_threads=nt
21969		ol_with_threads=found
21970		ol_with_yielding_select=yes
21971
21972
21973$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
21974
21975
21976$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
21977
21978	fi
21979
21980	if test $ol_with_threads = nt ; then
21981		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
21982	fi
21983	;;
21984esac
21985
21986case $ol_with_threads in auto | yes | posix)
21987
21988	for ac_header in pthread.h
21989do :
21990  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
21991if test "x$ac_cv_header_pthread_h" = xyes; then :
21992  cat >>confdefs.h <<_ACEOF
21993#define HAVE_PTHREAD_H 1
21994_ACEOF
21995
21996fi
21997
21998done
21999
22000
22001	if test $ac_cv_header_pthread_h = yes ; then
22002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
22003$as_echo_n "checking POSIX thread version... " >&6; }
22004if ${ol_cv_pthread_version+:} false; then :
22005  $as_echo_n "(cached) " >&6
22006else
22007
22008	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22009/* end confdefs.h.  */
22010
22011#		include <pthread.h>
22012
22013int
22014main ()
22015{
22016
22017		int i = PTHREAD_CREATE_JOINABLE;
22018
22019  ;
22020  return 0;
22021}
22022_ACEOF
22023if ac_fn_c_try_compile "$LINENO"; then :
22024
22025	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026/* end confdefs.h.  */
22027#include <pthread.h>
22028
22029_ACEOF
22030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22031  $EGREP "pthread_detach" >/dev/null 2>&1; then :
22032  ol_cv_pthread_version=10
22033else
22034  ol_cv_pthread_version=8
22035fi
22036rm -f conftest*
22037
22038else
22039
22040	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041/* end confdefs.h.  */
22042
22043#		include <pthread.h>
22044#		ifdef PTHREAD_CREATE_UNDETACHED
22045		draft7
22046#		endif
22047
22048_ACEOF
22049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22050  $EGREP "draft7" >/dev/null 2>&1; then :
22051  ol_cv_pthread_version=7
22052else
22053
22054	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055/* end confdefs.h.  */
22056#include <pthread.h>
22057
22058_ACEOF
22059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22060  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
22061  ol_cv_pthread_version=6
22062else
22063
22064	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065/* end confdefs.h.  */
22066
22067#		include <pthread.h>
22068#ifdef		PTHREAD_MUTEX_INITIALIZER
22069		draft5
22070#endif
22071
22072_ACEOF
22073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22074  $EGREP "draft5" >/dev/null 2>&1; then :
22075  ol_cv_pthread_version=5
22076else
22077  ol_cv_pthread_version=4
22078fi
22079rm -f conftest*
22080
22081fi
22082rm -f conftest*
22083
22084fi
22085rm -f conftest*
22086
22087fi
22088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089
22090fi
22091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
22092$as_echo "$ol_cv_pthread_version" >&6; }
22093
22094
22095		if test $ol_cv_pthread_version != 0 ; then
22096
22097cat >>confdefs.h <<_ACEOF
22098#define HAVE_PTHREADS $ol_cv_pthread_version
22099_ACEOF
22100
22101		else
22102			as_fn_error $? "unknown pthread version" "$LINENO" 5
22103		fi
22104
22105		# consider threads found
22106		ol_with_threads=found
22107
22108
22109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
22110$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
22111if ${ol_cv_header_linux_threads+:} false; then :
22112  $as_echo_n "(cached) " >&6
22113else
22114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22115/* end confdefs.h.  */
22116#include <pthread.h>
22117_ACEOF
22118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22119  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
22120  ol_cv_header_linux_threads=yes
22121else
22122  ol_cv_header_linux_threads=no
22123fi
22124rm -f conftest*
22125
22126
22127fi
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
22129$as_echo "$ol_cv_header_linux_threads" >&6; }
22130	if test $ol_cv_header_linux_threads = yes; then
22131
22132$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
22133
22134	fi
22135
22136
22137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
22138$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
22139if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
22140  $as_echo_n "(cached) " >&6
22141else
22142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143/* end confdefs.h.  */
22144#include <pthread.h>
22145#ifdef _POSIX_THREAD_IS_GNU_PTH
22146	__gnu_pth__;
22147#endif
22148
22149_ACEOF
22150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22151  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
22152  ol_cv_header_gnu_pth_pthread_h=yes
22153else
22154  ol_cv_header_gnu_pth_pthread_h=no
22155fi
22156rm -f conftest*
22157
22158
22159fi
22160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
22161$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
22162
22163
22164		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
22165			for ac_header in sched.h
22166do :
22167  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
22168if test "x$ac_cv_header_sched_h" = xyes; then :
22169  cat >>confdefs.h <<_ACEOF
22170#define HAVE_SCHED_H 1
22171_ACEOF
22172
22173fi
22174
22175done
22176
22177		fi
22178
22179
22180				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
22181$as_echo_n "checking for pthread_create in default libraries... " >&6; }
22182if ${ol_cv_pthread_create+:} false; then :
22183  $as_echo_n "(cached) " >&6
22184else
22185
22186			if test "$cross_compiling" = yes; then :
22187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188/* end confdefs.h.  */
22189
22190/* pthread test headers */
22191#include <pthread.h>
22192#if HAVE_PTHREADS < 7
22193#include <errno.h>
22194#endif
22195#ifndef NULL
22196#define NULL (void*)0
22197#endif
22198
22199static void *task(p)
22200	void *p;
22201{
22202	return (void *) (p == NULL);
22203}
22204
22205int
22206main ()
22207{
22208
22209	/* pthread test function */
22210#ifndef PTHREAD_CREATE_DETACHED
22211#define	PTHREAD_CREATE_DETACHED	1
22212#endif
22213	pthread_t t;
22214	int status;
22215	int detach = PTHREAD_CREATE_DETACHED;
22216
22217#if HAVE_PTHREADS > 4
22218	/* Final pthreads */
22219	pthread_attr_t attr;
22220
22221	status = pthread_attr_init(&attr);
22222	if( status ) return status;
22223
22224#if HAVE_PTHREADS < 7
22225	status = pthread_attr_setdetachstate(&attr, &detach);
22226	if( status < 0 ) status = errno;
22227#else
22228	status = pthread_attr_setdetachstate(&attr, detach);
22229#endif
22230	if( status ) return status;
22231	status = pthread_create( &t, &attr, task, NULL );
22232#if HAVE_PTHREADS < 7
22233	if( status < 0 ) status = errno;
22234#endif
22235	if( status ) return status;
22236#else
22237	/* Draft 4 pthreads */
22238	status = pthread_create( &t, pthread_attr_default, task, NULL );
22239	if( status ) return errno;
22240
22241	/* give thread a chance to complete */
22242	/* it should remain joinable and hence detachable */
22243	sleep( 1 );
22244
22245	status = pthread_detach( &t );
22246	if( status ) return errno;
22247#endif
22248
22249#ifdef HAVE_LINUX_THREADS
22250	pthread_kill_other_threads_np();
22251#endif
22252
22253	return 0;
22254
22255  ;
22256  return 0;
22257}
22258_ACEOF
22259if ac_fn_c_try_link "$LINENO"; then :
22260  ol_cv_pthread_create=yes
22261else
22262  ol_cv_pthread_create=no
22263fi
22264rm -f core conftest.err conftest.$ac_objext \
22265    conftest$ac_exeext conftest.$ac_ext
22266else
22267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22268/* end confdefs.h.  */
22269
22270
22271/* pthread test headers */
22272#include <pthread.h>
22273#if HAVE_PTHREADS < 7
22274#include <errno.h>
22275#endif
22276#ifndef NULL
22277#define NULL (void*)0
22278#endif
22279
22280static void *task(p)
22281	void *p;
22282{
22283	return (void *) (p == NULL);
22284}
22285
22286
22287int main(argc, argv)
22288	int argc;
22289	char **argv;
22290{
22291
22292	/* pthread test function */
22293#ifndef PTHREAD_CREATE_DETACHED
22294#define	PTHREAD_CREATE_DETACHED	1
22295#endif
22296	pthread_t t;
22297	int status;
22298	int detach = PTHREAD_CREATE_DETACHED;
22299
22300#if HAVE_PTHREADS > 4
22301	/* Final pthreads */
22302	pthread_attr_t attr;
22303
22304	status = pthread_attr_init(&attr);
22305	if( status ) return status;
22306
22307#if HAVE_PTHREADS < 7
22308	status = pthread_attr_setdetachstate(&attr, &detach);
22309	if( status < 0 ) status = errno;
22310#else
22311	status = pthread_attr_setdetachstate(&attr, detach);
22312#endif
22313	if( status ) return status;
22314	status = pthread_create( &t, &attr, task, NULL );
22315#if HAVE_PTHREADS < 7
22316	if( status < 0 ) status = errno;
22317#endif
22318	if( status ) return status;
22319#else
22320	/* Draft 4 pthreads */
22321	status = pthread_create( &t, pthread_attr_default, task, NULL );
22322	if( status ) return errno;
22323
22324	/* give thread a chance to complete */
22325	/* it should remain joinable and hence detachable */
22326	sleep( 1 );
22327
22328	status = pthread_detach( &t );
22329	if( status ) return errno;
22330#endif
22331
22332#ifdef HAVE_LINUX_THREADS
22333	pthread_kill_other_threads_np();
22334#endif
22335
22336	return 0;
22337
22338}
22339
22340_ACEOF
22341if ac_fn_c_try_run "$LINENO"; then :
22342  ol_cv_pthread_create=yes
22343else
22344  ol_cv_pthread_create=no
22345fi
22346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22347  conftest.$ac_objext conftest.beam conftest.$ac_ext
22348fi
22349
22350fi
22351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
22352$as_echo "$ol_cv_pthread_create" >&6; }
22353
22354		if test $ol_cv_pthread_create != no ; then
22355			ol_link_threads=posix
22356			ol_link_pthreads=""
22357		fi
22358
22359		# Pthread try link: -kthread (ol_cv_pthread_kthread)
22360if test "$ol_link_threads" = no ; then
22361	# try -kthread
22362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
22363$as_echo_n "checking for pthread link with -kthread... " >&6; }
22364if ${ol_cv_pthread_kthread+:} false; then :
22365  $as_echo_n "(cached) " >&6
22366else
22367
22368		# save the flags
22369		ol_LIBS="$LIBS"
22370		LIBS="-kthread $LIBS"
22371
22372		if test "$cross_compiling" = yes; then :
22373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22374/* end confdefs.h.  */
22375
22376/* pthread test headers */
22377#include <pthread.h>
22378#if HAVE_PTHREADS < 7
22379#include <errno.h>
22380#endif
22381#ifndef NULL
22382#define NULL (void*)0
22383#endif
22384
22385static void *task(p)
22386	void *p;
22387{
22388	return (void *) (p == NULL);
22389}
22390
22391int
22392main ()
22393{
22394
22395	/* pthread test function */
22396#ifndef PTHREAD_CREATE_DETACHED
22397#define	PTHREAD_CREATE_DETACHED	1
22398#endif
22399	pthread_t t;
22400	int status;
22401	int detach = PTHREAD_CREATE_DETACHED;
22402
22403#if HAVE_PTHREADS > 4
22404	/* Final pthreads */
22405	pthread_attr_t attr;
22406
22407	status = pthread_attr_init(&attr);
22408	if( status ) return status;
22409
22410#if HAVE_PTHREADS < 7
22411	status = pthread_attr_setdetachstate(&attr, &detach);
22412	if( status < 0 ) status = errno;
22413#else
22414	status = pthread_attr_setdetachstate(&attr, detach);
22415#endif
22416	if( status ) return status;
22417	status = pthread_create( &t, &attr, task, NULL );
22418#if HAVE_PTHREADS < 7
22419	if( status < 0 ) status = errno;
22420#endif
22421	if( status ) return status;
22422#else
22423	/* Draft 4 pthreads */
22424	status = pthread_create( &t, pthread_attr_default, task, NULL );
22425	if( status ) return errno;
22426
22427	/* give thread a chance to complete */
22428	/* it should remain joinable and hence detachable */
22429	sleep( 1 );
22430
22431	status = pthread_detach( &t );
22432	if( status ) return errno;
22433#endif
22434
22435#ifdef HAVE_LINUX_THREADS
22436	pthread_kill_other_threads_np();
22437#endif
22438
22439	return 0;
22440
22441  ;
22442  return 0;
22443}
22444_ACEOF
22445if ac_fn_c_try_link "$LINENO"; then :
22446  ol_cv_pthread_kthread=yes
22447else
22448  ol_cv_pthread_kthread=no
22449fi
22450rm -f core conftest.err conftest.$ac_objext \
22451    conftest$ac_exeext conftest.$ac_ext
22452else
22453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454/* end confdefs.h.  */
22455
22456
22457/* pthread test headers */
22458#include <pthread.h>
22459#if HAVE_PTHREADS < 7
22460#include <errno.h>
22461#endif
22462#ifndef NULL
22463#define NULL (void*)0
22464#endif
22465
22466static void *task(p)
22467	void *p;
22468{
22469	return (void *) (p == NULL);
22470}
22471
22472
22473int main(argc, argv)
22474	int argc;
22475	char **argv;
22476{
22477
22478	/* pthread test function */
22479#ifndef PTHREAD_CREATE_DETACHED
22480#define	PTHREAD_CREATE_DETACHED	1
22481#endif
22482	pthread_t t;
22483	int status;
22484	int detach = PTHREAD_CREATE_DETACHED;
22485
22486#if HAVE_PTHREADS > 4
22487	/* Final pthreads */
22488	pthread_attr_t attr;
22489
22490	status = pthread_attr_init(&attr);
22491	if( status ) return status;
22492
22493#if HAVE_PTHREADS < 7
22494	status = pthread_attr_setdetachstate(&attr, &detach);
22495	if( status < 0 ) status = errno;
22496#else
22497	status = pthread_attr_setdetachstate(&attr, detach);
22498#endif
22499	if( status ) return status;
22500	status = pthread_create( &t, &attr, task, NULL );
22501#if HAVE_PTHREADS < 7
22502	if( status < 0 ) status = errno;
22503#endif
22504	if( status ) return status;
22505#else
22506	/* Draft 4 pthreads */
22507	status = pthread_create( &t, pthread_attr_default, task, NULL );
22508	if( status ) return errno;
22509
22510	/* give thread a chance to complete */
22511	/* it should remain joinable and hence detachable */
22512	sleep( 1 );
22513
22514	status = pthread_detach( &t );
22515	if( status ) return errno;
22516#endif
22517
22518#ifdef HAVE_LINUX_THREADS
22519	pthread_kill_other_threads_np();
22520#endif
22521
22522	return 0;
22523
22524}
22525
22526_ACEOF
22527if ac_fn_c_try_run "$LINENO"; then :
22528  ol_cv_pthread_kthread=yes
22529else
22530  ol_cv_pthread_kthread=no
22531fi
22532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22533  conftest.$ac_objext conftest.beam conftest.$ac_ext
22534fi
22535
22536
22537		# restore the LIBS
22538		LIBS="$ol_LIBS"
22539
22540fi
22541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
22542$as_echo "$ol_cv_pthread_kthread" >&6; }
22543
22544	if test $ol_cv_pthread_kthread = yes ; then
22545		ol_link_pthreads="-kthread"
22546		ol_link_threads=posix
22547	fi
22548fi
22549
22550		# Pthread try link: -pthread (ol_cv_pthread_pthread)
22551if test "$ol_link_threads" = no ; then
22552	# try -pthread
22553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
22554$as_echo_n "checking for pthread link with -pthread... " >&6; }
22555if ${ol_cv_pthread_pthread+:} false; then :
22556  $as_echo_n "(cached) " >&6
22557else
22558
22559		# save the flags
22560		ol_LIBS="$LIBS"
22561		LIBS="-pthread $LIBS"
22562
22563		if test "$cross_compiling" = yes; then :
22564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22565/* end confdefs.h.  */
22566
22567/* pthread test headers */
22568#include <pthread.h>
22569#if HAVE_PTHREADS < 7
22570#include <errno.h>
22571#endif
22572#ifndef NULL
22573#define NULL (void*)0
22574#endif
22575
22576static void *task(p)
22577	void *p;
22578{
22579	return (void *) (p == NULL);
22580}
22581
22582int
22583main ()
22584{
22585
22586	/* pthread test function */
22587#ifndef PTHREAD_CREATE_DETACHED
22588#define	PTHREAD_CREATE_DETACHED	1
22589#endif
22590	pthread_t t;
22591	int status;
22592	int detach = PTHREAD_CREATE_DETACHED;
22593
22594#if HAVE_PTHREADS > 4
22595	/* Final pthreads */
22596	pthread_attr_t attr;
22597
22598	status = pthread_attr_init(&attr);
22599	if( status ) return status;
22600
22601#if HAVE_PTHREADS < 7
22602	status = pthread_attr_setdetachstate(&attr, &detach);
22603	if( status < 0 ) status = errno;
22604#else
22605	status = pthread_attr_setdetachstate(&attr, detach);
22606#endif
22607	if( status ) return status;
22608	status = pthread_create( &t, &attr, task, NULL );
22609#if HAVE_PTHREADS < 7
22610	if( status < 0 ) status = errno;
22611#endif
22612	if( status ) return status;
22613#else
22614	/* Draft 4 pthreads */
22615	status = pthread_create( &t, pthread_attr_default, task, NULL );
22616	if( status ) return errno;
22617
22618	/* give thread a chance to complete */
22619	/* it should remain joinable and hence detachable */
22620	sleep( 1 );
22621
22622	status = pthread_detach( &t );
22623	if( status ) return errno;
22624#endif
22625
22626#ifdef HAVE_LINUX_THREADS
22627	pthread_kill_other_threads_np();
22628#endif
22629
22630	return 0;
22631
22632  ;
22633  return 0;
22634}
22635_ACEOF
22636if ac_fn_c_try_link "$LINENO"; then :
22637  ol_cv_pthread_pthread=yes
22638else
22639  ol_cv_pthread_pthread=no
22640fi
22641rm -f core conftest.err conftest.$ac_objext \
22642    conftest$ac_exeext conftest.$ac_ext
22643else
22644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645/* end confdefs.h.  */
22646
22647
22648/* pthread test headers */
22649#include <pthread.h>
22650#if HAVE_PTHREADS < 7
22651#include <errno.h>
22652#endif
22653#ifndef NULL
22654#define NULL (void*)0
22655#endif
22656
22657static void *task(p)
22658	void *p;
22659{
22660	return (void *) (p == NULL);
22661}
22662
22663
22664int main(argc, argv)
22665	int argc;
22666	char **argv;
22667{
22668
22669	/* pthread test function */
22670#ifndef PTHREAD_CREATE_DETACHED
22671#define	PTHREAD_CREATE_DETACHED	1
22672#endif
22673	pthread_t t;
22674	int status;
22675	int detach = PTHREAD_CREATE_DETACHED;
22676
22677#if HAVE_PTHREADS > 4
22678	/* Final pthreads */
22679	pthread_attr_t attr;
22680
22681	status = pthread_attr_init(&attr);
22682	if( status ) return status;
22683
22684#if HAVE_PTHREADS < 7
22685	status = pthread_attr_setdetachstate(&attr, &detach);
22686	if( status < 0 ) status = errno;
22687#else
22688	status = pthread_attr_setdetachstate(&attr, detach);
22689#endif
22690	if( status ) return status;
22691	status = pthread_create( &t, &attr, task, NULL );
22692#if HAVE_PTHREADS < 7
22693	if( status < 0 ) status = errno;
22694#endif
22695	if( status ) return status;
22696#else
22697	/* Draft 4 pthreads */
22698	status = pthread_create( &t, pthread_attr_default, task, NULL );
22699	if( status ) return errno;
22700
22701	/* give thread a chance to complete */
22702	/* it should remain joinable and hence detachable */
22703	sleep( 1 );
22704
22705	status = pthread_detach( &t );
22706	if( status ) return errno;
22707#endif
22708
22709#ifdef HAVE_LINUX_THREADS
22710	pthread_kill_other_threads_np();
22711#endif
22712
22713	return 0;
22714
22715}
22716
22717_ACEOF
22718if ac_fn_c_try_run "$LINENO"; then :
22719  ol_cv_pthread_pthread=yes
22720else
22721  ol_cv_pthread_pthread=no
22722fi
22723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22724  conftest.$ac_objext conftest.beam conftest.$ac_ext
22725fi
22726
22727
22728		# restore the LIBS
22729		LIBS="$ol_LIBS"
22730
22731fi
22732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
22733$as_echo "$ol_cv_pthread_pthread" >&6; }
22734
22735	if test $ol_cv_pthread_pthread = yes ; then
22736		ol_link_pthreads="-pthread"
22737		ol_link_threads=posix
22738	fi
22739fi
22740
22741		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
22742if test "$ol_link_threads" = no ; then
22743	# try -pthreads
22744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
22745$as_echo_n "checking for pthread link with -pthreads... " >&6; }
22746if ${ol_cv_pthread_pthreads+:} false; then :
22747  $as_echo_n "(cached) " >&6
22748else
22749
22750		# save the flags
22751		ol_LIBS="$LIBS"
22752		LIBS="-pthreads $LIBS"
22753
22754		if test "$cross_compiling" = yes; then :
22755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756/* end confdefs.h.  */
22757
22758/* pthread test headers */
22759#include <pthread.h>
22760#if HAVE_PTHREADS < 7
22761#include <errno.h>
22762#endif
22763#ifndef NULL
22764#define NULL (void*)0
22765#endif
22766
22767static void *task(p)
22768	void *p;
22769{
22770	return (void *) (p == NULL);
22771}
22772
22773int
22774main ()
22775{
22776
22777	/* pthread test function */
22778#ifndef PTHREAD_CREATE_DETACHED
22779#define	PTHREAD_CREATE_DETACHED	1
22780#endif
22781	pthread_t t;
22782	int status;
22783	int detach = PTHREAD_CREATE_DETACHED;
22784
22785#if HAVE_PTHREADS > 4
22786	/* Final pthreads */
22787	pthread_attr_t attr;
22788
22789	status = pthread_attr_init(&attr);
22790	if( status ) return status;
22791
22792#if HAVE_PTHREADS < 7
22793	status = pthread_attr_setdetachstate(&attr, &detach);
22794	if( status < 0 ) status = errno;
22795#else
22796	status = pthread_attr_setdetachstate(&attr, detach);
22797#endif
22798	if( status ) return status;
22799	status = pthread_create( &t, &attr, task, NULL );
22800#if HAVE_PTHREADS < 7
22801	if( status < 0 ) status = errno;
22802#endif
22803	if( status ) return status;
22804#else
22805	/* Draft 4 pthreads */
22806	status = pthread_create( &t, pthread_attr_default, task, NULL );
22807	if( status ) return errno;
22808
22809	/* give thread a chance to complete */
22810	/* it should remain joinable and hence detachable */
22811	sleep( 1 );
22812
22813	status = pthread_detach( &t );
22814	if( status ) return errno;
22815#endif
22816
22817#ifdef HAVE_LINUX_THREADS
22818	pthread_kill_other_threads_np();
22819#endif
22820
22821	return 0;
22822
22823  ;
22824  return 0;
22825}
22826_ACEOF
22827if ac_fn_c_try_link "$LINENO"; then :
22828  ol_cv_pthread_pthreads=yes
22829else
22830  ol_cv_pthread_pthreads=no
22831fi
22832rm -f core conftest.err conftest.$ac_objext \
22833    conftest$ac_exeext conftest.$ac_ext
22834else
22835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836/* end confdefs.h.  */
22837
22838
22839/* pthread test headers */
22840#include <pthread.h>
22841#if HAVE_PTHREADS < 7
22842#include <errno.h>
22843#endif
22844#ifndef NULL
22845#define NULL (void*)0
22846#endif
22847
22848static void *task(p)
22849	void *p;
22850{
22851	return (void *) (p == NULL);
22852}
22853
22854
22855int main(argc, argv)
22856	int argc;
22857	char **argv;
22858{
22859
22860	/* pthread test function */
22861#ifndef PTHREAD_CREATE_DETACHED
22862#define	PTHREAD_CREATE_DETACHED	1
22863#endif
22864	pthread_t t;
22865	int status;
22866	int detach = PTHREAD_CREATE_DETACHED;
22867
22868#if HAVE_PTHREADS > 4
22869	/* Final pthreads */
22870	pthread_attr_t attr;
22871
22872	status = pthread_attr_init(&attr);
22873	if( status ) return status;
22874
22875#if HAVE_PTHREADS < 7
22876	status = pthread_attr_setdetachstate(&attr, &detach);
22877	if( status < 0 ) status = errno;
22878#else
22879	status = pthread_attr_setdetachstate(&attr, detach);
22880#endif
22881	if( status ) return status;
22882	status = pthread_create( &t, &attr, task, NULL );
22883#if HAVE_PTHREADS < 7
22884	if( status < 0 ) status = errno;
22885#endif
22886	if( status ) return status;
22887#else
22888	/* Draft 4 pthreads */
22889	status = pthread_create( &t, pthread_attr_default, task, NULL );
22890	if( status ) return errno;
22891
22892	/* give thread a chance to complete */
22893	/* it should remain joinable and hence detachable */
22894	sleep( 1 );
22895
22896	status = pthread_detach( &t );
22897	if( status ) return errno;
22898#endif
22899
22900#ifdef HAVE_LINUX_THREADS
22901	pthread_kill_other_threads_np();
22902#endif
22903
22904	return 0;
22905
22906}
22907
22908_ACEOF
22909if ac_fn_c_try_run "$LINENO"; then :
22910  ol_cv_pthread_pthreads=yes
22911else
22912  ol_cv_pthread_pthreads=no
22913fi
22914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22915  conftest.$ac_objext conftest.beam conftest.$ac_ext
22916fi
22917
22918
22919		# restore the LIBS
22920		LIBS="$ol_LIBS"
22921
22922fi
22923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
22924$as_echo "$ol_cv_pthread_pthreads" >&6; }
22925
22926	if test $ol_cv_pthread_pthreads = yes ; then
22927		ol_link_pthreads="-pthreads"
22928		ol_link_threads=posix
22929	fi
22930fi
22931
22932		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
22933if test "$ol_link_threads" = no ; then
22934	# try -mthreads
22935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
22936$as_echo_n "checking for pthread link with -mthreads... " >&6; }
22937if ${ol_cv_pthread_mthreads+:} false; then :
22938  $as_echo_n "(cached) " >&6
22939else
22940
22941		# save the flags
22942		ol_LIBS="$LIBS"
22943		LIBS="-mthreads $LIBS"
22944
22945		if test "$cross_compiling" = yes; then :
22946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947/* end confdefs.h.  */
22948
22949/* pthread test headers */
22950#include <pthread.h>
22951#if HAVE_PTHREADS < 7
22952#include <errno.h>
22953#endif
22954#ifndef NULL
22955#define NULL (void*)0
22956#endif
22957
22958static void *task(p)
22959	void *p;
22960{
22961	return (void *) (p == NULL);
22962}
22963
22964int
22965main ()
22966{
22967
22968	/* pthread test function */
22969#ifndef PTHREAD_CREATE_DETACHED
22970#define	PTHREAD_CREATE_DETACHED	1
22971#endif
22972	pthread_t t;
22973	int status;
22974	int detach = PTHREAD_CREATE_DETACHED;
22975
22976#if HAVE_PTHREADS > 4
22977	/* Final pthreads */
22978	pthread_attr_t attr;
22979
22980	status = pthread_attr_init(&attr);
22981	if( status ) return status;
22982
22983#if HAVE_PTHREADS < 7
22984	status = pthread_attr_setdetachstate(&attr, &detach);
22985	if( status < 0 ) status = errno;
22986#else
22987	status = pthread_attr_setdetachstate(&attr, detach);
22988#endif
22989	if( status ) return status;
22990	status = pthread_create( &t, &attr, task, NULL );
22991#if HAVE_PTHREADS < 7
22992	if( status < 0 ) status = errno;
22993#endif
22994	if( status ) return status;
22995#else
22996	/* Draft 4 pthreads */
22997	status = pthread_create( &t, pthread_attr_default, task, NULL );
22998	if( status ) return errno;
22999
23000	/* give thread a chance to complete */
23001	/* it should remain joinable and hence detachable */
23002	sleep( 1 );
23003
23004	status = pthread_detach( &t );
23005	if( status ) return errno;
23006#endif
23007
23008#ifdef HAVE_LINUX_THREADS
23009	pthread_kill_other_threads_np();
23010#endif
23011
23012	return 0;
23013
23014  ;
23015  return 0;
23016}
23017_ACEOF
23018if ac_fn_c_try_link "$LINENO"; then :
23019  ol_cv_pthread_mthreads=yes
23020else
23021  ol_cv_pthread_mthreads=no
23022fi
23023rm -f core conftest.err conftest.$ac_objext \
23024    conftest$ac_exeext conftest.$ac_ext
23025else
23026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027/* end confdefs.h.  */
23028
23029
23030/* pthread test headers */
23031#include <pthread.h>
23032#if HAVE_PTHREADS < 7
23033#include <errno.h>
23034#endif
23035#ifndef NULL
23036#define NULL (void*)0
23037#endif
23038
23039static void *task(p)
23040	void *p;
23041{
23042	return (void *) (p == NULL);
23043}
23044
23045
23046int main(argc, argv)
23047	int argc;
23048	char **argv;
23049{
23050
23051	/* pthread test function */
23052#ifndef PTHREAD_CREATE_DETACHED
23053#define	PTHREAD_CREATE_DETACHED	1
23054#endif
23055	pthread_t t;
23056	int status;
23057	int detach = PTHREAD_CREATE_DETACHED;
23058
23059#if HAVE_PTHREADS > 4
23060	/* Final pthreads */
23061	pthread_attr_t attr;
23062
23063	status = pthread_attr_init(&attr);
23064	if( status ) return status;
23065
23066#if HAVE_PTHREADS < 7
23067	status = pthread_attr_setdetachstate(&attr, &detach);
23068	if( status < 0 ) status = errno;
23069#else
23070	status = pthread_attr_setdetachstate(&attr, detach);
23071#endif
23072	if( status ) return status;
23073	status = pthread_create( &t, &attr, task, NULL );
23074#if HAVE_PTHREADS < 7
23075	if( status < 0 ) status = errno;
23076#endif
23077	if( status ) return status;
23078#else
23079	/* Draft 4 pthreads */
23080	status = pthread_create( &t, pthread_attr_default, task, NULL );
23081	if( status ) return errno;
23082
23083	/* give thread a chance to complete */
23084	/* it should remain joinable and hence detachable */
23085	sleep( 1 );
23086
23087	status = pthread_detach( &t );
23088	if( status ) return errno;
23089#endif
23090
23091#ifdef HAVE_LINUX_THREADS
23092	pthread_kill_other_threads_np();
23093#endif
23094
23095	return 0;
23096
23097}
23098
23099_ACEOF
23100if ac_fn_c_try_run "$LINENO"; then :
23101  ol_cv_pthread_mthreads=yes
23102else
23103  ol_cv_pthread_mthreads=no
23104fi
23105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23106  conftest.$ac_objext conftest.beam conftest.$ac_ext
23107fi
23108
23109
23110		# restore the LIBS
23111		LIBS="$ol_LIBS"
23112
23113fi
23114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
23115$as_echo "$ol_cv_pthread_mthreads" >&6; }
23116
23117	if test $ol_cv_pthread_mthreads = yes ; then
23118		ol_link_pthreads="-mthreads"
23119		ol_link_threads=posix
23120	fi
23121fi
23122
23123		# Pthread try link: -thread (ol_cv_pthread_thread)
23124if test "$ol_link_threads" = no ; then
23125	# try -thread
23126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
23127$as_echo_n "checking for pthread link with -thread... " >&6; }
23128if ${ol_cv_pthread_thread+:} false; then :
23129  $as_echo_n "(cached) " >&6
23130else
23131
23132		# save the flags
23133		ol_LIBS="$LIBS"
23134		LIBS="-thread $LIBS"
23135
23136		if test "$cross_compiling" = yes; then :
23137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23138/* end confdefs.h.  */
23139
23140/* pthread test headers */
23141#include <pthread.h>
23142#if HAVE_PTHREADS < 7
23143#include <errno.h>
23144#endif
23145#ifndef NULL
23146#define NULL (void*)0
23147#endif
23148
23149static void *task(p)
23150	void *p;
23151{
23152	return (void *) (p == NULL);
23153}
23154
23155int
23156main ()
23157{
23158
23159	/* pthread test function */
23160#ifndef PTHREAD_CREATE_DETACHED
23161#define	PTHREAD_CREATE_DETACHED	1
23162#endif
23163	pthread_t t;
23164	int status;
23165	int detach = PTHREAD_CREATE_DETACHED;
23166
23167#if HAVE_PTHREADS > 4
23168	/* Final pthreads */
23169	pthread_attr_t attr;
23170
23171	status = pthread_attr_init(&attr);
23172	if( status ) return status;
23173
23174#if HAVE_PTHREADS < 7
23175	status = pthread_attr_setdetachstate(&attr, &detach);
23176	if( status < 0 ) status = errno;
23177#else
23178	status = pthread_attr_setdetachstate(&attr, detach);
23179#endif
23180	if( status ) return status;
23181	status = pthread_create( &t, &attr, task, NULL );
23182#if HAVE_PTHREADS < 7
23183	if( status < 0 ) status = errno;
23184#endif
23185	if( status ) return status;
23186#else
23187	/* Draft 4 pthreads */
23188	status = pthread_create( &t, pthread_attr_default, task, NULL );
23189	if( status ) return errno;
23190
23191	/* give thread a chance to complete */
23192	/* it should remain joinable and hence detachable */
23193	sleep( 1 );
23194
23195	status = pthread_detach( &t );
23196	if( status ) return errno;
23197#endif
23198
23199#ifdef HAVE_LINUX_THREADS
23200	pthread_kill_other_threads_np();
23201#endif
23202
23203	return 0;
23204
23205  ;
23206  return 0;
23207}
23208_ACEOF
23209if ac_fn_c_try_link "$LINENO"; then :
23210  ol_cv_pthread_thread=yes
23211else
23212  ol_cv_pthread_thread=no
23213fi
23214rm -f core conftest.err conftest.$ac_objext \
23215    conftest$ac_exeext conftest.$ac_ext
23216else
23217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218/* end confdefs.h.  */
23219
23220
23221/* pthread test headers */
23222#include <pthread.h>
23223#if HAVE_PTHREADS < 7
23224#include <errno.h>
23225#endif
23226#ifndef NULL
23227#define NULL (void*)0
23228#endif
23229
23230static void *task(p)
23231	void *p;
23232{
23233	return (void *) (p == NULL);
23234}
23235
23236
23237int main(argc, argv)
23238	int argc;
23239	char **argv;
23240{
23241
23242	/* pthread test function */
23243#ifndef PTHREAD_CREATE_DETACHED
23244#define	PTHREAD_CREATE_DETACHED	1
23245#endif
23246	pthread_t t;
23247	int status;
23248	int detach = PTHREAD_CREATE_DETACHED;
23249
23250#if HAVE_PTHREADS > 4
23251	/* Final pthreads */
23252	pthread_attr_t attr;
23253
23254	status = pthread_attr_init(&attr);
23255	if( status ) return status;
23256
23257#if HAVE_PTHREADS < 7
23258	status = pthread_attr_setdetachstate(&attr, &detach);
23259	if( status < 0 ) status = errno;
23260#else
23261	status = pthread_attr_setdetachstate(&attr, detach);
23262#endif
23263	if( status ) return status;
23264	status = pthread_create( &t, &attr, task, NULL );
23265#if HAVE_PTHREADS < 7
23266	if( status < 0 ) status = errno;
23267#endif
23268	if( status ) return status;
23269#else
23270	/* Draft 4 pthreads */
23271	status = pthread_create( &t, pthread_attr_default, task, NULL );
23272	if( status ) return errno;
23273
23274	/* give thread a chance to complete */
23275	/* it should remain joinable and hence detachable */
23276	sleep( 1 );
23277
23278	status = pthread_detach( &t );
23279	if( status ) return errno;
23280#endif
23281
23282#ifdef HAVE_LINUX_THREADS
23283	pthread_kill_other_threads_np();
23284#endif
23285
23286	return 0;
23287
23288}
23289
23290_ACEOF
23291if ac_fn_c_try_run "$LINENO"; then :
23292  ol_cv_pthread_thread=yes
23293else
23294  ol_cv_pthread_thread=no
23295fi
23296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23297  conftest.$ac_objext conftest.beam conftest.$ac_ext
23298fi
23299
23300
23301		# restore the LIBS
23302		LIBS="$ol_LIBS"
23303
23304fi
23305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
23306$as_echo "$ol_cv_pthread_thread" >&6; }
23307
23308	if test $ol_cv_pthread_thread = yes ; then
23309		ol_link_pthreads="-thread"
23310		ol_link_threads=posix
23311	fi
23312fi
23313
23314
23315		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
23316if test "$ol_link_threads" = no ; then
23317	# try -lpthread -lmach -lexc -lc_r
23318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
23319$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
23320if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
23321  $as_echo_n "(cached) " >&6
23322else
23323
23324		# save the flags
23325		ol_LIBS="$LIBS"
23326		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
23327
23328		if test "$cross_compiling" = yes; then :
23329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330/* end confdefs.h.  */
23331
23332/* pthread test headers */
23333#include <pthread.h>
23334#if HAVE_PTHREADS < 7
23335#include <errno.h>
23336#endif
23337#ifndef NULL
23338#define NULL (void*)0
23339#endif
23340
23341static void *task(p)
23342	void *p;
23343{
23344	return (void *) (p == NULL);
23345}
23346
23347int
23348main ()
23349{
23350
23351	/* pthread test function */
23352#ifndef PTHREAD_CREATE_DETACHED
23353#define	PTHREAD_CREATE_DETACHED	1
23354#endif
23355	pthread_t t;
23356	int status;
23357	int detach = PTHREAD_CREATE_DETACHED;
23358
23359#if HAVE_PTHREADS > 4
23360	/* Final pthreads */
23361	pthread_attr_t attr;
23362
23363	status = pthread_attr_init(&attr);
23364	if( status ) return status;
23365
23366#if HAVE_PTHREADS < 7
23367	status = pthread_attr_setdetachstate(&attr, &detach);
23368	if( status < 0 ) status = errno;
23369#else
23370	status = pthread_attr_setdetachstate(&attr, detach);
23371#endif
23372	if( status ) return status;
23373	status = pthread_create( &t, &attr, task, NULL );
23374#if HAVE_PTHREADS < 7
23375	if( status < 0 ) status = errno;
23376#endif
23377	if( status ) return status;
23378#else
23379	/* Draft 4 pthreads */
23380	status = pthread_create( &t, pthread_attr_default, task, NULL );
23381	if( status ) return errno;
23382
23383	/* give thread a chance to complete */
23384	/* it should remain joinable and hence detachable */
23385	sleep( 1 );
23386
23387	status = pthread_detach( &t );
23388	if( status ) return errno;
23389#endif
23390
23391#ifdef HAVE_LINUX_THREADS
23392	pthread_kill_other_threads_np();
23393#endif
23394
23395	return 0;
23396
23397  ;
23398  return 0;
23399}
23400_ACEOF
23401if ac_fn_c_try_link "$LINENO"; then :
23402  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
23403else
23404  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
23405fi
23406rm -f core conftest.err conftest.$ac_objext \
23407    conftest$ac_exeext conftest.$ac_ext
23408else
23409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410/* end confdefs.h.  */
23411
23412
23413/* pthread test headers */
23414#include <pthread.h>
23415#if HAVE_PTHREADS < 7
23416#include <errno.h>
23417#endif
23418#ifndef NULL
23419#define NULL (void*)0
23420#endif
23421
23422static void *task(p)
23423	void *p;
23424{
23425	return (void *) (p == NULL);
23426}
23427
23428
23429int main(argc, argv)
23430	int argc;
23431	char **argv;
23432{
23433
23434	/* pthread test function */
23435#ifndef PTHREAD_CREATE_DETACHED
23436#define	PTHREAD_CREATE_DETACHED	1
23437#endif
23438	pthread_t t;
23439	int status;
23440	int detach = PTHREAD_CREATE_DETACHED;
23441
23442#if HAVE_PTHREADS > 4
23443	/* Final pthreads */
23444	pthread_attr_t attr;
23445
23446	status = pthread_attr_init(&attr);
23447	if( status ) return status;
23448
23449#if HAVE_PTHREADS < 7
23450	status = pthread_attr_setdetachstate(&attr, &detach);
23451	if( status < 0 ) status = errno;
23452#else
23453	status = pthread_attr_setdetachstate(&attr, detach);
23454#endif
23455	if( status ) return status;
23456	status = pthread_create( &t, &attr, task, NULL );
23457#if HAVE_PTHREADS < 7
23458	if( status < 0 ) status = errno;
23459#endif
23460	if( status ) return status;
23461#else
23462	/* Draft 4 pthreads */
23463	status = pthread_create( &t, pthread_attr_default, task, NULL );
23464	if( status ) return errno;
23465
23466	/* give thread a chance to complete */
23467	/* it should remain joinable and hence detachable */
23468	sleep( 1 );
23469
23470	status = pthread_detach( &t );
23471	if( status ) return errno;
23472#endif
23473
23474#ifdef HAVE_LINUX_THREADS
23475	pthread_kill_other_threads_np();
23476#endif
23477
23478	return 0;
23479
23480}
23481
23482_ACEOF
23483if ac_fn_c_try_run "$LINENO"; then :
23484  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
23485else
23486  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
23487fi
23488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23489  conftest.$ac_objext conftest.beam conftest.$ac_ext
23490fi
23491
23492
23493		# restore the LIBS
23494		LIBS="$ol_LIBS"
23495
23496fi
23497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
23498$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
23499
23500	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
23501		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
23502		ol_link_threads=posix
23503	fi
23504fi
23505
23506		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
23507if test "$ol_link_threads" = no ; then
23508	# try -lpthread -lmach -lexc
23509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
23510$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
23511if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
23512  $as_echo_n "(cached) " >&6
23513else
23514
23515		# save the flags
23516		ol_LIBS="$LIBS"
23517		LIBS="-lpthread -lmach -lexc $LIBS"
23518
23519		if test "$cross_compiling" = yes; then :
23520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23521/* end confdefs.h.  */
23522
23523/* pthread test headers */
23524#include <pthread.h>
23525#if HAVE_PTHREADS < 7
23526#include <errno.h>
23527#endif
23528#ifndef NULL
23529#define NULL (void*)0
23530#endif
23531
23532static void *task(p)
23533	void *p;
23534{
23535	return (void *) (p == NULL);
23536}
23537
23538int
23539main ()
23540{
23541
23542	/* pthread test function */
23543#ifndef PTHREAD_CREATE_DETACHED
23544#define	PTHREAD_CREATE_DETACHED	1
23545#endif
23546	pthread_t t;
23547	int status;
23548	int detach = PTHREAD_CREATE_DETACHED;
23549
23550#if HAVE_PTHREADS > 4
23551	/* Final pthreads */
23552	pthread_attr_t attr;
23553
23554	status = pthread_attr_init(&attr);
23555	if( status ) return status;
23556
23557#if HAVE_PTHREADS < 7
23558	status = pthread_attr_setdetachstate(&attr, &detach);
23559	if( status < 0 ) status = errno;
23560#else
23561	status = pthread_attr_setdetachstate(&attr, detach);
23562#endif
23563	if( status ) return status;
23564	status = pthread_create( &t, &attr, task, NULL );
23565#if HAVE_PTHREADS < 7
23566	if( status < 0 ) status = errno;
23567#endif
23568	if( status ) return status;
23569#else
23570	/* Draft 4 pthreads */
23571	status = pthread_create( &t, pthread_attr_default, task, NULL );
23572	if( status ) return errno;
23573
23574	/* give thread a chance to complete */
23575	/* it should remain joinable and hence detachable */
23576	sleep( 1 );
23577
23578	status = pthread_detach( &t );
23579	if( status ) return errno;
23580#endif
23581
23582#ifdef HAVE_LINUX_THREADS
23583	pthread_kill_other_threads_np();
23584#endif
23585
23586	return 0;
23587
23588  ;
23589  return 0;
23590}
23591_ACEOF
23592if ac_fn_c_try_link "$LINENO"; then :
23593  ol_cv_pthread_lpthread_lmach_lexc=yes
23594else
23595  ol_cv_pthread_lpthread_lmach_lexc=no
23596fi
23597rm -f core conftest.err conftest.$ac_objext \
23598    conftest$ac_exeext conftest.$ac_ext
23599else
23600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601/* end confdefs.h.  */
23602
23603
23604/* pthread test headers */
23605#include <pthread.h>
23606#if HAVE_PTHREADS < 7
23607#include <errno.h>
23608#endif
23609#ifndef NULL
23610#define NULL (void*)0
23611#endif
23612
23613static void *task(p)
23614	void *p;
23615{
23616	return (void *) (p == NULL);
23617}
23618
23619
23620int main(argc, argv)
23621	int argc;
23622	char **argv;
23623{
23624
23625	/* pthread test function */
23626#ifndef PTHREAD_CREATE_DETACHED
23627#define	PTHREAD_CREATE_DETACHED	1
23628#endif
23629	pthread_t t;
23630	int status;
23631	int detach = PTHREAD_CREATE_DETACHED;
23632
23633#if HAVE_PTHREADS > 4
23634	/* Final pthreads */
23635	pthread_attr_t attr;
23636
23637	status = pthread_attr_init(&attr);
23638	if( status ) return status;
23639
23640#if HAVE_PTHREADS < 7
23641	status = pthread_attr_setdetachstate(&attr, &detach);
23642	if( status < 0 ) status = errno;
23643#else
23644	status = pthread_attr_setdetachstate(&attr, detach);
23645#endif
23646	if( status ) return status;
23647	status = pthread_create( &t, &attr, task, NULL );
23648#if HAVE_PTHREADS < 7
23649	if( status < 0 ) status = errno;
23650#endif
23651	if( status ) return status;
23652#else
23653	/* Draft 4 pthreads */
23654	status = pthread_create( &t, pthread_attr_default, task, NULL );
23655	if( status ) return errno;
23656
23657	/* give thread a chance to complete */
23658	/* it should remain joinable and hence detachable */
23659	sleep( 1 );
23660
23661	status = pthread_detach( &t );
23662	if( status ) return errno;
23663#endif
23664
23665#ifdef HAVE_LINUX_THREADS
23666	pthread_kill_other_threads_np();
23667#endif
23668
23669	return 0;
23670
23671}
23672
23673_ACEOF
23674if ac_fn_c_try_run "$LINENO"; then :
23675  ol_cv_pthread_lpthread_lmach_lexc=yes
23676else
23677  ol_cv_pthread_lpthread_lmach_lexc=no
23678fi
23679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23680  conftest.$ac_objext conftest.beam conftest.$ac_ext
23681fi
23682
23683
23684		# restore the LIBS
23685		LIBS="$ol_LIBS"
23686
23687fi
23688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
23689$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
23690
23691	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
23692		ol_link_pthreads="-lpthread -lmach -lexc"
23693		ol_link_threads=posix
23694	fi
23695fi
23696
23697
23698		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
23699if test "$ol_link_threads" = no ; then
23700	# try -lpthread -Wl,-woff,85
23701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
23702$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
23703if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
23704  $as_echo_n "(cached) " >&6
23705else
23706
23707		# save the flags
23708		ol_LIBS="$LIBS"
23709		LIBS="-lpthread -Wl,-woff,85 $LIBS"
23710
23711		if test "$cross_compiling" = yes; then :
23712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23713/* end confdefs.h.  */
23714
23715/* pthread test headers */
23716#include <pthread.h>
23717#if HAVE_PTHREADS < 7
23718#include <errno.h>
23719#endif
23720#ifndef NULL
23721#define NULL (void*)0
23722#endif
23723
23724static void *task(p)
23725	void *p;
23726{
23727	return (void *) (p == NULL);
23728}
23729
23730int
23731main ()
23732{
23733
23734	/* pthread test function */
23735#ifndef PTHREAD_CREATE_DETACHED
23736#define	PTHREAD_CREATE_DETACHED	1
23737#endif
23738	pthread_t t;
23739	int status;
23740	int detach = PTHREAD_CREATE_DETACHED;
23741
23742#if HAVE_PTHREADS > 4
23743	/* Final pthreads */
23744	pthread_attr_t attr;
23745
23746	status = pthread_attr_init(&attr);
23747	if( status ) return status;
23748
23749#if HAVE_PTHREADS < 7
23750	status = pthread_attr_setdetachstate(&attr, &detach);
23751	if( status < 0 ) status = errno;
23752#else
23753	status = pthread_attr_setdetachstate(&attr, detach);
23754#endif
23755	if( status ) return status;
23756	status = pthread_create( &t, &attr, task, NULL );
23757#if HAVE_PTHREADS < 7
23758	if( status < 0 ) status = errno;
23759#endif
23760	if( status ) return status;
23761#else
23762	/* Draft 4 pthreads */
23763	status = pthread_create( &t, pthread_attr_default, task, NULL );
23764	if( status ) return errno;
23765
23766	/* give thread a chance to complete */
23767	/* it should remain joinable and hence detachable */
23768	sleep( 1 );
23769
23770	status = pthread_detach( &t );
23771	if( status ) return errno;
23772#endif
23773
23774#ifdef HAVE_LINUX_THREADS
23775	pthread_kill_other_threads_np();
23776#endif
23777
23778	return 0;
23779
23780  ;
23781  return 0;
23782}
23783_ACEOF
23784if ac_fn_c_try_link "$LINENO"; then :
23785  ol_cv_pthread_lib_lpthread_woff=yes
23786else
23787  ol_cv_pthread_lib_lpthread_woff=no
23788fi
23789rm -f core conftest.err conftest.$ac_objext \
23790    conftest$ac_exeext conftest.$ac_ext
23791else
23792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23793/* end confdefs.h.  */
23794
23795
23796/* pthread test headers */
23797#include <pthread.h>
23798#if HAVE_PTHREADS < 7
23799#include <errno.h>
23800#endif
23801#ifndef NULL
23802#define NULL (void*)0
23803#endif
23804
23805static void *task(p)
23806	void *p;
23807{
23808	return (void *) (p == NULL);
23809}
23810
23811
23812int main(argc, argv)
23813	int argc;
23814	char **argv;
23815{
23816
23817	/* pthread test function */
23818#ifndef PTHREAD_CREATE_DETACHED
23819#define	PTHREAD_CREATE_DETACHED	1
23820#endif
23821	pthread_t t;
23822	int status;
23823	int detach = PTHREAD_CREATE_DETACHED;
23824
23825#if HAVE_PTHREADS > 4
23826	/* Final pthreads */
23827	pthread_attr_t attr;
23828
23829	status = pthread_attr_init(&attr);
23830	if( status ) return status;
23831
23832#if HAVE_PTHREADS < 7
23833	status = pthread_attr_setdetachstate(&attr, &detach);
23834	if( status < 0 ) status = errno;
23835#else
23836	status = pthread_attr_setdetachstate(&attr, detach);
23837#endif
23838	if( status ) return status;
23839	status = pthread_create( &t, &attr, task, NULL );
23840#if HAVE_PTHREADS < 7
23841	if( status < 0 ) status = errno;
23842#endif
23843	if( status ) return status;
23844#else
23845	/* Draft 4 pthreads */
23846	status = pthread_create( &t, pthread_attr_default, task, NULL );
23847	if( status ) return errno;
23848
23849	/* give thread a chance to complete */
23850	/* it should remain joinable and hence detachable */
23851	sleep( 1 );
23852
23853	status = pthread_detach( &t );
23854	if( status ) return errno;
23855#endif
23856
23857#ifdef HAVE_LINUX_THREADS
23858	pthread_kill_other_threads_np();
23859#endif
23860
23861	return 0;
23862
23863}
23864
23865_ACEOF
23866if ac_fn_c_try_run "$LINENO"; then :
23867  ol_cv_pthread_lib_lpthread_woff=yes
23868else
23869  ol_cv_pthread_lib_lpthread_woff=no
23870fi
23871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23872  conftest.$ac_objext conftest.beam conftest.$ac_ext
23873fi
23874
23875
23876		# restore the LIBS
23877		LIBS="$ol_LIBS"
23878
23879fi
23880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23881$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
23882
23883	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23884		ol_link_pthreads="-lpthread -Wl,-woff,85"
23885		ol_link_threads=posix
23886	fi
23887fi
23888
23889
23890		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23891if test "$ol_link_threads" = no ; then
23892	# try -lpthread
23893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
23894$as_echo_n "checking for pthread link with -lpthread... " >&6; }
23895if ${ol_cv_pthread_lpthread+:} false; then :
23896  $as_echo_n "(cached) " >&6
23897else
23898
23899		# save the flags
23900		ol_LIBS="$LIBS"
23901		LIBS="-lpthread $LIBS"
23902
23903		if test "$cross_compiling" = yes; then :
23904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905/* end confdefs.h.  */
23906
23907/* pthread test headers */
23908#include <pthread.h>
23909#if HAVE_PTHREADS < 7
23910#include <errno.h>
23911#endif
23912#ifndef NULL
23913#define NULL (void*)0
23914#endif
23915
23916static void *task(p)
23917	void *p;
23918{
23919	return (void *) (p == NULL);
23920}
23921
23922int
23923main ()
23924{
23925
23926	/* pthread test function */
23927#ifndef PTHREAD_CREATE_DETACHED
23928#define	PTHREAD_CREATE_DETACHED	1
23929#endif
23930	pthread_t t;
23931	int status;
23932	int detach = PTHREAD_CREATE_DETACHED;
23933
23934#if HAVE_PTHREADS > 4
23935	/* Final pthreads */
23936	pthread_attr_t attr;
23937
23938	status = pthread_attr_init(&attr);
23939	if( status ) return status;
23940
23941#if HAVE_PTHREADS < 7
23942	status = pthread_attr_setdetachstate(&attr, &detach);
23943	if( status < 0 ) status = errno;
23944#else
23945	status = pthread_attr_setdetachstate(&attr, detach);
23946#endif
23947	if( status ) return status;
23948	status = pthread_create( &t, &attr, task, NULL );
23949#if HAVE_PTHREADS < 7
23950	if( status < 0 ) status = errno;
23951#endif
23952	if( status ) return status;
23953#else
23954	/* Draft 4 pthreads */
23955	status = pthread_create( &t, pthread_attr_default, task, NULL );
23956	if( status ) return errno;
23957
23958	/* give thread a chance to complete */
23959	/* it should remain joinable and hence detachable */
23960	sleep( 1 );
23961
23962	status = pthread_detach( &t );
23963	if( status ) return errno;
23964#endif
23965
23966#ifdef HAVE_LINUX_THREADS
23967	pthread_kill_other_threads_np();
23968#endif
23969
23970	return 0;
23971
23972  ;
23973  return 0;
23974}
23975_ACEOF
23976if ac_fn_c_try_link "$LINENO"; then :
23977  ol_cv_pthread_lpthread=yes
23978else
23979  ol_cv_pthread_lpthread=no
23980fi
23981rm -f core conftest.err conftest.$ac_objext \
23982    conftest$ac_exeext conftest.$ac_ext
23983else
23984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23985/* end confdefs.h.  */
23986
23987
23988/* pthread test headers */
23989#include <pthread.h>
23990#if HAVE_PTHREADS < 7
23991#include <errno.h>
23992#endif
23993#ifndef NULL
23994#define NULL (void*)0
23995#endif
23996
23997static void *task(p)
23998	void *p;
23999{
24000	return (void *) (p == NULL);
24001}
24002
24003
24004int main(argc, argv)
24005	int argc;
24006	char **argv;
24007{
24008
24009	/* pthread test function */
24010#ifndef PTHREAD_CREATE_DETACHED
24011#define	PTHREAD_CREATE_DETACHED	1
24012#endif
24013	pthread_t t;
24014	int status;
24015	int detach = PTHREAD_CREATE_DETACHED;
24016
24017#if HAVE_PTHREADS > 4
24018	/* Final pthreads */
24019	pthread_attr_t attr;
24020
24021	status = pthread_attr_init(&attr);
24022	if( status ) return status;
24023
24024#if HAVE_PTHREADS < 7
24025	status = pthread_attr_setdetachstate(&attr, &detach);
24026	if( status < 0 ) status = errno;
24027#else
24028	status = pthread_attr_setdetachstate(&attr, detach);
24029#endif
24030	if( status ) return status;
24031	status = pthread_create( &t, &attr, task, NULL );
24032#if HAVE_PTHREADS < 7
24033	if( status < 0 ) status = errno;
24034#endif
24035	if( status ) return status;
24036#else
24037	/* Draft 4 pthreads */
24038	status = pthread_create( &t, pthread_attr_default, task, NULL );
24039	if( status ) return errno;
24040
24041	/* give thread a chance to complete */
24042	/* it should remain joinable and hence detachable */
24043	sleep( 1 );
24044
24045	status = pthread_detach( &t );
24046	if( status ) return errno;
24047#endif
24048
24049#ifdef HAVE_LINUX_THREADS
24050	pthread_kill_other_threads_np();
24051#endif
24052
24053	return 0;
24054
24055}
24056
24057_ACEOF
24058if ac_fn_c_try_run "$LINENO"; then :
24059  ol_cv_pthread_lpthread=yes
24060else
24061  ol_cv_pthread_lpthread=no
24062fi
24063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24064  conftest.$ac_objext conftest.beam conftest.$ac_ext
24065fi
24066
24067
24068		# restore the LIBS
24069		LIBS="$ol_LIBS"
24070
24071fi
24072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
24073$as_echo "$ol_cv_pthread_lpthread" >&6; }
24074
24075	if test $ol_cv_pthread_lpthread = yes ; then
24076		ol_link_pthreads="-lpthread"
24077		ol_link_threads=posix
24078	fi
24079fi
24080
24081		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
24082if test "$ol_link_threads" = no ; then
24083	# try -lc_r
24084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
24085$as_echo_n "checking for pthread link with -lc_r... " >&6; }
24086if ${ol_cv_pthread_lc_r+:} false; then :
24087  $as_echo_n "(cached) " >&6
24088else
24089
24090		# save the flags
24091		ol_LIBS="$LIBS"
24092		LIBS="-lc_r $LIBS"
24093
24094		if test "$cross_compiling" = yes; then :
24095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24096/* end confdefs.h.  */
24097
24098/* pthread test headers */
24099#include <pthread.h>
24100#if HAVE_PTHREADS < 7
24101#include <errno.h>
24102#endif
24103#ifndef NULL
24104#define NULL (void*)0
24105#endif
24106
24107static void *task(p)
24108	void *p;
24109{
24110	return (void *) (p == NULL);
24111}
24112
24113int
24114main ()
24115{
24116
24117	/* pthread test function */
24118#ifndef PTHREAD_CREATE_DETACHED
24119#define	PTHREAD_CREATE_DETACHED	1
24120#endif
24121	pthread_t t;
24122	int status;
24123	int detach = PTHREAD_CREATE_DETACHED;
24124
24125#if HAVE_PTHREADS > 4
24126	/* Final pthreads */
24127	pthread_attr_t attr;
24128
24129	status = pthread_attr_init(&attr);
24130	if( status ) return status;
24131
24132#if HAVE_PTHREADS < 7
24133	status = pthread_attr_setdetachstate(&attr, &detach);
24134	if( status < 0 ) status = errno;
24135#else
24136	status = pthread_attr_setdetachstate(&attr, detach);
24137#endif
24138	if( status ) return status;
24139	status = pthread_create( &t, &attr, task, NULL );
24140#if HAVE_PTHREADS < 7
24141	if( status < 0 ) status = errno;
24142#endif
24143	if( status ) return status;
24144#else
24145	/* Draft 4 pthreads */
24146	status = pthread_create( &t, pthread_attr_default, task, NULL );
24147	if( status ) return errno;
24148
24149	/* give thread a chance to complete */
24150	/* it should remain joinable and hence detachable */
24151	sleep( 1 );
24152
24153	status = pthread_detach( &t );
24154	if( status ) return errno;
24155#endif
24156
24157#ifdef HAVE_LINUX_THREADS
24158	pthread_kill_other_threads_np();
24159#endif
24160
24161	return 0;
24162
24163  ;
24164  return 0;
24165}
24166_ACEOF
24167if ac_fn_c_try_link "$LINENO"; then :
24168  ol_cv_pthread_lc_r=yes
24169else
24170  ol_cv_pthread_lc_r=no
24171fi
24172rm -f core conftest.err conftest.$ac_objext \
24173    conftest$ac_exeext conftest.$ac_ext
24174else
24175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24176/* end confdefs.h.  */
24177
24178
24179/* pthread test headers */
24180#include <pthread.h>
24181#if HAVE_PTHREADS < 7
24182#include <errno.h>
24183#endif
24184#ifndef NULL
24185#define NULL (void*)0
24186#endif
24187
24188static void *task(p)
24189	void *p;
24190{
24191	return (void *) (p == NULL);
24192}
24193
24194
24195int main(argc, argv)
24196	int argc;
24197	char **argv;
24198{
24199
24200	/* pthread test function */
24201#ifndef PTHREAD_CREATE_DETACHED
24202#define	PTHREAD_CREATE_DETACHED	1
24203#endif
24204	pthread_t t;
24205	int status;
24206	int detach = PTHREAD_CREATE_DETACHED;
24207
24208#if HAVE_PTHREADS > 4
24209	/* Final pthreads */
24210	pthread_attr_t attr;
24211
24212	status = pthread_attr_init(&attr);
24213	if( status ) return status;
24214
24215#if HAVE_PTHREADS < 7
24216	status = pthread_attr_setdetachstate(&attr, &detach);
24217	if( status < 0 ) status = errno;
24218#else
24219	status = pthread_attr_setdetachstate(&attr, detach);
24220#endif
24221	if( status ) return status;
24222	status = pthread_create( &t, &attr, task, NULL );
24223#if HAVE_PTHREADS < 7
24224	if( status < 0 ) status = errno;
24225#endif
24226	if( status ) return status;
24227#else
24228	/* Draft 4 pthreads */
24229	status = pthread_create( &t, pthread_attr_default, task, NULL );
24230	if( status ) return errno;
24231
24232	/* give thread a chance to complete */
24233	/* it should remain joinable and hence detachable */
24234	sleep( 1 );
24235
24236	status = pthread_detach( &t );
24237	if( status ) return errno;
24238#endif
24239
24240#ifdef HAVE_LINUX_THREADS
24241	pthread_kill_other_threads_np();
24242#endif
24243
24244	return 0;
24245
24246}
24247
24248_ACEOF
24249if ac_fn_c_try_run "$LINENO"; then :
24250  ol_cv_pthread_lc_r=yes
24251else
24252  ol_cv_pthread_lc_r=no
24253fi
24254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24255  conftest.$ac_objext conftest.beam conftest.$ac_ext
24256fi
24257
24258
24259		# restore the LIBS
24260		LIBS="$ol_LIBS"
24261
24262fi
24263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
24264$as_echo "$ol_cv_pthread_lc_r" >&6; }
24265
24266	if test $ol_cv_pthread_lc_r = yes ; then
24267		ol_link_pthreads="-lc_r"
24268		ol_link_threads=posix
24269	fi
24270fi
24271
24272
24273		# Pthread try link: -threads (ol_cv_pthread_threads)
24274if test "$ol_link_threads" = no ; then
24275	# try -threads
24276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
24277$as_echo_n "checking for pthread link with -threads... " >&6; }
24278if ${ol_cv_pthread_threads+:} false; then :
24279  $as_echo_n "(cached) " >&6
24280else
24281
24282		# save the flags
24283		ol_LIBS="$LIBS"
24284		LIBS="-threads $LIBS"
24285
24286		if test "$cross_compiling" = yes; then :
24287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24288/* end confdefs.h.  */
24289
24290/* pthread test headers */
24291#include <pthread.h>
24292#if HAVE_PTHREADS < 7
24293#include <errno.h>
24294#endif
24295#ifndef NULL
24296#define NULL (void*)0
24297#endif
24298
24299static void *task(p)
24300	void *p;
24301{
24302	return (void *) (p == NULL);
24303}
24304
24305int
24306main ()
24307{
24308
24309	/* pthread test function */
24310#ifndef PTHREAD_CREATE_DETACHED
24311#define	PTHREAD_CREATE_DETACHED	1
24312#endif
24313	pthread_t t;
24314	int status;
24315	int detach = PTHREAD_CREATE_DETACHED;
24316
24317#if HAVE_PTHREADS > 4
24318	/* Final pthreads */
24319	pthread_attr_t attr;
24320
24321	status = pthread_attr_init(&attr);
24322	if( status ) return status;
24323
24324#if HAVE_PTHREADS < 7
24325	status = pthread_attr_setdetachstate(&attr, &detach);
24326	if( status < 0 ) status = errno;
24327#else
24328	status = pthread_attr_setdetachstate(&attr, detach);
24329#endif
24330	if( status ) return status;
24331	status = pthread_create( &t, &attr, task, NULL );
24332#if HAVE_PTHREADS < 7
24333	if( status < 0 ) status = errno;
24334#endif
24335	if( status ) return status;
24336#else
24337	/* Draft 4 pthreads */
24338	status = pthread_create( &t, pthread_attr_default, task, NULL );
24339	if( status ) return errno;
24340
24341	/* give thread a chance to complete */
24342	/* it should remain joinable and hence detachable */
24343	sleep( 1 );
24344
24345	status = pthread_detach( &t );
24346	if( status ) return errno;
24347#endif
24348
24349#ifdef HAVE_LINUX_THREADS
24350	pthread_kill_other_threads_np();
24351#endif
24352
24353	return 0;
24354
24355  ;
24356  return 0;
24357}
24358_ACEOF
24359if ac_fn_c_try_link "$LINENO"; then :
24360  ol_cv_pthread_threads=yes
24361else
24362  ol_cv_pthread_threads=no
24363fi
24364rm -f core conftest.err conftest.$ac_objext \
24365    conftest$ac_exeext conftest.$ac_ext
24366else
24367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24368/* end confdefs.h.  */
24369
24370
24371/* pthread test headers */
24372#include <pthread.h>
24373#if HAVE_PTHREADS < 7
24374#include <errno.h>
24375#endif
24376#ifndef NULL
24377#define NULL (void*)0
24378#endif
24379
24380static void *task(p)
24381	void *p;
24382{
24383	return (void *) (p == NULL);
24384}
24385
24386
24387int main(argc, argv)
24388	int argc;
24389	char **argv;
24390{
24391
24392	/* pthread test function */
24393#ifndef PTHREAD_CREATE_DETACHED
24394#define	PTHREAD_CREATE_DETACHED	1
24395#endif
24396	pthread_t t;
24397	int status;
24398	int detach = PTHREAD_CREATE_DETACHED;
24399
24400#if HAVE_PTHREADS > 4
24401	/* Final pthreads */
24402	pthread_attr_t attr;
24403
24404	status = pthread_attr_init(&attr);
24405	if( status ) return status;
24406
24407#if HAVE_PTHREADS < 7
24408	status = pthread_attr_setdetachstate(&attr, &detach);
24409	if( status < 0 ) status = errno;
24410#else
24411	status = pthread_attr_setdetachstate(&attr, detach);
24412#endif
24413	if( status ) return status;
24414	status = pthread_create( &t, &attr, task, NULL );
24415#if HAVE_PTHREADS < 7
24416	if( status < 0 ) status = errno;
24417#endif
24418	if( status ) return status;
24419#else
24420	/* Draft 4 pthreads */
24421	status = pthread_create( &t, pthread_attr_default, task, NULL );
24422	if( status ) return errno;
24423
24424	/* give thread a chance to complete */
24425	/* it should remain joinable and hence detachable */
24426	sleep( 1 );
24427
24428	status = pthread_detach( &t );
24429	if( status ) return errno;
24430#endif
24431
24432#ifdef HAVE_LINUX_THREADS
24433	pthread_kill_other_threads_np();
24434#endif
24435
24436	return 0;
24437
24438}
24439
24440_ACEOF
24441if ac_fn_c_try_run "$LINENO"; then :
24442  ol_cv_pthread_threads=yes
24443else
24444  ol_cv_pthread_threads=no
24445fi
24446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24447  conftest.$ac_objext conftest.beam conftest.$ac_ext
24448fi
24449
24450
24451		# restore the LIBS
24452		LIBS="$ol_LIBS"
24453
24454fi
24455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
24456$as_echo "$ol_cv_pthread_threads" >&6; }
24457
24458	if test $ol_cv_pthread_threads = yes ; then
24459		ol_link_pthreads="-threads"
24460		ol_link_threads=posix
24461	fi
24462fi
24463
24464
24465		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
24466if test "$ol_link_threads" = no ; then
24467	# try -lpthreads -lmach -lexc -lc_r
24468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
24469$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
24470if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
24471  $as_echo_n "(cached) " >&6
24472else
24473
24474		# save the flags
24475		ol_LIBS="$LIBS"
24476		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
24477
24478		if test "$cross_compiling" = yes; then :
24479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480/* end confdefs.h.  */
24481
24482/* pthread test headers */
24483#include <pthread.h>
24484#if HAVE_PTHREADS < 7
24485#include <errno.h>
24486#endif
24487#ifndef NULL
24488#define NULL (void*)0
24489#endif
24490
24491static void *task(p)
24492	void *p;
24493{
24494	return (void *) (p == NULL);
24495}
24496
24497int
24498main ()
24499{
24500
24501	/* pthread test function */
24502#ifndef PTHREAD_CREATE_DETACHED
24503#define	PTHREAD_CREATE_DETACHED	1
24504#endif
24505	pthread_t t;
24506	int status;
24507	int detach = PTHREAD_CREATE_DETACHED;
24508
24509#if HAVE_PTHREADS > 4
24510	/* Final pthreads */
24511	pthread_attr_t attr;
24512
24513	status = pthread_attr_init(&attr);
24514	if( status ) return status;
24515
24516#if HAVE_PTHREADS < 7
24517	status = pthread_attr_setdetachstate(&attr, &detach);
24518	if( status < 0 ) status = errno;
24519#else
24520	status = pthread_attr_setdetachstate(&attr, detach);
24521#endif
24522	if( status ) return status;
24523	status = pthread_create( &t, &attr, task, NULL );
24524#if HAVE_PTHREADS < 7
24525	if( status < 0 ) status = errno;
24526#endif
24527	if( status ) return status;
24528#else
24529	/* Draft 4 pthreads */
24530	status = pthread_create( &t, pthread_attr_default, task, NULL );
24531	if( status ) return errno;
24532
24533	/* give thread a chance to complete */
24534	/* it should remain joinable and hence detachable */
24535	sleep( 1 );
24536
24537	status = pthread_detach( &t );
24538	if( status ) return errno;
24539#endif
24540
24541#ifdef HAVE_LINUX_THREADS
24542	pthread_kill_other_threads_np();
24543#endif
24544
24545	return 0;
24546
24547  ;
24548  return 0;
24549}
24550_ACEOF
24551if ac_fn_c_try_link "$LINENO"; then :
24552  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24553else
24554  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24555fi
24556rm -f core conftest.err conftest.$ac_objext \
24557    conftest$ac_exeext conftest.$ac_ext
24558else
24559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560/* end confdefs.h.  */
24561
24562
24563/* pthread test headers */
24564#include <pthread.h>
24565#if HAVE_PTHREADS < 7
24566#include <errno.h>
24567#endif
24568#ifndef NULL
24569#define NULL (void*)0
24570#endif
24571
24572static void *task(p)
24573	void *p;
24574{
24575	return (void *) (p == NULL);
24576}
24577
24578
24579int main(argc, argv)
24580	int argc;
24581	char **argv;
24582{
24583
24584	/* pthread test function */
24585#ifndef PTHREAD_CREATE_DETACHED
24586#define	PTHREAD_CREATE_DETACHED	1
24587#endif
24588	pthread_t t;
24589	int status;
24590	int detach = PTHREAD_CREATE_DETACHED;
24591
24592#if HAVE_PTHREADS > 4
24593	/* Final pthreads */
24594	pthread_attr_t attr;
24595
24596	status = pthread_attr_init(&attr);
24597	if( status ) return status;
24598
24599#if HAVE_PTHREADS < 7
24600	status = pthread_attr_setdetachstate(&attr, &detach);
24601	if( status < 0 ) status = errno;
24602#else
24603	status = pthread_attr_setdetachstate(&attr, detach);
24604#endif
24605	if( status ) return status;
24606	status = pthread_create( &t, &attr, task, NULL );
24607#if HAVE_PTHREADS < 7
24608	if( status < 0 ) status = errno;
24609#endif
24610	if( status ) return status;
24611#else
24612	/* Draft 4 pthreads */
24613	status = pthread_create( &t, pthread_attr_default, task, NULL );
24614	if( status ) return errno;
24615
24616	/* give thread a chance to complete */
24617	/* it should remain joinable and hence detachable */
24618	sleep( 1 );
24619
24620	status = pthread_detach( &t );
24621	if( status ) return errno;
24622#endif
24623
24624#ifdef HAVE_LINUX_THREADS
24625	pthread_kill_other_threads_np();
24626#endif
24627
24628	return 0;
24629
24630}
24631
24632_ACEOF
24633if ac_fn_c_try_run "$LINENO"; then :
24634  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24635else
24636  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24637fi
24638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24639  conftest.$ac_objext conftest.beam conftest.$ac_ext
24640fi
24641
24642
24643		# restore the LIBS
24644		LIBS="$ol_LIBS"
24645
24646fi
24647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
24648$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24649
24650	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24651		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24652		ol_link_threads=posix
24653	fi
24654fi
24655
24656		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24657if test "$ol_link_threads" = no ; then
24658	# try -lpthreads -lmach -lexc
24659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
24660$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
24661if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
24662  $as_echo_n "(cached) " >&6
24663else
24664
24665		# save the flags
24666		ol_LIBS="$LIBS"
24667		LIBS="-lpthreads -lmach -lexc $LIBS"
24668
24669		if test "$cross_compiling" = yes; then :
24670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671/* end confdefs.h.  */
24672
24673/* pthread test headers */
24674#include <pthread.h>
24675#if HAVE_PTHREADS < 7
24676#include <errno.h>
24677#endif
24678#ifndef NULL
24679#define NULL (void*)0
24680#endif
24681
24682static void *task(p)
24683	void *p;
24684{
24685	return (void *) (p == NULL);
24686}
24687
24688int
24689main ()
24690{
24691
24692	/* pthread test function */
24693#ifndef PTHREAD_CREATE_DETACHED
24694#define	PTHREAD_CREATE_DETACHED	1
24695#endif
24696	pthread_t t;
24697	int status;
24698	int detach = PTHREAD_CREATE_DETACHED;
24699
24700#if HAVE_PTHREADS > 4
24701	/* Final pthreads */
24702	pthread_attr_t attr;
24703
24704	status = pthread_attr_init(&attr);
24705	if( status ) return status;
24706
24707#if HAVE_PTHREADS < 7
24708	status = pthread_attr_setdetachstate(&attr, &detach);
24709	if( status < 0 ) status = errno;
24710#else
24711	status = pthread_attr_setdetachstate(&attr, detach);
24712#endif
24713	if( status ) return status;
24714	status = pthread_create( &t, &attr, task, NULL );
24715#if HAVE_PTHREADS < 7
24716	if( status < 0 ) status = errno;
24717#endif
24718	if( status ) return status;
24719#else
24720	/* Draft 4 pthreads */
24721	status = pthread_create( &t, pthread_attr_default, task, NULL );
24722	if( status ) return errno;
24723
24724	/* give thread a chance to complete */
24725	/* it should remain joinable and hence detachable */
24726	sleep( 1 );
24727
24728	status = pthread_detach( &t );
24729	if( status ) return errno;
24730#endif
24731
24732#ifdef HAVE_LINUX_THREADS
24733	pthread_kill_other_threads_np();
24734#endif
24735
24736	return 0;
24737
24738  ;
24739  return 0;
24740}
24741_ACEOF
24742if ac_fn_c_try_link "$LINENO"; then :
24743  ol_cv_pthread_lpthreads_lmach_lexc=yes
24744else
24745  ol_cv_pthread_lpthreads_lmach_lexc=no
24746fi
24747rm -f core conftest.err conftest.$ac_objext \
24748    conftest$ac_exeext conftest.$ac_ext
24749else
24750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24751/* end confdefs.h.  */
24752
24753
24754/* pthread test headers */
24755#include <pthread.h>
24756#if HAVE_PTHREADS < 7
24757#include <errno.h>
24758#endif
24759#ifndef NULL
24760#define NULL (void*)0
24761#endif
24762
24763static void *task(p)
24764	void *p;
24765{
24766	return (void *) (p == NULL);
24767}
24768
24769
24770int main(argc, argv)
24771	int argc;
24772	char **argv;
24773{
24774
24775	/* pthread test function */
24776#ifndef PTHREAD_CREATE_DETACHED
24777#define	PTHREAD_CREATE_DETACHED	1
24778#endif
24779	pthread_t t;
24780	int status;
24781	int detach = PTHREAD_CREATE_DETACHED;
24782
24783#if HAVE_PTHREADS > 4
24784	/* Final pthreads */
24785	pthread_attr_t attr;
24786
24787	status = pthread_attr_init(&attr);
24788	if( status ) return status;
24789
24790#if HAVE_PTHREADS < 7
24791	status = pthread_attr_setdetachstate(&attr, &detach);
24792	if( status < 0 ) status = errno;
24793#else
24794	status = pthread_attr_setdetachstate(&attr, detach);
24795#endif
24796	if( status ) return status;
24797	status = pthread_create( &t, &attr, task, NULL );
24798#if HAVE_PTHREADS < 7
24799	if( status < 0 ) status = errno;
24800#endif
24801	if( status ) return status;
24802#else
24803	/* Draft 4 pthreads */
24804	status = pthread_create( &t, pthread_attr_default, task, NULL );
24805	if( status ) return errno;
24806
24807	/* give thread a chance to complete */
24808	/* it should remain joinable and hence detachable */
24809	sleep( 1 );
24810
24811	status = pthread_detach( &t );
24812	if( status ) return errno;
24813#endif
24814
24815#ifdef HAVE_LINUX_THREADS
24816	pthread_kill_other_threads_np();
24817#endif
24818
24819	return 0;
24820
24821}
24822
24823_ACEOF
24824if ac_fn_c_try_run "$LINENO"; then :
24825  ol_cv_pthread_lpthreads_lmach_lexc=yes
24826else
24827  ol_cv_pthread_lpthreads_lmach_lexc=no
24828fi
24829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24830  conftest.$ac_objext conftest.beam conftest.$ac_ext
24831fi
24832
24833
24834		# restore the LIBS
24835		LIBS="$ol_LIBS"
24836
24837fi
24838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24839$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24840
24841	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24842		ol_link_pthreads="-lpthreads -lmach -lexc"
24843		ol_link_threads=posix
24844	fi
24845fi
24846
24847		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24848if test "$ol_link_threads" = no ; then
24849	# try -lpthreads -lexc
24850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
24851$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
24852if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
24853  $as_echo_n "(cached) " >&6
24854else
24855
24856		# save the flags
24857		ol_LIBS="$LIBS"
24858		LIBS="-lpthreads -lexc $LIBS"
24859
24860		if test "$cross_compiling" = yes; then :
24861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24862/* end confdefs.h.  */
24863
24864/* pthread test headers */
24865#include <pthread.h>
24866#if HAVE_PTHREADS < 7
24867#include <errno.h>
24868#endif
24869#ifndef NULL
24870#define NULL (void*)0
24871#endif
24872
24873static void *task(p)
24874	void *p;
24875{
24876	return (void *) (p == NULL);
24877}
24878
24879int
24880main ()
24881{
24882
24883	/* pthread test function */
24884#ifndef PTHREAD_CREATE_DETACHED
24885#define	PTHREAD_CREATE_DETACHED	1
24886#endif
24887	pthread_t t;
24888	int status;
24889	int detach = PTHREAD_CREATE_DETACHED;
24890
24891#if HAVE_PTHREADS > 4
24892	/* Final pthreads */
24893	pthread_attr_t attr;
24894
24895	status = pthread_attr_init(&attr);
24896	if( status ) return status;
24897
24898#if HAVE_PTHREADS < 7
24899	status = pthread_attr_setdetachstate(&attr, &detach);
24900	if( status < 0 ) status = errno;
24901#else
24902	status = pthread_attr_setdetachstate(&attr, detach);
24903#endif
24904	if( status ) return status;
24905	status = pthread_create( &t, &attr, task, NULL );
24906#if HAVE_PTHREADS < 7
24907	if( status < 0 ) status = errno;
24908#endif
24909	if( status ) return status;
24910#else
24911	/* Draft 4 pthreads */
24912	status = pthread_create( &t, pthread_attr_default, task, NULL );
24913	if( status ) return errno;
24914
24915	/* give thread a chance to complete */
24916	/* it should remain joinable and hence detachable */
24917	sleep( 1 );
24918
24919	status = pthread_detach( &t );
24920	if( status ) return errno;
24921#endif
24922
24923#ifdef HAVE_LINUX_THREADS
24924	pthread_kill_other_threads_np();
24925#endif
24926
24927	return 0;
24928
24929  ;
24930  return 0;
24931}
24932_ACEOF
24933if ac_fn_c_try_link "$LINENO"; then :
24934  ol_cv_pthread_lpthreads_lexc=yes
24935else
24936  ol_cv_pthread_lpthreads_lexc=no
24937fi
24938rm -f core conftest.err conftest.$ac_objext \
24939    conftest$ac_exeext conftest.$ac_ext
24940else
24941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24942/* end confdefs.h.  */
24943
24944
24945/* pthread test headers */
24946#include <pthread.h>
24947#if HAVE_PTHREADS < 7
24948#include <errno.h>
24949#endif
24950#ifndef NULL
24951#define NULL (void*)0
24952#endif
24953
24954static void *task(p)
24955	void *p;
24956{
24957	return (void *) (p == NULL);
24958}
24959
24960
24961int main(argc, argv)
24962	int argc;
24963	char **argv;
24964{
24965
24966	/* pthread test function */
24967#ifndef PTHREAD_CREATE_DETACHED
24968#define	PTHREAD_CREATE_DETACHED	1
24969#endif
24970	pthread_t t;
24971	int status;
24972	int detach = PTHREAD_CREATE_DETACHED;
24973
24974#if HAVE_PTHREADS > 4
24975	/* Final pthreads */
24976	pthread_attr_t attr;
24977
24978	status = pthread_attr_init(&attr);
24979	if( status ) return status;
24980
24981#if HAVE_PTHREADS < 7
24982	status = pthread_attr_setdetachstate(&attr, &detach);
24983	if( status < 0 ) status = errno;
24984#else
24985	status = pthread_attr_setdetachstate(&attr, detach);
24986#endif
24987	if( status ) return status;
24988	status = pthread_create( &t, &attr, task, NULL );
24989#if HAVE_PTHREADS < 7
24990	if( status < 0 ) status = errno;
24991#endif
24992	if( status ) return status;
24993#else
24994	/* Draft 4 pthreads */
24995	status = pthread_create( &t, pthread_attr_default, task, NULL );
24996	if( status ) return errno;
24997
24998	/* give thread a chance to complete */
24999	/* it should remain joinable and hence detachable */
25000	sleep( 1 );
25001
25002	status = pthread_detach( &t );
25003	if( status ) return errno;
25004#endif
25005
25006#ifdef HAVE_LINUX_THREADS
25007	pthread_kill_other_threads_np();
25008#endif
25009
25010	return 0;
25011
25012}
25013
25014_ACEOF
25015if ac_fn_c_try_run "$LINENO"; then :
25016  ol_cv_pthread_lpthreads_lexc=yes
25017else
25018  ol_cv_pthread_lpthreads_lexc=no
25019fi
25020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25021  conftest.$ac_objext conftest.beam conftest.$ac_ext
25022fi
25023
25024
25025		# restore the LIBS
25026		LIBS="$ol_LIBS"
25027
25028fi
25029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
25030$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
25031
25032	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
25033		ol_link_pthreads="-lpthreads -lexc"
25034		ol_link_threads=posix
25035	fi
25036fi
25037
25038
25039		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
25040if test "$ol_link_threads" = no ; then
25041	# try -lpthreads
25042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
25043$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
25044if ${ol_cv_pthread_lib_lpthreads+:} false; then :
25045  $as_echo_n "(cached) " >&6
25046else
25047
25048		# save the flags
25049		ol_LIBS="$LIBS"
25050		LIBS="-lpthreads $LIBS"
25051
25052		if test "$cross_compiling" = yes; then :
25053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25054/* end confdefs.h.  */
25055
25056/* pthread test headers */
25057#include <pthread.h>
25058#if HAVE_PTHREADS < 7
25059#include <errno.h>
25060#endif
25061#ifndef NULL
25062#define NULL (void*)0
25063#endif
25064
25065static void *task(p)
25066	void *p;
25067{
25068	return (void *) (p == NULL);
25069}
25070
25071int
25072main ()
25073{
25074
25075	/* pthread test function */
25076#ifndef PTHREAD_CREATE_DETACHED
25077#define	PTHREAD_CREATE_DETACHED	1
25078#endif
25079	pthread_t t;
25080	int status;
25081	int detach = PTHREAD_CREATE_DETACHED;
25082
25083#if HAVE_PTHREADS > 4
25084	/* Final pthreads */
25085	pthread_attr_t attr;
25086
25087	status = pthread_attr_init(&attr);
25088	if( status ) return status;
25089
25090#if HAVE_PTHREADS < 7
25091	status = pthread_attr_setdetachstate(&attr, &detach);
25092	if( status < 0 ) status = errno;
25093#else
25094	status = pthread_attr_setdetachstate(&attr, detach);
25095#endif
25096	if( status ) return status;
25097	status = pthread_create( &t, &attr, task, NULL );
25098#if HAVE_PTHREADS < 7
25099	if( status < 0 ) status = errno;
25100#endif
25101	if( status ) return status;
25102#else
25103	/* Draft 4 pthreads */
25104	status = pthread_create( &t, pthread_attr_default, task, NULL );
25105	if( status ) return errno;
25106
25107	/* give thread a chance to complete */
25108	/* it should remain joinable and hence detachable */
25109	sleep( 1 );
25110
25111	status = pthread_detach( &t );
25112	if( status ) return errno;
25113#endif
25114
25115#ifdef HAVE_LINUX_THREADS
25116	pthread_kill_other_threads_np();
25117#endif
25118
25119	return 0;
25120
25121  ;
25122  return 0;
25123}
25124_ACEOF
25125if ac_fn_c_try_link "$LINENO"; then :
25126  ol_cv_pthread_lib_lpthreads=yes
25127else
25128  ol_cv_pthread_lib_lpthreads=no
25129fi
25130rm -f core conftest.err conftest.$ac_objext \
25131    conftest$ac_exeext conftest.$ac_ext
25132else
25133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134/* end confdefs.h.  */
25135
25136
25137/* pthread test headers */
25138#include <pthread.h>
25139#if HAVE_PTHREADS < 7
25140#include <errno.h>
25141#endif
25142#ifndef NULL
25143#define NULL (void*)0
25144#endif
25145
25146static void *task(p)
25147	void *p;
25148{
25149	return (void *) (p == NULL);
25150}
25151
25152
25153int main(argc, argv)
25154	int argc;
25155	char **argv;
25156{
25157
25158	/* pthread test function */
25159#ifndef PTHREAD_CREATE_DETACHED
25160#define	PTHREAD_CREATE_DETACHED	1
25161#endif
25162	pthread_t t;
25163	int status;
25164	int detach = PTHREAD_CREATE_DETACHED;
25165
25166#if HAVE_PTHREADS > 4
25167	/* Final pthreads */
25168	pthread_attr_t attr;
25169
25170	status = pthread_attr_init(&attr);
25171	if( status ) return status;
25172
25173#if HAVE_PTHREADS < 7
25174	status = pthread_attr_setdetachstate(&attr, &detach);
25175	if( status < 0 ) status = errno;
25176#else
25177	status = pthread_attr_setdetachstate(&attr, detach);
25178#endif
25179	if( status ) return status;
25180	status = pthread_create( &t, &attr, task, NULL );
25181#if HAVE_PTHREADS < 7
25182	if( status < 0 ) status = errno;
25183#endif
25184	if( status ) return status;
25185#else
25186	/* Draft 4 pthreads */
25187	status = pthread_create( &t, pthread_attr_default, task, NULL );
25188	if( status ) return errno;
25189
25190	/* give thread a chance to complete */
25191	/* it should remain joinable and hence detachable */
25192	sleep( 1 );
25193
25194	status = pthread_detach( &t );
25195	if( status ) return errno;
25196#endif
25197
25198#ifdef HAVE_LINUX_THREADS
25199	pthread_kill_other_threads_np();
25200#endif
25201
25202	return 0;
25203
25204}
25205
25206_ACEOF
25207if ac_fn_c_try_run "$LINENO"; then :
25208  ol_cv_pthread_lib_lpthreads=yes
25209else
25210  ol_cv_pthread_lib_lpthreads=no
25211fi
25212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25213  conftest.$ac_objext conftest.beam conftest.$ac_ext
25214fi
25215
25216
25217		# restore the LIBS
25218		LIBS="$ol_LIBS"
25219
25220fi
25221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
25222$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
25223
25224	if test $ol_cv_pthread_lib_lpthreads = yes ; then
25225		ol_link_pthreads="-lpthreads"
25226		ol_link_threads=posix
25227	fi
25228fi
25229
25230
25231		if test $ol_link_threads != no ; then
25232			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
25233
25234						save_CPPFLAGS="$CPPFLAGS"
25235			save_LIBS="$LIBS"
25236			LIBS="$LTHREAD_LIBS $LIBS"
25237
25238												for ac_func in sched_yield pthread_yield thr_yield
25239do :
25240  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25242if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25243  cat >>confdefs.h <<_ACEOF
25244#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25245_ACEOF
25246
25247fi
25248done
25249
25250
25251			if test $ac_cv_func_sched_yield = no &&
25252			   test $ac_cv_func_pthread_yield = no &&
25253			   test $ac_cv_func_thr_yield = no ; then
25254								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
25255$as_echo_n "checking for sched_yield in -lrt... " >&6; }
25256if ${ac_cv_lib_rt_sched_yield+:} false; then :
25257  $as_echo_n "(cached) " >&6
25258else
25259  ac_check_lib_save_LIBS=$LIBS
25260LIBS="-lrt  $LIBS"
25261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262/* end confdefs.h.  */
25263
25264/* Override any GCC internal prototype to avoid an error.
25265   Use char because int might match the return type of a GCC
25266   builtin and then its argument prototype would still apply.  */
25267#ifdef __cplusplus
25268extern "C"
25269#endif
25270char sched_yield ();
25271int
25272main ()
25273{
25274return sched_yield ();
25275  ;
25276  return 0;
25277}
25278_ACEOF
25279if ac_fn_c_try_link "$LINENO"; then :
25280  ac_cv_lib_rt_sched_yield=yes
25281else
25282  ac_cv_lib_rt_sched_yield=no
25283fi
25284rm -f core conftest.err conftest.$ac_objext \
25285    conftest$ac_exeext conftest.$ac_ext
25286LIBS=$ac_check_lib_save_LIBS
25287fi
25288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
25289$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
25290if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
25291  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
25292
25293$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
25294
25295					ac_cv_func_sched_yield=yes
25296else
25297  ac_cv_func_sched_yield=no
25298fi
25299
25300			fi
25301			if test $ac_cv_func_sched_yield = no &&
25302			   test $ac_cv_func_pthread_yield = no &&
25303			   test "$ac_cv_func_thr_yield" = no ; then
25304				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
25305$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
25306			fi
25307
25308						for ac_func in pthread_kill
25309do :
25310  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
25311if test "x$ac_cv_func_pthread_kill" = xyes; then :
25312  cat >>confdefs.h <<_ACEOF
25313#define HAVE_PTHREAD_KILL 1
25314_ACEOF
25315
25316fi
25317done
25318
25319
25320									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25321$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
25322if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
25323  $as_echo_n "(cached) " >&6
25324else
25325
25326								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327/* end confdefs.h.  */
25328
25329#include <pthread.h>
25330pthread_rwlock_t rwlock;
25331
25332int
25333main ()
25334{
25335pthread_rwlock_destroy(&rwlock);
25336  ;
25337  return 0;
25338}
25339_ACEOF
25340if ac_fn_c_try_link "$LINENO"; then :
25341  ol_cv_func_pthread_rwlock_destroy=yes
25342else
25343  ol_cv_func_pthread_rwlock_destroy=no
25344fi
25345rm -f core conftest.err conftest.$ac_objext \
25346    conftest$ac_exeext conftest.$ac_ext
25347
25348fi
25349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25350$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
25351			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25352
25353$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
25354
25355			fi
25356
25357									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
25358$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
25359if ${ol_cv_func_pthread_detach+:} false; then :
25360  $as_echo_n "(cached) " >&6
25361else
25362
25363								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364/* end confdefs.h.  */
25365
25366#include <pthread.h>
25367#ifndef NULL
25368#define NULL (void*)0
25369#endif
25370
25371int
25372main ()
25373{
25374pthread_detach(NULL);
25375  ;
25376  return 0;
25377}
25378_ACEOF
25379if ac_fn_c_try_link "$LINENO"; then :
25380  ol_cv_func_pthread_detach=yes
25381else
25382  ol_cv_func_pthread_detach=no
25383fi
25384rm -f core conftest.err conftest.$ac_objext \
25385    conftest$ac_exeext conftest.$ac_ext
25386
25387fi
25388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
25389$as_echo "$ol_cv_func_pthread_detach" >&6; }
25390
25391			if test $ol_cv_func_pthread_detach = no ; then
25392				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
25393			fi
25394
25395
25396$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
25397
25398
25399						for ac_func in \
25400				pthread_setconcurrency \
25401				pthread_getconcurrency \
25402				thr_setconcurrency \
25403				thr_getconcurrency \
25404
25405do :
25406  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25407ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25408if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25409  cat >>confdefs.h <<_ACEOF
25410#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25411_ACEOF
25412
25413fi
25414done
25415
25416
25417
25418	for ac_func in pthread_kill_other_threads_np
25419do :
25420  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
25421if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
25422  cat >>confdefs.h <<_ACEOF
25423#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
25424_ACEOF
25425
25426fi
25427done
25428
25429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
25430$as_echo_n "checking for LinuxThreads implementation... " >&6; }
25431if ${ol_cv_sys_linux_threads+:} false; then :
25432  $as_echo_n "(cached) " >&6
25433else
25434  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25435fi
25436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
25437$as_echo "$ol_cv_sys_linux_threads" >&6; }
25438
25439
25440
25441
25442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
25443$as_echo_n "checking for LinuxThreads consistency... " >&6; }
25444if ${ol_cv_linux_threads+:} false; then :
25445  $as_echo_n "(cached) " >&6
25446else
25447
25448		if test $ol_cv_header_linux_threads = yes &&
25449		   test $ol_cv_sys_linux_threads = yes; then
25450			ol_cv_linux_threads=yes
25451		elif test $ol_cv_header_linux_threads = no &&
25452		     test $ol_cv_sys_linux_threads = no; then
25453			ol_cv_linux_threads=no
25454		else
25455			ol_cv_linux_threads=error
25456		fi
25457
25458fi
25459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
25460$as_echo "$ol_cv_linux_threads" >&6; }
25461
25462
25463			if test $ol_cv_linux_threads = error; then
25464				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
25465			fi
25466
25467			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
25468$as_echo_n "checking if pthread_create() works... " >&6; }
25469if ${ol_cv_pthread_create_works+:} false; then :
25470  $as_echo_n "(cached) " >&6
25471else
25472
25473			if test "$cross_compiling" = yes; then :
25474  				ol_cv_pthread_create_works=yes
25475else
25476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477/* end confdefs.h.  */
25478
25479
25480/* pthread test headers */
25481#include <pthread.h>
25482#if HAVE_PTHREADS < 7
25483#include <errno.h>
25484#endif
25485#ifndef NULL
25486#define NULL (void*)0
25487#endif
25488
25489static void *task(p)
25490	void *p;
25491{
25492	return (void *) (p == NULL);
25493}
25494
25495
25496int main(argc, argv)
25497	int argc;
25498	char **argv;
25499{
25500
25501	/* pthread test function */
25502#ifndef PTHREAD_CREATE_DETACHED
25503#define	PTHREAD_CREATE_DETACHED	1
25504#endif
25505	pthread_t t;
25506	int status;
25507	int detach = PTHREAD_CREATE_DETACHED;
25508
25509#if HAVE_PTHREADS > 4
25510	/* Final pthreads */
25511	pthread_attr_t attr;
25512
25513	status = pthread_attr_init(&attr);
25514	if( status ) return status;
25515
25516#if HAVE_PTHREADS < 7
25517	status = pthread_attr_setdetachstate(&attr, &detach);
25518	if( status < 0 ) status = errno;
25519#else
25520	status = pthread_attr_setdetachstate(&attr, detach);
25521#endif
25522	if( status ) return status;
25523	status = pthread_create( &t, &attr, task, NULL );
25524#if HAVE_PTHREADS < 7
25525	if( status < 0 ) status = errno;
25526#endif
25527	if( status ) return status;
25528#else
25529	/* Draft 4 pthreads */
25530	status = pthread_create( &t, pthread_attr_default, task, NULL );
25531	if( status ) return errno;
25532
25533	/* give thread a chance to complete */
25534	/* it should remain joinable and hence detachable */
25535	sleep( 1 );
25536
25537	status = pthread_detach( &t );
25538	if( status ) return errno;
25539#endif
25540
25541#ifdef HAVE_LINUX_THREADS
25542	pthread_kill_other_threads_np();
25543#endif
25544
25545	return 0;
25546
25547}
25548
25549_ACEOF
25550if ac_fn_c_try_run "$LINENO"; then :
25551  ol_cv_pthread_create_works=yes
25552else
25553  ol_cv_pthread_create_works=no
25554fi
25555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25556  conftest.$ac_objext conftest.beam conftest.$ac_ext
25557fi
25558
25559fi
25560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
25561$as_echo "$ol_cv_pthread_create_works" >&6; }
25562
25563			if test $ol_cv_pthread_create_works = no ; then
25564				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
25565			fi
25566
25567			ol_replace_broken_yield=no
25568
25569			if test $ol_replace_broken_yield = yes ; then
25570
25571$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
25572
25573			fi
25574
25575						if test x$ol_with_yielding_select = xauto ; then
25576				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
25577$as_echo_n "checking if select yields when using pthreads... " >&6; }
25578if ${ol_cv_pthread_select_yields+:} false; then :
25579  $as_echo_n "(cached) " >&6
25580else
25581
25582				if test "$cross_compiling" = yes; then :
25583  ol_cv_pthread_select_yields=cross
25584else
25585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586/* end confdefs.h.  */
25587
25588#include <sys/types.h>
25589#include <sys/time.h>
25590#include <unistd.h>
25591#include <pthread.h>
25592#ifndef NULL
25593#define NULL (void*) 0
25594#endif
25595
25596static int fildes[2];
25597
25598static void *task(p)
25599	void *p;
25600{
25601	int i;
25602	struct timeval tv;
25603
25604	fd_set rfds;
25605
25606	tv.tv_sec=10;
25607	tv.tv_usec=0;
25608
25609	FD_ZERO(&rfds);
25610	FD_SET(fildes[0], &rfds);
25611
25612	/* we're not interested in any fds */
25613	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25614
25615	if(i < 0) {
25616		perror("select");
25617		exit(10);
25618	}
25619
25620	exit(0); /* if we exit here, the select blocked the whole process */
25621}
25622
25623int main(argc, argv)
25624	int argc;
25625	char **argv;
25626{
25627	pthread_t t;
25628
25629	/* create a pipe to select */
25630	if(pipe(&fildes[0])) {
25631		perror("select");
25632		exit(1);
25633	}
25634
25635#ifdef HAVE_PTHREAD_SETCONCURRENCY
25636	(void) pthread_setconcurrency(2);
25637#else
25638#ifdef HAVE_THR_SETCONCURRENCY
25639	/* Set Solaris LWP concurrency to 2 */
25640	thr_setconcurrency(2);
25641#endif
25642#endif
25643
25644#if HAVE_PTHREADS < 6
25645	pthread_create(&t, pthread_attr_default, task, NULL);
25646#else
25647	pthread_create(&t, NULL, task, NULL);
25648#endif
25649
25650	/* make sure task runs first */
25651#ifdef HAVE_THR_YIELD
25652	thr_yield();
25653#elif defined( HAVE_SCHED_YIELD )
25654	sched_yield();
25655#elif defined( HAVE_PTHREAD_YIELD )
25656	pthread_yield();
25657#endif
25658
25659	exit(2);
25660}
25661_ACEOF
25662if ac_fn_c_try_run "$LINENO"; then :
25663  ol_cv_pthread_select_yields=no
25664else
25665  ol_cv_pthread_select_yields=yes
25666fi
25667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25668  conftest.$ac_objext conftest.beam conftest.$ac_ext
25669fi
25670
25671fi
25672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
25673$as_echo "$ol_cv_pthread_select_yields" >&6; }
25674
25675				if test $ol_cv_pthread_select_yields = cross ; then
25676					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
25677				fi
25678
25679				if test $ol_cv_pthread_select_yields = yes ; then
25680					ol_with_yielding_select=yes
25681				fi
25682			fi
25683
25684						CPPFLAGS="$save_CPPFLAGS"
25685			LIBS="$save_LIBS"
25686		else
25687			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
25688		fi
25689	fi
25690
25691	if test $ol_with_threads = posix ; then
25692		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
25693	fi
25694	;;
25695esac
25696
25697case $ol_with_threads in auto | yes | mach)
25698
25699		for ac_header in mach/cthreads.h cthreads.h
25700do :
25701  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25702ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25704  cat >>confdefs.h <<_ACEOF
25705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25706_ACEOF
25707
25708fi
25709
25710done
25711
25712	if test $ac_cv_header_mach_cthreads_h = yes ; then
25713		ol_with_threads=found
25714
25715				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
25716if test "x$ac_cv_func_cthread_fork" = xyes; then :
25717  ol_link_threads=yes
25718fi
25719
25720
25721		if test $ol_link_threads = no ; then
25722									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
25723$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
25724if ${ol_cv_cthread_all_load+:} false; then :
25725  $as_echo_n "(cached) " >&6
25726else
25727
25728								save_LIBS="$LIBS"
25729				LIBS="-all_load $LIBS"
25730				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731/* end confdefs.h.  */
25732#include <mach/cthreads.h>
25733int
25734main ()
25735{
25736
25737					cthread_fork((void *)0, (void *)0);
25738
25739  ;
25740  return 0;
25741}
25742_ACEOF
25743if ac_fn_c_try_link "$LINENO"; then :
25744  ol_cv_cthread_all_load=yes
25745else
25746  ol_cv_cthread_all_load=no
25747fi
25748rm -f core conftest.err conftest.$ac_objext \
25749    conftest$ac_exeext conftest.$ac_ext
25750								LIBS="$save_LIBS"
25751
25752fi
25753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
25754$as_echo "$ol_cv_cthread_all_load" >&6; }
25755
25756			if test $ol_cv_cthread_all_load = yes ; then
25757				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25758				ol_link_threads=mach
25759				ol_with_threads=found
25760			fi
25761		fi
25762
25763	elif test $ac_cv_header_cthreads_h = yes ; then
25764
25765		ol_with_threads=found
25766
25767				save_LIBS="$LIBS"
25768		LIBS="$LIBS -lthreads"
25769		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
25770if test "x$ac_cv_func_cthread_fork" = xyes; then :
25771  ol_link_threads=yes
25772fi
25773
25774		LIBS="$save_LIBS"
25775
25776		if test $ol_link_threads = yes ; then
25777			LTHREAD_LIBS="-lthreads"
25778			ol_link_threads=mach
25779			ol_with_threads=found
25780		else
25781			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
25782		fi
25783
25784	elif test $ol_with_threads = mach ; then
25785		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
25786	fi
25787
25788	if test $ol_link_threads = mach ; then
25789
25790$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
25791
25792	elif test $ol_with_threads = found ; then
25793		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
25794	fi
25795	;;
25796esac
25797
25798case $ol_with_threads in auto | yes | pth)
25799
25800	for ac_header in pth.h
25801do :
25802  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
25803if test "x$ac_cv_header_pth_h" = xyes; then :
25804  cat >>confdefs.h <<_ACEOF
25805#define HAVE_PTH_H 1
25806_ACEOF
25807
25808fi
25809
25810done
25811
25812
25813	if test $ac_cv_header_pth_h = yes ; then
25814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
25815$as_echo_n "checking for pth_version in -lpth... " >&6; }
25816if ${ac_cv_lib_pth_pth_version+:} false; then :
25817  $as_echo_n "(cached) " >&6
25818else
25819  ac_check_lib_save_LIBS=$LIBS
25820LIBS="-lpth  $LIBS"
25821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25822/* end confdefs.h.  */
25823
25824/* Override any GCC internal prototype to avoid an error.
25825   Use char because int might match the return type of a GCC
25826   builtin and then its argument prototype would still apply.  */
25827#ifdef __cplusplus
25828extern "C"
25829#endif
25830char pth_version ();
25831int
25832main ()
25833{
25834return pth_version ();
25835  ;
25836  return 0;
25837}
25838_ACEOF
25839if ac_fn_c_try_link "$LINENO"; then :
25840  ac_cv_lib_pth_pth_version=yes
25841else
25842  ac_cv_lib_pth_pth_version=no
25843fi
25844rm -f core conftest.err conftest.$ac_objext \
25845    conftest$ac_exeext conftest.$ac_ext
25846LIBS=$ac_check_lib_save_LIBS
25847fi
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
25849$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
25850if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
25851  have_pth=yes
25852else
25853  have_pth=no
25854fi
25855
25856
25857		if test $have_pth = yes ; then
25858
25859$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
25860
25861			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25862			ol_link_threads=pth
25863			ol_with_threads=found
25864
25865			if test x$ol_with_yielding_select = xauto ; then
25866				ol_with_yielding_select=yes
25867			fi
25868		fi
25869	fi
25870	;;
25871esac
25872
25873case $ol_with_threads in auto | yes | lwp)
25874
25875		for ac_header in thread.h synch.h
25876do :
25877  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25878ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25880  cat >>confdefs.h <<_ACEOF
25881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25882_ACEOF
25883
25884fi
25885
25886done
25887
25888	if test $ac_cv_header_thread_h = yes &&
25889	   test $ac_cv_header_synch_h = yes ; then
25890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
25891$as_echo_n "checking for thr_create in -lthread... " >&6; }
25892if ${ac_cv_lib_thread_thr_create+:} false; then :
25893  $as_echo_n "(cached) " >&6
25894else
25895  ac_check_lib_save_LIBS=$LIBS
25896LIBS="-lthread  $LIBS"
25897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898/* end confdefs.h.  */
25899
25900/* Override any GCC internal prototype to avoid an error.
25901   Use char because int might match the return type of a GCC
25902   builtin and then its argument prototype would still apply.  */
25903#ifdef __cplusplus
25904extern "C"
25905#endif
25906char thr_create ();
25907int
25908main ()
25909{
25910return thr_create ();
25911  ;
25912  return 0;
25913}
25914_ACEOF
25915if ac_fn_c_try_link "$LINENO"; then :
25916  ac_cv_lib_thread_thr_create=yes
25917else
25918  ac_cv_lib_thread_thr_create=no
25919fi
25920rm -f core conftest.err conftest.$ac_objext \
25921    conftest$ac_exeext conftest.$ac_ext
25922LIBS=$ac_check_lib_save_LIBS
25923fi
25924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
25925$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
25926if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
25927  have_thr=yes
25928else
25929  have_thr=no
25930fi
25931
25932
25933		if test $have_thr = yes ; then
25934
25935$as_echo "#define HAVE_THR 1" >>confdefs.h
25936
25937			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25938			ol_link_threads=thr
25939
25940			if test x$ol_with_yielding_select = xauto ; then
25941				ol_with_yielding_select=yes
25942			fi
25943
25944						for ac_func in \
25945				thr_setconcurrency \
25946				thr_getconcurrency \
25947
25948do :
25949  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25951if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25952  cat >>confdefs.h <<_ACEOF
25953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25954_ACEOF
25955
25956fi
25957done
25958
25959		fi
25960	fi
25961
25962		for ac_header in lwp/lwp.h
25963do :
25964  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
25965if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
25966  cat >>confdefs.h <<_ACEOF
25967#define HAVE_LWP_LWP_H 1
25968_ACEOF
25969
25970fi
25971
25972done
25973
25974	if test $ac_cv_header_lwp_lwp_h = yes ; then
25975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
25976$as_echo_n "checking for lwp_create in -llwp... " >&6; }
25977if ${ac_cv_lib_lwp_lwp_create+:} false; then :
25978  $as_echo_n "(cached) " >&6
25979else
25980  ac_check_lib_save_LIBS=$LIBS
25981LIBS="-llwp  $LIBS"
25982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25983/* end confdefs.h.  */
25984
25985/* Override any GCC internal prototype to avoid an error.
25986   Use char because int might match the return type of a GCC
25987   builtin and then its argument prototype would still apply.  */
25988#ifdef __cplusplus
25989extern "C"
25990#endif
25991char lwp_create ();
25992int
25993main ()
25994{
25995return lwp_create ();
25996  ;
25997  return 0;
25998}
25999_ACEOF
26000if ac_fn_c_try_link "$LINENO"; then :
26001  ac_cv_lib_lwp_lwp_create=yes
26002else
26003  ac_cv_lib_lwp_lwp_create=no
26004fi
26005rm -f core conftest.err conftest.$ac_objext \
26006    conftest$ac_exeext conftest.$ac_ext
26007LIBS=$ac_check_lib_save_LIBS
26008fi
26009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
26010$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
26011if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
26012  have_lwp=yes
26013else
26014  have_lwp=no
26015fi
26016
26017
26018		if test $have_lwp = yes ; then
26019
26020$as_echo "#define HAVE_LWP 1" >>confdefs.h
26021
26022			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26023			ol_link_threads=lwp
26024
26025			if test x$ol_with_yielding_select = xauto ; then
26026				ol_with_yielding_select=no
26027			fi
26028		fi
26029	fi
26030	;;
26031esac
26032
26033if test $ol_with_yielding_select = yes ; then
26034
26035$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
26036
26037fi
26038
26039if test $ol_with_threads = manual ; then
26040		ol_link_threads=yes
26041
26042	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
26043$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26044
26045	for ac_header in pthread.h sched.h
26046do :
26047  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26048ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26049if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26050  cat >>confdefs.h <<_ACEOF
26051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26052_ACEOF
26053
26054fi
26055
26056done
26057
26058	for ac_func in sched_yield pthread_yield
26059do :
26060  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26061ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26062if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26063  cat >>confdefs.h <<_ACEOF
26064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26065_ACEOF
26066
26067fi
26068done
26069
26070
26071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
26072$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
26073if ${ol_cv_header_linux_threads+:} false; then :
26074  $as_echo_n "(cached) " >&6
26075else
26076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26077/* end confdefs.h.  */
26078#include <pthread.h>
26079_ACEOF
26080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26081  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
26082  ol_cv_header_linux_threads=yes
26083else
26084  ol_cv_header_linux_threads=no
26085fi
26086rm -f conftest*
26087
26088
26089fi
26090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
26091$as_echo "$ol_cv_header_linux_threads" >&6; }
26092	if test $ol_cv_header_linux_threads = yes; then
26093
26094$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
26095
26096	fi
26097
26098
26099	for ac_header in mach/cthreads.h
26100do :
26101  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
26102if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
26103  cat >>confdefs.h <<_ACEOF
26104#define HAVE_MACH_CTHREADS_H 1
26105_ACEOF
26106
26107fi
26108
26109done
26110
26111	for ac_header in lwp/lwp.h
26112do :
26113  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
26114if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
26115  cat >>confdefs.h <<_ACEOF
26116#define HAVE_LWP_LWP_H 1
26117_ACEOF
26118
26119fi
26120
26121done
26122
26123	for ac_header in thread.h synch.h
26124do :
26125  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26126ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26127if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26128  cat >>confdefs.h <<_ACEOF
26129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26130_ACEOF
26131
26132fi
26133
26134done
26135
26136fi
26137
26138if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26139
26140$as_echo "#define REENTRANT 1" >>confdefs.h
26141
26142
26143$as_echo "#define _REENTRANT 1" >>confdefs.h
26144
26145
26146$as_echo "#define THREAD_SAFE 1" >>confdefs.h
26147
26148
26149$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
26150
26151
26152$as_echo "#define THREADSAFE 1" >>confdefs.h
26153
26154
26155$as_echo "#define _THREADSAFE 1" >>confdefs.h
26156
26157
26158$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
26159
26160
26161			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
26162$as_echo_n "checking for thread specific errno... " >&6; }
26163if ${ol_cv_errno_thread_specific+:} false; then :
26164  $as_echo_n "(cached) " >&6
26165else
26166
26167		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26168/* end confdefs.h.  */
26169#include <errno.h>
26170int
26171main ()
26172{
26173errno = 0;
26174  ;
26175  return 0;
26176}
26177_ACEOF
26178if ac_fn_c_try_link "$LINENO"; then :
26179  ol_cv_errno_thread_specific=yes
26180else
26181  ol_cv_errno_thread_specific=no
26182fi
26183rm -f core conftest.err conftest.$ac_objext \
26184    conftest$ac_exeext conftest.$ac_ext
26185
26186fi
26187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
26188$as_echo "$ol_cv_errno_thread_specific" >&6; }
26189
26190			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
26191$as_echo_n "checking for thread specific h_errno... " >&6; }
26192if ${ol_cv_h_errno_thread_specific+:} false; then :
26193  $as_echo_n "(cached) " >&6
26194else
26195
26196		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197/* end confdefs.h.  */
26198#include <netdb.h>
26199int
26200main ()
26201{
26202h_errno = 0;
26203  ;
26204  return 0;
26205}
26206_ACEOF
26207if ac_fn_c_try_link "$LINENO"; then :
26208  ol_cv_h_errno_thread_specific=yes
26209else
26210  ol_cv_h_errno_thread_specific=no
26211fi
26212rm -f core conftest.err conftest.$ac_objext \
26213    conftest$ac_exeext conftest.$ac_ext
26214
26215fi
26216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
26217$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
26218
26219	if test $ol_cv_errno_thread_specific != yes ||
26220	   test $ol_cv_h_errno_thread_specific != yes ; then
26221		LIBS="$LTHREAD_LIBS $LIBS"
26222		LTHREAD_LIBS=""
26223	fi
26224
26225fi
26226
26227if test $ol_link_threads = no ; then
26228	if test $ol_with_threads = yes ; then
26229		as_fn_error $? "no suitable thread support" "$LINENO" 5
26230	fi
26231
26232	if test $ol_with_threads = auto ; then
26233		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
26234$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26235		ol_with_threads=no
26236	fi
26237
26238
26239$as_echo "#define NO_THREADS 1" >>confdefs.h
26240
26241	LTHREAD_LIBS=""
26242	BUILD_THREAD=no
26243else
26244	BUILD_THREAD=yes
26245fi
26246
26247if test $ol_link_threads != no ; then
26248
26249$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
26250
26251fi
26252
26253# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26254case "$ol_with_threads" in
26255 no)
26256    ol_pthread_ok=no
26257
26258    ;;
26259 *)
26260    ol_found_pthreads=yes
26261    ;;
26262esac
26263
26264ac_ext=c
26265ac_cpp='$CPP $CPPFLAGS'
26266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268ac_compiler_gnu=$ac_cv_c_compiler_gnu
26269
26270
26271    case "$ol_found_pthreads" in
26272     yes)
26273	saved_LIBS="$LIBS"
26274	LIBS="$LTHREAD_LIBS $LIBS"
26275	saved_CFLAGS="$CFLAGS"
26276	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
26277	for ac_func in sem_timedwait
26278do :
26279  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
26280if test "x$ac_cv_func_sem_timedwait" = xyes; then :
26281  cat >>confdefs.h <<_ACEOF
26282#define HAVE_SEM_TIMEDWAIT 1
26283_ACEOF
26284
26285fi
26286done
26287
26288	LIBS="$saved_LIBS"
26289	{ saved_LIBS=; unset saved_LIBS;}
26290	CFLAGS="$saved_CFLAGS"
26291	{ saved_CFLAGS=; unset saved_CFLAGS;}
26292	case "$ac_cv_func_sem_timedwait" in
26293	 yes)
26294	    PTHREAD_LIBS="$LTHREAD_LIBS"
26295	    have_pthreads=yes
26296	esac
26297    esac
26298esac
26299
26300case "$have_pthreads" in
26301 yes)
26302    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
26303    saved_LIBS="$LIBS"
26304    LIBS="$LTHREAD_LIBS $LIBS"
26305    saved_CFLAGS="$CFLAGS"
26306    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
26307    # The cast to long int works around a bug in the HP C Compiler
26308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26310# This bug is HP SR number 8606223364.
26311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
26312$as_echo_n "checking size of pthread_t... " >&6; }
26313if ${ac_cv_sizeof_pthread_t+:} false; then :
26314  $as_echo_n "(cached) " >&6
26315else
26316  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
26317	    $ac_includes_default
26318	    #include <pthread.h>
26319
26320
26321"; then :
26322
26323else
26324  if test "$ac_cv_type_pthread_t" = yes; then
26325     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26327as_fn_error 77 "cannot compute sizeof (pthread_t)
26328See \`config.log' for more details" "$LINENO" 5; }
26329   else
26330     ac_cv_sizeof_pthread_t=0
26331   fi
26332fi
26333
26334fi
26335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
26336$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
26337
26338
26339
26340cat >>confdefs.h <<_ACEOF
26341#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
26342_ACEOF
26343
26344
26345    LIBISC_PTHREADS_NOTHREADS=pthreads
26346
26347$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
26348
26349    #
26350    # We'd like to use sigwait() too
26351    #
26352    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
26353if test "x$ac_cv_func_sigwait" = xyes; then :
26354  have_sigwait=yes
26355else
26356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
26357$as_echo_n "checking for sigwait in -lc... " >&6; }
26358if ${ac_cv_lib_c_sigwait+:} false; then :
26359  $as_echo_n "(cached) " >&6
26360else
26361  ac_check_lib_save_LIBS=$LIBS
26362LIBS="-lc  $LIBS"
26363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364/* end confdefs.h.  */
26365
26366/* Override any GCC internal prototype to avoid an error.
26367   Use char because int might match the return type of a GCC
26368   builtin and then its argument prototype would still apply.  */
26369#ifdef __cplusplus
26370extern "C"
26371#endif
26372char sigwait ();
26373int
26374main ()
26375{
26376return sigwait ();
26377  ;
26378  return 0;
26379}
26380_ACEOF
26381if ac_fn_c_try_link "$LINENO"; then :
26382  ac_cv_lib_c_sigwait=yes
26383else
26384  ac_cv_lib_c_sigwait=no
26385fi
26386rm -f core conftest.err conftest.$ac_objext \
26387    conftest$ac_exeext conftest.$ac_ext
26388LIBS=$ac_check_lib_save_LIBS
26389fi
26390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
26391$as_echo "$ac_cv_lib_c_sigwait" >&6; }
26392if test "x$ac_cv_lib_c_sigwait" = xyes; then :
26393  have_sigwait=yes
26394else
26395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
26396$as_echo_n "checking for sigwait in -lpthread... " >&6; }
26397if ${ac_cv_lib_pthread_sigwait+:} false; then :
26398  $as_echo_n "(cached) " >&6
26399else
26400  ac_check_lib_save_LIBS=$LIBS
26401LIBS="-lpthread  $LIBS"
26402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403/* end confdefs.h.  */
26404
26405/* Override any GCC internal prototype to avoid an error.
26406   Use char because int might match the return type of a GCC
26407   builtin and then its argument prototype would still apply.  */
26408#ifdef __cplusplus
26409extern "C"
26410#endif
26411char sigwait ();
26412int
26413main ()
26414{
26415return sigwait ();
26416  ;
26417  return 0;
26418}
26419_ACEOF
26420if ac_fn_c_try_link "$LINENO"; then :
26421  ac_cv_lib_pthread_sigwait=yes
26422else
26423  ac_cv_lib_pthread_sigwait=no
26424fi
26425rm -f core conftest.err conftest.$ac_objext \
26426    conftest$ac_exeext conftest.$ac_ext
26427LIBS=$ac_check_lib_save_LIBS
26428fi
26429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
26430$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
26431if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
26432  have_sigwait=yes
26433else
26434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
26435$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
26436if ${ac_cv_lib_pthread__Psigwait+:} false; then :
26437  $as_echo_n "(cached) " >&6
26438else
26439  ac_check_lib_save_LIBS=$LIBS
26440LIBS="-lpthread  $LIBS"
26441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26442/* end confdefs.h.  */
26443
26444/* Override any GCC internal prototype to avoid an error.
26445   Use char because int might match the return type of a GCC
26446   builtin and then its argument prototype would still apply.  */
26447#ifdef __cplusplus
26448extern "C"
26449#endif
26450char _Psigwait ();
26451int
26452main ()
26453{
26454return _Psigwait ();
26455  ;
26456  return 0;
26457}
26458_ACEOF
26459if ac_fn_c_try_link "$LINENO"; then :
26460  ac_cv_lib_pthread__Psigwait=yes
26461else
26462  ac_cv_lib_pthread__Psigwait=no
26463fi
26464rm -f core conftest.err conftest.$ac_objext \
26465    conftest$ac_exeext conftest.$ac_ext
26466LIBS=$ac_check_lib_save_LIBS
26467fi
26468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
26469$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
26470if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
26471  have_sigwait=yes
26472else
26473  have_sigwait=no
26474
26475fi
26476
26477
26478fi
26479
26480
26481fi
26482
26483
26484fi
26485
26486    case "$host:$have_sigwait" in
26487     *-freebsd*:no)
26488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
26489$as_echo_n "checking for sigwait in -lc_r... " >&6; }
26490if ${ac_cv_lib_c_r_sigwait+:} false; then :
26491  $as_echo_n "(cached) " >&6
26492else
26493  ac_check_lib_save_LIBS=$LIBS
26494LIBS="-lc_r  $LIBS"
26495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26496/* end confdefs.h.  */
26497
26498/* Override any GCC internal prototype to avoid an error.
26499   Use char because int might match the return type of a GCC
26500   builtin and then its argument prototype would still apply.  */
26501#ifdef __cplusplus
26502extern "C"
26503#endif
26504char sigwait ();
26505int
26506main ()
26507{
26508return sigwait ();
26509  ;
26510  return 0;
26511}
26512_ACEOF
26513if ac_fn_c_try_link "$LINENO"; then :
26514  ac_cv_lib_c_r_sigwait=yes
26515else
26516  ac_cv_lib_c_r_sigwait=no
26517fi
26518rm -f core conftest.err conftest.$ac_objext \
26519    conftest$ac_exeext conftest.$ac_ext
26520LIBS=$ac_check_lib_save_LIBS
26521fi
26522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
26523$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
26524if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
26525  have_sigwait=yes
26526
26527fi
26528
26529    esac
26530    case "$have_sigwait" in
26531     yes)
26532	ac_cv_func_sigwait=yes
26533
26534$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
26535
26536    esac
26537
26538    for ac_func in pthread_attr_getstacksize
26539do :
26540  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
26541if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
26542  cat >>confdefs.h <<_ACEOF
26543#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
26544_ACEOF
26545
26546fi
26547done
26548
26549    for ac_func in pthread_attr_setstacksize sysconf
26550do :
26551  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26552ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26553if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26554  cat >>confdefs.h <<_ACEOF
26555#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26556_ACEOF
26557
26558fi
26559done
26560
26561
26562    case "$host" in
26563     *-freebsd5.[012]|*-freebsd5.[012].*)
26564	;;
26565     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
26566
26567$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
26568
26569	;;
26570     *-bsdi3.*|*-bsdi4.0*)
26571
26572$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
26573
26574	;;
26575     *-linux*)
26576
26577$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
26578
26579	;;
26580     *-solaris*)
26581	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
26582
26583	for ac_func in pthread_setconcurrency
26584do :
26585  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
26586if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
26587  cat >>confdefs.h <<_ACEOF
26588#define HAVE_PTHREAD_SETCONCURRENCY 1
26589_ACEOF
26590
26591fi
26592done
26593
26594	case "$ac_cv_func_pthread_setconcurrency" in
26595	 yes)
26596
26597$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
26598
26599	esac
26600	;;
26601     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26602
26603$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
26604
26605	;;
26606    esac
26607    hack_shutup_pthreadonceinit=no
26608    case "$host" in
26609     *-aix5.[123].*)
26610	hack_shutup_pthreadonceinit=yes
26611	;;
26612     *-solaris2.[89])
26613	hack_shutup_pthreadonceinit=yes
26614	;;
26615     *-solaris2.1[0-9])
26616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
26617$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
26618if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
26619  $as_echo_n "(cached) " >&6
26620else
26621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26622/* end confdefs.h.  */
26623
26624			#include <pthread.h>
26625
26626int
26627main ()
26628{
26629
26630		        static pthread_once_t once_test =
26631						PTHREAD_ONCE_INIT;
26632
26633
26634  ;
26635  return 0;
26636}
26637_ACEOF
26638if ac_fn_c_try_compile "$LINENO"; then :
26639  ntp_cv_braces_around_pthread_once_init=no
26640else
26641  ntp_cv_braces_around_pthread_once_init=yes
26642
26643fi
26644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645
26646fi
26647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
26648$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
26649	case "$ntp_cv_braces_around_pthread_once_init" in
26650	 yes)
26651	    hack_shutup_pthreadonceinit=yes
26652	esac
26653	;;
26654    esac
26655    case "$hack_shutup_pthreadonceinit" in
26656     yes)
26657
26658$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
26659
26660    esac
26661    LIBS="$saved_LIBS"
26662    { saved_LIBS=; unset saved_LIBS;}
26663    CFLAGS="$saved_CFLAGS"
26664    { saved_CFLAGS=; unset saved_CFLAGS;}
26665    ;;
26666 *)
26667    LIBISC_PTHREADS_NOTHREADS=nothreads
26668    ;;
26669esac
26670
26671 if test "$have_pthreads" != "no"; then
26672  PTHREADS_TRUE=
26673  PTHREADS_FALSE='#'
26674else
26675  PTHREADS_TRUE='#'
26676  PTHREADS_FALSE=
26677fi
26678
26679
26680
26681
26682
26683
26684
26685case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
26686 no:yes)
26687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
26688$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
26689if ${ntp_cv_vsnprintf_percent_m+:} false; then :
26690  $as_echo_n "(cached) " >&6
26691else
26692  if test "$cross_compiling" = yes; then :
26693  ntp_cv_vsnprintf_percent_m=no
26694
26695else
26696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26697/* end confdefs.h.  */
26698
26699		    #include <stdarg.h>
26700		    #include <errno.h>
26701		    #include <stdio.h>
26702		    #include <string.h>
26703
26704		    int call_vsnprintf(
26705			    char *	dst,
26706			    size_t	sz,
26707			    const char *fmt,
26708			    ...
26709			    );
26710
26711		    int call_vsnprintf(
26712			    char *	dst,
26713			    size_t	sz,
26714			    const char *fmt,
26715			    ...
26716			    )
26717		    {
26718			    va_list	ap;
26719			    int		rc;
26720
26721			    va_start(ap, fmt);
26722			    rc = vsnprintf(dst, sz, fmt, ap);
26723			    va_end(ap);
26724
26725			    return rc;
26726		    }
26727
26728int
26729main ()
26730{
26731
26732		    char	sbuf[512];
26733		    char	pbuf[512];
26734		    int		slen;
26735
26736		    strcpy(sbuf, strerror(ENOENT));
26737		    errno = ENOENT;
26738		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
26739					  "wrong");
26740		    return strcmp(sbuf, pbuf);
26741
26742
26743  ;
26744  return 0;
26745}
26746_ACEOF
26747if ac_fn_c_try_run "$LINENO"; then :
26748  ntp_cv_vsnprintf_percent_m=yes
26749else
26750  ntp_cv_vsnprintf_percent_m=no
26751fi
26752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26753  conftest.$ac_objext conftest.beam conftest.$ac_ext
26754fi
26755
26756
26757fi
26758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
26759$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
26760    case "$ntp_cv_vsnprintf_percent_m" in
26761     yes)
26762
26763$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
26764
26765    esac
26766esac
26767
26768for ac_header in sys/clockctl.h
26769do :
26770  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
26771if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
26772  cat >>confdefs.h <<_ACEOF
26773#define HAVE_SYS_CLOCKCTL_H 1
26774_ACEOF
26775
26776fi
26777
26778done
26779
26780
26781# Check whether --enable-clockctl was given.
26782if test "${enable_clockctl+set}" = set; then :
26783  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
26784else
26785  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
26786
26787fi
26788
26789
26790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
26791$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
26792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
26793$as_echo "$ntp_use_dev_clockctl" >&6; }
26794
26795
26796for ac_header in sys/capability.h sys/prctl.h
26797do :
26798  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26799ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26801  cat >>confdefs.h <<_ACEOF
26802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26803_ACEOF
26804
26805fi
26806
26807done
26808
26809
26810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
26811$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
26812
26813case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
26814 yesyes)
26815    case "$host" in
26816     mips-sgi-irix*)
26817	ntp_have_linuxcaps=no
26818	;;
26819     *) ntp_have_linuxcaps=yes
26820	;;
26821    esac
26822    ;;
26823 *)
26824    ntp_have_linuxcaps=no
26825    ;;
26826esac
26827
26828# Check whether --enable-linuxcaps was given.
26829if test "${enable_linuxcaps+set}" = set; then :
26830  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
26831
26832fi
26833
26834
26835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
26836$as_echo "$ntp_have_linuxcaps" >&6; }
26837
26838case "$ntp_have_linuxcaps" in
26839 yes)
26840
26841$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
26842
26843    LIBS="$LIBS -lcap"
26844    ;;
26845esac
26846
26847
26848for ac_header in priv.h
26849do :
26850  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
26851if test "x$ac_cv_header_priv_h" = xyes; then :
26852  cat >>confdefs.h <<_ACEOF
26853#define HAVE_PRIV_H 1
26854_ACEOF
26855
26856fi
26857
26858done
26859
26860
26861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
26862$as_echo_n "checking if we have solaris privileges... " >&6; }
26863
26864case "$ac_cv_header_priv_h" in
26865 yes)
26866    case "$host" in
26867     *-solaris*)
26868	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
26869if test "x$ac_cv_func_setppriv" = xyes; then :
26870  ntp_have_solarisprivs=yes
26871else
26872  ntp_have_solarisprivs=no
26873
26874fi
26875
26876	;;
26877    esac
26878esac
26879
26880# Check whether --enable-solarisprivs was given.
26881if test "${enable_solarisprivs+set}" = set; then :
26882  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
26883
26884fi
26885
26886
26887
26888case "$ntp_have_solarisprivs" in
26889 yes)
26890
26891$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
26892
26893esac
26894
26895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
26896$as_echo "$ntp_have_solarisprivs" >&6; }
26897
26898case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
26899 *yes*)
26900
26901$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
26902
26903esac
26904
26905case "$host" in
26906 *-*-darwin*)
26907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
26908$as_echo_n "checking for library containing res_9_init... " >&6; }
26909if ${ac_cv_search_res_9_init+:} false; then :
26910  $as_echo_n "(cached) " >&6
26911else
26912  ac_func_search_save_LIBS=$LIBS
26913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26914/* end confdefs.h.  */
26915
26916/* Override any GCC internal prototype to avoid an error.
26917   Use char because int might match the return type of a GCC
26918   builtin and then its argument prototype would still apply.  */
26919#ifdef __cplusplus
26920extern "C"
26921#endif
26922char res_9_init ();
26923int
26924main ()
26925{
26926return res_9_init ();
26927  ;
26928  return 0;
26929}
26930_ACEOF
26931for ac_lib in '' resolv; do
26932  if test -z "$ac_lib"; then
26933    ac_res="none required"
26934  else
26935    ac_res=-l$ac_lib
26936    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26937  fi
26938  if ac_fn_c_try_link "$LINENO"; then :
26939  ac_cv_search_res_9_init=$ac_res
26940fi
26941rm -f core conftest.err conftest.$ac_objext \
26942    conftest$ac_exeext
26943  if ${ac_cv_search_res_9_init+:} false; then :
26944  break
26945fi
26946done
26947if ${ac_cv_search_res_9_init+:} false; then :
26948
26949else
26950  ac_cv_search_res_9_init=no
26951fi
26952rm conftest.$ac_ext
26953LIBS=$ac_func_search_save_LIBS
26954fi
26955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
26956$as_echo "$ac_cv_search_res_9_init" >&6; }
26957ac_res=$ac_cv_search_res_9_init
26958if test "$ac_res" != no; then :
26959  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26960
26961fi
26962
26963    ;;
26964 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
26965$as_echo_n "checking for library containing res_init... " >&6; }
26966if ${ac_cv_search_res_init+:} false; then :
26967  $as_echo_n "(cached) " >&6
26968else
26969  ac_func_search_save_LIBS=$LIBS
26970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26971/* end confdefs.h.  */
26972
26973/* Override any GCC internal prototype to avoid an error.
26974   Use char because int might match the return type of a GCC
26975   builtin and then its argument prototype would still apply.  */
26976#ifdef __cplusplus
26977extern "C"
26978#endif
26979char res_init ();
26980int
26981main ()
26982{
26983return res_init ();
26984  ;
26985  return 0;
26986}
26987_ACEOF
26988for ac_lib in '' resolv; do
26989  if test -z "$ac_lib"; then
26990    ac_res="none required"
26991  else
26992    ac_res=-l$ac_lib
26993    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26994  fi
26995  if ac_fn_c_try_link "$LINENO"; then :
26996  ac_cv_search_res_init=$ac_res
26997fi
26998rm -f core conftest.err conftest.$ac_objext \
26999    conftest$ac_exeext
27000  if ${ac_cv_search_res_init+:} false; then :
27001  break
27002fi
27003done
27004if ${ac_cv_search_res_init+:} false; then :
27005
27006else
27007  ac_cv_search_res_init=no
27008fi
27009rm conftest.$ac_ext
27010LIBS=$ac_func_search_save_LIBS
27011fi
27012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
27013$as_echo "$ac_cv_search_res_init" >&6; }
27014ac_res=$ac_cv_search_res_init
27015if test "$ac_res" != no; then :
27016  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27017
27018fi
27019
27020    ;;
27021esac
27022for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
27023do :
27024  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27025ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
27026#  include <sys/types.h>
27027#endif
27028#ifdef HAVE_NETINET_IN_H
27029#  include <netinet/in.h>   /* inet_ functions / structs */
27030#endif
27031#ifdef HAVE_ARPA_NAMESER_H
27032#  include <arpa/nameser.h> /* DNS HEADER struct */
27033#endif
27034#ifdef HAVE_NETDB_H
27035#  include <netdb.h>
27036#endif
27037"
27038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27039  cat >>confdefs.h <<_ACEOF
27040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27041_ACEOF
27042
27043fi
27044
27045done
27046
27047
27048#HMS: Why do we do this check so "early"?
27049for ac_func in res_init
27050do :
27051  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
27052if test "x$ac_cv_func_res_init" = xyes; then :
27053  cat >>confdefs.h <<_ACEOF
27054#define HAVE_RES_INIT 1
27055_ACEOF
27056
27057else
27058  for ac_func in __res_init
27059do :
27060  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
27061if test "x$ac_cv_func___res_init" = xyes; then :
27062  cat >>confdefs.h <<_ACEOF
27063#define HAVE___RES_INIT 1
27064_ACEOF
27065
27066fi
27067done
27068
27069fi
27070done
27071
27072
27073# We also need -lsocket, but we have tested for that already.
27074ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27075if test "x$ac_cv_func_inet_ntop" = xyes; then :
27076
27077else
27078
27079$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
27080
27081fi
27082
27083ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27084if test "x$ac_cv_func_inet_pton" = xyes; then :
27085
27086else
27087
27088$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
27089
27090fi
27091
27092
27093ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27094if test "x$ac_cv_type_uintptr_t" = xyes; then :
27095
27096cat >>confdefs.h <<_ACEOF
27097#define HAVE_UINTPTR_T 1
27098_ACEOF
27099
27100
27101fi
27102ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
27103if test "x$ac_cv_type_int32" = xyes; then :
27104
27105cat >>confdefs.h <<_ACEOF
27106#define HAVE_INT32 1
27107_ACEOF
27108
27109
27110fi
27111ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
27112if test "x$ac_cv_type_u_int32" = xyes; then :
27113
27114cat >>confdefs.h <<_ACEOF
27115#define HAVE_U_INT32 1
27116_ACEOF
27117
27118
27119fi
27120
27121
27122
27123
27124case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
27125 no::yes)
27126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
27127$as_echo_n "checking for int32 with DNS headers included... " >&6; }
27128if ${ntp_cv_type_int32_with_dns+:} false; then :
27129  $as_echo_n "(cached) " >&6
27130else
27131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27132/* end confdefs.h.  */
27133
27134		    #ifdef HAVE_ARPA_NAMESER_H
27135		    # include <arpa/nameser.h>
27136		    #endif
27137		    #include <resolv.h>
27138
27139int
27140main ()
27141{
27142
27143		    size_t cb = sizeof(int32);
27144
27145
27146  ;
27147  return 0;
27148}
27149_ACEOF
27150if ac_fn_c_try_compile "$LINENO"; then :
27151  ntp_cv_type_int32_with_dns=yes
27152else
27153  ntp_cv_type_int32_with_dns=no
27154
27155fi
27156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27157
27158fi
27159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
27160$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
27161    case "$ntp_cv_type_int32_with_dns" in
27162     yes)
27163
27164$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
27165
27166    esac
27167esac
27168
27169case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
27170 no::yes)
27171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
27172$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
27173if ${ntp_cv_type_u_int32_with_dns+:} false; then :
27174  $as_echo_n "(cached) " >&6
27175else
27176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27177/* end confdefs.h.  */
27178
27179		    #ifdef HAVE_ARPA_NAMESER_H
27180		    # include <arpa/nameser.h>
27181		    #endif
27182		    #include <resolv.h>
27183
27184int
27185main ()
27186{
27187
27188		    size_t cb = sizeof(u_int32);
27189
27190
27191  ;
27192  return 0;
27193}
27194_ACEOF
27195if ac_fn_c_try_compile "$LINENO"; then :
27196  ntp_cv_type_u_int32_with_dns=yes
27197else
27198  ntp_cv_type_u_int32_with_dns=no
27199
27200fi
27201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27202
27203fi
27204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
27205$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
27206    case "$ntp_cv_type_u_int32_with_dns" in
27207     yes)
27208
27209$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
27210
27211    esac
27212esac
27213
27214for ac_header in sys/timepps.h
27215do :
27216  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
27217	#ifdef HAVE_SYS_TIME_H
27218	# include <sys/time.h>
27219	#endif
27220	#ifdef HAVE_ERRNO_H
27221	# include <errno.h>
27222	#endif
27223
27224
27225"
27226if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
27227  cat >>confdefs.h <<_ACEOF
27228#define HAVE_SYS_TIMEPPS_H 1
27229_ACEOF
27230
27231fi
27232
27233done
27234
27235
27236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
27237$as_echo_n "checking for struct timespec... " >&6; }
27238if ${ntp_cv_struct_timespec+:} false; then :
27239  $as_echo_n "(cached) " >&6
27240else
27241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27242/* end confdefs.h.  */
27243
27244		#include <sys/time.h>
27245		/* Under SunOS, timespec is in sys/timepps.h,
27246		   which needs errno.h and FRAC */
27247		#ifdef HAVE_ERRNO_H
27248		# include <errno.h>
27249		#endif
27250		#ifdef HAVE_SYS_TIMEPPS_H
27251		# define FRAC 4294967296
27252		# include <sys/timepps.h>
27253		#endif
27254
27255int
27256main ()
27257{
27258
27259		struct timespec n;
27260
27261
27262  ;
27263  return 0;
27264}
27265_ACEOF
27266if ac_fn_c_try_compile "$LINENO"; then :
27267  ntp_cv_struct_timespec=yes
27268else
27269  ntp_cv_struct_timespec=no
27270
27271fi
27272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273
27274fi
27275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
27276$as_echo "$ntp_cv_struct_timespec" >&6; }
27277case "$ntp_cv_struct_timespec" in
27278 yes)
27279
27280$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
27281
27282esac
27283
27284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
27285$as_echo_n "checking for struct ntptimeval... " >&6; }
27286if ${ntp_cv_struct_ntptimeval+:} false; then :
27287  $as_echo_n "(cached) " >&6
27288else
27289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27290/* end confdefs.h.  */
27291
27292		#include <sys/time.h>
27293		#include <sys/timex.h>
27294
27295int
27296main ()
27297{
27298
27299		struct ntptimeval n;
27300
27301
27302  ;
27303  return 0;
27304}
27305_ACEOF
27306if ac_fn_c_try_compile "$LINENO"; then :
27307  ntp_cv_struct_ntptimeval=yes
27308else
27309  ntp_cv_struct_ntptimeval=no
27310
27311fi
27312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27313
27314fi
27315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
27316$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
27317case "$ntp_cv_struct_ntptimeval" in
27318 yes)
27319
27320$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
27321
27322esac
27323
27324for ac_header in md5.h
27325do :
27326  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
27327	#ifdef HAVE_SYS_TYPES_H
27328	# include <sys/types.h>
27329	#endif
27330
27331
27332"
27333if test "x$ac_cv_header_md5_h" = xyes; then :
27334  cat >>confdefs.h <<_ACEOF
27335#define HAVE_MD5_H 1
27336_ACEOF
27337
27338fi
27339
27340done
27341
27342
27343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
27344$as_echo_n "checking for library containing MD5Init... " >&6; }
27345if ${ac_cv_search_MD5Init+:} false; then :
27346  $as_echo_n "(cached) " >&6
27347else
27348  ac_func_search_save_LIBS=$LIBS
27349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27350/* end confdefs.h.  */
27351
27352/* Override any GCC internal prototype to avoid an error.
27353   Use char because int might match the return type of a GCC
27354   builtin and then its argument prototype would still apply.  */
27355#ifdef __cplusplus
27356extern "C"
27357#endif
27358char MD5Init ();
27359int
27360main ()
27361{
27362return MD5Init ();
27363  ;
27364  return 0;
27365}
27366_ACEOF
27367for ac_lib in '' md5 md; do
27368  if test -z "$ac_lib"; then
27369    ac_res="none required"
27370  else
27371    ac_res=-l$ac_lib
27372    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27373  fi
27374  if ac_fn_c_try_link "$LINENO"; then :
27375  ac_cv_search_MD5Init=$ac_res
27376fi
27377rm -f core conftest.err conftest.$ac_objext \
27378    conftest$ac_exeext
27379  if ${ac_cv_search_MD5Init+:} false; then :
27380  break
27381fi
27382done
27383if ${ac_cv_search_MD5Init+:} false; then :
27384
27385else
27386  ac_cv_search_MD5Init=no
27387fi
27388rm conftest.$ac_ext
27389LIBS=$ac_func_search_save_LIBS
27390fi
27391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
27392$as_echo "$ac_cv_search_MD5Init" >&6; }
27393ac_res=$ac_cv_search_MD5Init
27394if test "$ac_res" != no; then :
27395  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27396
27397fi
27398
27399for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
27400do :
27401  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27402ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27403if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27404  cat >>confdefs.h <<_ACEOF
27405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27406_ACEOF
27407
27408fi
27409done
27410
27411
27412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
27413$as_echo_n "checking for SIGIO... " >&6; }
27414if ${ntp_cv_hdr_def_sigio+:} false; then :
27415  $as_echo_n "(cached) " >&6
27416else
27417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27418/* end confdefs.h.  */
27419
27420	    #include <signal.h>
27421
27422	    #ifdef SIGIO
27423		yes
27424	    #endif
27425
27426_ACEOF
27427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27428  $EGREP "yes" >/dev/null 2>&1; then :
27429  ntp_cv_hdr_def_sigio=yes
27430else
27431  ntp_cv_hdr_def_sigio=no
27432
27433fi
27434rm -f conftest*
27435
27436
27437fi
27438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
27439$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
27440
27441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
27442$as_echo_n "checking if we want to use SIGIO... " >&6; }
27443ans=no
27444case "$ntp_cv_hdr_def_sigio" in
27445 yes)
27446    ans=yes
27447    case "$host" in
27448     alpha*-dec-osf4*|alpha*-dec-osf5*)
27449	ans=no
27450	;;
27451     *-convex-*)
27452	ans=no
27453	;;
27454     *-dec-*)
27455	ans=no
27456	;;
27457     *-pc-cygwin*)
27458	ans=no
27459	;;
27460     *-sni-sysv*)
27461	ans=no
27462	;;
27463     *-univel-sysv*)
27464	ans=no
27465	;;
27466     *-*-irix6*)
27467	ans=no
27468	;;
27469     *-*-freebsd*)
27470	ans=no
27471	;;
27472     *-*-*linux*)
27473	ans=no
27474	;;
27475     *-*-unicosmp*)
27476	ans=no
27477	;;
27478     *-*-kfreebsd*)
27479	ans=no
27480	;;
27481     m68k-*-mint*)
27482	ans=no
27483	;;
27484    esac
27485    ;;
27486esac
27487case "$ans" in
27488 yes)
27489
27490$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
27491
27492esac
27493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27494$as_echo "$ans" >&6; }
27495
27496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
27497$as_echo_n "checking for SIGPOLL... " >&6; }
27498if ${ntp_cv_hdr_def_sigpoll+:} false; then :
27499  $as_echo_n "(cached) " >&6
27500else
27501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502/* end confdefs.h.  */
27503
27504	    #include <signal.h>
27505
27506	    #ifdef SIGPOLL
27507		yes
27508	    #endif
27509
27510_ACEOF
27511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27512  $EGREP "yes" >/dev/null 2>&1; then :
27513  ntp_cv_hdr_def_sigpoll=yes
27514else
27515  ntp_cv_hdr_def_sigpoll=no
27516
27517fi
27518rm -f conftest*
27519
27520
27521fi
27522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
27523$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
27524
27525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
27526$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
27527ans=no
27528case "$ntp_cv_hdr_def_sigpoll" in
27529 yes)
27530    case "$host" in
27531     mips-sgi-irix*)
27532	ans=no
27533	;;
27534     vax-dec-bsd)
27535	ans=no
27536	;;
27537     *-pc-cygwin*)
27538	ans=no
27539	;;
27540     *-sni-sysv*)
27541	ans=no
27542	;;
27543     *-*-aix[4-9]*)
27544	# XXX Only verified thru AIX6
27545	ans=no
27546	;;
27547     *-*-hpux*)
27548	ans=no
27549	;;
27550     *-*-*linux*)
27551	ans=no
27552	;;
27553     *-*-osf*)
27554	ans=no
27555	;;
27556     *-*-qnx*)
27557	ans=no
27558	;;
27559     *-*-sunos*)
27560	ans=no
27561	;;
27562     *-*-solaris*)
27563	ans=no
27564	;;
27565     *-*-ultrix*)
27566	ans=no
27567	;;
27568     *-*-unicosmp*)
27569	ans=no
27570	;;
27571     *-*-kfreebsd*)
27572	ans=no
27573	;;
27574     *) ans=yes
27575	;;
27576    esac
27577    ;;
27578esac
27579case "$ans" in
27580 yes)
27581
27582$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
27583
27584esac
27585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27586$as_echo "$ans" >&6; }
27587
27588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
27589$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
27590ans=no
27591case "$ntp_cv_hdr_def_sigpoll" in
27592 yes)
27593    case "$host" in
27594     mips-sgi-irix*)
27595	ans=no
27596	;;
27597     vax-dec-bsd)
27598	ans=no
27599	;;
27600     *-pc-cygwin*)
27601	ans=no
27602	;;
27603     *-sni-sysv*)
27604	ans=no
27605	;;
27606     *-*-aix[4-9]*)
27607	# XXX Only verified thru AIX6
27608	ans=no
27609	;;
27610     *-*-hpux*)
27611	ans=no
27612	;;
27613     *-*-*linux*)
27614	ans=no
27615	;;
27616     *-*-osf*)
27617	ans=no
27618	;;
27619     *-*-sunos*)
27620	ans=no
27621	;;
27622     *-*-ultrix*)
27623	ans=no
27624	;;
27625     *-*-qnx*)
27626	ans=no
27627	;;
27628     *-*-unicosmp*)
27629	ans=no
27630	;;
27631     *-*-kfreebsd*)
27632	ans=no
27633	;;
27634     *) ans=yes
27635	;;
27636    esac
27637    ;;
27638esac
27639case "$ans" in
27640 yes)
27641
27642$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
27643
27644esac
27645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27646$as_echo "$ans" >&6; }
27647
27648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
27649$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
27650if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
27651  $as_echo_n "(cached) " >&6
27652else
27653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27654/* end confdefs.h.  */
27655
27656		#include <sys/time.h>
27657
27658int
27659main ()
27660{
27661
27662		gettimeofday(0, 0);
27663		settimeofday(0, 0);
27664
27665
27666  ;
27667  return 0;
27668}
27669_ACEOF
27670if ac_fn_c_try_compile "$LINENO"; then :
27671  ntp_cv_func_Xettimeofday_nargs=2
27672else
27673  ntp_cv_func_Xettimeofday_nargs=1
27674
27675fi
27676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27677
27678fi
27679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
27680$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
27681case "$ntp_cv_func_Xettimeofday_nargs" in
27682 1)
27683
27684$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
27685
27686esac
27687
27688for ac_func in settimeofday
27689do :
27690  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
27691if test "x$ac_cv_func_settimeofday" = xyes; then :
27692  cat >>confdefs.h <<_ACEOF
27693#define HAVE_SETTIMEOFDAY 1
27694_ACEOF
27695
27696else
27697
27698    case "$host" in
27699     *-*-mpeix*) ac_cv_func_settimeofday=yes
27700    esac
27701
27702fi
27703done
27704
27705
27706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
27707$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
27708ntp_warning='GRONK'
27709ans=none
27710case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
27711 yes*)
27712    ntp_warning=''
27713    ans='clock_settime()'
27714    ;;
27715 noyes*)
27716    ntp_warning='But clock_settime() would be better (if we had it)'
27717    ans='settimeofday()'
27718    ;;
27719 nonoyes)
27720    ntp_warning='Which is the worst of the three'
27721    ans='stime()'
27722    ;;
27723 *)
27724    case "$build" in
27725     $host)
27726	ntp_warning='Which leaves us with nothing to use!'
27727    esac
27728esac
27729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27730$as_echo "$ans" >&6; }
27731case "$ntp_warning" in
27732 '')
27733    ;;
27734 *)
27735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
27736$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
27737    ;;
27738esac
27739
27740
27741LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
27742LIBS=$__LIBS
27743{ __LIBS=; unset __LIBS;}
27744
27745
27746
27747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
27748$as_echo_n "checking for deprecated --with-arlib... " >&6; }
27749
27750# Check whether --with-arlib was given.
27751if test "${with_arlib+set}" = set; then :
27752  withval=$with_arlib; ans=$withval
27753else
27754  ans=no
27755fi
27756
27757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27758$as_echo "$ans" >&6; }
27759
27760case "$ans" in
27761 yes)
27762    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&5
27763$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included.  In the future, --with-arlib will not be recognized." >&2;}
27764    ;;
27765esac
27766
27767for ac_prog in gawk mawk nawk awk
27768do
27769  # Extract the first word of "$ac_prog", so it can be a program name with args.
27770set dummy $ac_prog; ac_word=$2
27771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27772$as_echo_n "checking for $ac_word... " >&6; }
27773if ${ac_cv_prog_AWK+:} false; then :
27774  $as_echo_n "(cached) " >&6
27775else
27776  if test -n "$AWK"; then
27777  ac_cv_prog_AWK="$AWK" # Let the user override the test.
27778else
27779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27780for as_dir in $PATH
27781do
27782  IFS=$as_save_IFS
27783  test -z "$as_dir" && as_dir=.
27784    for ac_exec_ext in '' $ac_executable_extensions; do
27785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27786    ac_cv_prog_AWK="$ac_prog"
27787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27788    break 2
27789  fi
27790done
27791  done
27792IFS=$as_save_IFS
27793
27794fi
27795fi
27796AWK=$ac_cv_prog_AWK
27797if test -n "$AWK"; then
27798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27799$as_echo "$AWK" >&6; }
27800else
27801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27802$as_echo "no" >&6; }
27803fi
27804
27805
27806  test -n "$AWK" && break
27807done
27808
27809{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
27810				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
27812set x ${MAKE-make}
27813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
27814if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
27815  $as_echo_n "(cached) " >&6
27816else
27817  cat >conftest.make <<\_ACEOF
27818SHELL = /bin/sh
27819all:
27820	@echo '@@@%%%=$(MAKE)=@@@%%%'
27821_ACEOF
27822# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27823case `${MAKE-make} -f conftest.make 2>/dev/null` in
27824  *@@@%%%=?*=@@@%%%*)
27825    eval ac_cv_prog_make_${ac_make}_set=yes;;
27826  *)
27827    eval ac_cv_prog_make_${ac_make}_set=no;;
27828esac
27829rm -f conftest.make
27830fi
27831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27833$as_echo "yes" >&6; }
27834  SET_MAKE=
27835else
27836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27837$as_echo "no" >&6; }
27838  SET_MAKE="MAKE=${MAKE-make}"
27839fi
27840
27841
27842
27843
27844
27845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
27846$as_echo_n "checking whether ln -s works... " >&6; }
27847LN_S=$as_ln_s
27848if test "$LN_S" = "ln -s"; then
27849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27850$as_echo "yes" >&6; }
27851else
27852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
27853$as_echo "no, using $LN_S" >&6; }
27854fi
27855
27856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
27857$as_echo_n "checking for library containing strerror... " >&6; }
27858if ${ac_cv_search_strerror+:} false; then :
27859  $as_echo_n "(cached) " >&6
27860else
27861  ac_func_search_save_LIBS=$LIBS
27862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863/* end confdefs.h.  */
27864
27865/* Override any GCC internal prototype to avoid an error.
27866   Use char because int might match the return type of a GCC
27867   builtin and then its argument prototype would still apply.  */
27868#ifdef __cplusplus
27869extern "C"
27870#endif
27871char strerror ();
27872int
27873main ()
27874{
27875return strerror ();
27876  ;
27877  return 0;
27878}
27879_ACEOF
27880for ac_lib in '' cposix; do
27881  if test -z "$ac_lib"; then
27882    ac_res="none required"
27883  else
27884    ac_res=-l$ac_lib
27885    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27886  fi
27887  if ac_fn_c_try_link "$LINENO"; then :
27888  ac_cv_search_strerror=$ac_res
27889fi
27890rm -f core conftest.err conftest.$ac_objext \
27891    conftest$ac_exeext
27892  if ${ac_cv_search_strerror+:} false; then :
27893  break
27894fi
27895done
27896if ${ac_cv_search_strerror+:} false; then :
27897
27898else
27899  ac_cv_search_strerror=no
27900fi
27901rm conftest.$ac_ext
27902LIBS=$ac_func_search_save_LIBS
27903fi
27904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
27905$as_echo "$ac_cv_search_strerror" >&6; }
27906ac_res=$ac_cv_search_strerror
27907if test "$ac_res" != no; then :
27908  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27909
27910fi
27911
27912
27913
27914# Extract the first word of "perl", so it can be a program name with args.
27915set dummy perl; ac_word=$2
27916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27917$as_echo_n "checking for $ac_word... " >&6; }
27918if ${ac_cv_path_PATH_PERL+:} false; then :
27919  $as_echo_n "(cached) " >&6
27920else
27921  case $PATH_PERL in
27922  [\\/]* | ?:[\\/]*)
27923  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
27924  ;;
27925  *)
27926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27927for as_dir in $PATH
27928do
27929  IFS=$as_save_IFS
27930  test -z "$as_dir" && as_dir=.
27931    for ac_exec_ext in '' $ac_executable_extensions; do
27932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27933    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
27934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27935    break 2
27936  fi
27937done
27938  done
27939IFS=$as_save_IFS
27940
27941  ;;
27942esac
27943fi
27944PATH_PERL=$ac_cv_path_PATH_PERL
27945if test -n "$PATH_PERL"; then
27946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
27947$as_echo "$PATH_PERL" >&6; }
27948else
27949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27950$as_echo "no" >&6; }
27951fi
27952
27953
27954{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
27955# Extract the first word of "test", so it can be a program name with args.
27956set dummy test; ac_word=$2
27957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27958$as_echo_n "checking for $ac_word... " >&6; }
27959if ${ac_cv_path_PATH_TEST+:} false; then :
27960  $as_echo_n "(cached) " >&6
27961else
27962  case $PATH_TEST in
27963  [\\/]* | ?:[\\/]*)
27964  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
27965  ;;
27966  *)
27967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27968for as_dir in $PATH
27969do
27970  IFS=$as_save_IFS
27971  test -z "$as_dir" && as_dir=.
27972    for ac_exec_ext in '' $ac_executable_extensions; do
27973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27974    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
27975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27976    break 2
27977  fi
27978done
27979  done
27980IFS=$as_save_IFS
27981
27982  ;;
27983esac
27984fi
27985PATH_TEST=$ac_cv_path_PATH_TEST
27986if test -n "$PATH_TEST"; then
27987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
27988$as_echo "$PATH_TEST" >&6; }
27989else
27990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27991$as_echo "no" >&6; }
27992fi
27993
27994
27995{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
27996test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
27997
27998
27999# Check whether --with-net-snmp-config was given.
28000if test "${with_net_snmp_config+set}" = set; then :
28001  withval=$with_net_snmp_config; ans=$withval
28002else
28003  ans=yes
28004
28005fi
28006
28007case "$ans" in
28008 no)
28009    ;;
28010 yes)
28011    ans=net-snmp-config
28012    ;;
28013 /*)
28014    ;;
28015 */*)
28016    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
28017    ;;
28018 *)
28019    ;;
28020esac
28021PROG_NET_SNMP_CONFIG=$ans
28022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
28023$as_echo_n "checking for net-snmp-config path... " >&6; }
28024case "$PROG_NET_SNMP_CONFIG" in
28025 no) ;;
28026 /*)
28027    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
28028    ;;
28029 *)
28030    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
28031set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
28032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28033$as_echo_n "checking for $ac_word... " >&6; }
28034if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
28035  $as_echo_n "(cached) " >&6
28036else
28037  case $PATH_NET_SNMP_CONFIG in
28038  [\\/]* | ?:[\\/]*)
28039  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
28040  ;;
28041  *)
28042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28043for as_dir in $PATH
28044do
28045  IFS=$as_save_IFS
28046  test -z "$as_dir" && as_dir=.
28047    for ac_exec_ext in '' $ac_executable_extensions; do
28048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28049    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28051    break 2
28052  fi
28053done
28054  done
28055IFS=$as_save_IFS
28056
28057  ;;
28058esac
28059fi
28060PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
28061if test -n "$PATH_NET_SNMP_CONFIG"; then
28062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
28063$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
28064else
28065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28066$as_echo "no" >&6; }
28067fi
28068
28069
28070    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
28071;;
28072esac
28073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
28074$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
28075
28076case "$host" in
28077 *-*-vxworks*)
28078    ac_link="$ac_link $VX_KERNEL"
28079    ;;
28080esac
28081
28082# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
28083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
28084$as_echo_n "checking for library containing openlog... " >&6; }
28085if ${ac_cv_search_openlog+:} false; then :
28086  $as_echo_n "(cached) " >&6
28087else
28088  ac_func_search_save_LIBS=$LIBS
28089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28090/* end confdefs.h.  */
28091
28092/* Override any GCC internal prototype to avoid an error.
28093   Use char because int might match the return type of a GCC
28094   builtin and then its argument prototype would still apply.  */
28095#ifdef __cplusplus
28096extern "C"
28097#endif
28098char openlog ();
28099int
28100main ()
28101{
28102return openlog ();
28103  ;
28104  return 0;
28105}
28106_ACEOF
28107for ac_lib in '' gen syslog; do
28108  if test -z "$ac_lib"; then
28109    ac_res="none required"
28110  else
28111    ac_res=-l$ac_lib
28112    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28113  fi
28114  if ac_fn_c_try_link "$LINENO"; then :
28115  ac_cv_search_openlog=$ac_res
28116fi
28117rm -f core conftest.err conftest.$ac_objext \
28118    conftest$ac_exeext
28119  if ${ac_cv_search_openlog+:} false; then :
28120  break
28121fi
28122done
28123if ${ac_cv_search_openlog+:} false; then :
28124
28125else
28126  ac_cv_search_openlog=no
28127fi
28128rm conftest.$ac_ext
28129LIBS=$ac_func_search_save_LIBS
28130fi
28131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
28132$as_echo "$ac_cv_search_openlog" >&6; }
28133ac_res=$ac_cv_search_openlog
28134if test "$ac_res" != no; then :
28135  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28136
28137fi
28138
28139# XXX library list will be in ac_cv_search_openlog
28140
28141
28142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
28143$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
28144if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
28145  $as_echo_n "(cached) " >&6
28146else
28147
28148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28149/* end confdefs.h.  */
28150
28151#define SYSLOG_NAMES
28152#include <stdlib.h>
28153#include <syslog.h>
28154
28155int
28156main ()
28157{
28158 void *fnames; fnames = facilitynames;
28159  ;
28160  return 0;
28161}
28162_ACEOF
28163if ac_fn_c_try_compile "$LINENO"; then :
28164  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
28165else
28166  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
28167fi
28168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28169fi
28170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
28171$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
28172case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
28173 yes)
28174
28175$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
28176
28177    ;;
28178 no)
28179    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
28180$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
28181    ;;
28182 cross)
28183    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
28184$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
28185    ;;
28186esac
28187
28188
28189
28190case "$host" in
28191 *-*-*linux*) ;;
28192 *-*-osf4*) ;;
28193 *-*-osf5*) ;;
28194 *)
28195    # HMS: Make sure we check for -lrt for clock_* before this...
28196    case "$ac_cv_search_clock_gettime" in
28197     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
28198    esac
28199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
28200$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
28201if ${ac_cv_search_sched_setscheduler+:} false; then :
28202  $as_echo_n "(cached) " >&6
28203else
28204  ac_func_search_save_LIBS=$LIBS
28205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28206/* end confdefs.h.  */
28207
28208/* Override any GCC internal prototype to avoid an error.
28209   Use char because int might match the return type of a GCC
28210   builtin and then its argument prototype would still apply.  */
28211#ifdef __cplusplus
28212extern "C"
28213#endif
28214char sched_setscheduler ();
28215int
28216main ()
28217{
28218return sched_setscheduler ();
28219  ;
28220  return 0;
28221}
28222_ACEOF
28223for ac_lib in '' rt posix4; do
28224  if test -z "$ac_lib"; then
28225    ac_res="none required"
28226  else
28227    ac_res=-l$ac_lib
28228    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28229  fi
28230  if ac_fn_c_try_link "$LINENO"; then :
28231  ac_cv_search_sched_setscheduler=$ac_res
28232fi
28233rm -f core conftest.err conftest.$ac_objext \
28234    conftest$ac_exeext
28235  if ${ac_cv_search_sched_setscheduler+:} false; then :
28236  break
28237fi
28238done
28239if ${ac_cv_search_sched_setscheduler+:} false; then :
28240
28241else
28242  ac_cv_search_sched_setscheduler=no
28243fi
28244rm conftest.$ac_ext
28245LIBS=$ac_func_search_save_LIBS
28246fi
28247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
28248$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
28249ac_res=$ac_cv_search_sched_setscheduler
28250if test "$ac_res" != no; then :
28251  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28252
28253fi
28254
28255    ;;
28256esac
28257
28258for ac_header in bstring.h
28259do :
28260  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
28261if test "x$ac_cv_header_bstring_h" = xyes; then :
28262  cat >>confdefs.h <<_ACEOF
28263#define HAVE_BSTRING_H 1
28264_ACEOF
28265
28266fi
28267
28268done
28269
28270ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
28271if test "x$ac_cv_header_dns_sd_h" = xyes; then :
28272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
28273$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
28274if ${ac_cv_search_DNSServiceRegister+:} false; then :
28275  $as_echo_n "(cached) " >&6
28276else
28277  ac_func_search_save_LIBS=$LIBS
28278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28279/* end confdefs.h.  */
28280
28281/* Override any GCC internal prototype to avoid an error.
28282   Use char because int might match the return type of a GCC
28283   builtin and then its argument prototype would still apply.  */
28284#ifdef __cplusplus
28285extern "C"
28286#endif
28287char DNSServiceRegister ();
28288int
28289main ()
28290{
28291return DNSServiceRegister ();
28292  ;
28293  return 0;
28294}
28295_ACEOF
28296for ac_lib in '' dns_sd; do
28297  if test -z "$ac_lib"; then
28298    ac_res="none required"
28299  else
28300    ac_res=-l$ac_lib
28301    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28302  fi
28303  if ac_fn_c_try_link "$LINENO"; then :
28304  ac_cv_search_DNSServiceRegister=$ac_res
28305fi
28306rm -f core conftest.err conftest.$ac_objext \
28307    conftest$ac_exeext
28308  if ${ac_cv_search_DNSServiceRegister+:} false; then :
28309  break
28310fi
28311done
28312if ${ac_cv_search_DNSServiceRegister+:} false; then :
28313
28314else
28315  ac_cv_search_DNSServiceRegister=no
28316fi
28317rm conftest.$ac_ext
28318LIBS=$ac_func_search_save_LIBS
28319fi
28320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
28321$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
28322ac_res=$ac_cv_search_DNSServiceRegister
28323if test "$ac_res" != no; then :
28324  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28325
28326$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
28327
28328
28329fi
28330
28331
28332fi
28333
28334
28335for ac_header in fcntl.h ieeefp.h inttypes.h kvm.h math.h
28336do :
28337  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28340  cat >>confdefs.h <<_ACEOF
28341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28342_ACEOF
28343
28344fi
28345
28346done
28347
28348
28349for ac_header in memory.h netdb.h poll.h
28350do :
28351  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28352ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28353if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28354  cat >>confdefs.h <<_ACEOF
28355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28356_ACEOF
28357
28358fi
28359
28360done
28361
28362for ac_header in sgtty.h stdlib.h string.h termio.h
28363do :
28364  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28365ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28367  cat >>confdefs.h <<_ACEOF
28368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28369_ACEOF
28370
28371fi
28372
28373done
28374
28375for ac_header in termios.h timepps.h timex.h unistd.h
28376do :
28377  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28378ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28380  cat >>confdefs.h <<_ACEOF
28381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28382_ACEOF
28383
28384fi
28385
28386done
28387
28388
28389case "$host" in
28390 *-*-aix*)
28391    for ac_header in utmpx.h
28392do :
28393  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
28394if test "x$ac_cv_header_utmpx_h" = xyes; then :
28395  cat >>confdefs.h <<_ACEOF
28396#define HAVE_UTMPX_H 1
28397_ACEOF
28398
28399fi
28400
28401done
28402
28403    case "$ac_cv_header_utmpx_h" in
28404     yes)
28405	;;
28406     *)
28407	for ac_header in utmp.h
28408do :
28409  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
28410if test "x$ac_cv_header_utmp_h" = xyes; then :
28411  cat >>confdefs.h <<_ACEOF
28412#define HAVE_UTMP_H 1
28413_ACEOF
28414
28415fi
28416
28417done
28418
28419	;;
28420    esac
28421    ;;
28422 *)
28423    for ac_header in utmp.h utmpx.h
28424do :
28425  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28426ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28428  cat >>confdefs.h <<_ACEOF
28429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28430_ACEOF
28431
28432fi
28433
28434done
28435
28436    ;;
28437esac
28438
28439#
28440# On Suns only (so far) getpass() truncates the typed password to 8
28441# characters, but getpassphrase() allows up to 257.  Most systems'
28442# getpass() does not truncate, at least not so as to affect ntpq and
28443# ntpdc password prompts.
28444#
28445# So check for getpassphrase(), but only on Sun operating systems.
28446#
28447case "$host" in
28448 *-*-sunos*|*-*-solaris*)
28449    for ac_func in getpassphrase
28450do :
28451  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
28452if test "x$ac_cv_func_getpassphrase" = xyes; then :
28453  cat >>confdefs.h <<_ACEOF
28454#define HAVE_GETPASSPHRASE 1
28455_ACEOF
28456
28457fi
28458done
28459
28460esac
28461
28462
28463for ac_header in net/if6.h
28464do :
28465  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
28466if test "x$ac_cv_header_net_if6_h" = xyes; then :
28467  cat >>confdefs.h <<_ACEOF
28468#define HAVE_NET_IF6_H 1
28469_ACEOF
28470
28471fi
28472
28473done
28474
28475for ac_header in net/route.h
28476do :
28477  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
28478    #include <sys/types.h>
28479    #include <sys/socket.h>
28480    #include <net/if.h>
28481
28482"
28483if test "x$ac_cv_header_net_route_h" = xyes; then :
28484  cat >>confdefs.h <<_ACEOF
28485#define HAVE_NET_ROUTE_H 1
28486_ACEOF
28487
28488fi
28489
28490done
28491
28492
28493for ac_header in netinfo/ni.h
28494do :
28495  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
28496if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
28497  cat >>confdefs.h <<_ACEOF
28498#define HAVE_NETINFO_NI_H 1
28499_ACEOF
28500
28501fi
28502
28503done
28504
28505case "$ac_cv_header_netinfo_ni_h" in
28506 yes)
28507
28508$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
28509
28510esac
28511for ac_header in sun/audioio.h sys/audioio.h sys/file.h
28512do :
28513  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28514ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28516  cat >>confdefs.h <<_ACEOF
28517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28518_ACEOF
28519
28520fi
28521
28522done
28523
28524case "$host" in
28525 *-*-sunos4*)
28526    ;;
28527 *)
28528    for ac_header in sys/ioctl.h
28529do :
28530  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
28531if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
28532  cat >>confdefs.h <<_ACEOF
28533#define HAVE_SYS_IOCTL_H 1
28534_ACEOF
28535
28536fi
28537
28538done
28539
28540    ;;
28541esac
28542for ac_header in sys/ipc.h sys/lock.h sys/mman.h
28543do :
28544  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28545ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28547  cat >>confdefs.h <<_ACEOF
28548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28549_ACEOF
28550
28551fi
28552
28553done
28554
28555# HMS: Check sys/proc.h and sys/resource.h after some others
28556for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
28557do :
28558  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28561  cat >>confdefs.h <<_ACEOF
28562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28563_ACEOF
28564
28565fi
28566
28567done
28568
28569case "$ac_cv_header_sched_h" in
28570 yes)
28571    ;;
28572 *)
28573    for ac_header in sys/sched.h
28574do :
28575  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
28576if test "x$ac_cv_header_sys_sched_h" = xyes; then :
28577  cat >>confdefs.h <<_ACEOF
28578#define HAVE_SYS_SCHED_H 1
28579_ACEOF
28580
28581fi
28582
28583done
28584
28585    ;;
28586esac
28587# HMS: Check sys/shm.h after some others
28588for ac_header in sys/select.h sys/signal.h sys/sockio.h
28589do :
28590  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28591ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28593  cat >>confdefs.h <<_ACEOF
28594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28595_ACEOF
28596
28597fi
28598
28599done
28600
28601# HMS: Checked sys/socket.h earlier
28602case "$host" in
28603 *-*-netbsd*)
28604    ;;
28605 *)
28606    for ac_header in machine/soundcard.h sys/soundcard.h
28607do :
28608  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28609ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28610if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28611  cat >>confdefs.h <<_ACEOF
28612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28613_ACEOF
28614
28615fi
28616
28617done
28618
28619    ;;
28620esac
28621for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
28622do :
28623  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28626  cat >>confdefs.h <<_ACEOF
28627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28628_ACEOF
28629
28630fi
28631
28632done
28633
28634for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
28635do :
28636  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28637ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28639  cat >>confdefs.h <<_ACEOF
28640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28641_ACEOF
28642
28643fi
28644
28645done
28646
28647case "$host" in
28648*-convex-*)
28649    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
28650do :
28651  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28652ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28653if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28654  cat >>confdefs.h <<_ACEOF
28655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28656_ACEOF
28657
28658fi
28659
28660done
28661
28662    ;;
28663*-*-bsdi*)
28664    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
28665do :
28666  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28667ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28669  cat >>confdefs.h <<_ACEOF
28670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28671_ACEOF
28672
28673fi
28674
28675done
28676
28677    ;;
28678esac
28679
28680case "$host" in
28681 *-*-solaris2.6)
28682    # Broken...
28683    ;;
28684 *)
28685    for ac_func in ntp_adjtime ntp_gettime
28686do :
28687  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28688ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28689if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28690  cat >>confdefs.h <<_ACEOF
28691#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28692_ACEOF
28693
28694fi
28695done
28696
28697    ;;
28698esac
28699
28700case "$host" in
28701 *-*-*linux*)
28702    case "$ac_cv_func_ntp_gettime" in
28703     yes)
28704	;;
28705     *)
28706	for ac_func in __ntp_gettime
28707do :
28708  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
28709if test "x$ac_cv_func___ntp_gettime" = xyes; then :
28710  cat >>confdefs.h <<_ACEOF
28711#define HAVE___NTP_GETTIME 1
28712_ACEOF
28713
28714fi
28715done
28716
28717	case "$ac_cv_func___ntp_gettime" in
28718	 yes)
28719
28720$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
28721
28722
28723$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
28724
28725	esac
28726	;;
28727    esac
28728    for ac_func in adjtimex
28729do :
28730  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
28731if test "x$ac_cv_func_adjtimex" = xyes; then :
28732  cat >>confdefs.h <<_ACEOF
28733#define HAVE_ADJTIMEX 1
28734_ACEOF
28735
28736fi
28737done
28738
28739    case "$ac_cv_func_adjtimex" in
28740     yes)
28741
28742$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
28743
28744
28745$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
28746
28747	have_adjtimex=1
28748	;;
28749     *)
28750	for ac_func in __adjtimex
28751do :
28752  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
28753if test "x$ac_cv_func___adjtimex" = xyes; then :
28754  cat >>confdefs.h <<_ACEOF
28755#define HAVE___ADJTIMEX 1
28756_ACEOF
28757
28758fi
28759done
28760
28761	case "$ac_cv_func___adjtimex" in
28762	 yes)
28763
28764$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
28765
28766
28767$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
28768
28769
28770$as_echo "#define adjtimex __adjtimex" >>confdefs.h
28771
28772
28773$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
28774
28775	    have_adjtimex=1
28776	esac
28777	;;
28778    esac
28779esac
28780case "$have_adjtimex" in
28781 '')
28782    # nlist stuff is only needed for tickadj.
28783    saved_LIBS="$LIBS"
28784    LIBS=
28785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
28786$as_echo_n "checking for library containing nlist... " >&6; }
28787if ${ac_cv_search_nlist+:} false; then :
28788  $as_echo_n "(cached) " >&6
28789else
28790  ac_func_search_save_LIBS=$LIBS
28791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28792/* end confdefs.h.  */
28793
28794/* Override any GCC internal prototype to avoid an error.
28795   Use char because int might match the return type of a GCC
28796   builtin and then its argument prototype would still apply.  */
28797#ifdef __cplusplus
28798extern "C"
28799#endif
28800char nlist ();
28801int
28802main ()
28803{
28804return nlist ();
28805  ;
28806  return 0;
28807}
28808_ACEOF
28809for ac_lib in '' elf ld mld; do
28810  if test -z "$ac_lib"; then
28811    ac_res="none required"
28812  else
28813    ac_res=-l$ac_lib
28814    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28815  fi
28816  if ac_fn_c_try_link "$LINENO"; then :
28817  ac_cv_search_nlist=$ac_res
28818fi
28819rm -f core conftest.err conftest.$ac_objext \
28820    conftest$ac_exeext
28821  if ${ac_cv_search_nlist+:} false; then :
28822  break
28823fi
28824done
28825if ${ac_cv_search_nlist+:} false; then :
28826
28827else
28828  ac_cv_search_nlist=no
28829fi
28830rm conftest.$ac_ext
28831LIBS=$ac_func_search_save_LIBS
28832fi
28833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
28834$as_echo "$ac_cv_search_nlist" >&6; }
28835ac_res=$ac_cv_search_nlist
28836if test "$ac_res" != no; then :
28837  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28838
28839fi
28840
28841    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
28842    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
28843$as_echo_n "checking for library containing kvm_open... " >&6; }
28844if ${ac_cv_search_kvm_open+:} false; then :
28845  $as_echo_n "(cached) " >&6
28846else
28847  ac_func_search_save_LIBS=$LIBS
28848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28849/* end confdefs.h.  */
28850
28851/* Override any GCC internal prototype to avoid an error.
28852   Use char because int might match the return type of a GCC
28853   builtin and then its argument prototype would still apply.  */
28854#ifdef __cplusplus
28855extern "C"
28856#endif
28857char kvm_open ();
28858int
28859main ()
28860{
28861return kvm_open ();
28862  ;
28863  return 0;
28864}
28865_ACEOF
28866for ac_lib in '' kvm; do
28867  if test -z "$ac_lib"; then
28868    ac_res="none required"
28869  else
28870    ac_res=-l$ac_lib
28871    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28872  fi
28873  if ac_fn_c_try_link "$LINENO"; then :
28874  ac_cv_search_kvm_open=$ac_res
28875fi
28876rm -f core conftest.err conftest.$ac_objext \
28877    conftest$ac_exeext
28878  if ${ac_cv_search_kvm_open+:} false; then :
28879  break
28880fi
28881done
28882if ${ac_cv_search_kvm_open+:} false; then :
28883
28884else
28885  ac_cv_search_kvm_open=no
28886fi
28887rm conftest.$ac_ext
28888LIBS=$ac_func_search_save_LIBS
28889fi
28890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
28891$as_echo "$ac_cv_search_kvm_open" >&6; }
28892ac_res=$ac_cv_search_kvm_open
28893if test "$ac_res" != no; then :
28894  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28895
28896fi
28897	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
28898    for ac_header in nlist.h sys/var.h
28899do :
28900  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28903  cat >>confdefs.h <<_ACEOF
28904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28905_ACEOF
28906
28907fi
28908
28909done
28910
28911    case "$ac_cv_header_nlist_h" in
28912     yes)
28913
28914$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
28915
28916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
28917$as_echo_n "checking for n_un in struct nlist... " >&6; }
28918if ${ntp_cv_struct_nlist_n_un+:} false; then :
28919  $as_echo_n "(cached) " >&6
28920else
28921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28922/* end confdefs.h.  */
28923
28924			#include <nlist.h>
28925
28926int
28927main ()
28928{
28929
28930			struct nlist n;
28931			n.n_un.n_name = 0;
28932
28933
28934  ;
28935  return 0;
28936}
28937		ntp_cv_struct_nlist_n_un=yes
28938_ACEOF
28939if ac_fn_c_try_compile "$LINENO"; then :
28940  ntp_cv_struct_nlist_n_un=no
28941
28942fi
28943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944
28945fi
28946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
28947$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
28948	case "$ntp_cv_struct_nlist_n_un" in
28949	 yes)
28950
28951$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
28952
28953	esac
28954    esac
28955
28956    LDADD_NLIST="$LIBS"
28957    LIBS="$saved_LIBS"
28958    { saved_LIBS=; unset saved_LIBS;}
28959esac
28960
28961for ac_header in sys/proc.h
28962do :
28963  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
28964    #ifdef HAVE_SYS_TYPES_H
28965    # include <sys/types.h>
28966    #endif
28967    #ifdef HAVE_SYS_TIME_H
28968    # include <sys/time.h>
28969    #endif
28970
28971"
28972if test "x$ac_cv_header_sys_proc_h" = xyes; then :
28973  cat >>confdefs.h <<_ACEOF
28974#define HAVE_SYS_PROC_H 1
28975_ACEOF
28976
28977fi
28978
28979done
28980
28981
28982for ac_header in sys/resource.h
28983do :
28984  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
28985    #ifdef HAVE_SYS_TIME_H
28986    # include <sys/time.h>
28987    #endif
28988
28989"
28990if test "x$ac_cv_header_sys_resource_h" = xyes; then :
28991  cat >>confdefs.h <<_ACEOF
28992#define HAVE_SYS_RESOURCE_H 1
28993_ACEOF
28994
28995fi
28996
28997done
28998
28999
29000for ac_header in sys/shm.h
29001do :
29002  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
29003    #ifdef HAVE_SYS_TYPES_H
29004    # include <sys/types.h>
29005    #endif
29006    #ifdef HAVE_SYS_IPC_H
29007    # include <sys/ipc.h>
29008    #endif
29009
29010"
29011if test "x$ac_cv_header_sys_shm_h" = xyes; then :
29012  cat >>confdefs.h <<_ACEOF
29013#define HAVE_SYS_SHM_H 1
29014_ACEOF
29015
29016fi
29017
29018done
29019
29020
29021for ac_header in sys/timex.h
29022do :
29023  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
29024    #ifdef HAVE_SYS_TIME_H
29025    # include <sys/time.h>
29026    #endif
29027
29028"
29029if test "x$ac_cv_header_sys_timex_h" = xyes; then :
29030  cat >>confdefs.h <<_ACEOF
29031#define HAVE_SYS_TIMEX_H 1
29032_ACEOF
29033
29034fi
29035
29036done
29037
29038
29039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29040$as_echo_n "checking return type of signal handlers... " >&6; }
29041if ${ac_cv_type_signal+:} false; then :
29042  $as_echo_n "(cached) " >&6
29043else
29044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29045/* end confdefs.h.  */
29046#include <sys/types.h>
29047#include <signal.h>
29048
29049int
29050main ()
29051{
29052return *(signal (0, 0)) (0) == 1;
29053  ;
29054  return 0;
29055}
29056_ACEOF
29057if ac_fn_c_try_compile "$LINENO"; then :
29058  ac_cv_type_signal=int
29059else
29060  ac_cv_type_signal=void
29061fi
29062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29063fi
29064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29065$as_echo "$ac_cv_type_signal" >&6; }
29066
29067cat >>confdefs.h <<_ACEOF
29068#define RETSIGTYPE $ac_cv_type_signal
29069_ACEOF
29070
29071
29072ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
29073if test "x$ac_cv_type_off_t" = xyes; then :
29074
29075else
29076
29077cat >>confdefs.h <<_ACEOF
29078#define off_t long int
29079_ACEOF
29080
29081fi
29082
29083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
29084$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
29085if ${ac_cv_struct_tm+:} false; then :
29086  $as_echo_n "(cached) " >&6
29087else
29088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29089/* end confdefs.h.  */
29090#include <sys/types.h>
29091#include <time.h>
29092
29093int
29094main ()
29095{
29096struct tm tm;
29097				     int *p = &tm.tm_sec;
29098				     return !p;
29099  ;
29100  return 0;
29101}
29102_ACEOF
29103if ac_fn_c_try_compile "$LINENO"; then :
29104  ac_cv_struct_tm=time.h
29105else
29106  ac_cv_struct_tm=sys/time.h
29107fi
29108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29109fi
29110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
29111$as_echo "$ac_cv_struct_tm" >&6; }
29112if test $ac_cv_struct_tm = sys/time.h; then
29113
29114$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
29115
29116fi
29117
29118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
29119$as_echo_n "checking for a fallback value for HZ... " >&6; }
29120if ${ntp_cv_default_hz+:} false; then :
29121  $as_echo_n "(cached) " >&6
29122else
29123
29124	ntp_cv_default_hz=100
29125	case "$host" in
29126	 alpha*-dec-osf4*|alpha*-dec-osf5*)
29127	    ntp_cv_default_hz=1024
29128	    ;;
29129	 mips-dec-ultrix4*)
29130	    ntp_cv_default_hz=256
29131	    ;;
29132	esac
29133
29134
29135fi
29136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
29137$as_echo "$ntp_cv_default_hz" >&6; }
29138
29139cat >>confdefs.h <<_ACEOF
29140#define DEFAULT_HZ $ntp_cv_default_hz
29141_ACEOF
29142
29143
29144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
29145$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
29146if ${ntp_cv_override_hz+:} false; then :
29147  $as_echo_n "(cached) " >&6
29148else
29149
29150	ntp_cv_override_hz=no
29151	case "$host" in
29152	 alpha*-dec-osf4*|alpha*-dec-osf5*)
29153	    ntp_cv_override_hz=yes
29154	    ;;
29155	 mips-dec-ultrix4*)
29156	    ntp_cv_override_hz=yes
29157	    ;;
29158	 *-*-freebsd*)
29159	    ntp_cv_override_hz=yes
29160	    ;;
29161	 *-*-sunos4*)
29162	    ntp_cv_override_hz=yes
29163	    ;;
29164	 *-*-kfreebsd*)
29165	    ntp_cv_override_hz=yes
29166	    ;;
29167	esac
29168
29169
29170fi
29171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
29172$as_echo "$ntp_cv_override_hz" >&6; }
29173case "$ntp_cv_override_hz" in
29174 yes)
29175
29176$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
29177
29178esac
29179
29180
29181
29182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
29183$as_echo_n "checking for struct rt_msghdr... " >&6; }
29184if ${ntp_cv_struct_rt_msghdr+:} false; then :
29185  $as_echo_n "(cached) " >&6
29186else
29187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29188/* end confdefs.h.  */
29189
29190		#include <sys/types.h>
29191		#include <sys/socket.h>
29192		#include <net/if.h>
29193		#include <net/route.h>
29194
29195int
29196main ()
29197{
29198
29199		struct rt_msghdr p;
29200
29201
29202  ;
29203  return 0;
29204}
29205_ACEOF
29206if ac_fn_c_try_compile "$LINENO"; then :
29207  ntp_cv_struct_rt_msghdr=yes
29208else
29209  ntp_cv_struct_rt_msghdr=no
29210
29211fi
29212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29213
29214fi
29215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
29216$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
29217
29218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
29219$as_echo_n "checking for struct rtattr... " >&6; }
29220if ${ntp_cv_rtattr+:} false; then :
29221  $as_echo_n "(cached) " >&6
29222else
29223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29224/* end confdefs.h.  */
29225
29226		#include <stddef.h>
29227		#include <sys/socket.h>
29228		#include <linux/rtnetlink.h>
29229
29230int
29231main ()
29232{
29233
29234		struct rtattr p;
29235
29236
29237  ;
29238  return 0;
29239}
29240_ACEOF
29241if ac_fn_c_try_compile "$LINENO"; then :
29242  ntp_cv_rtattr=yes
29243else
29244  ntp_cv_rtattr=no
29245
29246fi
29247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248
29249fi
29250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
29251$as_echo "$ntp_cv_rtattr" >&6; }
29252
29253case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
29254 *yes*)
29255
29256$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
29257
29258    case "$ntp_cv_rtattr" in
29259     yes)
29260
29261$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
29262
29263    esac
29264esac
29265
29266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
29267$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
29268if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
29269  $as_echo_n "(cached) " >&6
29270else
29271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29272/* end confdefs.h.  */
29273
29274		#include <signal.h>
29275
29276int
29277main ()
29278{
29279
29280		struct sigaction act;
29281		act.sa_sigaction = 0;
29282
29283
29284  ;
29285  return 0;
29286}
29287_ACEOF
29288if ac_fn_c_try_compile "$LINENO"; then :
29289  ntp_cv_struct_sigaction_has_sa_sigaction=yes
29290else
29291  ntp_cv_struct_sigaction_has_sa_sigaction=no
29292
29293fi
29294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29295
29296fi
29297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
29298$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
29299case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
29300 yes)
29301
29302$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
29303
29304esac
29305
29306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
29307$as_echo_n "checking for struct ppsclockev... " >&6; }
29308if ${ntp_cv_struct_ppsclockev+:} false; then :
29309  $as_echo_n "(cached) " >&6
29310else
29311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29312/* end confdefs.h.  */
29313
29314		#ifdef HAVE_SYS_TYPES_H
29315		# include <sys/types.h>
29316		#endif
29317		#ifdef HAVE_SYS_TERMIOS_H
29318		# include <sys/termios.h>
29319		#endif
29320		#ifdef HAVE_SYS_TIME_H
29321		# include <sys/time.h>
29322		#endif
29323		#ifdef HAVE_SYS_PPSCLOCK_H
29324		# include <sys/ppsclock.h>
29325		#endif
29326
29327int
29328main ()
29329{
29330
29331		extern struct ppsclockev *pce;
29332		return pce->serial;
29333
29334
29335  ;
29336  return 0;
29337}
29338_ACEOF
29339if ac_fn_c_try_compile "$LINENO"; then :
29340  ntp_cv_struct_ppsclockev=yes
29341else
29342  ntp_cv_struct_ppsclockev=no
29343
29344fi
29345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29346
29347fi
29348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
29349$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
29350case "$ntp_cv_struct_ppsclockev" in
29351 yes)
29352
29353$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
29354
29355esac
29356
29357case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
29358  *yes*)
29359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
29360$as_echo_n "checking for struct snd_size... " >&6; }
29361if ${ntp_cv_struct_snd_size+:} false; then :
29362  $as_echo_n "(cached) " >&6
29363else
29364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29365/* end confdefs.h.  */
29366
29367		    #ifdef HAVE_MACHINE_SOUNDCARD_H
29368		    # include <machine/soundcard.h>
29369		    #endif
29370		    #ifdef HAVE_SYS_SOUNDCARD_H
29371		    # include <sys/soundcard.h>
29372		    #endif
29373
29374int
29375main ()
29376{
29377
29378		    extern struct snd_size *ss;
29379		    return ss->rec_size;
29380
29381
29382  ;
29383  return 0;
29384}
29385_ACEOF
29386if ac_fn_c_try_compile "$LINENO"; then :
29387  ntp_cv_struct_snd_size=yes
29388else
29389  ntp_cv_struct_snd_size=no
29390
29391fi
29392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29393
29394fi
29395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
29396$as_echo "$ntp_cv_struct_snd_size" >&6; }
29397    case "$ntp_cv_struct_snd_size" in
29398     yes)
29399
29400$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
29401
29402    esac
29403esac
29404
29405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
29406$as_echo_n "checking struct clockinfo for hz... " >&6; }
29407if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
29408  $as_echo_n "(cached) " >&6
29409else
29410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29411/* end confdefs.h.  */
29412
29413		#include <sys/time.h>
29414
29415int
29416main ()
29417{
29418
29419		extern struct clockinfo *pc;
29420		return pc->hz;
29421
29422
29423  ;
29424  return 0;
29425}
29426_ACEOF
29427if ac_fn_c_try_compile "$LINENO"; then :
29428  ntp_cv_struct_clockinfo_has_hz=yes
29429else
29430  ntp_cv_struct_clockinfo_has_hz=no
29431
29432fi
29433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434
29435fi
29436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
29437$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
29438case "$ntp_cv_struct_clockinfo_has_hz" in
29439 yes)
29440
29441$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
29442
29443esac
29444
29445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
29446$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
29447if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
29448  $as_echo_n "(cached) " >&6
29449else
29450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29451/* end confdefs.h.  */
29452
29453		#include <sys/time.h>
29454
29455int
29456main ()
29457{
29458
29459		extern struct clockinfo *pc;
29460		return pc->tickadj;
29461
29462
29463  ;
29464  return 0;
29465}
29466_ACEOF
29467if ac_fn_c_try_compile "$LINENO"; then :
29468  ntp_cv_struct_clockinfo_has_hz=yes
29469else
29470  ntp_cv_struct_clockinfo_has_hz=no
29471
29472fi
29473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29474
29475fi
29476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
29477$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
29478case "$ntp_cv_struct_clockinfo_has_hz" in
29479 yes)
29480
29481$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
29482
29483esac
29484
29485case "$ntp_cv_struct_ntptimeval" in
29486 yes)
29487    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
29488	    #ifdef HAVE_SYS_TIME_H
29489	    # include <sys/time.h>
29490	    #else
29491	    # ifdef HAVE_TIME_H
29492	    #  include <time.h>
29493	    # endif
29494	    #endif
29495	    #ifdef HAVE_SYS_TIMEX_H
29496	    # include <sys/timex.h>
29497	    #else
29498	    # ifdef HAVE_TIMEX_H
29499	    #  include <timex.h>
29500	    # endif
29501	    #endif
29502
29503
29504"
29505if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
29506
29507cat >>confdefs.h <<_ACEOF
29508#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
29509_ACEOF
29510
29511
29512fi
29513
29514esac
29515
29516####
29517
29518saved_LIBS="$LIBS"
29519LIBS="$LIBS $LDADD_LIBNTP"
29520for ac_func in daemon
29521do :
29522  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
29523if test "x$ac_cv_func_daemon" = xyes; then :
29524  cat >>confdefs.h <<_ACEOF
29525#define HAVE_DAEMON 1
29526_ACEOF
29527
29528fi
29529done
29530
29531# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
29532LIBS="$saved_LIBS"
29533{ saved_LIBS=; unset saved_LIBS;}
29534
29535for ac_func in finite
29536do :
29537  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
29538if test "x$ac_cv_func_finite" = xyes; then :
29539  cat >>confdefs.h <<_ACEOF
29540#define HAVE_FINITE 1
29541_ACEOF
29542
29543else
29544  for ac_func in isfinite
29545do :
29546  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
29547if test "x$ac_cv_func_isfinite" = xyes; then :
29548  cat >>confdefs.h <<_ACEOF
29549#define HAVE_ISFINITE 1
29550_ACEOF
29551
29552else
29553
29554	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
29555$as_echo_n "checking for isfinite with <math.h>... " >&6; }
29556	    _libs=$LIBS
29557	    # XXX
29558	    LIBS="$LIBS -lm"
29559	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29560/* end confdefs.h.  */
29561
29562			#include <math.h>
29563
29564int
29565main ()
29566{
29567
29568			float f = 0.0;
29569			isfinite(f);
29570
29571
29572  ;
29573  return 0;
29574}
29575_ACEOF
29576if ac_fn_c_try_link "$LINENO"; then :
29577  ans=yes
29578else
29579  ans=no
29580
29581fi
29582rm -f core conftest.err conftest.$ac_objext \
29583    conftest$ac_exeext conftest.$ac_ext
29584	    LIBS=$_libs
29585	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
29586$as_echo "$ans" >&6; }
29587	    case "$ans" in
29588	     yes)
29589		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
29590
29591	    esac
29592
29593
29594fi
29595done
29596
29597
29598fi
29599done
29600
29601
29602for ac_func in getbootfile getuid getrusage nanosleep strsignal
29603do :
29604  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29606if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29607  cat >>confdefs.h <<_ACEOF
29608#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29609_ACEOF
29610
29611fi
29612done
29613
29614
29615# kvm_open() is only used by tickadj.  Also see above.
29616case "$ac_cv_header_kvm_h" in
29617 yes)
29618    for ac_func in kvm_open
29619do :
29620  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
29621if test "x$ac_cv_func_kvm_open" = xyes; then :
29622  cat >>confdefs.h <<_ACEOF
29623#define HAVE_KVM_OPEN 1
29624_ACEOF
29625
29626fi
29627done
29628
29629    ;;
29630esac
29631
29632case "$host" in
29633 *-*-sco3.2v5.0.*)
29634    # Just stubs.  Sigh.
29635    ;;
29636 *) for ac_func in mkstemp
29637do :
29638  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
29639if test "x$ac_cv_func_mkstemp" = xyes; then :
29640  cat >>confdefs.h <<_ACEOF
29641#define HAVE_MKSTEMP 1
29642_ACEOF
29643
29644fi
29645done
29646
29647    ;;
29648esac
29649for ac_func in mktime
29650do :
29651  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
29652if test "x$ac_cv_func_mktime" = xyes; then :
29653  cat >>confdefs.h <<_ACEOF
29654#define HAVE_MKTIME 1
29655_ACEOF
29656
29657fi
29658done
29659
29660case "$host" in
29661 *-*-aix[4-9]*)
29662    # XXX only verified thru AIX6.
29663    # Just a stub.  Sigh.
29664    ;;
29665 *-*-irix[45]*)
29666    # Just a stub in "old" Irix.  Sigh.
29667    ;;
29668# In the belief that the fix for bug 1223 fixes mlockall() under linux...
29669# *-*-*linux*)
29670#    # there, but more trouble than it is worth for now (resolver problems)
29671#    ;;
29672 *-*-qnx*)
29673    # Apparently there but not working in QNX.  Sigh?
29674    ;;
29675 *-*-sco3.2v5.0.*)
29676    # Just a stub.  Sigh.
29677    ;;
29678 alpha*-dec-osf4*|alpha*-dec-osf5*)
29679    # mlockall is there, as a #define calling memlk via <sys/mman.h>
29680    # Not easy to test for - cheat.
29681    for ac_func in memlk
29682do :
29683  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
29684if test "x$ac_cv_func_memlk" = xyes; then :
29685  cat >>confdefs.h <<_ACEOF
29686#define HAVE_MEMLK 1
29687_ACEOF
29688 ac_cv_func_mlockall=yes
29689fi
29690done
29691
29692    for ac_func in mlockall
29693do :
29694  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
29695if test "x$ac_cv_func_mlockall" = xyes; then :
29696  cat >>confdefs.h <<_ACEOF
29697#define HAVE_MLOCKALL 1
29698_ACEOF
29699
29700fi
29701done
29702
29703    ;;
29704 *) for ac_func in mlockall
29705do :
29706  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
29707if test "x$ac_cv_func_mlockall" = xyes; then :
29708  cat >>confdefs.h <<_ACEOF
29709#define HAVE_MLOCKALL 1
29710_ACEOF
29711
29712fi
29713done
29714
29715    ;;
29716esac
29717for ac_func in nice plock pututline pututxline readlink rtprio
29718do :
29719  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29720ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29721if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29722  cat >>confdefs.h <<_ACEOF
29723#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29724_ACEOF
29725
29726fi
29727done
29728
29729case "$host" in
29730 *-*-aix[4-9]*)
29731    # XXX only verified thru AIX6.
29732    # Just a stub in AIX 4.  Sigh.
29733    ;;
29734 *-*-solaris2.5*)
29735    # Just stubs in solaris2.5.  Sigh.
29736    ;;
29737 *) for ac_func in sched_setscheduler
29738do :
29739  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
29740if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
29741  cat >>confdefs.h <<_ACEOF
29742#define HAVE_SCHED_SETSCHEDULER 1
29743_ACEOF
29744
29745fi
29746done
29747
29748    ;;
29749esac
29750for ac_func in setlinebuf setpgid setpriority setsid setvbuf
29751do :
29752  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29754if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29755  cat >>confdefs.h <<_ACEOF
29756#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29757_ACEOF
29758
29759fi
29760done
29761
29762for ac_func in strdup strerror setrlimit strchr
29763do :
29764  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29765ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29766if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29767  cat >>confdefs.h <<_ACEOF
29768#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29769_ACEOF
29770
29771fi
29772done
29773
29774case "$host" in
29775 *-*-aix[4-9]*)
29776    # XXX only verified thru AIX6.
29777    # Just stubs.  Sigh.
29778    ;;
29779 *-*-netbsd1*)
29780    # Just stubs.  Sigh.
29781    ;;
29782 *-*-netbsdelf1*)
29783    # Just stubs.  Sigh.
29784    ;;
29785 *-*-openbsd*)
29786    # Just stubs.  Sigh.
29787    ;;
29788 *)
29789    for ac_func in timer_create
29790do :
29791  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
29792if test "x$ac_cv_func_timer_create" = xyes; then :
29793  cat >>confdefs.h <<_ACEOF
29794#define HAVE_TIMER_CREATE 1
29795_ACEOF
29796
29797fi
29798done
29799
29800    ;;
29801esac
29802
29803
29804
29805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
29806$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
29807if ${ntp_cv_rlimit_memlock+:} false; then :
29808  $as_echo_n "(cached) " >&6
29809else
29810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29811/* end confdefs.h.  */
29812
29813		#ifdef HAVE_SYS_TYPES_H
29814		# include <sys/types.h>
29815		#endif
29816		#ifdef HAVE_SYS_TIME_H
29817		# include <sys/time.h>
29818		#endif
29819		#ifdef HAVE_SYS_RESOURCE_H
29820		# include <sys/resource.h>
29821		#endif
29822
29823int
29824main ()
29825{
29826
29827		getrlimit(RLIMIT_MEMLOCK, 0);
29828
29829
29830  ;
29831  return 0;
29832}
29833_ACEOF
29834if ac_fn_c_try_compile "$LINENO"; then :
29835  ntp_cv_rlimit_memlock=yes
29836else
29837  ntp_cv_rlimit_memlock=no
29838
29839fi
29840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29841
29842fi
29843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
29844$as_echo "$ntp_cv_rlimit_memlock" >&6; }
29845case "$ntp_cv_rlimit_memlock" in
29846 yes)
29847
29848    HAVE_RLIMIT_MEMLOCK=" memlock 32"
29849esac
29850
29851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
29852$as_echo_n "checking for RLIMIT_STACK... " >&6; }
29853if ${ntp_cv_rlimit_stack+:} false; then :
29854  $as_echo_n "(cached) " >&6
29855else
29856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29857/* end confdefs.h.  */
29858
29859		#ifdef HAVE_SYS_TYPES_H
29860		# include <sys/types.h>
29861		#endif
29862		#ifdef HAVE_SYS_TIME_H
29863		# include <sys/time.h>
29864		#endif
29865		#ifdef HAVE_SYS_RESOURCE_H
29866		# include <sys/resource.h>
29867		#endif
29868
29869int
29870main ()
29871{
29872
29873		getrlimit(RLIMIT_STACK, 0);
29874
29875
29876  ;
29877  return 0;
29878}
29879_ACEOF
29880if ac_fn_c_try_compile "$LINENO"; then :
29881  ntp_cv_rlimit_stack=yes
29882else
29883  ntp_cv_rlimit_stack=no
29884
29885fi
29886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29887
29888fi
29889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
29890$as_echo "$ntp_cv_rlimit_stack" >&6; }
29891case "$ntp_cv_rlimit_stack" in
29892 yes)
29893
29894    HAVE_RLIMIT_STACK=" stacksize 50"
29895esac
29896
29897
29898
29899# HMS: Only if we are doing the MLOCKALL stuff...
29900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
29901$as_echo_n "checking for the default number of 4k stack pages... " >&6; }
29902
29903# Check whether --with-stack-limit was given.
29904if test "${with_stack_limit+set}" = set; then :
29905  withval=$with_stack_limit; ans=$withval
29906else
29907  ans=yes
29908
29909fi
29910
29911case "$ans" in
29912 yes | no)
29913    case "$host" in
29914     *-*-openbsd*)
29915	ans=200
29916	;;
29917     *) ans=50
29918        ;;
29919    esac
29920    ;;
29921 [1-9][0-9]*)
29922    ;;
29923 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
29924    ;;
29925esac
29926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
29927$as_echo "$ans" >&6; }
29928
29929cat >>confdefs.h <<_ACEOF
29930#define DFLT_RLIMIT_STACK $ans
29931_ACEOF
29932
29933
29934# HMS: only if we have RLIMIT_MEMLOCK
29935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
29936$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
29937
29938# Check whether --with-memlock was given.
29939if test "${with_memlock+set}" = set; then :
29940  withval=$with_memlock; ans=$withval
29941else
29942  ans=yes
29943
29944fi
29945
29946case "$ans" in
29947 yes | no)
29948    ans=32
29949    ;;
29950 [1-9][0-9]*) ;;
29951 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
29952     ;;
29953esac
29954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
29955$as_echo "$ans" >&6; }
29956
29957cat >>confdefs.h <<_ACEOF
29958#define DFLT_RLIMIT_MEMLOCK $ans
29959_ACEOF
29960
29961
29962
29963# some OSes prefer _exit() in forked children to exit()
29964for ac_func in _exit
29965do :
29966  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
29967if test "x$ac_cv_func__exit" = xyes; then :
29968  cat >>confdefs.h <<_ACEOF
29969#define HAVE__EXIT 1
29970_ACEOF
29971
29972fi
29973done
29974
29975ntp_worker_child_exit=exit
29976case "$ac_cv_func__exit::$host_os" in
29977 yes::netbsd*)
29978    ntp_worker_child_exit=_exit
29979    ;;
29980 yes::openbsd*)
29981    ntp_worker_child_exit=_exit
29982    ;;
29983esac
29984
29985cat >>confdefs.h <<_ACEOF
29986#define WORKER_CHILD_EXIT $ntp_worker_child_exit
29987_ACEOF
29988
29989
29990for ac_func in umask uname updwtmp updwtmpx
29991do :
29992  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29993ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29994if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29995  cat >>confdefs.h <<_ACEOF
29996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29997_ACEOF
29998
29999fi
30000done
30001
30002
30003###
30004
30005# http://bugs.ntp.org/737
30006case "$ac_cv_func_recvmsg" in
30007 yes)
30008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
30009$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
30010if ${ntp_cv_struct_iovec_help+:} false; then :
30011  $as_echo_n "(cached) " >&6
30012else
30013
30014	    compiled=no
30015	    for ntp_cv_struct_iovec_help in '0' '1'; do
30016		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30017/* end confdefs.h.  */
30018
30019			    #ifdef HAVE_SYS_TYPES_H
30020			    # include <sys/types.h>
30021			    #endif
30022			    #ifdef HAVE_SYS_SOCKET_H
30023			    # include <sys/socket.h>
30024			    #endif
30025			    #if $ntp_cv_struct_iovec_help
30026			    # include <sys/uio.h>
30027			    #endif
30028
30029int
30030main ()
30031{
30032
30033			    void foo(void) {
30034				ssize_t x;
30035				int s = 0;
30036				struct iovec iov;
30037				struct msghdr mh;
30038				int flags = 0;
30039
30040				mh.msg_iov = &iov;
30041				x = recvmsg(s, &mh, flags);
30042			    }
30043
30044
30045  ;
30046  return 0;
30047}
30048_ACEOF
30049if ac_fn_c_try_compile "$LINENO"; then :
30050  compiled=yes ; break 1
30051fi
30052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30053	    done
30054	    case "$compiled" in
30055	     no)
30056		ntp_cv_struct_iovec_help=0
30057	    esac
30058	    { compiled=; unset compiled;}
30059
30060
30061fi
30062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
30063$as_echo "$ntp_cv_struct_iovec_help" >&6; }
30064    case "$ntp_cv_struct_iovec_help" in
30065     1)
30066
30067$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
30068
30069    esac
30070esac
30071
30072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
30073$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
30074if ${ntp_cv_func_setpgrp_nargs+:} false; then :
30075  $as_echo_n "(cached) " >&6
30076else
30077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078/* end confdefs.h.  */
30079
30080		#ifdef HAVE_SYS_TYPES_H
30081		# include <sys/types.h>
30082		#endif
30083		#ifdef HAVE_UNISTD_H
30084		# include <unistd.h>
30085		#endif
30086
30087int
30088main ()
30089{
30090
30091		setpgrp(0, 0);
30092
30093
30094  ;
30095  return 0;
30096}
30097_ACEOF
30098if ac_fn_c_try_compile "$LINENO"; then :
30099  ntp_cv_func_setpgrp_nargs=2
30100else
30101  ntp_cv_func_setpgrp_nargs=0
30102
30103fi
30104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30105
30106fi
30107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
30108$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
30109case "$ntp_cv_func_setpgrp_nargs" in
30110 0)
30111
30112$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
30113
30114esac
30115
30116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
30117$as_echo_n "checking if we need to declare 'errno'... " >&6; }
30118if ${ntp_cv_decl_errno+:} false; then :
30119  $as_echo_n "(cached) " >&6
30120else
30121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30122/* end confdefs.h.  */
30123
30124		#ifdef HAVE_ERRNO_H
30125		# include <errno.h>
30126		#endif
30127
30128int
30129main ()
30130{
30131
30132		errno = 0;
30133
30134
30135  ;
30136  return 0;
30137}
30138_ACEOF
30139if ac_fn_c_try_compile "$LINENO"; then :
30140  ntp_cv_decl_errno=no
30141else
30142  ntp_cv_decl_errno=yes
30143
30144fi
30145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146
30147fi
30148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
30149$as_echo "$ntp_cv_decl_errno" >&6; }
30150case "$ntp_cv_decl_errno" in
30151 yes)
30152
30153$as_echo "#define DECL_ERRNO 1" >>confdefs.h
30154
30155esac
30156
30157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
30158$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
30159if ${ntp_cv_decl_h_errno+:} false; then :
30160  $as_echo_n "(cached) " >&6
30161else
30162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163/* end confdefs.h.  */
30164
30165		#include <sys/types.h>
30166		#ifdef HAVE_NETINET_IN_H
30167		# include <netinet/in.h>
30168		#endif
30169		#ifdef HAVE_ARPA_NAMESER_H
30170		# include <arpa/nameser.h>
30171		#endif
30172		#ifdef HAVE_NETDB_H
30173		# include <netdb.h>
30174		#endif
30175		#ifdef HAVE_RESOLV_H
30176		# include <resolv.h>
30177		#endif
30178
30179int
30180main ()
30181{
30182
30183		extern int h_errno;
30184
30185
30186  ;
30187  return 0;
30188}
30189_ACEOF
30190if ac_fn_c_try_compile "$LINENO"; then :
30191  ntp_cv_decl_h_errno=yes
30192else
30193  ntp_cv_decl_h_errno=no
30194
30195fi
30196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30197
30198fi
30199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
30200$as_echo "$ntp_cv_decl_h_errno" >&6; }
30201case "$ntp_cv_decl_h_errno" in
30202 yes)
30203
30204$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
30205
30206esac
30207
30208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
30209$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
30210if ${ntp_cv_decl_syscall+:} false; then :
30211  $as_echo_n "(cached) " >&6
30212else
30213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30214/* end confdefs.h.  */
30215
30216		#ifdef HAVE_SYS_TYPES_H
30217		# include <sys/types.h>
30218		#endif
30219		#ifdef HAVE_UNISTD_H
30220		# include <unistd.h>
30221		#endif
30222
30223int
30224main ()
30225{
30226
30227		extern int syscall (int, ...);
30228
30229
30230  ;
30231  return 0;
30232}
30233	ntp_cv_decl_syscall=yes
30234_ACEOF
30235if ac_fn_c_try_compile "$LINENO"; then :
30236  ntp_cv_decl_syscall=no
30237
30238fi
30239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30240
30241fi
30242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
30243$as_echo "$ntp_cv_decl_syscall" >&6; }
30244case "$ntp_cv_decl_syscall" in
30245 yes)
30246
30247$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
30248
30249esac
30250
30251case "$host" in
30252 *-*-aix4.3.*)
30253
30254$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
30255		# Needed for XLC under AIX 4.3.2
30256    ;;
30257 *-*-mpeix*)
30258
30259$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
30260
30261
30262$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
30263
30264
30265$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
30266
30267
30268$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
30269
30270
30271$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
30272
30273
30274$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
30275
30276
30277$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
30278
30279    ;;
30280 *-*-osf[45]*)
30281
30282$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
30283
30284
30285$as_echo "#define DECL_STIME_1 1" >>confdefs.h
30286
30287    ;;
30288 *-*-qnx*)
30289
30290$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
30291
30292    ;;
30293 *-*-riscos4*)
30294
30295$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
30296
30297
30298$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
30299
30300
30301$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
30302
30303
30304$as_echo "#define DECL_IPC_0 1" >>confdefs.h
30305
30306
30307$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
30308
30309
30310$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
30311
30312
30313$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
30314
30315
30316$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
30317
30318
30319$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
30320
30321
30322$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
30323
30324
30325$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
30326
30327
30328$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
30329
30330
30331$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
30332
30333
30334$as_echo "#define DECL_TIME_0 1" >>confdefs.h
30335
30336
30337$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
30338
30339
30340$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
30341
30342    ;;
30343 *-*-solaris2*)
30344
30345$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
30346
30347
30348$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
30349
30350    case "$host" in
30351     *-*-solaris2.4)
30352
30353$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
30354
30355	;;
30356    esac
30357    ;;
30358 *-*-sunos4*)
30359
30360$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
30361
30362
30363$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
30364
30365
30366$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
30367
30368
30369$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
30370
30371
30372$as_echo "#define DECL_IPC_0 1" >>confdefs.h
30373
30374
30375$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
30376
30377
30378$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
30379
30380
30381$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
30382
30383
30384$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
30385
30386
30387$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
30388
30389
30390$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
30391
30392
30393$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
30394
30395
30396$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
30397
30398    case "`basename $ac_cv_prog_CC`" in
30399     acc*) ;;
30400     *)
30401$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
30402
30403	;;
30404    esac
30405
30406$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
30407
30408
30409$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
30410
30411
30412$as_echo "#define DECL_TIME_0 1" >>confdefs.h
30413
30414
30415$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
30416
30417
30418$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
30419
30420
30421$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
30422
30423
30424$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
30425
30426    ;;
30427 *-*-ultrix4*)
30428
30429$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
30430
30431
30432$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
30433
30434
30435$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
30436
30437
30438$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
30439
30440
30441$as_echo "#define DECL_IPC_0 1" >>confdefs.h
30442
30443
30444$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
30445
30446
30447$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
30448
30449
30450$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
30451
30452
30453$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
30454
30455
30456$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
30457
30458
30459$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
30460
30461
30462$as_echo "#define DECL_STIME_0 1" >>confdefs.h
30463
30464
30465$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
30466
30467
30468$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
30469
30470    ;;
30471esac
30472
30473case "$host" in
30474 *-*-sco3.2*)
30475
30476$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
30477
30478    ;;
30479esac
30480
30481case "$host" in
30482 *-*-hpux[567]*)
30483
30484$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
30485
30486esac
30487
30488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
30489$as_echo_n "checking if we will open the broadcast socket... " >&6; }
30490if ${ntp_cv_var_open_bcast_socket+:} false; then :
30491  $as_echo_n "(cached) " >&6
30492else
30493
30494	ans=yes
30495	case "$host" in
30496	 *-*-domainos)
30497	    ans=no
30498	esac
30499	ntp_cv_var_open_bcast_socket=$ans
30500
30501
30502fi
30503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
30504$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
30505case "$ntp_cv_var_open_bcast_socket" in
30506 yes)
30507
30508$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
30509
30510esac
30511
30512case "$host" in
30513 *-*-hpux*)
30514
30515$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
30516
30517esac
30518
30519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
30520$as_echo_n "checking if process groups are set with -pid... " >&6; }
30521if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
30522  $as_echo_n "(cached) " >&6
30523else
30524
30525	case "$host" in
30526	 *-*-hpux[567]*)
30527	    ans=no
30528	    ;;
30529	 *-*-hpux*)
30530	    ans=yes
30531	    ;;
30532	 *-*-*linux*)
30533	    ans=yes
30534	    ;;
30535	 *-*-sunos3*)
30536	    ans=yes
30537	    ;;
30538	 *-*-ultrix2*)
30539	    ans=yes
30540	    ;;
30541	 *)
30542	    ans=no
30543	    ;;
30544	esac
30545	ntp_cv_arg_setpgrp_negpid=$ans
30546
30547
30548fi
30549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
30550$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
30551case "$ntp_cv_arg_setpgrp_negpid" in
30552 yes)
30553
30554$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
30555
30556esac
30557
30558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
30559$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
30560if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
30561  $as_echo_n "(cached) " >&6
30562else
30563
30564	case "$host" in
30565	 *-*-bsdi[23]*)
30566	    ans=yes
30567	    ;;
30568	 *-*-freebsd*)
30569	    ans=yes
30570	    ;;
30571	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
30572	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
30573	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
30574	# in $host may be followed by "aout", "ecoff", or "elf".
30575	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
30576	    ans=yes
30577	    ;;
30578	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
30579	    ans=yes
30580	    ;;
30581	 *-*-openbsd*)
30582	    ans=yes
30583	    ;;
30584	 *-*-osf*)
30585	    ans=yes
30586	    ;;
30587	 *-*-darwin*)
30588	    ans=yes
30589	    ;;
30590	 *)
30591	    ans=no
30592	    ;;
30593	esac
30594	ntp_cv_func_ctty_for_f_setown=$ans
30595
30596
30597fi
30598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
30599$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
30600case "$ntp_cv_func_ctty_for_f_setown" in
30601 yes)
30602
30603$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
30604
30605esac
30606
30607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
30608$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
30609if ${ntp_cv_os_routeupdates+:} false; then :
30610  $as_echo_n "(cached) " >&6
30611else
30612
30613	case "$host" in
30614	 *-*-netbsd*)
30615	    ans=yes
30616	    ;;
30617	 *)
30618	    ans=no
30619	    ;;
30620	esac
30621	ntp_cv_os_routeupdates=$ans
30622
30623
30624fi
30625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
30626$as_echo "$ntp_cv_os_routeupdates" >&6; }
30627case "$ntp_cv_os_routeupdates" in
30628 yes)
30629
30630$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
30631
30632esac
30633
30634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
30635$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
30636if ${ntp_cv_os_wildcardreuse+:} false; then :
30637  $as_echo_n "(cached) " >&6
30638else
30639
30640	case "$host" in
30641	 *-*-*linux*)
30642	    ans=yes
30643	    ;;
30644	 *) ans=no
30645	    ;;
30646	esac
30647	ntp_cv_os_wildcardreuse=$ans
30648
30649
30650fi
30651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
30652$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
30653case "$ntp_cv_os_wildcardreuse" in
30654 yes)
30655
30656$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
30657
30658esac
30659
30660case "$host" in
30661 *-*-aix*)
30662
30663$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
30664
30665esac
30666
30667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
30668$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
30669if ${ntp_cv_var_min_rec_tickadj+:} false; then :
30670  $as_echo_n "(cached) " >&6
30671else
30672
30673	ans=no
30674	case "$host" in
30675	 *-*-aix*)
30676	    ans=40
30677	    ;;
30678	esac
30679	ntp_cv_var_min_rec_tickadj=$ans
30680
30681
30682fi
30683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
30684$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
30685case "$ntp_cv_var_min_rec_tickadj" in
30686 ''|no)
30687    ;;
30688 *)
30689
30690cat >>confdefs.h <<_ACEOF
30691#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
30692_ACEOF
30693
30694esac
30695
30696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
30697$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
30698if ${ntp_cv_no_parenb_ignpar+:} false; then :
30699  $as_echo_n "(cached) " >&6
30700else
30701
30702	ans=no
30703	case "$host" in
30704	 i?86-*-*linux*)
30705	    ans=yes
30706	    ;;
30707	 mips-sgi-irix*)
30708	    ans=yes
30709	    ;;
30710	 i?86-*-freebsd[123].*)
30711	    ;;
30712	 i?86-*-freebsd*)
30713	    ans=yes
30714	    ;;
30715	 *-*-unicosmp*)
30716	    ans=yes
30717	    ;;
30718	esac
30719	ntp_cv_no_parenb_ignpar=$ans
30720
30721
30722fi
30723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
30724$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
30725case "$ntp_cv_no_parenb_ignpar" in
30726 yes)
30727
30728$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
30729
30730esac
30731
30732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
30733$as_echo_n "checking if we're including processing time debugging code... " >&6; }
30734# Check whether --enable-debug-timing was given.
30735if test "${enable_debug_timing+set}" = set; then :
30736  enableval=$enable_debug_timing; ntp_ok=$enableval
30737else
30738  ntp_ok=no
30739
30740fi
30741
30742case "$ntp_ok" in
30743 yes)
30744
30745$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
30746
30747esac
30748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30749$as_echo "$ntp_ok" >&6; }
30750
30751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
30752$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
30753# Check whether --enable-dst-minutes was given.
30754if test "${enable_dst_minutes+set}" = set; then :
30755  enableval=$enable_dst_minutes; ans=$enableval
30756else
30757  ans=60
30758
30759fi
30760
30761
30762cat >>confdefs.h <<_ACEOF
30763#define DSTMINUTES $ans
30764_ACEOF
30765
30766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30767$as_echo "$ans" >&6; }
30768
30769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
30770$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
30771# Check whether --enable-ignore-dns-errors was given.
30772if test "${enable_ignore_dns_errors+set}" = set; then :
30773  enableval=$enable_ignore_dns_errors; ans=$enableval
30774else
30775  ans=no
30776
30777fi
30778
30779case "$ans" in
30780 yes)
30781
30782$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
30783
30784esac
30785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30786$as_echo "$ans" >&6; }
30787
30788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
30789$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
30790if ${ntp_cv_var_ntp_syscalls+:} false; then :
30791  $as_echo_n "(cached) " >&6
30792else
30793
30794	ntp_cv_var_ntp_syscalls=no
30795	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
30796	 yesyes*)
30797	    ntp_cv_var_ntp_syscalls=libc
30798	    ;;
30799	 *yes)
30800	    ntp_cv_var_ntp_syscalls=inline
30801	    ;;
30802	 *)
30803	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804/* end confdefs.h.  */
30805
30806		    #include <sys/syscall.h>
30807
30808		    #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
30809			yes
30810		    #endif
30811
30812_ACEOF
30813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30814  $EGREP "yes" >/dev/null 2>&1; then :
30815  ntp_cv_var_ntp_syscalls=kernel
30816
30817fi
30818rm -f conftest*
30819
30820	    ;;
30821	 esac
30822
30823
30824fi
30825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
30826$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
30827case "$ntp_cv_var_ntp_syscalls" in
30828 libc)
30829
30830$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
30831
30832    ;;
30833 kernel)
30834
30835$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
30836
30837    ;;
30838esac
30839
30840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
30841$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
30842if ${ntp_cv_var_sta_fll+:} false; then :
30843  $as_echo_n "(cached) " >&6
30844else
30845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30846/* end confdefs.h.  */
30847
30848	    #include <sys/timex.h>
30849
30850	    #ifdef STA_FLL
30851		yes
30852	    #endif
30853
30854_ACEOF
30855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30856  $EGREP "yes" >/dev/null 2>&1; then :
30857  ntp_cv_var_sta_fll=yes
30858else
30859  ntp_cv_var_sta_fll=no
30860
30861fi
30862rm -f conftest*
30863
30864
30865fi
30866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
30867$as_echo "$ntp_cv_var_sta_fll" >&6; }
30868
30869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
30870$as_echo_n "checking if we have kernel PLL support... " >&6; }
30871if ${ntp_cv_var_kernel_pll+:} false; then :
30872  $as_echo_n "(cached) " >&6
30873else
30874  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
30875	 *no*)
30876	    ntp_cv_var_kernel_pll=no
30877	    ;;
30878	 *) ntp_cv_var_kernel_pll=yes
30879	    ;;
30880	esac
30881
30882
30883fi
30884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
30885$as_echo "$ntp_cv_var_kernel_pll" >&6; }
30886case "$ntp_cv_var_kernel_pll" in
30887 yes)
30888
30889$as_echo "#define KERNEL_PLL 1" >>confdefs.h
30890
30891esac
30892
30893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
30894$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
30895if ${ntp_cv_size_returned_in_buffer+:} false; then :
30896  $as_echo_n "(cached) " >&6
30897else
30898
30899	ans=no
30900	case "$host" in
30901	 *-fujitsu-uxp*)
30902	    ans=yes
30903	    ;;
30904	 *-ncr-sysv4*)
30905	    ans=yes
30906	    ;;
30907	 *-univel-sysv*)
30908	    ans=yes
30909	    ;;
30910	esac
30911	ntp_cv_size_returned_in_buffer=$ans
30912
30913
30914fi
30915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
30916$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
30917case "$ntp_cv_size_returned_in_buffer" in
30918 yes)
30919
30920$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
30921
30922esac
30923
30924# Check for ioctls TIOCGPPSEV
30925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
30926$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
30927case "$ac_cv_header_termios_h" in
30928 yes)
30929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30930/* end confdefs.h.  */
30931
30932	    #include <termios.h>
30933
30934	    #ifdef TIOCGPPSEV
30935		yes
30936	    #endif
30937
30938_ACEOF
30939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30940  $EGREP "yes" >/dev/null 2>&1; then :
30941  ntp_ok=yes
30942else
30943  ntp_ok=no
30944
30945fi
30946rm -f conftest*
30947
30948    ;;
30949 *)
30950    ntp_ok=no
30951    ;;
30952esac
30953case "$ntp_ok" in
30954 yes)
30955
30956$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
30957
30958esac
30959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30960$as_echo "$ntp_ok" >&6; }
30961
30962# Check for ioctls TIOCSPPS
30963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
30964$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
30965case "$ac_cv_header_termios_h" in
30966 yes)
30967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30968/* end confdefs.h.  */
30969
30970	    #include <termios.h>
30971
30972	    #ifdef TIOCSPPS
30973		yes
30974	    #endif
30975
30976_ACEOF
30977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30978  $EGREP "yes" >/dev/null 2>&1; then :
30979  ntp_ok=yes
30980else
30981  ntp_ok=no
30982
30983fi
30984rm -f conftest*
30985
30986    ;;
30987 *)
30988    ntp_ok=no
30989    ;;
30990esac
30991case "$ntp_ok" in
30992 yes)
30993
30994$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
30995
30996esac
30997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30998$as_echo "$ntp_ok" >&6; }
30999
31000# Check for ioctls CIOGETEV
31001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
31002$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
31003case "$ac_cv_header_sys_ppsclock_h" in
31004 yes)
31005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31006/* end confdefs.h.  */
31007
31008	    #include <sys/ppsclock.h>
31009
31010	    #ifdef CIOGETEV
31011		yes
31012	    #endif
31013
31014_ACEOF
31015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31016  $EGREP "yes" >/dev/null 2>&1; then :
31017  ntp_ok=yes
31018else
31019  ntp_ok=no
31020
31021fi
31022rm -f conftest*
31023
31024    ;;
31025 *)
31026    ntp_ok=no
31027    ;;
31028esac
31029case "$ntp_ok" in
31030 yes)
31031
31032$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
31033
31034esac
31035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31036$as_echo "$ntp_ok" >&6; }
31037
31038# ATOM/PPSAPI stuff.
31039
31040ntp_atom_ok=yes
31041
31042# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
31043
31044# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
31045# The PPSAPI needs struct timespec.
31046# The PPSAPI also needs a timepps header.
31047
31048case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
31049 inlineyes)
31050    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
31051     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
31052
31053$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
31054
31055	ntp_jupiter_ok=yes
31056	ntp_oncore_ok=yes
31057	ntp_parse_ok=yes
31058	ntp_ripe_ncc_ok=yes
31059	;;
31060    esac
31061    ;;
31062esac
31063
31064# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
31065ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
31066if test "x$ac_cv_header_linux_serial_h" = xyes; then :
31067
31068fi
31069
31070
31071case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
31072  yesyes)
31073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
31074$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
31075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31076/* end confdefs.h.  */
31077
31078	    #include <sys/time.h>
31079	    typedef int u_int;
31080	    #include <sys/ppsclock.h>
31081	    #include <linux/serial.h>
31082
31083	    #ifdef TIOCGSERIAL
31084	    #ifdef TIOCSSERIAL
31085	    #ifdef ASYNC_PPS_CD_POS
31086	    #ifdef ASYNC_PPS_CD_NEG
31087	    #ifdef CIOGETEV
31088		 yes
31089	    #endif
31090	    #endif
31091	    #endif
31092	    #endif
31093	    #endif
31094
31095_ACEOF
31096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31097  $EGREP "yes" >/dev/null 2>&1; then :
31098  ntp_ok=yes
31099else
31100  ntp_ok=no
31101
31102fi
31103rm -f conftest*
31104
31105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31106$as_echo "$ntp_ok" >&6; }
31107    ;;
31108  *)
31109    ntp_ok=no
31110    ;;
31111esac
31112case "$ntp_ok" in
31113 yes)
31114
31115$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
31116
31117esac
31118
31119# Check for SHMEM_STATUS support
31120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
31121$as_echo_n "checking SHMEM_STATUS support... " >&6; }
31122case "$ac_cv_header_sys_mman_h" in
31123 yes)
31124    ntp_ok=yes
31125    ;;
31126 *)
31127    ntp_ok=no
31128    ;;
31129esac
31130case "$ntp_ok" in
31131 yes)
31132
31133$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
31134
31135esac
31136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31137$as_echo "$ntp_ok" >&6; }
31138
31139ntp_refclock=no
31140
31141# HPUX only, and by explicit request
31142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
31143$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
31144# Check whether --enable-BANCOMM was given.
31145if test "${enable_BANCOMM+set}" = set; then :
31146  enableval=$enable_BANCOMM; ntp_ok=$enableval
31147else
31148  ntp_ok=no
31149
31150fi
31151
31152case "$ntp_ok" in
31153 yes)
31154    ntp_refclock=yes
31155
31156$as_echo "#define CLOCK_BANC 1" >>confdefs.h
31157
31158    ;;
31159esac
31160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31161$as_echo "$ntp_ok" >&6; }
31162case "$ntp_ok$host" in
31163 yes*-*-hpux*) ;;
31164 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
31165$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
31166esac
31167
31168#HPUX only, and only by explicit request
31169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
31170$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
31171# Check whether --enable-GPSVME was given.
31172if test "${enable_GPSVME+set}" = set; then :
31173  enableval=$enable_GPSVME; ntp_ok=$enableval
31174else
31175  ntp_ok=no
31176
31177fi
31178
31179case "$ntp_ok" in
31180 yes)
31181    ntp_refclock=yes
31182
31183$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
31184
31185    ;;
31186esac
31187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31188$as_echo "$ntp_ok" >&6; }
31189case "$ntp_ok$host" in
31190 yes*-*-hpux*) ;;
31191 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
31192$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
31193esac
31194
31195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
31196$as_echo_n "checking for PCL720 clock support... " >&6; }
31197case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
31198 yesyesyes)
31199
31200$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
31201
31202    ans=yes
31203    ;;
31204 *)
31205    ans=no
31206    ;;
31207esac
31208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31209$as_echo "$ans" >&6; }
31210
31211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
31212$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
31213# Check whether --enable-all-clocks was given.
31214if test "${enable_all_clocks+set}" = set; then :
31215  enableval=$enable_all_clocks; ntp_eac=$enableval
31216else
31217  ntp_eac=yes
31218
31219fi
31220
31221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
31222$as_echo "$ntp_eac" >&6; }
31223
31224# HMS: Should we also require ntp_parse_ok?
31225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
31226$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
31227case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
31228 yes*yes*)
31229    ntp_canparse=yes
31230    ;;
31231 *) ntp_canparse=no
31232    ;;
31233esac
31234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
31235$as_echo "$ntp_canparse" >&6; }
31236
31237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
31238$as_echo_n "checking if we have support for audio clocks... " >&6; }
31239case "$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
31240 *yes*)
31241    ntp_canaudio=yes
31242
31243$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
31244
31245    ;;
31246 *) ntp_canaudio=no ;;
31247esac
31248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
31249$as_echo "$ntp_canaudio" >&6; }
31250
31251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
31252$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
31253case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
31254 yesyes)
31255    ntp_canshm=yes
31256    ;;
31257 *) ntp_canshm=no ;;
31258esac
31259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
31260$as_echo "$ntp_canshm" >&6; }
31261
31262# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
31263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
31264$as_echo_n "checking for termios modem control... " >&6; }
31265if ${ntp_cv_modem_control+:} false; then :
31266  $as_echo_n "(cached) " >&6
31267else
31268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31269/* end confdefs.h.  */
31270
31271		#ifdef HAVE_UNISTD_H
31272		# include <unistd.h>
31273		#endif
31274		#ifdef HAVE_TERMIOS_H
31275		# include <termios.h>
31276		#endif
31277		#ifdef HAVE_SYS_IOCTL_H
31278		# include <sys/ioctl.h>
31279		#endif
31280
31281int
31282main ()
31283{
31284
31285		int	dtr = TIOCM_DTR;
31286
31287		ioctl(1, TIOCMBIS, (char *)&dtr);
31288
31289
31290  ;
31291  return 0;
31292}
31293_ACEOF
31294if ac_fn_c_try_compile "$LINENO"; then :
31295  ntp_cv_modem_control=yes
31296else
31297  ntp_cv_modem_control=no
31298
31299fi
31300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31301
31302fi
31303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
31304$as_echo "$ntp_cv_modem_control" >&6; }
31305case "$ntp_eac::$ntp_cv_modem_control" in
31306 yes::yes)
31307    ntp_enable_all_modem_control_clocks=yes
31308    ;;
31309 *)
31310    ntp_enable_all_modem_control_clocks=no
31311    ;;
31312esac
31313
31314# Requires modem control
31315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
31316$as_echo_n "checking ACTS modem service... " >&6; }
31317# Check whether --enable-ACTS was given.
31318if test "${enable_ACTS+set}" = set; then :
31319  enableval=$enable_ACTS; ntp_ok=$enableval
31320else
31321  ntp_ok=$ntp_enable_all_modem_control_clocks
31322
31323fi
31324
31325case "$ntp_ok" in
31326 yes)
31327    ntp_refclock=yes
31328
31329$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
31330
31331    ;;
31332esac
31333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31334$as_echo "$ntp_ok" >&6; }
31335
31336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
31337$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
31338# Check whether --enable-ARBITER was given.
31339if test "${enable_ARBITER+set}" = set; then :
31340  enableval=$enable_ARBITER; ntp_ok=$enableval
31341else
31342  ntp_ok=$ntp_eac
31343
31344fi
31345
31346case "$ntp_ok" in
31347 yes)
31348    ntp_refclock=yes
31349
31350$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
31351
31352    ;;
31353esac
31354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31355$as_echo "$ntp_ok" >&6; }
31356
31357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
31358$as_echo_n "checking Arcron MSF receiver... " >&6; }
31359# Check whether --enable-ARCRON_MSF was given.
31360if test "${enable_ARCRON_MSF+set}" = set; then :
31361  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
31362else
31363  ntp_ok=$ntp_eac
31364
31365fi
31366
31367case "$ntp_ok" in
31368 yes)
31369    ntp_refclock=yes
31370
31371$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
31372
31373    ;;
31374esac
31375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31376$as_echo "$ntp_ok" >&6; }
31377
31378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
31379$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
31380# Check whether --enable-AS2201 was given.
31381if test "${enable_AS2201+set}" = set; then :
31382  enableval=$enable_AS2201; ntp_ok=$enableval
31383else
31384  ntp_ok=$ntp_eac
31385
31386fi
31387
31388case "$ntp_ok" in
31389 yes)
31390    ntp_refclock=yes
31391
31392$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
31393
31394    ;;
31395esac
31396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31397$as_echo "$ntp_ok" >&6; }
31398
31399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
31400$as_echo_n "checking ATOM PPS interface... " >&6; }
31401# Check whether --enable-ATOM was given.
31402if test "${enable_ATOM+set}" = set; then :
31403  enableval=$enable_ATOM; ntp_ok=$enableval
31404else
31405  ntp_ok=$ntp_eac
31406
31407fi
31408
31409case "$ntp_atom_ok" in
31410 no) ntp_ok=no ;;
31411esac
31412case "$ntp_ok" in
31413 yes)
31414    ntp_refclock=yes
31415
31416$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
31417
31418    ;;
31419esac
31420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31421$as_echo "$ntp_ok" >&6; }
31422
31423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
31424$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
31425# Check whether --enable-CHRONOLOG was given.
31426if test "${enable_CHRONOLOG+set}" = set; then :
31427  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
31428else
31429  ntp_ok=$ntp_eac
31430
31431fi
31432
31433case "$ntp_ok" in
31434 yes)
31435    ntp_refclock=yes
31436
31437$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
31438
31439    ;;
31440esac
31441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31442$as_echo "$ntp_ok" >&6; }
31443
31444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
31445$as_echo_n "checking CHU modem/decoder... " >&6; }
31446# Check whether --enable-CHU was given.
31447if test "${enable_CHU+set}" = set; then :
31448  enableval=$enable_CHU; ntp_ok=$enableval
31449else
31450  ntp_ok=$ntp_eac
31451
31452fi
31453
31454case "$ntp_ok" in
31455 yes)
31456    ntp_refclock=yes
31457
31458$as_echo "#define CLOCK_CHU 1" >>confdefs.h
31459
31460    ;;
31461esac
31462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31463$as_echo "$ntp_ok" >&6; }
31464ntp_refclock_chu=$ntp_ok
31465
31466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
31467$as_echo_n "checking CHU audio/decoder... " >&6; }
31468# Check whether --enable-AUDIO-CHU was given.
31469if test "${enable_AUDIO_CHU+set}" = set; then :
31470  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
31471else
31472
31473	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
31474	 *no*)	ntp_ok=no  ;;
31475	 *)	ntp_ok=yes ;;
31476	esac
31477
31478
31479fi
31480
31481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31482$as_echo "$ntp_ok" >&6; }
31483# We used to check for sunos/solaris target...
31484case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
31485 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
31486$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
31487esac
31488
31489# Not under HP-UX
31490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
31491$as_echo_n "checking Datum Programmable Time System... " >&6; }
31492# Check whether --enable-DATUM was given.
31493if test "${enable_DATUM+set}" = set; then :
31494  enableval=$enable_DATUM; ntp_ok=$enableval
31495else
31496
31497	case "$ac_cv_header_termios_h" in
31498	 yes)
31499	    ntp_ok=$ntp_eac
31500	    ;;
31501	 *) ntp_ok=no
31502	    ;;
31503	esac
31504
31505
31506fi
31507
31508case "$ntp_ok" in
31509 yes)
31510    ntp_refclock=yes
31511
31512$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
31513
31514    ;;
31515esac
31516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31517$as_echo "$ntp_ok" >&6; }
31518
31519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
31520$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
31521# Check whether --enable-DUMBCLOCK was given.
31522if test "${enable_DUMBCLOCK+set}" = set; then :
31523  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
31524else
31525  ntp_ok=$ntp_eac
31526
31527fi
31528
31529case "$ntp_ok" in
31530 yes)
31531    ntp_refclock=yes
31532
31533$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
31534
31535    ;;
31536esac
31537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31538$as_echo "$ntp_ok" >&6; }
31539
31540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
31541$as_echo_n "checking Forum Graphic GPS... " >&6; }
31542# Check whether --enable-FG was given.
31543if test "${enable_FG+set}" = set; then :
31544  enableval=$enable_FG; ntp_ok=$enableval
31545else
31546  ntp_ok=$ntp_eac
31547
31548fi
31549
31550case "$ntp_ok" in
31551 yes)
31552    ntp_refclock=yes
31553
31554$as_echo "#define CLOCK_FG 1" >>confdefs.h
31555
31556    ;;
31557esac
31558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31559$as_echo "$ntp_ok" >&6; }
31560
31561# Requires modem control
31562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
31563$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
31564# Check whether --enable-HEATH was given.
31565if test "${enable_HEATH+set}" = set; then :
31566  enableval=$enable_HEATH; ntp_ok=$enableval
31567else
31568  ntp_ok=$ntp_enable_all_modem_control_clocks
31569
31570fi
31571
31572case "$ntp_ok" in
31573 yes)
31574    ntp_refclock=yes
31575
31576$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
31577
31578    ;;
31579esac
31580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31581$as_echo "$ntp_ok" >&6; }
31582
31583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
31584$as_echo_n "checking for hopf serial clock device... " >&6; }
31585# Check whether --enable-HOPFSERIAL was given.
31586if test "${enable_HOPFSERIAL+set}" = set; then :
31587  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
31588else
31589  ntp_ok=$ntp_eac
31590
31591fi
31592
31593case "$ntp_ok" in
31594 yes)
31595    ntp_refclock=yes
31596
31597$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
31598
31599    ;;
31600esac
31601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31602$as_echo "$ntp_ok" >&6; }
31603
31604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
31605$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
31606# Check whether --enable-HOPFPCI was given.
31607if test "${enable_HOPFPCI+set}" = set; then :
31608  enableval=$enable_HOPFPCI; ntp_ok=$enableval
31609else
31610  ntp_ok=$ntp_eac
31611
31612fi
31613
31614case "$ntp_ok" in
31615 yes)
31616    ntp_refclock=yes
31617
31618$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
31619
31620    ;;
31621esac
31622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31623$as_echo "$ntp_ok" >&6; }
31624
31625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
31626$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
31627# Check whether --enable-HPGPS was given.
31628if test "${enable_HPGPS+set}" = set; then :
31629  enableval=$enable_HPGPS; ntp_ok=$enableval
31630else
31631  ntp_ok=$ntp_eac
31632
31633fi
31634
31635case "$ntp_ok" in
31636 yes)
31637    ntp_refclock=yes
31638
31639$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
31640
31641    ;;
31642esac
31643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31644$as_echo "$ntp_ok" >&6; }
31645
31646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
31647$as_echo_n "checking IRIG audio decoder... " >&6; }
31648# Check whether --enable-IRIG was given.
31649if test "${enable_IRIG+set}" = set; then :
31650  enableval=$enable_IRIG; ntp_ok=$enableval
31651else
31652
31653	case "$ntp_eac$ntp_canaudio" in
31654	 *no*)	ntp_ok=no  ;;
31655	 *)	ntp_ok=yes ;;
31656	esac
31657
31658
31659fi
31660
31661case "$ntp_ok" in
31662 yes)
31663    ntp_refclock=yes
31664
31665$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
31666
31667    ;;
31668esac
31669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31670$as_echo "$ntp_ok" >&6; }
31671case "$ntp_ok$ntp_canaudio" in
31672 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
31673$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
31674esac
31675
31676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
31677$as_echo_n "checking for JJY receiver... " >&6; }
31678# Check whether --enable-JJY was given.
31679if test "${enable_JJY+set}" = set; then :
31680  enableval=$enable_JJY; ntp_ok=$enableval
31681else
31682  ntp_ok=$ntp_eac
31683
31684fi
31685
31686case "$ntp_ok" in
31687 yes)
31688    ntp_refclock=yes
31689
31690$as_echo "#define CLOCK_JJY 1" >>confdefs.h
31691
31692    ;;
31693esac
31694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31695$as_echo "$ntp_ok" >&6; }
31696
31697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
31698$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
31699# Check whether --enable-JUPITER was given.
31700if test "${enable_JUPITER+set}" = set; then :
31701  enableval=$enable_JUPITER; ntp_ok=$enableval
31702else
31703  ntp_ok=$ntp_eac
31704fi
31705
31706case "$ntp_jupiter_ok" in
31707 no) ntp_ok=no ;;
31708esac
31709case "$ntp_ok" in
31710 yes)
31711    ntp_refclock=yes
31712
31713$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
31714
31715    ;;
31716esac
31717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31718$as_echo "$ntp_ok" >&6; }
31719
31720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
31721$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
31722# Check whether --enable-LEITCH was given.
31723if test "${enable_LEITCH+set}" = set; then :
31724  enableval=$enable_LEITCH; ntp_ok=$enableval
31725else
31726  ntp_ok=$ntp_eac
31727
31728fi
31729
31730case "$ntp_ok" in
31731 yes)
31732    ntp_refclock=yes
31733
31734$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
31735
31736    ;;
31737esac
31738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31739$as_echo "$ntp_ok" >&6; }
31740
31741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
31742$as_echo_n "checking local clock reference... " >&6; }
31743# Check whether --enable-LOCAL-CLOCK was given.
31744if test "${enable_LOCAL_CLOCK+set}" = set; then :
31745  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
31746else
31747  ntp_ok=$ntp_eac
31748
31749fi
31750
31751case "$ntp_ok" in
31752 yes)
31753    ntp_refclock=yes
31754
31755$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
31756
31757    ;;
31758esac
31759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31760$as_echo "$ntp_ok" >&6; }
31761
31762
31763# Not Ultrix
31764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
31765$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
31766# Check whether --enable-MX4200 was given.
31767if test "${enable_MX4200+set}" = set; then :
31768  enableval=$enable_MX4200; ntp_ok=$enableval
31769else
31770
31771	case "$ac_cv_var_ppsclock" in
31772	 yes)
31773	    ntp_ok=$ntp_eac
31774	    ;;
31775	 *)
31776	    ntp_ok=no
31777	    ;;
31778	esac
31779
31780
31781fi
31782
31783case "$ntp_ok" in
31784 yes)
31785    ntp_refclock=yes
31786
31787$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
31788
31789    ;;
31790esac
31791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31792$as_echo "$ntp_ok" >&6; }
31793case "$ntp_ok$host" in
31794 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
31795$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
31796esac
31797
31798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
31799$as_echo_n "checking for NeoClock4X receiver... " >&6; }
31800# Check whether --enable-NEOCLOCK4X was given.
31801if test "${enable_NEOCLOCK4X+set}" = set; then :
31802  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
31803else
31804  ntp_ok=$ntp_eac
31805
31806fi
31807
31808case "$ntp_ok" in
31809 yes)
31810    ntp_refclock=yes
31811
31812$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
31813
31814    ;;
31815esac
31816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31817$as_echo "$ntp_ok" >&6; }
31818
31819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
31820$as_echo_n "checking NMEA GPS receiver... " >&6; }
31821# Check whether --enable-NMEA was given.
31822if test "${enable_NMEA+set}" = set; then :
31823  enableval=$enable_NMEA; ntp_ok=$enableval
31824else
31825  ntp_ok=$ntp_eac
31826
31827fi
31828
31829case "$ntp_ok" in
31830 yes)
31831    ntp_refclock=yes
31832
31833$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
31834
31835    ;;
31836esac
31837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31838$as_echo "$ntp_ok" >&6; }
31839
31840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
31841$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
31842# Check whether --enable-ONCORE was given.
31843if test "${enable_ONCORE+set}" = set; then :
31844  enableval=$enable_ONCORE; ntp_ok=$enableval
31845else
31846  ntp_ok=$ntp_eac
31847
31848fi
31849
31850case "$ntp_oncore_ok" in
31851 no) ntp_ok=no ;;
31852esac
31853case "$ntp_ok" in
31854 yes)
31855    ntp_refclock=yes
31856
31857$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
31858
31859    ;;
31860esac
31861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31862$as_echo "$ntp_ok" >&6; }
31863
31864# Requires modem control
31865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
31866$as_echo_n "checking for Palisade clock... " >&6; }
31867# Check whether --enable-PALISADE was given.
31868if test "${enable_PALISADE+set}" = set; then :
31869  enableval=$enable_PALISADE; ntp_ok=$enableval
31870else
31871  ntp_ok=$ntp_enable_all_modem_control_clocks
31872
31873fi
31874
31875case "$ntp_ok" in
31876 yes)
31877    ntp_refclock=yes
31878
31879$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
31880
31881    ;;
31882esac
31883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31884$as_echo "$ntp_ok" >&6; }
31885
31886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
31887$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
31888# Check whether --enable-PCF was given.
31889if test "${enable_PCF+set}" = set; then :
31890  enableval=$enable_PCF; ntp_ok=$enableval
31891else
31892  ntp_ok=$ntp_eac
31893
31894fi
31895
31896case "$ntp_ok" in
31897 yes)
31898    ntp_refclock=yes
31899
31900$as_echo "#define CLOCK_PCF 1" >>confdefs.h
31901
31902    ;;
31903esac
31904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31905$as_echo "$ntp_ok" >&6; }
31906
31907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
31908$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
31909# Check whether --enable-PST was given.
31910if test "${enable_PST+set}" = set; then :
31911  enableval=$enable_PST; ntp_ok=$enableval
31912else
31913  ntp_ok=$ntp_eac
31914
31915fi
31916
31917case "$ntp_ok" in
31918 yes)
31919    ntp_refclock=yes
31920
31921$as_echo "#define CLOCK_PST 1" >>confdefs.h
31922
31923    ;;
31924esac
31925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31926$as_echo "$ntp_ok" >&6; }
31927
31928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
31929$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
31930# Check whether --enable-RIPENCC was given.
31931if test "${enable_RIPENCC+set}" = set; then :
31932  enableval=$enable_RIPENCC; ntp_ok=$enableval
31933else
31934  ntp_ok=no
31935
31936fi
31937
31938# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
31939case "$ntp_ripe_ncc_ok" in
31940 no) ntp_ok=no ;;
31941esac
31942case "$ntp_ok" in
31943 yes)
31944    ntp_refclock=yes
31945
31946$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
31947
31948    ;;
31949esac
31950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31951$as_echo "$ntp_ok" >&6; }
31952
31953# Danny Meyer says SHM compiles (with a few warnings) under Win32.
31954# For *IX, we need sys/ipc.h and sys/shm.h.
31955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
31956$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
31957# Check whether --enable-SHM was given.
31958if test "${enable_SHM+set}" = set; then :
31959  enableval=$enable_SHM; ntp_ok=$enableval
31960else
31961
31962	case "$ntp_eac$ntp_canshm" in
31963	 *no*)	ntp_ok=no  ;;
31964	 *)	ntp_ok=yes ;;
31965	esac
31966
31967
31968fi
31969
31970case "$ntp_ok" in
31971 yes)
31972    ntp_refclock=yes
31973
31974$as_echo "#define CLOCK_SHM 1" >>confdefs.h
31975
31976    ;;
31977esac
31978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31979$as_echo "$ntp_ok" >&6; }
31980
31981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
31982$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
31983# Check whether --enable-SPECTRACOM was given.
31984if test "${enable_SPECTRACOM+set}" = set; then :
31985  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
31986else
31987  ntp_ok=$ntp_eac
31988
31989fi
31990
31991case "$ntp_ok" in
31992 yes)
31993    ntp_refclock=yes
31994
31995$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
31996
31997    ;;
31998esac
31999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32000$as_echo "$ntp_ok" >&6; }
32001
32002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
32003$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
32004# Check whether --enable-TPRO was given.
32005if test "${enable_TPRO+set}" = set; then :
32006  enableval=$enable_TPRO; ntp_ok=$enableval
32007else
32008
32009	case "$ac_cv_header_sys_tpro_h" in
32010	 yes)
32011	    ntp_ok=$ntp_eac
32012	    ;;
32013	 *)
32014	    ntp_ok=no
32015	    ;;
32016	esac
32017
32018
32019fi
32020
32021case "$ntp_ok" in
32022 yes)
32023    ntp_refclock=yes
32024
32025$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
32026
32027    ;;
32028esac
32029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32030$as_echo "$ntp_ok" >&6; }
32031case "$ntp_ok$ac_cv_header_sys_tpro" in
32032 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32033$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32034esac
32035
32036# Not on a vax-dec-bsd
32037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
32038$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
32039# Check whether --enable-TRUETIME was given.
32040if test "${enable_TRUETIME+set}" = set; then :
32041  enableval=$enable_TRUETIME; ntp_ok=$enableval
32042else
32043
32044	case "$host" in
32045	 vax-dec-bsd)
32046	    ntp_ok=no
32047	    ;;
32048	 *)
32049	    ntp_ok=$ntp_eac
32050	    ;;
32051	esac
32052
32053
32054fi
32055
32056case "$ntp_ok" in
32057 yes)
32058    ntp_refclock=yes
32059
32060$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
32061
32062    ;;
32063esac
32064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32065$as_echo "$ntp_ok" >&6; }
32066case "$ntp_ok$host" in
32067 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32068$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32069esac
32070
32071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
32072$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
32073# Check whether --enable-TT560 was given.
32074if test "${enable_TT560+set}" = set; then :
32075  enableval=$enable_TT560; ntp_ok=$enableval
32076else
32077  ntp_ok=no
32078
32079fi
32080
32081case "$ntp_ok" in
32082 yes)
32083    ntp_refclock=yes
32084
32085$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
32086
32087    ;;
32088esac
32089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32090$as_echo "$ntp_ok" >&6; }
32091
32092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
32093$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
32094# Check whether --enable-ULINK was given.
32095if test "${enable_ULINK+set}" = set; then :
32096  enableval=$enable_ULINK; ntp_ok=$enableval
32097else
32098  ntp_ok=$ntp_eac
32099
32100fi
32101
32102case "$ntp_ok" in
32103 yes)
32104    ntp_refclock=yes
32105
32106$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
32107
32108    ;;
32109esac
32110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32111$as_echo "$ntp_ok" >&6; }
32112
32113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
32114$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
32115# Check whether --enable-TSYNCPCI was given.
32116if test "${enable_TSYNCPCI+set}" = set; then :
32117  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
32118else
32119
32120	case "$host" in
32121	 *-*-*linux*)
32122	    ntp_ok=$ntp_eac
32123	    ;;
32124	 *)
32125	    ntp_ok=no
32126	esac
32127
32128
32129fi
32130
32131case "$ntp_ok" in
32132 yes)
32133    ntp_refclock=yes
32134
32135$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
32136
32137    ;;
32138esac
32139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32140$as_echo "$ntp_ok" >&6; }
32141
32142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
32143$as_echo_n "checking WWV receiver... " >&6; }
32144# Check whether --enable-WWV was given.
32145if test "${enable_WWV+set}" = set; then :
32146  enableval=$enable_WWV; ntp_ok=$enableval
32147else
32148
32149	case "$ntp_eac$ntp_canaudio" in
32150	 *no*)	ntp_ok=no  ;;
32151	 *)	ntp_ok=yes ;;
32152	esac
32153
32154
32155fi
32156
32157case "$ntp_ok" in
32158 yes)
32159    ntp_refclock=yes
32160
32161$as_echo "#define CLOCK_WWV 1" >>confdefs.h
32162
32163    ;;
32164esac
32165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32166$as_echo "$ntp_ok" >&6; }
32167case "$ntp_ok$ntp_canaudio" in
32168 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32169$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
32170esac
32171
32172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
32173$as_echo_n "checking for Zyfer receiver... " >&6; }
32174# Check whether --enable-ZYFER was given.
32175if test "${enable_ZYFER+set}" = set; then :
32176  enableval=$enable_ZYFER; ntp_ok=$enableval
32177else
32178  ntp_ok=$ntp_eac
32179
32180fi
32181
32182case "$ntp_ok" in
32183 yes)
32184    ntp_refclock=yes
32185
32186$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
32187
32188    ;;
32189esac
32190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32191$as_echo "$ntp_ok" >&6; }
32192
32193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
32194$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
32195# Check whether --enable-parse-clocks was given.
32196if test "${enable_parse_clocks+set}" = set; then :
32197  enableval=$enable_parse_clocks; ntp_eapc=$enableval
32198else
32199
32200	case "$ntp_eac" in
32201	 yes)	ntp_eapc=$ntp_canparse ;;
32202	 *)	ntp_eapc=no ;;
32203	esac
32204	# Delete the next line one of these days
32205	ntp_eapc=no
32206
32207
32208fi
32209
32210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
32211$as_echo "$ntp_eapc" >&6; }
32212
32213case "$ntp_eac$ntp_eapc$ntp_canparse" in
32214 noyes*)
32215    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
32216    ;;
32217 yesyesno)
32218    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
32219    ;;
32220esac
32221
32222ntp_libparse=no
32223ntp_parseutil=no
32224ntp_rawdcf=no
32225
32226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
32227$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
32228# Check whether --enable-COMPUTIME was given.
32229if test "${enable_COMPUTIME+set}" = set; then :
32230  enableval=$enable_COMPUTIME; ntp_ok=$enableval
32231else
32232  ntp_ok=$ntp_eapc
32233
32234fi
32235
32236case "$ntp_ok" in
32237 yes)
32238    ntp_libparse=yes
32239    ntp_refclock=yes
32240
32241$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
32242
32243    ;;
32244esac
32245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32246$as_echo "$ntp_ok" >&6; }
32247case "$ntp_ok$ntp_canparse" in
32248 yesno)
32249    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32250esac
32251
32252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
32253$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
32254# Check whether --enable-DCF7000 was given.
32255if test "${enable_DCF7000+set}" = set; then :
32256  enableval=$enable_DCF7000; ntp_ok=$enableval
32257else
32258  ntp_ok=$ntp_eapc
32259
32260fi
32261
32262case "$ntp_ok" in
32263 yes)
32264    ntp_libparse=yes
32265    ntp_refclock=yes
32266
32267$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
32268
32269    ;;
32270esac
32271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32272$as_echo "$ntp_ok" >&6; }
32273case "$ntp_ok$ntp_canparse" in
32274 yesno)
32275    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32276esac
32277
32278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
32279$as_echo_n "checking HOPF 6021 clock... " >&6; }
32280# Check whether --enable-HOPF6021 was given.
32281if test "${enable_HOPF6021+set}" = set; then :
32282  enableval=$enable_HOPF6021; ntp_ok=$enableval
32283else
32284  ntp_ok=$ntp_eapc
32285
32286fi
32287
32288case "$ntp_ok" in
32289 yes)
32290    ntp_libparse=yes
32291    ntp_refclock=yes
32292
32293$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
32294
32295    ;;
32296esac
32297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32298$as_echo "$ntp_ok" >&6; }
32299case "$ntp_ok$ntp_canparse" in
32300 yesno)
32301    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32302esac
32303
32304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
32305$as_echo_n "checking Meinberg clocks... " >&6; }
32306# Check whether --enable-MEINBERG was given.
32307if test "${enable_MEINBERG+set}" = set; then :
32308  enableval=$enable_MEINBERG; ntp_ok=$enableval
32309else
32310  ntp_ok=$ntp_eapc
32311
32312fi
32313
32314case "$ntp_ok" in
32315 yes)
32316    ntp_libparse=yes
32317    ntp_refclock=yes
32318
32319$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
32320
32321    ;;
32322esac
32323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32324$as_echo "$ntp_ok" >&6; }
32325case "$ntp_ok$ntp_canparse" in
32326 yesno)
32327    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32328esac
32329
32330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
32331$as_echo_n "checking DCF77 raw time code... " >&6; }
32332# Check whether --enable-RAWDCF was given.
32333if test "${enable_RAWDCF+set}" = set; then :
32334  enableval=$enable_RAWDCF; ntp_ok=$enableval
32335else
32336  ntp_ok=$ntp_eapc
32337
32338fi
32339
32340case "$ntp_ok" in
32341 yes)
32342    ntp_libparse=yes
32343    ntp_parseutil=yes
32344    ntp_refclock=yes
32345    ntp_rawdcf=yes
32346
32347$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
32348
32349    ;;
32350esac
32351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32352$as_echo "$ntp_ok" >&6; }
32353case "$ntp_ok$ntp_canparse" in
32354 yesno)
32355    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32356esac
32357
32358case "$ntp_rawdcf" in
32359 yes)
32360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
32361$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
32362if ${ntp_cv_rawdcf_parity+:} false; then :
32363  $as_echo_n "(cached) " >&6
32364else
32365
32366	    ans=no
32367	    case "$host" in
32368	     *-*-*linux*)
32369		ans=yes
32370		;;
32371	    esac
32372	    ntp_cv_rawdcf_parity=$ans
32373
32374
32375fi
32376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
32377$as_echo "$ntp_cv_rawdcf_parity" >&6; }
32378    case "$ntp_cv_rawdcf_parity" in
32379     yes)
32380
32381$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
32382 ;;
32383    esac
32384esac
32385
32386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
32387$as_echo_n "checking RCC 8000 clock... " >&6; }
32388# Check whether --enable-RCC8000 was given.
32389if test "${enable_RCC8000+set}" = set; then :
32390  enableval=$enable_RCC8000; ntp_ok=$enableval
32391else
32392  ntp_ok=$ntp_eapc
32393
32394fi
32395
32396case "$ntp_ok" in
32397 yes)
32398    ntp_libparse=yes
32399    ntp_refclock=yes
32400
32401$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
32402
32403    ;;
32404esac
32405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32406$as_echo "$ntp_ok" >&6; }
32407case "$ntp_ok$ntp_canparse" in
32408 yesno)
32409    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32410esac
32411
32412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
32413$as_echo_n "checking Schmid DCF77 clock... " >&6; }
32414# Check whether --enable-SCHMID was given.
32415if test "${enable_SCHMID+set}" = set; then :
32416  enableval=$enable_SCHMID; ntp_ok=$enableval
32417else
32418  ntp_ok=$ntp_eapc
32419
32420fi
32421
32422case "$ntp_ok" in
32423 yes)
32424    ntp_libparse=yes
32425    ntp_refclock=yes
32426
32427$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
32428
32429    ;;
32430esac
32431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32432$as_echo "$ntp_ok" >&6; }
32433case "$ntp_ok$ntp_canparse" in
32434 yesno)
32435    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32436esac
32437
32438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
32439$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
32440# Check whether --enable-TRIMTAIP was given.
32441if test "${enable_TRIMTAIP+set}" = set; then :
32442  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
32443else
32444  ntp_ok=$ntp_eapc
32445
32446fi
32447
32448case "$ntp_ok" in
32449 yes)
32450    ntp_libparse=yes
32451    ntp_refclock=yes
32452
32453$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
32454
32455    ;;
32456esac
32457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32458$as_echo "$ntp_ok" >&6; }
32459case "$ntp_ok$ntp_canparse" in
32460 yesno)
32461    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32462esac
32463
32464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
32465$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
32466# Check whether --enable-TRIMTSIP was given.
32467if test "${enable_TRIMTSIP+set}" = set; then :
32468  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
32469else
32470  ntp_ok=$ntp_eapc
32471
32472fi
32473
32474case "$ntp_ok" in
32475 yes)
32476    ntp_libparse=yes
32477    ntp_refclock=yes
32478
32479$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
32480
32481    ;;
32482esac
32483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32484$as_echo "$ntp_ok" >&6; }
32485case "$ntp_ok$ntp_canparse" in
32486 yesno)
32487    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32488esac
32489
32490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
32491$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
32492# Check whether --enable-WHARTON was given.
32493if test "${enable_WHARTON+set}" = set; then :
32494  enableval=$enable_WHARTON; ntp_ok=$enableval
32495else
32496  ntp_ok=$ntp_eapc
32497
32498fi
32499
32500case "$ntp_ok" in
32501 yes)
32502    ntp_libparse=yes
32503    ntp_refclock=yes
32504
32505$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
32506
32507    ;;
32508esac
32509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32510$as_echo "$ntp_ok" >&6; }
32511case "$ntp_ok$ntp_canparse" in
32512 yesno)
32513    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32514esac
32515
32516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
32517$as_echo_n "checking VARITEXT clock... " >&6; }
32518# Check whether --enable-VARITEXT was given.
32519if test "${enable_VARITEXT+set}" = set; then :
32520  enableval=$enable_VARITEXT; ntp_ok=$enableval
32521else
32522  ntp_ok=$ntp_eapc
32523
32524fi
32525
32526case "$ntp_ok" in
32527 yes)
32528    ntp_libparse=yes
32529    ntp_refclock=yes
32530
32531$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
32532
32533    ;;
32534esac
32535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32536$as_echo "$ntp_ok" >&6; }
32537case "$ntp_ok$ntp_canparse" in
32538 yesno)
32539    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32540esac
32541
32542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
32543$as_echo_n "checking SEL240X clock... " >&6; }
32544# Check whether --enable-SEL240X was given.
32545if test "${enable_SEL240X+set}" = set; then :
32546  enableval=$enable_SEL240X; ntp_ok=$enableval
32547else
32548  ntp_ok=$ntp_eapc
32549fi
32550
32551if test "$ntp_ok" = "yes"; then
32552    ntp_libparse=yes
32553    ntp_refclock=yes
32554
32555$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
32556
32557fi
32558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32559$as_echo "$ntp_ok" >&6; }
32560case "$ntp_ok$ntp_canparse" in
32561 yesno)
32562    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
32563    ;;
32564esac
32565
32566
32567
32568
32569
32570
32571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
32572$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
32573ans=no
32574case "$ntp_libparse" in
32575 yes)
32576    ans=yes
32577
32578$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
32579
32580    LIBPARSE=../libparse/libparse.a
32581    MAKE_LIBPARSE=libparse.a
32582    # HMS: check_y2k trips the 34 year problem now...
32583    false && MAKE_CHECK_Y2K=check_y2k
32584esac
32585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32586$as_echo "$ans" >&6; }
32587
32588
32589
32590ntp_pkgconfig_min_version='0.15.0'
32591if test -n "$ac_tool_prefix"; then
32592  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32593set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32595$as_echo_n "checking for $ac_word... " >&6; }
32596if ${ac_cv_path_PKG_CONFIG+:} false; then :
32597  $as_echo_n "(cached) " >&6
32598else
32599  case $PKG_CONFIG in
32600  [\\/]* | ?:[\\/]*)
32601  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32602  ;;
32603  *)
32604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32605for as_dir in $PATH
32606do
32607  IFS=$as_save_IFS
32608  test -z "$as_dir" && as_dir=.
32609    for ac_exec_ext in '' $ac_executable_extensions; do
32610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32611    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32613    break 2
32614  fi
32615done
32616  done
32617IFS=$as_save_IFS
32618
32619  ;;
32620esac
32621fi
32622PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32623if test -n "$PKG_CONFIG"; then
32624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
32625$as_echo "$PKG_CONFIG" >&6; }
32626else
32627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32628$as_echo "no" >&6; }
32629fi
32630
32631
32632fi
32633if test -z "$ac_cv_path_PKG_CONFIG"; then
32634  ac_pt_PKG_CONFIG=$PKG_CONFIG
32635  # Extract the first word of "pkg-config", so it can be a program name with args.
32636set dummy pkg-config; ac_word=$2
32637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32638$as_echo_n "checking for $ac_word... " >&6; }
32639if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
32640  $as_echo_n "(cached) " >&6
32641else
32642  case $ac_pt_PKG_CONFIG in
32643  [\\/]* | ?:[\\/]*)
32644  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32645  ;;
32646  *)
32647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32648for as_dir in $PATH
32649do
32650  IFS=$as_save_IFS
32651  test -z "$as_dir" && as_dir=.
32652    for ac_exec_ext in '' $ac_executable_extensions; do
32653  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32654    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32656    break 2
32657  fi
32658done
32659  done
32660IFS=$as_save_IFS
32661
32662  ;;
32663esac
32664fi
32665ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32666if test -n "$ac_pt_PKG_CONFIG"; then
32667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
32668$as_echo "$ac_pt_PKG_CONFIG" >&6; }
32669else
32670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32671$as_echo "no" >&6; }
32672fi
32673
32674  if test "x$ac_pt_PKG_CONFIG" = x; then
32675    PKG_CONFIG=""
32676  else
32677    case $cross_compiling:$ac_tool_warned in
32678yes:)
32679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32681ac_tool_warned=yes ;;
32682esac
32683    PKG_CONFIG=$ac_pt_PKG_CONFIG
32684  fi
32685else
32686  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32687fi
32688
32689{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
32690{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
32691
32692case "$PKG_CONFIG" in
32693 /*)
32694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
32695$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
32696    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
32697	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32698$as_echo "yes" >&6; }
32699    else
32700	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32701$as_echo "no" >&6; }
32702	PKG_CONFIG=""
32703    fi
32704    ;;
32705esac
32706
32707
32708
32709
32710
32711VER_SUFFIX=
32712
32713
32714
32715
32716# Check whether --with-crypto was given.
32717if test "${with_crypto+set}" = set; then :
32718  withval=$with_crypto;
32719fi
32720
32721
32722# Check whether --with-openssl-libdir was given.
32723if test "${with_openssl_libdir+set}" = set; then :
32724  withval=$with_openssl_libdir;
32725fi
32726
32727
32728# Check whether --with-openssl-incdir was given.
32729if test "${with_openssl_incdir+set}" = set; then :
32730  withval=$with_openssl_incdir;
32731fi
32732
32733
32734# Check whether --with-rpath was given.
32735if test "${with_rpath+set}" = set; then :
32736  withval=$with_rpath;
32737fi
32738
32739ntp_openssl=no
32740ntp_openssl_from_pkg_config=no
32741with_crypto=${with_crypto:-openssl,libcrypto}
32742case "$with_crypto" in
32743 yes)
32744    with_crypto=openssl,libcrypto
32745esac
32746case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
32747 no:*) ;;
32748 *:notempty:notgiven:notgiven)
32749    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
32750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
32751$as_echo_n "checking pkg-config for $pkg... " >&6; }
32752	if $PKG_CONFIG --exists $pkg ; then
32753	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
32754	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
32755	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
32756	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
32757	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
32758	    VER_SUFFIX=o
32759	    ntp_openssl=yes
32760	    ntp_openssl_from_pkg_config=yes
32761	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32762$as_echo "yes" >&6; }
32763
32764	    break
32765	fi
32766	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32767$as_echo "no" >&6; }
32768    done
32769esac
32770case "$with_crypto:$ntp_openssl" in
32771 no:*) ;;
32772 *:no)
32773    need_dash_r=
32774    need_dash_Wlrpath=
32775    case "${with_rpath-notgiven}" in
32776     yes)
32777	# Lame - what to do if we need -Wl... but not -R?
32778	need_dash_r=1
32779	;;
32780     notgiven)
32781	case "$host" in
32782	 *-*-linux*)
32783	    # This may really only be true for gcc
32784	    need_dash_Wlrpath=1
32785	    ;;
32786	 *-*-netbsd*)
32787	    need_dash_r=1
32788	    ;;
32789	 *-*-solaris*)
32790	    need_dash_r=1
32791	    ;;
32792	esac
32793	;;
32794    esac
32795
32796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
32797$as_echo_n "checking for openssl library directory... " >&6; }
32798    with_openssl_libdir=${with_openssl_libdir-notgiven}
32799    case "$with_openssl_libdir" in
32800     notgiven)
32801	case "$build" in
32802	 $host)
32803	    with_openssl_libdir=default
32804	    ;;
32805	 *)
32806	    with_openssl_libdir=no
32807	    ;;
32808	esac
32809    esac
32810    case "$with_openssl_libdir" in
32811     default)
32812	# Look in:
32813	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
32814	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
32815	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
32816    esac
32817    case "$with_openssl_libdir" in
32818     no)
32819	;;
32820     *) # Look for libcrypto.a and libssl.a:
32821	for i in $with_openssl_libdir no
32822	do
32823	    case "$host" in
32824	     *-*-darwin*)
32825		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
32826		;;
32827	     *)
32828		test -f $i/libcrypto.so -a -f $i/libssl.so && break
32829		test -f $i/libcrypto.a -a -f $i/libssl.a && break
32830		;;
32831	    esac
32832	done
32833	openssl_libdir=$i
32834	;;
32835    esac
32836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
32837$as_echo "$openssl_libdir" >&6; }
32838    case "$openssl_libdir" in
32839     no)
32840	openssl_libdir=
32841	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
32842$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
32843    esac
32844
32845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
32846$as_echo_n "checking for openssl include directory... " >&6; }
32847    with_openssl_incdir=${with_openssl_incdir-notgiven}
32848    case "$with_openssl_incdir" in
32849     notgiven)
32850	# Look in:
32851	with_openssl_incdir="/usr/include /usr/sfw/include"
32852	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
32853	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
32854    esac
32855    case "$with_openssl_incdir" in
32856     no)
32857	;;
32858     *) # look for openssl/evp.h:
32859	for i in $with_openssl_incdir no
32860	do
32861	    test -f $i/openssl/evp.h && break
32862	done
32863	openssl_incdir=$i
32864	;;
32865    esac
32866    { i=; unset i;}
32867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
32868$as_echo "$openssl_incdir" >&6; }
32869    case "$openssl_incdir" in
32870     no)
32871	openssl_incdir=
32872	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
32873$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
32874    esac
32875    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
32876    then
32877	ntp_openssl=no
32878    else
32879	ntp_openssl=yes
32880	VER_SUFFIX=o
32881    fi
32882    case "$ntp_openssl" in
32883     yes)
32884	# We have OpenSSL inc/lib dirs - use them.
32885	case "$openssl_incdir" in
32886	 /usr/include)
32887	    ;;
32888	 *)
32889	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
32890	    ;;
32891	esac
32892	case "$openssl_libdir" in
32893	 /usr/lib)
32894	    ;;
32895	 *)
32896	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
32897	    case "$need_dash_r" in
32898	     1)
32899		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
32900	    esac
32901	    case "$need_dash_Wlrpath" in
32902	     1)
32903		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
32904	    esac
32905	    ;;
32906	esac
32907	LDADD_NTP="$LDADD_NTP -lcrypto"
32908    esac
32909esac
32910
32911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
32912$as_echo_n "checking if we will use crypto... " >&6; }
32913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
32914$as_echo "$ntp_openssl" >&6; }
32915
32916case "$ntp_openssl" in
32917 yes)
32918
32919$as_echo "#define OPENSSL /**/" >>confdefs.h
32920
32921    case "$VER_SUFFIX" in
32922     *o*) ;;
32923     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
32924    esac
32925    ;;
32926esac
32927
32928NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
32929CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
32930NTPO_SAVED_LIBS="$LIBS"
32931
32932#
32933# check for linking with -lcrypto failure, and try -lcrypto -lz.
32934# Helps m68k-atari-mint
32935#
32936case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
32937 yes:no)
32938    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
32939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
32940$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
32941if ${ntp_cv_bare_lcrypto+:} false; then :
32942  $as_echo_n "(cached) " >&6
32943else
32944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32945/* end confdefs.h.  */
32946
32947		    #include "openssl/err.h"
32948		    #include "openssl/evp.h"
32949
32950int
32951main ()
32952{
32953
32954		    ERR_load_crypto_strings();
32955		    OpenSSL_add_all_algorithms();
32956
32957
32958  ;
32959  return 0;
32960}
32961_ACEOF
32962if ac_fn_c_try_link "$LINENO"; then :
32963  ntp_cv_bare_lcrypto=yes
32964else
32965  ntp_cv_bare_lcrypto=no
32966
32967fi
32968rm -f core conftest.err conftest.$ac_objext \
32969    conftest$ac_exeext conftest.$ac_ext
32970
32971fi
32972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
32973$as_echo "$ntp_cv_bare_lcrypto" >&6; }
32974    case "$ntp_cv_bare_lcrypto" in
32975     no)
32976	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
32977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
32978$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
32979if ${ntp_cv_lcrypto_lz+:} false; then :
32980  $as_echo_n "(cached) " >&6
32981else
32982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32983/* end confdefs.h.  */
32984
32985			#include "openssl/err.h"
32986			#include "openssl/evp.h"
32987
32988int
32989main ()
32990{
32991
32992			ERR_load_crypto_strings();
32993			OpenSSL_add_all_algorithms();
32994
32995
32996  ;
32997  return 0;
32998}
32999_ACEOF
33000if ac_fn_c_try_link "$LINENO"; then :
33001  ntp_cv_lcrypto_lz=yes
33002else
33003  ntp_cv_lcrypto_lz=no
33004
33005fi
33006rm -f core conftest.err conftest.$ac_objext \
33007    conftest$ac_exeext conftest.$ac_ext
33008
33009fi
33010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
33011$as_echo "$ntp_cv_lcrypto_lz" >&6; }
33012	case "$ntp_cv_lcrypto_lz" in
33013	 yes)
33014	     LDADD_NTP="$LDADD_NTP -lz"
33015	esac
33016    esac
33017esac
33018
33019#
33020# Older OpenSSL headers have a number of callback prototypes inside
33021# other function prototypes which trigger copious warnings with gcc's
33022# -Wstrict-prototypes, which is included in -Wall.
33023#
33024# An example:
33025#
33026# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
33027#		  int (*cb)(), int sgckey);
33028#		  ^^^^^^^^^^^
33029#
33030#
33031#
33032openssl_triggers_warnings=unknown
33033NTPO_SAVED_CFLAGS="$CFLAGS"
33034
33035case "$ntp_openssl:$GCC" in
33036 yes:yes)
33037    CFLAGS="$CFLAGS -Werror"
33038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33039/* end confdefs.h.  */
33040
33041
33042int
33043main ()
33044{
33045
33046		/* see if -Werror breaks gcc */
33047
33048
33049  ;
33050  return 0;
33051}
33052_ACEOF
33053if ac_fn_c_try_compile "$LINENO"; then :
33054  gcc_handles_Werror=yes
33055else
33056  gcc_handles_Werror=no
33057
33058fi
33059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33060    case "$gcc_handles_Werror" in
33061     no)
33062	# if this gcc doesn't do -Werror go ahead and use
33063	# -Wstrict-prototypes.
33064	openssl_triggers_warnings=yes
33065	;;
33066     yes)
33067	CFLAGS="$CFLAGS -Wstrict-prototypes"
33068	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33069/* end confdefs.h.  */
33070
33071		    #include "openssl/asn1_mac.h"
33072		    #include "openssl/bn.h"
33073		    #include "openssl/err.h"
33074		    #include "openssl/evp.h"
33075		    #include "openssl/pem.h"
33076		    #include "openssl/rand.h"
33077		    #include "openssl/x509v3.h"
33078
33079int
33080main ()
33081{
33082
33083		    /* empty body */
33084
33085
33086  ;
33087  return 0;
33088}
33089_ACEOF
33090if ac_fn_c_try_compile "$LINENO"; then :
33091  openssl_triggers_warnings=no
33092else
33093  openssl_triggers_warnings=yes
33094
33095fi
33096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33097    esac
33098    case "$openssl_triggers_warnings" in
33099     yes)
33100	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
33101	;;
33102     *)
33103	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
33104    esac
33105    ;;
33106 no:yes)
33107    # gcc without OpenSSL
33108    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
33109esac
33110
33111CFLAGS="$NTPO_SAVED_CFLAGS"
33112CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
33113LIBS="$NTPO_SAVED_LIBS"
33114{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
33115{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
33116{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
33117{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
33118{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
33119
33120
33121# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
33122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
33123$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
33124# Check whether --enable-autokey was given.
33125if test "${enable_autokey+set}" = set; then :
33126  enableval=$enable_autokey; ntp_autokey=$enableval
33127else
33128  ntp_autokey=$ntp_openssl
33129
33130fi
33131
33132case "$ntp_autokey" in
33133 no)
33134    ;;
33135 *)
33136    case "$ntp_openssl" in
33137     no)
33138	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
33139$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
33140	ntp_autokey=no
33141	;;
33142     *)
33143
33144$as_echo "#define AUTOKEY 1" >>confdefs.h
33145
33146	ntp_autokey=yes
33147	;;
33148    esac
33149    ;;
33150esac
33151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
33152$as_echo "$ntp_autokey" >&6; }
33153
33154
33155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
33156$as_echo_n "checking if we want to run check-layout... " >&6; }
33157case "$cross_compiling$PATH_PERL" in
33158 no/*)
33159    MAKE_CHECK_LAYOUT=check-layout
33160    ans=yes
33161    ;;
33162 *)
33163    ans=no
33164    ;;
33165esac
33166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33167$as_echo "$ans" >&6; }
33168
33169
33170
33171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
33172$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
33173ans=no
33174case "$ntp_parseutil" in
33175 yes)
33176    case "$host" in
33177     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
33178	ans="dcfd testdcf"
33179	DCFD=dcfd
33180	TESTDCF=testdcf
33181    esac
33182    ;;
33183esac
33184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33185$as_echo "$ans" >&6; }
33186
33187
33188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
33189$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
33190ans=no
33191case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
33192 yesyes)
33193    case "$host" in
33194     sparc-*-sunos4*)
33195        case "$ntp_cv_var_kernel_pll" in
33196	yes)
33197
33198$as_echo "#define PPS_SYNC 1" >>confdefs.h
33199
33200	    ;;
33201	esac
33202	ans=parsestreams
33203	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
33204	;;
33205     sparc-*-solaris2*)
33206	ans=parsesolaris
33207	MAKE_PARSEKMODULE=parse
33208	for ac_header in strings.h
33209do :
33210  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
33211if test "x$ac_cv_header_strings_h" = xyes; then :
33212  cat >>confdefs.h <<_ACEOF
33213#define HAVE_STRINGS_H 1
33214_ACEOF
33215
33216fi
33217
33218done
33219
33220	;;
33221    esac
33222    ;;
33223esac
33224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33225$as_echo "$ans" >&6; }
33226
33227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
33228$as_echo_n "checking if we need basic refclock support... " >&6; }
33229case "$ntp_refclock" in
33230 yes)
33231
33232$as_echo "#define REFCLOCK 1" >>confdefs.h
33233
33234    ;;
33235esac
33236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
33237$as_echo "$ntp_refclock" >&6; }
33238
33239PROPDELAY=propdelay
33240
33241
33242
33243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
33244$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
33245case "$host" in
33246 *-*-hpux[56789]*)
33247    ans=yes
33248    ;;
33249 *) ans=no
33250    ;;
33251esac
33252case "$ans" in
33253 yes)
33254    MAKE_ADJTIMED=adjtimed
33255
33256$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
33257
33258    ;;
33259 *) ADJTIMED_DB=
33260    ADJTIMED_DL=
33261    ADJTIMED_DS=
33262    ADJTIMED_MS=
33263    ;;
33264esac
33265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33266$as_echo "$ans" >&6; }
33267
33268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
33269$as_echo_n "checking if we want QNX adjtime support... " >&6; }
33270case "$host" in
33271 *-*-qnx*)
33272    ans=yes
33273    ;;
33274 *) ans=no
33275    ;;
33276esac
33277case "$ans" in
33278 yes)
33279
33280$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
33281
33282    ;;
33283esac
33284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33285$as_echo "$ans" >&6; }
33286
33287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
33288$as_echo_n "checking if we can read kmem... " >&6; }
33289
33290#  the default is to enable it if the system has the capability
33291
33292case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
33293 *yes*)
33294    ans=yes
33295    ;;
33296 *) ans=no
33297    ;;
33298esac
33299
33300case "$host" in
33301 *-*-domainos)	# Won't be found...
33302    ans=no
33303    ;;
33304 *-*-hpux*)
33305    #ans=no
33306    ;;
33307 *-*-irix[456]*)
33308    ans=no
33309    ;;
33310 *-*-*linux*)
33311    ans=no
33312    ;;
33313 *-*-winnt3.5)
33314    ans=no
33315    ;;
33316 *-*-unicosmp*)
33317    ans=no
33318    ;;
33319esac
33320
33321# --enable-kmem / --disable-kmem controls if present
33322# Check whether --enable-kmem was given.
33323if test "${enable_kmem+set}" = set; then :
33324  enableval=$enable_kmem; ans=$enableval
33325
33326fi
33327
33328
33329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33330$as_echo "$ans" >&6; }
33331
33332case "$ans" in
33333 yes)
33334    can_kmem=yes
33335    ;;
33336 *)
33337    can_kmem=no
33338
33339$as_echo "#define NOKMEM 1" >>confdefs.h
33340
33341esac
33342
33343
33344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
33345$as_echo_n "checking if adjtime is accurate... " >&6; }
33346
33347# target-dependent defaults
33348
33349case "$host" in
33350 i386-sequent-ptx*)
33351    ans=no
33352    ;;
33353 i386-unknown-osf1*)
33354    ans=yes
33355    ;;
33356 mips-sgi-irix[456]*)
33357    ans=yes
33358    ;;
33359 *-fujitsu-uxp*)
33360    ans=yes
33361    ;;
33362 *-ibm-aix[4-9]*)
33363    # XXX only verified thru AIX6.
33364    ans=yes
33365    ;;
33366 *-*-*linux*)
33367    ans=yes
33368    ;;
33369 *-*-solaris2.[01])
33370    ans=no
33371    ;;
33372 *-*-solaris2*)
33373    ans=yes
33374    ;;
33375 *-*-unicosmp*)
33376    ans=yes
33377    ;;
33378 *) ans=no
33379    ;;
33380esac
33381
33382# --enable-accurate-adjtime / --disable-accurate-adjtime
33383# override the default
33384# Check whether --enable-accurate-adjtime was given.
33385if test "${enable_accurate_adjtime+set}" = set; then :
33386  enableval=$enable_accurate_adjtime; ans=$enableval
33387
33388fi
33389
33390
33391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33392$as_echo "$ans" >&6; }
33393
33394case "$ans" in
33395 yes)
33396
33397$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
33398
33399    adjtime_is_accurate=yes
33400    ;;
33401 *)
33402    adjtime_is_accurate=no
33403    ;;
33404esac
33405
33406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
33407$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
33408if ${ntp_cv_nlist_tick+:} false; then :
33409  $as_echo_n "(cached) " >&6
33410else
33411
33412	ans=_tick
33413	case "$host" in
33414	 m68*-hp-hpux*) # HP9000/300?
33415	    ans=_old_tick
33416	    ;;
33417	 *-apple-aux[23]*)
33418	    ans=tick
33419	    ;;
33420	 *-hp-hpux*)
33421	    ans=old_tick
33422	    ;;
33423	 *-ibm-aix[3-9]*)
33424	    # XXX only verified thru AIX6.
33425	    ans=no
33426	    ;;
33427	 *-*-mpeix*)
33428	    ans=no
33429	    ;;
33430	 *-*-ptx*)
33431	    ans=tick
33432	    ;;
33433	 *-*-sco3.2v[45]*)
33434	    ans=no
33435	    ;;
33436	 *-*-solaris2*)
33437	    ans=nsec_per_tick
33438	    ;;
33439	 *-*-sysv4*)
33440	    ans=tick
33441	    ;;
33442	esac
33443	ntp_cv_nlist_tick=$ans
33444
33445
33446fi
33447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
33448$as_echo "$ntp_cv_nlist_tick" >&6; }
33449case "$ntp_cv_nlist_tick" in
33450 ''|no)
33451    ;;	# HMS: I think we can only get 'no' here...
33452 *)
33453
33454cat >>confdefs.h <<_ACEOF
33455#define K_TICK_NAME "$ntp_cv_nlist_tick"
33456_ACEOF
33457
33458esac
33459
33460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
33461$as_echo_n "checking for the units of 'tick'... " >&6; }
33462if ${ntp_cv_tick_nano+:} false; then :
33463  $as_echo_n "(cached) " >&6
33464else
33465
33466	ans=usec
33467	case "$host" in
33468	 *-*-solaris2*)
33469	    ans=nsec
33470	    ;;
33471	esac
33472	ntp_cv_tick_nano=$ans
33473
33474
33475fi
33476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
33477$as_echo "$ntp_cv_tick_nano" >&6; }
33478case "$ntp_cv_tick_nano" in
33479 nsec)
33480
33481$as_echo "#define TICK_NANO 1" >>confdefs.h
33482
33483esac
33484
33485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
33486$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
33487if ${ntp_cv_nlist_tickadj+:} false; then :
33488  $as_echo_n "(cached) " >&6
33489else
33490
33491	ans=_tickadj
33492	case "$host" in
33493	 m68*-hp-hpux*) # HP9000/300?
33494	    ans=_tickadj
33495	    ;;
33496	 *-apple-aux[23]*)
33497	    ans=tickadj
33498	    ;;
33499	 *-hp-hpux10*)
33500	    ans=no
33501	    ;;
33502	 *-hp-hpux9*)
33503	    ans=no
33504	    ;;
33505	 *-hp-hpux*)
33506	    ans=tickadj
33507	    ;;
33508	 *-*-aix*)
33509	    ans=tickadj
33510	    ;;
33511	 *-*-mpeix*)
33512	    ans=no
33513	    ;;
33514	 *-*-ptx*)
33515	    ans=tickadj
33516	    ;;
33517	 *-*-sco3.2v4*)
33518	    ans=no
33519	    ;;
33520	 *-*-sco3.2v5.0*)
33521	    ans=clock_drift
33522	    ;;
33523	 *-*-solaris2*)
33524	    ans=no	# hrestime_adj
33525	    ;;
33526	 *-*-sysv4*)
33527	    ans=tickadj
33528	    ;;
33529	esac
33530	ntp_cv_nlist_tickadj=$ans
33531
33532
33533fi
33534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
33535$as_echo "$ntp_cv_nlist_tickadj" >&6; }
33536case "$ntp_cv_nlist_tickadj" in
33537 ''|no)
33538    ;;	# HMS: I think we can only get 'no' here...
33539 *)
33540
33541cat >>confdefs.h <<_ACEOF
33542#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
33543_ACEOF
33544
33545esac
33546
33547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
33548$as_echo_n "checking for the units of 'tickadj'... " >&6; }
33549if ${ntp_cv_tickadj_nano+:} false; then :
33550  $as_echo_n "(cached) " >&6
33551else
33552
33553	ans=usec
33554	case "$host" in
33555	 *-*-solaris2*)
33556	    ans=nsec
33557	    ;;
33558	esac
33559	ntp_cv_tickadj_nano=$ans
33560
33561
33562fi
33563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
33564$as_echo "$ntp_cv_tickadj_nano" >&6; }
33565case "$ntp_cv_tickadj_nano" in
33566 nsec)
33567
33568$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
33569
33570esac
33571
33572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
33573$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
33574if ${ntp_cv_nlist_dosynctodr+:} false; then :
33575  $as_echo_n "(cached) " >&6
33576else
33577
33578	case "$host" in
33579	 *-apple-aux[23]*)
33580	    ans=no
33581	    ;;
33582	 *-sni-sysv*)
33583	    ans=dosynctodr
33584	    ;;
33585	 *-*-aix*)
33586	    ans=dosynctodr
33587	    ;;
33588	 *-*-hpux*)
33589	    ans=no
33590	    ;;
33591	 *-*-mpeix*)
33592	    ans=no
33593	    ;;
33594	 *-*-nextstep*)
33595	    ans=_dosynctodr
33596	    ;;
33597	 *-*-ptx*)
33598	    ans=doresettodr
33599	    ;;
33600	 *-*-sco3.2v4*)
33601	    ans=no
33602	    ;;
33603	 *-*-sco3.2v5*)
33604	    ans=track_rtc
33605	    ;;
33606	 *-*-solaris2*)
33607	    ans=dosynctodr
33608	    ;;
33609	 *-*-sysv4*)
33610	    ans=doresettodr
33611	    ;;
33612	 *)
33613	    ans=_dosynctodr
33614	    ;;
33615	esac
33616	ntp_cv_nlist_dosynctodr=$ans
33617
33618
33619fi
33620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
33621$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
33622case "$ntp_cv_nlist_dosynctodr" in
33623 no)
33624    ;;
33625 *)
33626
33627cat >>confdefs.h <<_ACEOF
33628#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
33629_ACEOF
33630
33631    ;;
33632esac
33633
33634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
33635$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
33636if ${ntp_cv_nlist_noprintf+:} false; then :
33637  $as_echo_n "(cached) " >&6
33638else
33639
33640	case "$host" in
33641	 *-apple-aux[23]*)
33642	    ans=no
33643	    ;;
33644	 *-sni-sysv*)
33645	    ans=noprintf
33646	    ;;
33647	 *-*-aix*)
33648	    ans=noprintf
33649	    ;;
33650	 *-*-hpux*)
33651	    ans=no
33652	    ;;
33653	 *-*-mpeix*)
33654	    ans=no
33655	    ;;
33656	 *-*-ptx*)
33657	    ans=noprintf
33658	    ;;
33659	 *-*-nextstep*)
33660	    ans=_noprintf
33661	    ;;
33662	 *-*-solaris2*)
33663	    ans=noprintf
33664	    ;;
33665	 *-*-sysv4*)
33666	    ans=noprintf
33667	    ;;
33668	 *)
33669	    ans=_noprintf
33670	    ;;
33671	esac
33672	ntp_cv_nlist_noprintf=$ans
33673
33674
33675fi
33676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
33677$as_echo "$ntp_cv_nlist_noprintf" >&6; }
33678case "$ntp_cv_nlist_noprintf" in
33679 no)
33680    ;;
33681 *)
33682
33683cat >>confdefs.h <<_ACEOF
33684#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
33685_ACEOF
33686
33687    ;;
33688esac
33689
33690
33691
33692
33693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
33694$as_echo_n "checking for a default value for 'tick'... " >&6; }
33695
33696# target-dependent default for tick
33697
33698case "$host" in
33699 *-*-pc-cygwin*)
33700    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
33701    ;;
33702 *-univel-sysv*)
33703    ans=10000
33704    ;;
33705 *-*-irix*)
33706    ans=10000
33707    ;;
33708 *-*-*linux*)
33709    ans=txc.tick
33710    ;;
33711 *-*-mpeix*)
33712    ans=no
33713    ;;
33714 *-*-winnt3.5)
33715    ans='(every / 10)'
33716    ;;
33717 *-*-unicosmp*)
33718    ans=10000
33719    ;;
33720 *)
33721    ans='1000000L/hz'
33722    ;;
33723esac
33724
33725# Check whether --enable-tick was given.
33726if test "${enable_tick+set}" = set; then :
33727  enableval=$enable_tick; ans=$enableval
33728
33729fi
33730
33731
33732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33733$as_echo "$ans" >&6; }
33734
33735case "$ans" in
33736 ''|no)
33737    ;;	# HMS: I think we can only get 'no' here...
33738 *)
33739
33740cat >>confdefs.h <<_ACEOF
33741#define PRESET_TICK $ans
33742_ACEOF
33743
33744esac
33745
33746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
33747$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
33748
33749# target-specific default
33750ans='500/hz'
33751case "$host" in
33752 *-fujitsu-uxp*)
33753    case "$adjtime_is_accurate" in
33754     yes)
33755	ans='tick/16'
33756    esac
33757    ;;
33758 *-univel-sysv*)
33759    ans=80
33760    ;;
33761 *-*-aix*)
33762    case "$can_kmem" in
33763     no)
33764	ans=1000
33765	;;
33766    esac
33767    ;;
33768 *-*-domainos)	# Skippy: won't be found...
33769    case "$can_kmem" in
33770     no)
33771	ans=668
33772	;;
33773    esac
33774    ;;
33775 *-*-hpux*)
33776    case "$adjtime_is_accurate" in
33777     yes)
33778	ans='tick/16'
33779	;;
33780    esac
33781    ;;
33782 *-*-irix*)
33783    ans=150
33784    ;;
33785 *-*-mpeix*)
33786    ans=no
33787    ;;
33788 *-*-sco3.2v5.0*)
33789    ans=10000L/hz
33790    ;;
33791 *-*-winnt3.5)
33792    ans=50
33793    ;;
33794 *-*-unicosmp*)
33795    ans=150
33796    ;;
33797esac
33798
33799# Check whether --enable-tickadj was given.
33800if test "${enable_tickadj+set}" = set; then :
33801  enableval=$enable_tickadj; ans=$enableval
33802
33803fi
33804
33805
33806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33807$as_echo "$ans" >&6; }
33808
33809default_tickadj=$ans
33810
33811case "$default_tickadj" in
33812 ''|no)
33813    ;;	# HMS: I think we can only get 'no' here...
33814 *)
33815
33816cat >>confdefs.h <<_ACEOF
33817#define PRESET_TICKADJ $default_tickadj
33818_ACEOF
33819 ;;
33820esac
33821
33822# Newer versions of ReliantUNIX round adjtime() values down to
33823# 1/100s (system tick). Sigh ...
33824# Unfortunately, there is no easy way to know if particular release
33825# has this "feature" or any obvious way to test for it.
33826case "$host" in
33827 mips-sni-sysv4*)
33828
33829$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
33830
33831esac
33832
33833case "$host" in
33834 *-*-sco3.2v5*)
33835
33836$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
33837
33838esac
33839
33840ntp_cv_make_tickadj=yes
33841case "$can_kmem$ac_cv_var_tick$default_tickadj" in
33842 nonono)	# Don't read KMEM, no presets.  Bogus.
33843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
33844$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
33845    ntp_cv_make_tickadj=no
33846    ;;
33847 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
33848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
33849$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
33850    ntp_cv_make_tickadj=no
33851    ;;
33852 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
33853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
33854$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
33855    ntp_cv_make_tickadj=no
33856    ;;
33857 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
33858    ;;
33859 yesnono)	# Read KMEM, no presets.  Cool.
33860    ;;
33861 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
33862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
33863$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
33864    ;;
33865 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
33866    ;;
33867 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
33868    ;;
33869 *)		# Generally bogus.
33870    as_fn_error $? "This shouldn't happen." "$LINENO" 5
33871    ;;
33872esac
33873
33874
33875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
33876$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
33877if ${ac_cv_make_ntptime+:} false; then :
33878  $as_echo_n "(cached) " >&6
33879else
33880  case "$host" in
33881 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
33882     yesyes)
33883	ans=yes
33884	;;
33885     *)
33886	ans=no
33887	;;
33888    esac
33889    ;;
33890esac
33891ac_cv_make_ntptime=$ans
33892fi
33893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
33894$as_echo "$ac_cv_make_ntptime" >&6; }
33895case "$ac_cv_make_ntptime" in
33896 yes)
33897    MAKE_NTPTIME=ntptime
33898    ;;
33899 *)
33900    NTPTIME_DB=
33901    NTPTIME_DL=
33902    NTPTIME_DS=
33903    NTPTIME_MS=
33904    ;;
33905esac
33906
33907
33908case "$host" in
33909 mips-sni-sysv4*)
33910    # tickadj is pretty useless on newer versions of ReliantUNIX
33911    # Do not bother
33912    ntp_cv_make_tickadj=no
33913    ;;
33914 *-*-irix*)
33915    ntp_cv_make_tickadj=no
33916    ;;
33917 *-*-solaris2*)
33918    # DLM says tickadj is a no-no starting with solaris2.5
33919    case "$host" in
33920     *-*-solaris2.1[0-9]*)
33921	ntp_cv_make_tickadj=no
33922	;;
33923     *-*-solaris2.[0-4]*) ;;
33924     *) ntp_cv_make_tickadj=no ;;
33925    esac
33926    ;;
33927 *-*-unicosmp*)
33928    ntp_cv_make_tickadj=no
33929    ;;
33930esac
33931
33932#
33933# Despite all the above, we always make tickadj.  Setting
33934# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
33935# report that the configuration variable was cached.  It may
33936# be better to simply remove the hunk above, I did not want
33937# to remove it if there is hope it will be used again.
33938#
33939{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
33940
33941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
33942$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
33943if ${ntp_cv_make_tickadj+:} false; then :
33944  $as_echo_n "(cached) " >&6
33945else
33946  ntp_cv_make_tickadj=yes
33947
33948fi
33949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
33950$as_echo "$ntp_cv_make_tickadj" >&6; }
33951case "$ntp_cv_make_tickadj" in
33952 yes)
33953    MAKE_TICKADJ=tickadj
33954    ;;
33955 *)
33956    CALC_TICKADJ_DB=
33957    CALC_TICKADJ_DL=
33958    CALC_TICKADJ_DS=
33959    CALC_TICKADJ_MS=
33960    TICKADJ_DB=
33961    TICKADJ_DL=
33962    TICKADJ_DS=
33963    TICKADJ_MS=
33964    ;;
33965esac
33966
33967
33968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
33969$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
33970if ${ntp_cv_make_timetrim+:} false; then :
33971  $as_echo_n "(cached) " >&6
33972else
33973
33974	case "$host" in
33975	 *-*-irix*)
33976	    ntp_cv_make_timetrim=yes
33977	    ;;
33978	 *-*-unicosmp*)
33979	    ntp_cv_make_timetrim=yes
33980	    ;;
33981	 *)
33982	    ntp_cv_make_timetrim=no
33983	    ;;
33984	esac
33985
33986
33987fi
33988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
33989$as_echo "$ntp_cv_make_timetrim" >&6; }
33990case "$ntp_cv_make_timetrim" in
33991 yes)
33992    MAKE_TIMETRIM=timetrim
33993    ;;
33994 *) TIMETRIM_DB=
33995    TIMETRIM_DL=
33996    TIMETRIM_DS=
33997    TIMETRIM_MS=
33998    ;;
33999esac
34000
34001
34002
34003
34004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
34005$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
34006# Check whether --enable-simulator was given.
34007if test "${enable_simulator+set}" = set; then :
34008  enableval=$enable_simulator; ans=$enableval
34009else
34010  ans=no
34011
34012fi
34013
34014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34015$as_echo "$ans" >&6; }
34016case "$ans" in
34017 yes)
34018    MAKE_NTPDSIM=ntpdsim
34019    MAKE_LIBNTPSIM=libntpsim.a
34020    ;;
34021 *)
34022    NTPDSIM_DB=
34023    NTPDSIM_DL=
34024    NTPDSIM_DS=
34025    NTPDSIM_MS=
34026    ;;
34027esac
34028
34029case "$build" in
34030 $host)
34031    ;;
34032 *) case "$host" in
34033     *-*-vxworks*)
34034	LDFLAGS="$LDFLAGS -r"
34035	;;
34036    esac
34037    ;;
34038esac
34039
34040
34041
34042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
34043$as_echo_n "checking if sntp will be built... " >&6; }
34044
34045# Check whether --with-sntp was given.
34046if test "${with_sntp+set}" = set; then :
34047  withval=$with_sntp;
34048else
34049  with_sntp="${withsntp=yes}"
34050
34051fi
34052
34053case "$with_sntp" in
34054 no)
34055    SNTP=
34056    ;;
34057 *)
34058    SNTP=sntp
34059    ;;
34060esac
34061
34062 if test -n "$SNTP"; then
34063  BUILD_SNTP_TRUE=
34064  BUILD_SNTP_FALSE='#'
34065else
34066  BUILD_SNTP_TRUE='#'
34067  BUILD_SNTP_FALSE=
34068fi
34069
34070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
34071$as_echo "$with_sntp" >&6; }
34072
34073
34074
34075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
34076$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
34077
34078# Check whether --with-ntpsnmpd was given.
34079if test "${with_ntpsnmpd+set}" = set; then :
34080  withval=$with_ntpsnmpd; ans=$withval
34081else
34082
34083	case "$PATH_NET_SNMP_CONFIG" in
34084	 /*)	ans=yes ;;
34085	 *)	ans=no  ;;
34086	esac
34087
34088
34089fi
34090
34091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34092$as_echo "$ans" >&6; }
34093case "$ans" in
34094 yes)
34095    case "$PATH_NET_SNMP_CONFIG" in
34096     /*)
34097	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
34098
34099	# HMS: we really want to separate CPPFLAGS and CFLAGS
34100	foo=`$PATH_NET_SNMP_CONFIG --cflags`
34101	SNMP_CPPFLAGS=
34102	SNMP_CFLAGS=
34103	for i in $foo; do
34104	    case "$i" in
34105	     -D*|-U*|-I*)
34106		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
34107		;;
34108	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
34109		;;
34110	    esac
34111	done
34112
34113
34114
34115	save_CFLAGS=$CFLAGS
34116	save_CPPFLAGS=$CPPFLAGS
34117	save_LIBS=$LIBS
34118	CFLAGS=$SNMP_CFLAGS
34119	CPPFLAGS=$SNMP_CPPFLAGS
34120
34121	ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
34122if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
34123  MAKE_NTPSNMPD=ntpsnmpd
34124else
34125  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
34126$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
34127
34128fi
34129
34130
34131
34132	# Do this last, as we're messing up LIBS.
34133	# check -lnetsnmp for netsnmp_daemonize
34134	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
34135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
34136$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
34137if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
34138  $as_echo_n "(cached) " >&6
34139else
34140  ac_check_lib_save_LIBS=$LIBS
34141LIBS="-lnetsnmp  $LIBS"
34142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34143/* end confdefs.h.  */
34144
34145/* Override any GCC internal prototype to avoid an error.
34146   Use char because int might match the return type of a GCC
34147   builtin and then its argument prototype would still apply.  */
34148#ifdef __cplusplus
34149extern "C"
34150#endif
34151char netsnmp_daemonize ();
34152int
34153main ()
34154{
34155return netsnmp_daemonize ();
34156  ;
34157  return 0;
34158}
34159_ACEOF
34160if ac_fn_c_try_link "$LINENO"; then :
34161  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
34162else
34163  ac_cv_lib_netsnmp_netsnmp_daemonize=no
34164fi
34165rm -f core conftest.err conftest.$ac_objext \
34166    conftest$ac_exeext conftest.$ac_ext
34167LIBS=$ac_check_lib_save_LIBS
34168fi
34169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
34170$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
34171if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
34172  ans=yes
34173else
34174  ans=no
34175
34176fi
34177
34178	case "$ans" in
34179	 no)
34180
34181$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
34182
34183	esac
34184
34185	CFLAGS=$save_CFLAGS
34186	{ save_CFLAGS=; unset save_CFLAGS;}
34187	CPPFLAGS=$save_CPPFLAGS
34188	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
34189	LIBS=$save_LIBS
34190	{ save_LIBS=; unset save_LIBS;}
34191	;;
34192     *)
34193	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
34194$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
34195	;;
34196    esac
34197    ;;
34198esac
34199
34200
34201case "$MAKE_NTPSNMPD" in
34202 '')
34203    NTPSNMPD_DB=
34204    NTPSNMPD_DL=
34205    NTPSNMPD_DS=
34206    NTPSNMPD_MS=
34207    ;;
34208esac
34209
34210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
34211$as_echo_n "checking if we should always slew the time... " >&6; }
34212
34213# target-specific defaults
34214
34215case "$host" in
34216 *-apple-aux[23]*)
34217    ans=yes
34218    ;;
34219 *-*-bsdi[012]*)
34220    ans=no
34221    ;;
34222 *-*-bsdi*)
34223    ans=yes
34224    ;;
34225 *-*-openvms*)	# HMS: won't be found
34226    ans=yes
34227    ;;
34228 *) ans=no
34229    ;;
34230esac
34231
34232# --enable-slew-always / --disable-slew-always overrides default
34233
34234# Check whether --enable-slew-always was given.
34235if test "${enable_slew_always+set}" = set; then :
34236  enableval=$enable_slew_always; ans=$enableval
34237
34238fi
34239
34240
34241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34242$as_echo "$ans" >&6; }
34243
34244case "$ans" in
34245 yes)
34246
34247$as_echo "#define SLEWALWAYS 1" >>confdefs.h
34248
34249esac
34250
34251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
34252$as_echo_n "checking if we should step and slew the time... " >&6; }
34253
34254case "$host" in
34255 *-sni-sysv*)
34256    ans=yes
34257    ;;
34258 *-univel-sysv*)
34259    ans=no
34260    ;;
34261 *-*-ptx*)
34262    ans=yes
34263    ;;
34264 *-*-solaris2.1[0-9]*)
34265    ans=no
34266    ;;
34267 *-*-solaris2.[012]*)
34268    ans=yes
34269    ;;
34270 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
34271    ans=yes
34272    ;;
34273 *) ans=no
34274    ;;
34275esac
34276
34277# Check whether --enable-step-slew was given.
34278if test "${enable_step_slew+set}" = set; then :
34279  enableval=$enable_step_slew; ans=$enableval
34280
34281fi
34282
34283
34284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34285$as_echo "$ans" >&6; }
34286
34287case "$ans" in
34288 yes)
34289
34290$as_echo "#define STEP_SLEW 1" >>confdefs.h
34291
34292esac
34293
34294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
34295$as_echo_n "checking if ntpdate should step the time... " >&6; }
34296
34297case "$host" in
34298 *-apple-aux[23]*)
34299    ans=yes
34300    ;;
34301 *) ans=no
34302    ;;
34303esac
34304
34305# Check whether --enable-ntpdate-step was given.
34306if test "${enable_ntpdate_step+set}" = set; then :
34307  enableval=$enable_ntpdate_step; ans=$enableval
34308
34309fi
34310
34311
34312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34313$as_echo "$ans" >&6; }
34314
34315case "$ans" in
34316 yes)
34317
34318$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
34319
34320esac
34321
34322
34323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
34324$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
34325
34326case "$host" in
34327 *-*-nextstep*)
34328    ans=yes
34329    ;;
34330 *-*-openvms*)	# HMS: won't be found
34331    ans=yes
34332    ;;
34333 *)
34334    ans=no
34335    ;;
34336esac
34337
34338# Check whether --enable-hourly-todr-sync was given.
34339if test "${enable_hourly_todr_sync+set}" = set; then :
34340  enableval=$enable_hourly_todr_sync; ans=$enableval
34341
34342fi
34343
34344
34345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34346$as_echo "$ans" >&6; }
34347
34348case "$ac_cv_var_sync_todr" in
34349 yes)
34350
34351$as_echo "#define DOSYNCTODR 1" >>confdefs.h
34352 ;;
34353esac
34354
34355
34356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
34357$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
34358
34359case "$host" in
34360 *-*-solaris2.6)
34361    unamev=`uname -v`
34362    case "$unamev" in
34363     Generic_105181-*)
34364	old_IFS="$IFS"
34365	IFS="-"
34366	set $unamev
34367	IFS="$old_IFS"
34368	if test "$2" -ge 17
34369	then
34370	    # Generic_105181-17 and higher
34371	    ans=no
34372	else
34373	    ans=yes
34374	fi
34375	;;
34376     *)
34377	ans=yes
34378	;;
34379    esac
34380    ;;
34381 *-*-solaris2.7)
34382    unamev=`uname -v`
34383    case "$unamev" in
34384     Generic_106541-*)
34385	old_IFS="$IFS"
34386	IFS="-"
34387	set $unamev
34388	IFS="$old_IFS"
34389	if test "$2" -ge 07
34390	then
34391	    # Generic_106541-07 and higher
34392	    ans=no
34393	else
34394	    ans=yes
34395	fi
34396	;;
34397     *)
34398	ans=yes
34399	;;
34400    esac
34401    ;;
34402 *)
34403    ans=no
34404    ;;
34405esac
34406
34407# Check whether --enable-kernel-fll-bug was given.
34408if test "${enable_kernel_fll_bug+set}" = set; then :
34409  enableval=$enable_kernel_fll_bug; ans=$enableval
34410
34411fi
34412
34413
34414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34415$as_echo "$ans" >&6; }
34416
34417case "$ans" in
34418 yes)
34419
34420$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
34421
34422esac
34423
34424
34425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
34426$as_echo_n "checking if we want new session key behavior... " >&6; }
34427# Check whether --enable-bug1243-fix was given.
34428if test "${enable_bug1243_fix+set}" = set; then :
34429  enableval=$enable_bug1243_fix; ans=$enableval
34430else
34431  ans=yes
34432
34433fi
34434
34435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34436$as_echo "$ans" >&6; }
34437case "$ans" in
34438 no)
34439
34440$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
34441
34442esac
34443
34444
34445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
34446$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
34447
34448case "$host" in
34449 *-*-solaris2.[89])
34450    ans=yes
34451    ;;
34452 *-*-solaris2.1[0-9]*)
34453    ans=yes
34454    ;;
34455 *) ans=no
34456    ;;
34457esac
34458
34459# Check whether --enable-irig-sawtooth was given.
34460if test "${enable_irig_sawtooth+set}" = set; then :
34461  enableval=$enable_irig_sawtooth; ans=$enableval
34462
34463fi
34464
34465
34466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34467$as_echo "$ans" >&6; }
34468
34469case "$ans" in
34470 yes)
34471
34472$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
34473
34474esac
34475
34476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
34477$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
34478
34479# Check whether --enable-nist was given.
34480if test "${enable_nist+set}" = set; then :
34481  enableval=$enable_nist; ans=$enableval
34482else
34483  ans=no
34484
34485fi
34486
34487
34488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34489$as_echo "$ans" >&6; }
34490
34491case "$ans" in
34492 yes)
34493
34494$as_echo "#define LOCKCLOCK 1" >>confdefs.h
34495 ;;
34496esac
34497
34498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
34499$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
34500
34501# Check whether --enable-ntp-signd was given.
34502if test "${enable_ntp_signd+set}" = set; then :
34503  enableval=$enable_ntp_signd; ans=$enableval
34504else
34505  ans=no
34506
34507fi
34508
34509
34510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34511$as_echo "$ans" >&6; }
34512
34513case "$ans" in
34514 no)
34515    ntp_signd_path=
34516    ;;
34517 yes)
34518    ntp_signd_path=/var/run/ntp_signd
34519    ;;
34520 *)
34521    ntp_signd_path="$ans"
34522esac
34523
34524case "$ntp_signd_path" in
34525 '')
34526    ;;
34527 *)
34528
34529$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
34530
34531
34532cat >>confdefs.h <<_ACEOF
34533#define NTP_SIGND_PATH "$ntp_signd_path"
34534_ACEOF
34535
34536    ;;
34537esac
34538
34539for ac_header in libscf.h
34540do :
34541  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
34542if test "x$ac_cv_header_libscf_h" = xyes; then :
34543  cat >>confdefs.h <<_ACEOF
34544#define HAVE_LIBSCF_H 1
34545_ACEOF
34546
34547fi
34548
34549done
34550
34551LSCF=
34552case "$ac_cv_header_libscf_h" in
34553 yes)
34554    LSCF='-lscf'
34555esac
34556
34557
34558
34559
34560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
34561$as_echo_n "checking for struct sockaddr_storage... " >&6; }
34562if ${ntp_cv_sockaddr_storage+:} false; then :
34563  $as_echo_n "(cached) " >&6
34564else
34565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34566/* end confdefs.h.  */
34567
34568		#ifdef HAVE_SYS_TYPES_H
34569		# include <sys/types.h>
34570		#endif
34571		#ifdef HAVE_SYS_SOCKET_H
34572		# include <sys/socket.h>
34573		#endif
34574		#ifdef HAVE_NETINET_IN_H
34575		# include <netinet/in.h>
34576		#endif
34577
34578int
34579main ()
34580{
34581
34582		struct sockaddr_storage n;
34583
34584
34585  ;
34586  return 0;
34587}
34588_ACEOF
34589if ac_fn_c_try_compile "$LINENO"; then :
34590  ntp_cv_sockaddr_storage=yes
34591else
34592  ntp_cv_sockaddr_storage=no
34593
34594fi
34595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34596
34597fi
34598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
34599$as_echo "$ntp_cv_sockaddr_storage" >&6; }
34600case "$ntp_cv_sockaddr_storage" in
34601 yes)
34602
34603$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34604
34605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
34606$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
34607if ${ntp_cv_have___ss_family+:} false; then :
34608  $as_echo_n "(cached) " >&6
34609else
34610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34611/* end confdefs.h.  */
34612
34613		    #ifdef HAVE_SYS_TYPES_H
34614		    # include <sys/types.h>
34615		    #endif
34616		    #ifdef HAVE_SYS_SOCKET_H
34617		    # include <sys/socket.h>
34618		    #endif
34619		    #ifdef HAVE_NETINET_IN_H
34620		    # include <netinet/in.h>
34621		    #endif
34622
34623int
34624main ()
34625{
34626
34627		    struct sockaddr_storage s;
34628		    s.__ss_family = 1;
34629
34630
34631  ;
34632  return 0;
34633}
34634_ACEOF
34635if ac_fn_c_try_compile "$LINENO"; then :
34636  ntp_cv_have___ss_family=yes
34637else
34638  ntp_cv_have___ss_family=no
34639
34640fi
34641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34642
34643fi
34644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
34645$as_echo "$ntp_cv_have___ss_family" >&6; }
34646    case "$ntp_cv_have___ss_family" in
34647     yes)
34648
34649$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
34650
34651    esac
34652
34653esac
34654
34655
34656#
34657# Look for in_port_t.
34658#
34659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
34660$as_echo_n "checking for in_port_t... " >&6; }
34661if ${isc_cv_have_in_port_t+:} false; then :
34662  $as_echo_n "(cached) " >&6
34663else
34664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34665/* end confdefs.h.  */
34666
34667		#include <sys/types.h>
34668		#include <netinet/in.h>
34669
34670int
34671main ()
34672{
34673
34674		in_port_t port = 25;
34675		return (0);
34676
34677
34678  ;
34679  return 0;
34680}
34681_ACEOF
34682if ac_fn_c_try_compile "$LINENO"; then :
34683  isc_cv_have_in_port_t=yes
34684else
34685  isc_cv_have_in_port_t=no
34686
34687fi
34688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34689
34690fi
34691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
34692$as_echo "$isc_cv_have_in_port_t" >&6; }
34693case "$isc_cv_have_in_port_t" in
34694 no)
34695
34696$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
34697
34698esac
34699
34700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
34701$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
34702if ${ntp_cv_getsockname_socklen_type+:} false; then :
34703  $as_echo_n "(cached) " >&6
34704else
34705
34706    getsockname_socklen_type_found=no
34707    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
34708	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
34709	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34710/* end confdefs.h.  */
34711
34712			#ifdef HAVE_SYS_TYPES_H
34713			# include <sys/types.h>
34714			#endif
34715			#ifdef HAVE_SYS_SOCKET_H
34716			# include <sys/socket.h>
34717			#endif
34718
34719int
34720main ()
34721{
34722
34723			extern
34724			getsockname(int, $getsockname_arg2,
34725				$ntp_cv_getsockname_socklen_type *);
34726
34727
34728  ;
34729  return 0;
34730}
34731_ACEOF
34732if ac_fn_c_try_compile "$LINENO"; then :
34733  getsockname_socklen_type_found=yes ; break 2
34734fi
34735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34736	done
34737    done
34738    case "$getsockname_socklen_type_found" in
34739     no)
34740	ntp_cv_getsockname_socklen_type='socklen_t'
34741    esac
34742    { getsockname_arg2=; unset getsockname_arg2;}
34743    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
34744
34745
34746fi
34747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
34748$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
34749
34750cat >>confdefs.h <<_ACEOF
34751#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
34752_ACEOF
34753
34754
34755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
34756$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
34757if ${isc_cv_platform_havesalen+:} false; then :
34758  $as_echo_n "(cached) " >&6
34759else
34760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34761/* end confdefs.h.  */
34762
34763		#include <sys/types.h>
34764		#include <sys/socket.h>
34765
34766int
34767main ()
34768{
34769
34770		extern struct sockaddr *ps;
34771		return ps->sa_len;
34772
34773
34774  ;
34775  return 0;
34776}
34777_ACEOF
34778if ac_fn_c_try_compile "$LINENO"; then :
34779  isc_cv_platform_havesalen=yes
34780else
34781  isc_cv_platform_havesalen=no
34782
34783fi
34784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34785
34786fi
34787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
34788$as_echo "$isc_cv_platform_havesalen" >&6; }
34789case "$isc_cv_platform_havesalen" in
34790 yes)
34791
34792$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
34793
34794esac
34795
34796# Check whether --enable-ipv6 was given.
34797if test "${enable_ipv6+set}" = set; then :
34798  enableval=$enable_ipv6;
34799fi
34800
34801
34802case "$enable_ipv6" in
34803 yes|''|autodetect)
34804    case "$host" in
34805     powerpc-ibm-aix4*)
34806	;;
34807     *)
34808
34809$as_echo "#define WANT_IPV6 1" >>confdefs.h
34810
34811	;;
34812    esac
34813    ;;
34814 no)
34815    ;;
34816esac
34817
34818
34819case "$host" in
34820 *-*-darwin*)
34821
34822$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
34823
34824esac
34825
34826
34827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
34828$as_echo_n "checking for IPv6 structures... " >&6; }
34829if ${isc_cv_found_ipv6+:} false; then :
34830  $as_echo_n "(cached) " >&6
34831else
34832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34833/* end confdefs.h.  */
34834
34835		#include <sys/types.h>
34836		#include <sys/socket.h>
34837		#include <netinet/in.h>
34838
34839int
34840main ()
34841{
34842
34843		struct sockaddr_in6 sin6;
34844
34845
34846  ;
34847  return 0;
34848}
34849_ACEOF
34850if ac_fn_c_try_compile "$LINENO"; then :
34851  isc_cv_found_ipv6=yes
34852else
34853  isc_cv_found_ipv6=no
34854
34855fi
34856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34857
34858fi
34859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
34860$as_echo "$isc_cv_found_ipv6" >&6; }
34861
34862#
34863# See whether IPv6 support is provided via a Kame add-on.
34864# This is done before other IPv6 linking tests so LIBS is properly set.
34865#
34866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
34867$as_echo_n "checking for Kame IPv6 support... " >&6; }
34868
34869# Check whether --with-kame was given.
34870if test "${with_kame+set}" = set; then :
34871  withval=$with_kame; use_kame="$withval"
34872else
34873  use_kame="no"
34874
34875fi
34876
34877case "$use_kame" in
34878 no)
34879    ;;
34880 yes)
34881    kame_path=/usr/local/v6
34882    ;;
34883 *)
34884    kame_path="$use_kame"
34885    ;;
34886esac
34887case "$use_kame" in
34888 no)
34889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34890$as_echo "no" >&6; }
34891    ;;
34892 *)
34893    if test -f $kame_path/lib/libinet6.a; then
34894	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
34895$as_echo "$kame_path/lib/libinet6.a" >&6; }
34896	LIBS="-L$kame_path/lib -linet6 $LIBS"
34897    else
34898	as_fn_error $? "$kame_path/lib/libinet6.a not found.
34899
34900Please choose the proper path with the following command:
34901
34902    configure --with-kame=PATH
34903" "$LINENO" 5
34904    fi
34905    ;;
34906esac
34907
34908#
34909# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
34910# Including it on Kame-using platforms is very bad, though, because
34911# Kame uses #error against direct inclusion.   So include it on only
34912# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
34913# This is done before the in6_pktinfo check because that's what
34914# netinet6/in6.h is needed for.
34915#
34916case "$host" in
34917 *-bsdi4.[01]*)
34918
34919$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
34920
34921    isc_netinet6in6_hack="#include <netinet6/in6.h>"
34922    ;;
34923 *)
34924    isc_netinet6in6_hack=""
34925    ;;
34926esac
34927
34928#
34929# This is similar to the netinet6/in6.h issue.
34930#
34931case "$host" in
34932 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
34933
34934$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
34935
34936    isc_netinetin6_hack="#include <netinet/in6.h>"
34937    ;;
34938 *)
34939    isc_netinetin6_hack=""
34940    ;;
34941esac
34942
34943
34944case "$isc_cv_found_ipv6" in
34945 yes)
34946
34947$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
34948
34949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
34950$as_echo_n "checking for in6_pktinfo... " >&6; }
34951if ${isc_cv_have_in6_pktinfo+:} false; then :
34952  $as_echo_n "(cached) " >&6
34953else
34954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34955/* end confdefs.h.  */
34956
34957		    #include <sys/types.h>
34958		    #include <sys/socket.h>
34959		    #include <netinet/in.h>
34960		    $isc_netinetin6_hack
34961		    $isc_netinet6in6_hack
34962
34963int
34964main ()
34965{
34966
34967		    struct in6_pktinfo xyzzy;
34968
34969
34970  ;
34971  return 0;
34972}
34973_ACEOF
34974if ac_fn_c_try_compile "$LINENO"; then :
34975  isc_cv_have_in6_pktinfo=yes
34976else
34977  isc_cv_have_in6_pktinfo=no
34978
34979fi
34980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34981
34982fi
34983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
34984$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
34985    case "$isc_cv_have_in6_pktinfo" in
34986     yes)
34987
34988$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
34989
34990    esac
34991
34992
34993    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
34994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
34995$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
34996if ${isc_cv_have_sin6_scope_id+:} false; then :
34997  $as_echo_n "(cached) " >&6
34998else
34999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35000/* end confdefs.h.  */
35001
35002		    #include <sys/types.h>
35003		    #include <sys/socket.h>
35004		    #include <netinet/in.h>
35005		    $isc_netinetin6_hack
35006		    $isc_netinet6in6_hack
35007
35008int
35009main ()
35010{
35011
35012		    struct sockaddr_in6 xyzzy;
35013		    xyzzy.sin6_scope_id = 0;
35014
35015
35016  ;
35017  return 0;
35018}
35019_ACEOF
35020if ac_fn_c_try_compile "$LINENO"; then :
35021  isc_cv_have_sin6_scope_id=yes
35022else
35023  isc_cv_have_sin6_scope_id=no
35024
35025fi
35026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35027
35028fi
35029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
35030$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
35031
35032    case "$isc_cv_have_sin6_scope_id" in
35033     yes)
35034
35035$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
35036
35037    esac
35038esac
35039
35040
35041# We need this check run even without isc_cv_found_ipv6=yes
35042
35043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
35044$as_echo_n "checking for in6addr_any... " >&6; }
35045if ${isc_cv_in6addr_any_links+:} false; then :
35046  $as_echo_n "(cached) " >&6
35047else
35048
35049	SAVED_LIBS="$LIBS"
35050	LIBS="$LDADD_LIBNTP $LIBS"
35051	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35052/* end confdefs.h.  */
35053$ac_includes_default
35054		    #include <sys/socket.h>
35055		    #include <netinet/in.h>
35056		    $isc_netinetin6_hack
35057		    $isc_netinet6in6_hack
35058
35059int
35060main ()
35061{
35062
35063		    printf("%x", in6addr_any.s6_addr[15]);
35064
35065
35066  ;
35067  return 0;
35068}
35069_ACEOF
35070if ac_fn_c_try_link "$LINENO"; then :
35071  isc_cv_in6addr_any_links=yes
35072else
35073  isc_cv_in6addr_any_links=no
35074
35075fi
35076rm -f core conftest.err conftest.$ac_objext \
35077    conftest$ac_exeext conftest.$ac_ext
35078	LIBS="$SAVED_LIBS"
35079	{ SAVED_LIBS=; unset SAVED_LIBS;}
35080
35081
35082fi
35083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
35084$as_echo "$isc_cv_in6addr_any_links" >&6; }
35085
35086case "$isc_cv_in6addr_any_links" in
35087 no)
35088
35089$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
35090
35091esac
35092
35093
35094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
35095$as_echo_n "checking for struct if_laddrconf... " >&6; }
35096if ${isc_cv_struct_if_laddrconf+:} false; then :
35097  $as_echo_n "(cached) " >&6
35098else
35099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35100/* end confdefs.h.  */
35101
35102		#include <sys/types.h>
35103		#include <net/if6.h>
35104
35105int
35106main ()
35107{
35108
35109		struct if_laddrconf a;
35110
35111
35112  ;
35113  return 0;
35114}
35115_ACEOF
35116if ac_fn_c_try_compile "$LINENO"; then :
35117  isc_cv_struct_if_laddrconf=yes
35118else
35119  isc_cv_struct_if_laddrconf=no
35120
35121fi
35122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35123
35124fi
35125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
35126$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
35127
35128case "$isc_cv_struct_if_laddrconf" in
35129 yes)
35130
35131$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
35132
35133esac
35134
35135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
35136$as_echo_n "checking for struct if_laddrreq... " >&6; }
35137if ${isc_cv_struct_if_laddrreq+:} false; then :
35138  $as_echo_n "(cached) " >&6
35139else
35140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35141/* end confdefs.h.  */
35142
35143		#include <sys/types.h>
35144		#include <net/if6.h>
35145
35146int
35147main ()
35148{
35149
35150		struct if_laddrreq a;
35151
35152
35153  ;
35154  return 0;
35155}
35156_ACEOF
35157if ac_fn_c_try_compile "$LINENO"; then :
35158  isc_cv_struct_if_laddrreq=yes
35159else
35160  isc_cv_struct_if_laddrreq=no
35161
35162fi
35163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35164
35165fi
35166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
35167$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
35168
35169case "$isc_cv_struct_if_laddrreq" in
35170 yes)
35171
35172$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
35173
35174esac
35175
35176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
35177$as_echo_n "checking for multicast IP support... " >&6; }
35178if ${ntp_cv_multicast+:} false; then :
35179  $as_echo_n "(cached) " >&6
35180else
35181
35182	ntp_cv_multicast=no
35183	case "$host" in
35184	 i386-sequent-sysv4)
35185	    ;;
35186	 *)
35187	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35188/* end confdefs.h.  */
35189
35190			#ifdef HAVE_NETINET_IN_H
35191			# include <netinet/in.h>
35192			#endif
35193
35194int
35195main ()
35196{
35197
35198			struct ip_mreq ipmr;
35199			ipmr.imr_interface.s_addr = 0;
35200
35201
35202  ;
35203  return 0;
35204}
35205_ACEOF
35206if ac_fn_c_try_compile "$LINENO"; then :
35207  ntp_cv_multicast=yes
35208fi
35209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35210	    ;;
35211	esac
35212
35213
35214fi
35215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
35216$as_echo "$ntp_cv_multicast" >&6; }
35217case "$ntp_cv_multicast" in
35218 yes)
35219
35220$as_echo "#define MCAST 1" >>confdefs.h
35221
35222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
35223$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
35224if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
35225  $as_echo_n "(cached) " >&6
35226else
35227
35228	    case "$host" in
35229	     *-*-netbsd*|*-*-*linux*)
35230		ntp_cv_typeof_ip_multicast_loop=u_int
35231		;;
35232	     *)
35233		ntp_cv_typeof_ip_multicast_loop=u_char
35234		;;
35235	    esac
35236
35237
35238fi
35239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
35240$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
35241
35242cat >>confdefs.h <<_ACEOF
35243#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
35244_ACEOF
35245
35246esac
35247
35248# Check whether --enable-getifaddrs was given.
35249if test "${enable_getifaddrs+set}" = set; then :
35250  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
35251else
35252  want_getifaddrs="yes"
35253
35254fi
35255
35256
35257case $want_getifaddrs in
35258 glibc)
35259    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
35260$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
35261esac
35262case $want_getifaddrs in
35263 no)
35264    ;;
35265 *)
35266    SAVED_LIBS="$LIBS"
35267    LIBS="$LDADD_LIBNTP $LIBS"
35268    for ac_func in getifaddrs
35269do :
35270  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
35271if test "x$ac_cv_func_getifaddrs" = xyes; then :
35272  cat >>confdefs.h <<_ACEOF
35273#define HAVE_GETIFADDRS 1
35274_ACEOF
35275
35276fi
35277done
35278
35279    LIBS="$SAVED_LIBS"
35280    { SAVED_LIBS=; unset SAVED_LIBS;}
35281    ;;
35282esac
35283
35284#
35285# Check for if_nametoindex() for IPv6 scoped addresses support
35286#
35287case "$host" in
35288 *-hp-hpux*)
35289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
35290$as_echo_n "checking for library containing if_nametoindex... " >&6; }
35291if ${ac_cv_search_if_nametoindex+:} false; then :
35292  $as_echo_n "(cached) " >&6
35293else
35294  ac_func_search_save_LIBS=$LIBS
35295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35296/* end confdefs.h.  */
35297
35298/* Override any GCC internal prototype to avoid an error.
35299   Use char because int might match the return type of a GCC
35300   builtin and then its argument prototype would still apply.  */
35301#ifdef __cplusplus
35302extern "C"
35303#endif
35304char if_nametoindex ();
35305int
35306main ()
35307{
35308return if_nametoindex ();
35309  ;
35310  return 0;
35311}
35312_ACEOF
35313for ac_lib in '' ipv6; do
35314  if test -z "$ac_lib"; then
35315    ac_res="none required"
35316  else
35317    ac_res=-l$ac_lib
35318    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35319  fi
35320  if ac_fn_c_try_link "$LINENO"; then :
35321  ac_cv_search_if_nametoindex=$ac_res
35322fi
35323rm -f core conftest.err conftest.$ac_objext \
35324    conftest$ac_exeext
35325  if ${ac_cv_search_if_nametoindex+:} false; then :
35326  break
35327fi
35328done
35329if ${ac_cv_search_if_nametoindex+:} false; then :
35330
35331else
35332  ac_cv_search_if_nametoindex=no
35333fi
35334rm conftest.$ac_ext
35335LIBS=$ac_func_search_save_LIBS
35336fi
35337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
35338$as_echo "$ac_cv_search_if_nametoindex" >&6; }
35339ac_res=$ac_cv_search_if_nametoindex
35340if test "$ac_res" != no; then :
35341  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35342
35343fi
35344
35345esac
35346SAVED_LIBS="$LIBS"
35347LIBS="$LDADD_LIBNTP $LIBS"
35348for ac_func in if_nametoindex
35349do :
35350  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
35351if test "x$ac_cv_func_if_nametoindex" = xyes; then :
35352  cat >>confdefs.h <<_ACEOF
35353#define HAVE_IF_NAMETOINDEX 1
35354_ACEOF
35355
35356fi
35357done
35358
35359LIBS="$SAVED_LIBS"
35360{ SAVED_LIBS=; unset SAVED_LIBS;}
35361case "$ac_cv_func_if_nametoindex" in
35362 yes)
35363
35364$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
35365
35366esac
35367
35368
35369
35370
35371#
35372# Look for a sysctl call to get the list of network interfaces.
35373#
35374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
35375$as_echo_n "checking for interface list sysctl... " >&6; }
35376if ${ntp_cv_iflist_sysctl+:} false; then :
35377  $as_echo_n "(cached) " >&6
35378else
35379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35380/* end confdefs.h.  */
35381
35382	    #include <sys/param.h>
35383	    #include <sys/sysctl.h>
35384	    #include <sys/socket.h>
35385	    #ifdef NET_RT_IFLIST
35386		found_rt_iflist
35387	    #endif
35388
35389_ACEOF
35390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35391  $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
35392  ntp_cv_iflist_sysctl=yes
35393else
35394  ntp_cv_iflist_sysctl=no
35395
35396fi
35397rm -f conftest*
35398
35399
35400fi
35401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
35402$as_echo "$ntp_cv_iflist_sysctl" >&6; }
35403case "$ntp_cv_iflist_sysctl" in
35404 yes)
35405
35406$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
35407
35408esac
35409
35410###
35411
35412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
35413$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
35414# Check whether --enable-saveconfig was given.
35415if test "${enable_saveconfig+set}" = set; then :
35416  enableval=$enable_saveconfig; ntp_ok=$enableval
35417else
35418  ntp_ok=yes
35419
35420fi
35421
35422ntp_saveconfig_enabled=0
35423case "$ntp_ok" in
35424 yes)
35425    ntp_saveconfig_enabled=1
35426
35427$as_echo "#define SAVECONFIG 1" >>confdefs.h
35428
35429    ;;
35430esac
35431 if test x$ntp_saveconfig_enabled = x1; then
35432  SAVECONFIG_ENABLED_TRUE=
35433  SAVECONFIG_ENABLED_FALSE='#'
35434else
35435  SAVECONFIG_ENABLED_TRUE='#'
35436  SAVECONFIG_ENABLED_FALSE=
35437fi
35438
35439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
35440$as_echo "$ntp_ok" >&6; }
35441
35442
35443gta=false
35444
35445# Check whether --with-gtest was given.
35446if test "${with_gtest+set}" = set; then :
35447  withval=$with_gtest; try_gtest=$withval
35448else
35449  try_gtest=yes
35450
35451fi
35452
35453case "$try_gtest" in
35454 yes)
35455    # Extract the first word of "gtest-config", so it can be a program name with args.
35456set dummy gtest-config; ac_word=$2
35457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35458$as_echo_n "checking for $ac_word... " >&6; }
35459if ${ac_cv_path_GTEST_CONFIG+:} false; then :
35460  $as_echo_n "(cached) " >&6
35461else
35462  case $GTEST_CONFIG in
35463  [\\/]* | ?:[\\/]*)
35464  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
35465  ;;
35466  *)
35467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35468for as_dir in $PATH
35469do
35470  IFS=$as_save_IFS
35471  test -z "$as_dir" && as_dir=.
35472    for ac_exec_ext in '' $ac_executable_extensions; do
35473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35474    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35476    break 2
35477  fi
35478done
35479  done
35480IFS=$as_save_IFS
35481
35482  ;;
35483esac
35484fi
35485GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
35486if test -n "$GTEST_CONFIG"; then
35487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
35488$as_echo "$GTEST_CONFIG" >&6; }
35489else
35490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35491$as_echo "no" >&6; }
35492fi
35493
35494
35495    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
35496    case x${GTEST_CONFIG} in
35497     x) ;;
35498     *)
35499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
35500$as_echo_n "checking gtest version... " >&6; }
35501	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
35502	case "$gtest_version_test" in
35503	 toolow*)
35504	    ;;
35505	 *)
35506	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
35507	    GTEST_LIBS=`$GTEST_CONFIG --libs`
35508	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
35509	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
35510
35511
35512
35513
35514	    gta=true
35515	    ;;
35516	esac
35517	gtest_version=`$GTEST_CONFIG --version`
35518	case "$gta" in
35519	 true)
35520	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
35521$as_echo "($gtest_version) ok" >&6; }
35522	    ;;
35523	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
35524$as_echo "($gtest_version) not ok" >&6; }
35525	    ;;
35526	esac
35527	{ gtest_version_test=; unset gtest_version_test;}
35528	{ gtest_version=; unset gtest_version;}
35529    esac
35530esac
35531 if $gta; then
35532  GTEST_AVAILABLE_TRUE=
35533  GTEST_AVAILABLE_FALSE='#'
35534else
35535  GTEST_AVAILABLE_TRUE='#'
35536  GTEST_AVAILABLE_FALSE=
35537fi
35538
35539
35540
35541
35542###
35543
35544
35545  prefix_NONE=
35546  exec_prefix_NONE=
35547  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35548  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35549  eval ac_define_dir="\"$sysconfdir\""
35550  eval ac_define_dir="\"$ac_define_dir\""
35551  NTP_KEYSDIR="$ac_define_dir"
35552
35553
35554cat >>confdefs.h <<_ACEOF
35555#define NTP_KEYSDIR "$ac_define_dir"
35556_ACEOF
35557
35558  test "$prefix_NONE" && prefix=NONE
35559  test "$exec_prefix_NONE" && exec_prefix=NONE
35560
35561
35562ac_config_files="$ac_config_files Makefile"
35563
35564ac_config_files="$ac_config_files adjtimed/Makefile"
35565
35566ac_config_files="$ac_config_files clockstuff/Makefile"
35567
35568ac_config_files="$ac_config_files include/Makefile"
35569
35570ac_config_files="$ac_config_files include/isc/Makefile"
35571
35572ac_config_files="$ac_config_files kernel/Makefile"
35573
35574ac_config_files="$ac_config_files kernel/sys/Makefile"
35575
35576ac_config_files="$ac_config_files libntp/Makefile"
35577
35578ac_config_files="$ac_config_files libparse/Makefile"
35579
35580ac_config_files="$ac_config_files ntpd/Makefile"
35581
35582ac_config_files="$ac_config_files ntpd/complete.conf"
35583
35584ac_config_files="$ac_config_files ntpdate/Makefile"
35585
35586ac_config_files="$ac_config_files ntpdc/Makefile"
35587
35588ac_config_files="$ac_config_files ntpdc/nl.pl"
35589
35590ac_config_files="$ac_config_files ntpq/Makefile"
35591
35592ac_config_files="$ac_config_files ntpsnmpd/Makefile"
35593
35594ac_config_files="$ac_config_files parseutil/Makefile"
35595
35596ac_config_files="$ac_config_files scripts/Makefile"
35597
35598ac_config_files="$ac_config_files scripts/lib/Makefile"
35599
35600ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
35601
35602ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
35603
35604ac_config_files="$ac_config_files scripts/build/mkver"
35605
35606ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
35607
35608ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
35609
35610ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
35611
35612ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
35613
35614ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
35615
35616ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
35617
35618ac_config_files="$ac_config_files scripts/ntpver"
35619
35620ac_config_files="$ac_config_files scripts/plot_summary"
35621
35622ac_config_files="$ac_config_files scripts/summary"
35623
35624ac_config_files="$ac_config_files scripts/build/Makefile"
35625
35626ac_config_files="$ac_config_files tests/Makefile"
35627
35628ac_config_files="$ac_config_files tests/libntp/Makefile"
35629
35630ac_config_files="$ac_config_files tests/ntpd/Makefile"
35631
35632ac_config_files="$ac_config_files util/Makefile"
35633
35634
35635perllibdir="${datadir}/ntp/lib"
35636
35637  prefix_NONE=
35638  exec_prefix_NONE=
35639  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35640  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35641  eval ac_define_dir="\"$perllibdir\""
35642  eval ac_define_dir="\"$ac_define_dir\""
35643  PERLLIBDIR="$ac_define_dir"
35644
35645
35646cat >>confdefs.h <<_ACEOF
35647#define PERLLIBDIR "$ac_define_dir"
35648_ACEOF
35649
35650  test "$prefix_NONE" && prefix=NONE
35651  test "$exec_prefix_NONE" && exec_prefix=NONE
35652
35653
35654calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
35655
35656ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
35657
35658ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
35659
35660ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
35661
35662summary_opts="$srcdir/scripts/summary-opts"
35663
35664plot_summary_opts="$srcdir/scripts/plot_summary-opts"
35665
35666
35667
35668
35669subdirs="$subdirs sntp"
35670
35671
35672cat >confcache <<\_ACEOF
35673# This file is a shell script that caches the results of configure
35674# tests run on this system so they can be shared between configure
35675# scripts and configure runs, see configure's option --config-cache.
35676# It is not useful on other systems.  If it contains results you don't
35677# want to keep, you may remove or edit it.
35678#
35679# config.status only pays attention to the cache file if you give it
35680# the --recheck option to rerun configure.
35681#
35682# `ac_cv_env_foo' variables (set or unset) will be overridden when
35683# loading this file, other *unset* `ac_cv_foo' will be assigned the
35684# following values.
35685
35686_ACEOF
35687
35688# The following way of writing the cache mishandles newlines in values,
35689# but we know of no workaround that is simple, portable, and efficient.
35690# So, we kill variables containing newlines.
35691# Ultrix sh set writes to stderr and can't be redirected directly,
35692# and sets the high bit in the cache file unless we assign to the vars.
35693(
35694  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35695    eval ac_val=\$$ac_var
35696    case $ac_val in #(
35697    *${as_nl}*)
35698      case $ac_var in #(
35699      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35700$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35701      esac
35702      case $ac_var in #(
35703      _ | IFS | as_nl) ;; #(
35704      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35705      *) { eval $ac_var=; unset $ac_var;} ;;
35706      esac ;;
35707    esac
35708  done
35709
35710  (set) 2>&1 |
35711    case $as_nl`(ac_space=' '; set) 2>&1` in #(
35712    *${as_nl}ac_space=\ *)
35713      # `set' does not quote correctly, so add quotes: double-quote
35714      # substitution turns \\\\ into \\, and sed turns \\ into \.
35715      sed -n \
35716	"s/'/'\\\\''/g;
35717	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35718      ;; #(
35719    *)
35720      # `set' quotes correctly as required by POSIX, so do not add quotes.
35721      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35722      ;;
35723    esac |
35724    sort
35725) |
35726  sed '
35727     /^ac_cv_env_/b end
35728     t clear
35729     :clear
35730     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35731     t end
35732     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35733     :end' >>confcache
35734if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35735  if test -w "$cache_file"; then
35736    if test "x$cache_file" != "x/dev/null"; then
35737      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35738$as_echo "$as_me: updating cache $cache_file" >&6;}
35739      if test ! -f "$cache_file" || test -h "$cache_file"; then
35740	cat confcache >"$cache_file"
35741      else
35742        case $cache_file in #(
35743        */* | ?:*)
35744	  mv -f confcache "$cache_file"$$ &&
35745	  mv -f "$cache_file"$$ "$cache_file" ;; #(
35746        *)
35747	  mv -f confcache "$cache_file" ;;
35748	esac
35749      fi
35750    fi
35751  else
35752    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35753$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35754  fi
35755fi
35756rm -f confcache
35757
35758test "x$prefix" = xNONE && prefix=$ac_default_prefix
35759# Let make expand exec_prefix.
35760test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35761
35762DEFS=-DHAVE_CONFIG_H
35763
35764ac_libobjs=
35765ac_ltlibobjs=
35766U=
35767for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35768  # 1. Remove the extension, and $U if already installed.
35769  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35770  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35771  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35772  #    will be set to the directory where LIBOBJS objects are built.
35773  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35774  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35775done
35776LIBOBJS=$ac_libobjs
35777
35778LTLIBOBJS=$ac_ltlibobjs
35779
35780
35781 if test -n "$EXEEXT"; then
35782  am__EXEEXT_TRUE=
35783  am__EXEEXT_FALSE='#'
35784else
35785  am__EXEEXT_TRUE='#'
35786  am__EXEEXT_FALSE=
35787fi
35788
35789if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35790  as_fn_error $? "conditional \"AMDEP\" was never defined.
35791Usually this means the macro was only invoked conditionally." "$LINENO" 5
35792fi
35793if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35794  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35795Usually this means the macro was only invoked conditionally." "$LINENO" 5
35796fi
35797if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35798  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35799Usually this means the macro was only invoked conditionally." "$LINENO" 5
35800fi
35801
35802if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35803  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
35806if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
35807  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
35808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
35810if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
35811  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
35812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
35815  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
35816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
35819  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
35820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
35822if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
35823  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
35824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
35826if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
35827  as_fn_error $? "conditional \"PTHREADS\" was never defined.
35828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
35830if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
35831  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
35832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
35834if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
35835  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
35836Usually this means the macro was only invoked conditionally." "$LINENO" 5
35837fi
35838if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
35839  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
35840Usually this means the macro was only invoked conditionally." "$LINENO" 5
35841fi
35842
35843: "${CONFIG_STATUS=./config.status}"
35844ac_write_fail=0
35845ac_clean_files_save=$ac_clean_files
35846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35847{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35848$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35849as_write_fail=0
35850cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35851#! $SHELL
35852# Generated by $as_me.
35853# Run this file to recreate the current configuration.
35854# Compiler output produced by configure, useful for debugging
35855# configure, is in config.log if it exists.
35856
35857debug=false
35858ac_cs_recheck=false
35859ac_cs_silent=false
35860
35861SHELL=\${CONFIG_SHELL-$SHELL}
35862export SHELL
35863_ASEOF
35864cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35865## -------------------- ##
35866## M4sh Initialization. ##
35867## -------------------- ##
35868
35869# Be more Bourne compatible
35870DUALCASE=1; export DUALCASE # for MKS sh
35871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35872  emulate sh
35873  NULLCMD=:
35874  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35875  # is contrary to our usage.  Disable this feature.
35876  alias -g '${1+"$@"}'='"$@"'
35877  setopt NO_GLOB_SUBST
35878else
35879  case `(set -o) 2>/dev/null` in #(
35880  *posix*) :
35881    set -o posix ;; #(
35882  *) :
35883     ;;
35884esac
35885fi
35886
35887
35888as_nl='
35889'
35890export as_nl
35891# Printing a long string crashes Solaris 7 /usr/bin/printf.
35892as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35895# Prefer a ksh shell builtin over an external printf program on Solaris,
35896# but without wasting forks for bash or zsh.
35897if test -z "$BASH_VERSION$ZSH_VERSION" \
35898    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35899  as_echo='print -r --'
35900  as_echo_n='print -rn --'
35901elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35902  as_echo='printf %s\n'
35903  as_echo_n='printf %s'
35904else
35905  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35906    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35907    as_echo_n='/usr/ucb/echo -n'
35908  else
35909    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35910    as_echo_n_body='eval
35911      arg=$1;
35912      case $arg in #(
35913      *"$as_nl"*)
35914	expr "X$arg" : "X\\(.*\\)$as_nl";
35915	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35916      esac;
35917      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35918    '
35919    export as_echo_n_body
35920    as_echo_n='sh -c $as_echo_n_body as_echo'
35921  fi
35922  export as_echo_body
35923  as_echo='sh -c $as_echo_body as_echo'
35924fi
35925
35926# The user is always right.
35927if test "${PATH_SEPARATOR+set}" != set; then
35928  PATH_SEPARATOR=:
35929  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35930    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35931      PATH_SEPARATOR=';'
35932  }
35933fi
35934
35935
35936# IFS
35937# We need space, tab and new line, in precisely that order.  Quoting is
35938# there to prevent editors from complaining about space-tab.
35939# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35940# splitting by setting IFS to empty value.)
35941IFS=" ""	$as_nl"
35942
35943# Find who we are.  Look in the path if we contain no directory separator.
35944as_myself=
35945case $0 in #((
35946  *[\\/]* ) as_myself=$0 ;;
35947  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35948for as_dir in $PATH
35949do
35950  IFS=$as_save_IFS
35951  test -z "$as_dir" && as_dir=.
35952    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35953  done
35954IFS=$as_save_IFS
35955
35956     ;;
35957esac
35958# We did not find ourselves, most probably we were run as `sh COMMAND'
35959# in which case we are not to be found in the path.
35960if test "x$as_myself" = x; then
35961  as_myself=$0
35962fi
35963if test ! -f "$as_myself"; then
35964  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35965  exit 1
35966fi
35967
35968# Unset variables that we do not need and which cause bugs (e.g. in
35969# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
35970# suppresses any "Segmentation fault" message there.  '((' could
35971# trigger a bug in pdksh 5.2.14.
35972for as_var in BASH_ENV ENV MAIL MAILPATH
35973do eval test x\${$as_var+set} = xset \
35974  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35975done
35976PS1='$ '
35977PS2='> '
35978PS4='+ '
35979
35980# NLS nuisances.
35981LC_ALL=C
35982export LC_ALL
35983LANGUAGE=C
35984export LANGUAGE
35985
35986# CDPATH.
35987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35988
35989
35990# as_fn_error STATUS ERROR [LINENO LOG_FD]
35991# ----------------------------------------
35992# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35993# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35994# script with STATUS, using 1 if that was 0.
35995as_fn_error ()
35996{
35997  as_status=$1; test $as_status -eq 0 && as_status=1
35998  if test "$4"; then
35999    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36000    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36001  fi
36002  $as_echo "$as_me: error: $2" >&2
36003  as_fn_exit $as_status
36004} # as_fn_error
36005
36006
36007# as_fn_set_status STATUS
36008# -----------------------
36009# Set $? to STATUS, without forking.
36010as_fn_set_status ()
36011{
36012  return $1
36013} # as_fn_set_status
36014
36015# as_fn_exit STATUS
36016# -----------------
36017# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36018as_fn_exit ()
36019{
36020  set +e
36021  as_fn_set_status $1
36022  exit $1
36023} # as_fn_exit
36024
36025# as_fn_unset VAR
36026# ---------------
36027# Portably unset VAR.
36028as_fn_unset ()
36029{
36030  { eval $1=; unset $1;}
36031}
36032as_unset=as_fn_unset
36033# as_fn_append VAR VALUE
36034# ----------------------
36035# Append the text in VALUE to the end of the definition contained in VAR. Take
36036# advantage of any shell optimizations that allow amortized linear growth over
36037# repeated appends, instead of the typical quadratic growth present in naive
36038# implementations.
36039if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36040  eval 'as_fn_append ()
36041  {
36042    eval $1+=\$2
36043  }'
36044else
36045  as_fn_append ()
36046  {
36047    eval $1=\$$1\$2
36048  }
36049fi # as_fn_append
36050
36051# as_fn_arith ARG...
36052# ------------------
36053# Perform arithmetic evaluation on the ARGs, and store the result in the
36054# global $as_val. Take advantage of shells that can avoid forks. The arguments
36055# must be portable across $(()) and expr.
36056if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36057  eval 'as_fn_arith ()
36058  {
36059    as_val=$(( $* ))
36060  }'
36061else
36062  as_fn_arith ()
36063  {
36064    as_val=`expr "$@" || test $? -eq 1`
36065  }
36066fi # as_fn_arith
36067
36068
36069if expr a : '\(a\)' >/dev/null 2>&1 &&
36070   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36071  as_expr=expr
36072else
36073  as_expr=false
36074fi
36075
36076if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36077  as_basename=basename
36078else
36079  as_basename=false
36080fi
36081
36082if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36083  as_dirname=dirname
36084else
36085  as_dirname=false
36086fi
36087
36088as_me=`$as_basename -- "$0" ||
36089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36090	 X"$0" : 'X\(//\)$' \| \
36091	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36092$as_echo X/"$0" |
36093    sed '/^.*\/\([^/][^/]*\)\/*$/{
36094	    s//\1/
36095	    q
36096	  }
36097	  /^X\/\(\/\/\)$/{
36098	    s//\1/
36099	    q
36100	  }
36101	  /^X\/\(\/\).*/{
36102	    s//\1/
36103	    q
36104	  }
36105	  s/.*/./; q'`
36106
36107# Avoid depending upon Character Ranges.
36108as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36110as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36111as_cr_digits='0123456789'
36112as_cr_alnum=$as_cr_Letters$as_cr_digits
36113
36114ECHO_C= ECHO_N= ECHO_T=
36115case `echo -n x` in #(((((
36116-n*)
36117  case `echo 'xy\c'` in
36118  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36119  xy)  ECHO_C='\c';;
36120  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36121       ECHO_T='	';;
36122  esac;;
36123*)
36124  ECHO_N='-n';;
36125esac
36126
36127rm -f conf$$ conf$$.exe conf$$.file
36128if test -d conf$$.dir; then
36129  rm -f conf$$.dir/conf$$.file
36130else
36131  rm -f conf$$.dir
36132  mkdir conf$$.dir 2>/dev/null
36133fi
36134if (echo >conf$$.file) 2>/dev/null; then
36135  if ln -s conf$$.file conf$$ 2>/dev/null; then
36136    as_ln_s='ln -s'
36137    # ... but there are two gotchas:
36138    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36139    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36140    # In both cases, we have to default to `cp -p'.
36141    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36142      as_ln_s='cp -p'
36143  elif ln conf$$.file conf$$ 2>/dev/null; then
36144    as_ln_s=ln
36145  else
36146    as_ln_s='cp -p'
36147  fi
36148else
36149  as_ln_s='cp -p'
36150fi
36151rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36152rmdir conf$$.dir 2>/dev/null
36153
36154
36155# as_fn_mkdir_p
36156# -------------
36157# Create "$as_dir" as a directory, including parents if necessary.
36158as_fn_mkdir_p ()
36159{
36160
36161  case $as_dir in #(
36162  -*) as_dir=./$as_dir;;
36163  esac
36164  test -d "$as_dir" || eval $as_mkdir_p || {
36165    as_dirs=
36166    while :; do
36167      case $as_dir in #(
36168      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36169      *) as_qdir=$as_dir;;
36170      esac
36171      as_dirs="'$as_qdir' $as_dirs"
36172      as_dir=`$as_dirname -- "$as_dir" ||
36173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36174	 X"$as_dir" : 'X\(//\)[^/]' \| \
36175	 X"$as_dir" : 'X\(//\)$' \| \
36176	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36177$as_echo X"$as_dir" |
36178    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36179	    s//\1/
36180	    q
36181	  }
36182	  /^X\(\/\/\)[^/].*/{
36183	    s//\1/
36184	    q
36185	  }
36186	  /^X\(\/\/\)$/{
36187	    s//\1/
36188	    q
36189	  }
36190	  /^X\(\/\).*/{
36191	    s//\1/
36192	    q
36193	  }
36194	  s/.*/./; q'`
36195      test -d "$as_dir" && break
36196    done
36197    test -z "$as_dirs" || eval "mkdir $as_dirs"
36198  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36199
36200
36201} # as_fn_mkdir_p
36202if mkdir -p . 2>/dev/null; then
36203  as_mkdir_p='mkdir -p "$as_dir"'
36204else
36205  test -d ./-p && rmdir ./-p
36206  as_mkdir_p=false
36207fi
36208
36209if test -x / >/dev/null 2>&1; then
36210  as_test_x='test -x'
36211else
36212  if ls -dL / >/dev/null 2>&1; then
36213    as_ls_L_option=L
36214  else
36215    as_ls_L_option=
36216  fi
36217  as_test_x='
36218    eval sh -c '\''
36219      if test -d "$1"; then
36220	test -d "$1/.";
36221      else
36222	case $1 in #(
36223	-*)set "./$1";;
36224	esac;
36225	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
36226	???[sx]*):;;*)false;;esac;fi
36227    '\'' sh
36228  '
36229fi
36230as_executable_p=$as_test_x
36231
36232# Sed expression to map a string onto a valid CPP name.
36233as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36234
36235# Sed expression to map a string onto a valid variable name.
36236as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36237
36238
36239exec 6>&1
36240## ----------------------------------- ##
36241## Main body of $CONFIG_STATUS script. ##
36242## ----------------------------------- ##
36243_ASEOF
36244test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36245
36246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36247# Save the log message, to keep $0 and so on meaningful, and to
36248# report actual input values of CONFIG_FILES etc. instead of their
36249# values after options handling.
36250ac_log="
36251This file was extended by ntp $as_me 4.2.7p404, which was
36252generated by GNU Autoconf 2.68.  Invocation command line was
36253
36254  CONFIG_FILES    = $CONFIG_FILES
36255  CONFIG_HEADERS  = $CONFIG_HEADERS
36256  CONFIG_LINKS    = $CONFIG_LINKS
36257  CONFIG_COMMANDS = $CONFIG_COMMANDS
36258  $ $0 $@
36259
36260on `(hostname || uname -n) 2>/dev/null | sed 1q`
36261"
36262
36263_ACEOF
36264
36265case $ac_config_files in *"
36266"*) set x $ac_config_files; shift; ac_config_files=$*;;
36267esac
36268
36269case $ac_config_headers in *"
36270"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36271esac
36272
36273
36274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36275# Files that config.status was made for.
36276config_files="$ac_config_files"
36277config_headers="$ac_config_headers"
36278config_commands="$ac_config_commands"
36279
36280_ACEOF
36281
36282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36283ac_cs_usage="\
36284\`$as_me' instantiates files and other configuration actions
36285from templates according to the current configuration.  Unless the files
36286and actions are specified as TAGs, all are instantiated by default.
36287
36288Usage: $0 [OPTION]... [TAG]...
36289
36290  -h, --help       print this help, then exit
36291  -V, --version    print version number and configuration settings, then exit
36292      --config     print configuration, then exit
36293  -q, --quiet, --silent
36294                   do not print progress messages
36295  -d, --debug      don't remove temporary files
36296      --recheck    update $as_me by reconfiguring in the same conditions
36297      --file=FILE[:TEMPLATE]
36298                   instantiate the configuration file FILE
36299      --header=FILE[:TEMPLATE]
36300                   instantiate the configuration header FILE
36301
36302Configuration files:
36303$config_files
36304
36305Configuration headers:
36306$config_headers
36307
36308Configuration commands:
36309$config_commands
36310
36311Report bugs to <http://bugs.ntp.org./>.
36312ntp home page: <http://www.ntp.org./>."
36313
36314_ACEOF
36315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36316ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36317ac_cs_version="\\
36318ntp config.status 4.2.7p404
36319configured by $0, generated by GNU Autoconf 2.68,
36320  with options \\"\$ac_cs_config\\"
36321
36322Copyright (C) 2010 Free Software Foundation, Inc.
36323This config.status script is free software; the Free Software Foundation
36324gives unlimited permission to copy, distribute and modify it."
36325
36326ac_pwd='$ac_pwd'
36327srcdir='$srcdir'
36328INSTALL='$INSTALL'
36329MKDIR_P='$MKDIR_P'
36330AWK='$AWK'
36331test -n "\$AWK" || AWK=awk
36332_ACEOF
36333
36334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36335# The default lists apply if the user does not specify any file.
36336ac_need_defaults=:
36337while test $# != 0
36338do
36339  case $1 in
36340  --*=?*)
36341    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36342    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36343    ac_shift=:
36344    ;;
36345  --*=)
36346    ac_option=`expr "X$1" : 'X\([^=]*\)='`
36347    ac_optarg=
36348    ac_shift=:
36349    ;;
36350  *)
36351    ac_option=$1
36352    ac_optarg=$2
36353    ac_shift=shift
36354    ;;
36355  esac
36356
36357  case $ac_option in
36358  # Handling of the options.
36359  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36360    ac_cs_recheck=: ;;
36361  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36362    $as_echo "$ac_cs_version"; exit ;;
36363  --config | --confi | --conf | --con | --co | --c )
36364    $as_echo "$ac_cs_config"; exit ;;
36365  --debug | --debu | --deb | --de | --d | -d )
36366    debug=: ;;
36367  --file | --fil | --fi | --f )
36368    $ac_shift
36369    case $ac_optarg in
36370    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36371    '') as_fn_error $? "missing file argument" ;;
36372    esac
36373    as_fn_append CONFIG_FILES " '$ac_optarg'"
36374    ac_need_defaults=false;;
36375  --header | --heade | --head | --hea )
36376    $ac_shift
36377    case $ac_optarg in
36378    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36379    esac
36380    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36381    ac_need_defaults=false;;
36382  --he | --h)
36383    # Conflict between --help and --header
36384    as_fn_error $? "ambiguous option: \`$1'
36385Try \`$0 --help' for more information.";;
36386  --help | --hel | -h )
36387    $as_echo "$ac_cs_usage"; exit ;;
36388  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36389  | -silent | --silent | --silen | --sile | --sil | --si | --s)
36390    ac_cs_silent=: ;;
36391
36392  # This is an error.
36393  -*) as_fn_error $? "unrecognized option: \`$1'
36394Try \`$0 --help' for more information." ;;
36395
36396  *) as_fn_append ac_config_targets " $1"
36397     ac_need_defaults=false ;;
36398
36399  esac
36400  shift
36401done
36402
36403ac_configure_extra_args=
36404
36405if $ac_cs_silent; then
36406  exec 6>/dev/null
36407  ac_configure_extra_args="$ac_configure_extra_args --silent"
36408fi
36409
36410_ACEOF
36411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36412if \$ac_cs_recheck; then
36413  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36414  shift
36415  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36416  CONFIG_SHELL='$SHELL'
36417  export CONFIG_SHELL
36418  exec "\$@"
36419fi
36420
36421_ACEOF
36422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36423exec 5>>config.log
36424{
36425  echo
36426  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36427## Running $as_me. ##
36428_ASBOX
36429  $as_echo "$ac_log"
36430} >&5
36431
36432_ACEOF
36433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36434#
36435# INIT-COMMANDS
36436#
36437AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36438
36439
36440# The HP-UX ksh and POSIX shell print the target directory to stdout
36441# if CDPATH is set.
36442(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36443
36444sed_quote_subst='$sed_quote_subst'
36445double_quote_subst='$double_quote_subst'
36446delay_variable_subst='$delay_variable_subst'
36447enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36448macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36449macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36450enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36451pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36452enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36453SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36454ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36455host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36456host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36457host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36458build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36459build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36460build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36461SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36462Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36463GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36464EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36465FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36466LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36467NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36468LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36469max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36470ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36471exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36472lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36473lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36474lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36475lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36476lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36477reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36478reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36479OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36480deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36481file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36482file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36483want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36484DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36485sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36486AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36487AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36488archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36489STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36490RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36491old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36492old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36493old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36494lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36495CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36496CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36497compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36498GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36499lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36500lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36501lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36502lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
36503nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36504lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36505objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36506MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36507lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36508lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36509lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36510lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36511lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36512need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36513MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36514DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36515NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36516LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36517OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36518OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36519libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36520shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36521extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36522archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36523enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36524export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36525whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36526compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36527old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36528old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36529archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36530archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36531module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36532module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36533with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36534allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36535no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36536hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36537hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36538hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36539hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36540hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36541hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36542hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36543hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36544inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36545link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36546always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36547export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36548exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36549include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36550prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36551postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36552file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36553variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36554need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36555need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36556version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36557runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36558shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36559shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36560libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36561library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36562soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36563install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36564postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36565postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36566finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36567finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36568hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36569sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36570sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36571hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36572enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36573enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36574enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36575old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36576striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36577compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36578predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36579postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36580predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36581postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36582compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36583LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36584reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36585reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36586old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36587compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36588GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36589lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36590lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36591lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36592lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36593lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36594archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36595enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36596export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36597whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36598compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36599old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36600old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36601archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36602archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36603module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36604module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36605with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36606allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36607no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36608hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36609hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36610hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36611hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36612hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36613hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36614hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36615hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36616inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36617link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36618always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36619export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36620exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36621include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36622prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36623postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36624file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36625hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36626compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36627predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36628postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36629predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36630postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36631compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36632
36633LTCC='$LTCC'
36634LTCFLAGS='$LTCFLAGS'
36635compiler='$compiler_DEFAULT'
36636
36637# A function that is used when there is no print builtin or printf.
36638func_fallback_echo ()
36639{
36640  eval 'cat <<_LTECHO_EOF
36641\$1
36642_LTECHO_EOF'
36643}
36644
36645# Quote evaled strings.
36646for var in SHELL \
36647ECHO \
36648SED \
36649GREP \
36650EGREP \
36651FGREP \
36652LD \
36653NM \
36654LN_S \
36655lt_SP2NL \
36656lt_NL2SP \
36657reload_flag \
36658OBJDUMP \
36659deplibs_check_method \
36660file_magic_cmd \
36661file_magic_glob \
36662want_nocaseglob \
36663DLLTOOL \
36664sharedlib_from_linklib_cmd \
36665AR \
36666AR_FLAGS \
36667archiver_list_spec \
36668STRIP \
36669RANLIB \
36670CC \
36671CFLAGS \
36672compiler \
36673lt_cv_sys_global_symbol_pipe \
36674lt_cv_sys_global_symbol_to_cdecl \
36675lt_cv_sys_global_symbol_to_c_name_address \
36676lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36677nm_file_list_spec \
36678lt_prog_compiler_no_builtin_flag \
36679lt_prog_compiler_pic \
36680lt_prog_compiler_wl \
36681lt_prog_compiler_static \
36682lt_cv_prog_compiler_c_o \
36683need_locks \
36684MANIFEST_TOOL \
36685DSYMUTIL \
36686NMEDIT \
36687LIPO \
36688OTOOL \
36689OTOOL64 \
36690shrext_cmds \
36691export_dynamic_flag_spec \
36692whole_archive_flag_spec \
36693compiler_needs_object \
36694with_gnu_ld \
36695allow_undefined_flag \
36696no_undefined_flag \
36697hardcode_libdir_flag_spec \
36698hardcode_libdir_flag_spec_ld \
36699hardcode_libdir_separator \
36700exclude_expsyms \
36701include_expsyms \
36702file_list_spec \
36703variables_saved_for_relink \
36704libname_spec \
36705library_names_spec \
36706soname_spec \
36707install_override_mode \
36708finish_eval \
36709old_striplib \
36710striplib \
36711compiler_lib_search_dirs \
36712predep_objects \
36713postdep_objects \
36714predeps \
36715postdeps \
36716compiler_lib_search_path \
36717LD_CXX \
36718reload_flag_CXX \
36719compiler_CXX \
36720lt_prog_compiler_no_builtin_flag_CXX \
36721lt_prog_compiler_pic_CXX \
36722lt_prog_compiler_wl_CXX \
36723lt_prog_compiler_static_CXX \
36724lt_cv_prog_compiler_c_o_CXX \
36725export_dynamic_flag_spec_CXX \
36726whole_archive_flag_spec_CXX \
36727compiler_needs_object_CXX \
36728with_gnu_ld_CXX \
36729allow_undefined_flag_CXX \
36730no_undefined_flag_CXX \
36731hardcode_libdir_flag_spec_CXX \
36732hardcode_libdir_flag_spec_ld_CXX \
36733hardcode_libdir_separator_CXX \
36734exclude_expsyms_CXX \
36735include_expsyms_CXX \
36736file_list_spec_CXX \
36737compiler_lib_search_dirs_CXX \
36738predep_objects_CXX \
36739postdep_objects_CXX \
36740predeps_CXX \
36741postdeps_CXX \
36742compiler_lib_search_path_CXX; do
36743    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36744    *[\\\\\\\`\\"\\\$]*)
36745      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
36746      ;;
36747    *)
36748      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36749      ;;
36750    esac
36751done
36752
36753# Double-quote double-evaled strings.
36754for var in reload_cmds \
36755old_postinstall_cmds \
36756old_postuninstall_cmds \
36757old_archive_cmds \
36758extract_expsyms_cmds \
36759old_archive_from_new_cmds \
36760old_archive_from_expsyms_cmds \
36761archive_cmds \
36762archive_expsym_cmds \
36763module_cmds \
36764module_expsym_cmds \
36765export_symbols_cmds \
36766prelink_cmds \
36767postlink_cmds \
36768postinstall_cmds \
36769postuninstall_cmds \
36770finish_cmds \
36771sys_lib_search_path_spec \
36772sys_lib_dlsearch_path_spec \
36773reload_cmds_CXX \
36774old_archive_cmds_CXX \
36775old_archive_from_new_cmds_CXX \
36776old_archive_from_expsyms_cmds_CXX \
36777archive_cmds_CXX \
36778archive_expsym_cmds_CXX \
36779module_cmds_CXX \
36780module_expsym_cmds_CXX \
36781export_symbols_cmds_CXX \
36782prelink_cmds_CXX \
36783postlink_cmds_CXX; do
36784    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36785    *[\\\\\\\`\\"\\\$]*)
36786      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
36787      ;;
36788    *)
36789      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36790      ;;
36791    esac
36792done
36793
36794ac_aux_dir='$ac_aux_dir'
36795xsi_shell='$xsi_shell'
36796lt_shell_append='$lt_shell_append'
36797
36798# See if we are running on zsh, and set the options which allow our
36799# commands through without removal of \ escapes INIT.
36800if test -n "\${ZSH_VERSION+set}" ; then
36801   setopt NO_GLOB_SUBST
36802fi
36803
36804
36805    PACKAGE='$PACKAGE'
36806    VERSION='$VERSION'
36807    TIMESTAMP='$TIMESTAMP'
36808    RM='$RM'
36809    ofile='$ofile'
36810
36811
36812
36813
36814
36815
36816_ACEOF
36817
36818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36819
36820# Handling of arguments.
36821for ac_config_target in $ac_config_targets
36822do
36823  case $ac_config_target in
36824    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36825    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36826    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36827    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36828    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
36829    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
36830    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36831    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
36832    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
36833    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
36834    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
36835    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
36836    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
36837    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
36838    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
36839    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
36840    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
36841    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
36842    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
36843    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
36844    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
36845    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
36846    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
36847    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
36848    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
36849    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
36850    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
36851    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
36852    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
36853    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
36854    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
36855    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
36856    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
36857    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
36858    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
36859    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
36860    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
36861    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
36862    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
36863
36864  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36865  esac
36866done
36867
36868
36869# If the user did not use the arguments to specify the items to instantiate,
36870# then the envvar interface is used.  Set only those that are not.
36871# We use the long form for the default assignment because of an extremely
36872# bizarre bug on SunOS 4.1.3.
36873if $ac_need_defaults; then
36874  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36875  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36876  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36877fi
36878
36879# Have a temporary directory for convenience.  Make it in the build tree
36880# simply because there is no reason against having it here, and in addition,
36881# creating and moving files from /tmp can sometimes cause problems.
36882# Hook for its removal unless debugging.
36883# Note that there is a small window in which the directory will not be cleaned:
36884# after its creation but before its name has been assigned to `$tmp'.
36885$debug ||
36886{
36887  tmp= ac_tmp=
36888  trap 'exit_status=$?
36889  : "${ac_tmp:=$tmp}"
36890  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36891' 0
36892  trap 'as_fn_exit 1' 1 2 13 15
36893}
36894# Create a (secure) tmp directory for tmp files.
36895
36896{
36897  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36898  test -d "$tmp"
36899}  ||
36900{
36901  tmp=./conf$$-$RANDOM
36902  (umask 077 && mkdir "$tmp")
36903} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36904ac_tmp=$tmp
36905
36906# Set up the scripts for CONFIG_FILES section.
36907# No need to generate them if there are no CONFIG_FILES.
36908# This happens for instance with `./config.status config.h'.
36909if test -n "$CONFIG_FILES"; then
36910
36911if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
36912  ac_cs_awk_getline=:
36913  ac_cs_awk_pipe_init=
36914  ac_cs_awk_read_file='
36915      while ((getline aline < (F[key])) > 0)
36916	print(aline)
36917      close(F[key])'
36918  ac_cs_awk_pipe_fini=
36919else
36920  ac_cs_awk_getline=false
36921  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
36922  ac_cs_awk_read_file='
36923      print "|#_!!_#|"
36924      print "cat " F[key] " &&"
36925      '$ac_cs_awk_pipe_init
36926  # The final `:' finishes the AND list.
36927  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
36928fi
36929ac_cr=`echo X | tr X '\015'`
36930# On cygwin, bash can eat \r inside `` if the user requested igncr.
36931# But we know of no other shell where ac_cr would be empty at this
36932# point, so we can use a bashism as a fallback.
36933if test "x$ac_cr" = x; then
36934  eval ac_cr=\$\'\\r\'
36935fi
36936ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36937if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36938  ac_cs_awk_cr='\\r'
36939else
36940  ac_cs_awk_cr=$ac_cr
36941fi
36942
36943echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36944_ACEOF
36945
36946# Create commands to substitute file output variables.
36947{
36948  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
36949  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
36950  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
36951  echo "_ACAWK" &&
36952  echo "_ACEOF"
36953} >conf$$files.sh &&
36954. ./conf$$files.sh ||
36955  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36956rm -f conf$$files.sh
36957
36958{
36959  echo "cat >conf$$subs.awk <<_ACEOF" &&
36960  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36961  echo "_ACEOF"
36962} >conf$$subs.sh ||
36963  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36964ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36965ac_delim='%!_!# '
36966for ac_last_try in false false false false false :; do
36967  . ./conf$$subs.sh ||
36968    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36969
36970  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36971  if test $ac_delim_n = $ac_delim_num; then
36972    break
36973  elif $ac_last_try; then
36974    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36975  else
36976    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36977  fi
36978done
36979rm -f conf$$subs.sh
36980
36981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36982cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36983_ACEOF
36984sed -n '
36985h
36986s/^/S["/; s/!.*/"]=/
36987p
36988g
36989s/^[^!]*!//
36990:repl
36991t repl
36992s/'"$ac_delim"'$//
36993t delim
36994:nl
36995h
36996s/\(.\{148\}\)..*/\1/
36997t more1
36998s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36999p
37000n
37001b repl
37002:more1
37003s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37004p
37005g
37006s/.\{148\}//
37007t nl
37008:delim
37009h
37010s/\(.\{148\}\)..*/\1/
37011t more2
37012s/["\\]/\\&/g; s/^/"/; s/$/"/
37013p
37014b
37015:more2
37016s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37017p
37018g
37019s/.\{148\}//
37020t delim
37021' <conf$$subs.awk | sed '
37022/^[^""]/{
37023  N
37024  s/\n//
37025}
37026' >>$CONFIG_STATUS || ac_write_fail=1
37027rm -f conf$$subs.awk
37028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37029_ACAWK
37030cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37031  for (key in S) S_is_set[key] = 1
37032  FS = ""
37033  \$ac_cs_awk_pipe_init
37034}
37035{
37036  line = $ 0
37037  nfields = split(line, field, "@")
37038  substed = 0
37039  len = length(field[1])
37040  for (i = 2; i < nfields; i++) {
37041    key = field[i]
37042    keylen = length(key)
37043    if (S_is_set[key]) {
37044      value = S[key]
37045      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37046      len += length(value) + length(field[++i])
37047      substed = 1
37048    } else
37049      len += 1 + keylen
37050  }
37051  if (nfields == 3 && !substed) {
37052    key = field[2]
37053    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
37054      \$ac_cs_awk_read_file
37055      next
37056    }
37057  }
37058  print line
37059}
37060\$ac_cs_awk_pipe_fini
37061_ACAWK
37062_ACEOF
37063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37064if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37065  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37066else
37067  cat
37068fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37069  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37070_ACEOF
37071
37072# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37073# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37074# trailing colons and then remove the whole line if VPATH becomes empty
37075# (actually we leave an empty line to preserve line numbers).
37076if test "x$srcdir" = x.; then
37077  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37078h
37079s///
37080s/^/:/
37081s/[	 ]*$/:/
37082s/:\$(srcdir):/:/g
37083s/:\${srcdir}:/:/g
37084s/:@srcdir@:/:/g
37085s/^:*//
37086s/:*$//
37087x
37088s/\(=[	 ]*\).*/\1/
37089G
37090s/\n//
37091s/^[^=]*=[	 ]*$//
37092}'
37093fi
37094
37095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37096fi # test -n "$CONFIG_FILES"
37097
37098# Set up the scripts for CONFIG_HEADERS section.
37099# No need to generate them if there are no CONFIG_HEADERS.
37100# This happens for instance with `./config.status Makefile'.
37101if test -n "$CONFIG_HEADERS"; then
37102cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37103BEGIN {
37104_ACEOF
37105
37106# Transform confdefs.h into an awk script `defines.awk', embedded as
37107# here-document in config.status, that substitutes the proper values into
37108# config.h.in to produce config.h.
37109
37110# Create a delimiter string that does not exist in confdefs.h, to ease
37111# handling of long lines.
37112ac_delim='%!_!# '
37113for ac_last_try in false false :; do
37114  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37115  if test -z "$ac_tt"; then
37116    break
37117  elif $ac_last_try; then
37118    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37119  else
37120    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37121  fi
37122done
37123
37124# For the awk script, D is an array of macro values keyed by name,
37125# likewise P contains macro parameters if any.  Preserve backslash
37126# newline sequences.
37127
37128ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37129sed -n '
37130s/.\{148\}/&'"$ac_delim"'/g
37131t rset
37132:rset
37133s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37134t def
37135d
37136:def
37137s/\\$//
37138t bsnl
37139s/["\\]/\\&/g
37140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37141D["\1"]=" \3"/p
37142s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37143d
37144:bsnl
37145s/["\\]/\\&/g
37146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37147D["\1"]=" \3\\\\\\n"\\/p
37148t cont
37149s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37150t cont
37151d
37152:cont
37153n
37154s/.\{148\}/&'"$ac_delim"'/g
37155t clear
37156:clear
37157s/\\$//
37158t bsnlc
37159s/["\\]/\\&/g; s/^/"/; s/$/"/p
37160d
37161:bsnlc
37162s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37163b cont
37164' <confdefs.h | sed '
37165s/'"$ac_delim"'/"\\\
37166"/g' >>$CONFIG_STATUS || ac_write_fail=1
37167
37168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37169  for (key in D) D_is_set[key] = 1
37170  FS = ""
37171}
37172/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37173  line = \$ 0
37174  split(line, arg, " ")
37175  if (arg[1] == "#") {
37176    defundef = arg[2]
37177    mac1 = arg[3]
37178  } else {
37179    defundef = substr(arg[1], 2)
37180    mac1 = arg[2]
37181  }
37182  split(mac1, mac2, "(") #)
37183  macro = mac2[1]
37184  prefix = substr(line, 1, index(line, defundef) - 1)
37185  if (D_is_set[macro]) {
37186    # Preserve the white space surrounding the "#".
37187    print prefix "define", macro P[macro] D[macro]
37188    next
37189  } else {
37190    # Replace #undef with comments.  This is necessary, for example,
37191    # in the case of _POSIX_SOURCE, which is predefined and required
37192    # on some systems where configure will not decide to define it.
37193    if (defundef == "undef") {
37194      print "/*", prefix defundef, macro, "*/"
37195      next
37196    }
37197  }
37198}
37199{ print }
37200_ACAWK
37201_ACEOF
37202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37203  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37204fi # test -n "$CONFIG_HEADERS"
37205
37206
37207eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37208shift
37209for ac_tag
37210do
37211  case $ac_tag in
37212  :[FHLC]) ac_mode=$ac_tag; continue;;
37213  esac
37214  case $ac_mode$ac_tag in
37215  :[FHL]*:*);;
37216  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37217  :[FH]-) ac_tag=-:-;;
37218  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37219  esac
37220  ac_save_IFS=$IFS
37221  IFS=:
37222  set x $ac_tag
37223  IFS=$ac_save_IFS
37224  shift
37225  ac_file=$1
37226  shift
37227
37228  case $ac_mode in
37229  :L) ac_source=$1;;
37230  :[FH])
37231    ac_file_inputs=
37232    for ac_f
37233    do
37234      case $ac_f in
37235      -) ac_f="$ac_tmp/stdin";;
37236      *) # Look for the file first in the build tree, then in the source tree
37237	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37238	 # because $ac_f cannot contain `:'.
37239	 test -f "$ac_f" ||
37240	   case $ac_f in
37241	   [\\/$]*) false;;
37242	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37243	   esac ||
37244	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37245      esac
37246      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37247      as_fn_append ac_file_inputs " '$ac_f'"
37248    done
37249
37250    # Let's still pretend it is `configure' which instantiates (i.e., don't
37251    # use $as_me), people would be surprised to read:
37252    #    /* config.h.  Generated by config.status.  */
37253    configure_input='Generated from '`
37254	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37255	`' by configure.'
37256    if test x"$ac_file" != x-; then
37257      configure_input="$ac_file.  $configure_input"
37258      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37259$as_echo "$as_me: creating $ac_file" >&6;}
37260    fi
37261    # Neutralize special characters interpreted by sed in replacement strings.
37262    case $configure_input in #(
37263    *\&* | *\|* | *\\* )
37264       ac_sed_conf_input=`$as_echo "$configure_input" |
37265       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37266    *) ac_sed_conf_input=$configure_input;;
37267    esac
37268
37269    case $ac_tag in
37270    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37271      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37272    esac
37273    ;;
37274  esac
37275
37276  ac_dir=`$as_dirname -- "$ac_file" ||
37277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37278	 X"$ac_file" : 'X\(//\)[^/]' \| \
37279	 X"$ac_file" : 'X\(//\)$' \| \
37280	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37281$as_echo X"$ac_file" |
37282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37283	    s//\1/
37284	    q
37285	  }
37286	  /^X\(\/\/\)[^/].*/{
37287	    s//\1/
37288	    q
37289	  }
37290	  /^X\(\/\/\)$/{
37291	    s//\1/
37292	    q
37293	  }
37294	  /^X\(\/\).*/{
37295	    s//\1/
37296	    q
37297	  }
37298	  s/.*/./; q'`
37299  as_dir="$ac_dir"; as_fn_mkdir_p
37300  ac_builddir=.
37301
37302case "$ac_dir" in
37303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37304*)
37305  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37306  # A ".." for each directory in $ac_dir_suffix.
37307  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37308  case $ac_top_builddir_sub in
37309  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37310  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37311  esac ;;
37312esac
37313ac_abs_top_builddir=$ac_pwd
37314ac_abs_builddir=$ac_pwd$ac_dir_suffix
37315# for backward compatibility:
37316ac_top_builddir=$ac_top_build_prefix
37317
37318case $srcdir in
37319  .)  # We are building in place.
37320    ac_srcdir=.
37321    ac_top_srcdir=$ac_top_builddir_sub
37322    ac_abs_top_srcdir=$ac_pwd ;;
37323  [\\/]* | ?:[\\/]* )  # Absolute name.
37324    ac_srcdir=$srcdir$ac_dir_suffix;
37325    ac_top_srcdir=$srcdir
37326    ac_abs_top_srcdir=$srcdir ;;
37327  *) # Relative name.
37328    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37329    ac_top_srcdir=$ac_top_build_prefix$srcdir
37330    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37331esac
37332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37333
37334
37335  case $ac_mode in
37336  :F)
37337  #
37338  # CONFIG_FILE
37339  #
37340
37341  case $INSTALL in
37342  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37343  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37344  esac
37345  ac_MKDIR_P=$MKDIR_P
37346  case $MKDIR_P in
37347  [\\/$]* | ?:[\\/]* ) ;;
37348  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37349  esac
37350_ACEOF
37351
37352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37353# If the template does not know about datarootdir, expand it.
37354# FIXME: This hack should be removed a few years after 2.60.
37355ac_datarootdir_hack=; ac_datarootdir_seen=
37356ac_sed_dataroot='
37357/datarootdir/ {
37358  p
37359  q
37360}
37361/@datadir@/p
37362/@docdir@/p
37363/@infodir@/p
37364/@localedir@/p
37365/@mandir@/p'
37366case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37367*datarootdir*) ac_datarootdir_seen=yes;;
37368*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37370$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37371_ACEOF
37372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37373  ac_datarootdir_hack='
37374  s&@datadir@&$datadir&g
37375  s&@docdir@&$docdir&g
37376  s&@infodir@&$infodir&g
37377  s&@localedir@&$localedir&g
37378  s&@mandir@&$mandir&g
37379  s&\\\${datarootdir}&$datarootdir&g' ;;
37380esac
37381_ACEOF
37382
37383# Neutralize VPATH when `$srcdir' = `.'.
37384# Shell code in configure.ac might set extrasub.
37385# FIXME: do we really want to maintain this feature?
37386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37387ac_sed_extra="$ac_vpsub
37388$extrasub
37389_ACEOF
37390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37391:t
37392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37393s|@configure_input@|$ac_sed_conf_input|;t t
37394s&@top_builddir@&$ac_top_builddir_sub&;t t
37395s&@top_build_prefix@&$ac_top_build_prefix&;t t
37396s&@srcdir@&$ac_srcdir&;t t
37397s&@abs_srcdir@&$ac_abs_srcdir&;t t
37398s&@top_srcdir@&$ac_top_srcdir&;t t
37399s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37400s&@builddir@&$ac_builddir&;t t
37401s&@abs_builddir@&$ac_abs_builddir&;t t
37402s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37403s&@INSTALL@&$ac_INSTALL&;t t
37404s&@MKDIR_P@&$ac_MKDIR_P&;t t
37405$ac_datarootdir_hack
37406"
37407eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
37408if $ac_cs_awk_getline; then
37409  $AWK -f "$ac_tmp/subs.awk"
37410else
37411  $AWK -f "$ac_tmp/subs.awk" | $SHELL
37412fi \
37413  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37414
37415test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37416  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37417  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
37418      "$ac_tmp/out"`; test -z "$ac_out"; } &&
37419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37420which seems to be undefined.  Please make sure it is defined" >&5
37421$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37422which seems to be undefined.  Please make sure it is defined" >&2;}
37423
37424  rm -f "$ac_tmp/stdin"
37425  case $ac_file in
37426  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37427  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37428  esac \
37429  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37430 ;;
37431  :H)
37432  #
37433  # CONFIG_HEADER
37434  #
37435  if test x"$ac_file" != x-; then
37436    {
37437      $as_echo "/* $configure_input  */" \
37438      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37439    } >"$ac_tmp/config.h" \
37440      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37441    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37442      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37443$as_echo "$as_me: $ac_file is unchanged" >&6;}
37444    else
37445      rm -f "$ac_file"
37446      mv "$ac_tmp/config.h" "$ac_file" \
37447	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
37448    fi
37449  else
37450    $as_echo "/* $configure_input  */" \
37451      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37452      || as_fn_error $? "could not create -" "$LINENO" 5
37453  fi
37454# Compute "$ac_file"'s index in $config_headers.
37455_am_arg="$ac_file"
37456_am_stamp_count=1
37457for _am_header in $config_headers :; do
37458  case $_am_header in
37459    $_am_arg | $_am_arg:* )
37460      break ;;
37461    * )
37462      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37463  esac
37464done
37465echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37466$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37467	 X"$_am_arg" : 'X\(//\)[^/]' \| \
37468	 X"$_am_arg" : 'X\(//\)$' \| \
37469	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37470$as_echo X"$_am_arg" |
37471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37472	    s//\1/
37473	    q
37474	  }
37475	  /^X\(\/\/\)[^/].*/{
37476	    s//\1/
37477	    q
37478	  }
37479	  /^X\(\/\/\)$/{
37480	    s//\1/
37481	    q
37482	  }
37483	  /^X\(\/\).*/{
37484	    s//\1/
37485	    q
37486	  }
37487	  s/.*/./; q'`/stamp-h$_am_stamp_count
37488 ;;
37489
37490  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37491$as_echo "$as_me: executing $ac_file commands" >&6;}
37492 ;;
37493  esac
37494
37495
37496  case $ac_file$ac_mode in
37497    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37498  # Autoconf 2.62 quotes --file arguments for eval, but not when files
37499  # are listed without --file.  Let's play safe and only enable the eval
37500  # if we detect the quoting.
37501  case $CONFIG_FILES in
37502  *\'*) eval set x "$CONFIG_FILES" ;;
37503  *)   set x $CONFIG_FILES ;;
37504  esac
37505  shift
37506  for mf
37507  do
37508    # Strip MF so we end up with the name of the file.
37509    mf=`echo "$mf" | sed -e 's/:.*$//'`
37510    # Check whether this is an Automake generated Makefile or not.
37511    # We used to match only the files named `Makefile.in', but
37512    # some people rename them; so instead we look at the file content.
37513    # Grep'ing the first line is not enough: some people post-process
37514    # each Makefile.in and add a new line on top of each file to say so.
37515    # Grep'ing the whole file is not good either: AIX grep has a line
37516    # limit of 2048, but all sed's we know have understand at least 4000.
37517    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37518      dirpart=`$as_dirname -- "$mf" ||
37519$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37520	 X"$mf" : 'X\(//\)[^/]' \| \
37521	 X"$mf" : 'X\(//\)$' \| \
37522	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37523$as_echo X"$mf" |
37524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37525	    s//\1/
37526	    q
37527	  }
37528	  /^X\(\/\/\)[^/].*/{
37529	    s//\1/
37530	    q
37531	  }
37532	  /^X\(\/\/\)$/{
37533	    s//\1/
37534	    q
37535	  }
37536	  /^X\(\/\).*/{
37537	    s//\1/
37538	    q
37539	  }
37540	  s/.*/./; q'`
37541    else
37542      continue
37543    fi
37544    # Extract the definition of DEPDIR, am__include, and am__quote
37545    # from the Makefile without running `make'.
37546    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37547    test -z "$DEPDIR" && continue
37548    am__include=`sed -n 's/^am__include = //p' < "$mf"`
37549    test -z "am__include" && continue
37550    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37551    # When using ansi2knr, U may be empty or an underscore; expand it
37552    U=`sed -n 's/^U = //p' < "$mf"`
37553    # Find all dependency output files, they are included files with
37554    # $(DEPDIR) in their names.  We invoke sed twice because it is the
37555    # simplest approach to changing $(DEPDIR) to its actual value in the
37556    # expansion.
37557    for file in `sed -n "
37558      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37559	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37560      # Make sure the directory exists.
37561      test -f "$dirpart/$file" && continue
37562      fdir=`$as_dirname -- "$file" ||
37563$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37564	 X"$file" : 'X\(//\)[^/]' \| \
37565	 X"$file" : 'X\(//\)$' \| \
37566	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37567$as_echo X"$file" |
37568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37569	    s//\1/
37570	    q
37571	  }
37572	  /^X\(\/\/\)[^/].*/{
37573	    s//\1/
37574	    q
37575	  }
37576	  /^X\(\/\/\)$/{
37577	    s//\1/
37578	    q
37579	  }
37580	  /^X\(\/\).*/{
37581	    s//\1/
37582	    q
37583	  }
37584	  s/.*/./; q'`
37585      as_dir=$dirpart/$fdir; as_fn_mkdir_p
37586      # echo "creating $dirpart/$file"
37587      echo '# dummy' > "$dirpart/$file"
37588    done
37589  done
37590}
37591 ;;
37592    "libtool":C)
37593
37594    # See if we are running on zsh, and set the options which allow our
37595    # commands through without removal of \ escapes.
37596    if test -n "${ZSH_VERSION+set}" ; then
37597      setopt NO_GLOB_SUBST
37598    fi
37599
37600    cfgfile="${ofile}T"
37601    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37602    $RM "$cfgfile"
37603
37604    cat <<_LT_EOF >> "$cfgfile"
37605#! $SHELL
37606
37607# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37608# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37610# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37611#
37612#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37613#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37614#                 Inc.
37615#   Written by Gordon Matzigkeit, 1996
37616#
37617#   This file is part of GNU Libtool.
37618#
37619# GNU Libtool is free software; you can redistribute it and/or
37620# modify it under the terms of the GNU General Public License as
37621# published by the Free Software Foundation; either version 2 of
37622# the License, or (at your option) any later version.
37623#
37624# As a special exception to the GNU General Public License,
37625# if you distribute this file as part of a program or library that
37626# is built using GNU Libtool, you may include this file under the
37627# same distribution terms that you use for the rest of that program.
37628#
37629# GNU Libtool is distributed in the hope that it will be useful,
37630# but WITHOUT ANY WARRANTY; without even the implied warranty of
37631# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
37632# GNU General Public License for more details.
37633#
37634# You should have received a copy of the GNU General Public License
37635# along with GNU Libtool; see the file COPYING.  If not, a copy
37636# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37637# obtained by writing to the Free Software Foundation, Inc.,
37638# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37639
37640
37641# The names of the tagged configurations supported by this script.
37642available_tags="CXX "
37643
37644# ### BEGIN LIBTOOL CONFIG
37645
37646# Whether or not to build shared libraries.
37647build_libtool_libs=$enable_shared
37648
37649# Which release of libtool.m4 was used?
37650macro_version=$macro_version
37651macro_revision=$macro_revision
37652
37653# Whether or not to build static libraries.
37654build_old_libs=$enable_static
37655
37656# What type of objects to build.
37657pic_mode=$pic_mode
37658
37659# Whether or not to optimize for fast installation.
37660fast_install=$enable_fast_install
37661
37662# Shell to use when invoking shell scripts.
37663SHELL=$lt_SHELL
37664
37665# An echo program that protects backslashes.
37666ECHO=$lt_ECHO
37667
37668# The host system.
37669host_alias=$host_alias
37670host=$host
37671host_os=$host_os
37672
37673# The build system.
37674build_alias=$build_alias
37675build=$build
37676build_os=$build_os
37677
37678# A sed program that does not truncate output.
37679SED=$lt_SED
37680
37681# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37682Xsed="\$SED -e 1s/^X//"
37683
37684# A grep program that handles long lines.
37685GREP=$lt_GREP
37686
37687# An ERE matcher.
37688EGREP=$lt_EGREP
37689
37690# A literal string matcher.
37691FGREP=$lt_FGREP
37692
37693# A BSD- or MS-compatible name lister.
37694NM=$lt_NM
37695
37696# Whether we need soft or hard links.
37697LN_S=$lt_LN_S
37698
37699# What is the maximum length of a command?
37700max_cmd_len=$max_cmd_len
37701
37702# Object file suffix (normally "o").
37703objext=$ac_objext
37704
37705# Executable file suffix (normally "").
37706exeext=$exeext
37707
37708# whether the shell understands "unset".
37709lt_unset=$lt_unset
37710
37711# turn spaces into newlines.
37712SP2NL=$lt_lt_SP2NL
37713
37714# turn newlines into spaces.
37715NL2SP=$lt_lt_NL2SP
37716
37717# convert \$build file names to \$host format.
37718to_host_file_cmd=$lt_cv_to_host_file_cmd
37719
37720# convert \$build files to toolchain format.
37721to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37722
37723# An object symbol dumper.
37724OBJDUMP=$lt_OBJDUMP
37725
37726# Method to check whether dependent libraries are shared objects.
37727deplibs_check_method=$lt_deplibs_check_method
37728
37729# Command to use when deplibs_check_method = "file_magic".
37730file_magic_cmd=$lt_file_magic_cmd
37731
37732# How to find potential files when deplibs_check_method = "file_magic".
37733file_magic_glob=$lt_file_magic_glob
37734
37735# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37736want_nocaseglob=$lt_want_nocaseglob
37737
37738# DLL creation program.
37739DLLTOOL=$lt_DLLTOOL
37740
37741# Command to associate shared and link libraries.
37742sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37743
37744# The archiver.
37745AR=$lt_AR
37746
37747# Flags to create an archive.
37748AR_FLAGS=$lt_AR_FLAGS
37749
37750# How to feed a file listing to the archiver.
37751archiver_list_spec=$lt_archiver_list_spec
37752
37753# A symbol stripping program.
37754STRIP=$lt_STRIP
37755
37756# Commands used to install an old-style archive.
37757RANLIB=$lt_RANLIB
37758old_postinstall_cmds=$lt_old_postinstall_cmds
37759old_postuninstall_cmds=$lt_old_postuninstall_cmds
37760
37761# Whether to use a lock for old archive extraction.
37762lock_old_archive_extraction=$lock_old_archive_extraction
37763
37764# A C compiler.
37765LTCC=$lt_CC
37766
37767# LTCC compiler flags.
37768LTCFLAGS=$lt_CFLAGS
37769
37770# Take the output of nm and produce a listing of raw symbols and C names.
37771global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37772
37773# Transform the output of nm in a proper C declaration.
37774global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37775
37776# Transform the output of nm in a C name address pair.
37777global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37778
37779# Transform the output of nm in a C name address pair when lib prefix is needed.
37780global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37781
37782# Specify filename containing input files for \$NM.
37783nm_file_list_spec=$lt_nm_file_list_spec
37784
37785# The root where to search for dependent libraries,and in which our libraries should be installed.
37786lt_sysroot=$lt_sysroot
37787
37788# The name of the directory that contains temporary libtool files.
37789objdir=$objdir
37790
37791# Used to examine libraries when file_magic_cmd begins with "file".
37792MAGIC_CMD=$MAGIC_CMD
37793
37794# Must we lock files when doing compilation?
37795need_locks=$lt_need_locks
37796
37797# Manifest tool.
37798MANIFEST_TOOL=$lt_MANIFEST_TOOL
37799
37800# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37801DSYMUTIL=$lt_DSYMUTIL
37802
37803# Tool to change global to local symbols on Mac OS X.
37804NMEDIT=$lt_NMEDIT
37805
37806# Tool to manipulate fat objects and archives on Mac OS X.
37807LIPO=$lt_LIPO
37808
37809# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37810OTOOL=$lt_OTOOL
37811
37812# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37813OTOOL64=$lt_OTOOL64
37814
37815# Old archive suffix (normally "a").
37816libext=$libext
37817
37818# Shared library suffix (normally ".so").
37819shrext_cmds=$lt_shrext_cmds
37820
37821# The commands to extract the exported symbol list from a shared archive.
37822extract_expsyms_cmds=$lt_extract_expsyms_cmds
37823
37824# Variables whose values should be saved in libtool wrapper scripts and
37825# restored at link time.
37826variables_saved_for_relink=$lt_variables_saved_for_relink
37827
37828# Do we need the "lib" prefix for modules?
37829need_lib_prefix=$need_lib_prefix
37830
37831# Do we need a version for libraries?
37832need_version=$need_version
37833
37834# Library versioning type.
37835version_type=$version_type
37836
37837# Shared library runtime path variable.
37838runpath_var=$runpath_var
37839
37840# Shared library path variable.
37841shlibpath_var=$shlibpath_var
37842
37843# Is shlibpath searched before the hard-coded library search path?
37844shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37845
37846# Format of library name prefix.
37847libname_spec=$lt_libname_spec
37848
37849# List of archive names.  First name is the real one, the rest are links.
37850# The last name is the one that the linker finds with -lNAME
37851library_names_spec=$lt_library_names_spec
37852
37853# The coded name of the library, if different from the real name.
37854soname_spec=$lt_soname_spec
37855
37856# Permission mode override for installation of shared libraries.
37857install_override_mode=$lt_install_override_mode
37858
37859# Command to use after installation of a shared archive.
37860postinstall_cmds=$lt_postinstall_cmds
37861
37862# Command to use after uninstallation of a shared archive.
37863postuninstall_cmds=$lt_postuninstall_cmds
37864
37865# Commands used to finish a libtool library installation in a directory.
37866finish_cmds=$lt_finish_cmds
37867
37868# As "finish_cmds", except a single script fragment to be evaled but
37869# not shown.
37870finish_eval=$lt_finish_eval
37871
37872# Whether we should hardcode library paths into libraries.
37873hardcode_into_libs=$hardcode_into_libs
37874
37875# Compile-time system search path for libraries.
37876sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37877
37878# Run-time system search path for libraries.
37879sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37880
37881# Whether dlopen is supported.
37882dlopen_support=$enable_dlopen
37883
37884# Whether dlopen of programs is supported.
37885dlopen_self=$enable_dlopen_self
37886
37887# Whether dlopen of statically linked programs is supported.
37888dlopen_self_static=$enable_dlopen_self_static
37889
37890# Commands to strip libraries.
37891old_striplib=$lt_old_striplib
37892striplib=$lt_striplib
37893
37894
37895# The linker used to build libraries.
37896LD=$lt_LD
37897
37898# How to create reloadable object files.
37899reload_flag=$lt_reload_flag
37900reload_cmds=$lt_reload_cmds
37901
37902# Commands used to build an old-style archive.
37903old_archive_cmds=$lt_old_archive_cmds
37904
37905# A language specific compiler.
37906CC=$lt_compiler
37907
37908# Is the compiler the GNU compiler?
37909with_gcc=$GCC
37910
37911# Compiler flag to turn off builtin functions.
37912no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37913
37914# Additional compiler flags for building library objects.
37915pic_flag=$lt_lt_prog_compiler_pic
37916
37917# How to pass a linker flag through the compiler.
37918wl=$lt_lt_prog_compiler_wl
37919
37920# Compiler flag to prevent dynamic linking.
37921link_static_flag=$lt_lt_prog_compiler_static
37922
37923# Does compiler simultaneously support -c and -o options?
37924compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37925
37926# Whether or not to add -lc for building shared libraries.
37927build_libtool_need_lc=$archive_cmds_need_lc
37928
37929# Whether or not to disallow shared libs when runtime libs are static.
37930allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37931
37932# Compiler flag to allow reflexive dlopens.
37933export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37934
37935# Compiler flag to generate shared objects directly from archives.
37936whole_archive_flag_spec=$lt_whole_archive_flag_spec
37937
37938# Whether the compiler copes with passing no objects directly.
37939compiler_needs_object=$lt_compiler_needs_object
37940
37941# Create an old-style archive from a shared archive.
37942old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37943
37944# Create a temporary old-style archive to link instead of a shared archive.
37945old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37946
37947# Commands used to build a shared archive.
37948archive_cmds=$lt_archive_cmds
37949archive_expsym_cmds=$lt_archive_expsym_cmds
37950
37951# Commands used to build a loadable module if different from building
37952# a shared archive.
37953module_cmds=$lt_module_cmds
37954module_expsym_cmds=$lt_module_expsym_cmds
37955
37956# Whether we are building with GNU ld or not.
37957with_gnu_ld=$lt_with_gnu_ld
37958
37959# Flag that allows shared libraries with undefined symbols to be built.
37960allow_undefined_flag=$lt_allow_undefined_flag
37961
37962# Flag that enforces no undefined symbols.
37963no_undefined_flag=$lt_no_undefined_flag
37964
37965# Flag to hardcode \$libdir into a binary during linking.
37966# This must work even if \$libdir does not exist
37967hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37968
37969# If ld is used when linking, flag to hardcode \$libdir into a binary
37970# during linking.  This must work even if \$libdir does not exist.
37971hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37972
37973# Whether we need a single "-rpath" flag with a separated argument.
37974hardcode_libdir_separator=$lt_hardcode_libdir_separator
37975
37976# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37977# DIR into the resulting binary.
37978hardcode_direct=$hardcode_direct
37979
37980# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37981# DIR into the resulting binary and the resulting library dependency is
37982# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37983# library is relocated.
37984hardcode_direct_absolute=$hardcode_direct_absolute
37985
37986# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37987# into the resulting binary.
37988hardcode_minus_L=$hardcode_minus_L
37989
37990# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37991# into the resulting binary.
37992hardcode_shlibpath_var=$hardcode_shlibpath_var
37993
37994# Set to "yes" if building a shared library automatically hardcodes DIR
37995# into the library and all subsequent libraries and executables linked
37996# against it.
37997hardcode_automatic=$hardcode_automatic
37998
37999# Set to yes if linker adds runtime paths of dependent libraries
38000# to runtime path list.
38001inherit_rpath=$inherit_rpath
38002
38003# Whether libtool must link a program against all its dependency libraries.
38004link_all_deplibs=$link_all_deplibs
38005
38006# Set to "yes" if exported symbols are required.
38007always_export_symbols=$always_export_symbols
38008
38009# The commands to list exported symbols.
38010export_symbols_cmds=$lt_export_symbols_cmds
38011
38012# Symbols that should not be listed in the preloaded symbols.
38013exclude_expsyms=$lt_exclude_expsyms
38014
38015# Symbols that must always be exported.
38016include_expsyms=$lt_include_expsyms
38017
38018# Commands necessary for linking programs (against libraries) with templates.
38019prelink_cmds=$lt_prelink_cmds
38020
38021# Commands necessary for finishing linking programs.
38022postlink_cmds=$lt_postlink_cmds
38023
38024# Specify filename containing input files.
38025file_list_spec=$lt_file_list_spec
38026
38027# How to hardcode a shared library path into an executable.
38028hardcode_action=$hardcode_action
38029
38030# The directories searched by this compiler when creating a shared library.
38031compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38032
38033# Dependencies to place before and after the objects being linked to
38034# create a shared library.
38035predep_objects=$lt_predep_objects
38036postdep_objects=$lt_postdep_objects
38037predeps=$lt_predeps
38038postdeps=$lt_postdeps
38039
38040# The library search path used internally by the compiler when linking
38041# a shared library.
38042compiler_lib_search_path=$lt_compiler_lib_search_path
38043
38044# ### END LIBTOOL CONFIG
38045
38046_LT_EOF
38047
38048  case $host_os in
38049  aix3*)
38050    cat <<\_LT_EOF >> "$cfgfile"
38051# AIX sometimes has problems with the GCC collect2 program.  For some
38052# reason, if we set the COLLECT_NAMES environment variable, the problems
38053# vanish in a puff of smoke.
38054if test "X${COLLECT_NAMES+set}" != Xset; then
38055  COLLECT_NAMES=
38056  export COLLECT_NAMES
38057fi
38058_LT_EOF
38059    ;;
38060  esac
38061
38062
38063ltmain="$ac_aux_dir/ltmain.sh"
38064
38065
38066  # We use sed instead of cat because bash on DJGPP gets confused if
38067  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38068  # text mode, it properly converts lines to CR/LF.  This bash problem
38069  # is reportedly fixed, but why not run on old versions too?
38070  sed '$q' "$ltmain" >> "$cfgfile" \
38071     || (rm -f "$cfgfile"; exit 1)
38072
38073  if test x"$xsi_shell" = xyes; then
38074  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38075func_dirname ()\
38076{\
38077\    case ${1} in\
38078\      */*) func_dirname_result="${1%/*}${2}" ;;\
38079\      *  ) func_dirname_result="${3}" ;;\
38080\    esac\
38081} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38082  && mv -f "$cfgfile.tmp" "$cfgfile" \
38083    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38084test 0 -eq $? || _lt_function_replace_fail=:
38085
38086
38087  sed -e '/^func_basename ()$/,/^} # func_basename /c\
38088func_basename ()\
38089{\
38090\    func_basename_result="${1##*/}"\
38091} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38092  && mv -f "$cfgfile.tmp" "$cfgfile" \
38093    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38094test 0 -eq $? || _lt_function_replace_fail=:
38095
38096
38097  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38098func_dirname_and_basename ()\
38099{\
38100\    case ${1} in\
38101\      */*) func_dirname_result="${1%/*}${2}" ;;\
38102\      *  ) func_dirname_result="${3}" ;;\
38103\    esac\
38104\    func_basename_result="${1##*/}"\
38105} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38106  && mv -f "$cfgfile.tmp" "$cfgfile" \
38107    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38108test 0 -eq $? || _lt_function_replace_fail=:
38109
38110
38111  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38112func_stripname ()\
38113{\
38114\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38115\    # positional parameters, so assign one to ordinary parameter first.\
38116\    func_stripname_result=${3}\
38117\    func_stripname_result=${func_stripname_result#"${1}"}\
38118\    func_stripname_result=${func_stripname_result%"${2}"}\
38119} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38120  && mv -f "$cfgfile.tmp" "$cfgfile" \
38121    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38122test 0 -eq $? || _lt_function_replace_fail=:
38123
38124
38125  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38126func_split_long_opt ()\
38127{\
38128\    func_split_long_opt_name=${1%%=*}\
38129\    func_split_long_opt_arg=${1#*=}\
38130} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38131  && mv -f "$cfgfile.tmp" "$cfgfile" \
38132    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38133test 0 -eq $? || _lt_function_replace_fail=:
38134
38135
38136  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38137func_split_short_opt ()\
38138{\
38139\    func_split_short_opt_arg=${1#??}\
38140\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38141} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38142  && mv -f "$cfgfile.tmp" "$cfgfile" \
38143    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38144test 0 -eq $? || _lt_function_replace_fail=:
38145
38146
38147  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38148func_lo2o ()\
38149{\
38150\    case ${1} in\
38151\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38152\      *)    func_lo2o_result=${1} ;;\
38153\    esac\
38154} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38155  && mv -f "$cfgfile.tmp" "$cfgfile" \
38156    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38157test 0 -eq $? || _lt_function_replace_fail=:
38158
38159
38160  sed -e '/^func_xform ()$/,/^} # func_xform /c\
38161func_xform ()\
38162{\
38163    func_xform_result=${1%.*}.lo\
38164} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38165  && mv -f "$cfgfile.tmp" "$cfgfile" \
38166    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38167test 0 -eq $? || _lt_function_replace_fail=:
38168
38169
38170  sed -e '/^func_arith ()$/,/^} # func_arith /c\
38171func_arith ()\
38172{\
38173    func_arith_result=$(( $* ))\
38174} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38175  && mv -f "$cfgfile.tmp" "$cfgfile" \
38176    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38177test 0 -eq $? || _lt_function_replace_fail=:
38178
38179
38180  sed -e '/^func_len ()$/,/^} # func_len /c\
38181func_len ()\
38182{\
38183    func_len_result=${#1}\
38184} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38185  && mv -f "$cfgfile.tmp" "$cfgfile" \
38186    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38187test 0 -eq $? || _lt_function_replace_fail=:
38188
38189fi
38190
38191if test x"$lt_shell_append" = xyes; then
38192  sed -e '/^func_append ()$/,/^} # func_append /c\
38193func_append ()\
38194{\
38195    eval "${1}+=\\${2}"\
38196} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38197  && mv -f "$cfgfile.tmp" "$cfgfile" \
38198    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38199test 0 -eq $? || _lt_function_replace_fail=:
38200
38201
38202  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38203func_append_quoted ()\
38204{\
38205\    func_quote_for_eval "${2}"\
38206\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38207} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38208  && mv -f "$cfgfile.tmp" "$cfgfile" \
38209    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38210test 0 -eq $? || _lt_function_replace_fail=:
38211
38212
38213  # Save a `func_append' function call where possible by direct use of '+='
38214  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38215    && mv -f "$cfgfile.tmp" "$cfgfile" \
38216      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38217  test 0 -eq $? || _lt_function_replace_fail=:
38218else
38219  # Save a `func_append' function call even when '+=' is not available
38220  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38221    && mv -f "$cfgfile.tmp" "$cfgfile" \
38222      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38223  test 0 -eq $? || _lt_function_replace_fail=:
38224fi
38225
38226if test x"$_lt_function_replace_fail" = x":"; then
38227  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38228$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38229fi
38230
38231
38232   mv -f "$cfgfile" "$ofile" ||
38233    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38234  chmod +x "$ofile"
38235
38236
38237    cat <<_LT_EOF >> "$ofile"
38238
38239# ### BEGIN LIBTOOL TAG CONFIG: CXX
38240
38241# The linker used to build libraries.
38242LD=$lt_LD_CXX
38243
38244# How to create reloadable object files.
38245reload_flag=$lt_reload_flag_CXX
38246reload_cmds=$lt_reload_cmds_CXX
38247
38248# Commands used to build an old-style archive.
38249old_archive_cmds=$lt_old_archive_cmds_CXX
38250
38251# A language specific compiler.
38252CC=$lt_compiler_CXX
38253
38254# Is the compiler the GNU compiler?
38255with_gcc=$GCC_CXX
38256
38257# Compiler flag to turn off builtin functions.
38258no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38259
38260# Additional compiler flags for building library objects.
38261pic_flag=$lt_lt_prog_compiler_pic_CXX
38262
38263# How to pass a linker flag through the compiler.
38264wl=$lt_lt_prog_compiler_wl_CXX
38265
38266# Compiler flag to prevent dynamic linking.
38267link_static_flag=$lt_lt_prog_compiler_static_CXX
38268
38269# Does compiler simultaneously support -c and -o options?
38270compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38271
38272# Whether or not to add -lc for building shared libraries.
38273build_libtool_need_lc=$archive_cmds_need_lc_CXX
38274
38275# Whether or not to disallow shared libs when runtime libs are static.
38276allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38277
38278# Compiler flag to allow reflexive dlopens.
38279export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38280
38281# Compiler flag to generate shared objects directly from archives.
38282whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38283
38284# Whether the compiler copes with passing no objects directly.
38285compiler_needs_object=$lt_compiler_needs_object_CXX
38286
38287# Create an old-style archive from a shared archive.
38288old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38289
38290# Create a temporary old-style archive to link instead of a shared archive.
38291old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38292
38293# Commands used to build a shared archive.
38294archive_cmds=$lt_archive_cmds_CXX
38295archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38296
38297# Commands used to build a loadable module if different from building
38298# a shared archive.
38299module_cmds=$lt_module_cmds_CXX
38300module_expsym_cmds=$lt_module_expsym_cmds_CXX
38301
38302# Whether we are building with GNU ld or not.
38303with_gnu_ld=$lt_with_gnu_ld_CXX
38304
38305# Flag that allows shared libraries with undefined symbols to be built.
38306allow_undefined_flag=$lt_allow_undefined_flag_CXX
38307
38308# Flag that enforces no undefined symbols.
38309no_undefined_flag=$lt_no_undefined_flag_CXX
38310
38311# Flag to hardcode \$libdir into a binary during linking.
38312# This must work even if \$libdir does not exist
38313hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38314
38315# If ld is used when linking, flag to hardcode \$libdir into a binary
38316# during linking.  This must work even if \$libdir does not exist.
38317hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
38318
38319# Whether we need a single "-rpath" flag with a separated argument.
38320hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38321
38322# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38323# DIR into the resulting binary.
38324hardcode_direct=$hardcode_direct_CXX
38325
38326# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38327# DIR into the resulting binary and the resulting library dependency is
38328# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38329# library is relocated.
38330hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38331
38332# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38333# into the resulting binary.
38334hardcode_minus_L=$hardcode_minus_L_CXX
38335
38336# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38337# into the resulting binary.
38338hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38339
38340# Set to "yes" if building a shared library automatically hardcodes DIR
38341# into the library and all subsequent libraries and executables linked
38342# against it.
38343hardcode_automatic=$hardcode_automatic_CXX
38344
38345# Set to yes if linker adds runtime paths of dependent libraries
38346# to runtime path list.
38347inherit_rpath=$inherit_rpath_CXX
38348
38349# Whether libtool must link a program against all its dependency libraries.
38350link_all_deplibs=$link_all_deplibs_CXX
38351
38352# Set to "yes" if exported symbols are required.
38353always_export_symbols=$always_export_symbols_CXX
38354
38355# The commands to list exported symbols.
38356export_symbols_cmds=$lt_export_symbols_cmds_CXX
38357
38358# Symbols that should not be listed in the preloaded symbols.
38359exclude_expsyms=$lt_exclude_expsyms_CXX
38360
38361# Symbols that must always be exported.
38362include_expsyms=$lt_include_expsyms_CXX
38363
38364# Commands necessary for linking programs (against libraries) with templates.
38365prelink_cmds=$lt_prelink_cmds_CXX
38366
38367# Commands necessary for finishing linking programs.
38368postlink_cmds=$lt_postlink_cmds_CXX
38369
38370# Specify filename containing input files.
38371file_list_spec=$lt_file_list_spec_CXX
38372
38373# How to hardcode a shared library path into an executable.
38374hardcode_action=$hardcode_action_CXX
38375
38376# The directories searched by this compiler when creating a shared library.
38377compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38378
38379# Dependencies to place before and after the objects being linked to
38380# create a shared library.
38381predep_objects=$lt_predep_objects_CXX
38382postdep_objects=$lt_postdep_objects_CXX
38383predeps=$lt_predeps_CXX
38384postdeps=$lt_postdeps_CXX
38385
38386# The library search path used internally by the compiler when linking
38387# a shared library.
38388compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38389
38390# ### END LIBTOOL TAG CONFIG: CXX
38391_LT_EOF
38392
38393 ;;
38394    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
38395    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
38396    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
38397    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
38398    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
38399    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
38400    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
38401    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
38402    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
38403    "scripts/summary":F) chmod +x scripts/summary ;;
38404
38405  esac
38406done # for ac_tag
38407
38408
38409as_fn_exit 0
38410_ACEOF
38411ac_clean_files=$ac_clean_files_save
38412
38413test $ac_write_fail = 0 ||
38414  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38415
38416
38417# configure is writing to config.log, and then calls config.status.
38418# config.status does its own redirection, appending to config.log.
38419# Unfortunately, on DOS this fails, as config.log is still kept open
38420# by configure, so config.status won't be able to write to it; its
38421# output is simply discarded.  So we exec the FD to /dev/null,
38422# effectively closing config.log, so it can be properly (re)opened and
38423# appended to by config.status.  When coming back to configure, we
38424# need to make the FD available again.
38425if test "$no_create" != yes; then
38426  ac_cs_success=:
38427  ac_config_status_args=
38428  test "$silent" = yes &&
38429    ac_config_status_args="$ac_config_status_args --quiet"
38430  exec 5>/dev/null
38431  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38432  exec 5>>config.log
38433  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38434  # would make configure fail if this is the last instruction.
38435  $ac_cs_success || as_fn_exit 1
38436fi
38437
38438#
38439# CONFIG_SUBDIRS section.
38440#
38441if test "$no_recursion" != yes; then
38442
38443  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
38444  # so they do not pile up.
38445  ac_sub_configure_args=
38446  ac_prev=
38447  eval "set x $ac_configure_args"
38448  shift
38449  for ac_arg
38450  do
38451    if test -n "$ac_prev"; then
38452      ac_prev=
38453      continue
38454    fi
38455    case $ac_arg in
38456    -cache-file | --cache-file | --cache-fil | --cache-fi \
38457    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38458      ac_prev=cache_file ;;
38459    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38460    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
38461    | --c=*)
38462      ;;
38463    --config-cache | -C)
38464      ;;
38465    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
38466      ac_prev=srcdir ;;
38467    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
38468      ;;
38469    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
38470      ac_prev=prefix ;;
38471    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
38472      ;;
38473    --disable-option-checking)
38474      ;;
38475    *)
38476      case $ac_arg in
38477      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
38478      esac
38479      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
38480    esac
38481  done
38482
38483  # Always prepend --prefix to ensure using the same prefix
38484  # in subdir configurations.
38485  ac_arg="--prefix=$prefix"
38486  case $ac_arg in
38487  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
38488  esac
38489  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
38490
38491  # Pass --silent
38492  if test "$silent" = yes; then
38493    ac_sub_configure_args="--silent $ac_sub_configure_args"
38494  fi
38495
38496  # Always prepend --disable-option-checking to silence warnings, since
38497  # different subdirs can have different --enable and --with options.
38498  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
38499
38500  ac_popdir=`pwd`
38501  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
38502
38503    # Do not complain, so a configure script can configure whichever
38504    # parts of a large source tree are present.
38505    test -d "$srcdir/$ac_dir" || continue
38506
38507    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
38508    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
38509    $as_echo "$ac_msg" >&6
38510    as_dir="$ac_dir"; as_fn_mkdir_p
38511    ac_builddir=.
38512
38513case "$ac_dir" in
38514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38515*)
38516  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38517  # A ".." for each directory in $ac_dir_suffix.
38518  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38519  case $ac_top_builddir_sub in
38520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38522  esac ;;
38523esac
38524ac_abs_top_builddir=$ac_pwd
38525ac_abs_builddir=$ac_pwd$ac_dir_suffix
38526# for backward compatibility:
38527ac_top_builddir=$ac_top_build_prefix
38528
38529case $srcdir in
38530  .)  # We are building in place.
38531    ac_srcdir=.
38532    ac_top_srcdir=$ac_top_builddir_sub
38533    ac_abs_top_srcdir=$ac_pwd ;;
38534  [\\/]* | ?:[\\/]* )  # Absolute name.
38535    ac_srcdir=$srcdir$ac_dir_suffix;
38536    ac_top_srcdir=$srcdir
38537    ac_abs_top_srcdir=$srcdir ;;
38538  *) # Relative name.
38539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38540    ac_top_srcdir=$ac_top_build_prefix$srcdir
38541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38542esac
38543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38544
38545
38546    cd "$ac_dir"
38547
38548    # Check for guested configure; otherwise get Cygnus style configure.
38549    if test -f "$ac_srcdir/configure.gnu"; then
38550      ac_sub_configure=$ac_srcdir/configure.gnu
38551    elif test -f "$ac_srcdir/configure"; then
38552      ac_sub_configure=$ac_srcdir/configure
38553    elif test -f "$ac_srcdir/configure.in"; then
38554      # This should be Cygnus configure.
38555      ac_sub_configure=$ac_aux_dir/configure
38556    else
38557      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
38558$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
38559      ac_sub_configure=
38560    fi
38561
38562    # The recursion is here.
38563    if test -n "$ac_sub_configure"; then
38564      # Make the cache file name correct relative to the subdirectory.
38565      case $cache_file in
38566      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
38567      *) # Relative name.
38568	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
38569      esac
38570
38571      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
38572$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
38573      # The eval makes quoting arguments work.
38574      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
38575	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
38576	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
38577    fi
38578
38579    cd "$ac_popdir"
38580  done
38581fi
38582if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38583  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38584$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38585fi
38586
38587