configure revision 285612
1252190Srpaulo#! /bin/sh
2252190Srpaulo# Guess values for system-dependent variables and create Makefiles.
3252190Srpaulo# Generated by GNU Autoconf 2.69 for ntp 4.2.8p3.
4252190Srpaulo#
5252190Srpaulo# Report bugs to <http://bugs.ntp.org./>.
6252190Srpaulo#
7252190Srpaulo#
8252190Srpaulo# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9252190Srpaulo#
10252190Srpaulo#
11252190Srpaulo# This configure script is free software; the Free Software Foundation
12252190Srpaulo# gives unlimited permission to copy, distribute and modify it.
13252190Srpaulo## -------------------- ##
14252190Srpaulo## M4sh Initialization. ##
15252190Srpaulo## -------------------- ##
16252190Srpaulo
17252190Srpaulo# Be more Bourne compatible
18252190SrpauloDUALCASE=1; export DUALCASE # for MKS sh
19252190Srpauloif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20252190Srpaulo  emulate sh
21252190Srpaulo  NULLCMD=:
22252190Srpaulo  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23252190Srpaulo  # is contrary to our usage.  Disable this feature.
24252190Srpaulo  alias -g '${1+"$@"}'='"$@"'
25252190Srpaulo  setopt NO_GLOB_SUBST
26252190Srpauloelse
27252190Srpaulo  case `(set -o) 2>/dev/null` in #(
28252190Srpaulo  *posix*) :
29252190Srpaulo    set -o posix ;; #(
30252190Srpaulo  *) :
31252190Srpaulo     ;;
32252190Srpauloesac
33252190Srpaulofi
34252190Srpaulo
35252190Srpaulo
36252190Srpauloas_nl='
37252190Srpaulo'
38252190Srpauloexport as_nl
39252190Srpaulo# Printing a long string crashes Solaris 7 /usr/bin/printf.
40252190Srpauloas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41252190Srpauloas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42252190Srpauloas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43252190Srpaulo# Prefer a ksh shell builtin over an external printf program on Solaris,
44252190Srpaulo# but without wasting forks for bash or zsh.
45252190Srpauloif test -z "$BASH_VERSION$ZSH_VERSION" \
46252190Srpaulo    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47252190Srpaulo  as_echo='print -r --'
48252190Srpaulo  as_echo_n='print -rn --'
49252190Srpauloelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50252190Srpaulo  as_echo='printf %s\n'
51252190Srpaulo  as_echo_n='printf %s'
52252190Srpauloelse
53252190Srpaulo  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54252190Srpaulo    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55252190Srpaulo    as_echo_n='/usr/ucb/echo -n'
56252190Srpaulo  else
57252190Srpaulo    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58252190Srpaulo    as_echo_n_body='eval
59252190Srpaulo      arg=$1;
60252190Srpaulo      case $arg in #(
61252190Srpaulo      *"$as_nl"*)
62252190Srpaulo	expr "X$arg" : "X\\(.*\\)$as_nl";
63252190Srpaulo	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64252190Srpaulo      esac;
65252190Srpaulo      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66252190Srpaulo    '
67252190Srpaulo    export as_echo_n_body
68252190Srpaulo    as_echo_n='sh -c $as_echo_n_body as_echo'
69252190Srpaulo  fi
70252190Srpaulo  export as_echo_body
71252190Srpaulo  as_echo='sh -c $as_echo_body as_echo'
72252190Srpaulofi
73252190Srpaulo
74252190Srpaulo# The user is always right.
75252190Srpauloif test "${PATH_SEPARATOR+set}" != set; then
76252190Srpaulo  PATH_SEPARATOR=:
77252190Srpaulo  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78252190Srpaulo    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79252190Srpaulo      PATH_SEPARATOR=';'
80252190Srpaulo  }
81252190Srpaulofi
82252190Srpaulo
83252190Srpaulo
84252190Srpaulo# IFS
85252190Srpaulo# We need space, tab and new line, in precisely that order.  Quoting is
86252190Srpaulo# there to prevent editors from complaining about space-tab.
87252190Srpaulo# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88252190Srpaulo# splitting by setting IFS to empty value.)
89252190SrpauloIFS=" ""	$as_nl"
90252190Srpaulo
91252190Srpaulo# Find who we are.  Look in the path if we contain no directory separator.
92252190Srpauloas_myself=
93252190Srpaulocase $0 in #((
94252190Srpaulo  *[\\/]* ) as_myself=$0 ;;
95252190Srpaulo  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96252190Srpaulofor as_dir in $PATH
97252190Srpaulodo
98252190Srpaulo  IFS=$as_save_IFS
99252190Srpaulo  test -z "$as_dir" && as_dir=.
100252190Srpaulo    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101252190Srpaulo  done
102252190SrpauloIFS=$as_save_IFS
103252190Srpaulo
104252190Srpaulo     ;;
105252190Srpauloesac
106252190Srpaulo# We did not find ourselves, most probably we were run as `sh COMMAND'
107252190Srpaulo# in which case we are not to be found in the path.
108252190Srpauloif test "x$as_myself" = x; then
109252190Srpaulo  as_myself=$0
110252190Srpaulofi
111252190Srpauloif test ! -f "$as_myself"; then
112252190Srpaulo  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113252190Srpaulo  exit 1
114252190Srpaulofi
115252190Srpaulo
116252190Srpaulo# Unset variables that we do not need and which cause bugs (e.g. in
117252190Srpaulo# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118252190Srpaulo# suppresses any "Segmentation fault" message there.  '((' could
119252190Srpaulo# trigger a bug in pdksh 5.2.14.
120252190Srpaulofor as_var in BASH_ENV ENV MAIL MAILPATH
121252190Srpaulodo eval test x\${$as_var+set} = xset \
122252190Srpaulo  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123252190Srpaulodone
124252190SrpauloPS1='$ '
125252190SrpauloPS2='> '
126252190SrpauloPS4='+ '
127252190Srpaulo
128252190Srpaulo# NLS nuisances.
129252190SrpauloLC_ALL=C
130252190Srpauloexport LC_ALL
131252190SrpauloLANGUAGE=C
132252190Srpauloexport LANGUAGE
133252190Srpaulo
134252190Srpaulo# CDPATH.
135252190Srpaulo(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136252190Srpaulo
137252190Srpaulo# Use a proper internal environment variable to ensure we don't fall
138252190Srpaulo  # into an infinite loop, continuously re-executing ourselves.
139252190Srpaulo  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140252190Srpaulo    _as_can_reexec=no; export _as_can_reexec;
141252190Srpaulo    # We cannot yet assume a decent shell, so we have to provide a
142252190Srpaulo# neutralization value for shells without unset; and this also
143252190Srpaulo# works around shells that cannot unset nonexistent variables.
144252190Srpaulo# Preserve -v and -x to the replacement shell.
145252190SrpauloBASH_ENV=/dev/null
146252190SrpauloENV=/dev/null
147252190Srpaulo(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148252190Srpaulocase $- in # ((((
149252190Srpaulo  *v*x* | *x*v* ) as_opts=-vx ;;
150252190Srpaulo  *v* ) as_opts=-v ;;
151252190Srpaulo  *x* ) as_opts=-x ;;
152252190Srpaulo  * ) as_opts= ;;
153252190Srpauloesac
154252190Srpauloexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155252190Srpaulo# Admittedly, this is quite paranoid, since all the known shells bail
156252190Srpaulo# out after a failed `exec'.
157252190Srpaulo$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158252190Srpauloas_fn_exit 255
159252190Srpaulo  fi
160252190Srpaulo  # We don't want this to propagate to other subprocesses.
161252190Srpaulo          { _as_can_reexec=; unset _as_can_reexec;}
162252190Srpauloif test "x$CONFIG_SHELL" = x; then
163252190Srpaulo  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164252190Srpaulo  emulate sh
165252190Srpaulo  NULLCMD=:
166252190Srpaulo  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167252190Srpaulo  # is contrary to our usage.  Disable this feature.
168252190Srpaulo  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169252190Srpaulo  setopt NO_GLOB_SUBST
170252190Srpauloelse
171252190Srpaulo  case \`(set -o) 2>/dev/null\` in #(
172252190Srpaulo  *posix*) :
173252190Srpaulo    set -o posix ;; #(
174252190Srpaulo  *) :
175252190Srpaulo     ;;
176252190Srpauloesac
177252190Srpaulofi
178252190Srpaulo"
179252190Srpaulo  as_required="as_fn_return () { (exit \$1); }
180252190Srpauloas_fn_success () { as_fn_return 0; }
181252190Srpauloas_fn_failure () { as_fn_return 1; }
182252190Srpauloas_fn_ret_success () { return 0; }
183252190Srpauloas_fn_ret_failure () { return 1; }
184252190Srpaulo
185252190Srpauloexitcode=0
186252190Srpauloas_fn_success || { exitcode=1; echo as_fn_success failed.; }
187252190Srpauloas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188252190Srpauloas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189252190Srpauloas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190252190Srpauloif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191252190Srpaulo
192252190Srpauloelse
193252190Srpaulo  exitcode=1; echo positional parameters were not saved.
194252190Srpaulofi
195252190Srpaulotest x\$exitcode = x0 || exit 1
196252190Srpaulotest -x / || exit 1"
197252190Srpaulo  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198252190Srpaulo  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199252190Srpaulo  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200252190Srpaulo  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201252190Srpaulotest \$(( 1 + 1 )) = 2 || exit 1
202252190Srpaulo
203252190Srpaulo  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204252190Srpaulo    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205252190Srpaulo    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206252190Srpaulo    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207252190Srpaulo    PATH=/empty FPATH=/empty; export PATH FPATH
208252190Srpaulo    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209252190Srpaulo      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210252190Srpaulo  if (eval "$as_required") 2>/dev/null; then :
211252190Srpaulo  as_have_required=yes
212252190Srpauloelse
213252190Srpaulo  as_have_required=no
214252190Srpaulofi
215252190Srpaulo  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216252190Srpaulo
217252190Srpauloelse
218252190Srpaulo  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219252190Srpauloas_found=false
220252190Srpaulofor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221252190Srpaulodo
222252190Srpaulo  IFS=$as_save_IFS
223252190Srpaulo  test -z "$as_dir" && as_dir=.
224252190Srpaulo  as_found=:
225252190Srpaulo  case $as_dir in #(
226252190Srpaulo	 /*)
227252190Srpaulo	   for as_base in sh bash ksh sh5; do
228252190Srpaulo	     # Try only shells that exist, to save several forks.
229252190Srpaulo	     as_shell=$as_dir/$as_base
230252190Srpaulo	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231252190Srpaulo		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232252190Srpaulo  CONFIG_SHELL=$as_shell as_have_required=yes
233252190Srpaulo		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234252190Srpaulo  break 2
235252190Srpaulofi
236252190Srpaulofi
237252190Srpaulo	   done;;
238252190Srpaulo       esac
239252190Srpaulo  as_found=false
240252190Srpaulodone
241252190Srpaulo$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242252190Srpaulo	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243252190Srpaulo  CONFIG_SHELL=$SHELL as_have_required=yes
244252190Srpaulofi; }
245252190SrpauloIFS=$as_save_IFS
246252190Srpaulo
247252190Srpaulo
248252190Srpaulo      if test "x$CONFIG_SHELL" != x; then :
249252190Srpaulo  export CONFIG_SHELL
250252190Srpaulo             # We cannot yet assume a decent shell, so we have to provide a
251252190Srpaulo# neutralization value for shells without unset; and this also
252252190Srpaulo# works around shells that cannot unset nonexistent variables.
253252190Srpaulo# Preserve -v and -x to the replacement shell.
254252190SrpauloBASH_ENV=/dev/null
255252190SrpauloENV=/dev/null
256252190Srpaulo(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257252190Srpaulocase $- in # ((((
258252190Srpaulo  *v*x* | *x*v* ) as_opts=-vx ;;
259252190Srpaulo  *v* ) as_opts=-v ;;
260252190Srpaulo  *x* ) as_opts=-x ;;
261252190Srpaulo  * ) as_opts= ;;
262252190Srpauloesac
263252190Srpauloexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264252190Srpaulo# Admittedly, this is quite paranoid, since all the known shells bail
265252190Srpaulo# out after a failed `exec'.
266252190Srpaulo$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267252190Srpauloexit 255
268252190Srpaulofi
269252190Srpaulo
270252190Srpaulo    if test x$as_have_required = xno; then :
271252190Srpaulo  $as_echo "$0: This script requires a shell more modern than all"
272252190Srpaulo  $as_echo "$0: the shells that I found on your system."
273252190Srpaulo  if test x${ZSH_VERSION+set} = xset ; then
274252190Srpaulo    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275252190Srpaulo    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276252190Srpaulo  else
277252190Srpaulo    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278252190Srpaulo$0: http://bugs.ntp.org./ about your system, including any
279252190Srpaulo$0: error possibly output before this message. Then install
280252190Srpaulo$0: a modern shell, or manually run the script under such a
281252190Srpaulo$0: shell if you do have one."
282252190Srpaulo  fi
283252190Srpaulo  exit 1
284252190Srpaulofi
285252190Srpaulofi
286252190Srpaulofi
287252190SrpauloSHELL=${CONFIG_SHELL-/bin/sh}
288252190Srpauloexport SHELL
289252190Srpaulo# Unset more variables known to interfere with behavior of common tools.
290252190SrpauloCLICOLOR_FORCE= GREP_OPTIONS=
291252190Srpaulounset CLICOLOR_FORCE GREP_OPTIONS
292252190Srpaulo
293252190Srpaulo## --------------------- ##
294252190Srpaulo## M4sh Shell Functions. ##
295252190Srpaulo## --------------------- ##
296252190Srpaulo# as_fn_unset VAR
297252190Srpaulo# ---------------
298252190Srpaulo# Portably unset VAR.
299252190Srpauloas_fn_unset ()
300252190Srpaulo{
301252190Srpaulo  { eval $1=; unset $1;}
302252190Srpaulo}
303252190Srpauloas_unset=as_fn_unset
304252190Srpaulo
305252190Srpaulo# as_fn_set_status STATUS
306252190Srpaulo# -----------------------
307252190Srpaulo# Set $? to STATUS, without forking.
308252190Srpauloas_fn_set_status ()
309252190Srpaulo{
310252190Srpaulo  return $1
311252190Srpaulo} # as_fn_set_status
312252190Srpaulo
313252190Srpaulo# as_fn_exit STATUS
314252190Srpaulo# -----------------
315252190Srpaulo# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316252190Srpauloas_fn_exit ()
317252190Srpaulo{
318252190Srpaulo  set +e
319252190Srpaulo  as_fn_set_status $1
320252190Srpaulo  exit $1
321252190Srpaulo} # as_fn_exit
322252190Srpaulo
323252190Srpaulo# as_fn_mkdir_p
324252190Srpaulo# -------------
325252190Srpaulo# Create "$as_dir" as a directory, including parents if necessary.
326252190Srpauloas_fn_mkdir_p ()
327252190Srpaulo{
328252190Srpaulo
329252190Srpaulo  case $as_dir in #(
330252190Srpaulo  -*) as_dir=./$as_dir;;
331252190Srpaulo  esac
332252190Srpaulo  test -d "$as_dir" || eval $as_mkdir_p || {
333252190Srpaulo    as_dirs=
334252190Srpaulo    while :; do
335252190Srpaulo      case $as_dir in #(
336252190Srpaulo      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337252190Srpaulo      *) as_qdir=$as_dir;;
338252190Srpaulo      esac
339252190Srpaulo      as_dirs="'$as_qdir' $as_dirs"
340252190Srpaulo      as_dir=`$as_dirname -- "$as_dir" ||
341252190Srpaulo$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342252190Srpaulo	 X"$as_dir" : 'X\(//\)[^/]' \| \
343252190Srpaulo	 X"$as_dir" : 'X\(//\)$' \| \
344252190Srpaulo	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345252190Srpaulo$as_echo X"$as_dir" |
346252190Srpaulo    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347252190Srpaulo	    s//\1/
348252190Srpaulo	    q
349252190Srpaulo	  }
350252190Srpaulo	  /^X\(\/\/\)[^/].*/{
351252190Srpaulo	    s//\1/
352252190Srpaulo	    q
353252190Srpaulo	  }
354252190Srpaulo	  /^X\(\/\/\)$/{
355252190Srpaulo	    s//\1/
356252190Srpaulo	    q
357252190Srpaulo	  }
358252190Srpaulo	  /^X\(\/\).*/{
359252190Srpaulo	    s//\1/
360252190Srpaulo	    q
361252190Srpaulo	  }
362252190Srpaulo	  s/.*/./; q'`
363252190Srpaulo      test -d "$as_dir" && break
364252190Srpaulo    done
365252190Srpaulo    test -z "$as_dirs" || eval "mkdir $as_dirs"
366252190Srpaulo  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367252190Srpaulo
368252190Srpaulo
369252190Srpaulo} # as_fn_mkdir_p
370252190Srpaulo
371252190Srpaulo# as_fn_executable_p FILE
372252190Srpaulo# -----------------------
373252190Srpaulo# Test if FILE is an executable regular file.
374252190Srpauloas_fn_executable_p ()
375252190Srpaulo{
376252190Srpaulo  test -f "$1" && test -x "$1"
377252190Srpaulo} # as_fn_executable_p
378252190Srpaulo# as_fn_append VAR VALUE
379252190Srpaulo# ----------------------
380252190Srpaulo# Append the text in VALUE to the end of the definition contained in VAR. Take
381252190Srpaulo# advantage of any shell optimizations that allow amortized linear growth over
382252190Srpaulo# repeated appends, instead of the typical quadratic growth present in naive
383252190Srpaulo# implementations.
384252190Srpauloif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385252190Srpaulo  eval 'as_fn_append ()
386252190Srpaulo  {
387252190Srpaulo    eval $1+=\$2
388252190Srpaulo  }'
389252190Srpauloelse
390252190Srpaulo  as_fn_append ()
391252190Srpaulo  {
392252190Srpaulo    eval $1=\$$1\$2
393252190Srpaulo  }
394252190Srpaulofi # as_fn_append
395252190Srpaulo
396252190Srpaulo# as_fn_arith ARG...
397252190Srpaulo# ------------------
398252190Srpaulo# Perform arithmetic evaluation on the ARGs, and store the result in the
399252190Srpaulo# global $as_val. Take advantage of shells that can avoid forks. The arguments
400252190Srpaulo# must be portable across $(()) and expr.
401252190Srpauloif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402252190Srpaulo  eval 'as_fn_arith ()
403252190Srpaulo  {
404252190Srpaulo    as_val=$(( $* ))
405252190Srpaulo  }'
406252190Srpauloelse
407252190Srpaulo  as_fn_arith ()
408252190Srpaulo  {
409252190Srpaulo    as_val=`expr "$@" || test $? -eq 1`
410252190Srpaulo  }
411252190Srpaulofi # as_fn_arith
412252190Srpaulo
413252190Srpaulo
414252190Srpaulo# as_fn_error STATUS ERROR [LINENO LOG_FD]
415252190Srpaulo# ----------------------------------------
416252190Srpaulo# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417252190Srpaulo# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418252190Srpaulo# script with STATUS, using 1 if that was 0.
419252190Srpauloas_fn_error ()
420252190Srpaulo{
421252190Srpaulo  as_status=$1; test $as_status -eq 0 && as_status=1
422252190Srpaulo  if test "$4"; then
423252190Srpaulo    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424252190Srpaulo    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425252190Srpaulo  fi
426252190Srpaulo  $as_echo "$as_me: error: $2" >&2
427252190Srpaulo  as_fn_exit $as_status
428252190Srpaulo} # as_fn_error
429252190Srpaulo
430252190Srpauloif expr a : '\(a\)' >/dev/null 2>&1 &&
431252190Srpaulo   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432252190Srpaulo  as_expr=expr
433252190Srpauloelse
434252190Srpaulo  as_expr=false
435252190Srpaulofi
436252190Srpaulo
437252190Srpauloif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438252190Srpaulo  as_basename=basename
439252190Srpauloelse
440252190Srpaulo  as_basename=false
441252190Srpaulofi
442252190Srpaulo
443252190Srpauloif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444252190Srpaulo  as_dirname=dirname
445252190Srpauloelse
446252190Srpaulo  as_dirname=false
447252190Srpaulofi
448252190Srpaulo
449252190Srpauloas_me=`$as_basename -- "$0" ||
450252190Srpaulo$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451252190Srpaulo	 X"$0" : 'X\(//\)$' \| \
452252190Srpaulo	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453252190Srpaulo$as_echo X/"$0" |
454252190Srpaulo    sed '/^.*\/\([^/][^/]*\)\/*$/{
455252190Srpaulo	    s//\1/
456252190Srpaulo	    q
457252190Srpaulo	  }
458252190Srpaulo	  /^X\/\(\/\/\)$/{
459252190Srpaulo	    s//\1/
460252190Srpaulo	    q
461252190Srpaulo	  }
462252190Srpaulo	  /^X\/\(\/\).*/{
463252190Srpaulo	    s//\1/
464252190Srpaulo	    q
465252190Srpaulo	  }
466252190Srpaulo	  s/.*/./; q'`
467252190Srpaulo
468252190Srpaulo# Avoid depending upon Character Ranges.
469252190Srpauloas_cr_letters='abcdefghijklmnopqrstuvwxyz'
470252190Srpauloas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471252190Srpauloas_cr_Letters=$as_cr_letters$as_cr_LETTERS
472252190Srpauloas_cr_digits='0123456789'
473252190Srpauloas_cr_alnum=$as_cr_Letters$as_cr_digits
474252190Srpaulo
475252190Srpaulo
476252190Srpaulo  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477252190Srpaulo  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478252190Srpaulo  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479252190Srpaulo  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480252190Srpaulo  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481252190Srpaulo  sed -n '
482252190Srpaulo    p
483252190Srpaulo    /[$]LINENO/=
484252190Srpaulo  ' <$as_myself |
485252190Srpaulo    sed '
486252190Srpaulo      s/[$]LINENO.*/&-/
487252190Srpaulo      t lineno
488252190Srpaulo      b
489252190Srpaulo      :lineno
490252190Srpaulo      N
491252190Srpaulo      :loop
492252190Srpaulo      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493252190Srpaulo      t loop
494252190Srpaulo      s/-\n.*//
495252190Srpaulo    ' >$as_me.lineno &&
496252190Srpaulo  chmod +x "$as_me.lineno" ||
497252190Srpaulo    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498252190Srpaulo
499252190Srpaulo  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500252190Srpaulo  # already done that, so ensure we don't try to do so again and fall
501252190Srpaulo  # in an infinite loop.  This has already happened in practice.
502252190Srpaulo  _as_can_reexec=no; export _as_can_reexec
503252190Srpaulo  # Don't try to exec as it changes $[0], causing all sort of problems
504252190Srpaulo  # (the dirname of $[0] is not the place where we might find the
505252190Srpaulo  # original and so on.  Autoconf is especially sensitive to this).
506252190Srpaulo  . "./$as_me.lineno"
507252190Srpaulo  # Exit status is that of the last command.
508252190Srpaulo  exit
509252190Srpaulo}
510252190Srpaulo
511252190SrpauloECHO_C= ECHO_N= ECHO_T=
512252190Srpaulocase `echo -n x` in #(((((
513252190Srpaulo-n*)
514252190Srpaulo  case `echo 'xy\c'` in
515252190Srpaulo  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516252190Srpaulo  xy)  ECHO_C='\c';;
517252190Srpaulo  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518252190Srpaulo       ECHO_T='	';;
519252190Srpaulo  esac;;
520252190Srpaulo*)
521252190Srpaulo  ECHO_N='-n';;
522252190Srpauloesac
523252190Srpaulo
524252190Srpaulorm -f conf$$ conf$$.exe conf$$.file
525252190Srpauloif test -d conf$$.dir; then
526252190Srpaulo  rm -f conf$$.dir/conf$$.file
527252190Srpauloelse
528252190Srpaulo  rm -f conf$$.dir
529252190Srpaulo  mkdir conf$$.dir 2>/dev/null
530252190Srpaulofi
531252190Srpauloif (echo >conf$$.file) 2>/dev/null; then
532252190Srpaulo  if ln -s conf$$.file conf$$ 2>/dev/null; then
533252190Srpaulo    as_ln_s='ln -s'
534252190Srpaulo    # ... but there are two gotchas:
535252190Srpaulo    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536252190Srpaulo    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537252190Srpaulo    # In both cases, we have to default to `cp -pR'.
538252190Srpaulo    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539252190Srpaulo      as_ln_s='cp -pR'
540252190Srpaulo  elif ln conf$$.file conf$$ 2>/dev/null; then
541252190Srpaulo    as_ln_s=ln
542252190Srpaulo  else
543252190Srpaulo    as_ln_s='cp -pR'
544252190Srpaulo  fi
545252190Srpauloelse
546252190Srpaulo  as_ln_s='cp -pR'
547252190Srpaulofi
548252190Srpaulorm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549252190Srpaulormdir conf$$.dir 2>/dev/null
550252190Srpaulo
551252190Srpauloif mkdir -p . 2>/dev/null; then
552252190Srpaulo  as_mkdir_p='mkdir -p "$as_dir"'
553252190Srpauloelse
554252190Srpaulo  test -d ./-p && rmdir ./-p
555252190Srpaulo  as_mkdir_p=false
556252190Srpaulofi
557252190Srpaulo
558252190Srpauloas_test_x='test -x'
559252190Srpauloas_executable_p=as_fn_executable_p
560252190Srpaulo
561252190Srpaulo# Sed expression to map a string onto a valid CPP name.
562252190Srpauloas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563252190Srpaulo
564252190Srpaulo# Sed expression to map a string onto a valid variable name.
565252190Srpauloas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566252190Srpaulo
567252190SrpauloSHELL=${CONFIG_SHELL-/bin/sh}
568252190Srpaulo
569252190Srpaulo
570252190Srpaulotest -n "$DJDIR" || exec 7<&0 </dev/null
571252190Srpauloexec 6>&1
572252190Srpaulo
573252190Srpaulo# Name of the host.
574252190Srpaulo# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575252190Srpaulo# so uname gets run too.
576252190Srpauloac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577252190Srpaulo
578252190Srpaulo#
579252190Srpaulo# Initializations.
580252190Srpaulo#
581252190Srpauloac_default_prefix=/usr/local
582252190Srpauloac_clean_files=
583252190Srpauloac_config_libobj_dir=.
584252190SrpauloLIBOBJS=
585252190Srpaulocross_compiling=no
586252190Srpaulosubdirs=
587252190SrpauloMFLAGS=
588252190SrpauloMAKEFLAGS=
589252190Srpaulo
590252190Srpaulo# Identity of this package.
591252190SrpauloPACKAGE_NAME='ntp'
592252190SrpauloPACKAGE_TARNAME='ntp'
593252190SrpauloPACKAGE_VERSION='4.2.8p3'
594252190SrpauloPACKAGE_STRING='ntp 4.2.8p3'
595252190SrpauloPACKAGE_BUGREPORT='http://bugs.ntp.org./'
596252190SrpauloPACKAGE_URL='http://www.ntp.org./'
597252190Srpaulo
598252190Srpaulo# Factoring default headers for most tests.
599252190Srpauloac_includes_default="\
600252190Srpaulo#include <stdio.h>
601252190Srpaulo#ifdef HAVE_SYS_TYPES_H
602252190Srpaulo# include <sys/types.h>
603252190Srpaulo#endif
604252190Srpaulo#ifdef HAVE_SYS_STAT_H
605252190Srpaulo# include <sys/stat.h>
606252190Srpaulo#endif
607252190Srpaulo#ifdef STDC_HEADERS
608252190Srpaulo# include <stdlib.h>
609252190Srpaulo# include <stddef.h>
610252190Srpaulo#else
611252190Srpaulo# ifdef HAVE_STDLIB_H
612252190Srpaulo#  include <stdlib.h>
613252190Srpaulo# endif
614252190Srpaulo#endif
615252190Srpaulo#ifdef HAVE_STRING_H
616252190Srpaulo# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617252190Srpaulo#  include <memory.h>
618252190Srpaulo# endif
619252190Srpaulo# include <string.h>
620252190Srpaulo#endif
621252190Srpaulo#ifdef HAVE_STRINGS_H
622252190Srpaulo# include <strings.h>
623252190Srpaulo#endif
624252190Srpaulo#ifdef HAVE_INTTYPES_H
625252190Srpaulo# include <inttypes.h>
626252190Srpaulo#endif
627252190Srpaulo#ifdef HAVE_STDINT_H
628252190Srpaulo# include <stdint.h>
629252190Srpaulo#endif
630252190Srpaulo#ifdef HAVE_UNISTD_H
631252190Srpaulo# include <unistd.h>
632252190Srpaulo#endif"
633252190Srpaulo
634252190Srpauloac_header_list=
635252190Srpauloenable_option_checking=no
636252190Srpauloac_subst_vars='am__EXEEXT_FALSE
637252190Srpauloam__EXEEXT_TRUE
638252190SrpauloLTLIBOBJS
639252190Srpaulosubdirs
640252190SrpauloPERLLIBDIR
641252190SrpauloNTP_KEYSDIR
642252190SrpauloGTEST_AVAILABLE_FALSE
643252190SrpauloGTEST_AVAILABLE_TRUE
644252190SrpauloGTEST_CPPFLAGS
645252190SrpauloGTEST_CXXFLAGS
646252190SrpauloGTEST_LIBS
647252190SrpauloGTEST_LDFLAGS
648252190SrpauloGTEST_CONFIG
649252190SrpauloUNITYBUILD_AVAILABLE_FALSE
650252190SrpauloUNITYBUILD_AVAILABLE_TRUE
651252190SrpauloPATH_RUBY
652252190SrpauloHAVE_LEAPSMEARINTERVAL
653252190SrpauloSAVECONFIG_ENABLED_FALSE
654252190SrpauloSAVECONFIG_ENABLED_TRUE
655252190SrpauloLSCF
656252190SrpauloMAKE_NTPSNMPD
657252190SrpauloSNMP_CFLAGS
658252190SrpauloSNMP_CPPFLAGS
659252190SrpauloSNMP_LIBS
660252190SrpauloBUILD_SNTP_FALSE
661252190SrpauloBUILD_SNTP_TRUE
662252190SrpauloSNTP
663252190SrpauloMAKE_NTPDSIM
664252190SrpauloMAKE_LIBNTPSIM
665252190SrpauloMAKE_TIMETRIM
666252190SrpauloMAKE_TICKADJ
667252190SrpauloMAKE_NTPTIME
668252190SrpauloMAKE_ADJTIMED
669252190SrpauloCHUTEST
670252190SrpauloPROPDELAY
671252190SrpauloMAKE_PARSEKMODULE
672252190SrpauloDCFD
673252190SrpauloTESTDCF
674252190SrpauloMAKE_CHECK_LAYOUT
675252190SrpauloVER_SUFFIX
676252190SrpauloMAKE_CHECK_Y2K
677252190SrpauloMAKE_LIBPARSE_KERNEL
678252190SrpauloMAKE_LIBPARSE
679252190SrpauloLIBPARSE
680252190SrpauloHAVE_RLIMIT_STACK
681252190SrpauloHAVE_RLIMIT_MEMLOCK
682252190SrpauloLDADD_NLIST
683252190SrpauloPATH_NET_SNMP_CONFIG
684252190SrpauloCONFIG_SHELL
685252190SrpauloPATH_TEST
686252190SrpauloPATH_PERL
687252190SrpauloLIBOBJS
688252190SrpauloPTHREADS_FALSE
689252190SrpauloPTHREADS_TRUE
690252190SrpauloLIBISC_PTHREADS_NOTHREADS
691252190SrpauloPTHREAD_LIBS
692252190SrpauloHAVE_INLINE
693252190SrpauloLDADD_LIBUTIL
694252190SrpauloALLOCA
695252190SrpauloLIBM
696252190SrpauloEDITLINE_LIBS
697252190SrpauloLDADD_LIBNTP
698252190SrpauloNTP_CROSSCOMPILE_FALSE
699252190SrpauloNTP_CROSSCOMPILE_TRUE
700252190SrpauloBUILD_LIBEVENT_FALSE
701252190SrpauloBUILD_LIBEVENT_TRUE
702252190SrpauloLDADD_LIBEVENT
703252190SrpauloCPPFLAGS_LIBEVENT
704252190SrpauloPKG_CONFIG
705252190SrpauloLIBOPTS_DIR
706252190SrpauloLIBOPTS_CFLAGS
707252190SrpauloLIBOPTS_LDADD
708252190SrpauloNEED_LIBOPTS_FALSE
709252190SrpauloNEED_LIBOPTS_TRUE
710252190SrpauloINSTALL_LIBOPTS_FALSE
711252190SrpauloINSTALL_LIBOPTS_TRUE
712252190SrpauloPOSIX_SHELL
713252190SrpauloGL_GENERATE_STDNORETURN_H_FALSE
714252190SrpauloGL_GENERATE_STDNORETURN_H_TRUE
715252190SrpauloSTDNORETURN_H
716252190SrpauloLIBTOOL_DEPS
717252190SrpauloCXXCPP
718252190SrpauloOTOOL64
719252190SrpauloOTOOL
720252190SrpauloLIPO
721252190SrpauloNMEDIT
722252190SrpauloDSYMUTIL
723252190SrpauloMANIFEST_TOOL
724252190SrpauloRANLIB
725252190SrpauloDLLTOOL
726252190SrpauloOBJDUMP
727252190SrpauloLN_S
728252190SrpauloNM
729252190Srpauloac_ct_DUMPBIN
730252190SrpauloDUMPBIN
731252190SrpauloLD
732252190SrpauloFGREP
733252190SrpauloSED
734252190SrpauloLIBTOOL
735252190Srpauloac_ct_AR
736252190SrpauloAR
737252190SrpauloINSTALL_UPDATE_LEAP_FALSE
738252190SrpauloINSTALL_UPDATE_LEAP_TRUE
739252190SrpauloUPDATE_LEAP_NI
740252190SrpauloUPDATE_LEAP_MS
741252190SrpauloUPDATE_LEAP_DS
742252190SrpauloUPDATE_LEAP_DL
743252190SrpauloUPDATE_LEAP_DB
744252190SrpauloTIMETRIM_NI
745252190SrpauloTIMETRIM_MS
746252190SrpauloTIMETRIM_DS
747252190SrpauloTIMETRIM_DL
748252190SrpauloTIMETRIM_DB
749252190SrpauloTICKADJ_NI
750252190SrpauloTICKADJ_MS
751252190SrpauloTICKADJ_DS
752252190SrpauloTICKADJ_DL
753252190SrpauloTICKADJ_DB
754252190SrpauloSNTP_NI
755252190SrpauloSNTP_MS
756252190SrpauloSNTP_DS
757252190SrpauloSNTP_DL
758252190SrpauloSNTP_DB
759252190SrpauloNTP_WAIT_NI
760252190SrpauloNTP_WAIT_MS
761252190SrpauloNTP_WAIT_DS
762252190SrpauloNTP_WAIT_DL
763252190SrpauloNTP_WAIT_DB
764252190SrpauloNTP_KEYGEN_NI
765252190SrpauloNTP_KEYGEN_MS
766252190SrpauloNTP_KEYGEN_DS
767252190SrpauloNTP_KEYGEN_DL
768252190SrpauloNTP_KEYGEN_DB
769252190SrpauloNTPTRACE_NI
770252190SrpauloNTPTRACE_MS
771252190SrpauloNTPTRACE_DS
772252190SrpauloNTPTRACE_DL
773252190SrpauloNTPTRACE_DB
774252190SrpauloNTPTIME_NI
775252190SrpauloNTPTIME_MS
776252190SrpauloNTPTIME_DS
777252190SrpauloNTPTIME_DL
778252190SrpauloNTPTIME_DB
779252190SrpauloINSTALL_NTPSWEEP_FALSE
780252190SrpauloINSTALL_NTPSWEEP_TRUE
781252190SrpauloNTPSWEEP_NI
782252190SrpauloNTPSWEEP_MS
783252190SrpauloNTPSWEEP_DS
784252190SrpauloNTPSWEEP_DL
785252190SrpauloNTPSWEEP_DB
786252190SrpauloNTPSNMPD_NI
787252190SrpauloNTPSNMPD_MS
788252190SrpauloNTPSNMPD_DS
789252190SrpauloNTPSNMPD_DL
790252190SrpauloNTPSNMPD_DB
791252190SrpauloNTPQ_NI
792252190SrpauloNTPQ_MS
793252190SrpauloNTPQ_DS
794252190SrpauloNTPQ_DL
795252190SrpauloNTPQ_DB
796252190SrpauloNTPD_NI
797252190SrpauloNTPD_MS
798252190SrpauloNTPD_DS
799252190SrpauloNTPD_DL
800252190SrpauloNTPD_DB
801252190SrpauloNTPDSIM_NI
802252190SrpauloNTPDSIM_MS
803252190SrpauloNTPDSIM_DS
804252190SrpauloNTPDSIM_DL
805252190SrpauloNTPDSIM_DB
806252190SrpauloNTPDC_NI
807252190SrpauloNTPDC_MS
808252190SrpauloNTPDC_DS
809252190SrpauloNTPDC_DL
810252190SrpauloNTPDC_DB
811252190SrpauloNTPDATE_NI
812252190SrpauloNTPDATE_MS
813252190SrpauloNTPDATE_DS
814252190SrpauloNTPDATE_DL
815252190SrpauloNTPDATE_DB
816252190SrpauloMANTAGFMT
817252190SrpauloCALC_TICKADJ_NI
818252190SrpauloCALC_TICKADJ_MS
819252190SrpauloCALC_TICKADJ_DS
820252190SrpauloCALC_TICKADJ_DL
821252190SrpauloCALC_TICKADJ_DB
822252190SrpauloWANT_CALC_TICKADJ_MS_FALSE
823252190SrpauloWANT_CALC_TICKADJ_MS_TRUE
824252190SrpauloVPATH_HACK_FALSE
825252190SrpauloVPATH_HACK_TRUE
826252190SrpauloYFLAGS
827252190SrpauloYACC
828252190Srpauloam__fastdepCXX_FALSE
829252190Srpauloam__fastdepCXX_TRUE
830252190SrpauloCXXDEPMODE
831252190Srpauloac_ct_CXX
832252190SrpauloCXXFLAGS
833252190SrpauloCXX
834252190SrpauloLDFLAGS_NTP
835252190SrpauloLDADD_NTP
836252190SrpauloCPPFLAGS_NTP
837252190SrpauloCFLAGS_NTP
838252190SrpauloEGREP
839252190SrpauloGREP
840252190SrpauloCPP
841252190Srpauloam__fastdepCC_FALSE
842252190Srpauloam__fastdepCC_TRUE
843252190SrpauloCCDEPMODE
844252190Srpauloam__nodep
845252190SrpauloAMDEPBACKSLASH
846252190SrpauloAMDEP_FALSE
847252190SrpauloAMDEP_TRUE
848252190Srpauloam__quote
849252190Srpauloam__include
850252190SrpauloDEPDIR
851252190SrpauloOBJEXT
852252190SrpauloEXEEXT
853252190Srpauloac_ct_CC
854252190SrpauloCPPFLAGS
855252190SrpauloLDFLAGS
856252190SrpauloCFLAGS
857252190SrpauloCC
858252190Srpaulohost_os
859252190Srpaulohost_vendor
860252190Srpaulohost_cpu
861252190Srpaulohost
862252190Srpaulobuild_os
863252190Srpaulobuild_vendor
864252190Srpaulobuild_cpu
865252190Srpaulobuild
866252190SrpauloAM_BACKSLASH
867252190SrpauloAM_DEFAULT_VERBOSITY
868252190SrpauloAM_DEFAULT_V
869252190SrpauloAM_V
870252190Srpauloam__untar
871252190Srpauloam__tar
872252190SrpauloAMTAR
873252190Srpauloam__leading_dot
874252190SrpauloSET_MAKE
875252190SrpauloAWK
876252190Srpaulomkdir_p
877252190SrpauloMKDIR_P
878252190SrpauloINSTALL_STRIP_PROGRAM
879252190SrpauloSTRIP
880252190Srpauloinstall_sh
881252190SrpauloMAKEINFO
882252190SrpauloAUTOHEADER
883252190SrpauloAUTOMAKE
884252190SrpauloAUTOCONF
885252190SrpauloACLOCAL
886252190SrpauloVERSION
887252190SrpauloPACKAGE
888252190SrpauloCYGPATH_W
889252190Srpauloam__isrc
890252190SrpauloINSTALL_DATA
891252190SrpauloINSTALL_SCRIPT
892252190SrpauloINSTALL_PROGRAM
893252190Srpaulotarget_alias
894252190Srpaulohost_alias
895252190Srpaulobuild_alias
896252190SrpauloLIBS
897252190SrpauloECHO_T
898252190SrpauloECHO_N
899252190SrpauloECHO_C
900252190SrpauloDEFS
901252190Srpaulomandir
902252190Srpaulolocaledir
903252190Srpaulolibdir
904252190Srpaulopsdir
905252190Srpaulopdfdir
906252190Srpaulodvidir
907252190Srpaulohtmldir
908252190Srpauloinfodir
909252190Srpaulodocdir
910252190Srpaulooldincludedir
911252190Srpauloincludedir
912252190Srpaulolocalstatedir
913252190Srpaulosharedstatedir
914252190Srpaulosysconfdir
915252190Srpaulodatadir
916252190Srpaulodatarootdir
917252190Srpaulolibexecdir
918252190Srpaulosbindir
919252190Srpaulobindir
920252190Srpauloprogram_transform_name
921252190Srpauloprefix
922252190Srpauloexec_prefix
923252190SrpauloPACKAGE_URL
924252190SrpauloPACKAGE_BUGREPORT
925252190SrpauloPACKAGE_STRING
926252190SrpauloPACKAGE_VERSION
927252190SrpauloPACKAGE_TARNAME
928252190SrpauloPACKAGE_NAME
929252190SrpauloPATH_SEPARATOR
930252190SrpauloSHELL'
931252190Srpauloac_subst_files='calc_tickadj_opts
932252190Srpaulontp_wait_opts
933252190Srpaulontpsweep_opts
934252190Srpaulontptrace_opts
935252190Srpaulosummary_opts
936252190Srpauloplot_summary_opts'
937252190Srpauloac_user_opts='
938252190Srpauloenable_option_checking
939252190Srpauloenable_silent_rules
940252190Srpauloenable_dependency_tracking
941252190Srpaulowith_locfile
942252190Srpauloenable_shared
943252190Srpauloenable_static
944252190Srpaulowith_pic
945252190Srpauloenable_fast_install
946252190Srpaulowith_gnu_ld
947252190Srpaulowith_sysroot
948252190Srpauloenable_libtool_lock
949252190Srpauloenable_nls
950252190Srpauloenable_local_libopts
951252190Srpauloenable_libopts_install
952252190Srpaulowith_autoopts_config
953252190Srpauloenable_local_libevent
954252190Srpaulowith_lineeditlibs
955252190Srpauloenable_debugging
956252190Srpauloenable_thread_support
957252190Srpaulowith_threads
958252190Srpaulowith_yielding_select
959252190Srpauloenable_c99_snprintf
960252190Srpauloenable_clockctl
961252190Srpauloenable_linuxcaps
962252190Srpauloenable_solarisprivs
963252190Srpaulowith_arlib
964252190Srpaulowith_net_snmp_config
965252190Srpauloenable_libseccomp
966252190Srpaulowith_stack_limit
967252190Srpaulowith_memlock
968252190Srpauloenable_debug_timing
969252190Srpauloenable_dst_minutes
970252190Srpauloenable_ignore_dns_errors
971252190Srpauloenable_BANCOMM
972252190Srpauloenable_GPSVME
973252190Srpauloenable_all_clocks
974252190Srpauloenable_ACTS
975252190Srpauloenable_ARBITER
976252190Srpauloenable_ARCRON_MSF
977252190Srpauloenable_AS2201
978252190Srpauloenable_ATOM
979252190Srpauloenable_CHRONOLOG
980252190Srpauloenable_CHU
981252190Srpauloenable_AUDIO_CHU
982252190Srpauloenable_DATUM
983252190Srpauloenable_DUMBCLOCK
984252190Srpauloenable_FG
985252190Srpauloenable_HEATH
986252190Srpauloenable_HOPFSERIAL
987252190Srpauloenable_HOPFPCI
988252190Srpauloenable_HPGPS
989252190Srpauloenable_IRIG
990252190Srpauloenable_JJY
991252190Srpauloenable_JUPITER
992252190Srpauloenable_LEITCH
993252190Srpauloenable_LOCAL_CLOCK
994252190Srpauloenable_MX4200
995252190Srpauloenable_NEOCLOCK4X
996252190Srpauloenable_NMEA
997252190Srpauloenable_GPSD
998252190Srpauloenable_ONCORE
999252190Srpauloenable_PALISADE
1000252190Srpauloenable_PCF
1001252190Srpauloenable_PST
1002252190Srpauloenable_RIPENCC
1003252190Srpauloenable_SHM
1004252190Srpauloenable_SPECTRACOM
1005252190Srpauloenable_TPRO
1006252190Srpauloenable_TRUETIME
1007252190Srpauloenable_TT560
1008252190Srpauloenable_ULINK
1009252190Srpauloenable_TSYNCPCI
1010252190Srpauloenable_WWV
1011252190Srpauloenable_ZYFER
1012252190Srpauloenable_parse_clocks
1013252190Srpauloenable_COMPUTIME
1014252190Srpauloenable_DCF7000
1015252190Srpauloenable_HOPF6021
1016252190Srpauloenable_MEINBERG
1017252190Srpauloenable_RAWDCF
1018252190Srpauloenable_RCC8000
1019252190Srpauloenable_SCHMID
1020252190Srpauloenable_TRIMTAIP
1021252190Srpauloenable_TRIMTSIP
1022252190Srpauloenable_WHARTON
1023252190Srpauloenable_VARITEXT
1024252190Srpauloenable_SEL240X
1025252190Srpaulowith_crypto
1026252190Srpaulowith_openssl_libdir
1027252190Srpaulowith_openssl_incdir
1028252190Srpaulowith_rpath
1029252190Srpauloenable_openssl_random
1030252190Srpauloenable_autokey
1031252190Srpauloenable_kmem
1032252190Srpauloenable_accurate_adjtime
1033252190Srpauloenable_tick
1034252190Srpauloenable_tickadj
1035252190Srpauloenable_simulator
1036252190Srpaulowith_sntp
1037252190Srpaulowith_ntpsnmpd
1038252190Srpauloenable_slew_always
1039252190Srpauloenable_step_slew
1040252190Srpauloenable_ntpdate_step
1041252190Srpauloenable_hourly_todr_sync
1042252190Srpauloenable_kernel_fll_bug
1043252190Srpauloenable_bug1243_fix
1044252190Srpauloenable_irig_sawtooth
1045252190Srpauloenable_nist
1046252190Srpauloenable_ntp_signd
1047252190Srpauloenable_ipv6
1048252190Srpaulowith_kame
1049252190Srpauloenable_getifaddrs
1050252190Srpauloenable_saveconfig
1051252190Srpauloenable_leap_smear
1052252190Srpaulowith_gtest
1053252190Srpaulo'
1054252190Srpaulo      ac_precious_vars='build_alias
1055252190Srpaulohost_alias
1056252190Srpaulotarget_alias
1057252190SrpauloCC
1058252190SrpauloCFLAGS
1059252190SrpauloLDFLAGS
1060252190SrpauloLIBS
1061252190SrpauloCPPFLAGS
1062252190SrpauloCPP
1063252190SrpauloCXX
1064252190SrpauloCXXFLAGS
1065252190SrpauloCCC
1066252190SrpauloYACC
1067252190SrpauloYFLAGS
1068252190SrpauloCXXCPP'
1069252190Srpauloac_subdirs_all='sntp'
1070252190Srpaulo
1071252190Srpaulo# Initialize some variables set by options.
1072252190Srpauloac_init_help=
1073252190Srpauloac_init_version=false
1074252190Srpauloac_unrecognized_opts=
1075252190Srpauloac_unrecognized_sep=
1076252190Srpaulo# The variables have the same names as the options, with
1077252190Srpaulo# dashes changed to underlines.
1078252190Srpaulocache_file=/dev/null
1079252190Srpauloexec_prefix=NONE
1080252190Srpaulono_create=
1081252190Srpaulono_recursion=
1082252190Srpauloprefix=NONE
1083252190Srpauloprogram_prefix=NONE
1084252190Srpauloprogram_suffix=NONE
1085252190Srpauloprogram_transform_name=s,x,x,
1086252190Srpaulosilent=
1087252190Srpaulosite=
1088252190Srpaulosrcdir=
1089252190Srpauloverbose=
1090252190Srpaulox_includes=NONE
1091252190Srpaulox_libraries=NONE
1092252190Srpaulo
1093252190Srpaulo# Installation directory options.
1094252190Srpaulo# These are left unexpanded so users can "make install exec_prefix=/foo"
1095252190Srpaulo# and all the variables that are supposed to be based on exec_prefix
1096252190Srpaulo# by default will actually change.
1097252190Srpaulo# Use braces instead of parens because sh, perl, etc. also accept them.
1098252190Srpaulo# (The list follows the same order as the GNU Coding Standards.)
1099252190Srpaulobindir='${exec_prefix}/bin'
1100252190Srpaulosbindir='${exec_prefix}/sbin'
1101252190Srpaulolibexecdir='${exec_prefix}/libexec'
1102252190Srpaulodatarootdir='${prefix}/share'
1103252190Srpaulodatadir='${datarootdir}'
1104252190Srpaulosysconfdir='${prefix}/etc'
1105252190Srpaulosharedstatedir='${prefix}/com'
1106252190Srpaulolocalstatedir='${prefix}/var'
1107252190Srpauloincludedir='${prefix}/include'
1108252190Srpaulooldincludedir='/usr/include'
1109252190Srpaulodocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110252190Srpauloinfodir='${datarootdir}/info'
1111252190Srpaulohtmldir='${docdir}'
1112252190Srpaulodvidir='${docdir}'
1113252190Srpaulopdfdir='${docdir}'
1114252190Srpaulopsdir='${docdir}'
1115252190Srpaulolibdir='${exec_prefix}/lib'
1116252190Srpaulolocaledir='${datarootdir}/locale'
1117252190Srpaulomandir='${datarootdir}/man'
1118252190Srpaulo
1119252190Srpauloac_prev=
1120252190Srpauloac_dashdash=
1121252190Srpaulofor ac_option
1122252190Srpaulodo
1123252190Srpaulo  # If the previous option needs an argument, assign it.
1124252190Srpaulo  if test -n "$ac_prev"; then
1125252190Srpaulo    eval $ac_prev=\$ac_option
1126252190Srpaulo    ac_prev=
1127252190Srpaulo    continue
1128252190Srpaulo  fi
1129252190Srpaulo
1130252190Srpaulo  case $ac_option in
1131252190Srpaulo  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1132252190Srpaulo  *=)   ac_optarg= ;;
1133252190Srpaulo  *)    ac_optarg=yes ;;
1134252190Srpaulo  esac
1135252190Srpaulo
1136252190Srpaulo  # Accept the important Cygnus configure options, so we can diagnose typos.
1137252190Srpaulo
1138252190Srpaulo  case $ac_dashdash$ac_option in
1139252190Srpaulo  --)
1140252190Srpaulo    ac_dashdash=yes ;;
1141252190Srpaulo
1142252190Srpaulo  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1143252190Srpaulo    ac_prev=bindir ;;
1144252190Srpaulo  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1145252190Srpaulo    bindir=$ac_optarg ;;
1146252190Srpaulo
1147252190Srpaulo  -build | --build | --buil | --bui | --bu)
1148252190Srpaulo    ac_prev=build_alias ;;
1149252190Srpaulo  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1150252190Srpaulo    build_alias=$ac_optarg ;;
1151252190Srpaulo
1152252190Srpaulo  -cache-file | --cache-file | --cache-fil | --cache-fi \
1153252190Srpaulo  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1154252190Srpaulo    ac_prev=cache_file ;;
1155252190Srpaulo  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1156252190Srpaulo  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1157252190Srpaulo    cache_file=$ac_optarg ;;
1158252190Srpaulo
1159252190Srpaulo  --config-cache | -C)
1160252190Srpaulo    cache_file=config.cache ;;
1161252190Srpaulo
1162252190Srpaulo  -datadir | --datadir | --datadi | --datad)
1163252190Srpaulo    ac_prev=datadir ;;
1164252190Srpaulo  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1165252190Srpaulo    datadir=$ac_optarg ;;
1166252190Srpaulo
1167252190Srpaulo  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1168252190Srpaulo  | --dataroo | --dataro | --datar)
1169252190Srpaulo    ac_prev=datarootdir ;;
1170252190Srpaulo  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1171252190Srpaulo  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1172252190Srpaulo    datarootdir=$ac_optarg ;;
1173
1174  -disable-* | --disable-*)
1175    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1176    # Reject names that are not valid shell variable names.
1177    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178      as_fn_error $? "invalid feature name: $ac_useropt"
1179    ac_useropt_orig=$ac_useropt
1180    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181    case $ac_user_opts in
1182      *"
1183"enable_$ac_useropt"
1184"*) ;;
1185      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186	 ac_unrecognized_sep=', ';;
1187    esac
1188    eval enable_$ac_useropt=no ;;
1189
1190  -docdir | --docdir | --docdi | --doc | --do)
1191    ac_prev=docdir ;;
1192  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193    docdir=$ac_optarg ;;
1194
1195  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196    ac_prev=dvidir ;;
1197  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198    dvidir=$ac_optarg ;;
1199
1200  -enable-* | --enable-*)
1201    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204      as_fn_error $? "invalid feature name: $ac_useropt"
1205    ac_useropt_orig=$ac_useropt
1206    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207    case $ac_user_opts in
1208      *"
1209"enable_$ac_useropt"
1210"*) ;;
1211      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1212	 ac_unrecognized_sep=', ';;
1213    esac
1214    eval enable_$ac_useropt=\$ac_optarg ;;
1215
1216  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1217  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1218  | --exec | --exe | --ex)
1219    ac_prev=exec_prefix ;;
1220  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1221  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1222  | --exec=* | --exe=* | --ex=*)
1223    exec_prefix=$ac_optarg ;;
1224
1225  -gas | --gas | --ga | --g)
1226    # Obsolete; use --with-gas.
1227    with_gas=yes ;;
1228
1229  -help | --help | --hel | --he | -h)
1230    ac_init_help=long ;;
1231  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1232    ac_init_help=recursive ;;
1233  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1234    ac_init_help=short ;;
1235
1236  -host | --host | --hos | --ho)
1237    ac_prev=host_alias ;;
1238  -host=* | --host=* | --hos=* | --ho=*)
1239    host_alias=$ac_optarg ;;
1240
1241  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1242    ac_prev=htmldir ;;
1243  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1244  | --ht=*)
1245    htmldir=$ac_optarg ;;
1246
1247  -includedir | --includedir | --includedi | --included | --include \
1248  | --includ | --inclu | --incl | --inc)
1249    ac_prev=includedir ;;
1250  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1251  | --includ=* | --inclu=* | --incl=* | --inc=*)
1252    includedir=$ac_optarg ;;
1253
1254  -infodir | --infodir | --infodi | --infod | --info | --inf)
1255    ac_prev=infodir ;;
1256  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1257    infodir=$ac_optarg ;;
1258
1259  -libdir | --libdir | --libdi | --libd)
1260    ac_prev=libdir ;;
1261  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1262    libdir=$ac_optarg ;;
1263
1264  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1265  | --libexe | --libex | --libe)
1266    ac_prev=libexecdir ;;
1267  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1268  | --libexe=* | --libex=* | --libe=*)
1269    libexecdir=$ac_optarg ;;
1270
1271  -localedir | --localedir | --localedi | --localed | --locale)
1272    ac_prev=localedir ;;
1273  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1274    localedir=$ac_optarg ;;
1275
1276  -localstatedir | --localstatedir | --localstatedi | --localstated \
1277  | --localstate | --localstat | --localsta | --localst | --locals)
1278    ac_prev=localstatedir ;;
1279  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1280  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1281    localstatedir=$ac_optarg ;;
1282
1283  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1284    ac_prev=mandir ;;
1285  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1286    mandir=$ac_optarg ;;
1287
1288  -nfp | --nfp | --nf)
1289    # Obsolete; use --without-fp.
1290    with_fp=no ;;
1291
1292  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1293  | --no-cr | --no-c | -n)
1294    no_create=yes ;;
1295
1296  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1297  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1298    no_recursion=yes ;;
1299
1300  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1301  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1302  | --oldin | --oldi | --old | --ol | --o)
1303    ac_prev=oldincludedir ;;
1304  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1305  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1306  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1307    oldincludedir=$ac_optarg ;;
1308
1309  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1310    ac_prev=prefix ;;
1311  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1312    prefix=$ac_optarg ;;
1313
1314  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1315  | --program-pre | --program-pr | --program-p)
1316    ac_prev=program_prefix ;;
1317  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1318  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1319    program_prefix=$ac_optarg ;;
1320
1321  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1322  | --program-suf | --program-su | --program-s)
1323    ac_prev=program_suffix ;;
1324  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1325  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1326    program_suffix=$ac_optarg ;;
1327
1328  -program-transform-name | --program-transform-name \
1329  | --program-transform-nam | --program-transform-na \
1330  | --program-transform-n | --program-transform- \
1331  | --program-transform | --program-transfor \
1332  | --program-transfo | --program-transf \
1333  | --program-trans | --program-tran \
1334  | --progr-tra | --program-tr | --program-t)
1335    ac_prev=program_transform_name ;;
1336  -program-transform-name=* | --program-transform-name=* \
1337  | --program-transform-nam=* | --program-transform-na=* \
1338  | --program-transform-n=* | --program-transform-=* \
1339  | --program-transform=* | --program-transfor=* \
1340  | --program-transfo=* | --program-transf=* \
1341  | --program-trans=* | --program-tran=* \
1342  | --progr-tra=* | --program-tr=* | --program-t=*)
1343    program_transform_name=$ac_optarg ;;
1344
1345  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1346    ac_prev=pdfdir ;;
1347  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1348    pdfdir=$ac_optarg ;;
1349
1350  -psdir | --psdir | --psdi | --psd | --ps)
1351    ac_prev=psdir ;;
1352  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1353    psdir=$ac_optarg ;;
1354
1355  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1356  | -silent | --silent | --silen | --sile | --sil)
1357    silent=yes ;;
1358
1359  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1360    ac_prev=sbindir ;;
1361  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1362  | --sbi=* | --sb=*)
1363    sbindir=$ac_optarg ;;
1364
1365  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367  | --sharedst | --shareds | --shared | --share | --shar \
1368  | --sha | --sh)
1369    ac_prev=sharedstatedir ;;
1370  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1373  | --sha=* | --sh=*)
1374    sharedstatedir=$ac_optarg ;;
1375
1376  -site | --site | --sit)
1377    ac_prev=site ;;
1378  -site=* | --site=* | --sit=*)
1379    site=$ac_optarg ;;
1380
1381  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1382    ac_prev=srcdir ;;
1383  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384    srcdir=$ac_optarg ;;
1385
1386  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387  | --syscon | --sysco | --sysc | --sys | --sy)
1388    ac_prev=sysconfdir ;;
1389  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391    sysconfdir=$ac_optarg ;;
1392
1393  -target | --target | --targe | --targ | --tar | --ta | --t)
1394    ac_prev=target_alias ;;
1395  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396    target_alias=$ac_optarg ;;
1397
1398  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1399    verbose=yes ;;
1400
1401  -version | --version | --versio | --versi | --vers | -V)
1402    ac_init_version=: ;;
1403
1404  -with-* | --with-*)
1405    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406    # Reject names that are not valid shell variable names.
1407    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408      as_fn_error $? "invalid package name: $ac_useropt"
1409    ac_useropt_orig=$ac_useropt
1410    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411    case $ac_user_opts in
1412      *"
1413"with_$ac_useropt"
1414"*) ;;
1415      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1416	 ac_unrecognized_sep=', ';;
1417    esac
1418    eval with_$ac_useropt=\$ac_optarg ;;
1419
1420  -without-* | --without-*)
1421    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1422    # Reject names that are not valid shell variable names.
1423    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424      as_fn_error $? "invalid package name: $ac_useropt"
1425    ac_useropt_orig=$ac_useropt
1426    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427    case $ac_user_opts in
1428      *"
1429"with_$ac_useropt"
1430"*) ;;
1431      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1432	 ac_unrecognized_sep=', ';;
1433    esac
1434    eval with_$ac_useropt=no ;;
1435
1436  --x)
1437    # Obsolete; use --with-x.
1438    with_x=yes ;;
1439
1440  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441  | --x-incl | --x-inc | --x-in | --x-i)
1442    ac_prev=x_includes ;;
1443  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445    x_includes=$ac_optarg ;;
1446
1447  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449    ac_prev=x_libraries ;;
1450  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452    x_libraries=$ac_optarg ;;
1453
1454  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1455Try \`$0 --help' for more information"
1456    ;;
1457
1458  *=*)
1459    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1460    # Reject names that are not valid shell variable names.
1461    case $ac_envvar in #(
1462      '' | [0-9]* | *[!_$as_cr_alnum]* )
1463      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1464    esac
1465    eval $ac_envvar=\$ac_optarg
1466    export $ac_envvar ;;
1467
1468  *)
1469    # FIXME: should be removed in autoconf 3.0.
1470    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1474    ;;
1475
1476  esac
1477done
1478
1479if test -n "$ac_prev"; then
1480  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481  as_fn_error $? "missing argument to $ac_option"
1482fi
1483
1484if test -n "$ac_unrecognized_opts"; then
1485  case $enable_option_checking in
1486    no) ;;
1487    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1488    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1489  esac
1490fi
1491
1492# Check all directory arguments for consistency.
1493for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1494		datadir sysconfdir sharedstatedir localstatedir includedir \
1495		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1496		libdir localedir mandir
1497do
1498  eval ac_val=\$$ac_var
1499  # Remove trailing slashes.
1500  case $ac_val in
1501    */ )
1502      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1503      eval $ac_var=\$ac_val;;
1504  esac
1505  # Be sure to have absolute directory names.
1506  case $ac_val in
1507    [\\/$]* | ?:[\\/]* )  continue;;
1508    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1509  esac
1510  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1511done
1512
1513# There might be people who depend on the old broken behavior: `$host'
1514# used to hold the argument of --host etc.
1515# FIXME: To remove some day.
1516build=$build_alias
1517host=$host_alias
1518target=$target_alias
1519
1520# FIXME: To remove some day.
1521if test "x$host_alias" != x; then
1522  if test "x$build_alias" = x; then
1523    cross_compiling=maybe
1524  elif test "x$build_alias" != "x$host_alias"; then
1525    cross_compiling=yes
1526  fi
1527fi
1528
1529ac_tool_prefix=
1530test -n "$host_alias" && ac_tool_prefix=$host_alias-
1531
1532test "$silent" = yes && exec 6>/dev/null
1533
1534
1535ac_pwd=`pwd` && test -n "$ac_pwd" &&
1536ac_ls_di=`ls -di .` &&
1537ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1538  as_fn_error $? "working directory cannot be determined"
1539test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1540  as_fn_error $? "pwd does not report name of working directory"
1541
1542
1543# Find the source files, if location was not specified.
1544if test -z "$srcdir"; then
1545  ac_srcdir_defaulted=yes
1546  # Try the directory containing this script, then the parent directory.
1547  ac_confdir=`$as_dirname -- "$as_myself" ||
1548$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1549	 X"$as_myself" : 'X\(//\)[^/]' \| \
1550	 X"$as_myself" : 'X\(//\)$' \| \
1551	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1552$as_echo X"$as_myself" |
1553    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1554	    s//\1/
1555	    q
1556	  }
1557	  /^X\(\/\/\)[^/].*/{
1558	    s//\1/
1559	    q
1560	  }
1561	  /^X\(\/\/\)$/{
1562	    s//\1/
1563	    q
1564	  }
1565	  /^X\(\/\).*/{
1566	    s//\1/
1567	    q
1568	  }
1569	  s/.*/./; q'`
1570  srcdir=$ac_confdir
1571  if test ! -r "$srcdir/$ac_unique_file"; then
1572    srcdir=..
1573  fi
1574else
1575  ac_srcdir_defaulted=no
1576fi
1577if test ! -r "$srcdir/$ac_unique_file"; then
1578  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1579  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1580fi
1581ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1582ac_abs_confdir=`(
1583	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1584	pwd)`
1585# When building in place, set srcdir=.
1586if test "$ac_abs_confdir" = "$ac_pwd"; then
1587  srcdir=.
1588fi
1589# Remove unnecessary trailing slashes from srcdir.
1590# Double slashes in file names in object file debugging info
1591# mess up M-x gdb in Emacs.
1592case $srcdir in
1593*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1594esac
1595for ac_var in $ac_precious_vars; do
1596  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1597  eval ac_env_${ac_var}_value=\$${ac_var}
1598  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1599  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1600done
1601
1602#
1603# Report the --help message.
1604#
1605if test "$ac_init_help" = "long"; then
1606  # Omit some internal or obsolete options to make the list less imposing.
1607  # This message is too long to be a string in the A/UX 3.1 sh.
1608  cat <<_ACEOF
1609\`configure' configures ntp 4.2.8p3 to adapt to many kinds of systems.
1610
1611Usage: $0 [OPTION]... [VAR=VALUE]...
1612
1613To assign environment variables (e.g., CC, CFLAGS...), specify them as
1614VAR=VALUE.  See below for descriptions of some of the useful variables.
1615
1616Defaults for the options are specified in brackets.
1617
1618Configuration:
1619  -h, --help              display this help and exit
1620      --help=short        display options specific to this package
1621      --help=recursive    display the short help of all the included packages
1622  -V, --version           display version information and exit
1623  -q, --quiet, --silent   do not print \`checking ...' messages
1624      --cache-file=FILE   cache test results in FILE [disabled]
1625  -C, --config-cache      alias for \`--cache-file=config.cache'
1626  -n, --no-create         do not create output files
1627      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1628
1629Installation directories:
1630  --prefix=PREFIX         install architecture-independent files in PREFIX
1631                          [$ac_default_prefix]
1632  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1633                          [PREFIX]
1634
1635By default, \`make install' will install all the files in
1636\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1637an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1638for instance \`--prefix=\$HOME'.
1639
1640For better control, use the options below.
1641
1642Fine tuning of the installation directories:
1643  --bindir=DIR            user executables [EPREFIX/bin]
1644  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1645  --libexecdir=DIR        program executables [EPREFIX/libexec]
1646  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1647  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1648  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1649  --libdir=DIR            object code libraries [EPREFIX/lib]
1650  --includedir=DIR        C header files [PREFIX/include]
1651  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1652  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1653  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1654  --infodir=DIR           info documentation [DATAROOTDIR/info]
1655  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1656  --mandir=DIR            man documentation [DATAROOTDIR/man]
1657  --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1658  --htmldir=DIR           html documentation [DOCDIR]
1659  --dvidir=DIR            dvi documentation [DOCDIR]
1660  --pdfdir=DIR            pdf documentation [DOCDIR]
1661  --psdir=DIR             ps documentation [DOCDIR]
1662_ACEOF
1663
1664  cat <<\_ACEOF
1665
1666Program names:
1667  --program-prefix=PREFIX            prepend PREFIX to installed program names
1668  --program-suffix=SUFFIX            append SUFFIX to installed program names
1669  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1670
1671System types:
1672  --build=BUILD     configure for building on BUILD [guessed]
1673  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1674_ACEOF
1675fi
1676
1677if test -n "$ac_init_help"; then
1678  case $ac_init_help in
1679     short | recursive ) echo "Configuration of ntp 4.2.8p3:";;
1680   esac
1681  cat <<\_ACEOF
1682
1683Optional Features and Packages:
1684  --disable-option-checking  ignore unrecognized --enable/--with options
1685  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1686  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1687  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1688  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1689  --enable-silent-rules   less verbose build output (undo: "make V=1")
1690  --disable-silent-rules  verbose build output (undo: "make V=0")
1691  --enable-dependency-tracking
1692                          do not reject slow dependency extractors
1693  --disable-dependency-tracking
1694                          speeds up one-time build
1695  --with-locfile=XXX      os-specific or "legacy"
1696  --enable-shared[=PKGS]  build shared libraries [default=no]
1697  --enable-static[=PKGS]  build static libraries [default=yes]
1698  --with-pic              try to use only PIC/non-PIC objects [default=use
1699                          both]
1700  --enable-fast-install[=PKGS]
1701                          optimize for fast installation [default=yes]
1702  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1703  --with-sysroot=DIR Search for dependent libraries within DIR
1704                        (or the compiler's sysroot if not specified).
1705  --disable-libtool-lock  avoid locking (might break parallel builds)
1706  --disable-nls           disable nls support in libopts
1707  --enable-local-libopts  Use the supplied libopts tearoff code
1708  --enable-libopts-install
1709                          Install libopts with client installation
1710  --with-autoopts-config  specify the config-info script
1711  --enable-local-libevent Force using the supplied libevent tearoff code
1712  --with-lineeditlibs     edit,editline (readline may be specified if desired)
1713  defaults:               + yes, - no, s system-specific
1714  --enable-debugging      + include ntpd debugging code
1715  --enable-thread-support s use threads (+ if available)
1716  --with-threads	  with threads [auto]
1717  --with-yielding-select  with yielding select [auto]
1718  --enable-c99-snprintf   s force replacement
1719  --enable-clockctl       s Use /dev/clockctl for non-root clock control
1720  --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1721  --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1722  --with-arlib            - deprecated, arlib not distributed
1723  --with-net-snmp-config  + =net-snmp-config
1724  --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1725                          sandboxing (default is no)
1726  --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1727  --with-memlock          ? =32 (megabytes)
1728  --enable-debug-timing   - include processing time debugging code (costs
1729                          performance)
1730  --enable-dst-minutes    =60 minutes per DST adjustment
1731  --enable-ignore-dns-errors
1732                          - retry DNS queries on any error
1733  --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1734  --enable-GPSVME         - TrueTime GPS receiver/VME interface
1735  --enable-all-clocks     + include all suitable non-PARSE clocks:
1736  --enable-ACTS           s ACTS modem service
1737  --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1738  --enable-ARCRON-MSF     + Arcron MSF receiver
1739  --enable-AS2201         + Austron 2200A/2201A GPS receiver
1740  --enable-ATOM           s ATOM PPS interface
1741  --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1742  --enable-CHU            + CHU modem/decoder
1743  --enable-AUDIO-CHU      s CHU audio/decoder
1744  --enable-DATUM          s Datum Programmable Time System
1745  --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1746  --enable-FG             + Forum Graphic GPS
1747  --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1748  --enable-HOPFSERIAL     + hopf serial clock device
1749  --enable-HOPFPCI        + hopf 6039 PCI board
1750  --enable-HPGPS          + HP 58503A GPS receiver
1751  --enable-IRIG           s IRIG audio decoder
1752  --enable-JJY            + JJY receiver
1753  --enable-JUPITER        s Rockwell Jupiter GPS receiver
1754  --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1755  --enable-LOCAL-CLOCK    + local clock reference
1756  --enable-MX4200         s Magnavox MX4200 GPS receiver
1757  --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1758  --enable-NMEA           + NMEA GPS receiver
1759  --enable-GPSD           + GPSD JSON receiver
1760  --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1761  --enable-PALISADE       s Palisade clock
1762  --enable-PCF            + Conrad parallel port radio clock
1763  --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1764  --enable-RIPENCC        - RIPENCC specific Trimble driver
1765  --enable-SHM            s SHM clock attached thru shared memory
1766  --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1767  --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1768  --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1769  --enable-TT560          - TrueTime 560 IRIG-B decoder
1770  --enable-ULINK          + Ultralink WWVB receiver
1771  --enable-TSYNCPCI       s Spectracom TSYNC timing board
1772  --enable-WWV            s WWV Audio receiver
1773  --enable-ZYFER          + Zyfer GPStarplus receiver
1774  --enable-parse-clocks   - include all suitable PARSE clocks:
1775  --enable-COMPUTIME      s Diem Computime Radio Clock
1776  --enable-DCF7000        s ELV/DCF7000 clock
1777  --enable-HOPF6021       s HOPF 6021 clock
1778  --enable-MEINBERG       s Meinberg clocks
1779  --enable-RAWDCF         s DCF77 raw time code
1780  --enable-RCC8000        s RCC 8000 clock
1781  --enable-SCHMID         s Schmid DCF77 clock
1782  --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1783  --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1784  --enable-WHARTON        s WHARTON 400A Series clock
1785  --enable-VARITEXT       s VARITEXT clock
1786  --enable-SEL240X        s SEL240X clock
1787  --with-crypto           + =openssl,libcrypto
1788
1789  --with-openssl-libdir   + =/something/reasonable
1790
1791  --with-openssl-incdir   + =/something/reasonable
1792
1793  --without-rpath         s Disable auto-added -R linker paths
1794
1795  --enable-openssl-random Use OpenSSL's crypto random number functions, if
1796                          available (default is yes)
1797  --enable-autokey        + support NTP Autokey protocol
1798  --enable-kmem           s read /dev/kmem for tick and/or tickadj
1799  --enable-accurate-adjtime
1800                          s the adjtime() call is accurate
1801  --enable-tick=VALUE     s force a value for 'tick'
1802  --enable-tickadj=VALUE  s force a value for 'tickadj'
1803  --enable-simulator      - build/install the NTPD simulator?
1804  --without-sntp          - disable building sntp and sntp/tests
1805  --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1806  --enable-slew-always    s always slew the time
1807  --enable-step-slew      s step and slew the time
1808  --enable-ntpdate-step   s if ntpdate should step the time
1809  --enable-hourly-todr-sync
1810                          s if we should sync TODR hourly
1811  --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1812  --enable-bug1243-fix    + use unmodified autokey session keys
1813  --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1814  --enable-nist           - if we should enable the NIST lockclock scheme
1815  --enable-ntp-signd      - Provide support for Samba's signing daemon,
1816                          =/var/run/ntp_signd
1817  --enable-ipv6           s use IPv6?
1818
1819  --with-kame             - =/usr/local/v6
1820  --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1821  --enable-saveconfig     + saveconfig mechanism
1822  --enable-leap-smear     - experimental leap smear code
1823  --with-gtest            Use the gtest framework (Default: if it's available)
1824
1825Some influential environment variables:
1826  CC          C compiler command
1827  CFLAGS      C compiler flags
1828  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1829              nonstandard directory <lib dir>
1830  LIBS        libraries to pass to the linker, e.g. -l<library>
1831  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1832              you have headers in a nonstandard directory <include dir>
1833  CPP         C preprocessor
1834  CXX         C++ compiler command
1835  CXXFLAGS    C++ compiler flags
1836  YACC        The `Yet Another Compiler Compiler' implementation to use.
1837              Defaults to the first program found out of: `bison -y', `byacc',
1838              `yacc'.
1839  YFLAGS      The list of arguments that will be passed by default to $YACC.
1840              This script will default YFLAGS to the empty string to avoid a
1841              default value of `-d' given by some make applications.
1842  CXXCPP      C++ preprocessor
1843
1844Use these variables to override the choices made by `configure' or to help
1845it to find libraries and programs with nonstandard names/locations.
1846
1847Report bugs to <http://bugs.ntp.org./>.
1848ntp home page: <http://www.ntp.org./>.
1849_ACEOF
1850ac_status=$?
1851fi
1852
1853if test "$ac_init_help" = "recursive"; then
1854  # If there are subdirs, report their specific --help.
1855  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1856    test -d "$ac_dir" ||
1857      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1858      continue
1859    ac_builddir=.
1860
1861case "$ac_dir" in
1862.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1863*)
1864  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865  # A ".." for each directory in $ac_dir_suffix.
1866  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867  case $ac_top_builddir_sub in
1868  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1869  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1870  esac ;;
1871esac
1872ac_abs_top_builddir=$ac_pwd
1873ac_abs_builddir=$ac_pwd$ac_dir_suffix
1874# for backward compatibility:
1875ac_top_builddir=$ac_top_build_prefix
1876
1877case $srcdir in
1878  .)  # We are building in place.
1879    ac_srcdir=.
1880    ac_top_srcdir=$ac_top_builddir_sub
1881    ac_abs_top_srcdir=$ac_pwd ;;
1882  [\\/]* | ?:[\\/]* )  # Absolute name.
1883    ac_srcdir=$srcdir$ac_dir_suffix;
1884    ac_top_srcdir=$srcdir
1885    ac_abs_top_srcdir=$srcdir ;;
1886  *) # Relative name.
1887    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888    ac_top_srcdir=$ac_top_build_prefix$srcdir
1889    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1890esac
1891ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1892
1893    cd "$ac_dir" || { ac_status=$?; continue; }
1894    # Check for guested configure.
1895    if test -f "$ac_srcdir/configure.gnu"; then
1896      echo &&
1897      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898    elif test -f "$ac_srcdir/configure"; then
1899      echo &&
1900      $SHELL "$ac_srcdir/configure" --help=recursive
1901    else
1902      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1903    fi || ac_status=$?
1904    cd "$ac_pwd" || { ac_status=$?; break; }
1905  done
1906fi
1907
1908test -n "$ac_init_help" && exit $ac_status
1909if $ac_init_version; then
1910  cat <<\_ACEOF
1911ntp configure 4.2.8p3
1912generated by GNU Autoconf 2.69
1913
1914Copyright (C) 2012 Free Software Foundation, Inc.
1915This configure script is free software; the Free Software Foundation
1916gives unlimited permission to copy, distribute and modify it.
1917_ACEOF
1918  exit
1919fi
1920
1921## ------------------------ ##
1922## Autoconf initialization. ##
1923## ------------------------ ##
1924
1925# ac_fn_c_try_compile LINENO
1926# --------------------------
1927# Try to compile conftest.$ac_ext, and return whether this succeeded.
1928ac_fn_c_try_compile ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  rm -f conftest.$ac_objext
1932  if { { ac_try="$ac_compile"
1933case "(($ac_try" in
1934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935  *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939  (eval "$ac_compile") 2>conftest.err
1940  ac_status=$?
1941  if test -s conftest.err; then
1942    grep -v '^ *+' conftest.err >conftest.er1
1943    cat conftest.er1 >&5
1944    mv -f conftest.er1 conftest.err
1945  fi
1946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; } && {
1948	 test -z "$ac_c_werror_flag" ||
1949	 test ! -s conftest.err
1950       } && test -s conftest.$ac_objext; then :
1951  ac_retval=0
1952else
1953  $as_echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956	ac_retval=1
1957fi
1958  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959  as_fn_set_status $ac_retval
1960
1961} # ac_fn_c_try_compile
1962
1963# ac_fn_c_try_cpp LINENO
1964# ----------------------
1965# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_c_try_cpp ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  if { { ac_try="$ac_cpp conftest.$ac_ext"
1970case "(($ac_try" in
1971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972  *) ac_try_echo=$ac_try;;
1973esac
1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975$as_echo "$ac_try_echo"; } >&5
1976  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977  ac_status=$?
1978  if test -s conftest.err; then
1979    grep -v '^ *+' conftest.err >conftest.er1
1980    cat conftest.er1 >&5
1981    mv -f conftest.er1 conftest.err
1982  fi
1983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984  test $ac_status = 0; } > conftest.i && {
1985	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986	 test ! -s conftest.err
1987       }; then :
1988  ac_retval=0
1989else
1990  $as_echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993    ac_retval=1
1994fi
1995  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996  as_fn_set_status $ac_retval
1997
1998} # ac_fn_c_try_cpp
1999
2000# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001# -------------------------------------------------------
2002# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003# the include files in INCLUDES and setting the cache variable VAR
2004# accordingly.
2005ac_fn_c_check_header_mongrel ()
2006{
2007  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008  if eval \${$3+:} false; then :
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012  $as_echo_n "(cached) " >&6
2013fi
2014eval ac_res=\$$3
2015	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017else
2018  # Is the header compilable?
2019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020$as_echo_n "checking $2 usability... " >&6; }
2021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024#include <$2>
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027  ac_header_compiler=yes
2028else
2029  ac_header_compiler=no
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033$as_echo "$ac_header_compiler" >&6; }
2034
2035# Is the header present?
2036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037$as_echo_n "checking $2 presence... " >&6; }
2038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040#include <$2>
2041_ACEOF
2042if ac_fn_c_try_cpp "$LINENO"; then :
2043  ac_header_preproc=yes
2044else
2045  ac_header_preproc=no
2046fi
2047rm -f conftest.err conftest.i conftest.$ac_ext
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049$as_echo "$ac_header_preproc" >&6; }
2050
2051# So?  What about this header?
2052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2053  yes:no: )
2054    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058    ;;
2059  no:yes:* )
2060    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2063$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2064    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2067$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2070( $as_echo "## ------------------------------------ ##
2071## Report this to http://bugs.ntp.org./ ##
2072## ------------------------------------ ##"
2073     ) | sed "s/^/$as_me: WARNING:     /" >&2
2074    ;;
2075esac
2076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077$as_echo_n "checking for $2... " >&6; }
2078if eval \${$3+:} false; then :
2079  $as_echo_n "(cached) " >&6
2080else
2081  eval "$3=\$ac_header_compiler"
2082fi
2083eval ac_res=\$$3
2084	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085$as_echo "$ac_res" >&6; }
2086fi
2087  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088
2089} # ac_fn_c_check_header_mongrel
2090
2091# ac_fn_c_try_run LINENO
2092# ----------------------
2093# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2094# that executables *can* be run.
2095ac_fn_c_try_run ()
2096{
2097  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098  if { { ac_try="$ac_link"
2099case "(($ac_try" in
2100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101  *) ac_try_echo=$ac_try;;
2102esac
2103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104$as_echo "$ac_try_echo"; } >&5
2105  (eval "$ac_link") 2>&5
2106  ac_status=$?
2107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2108  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2109  { { case "(($ac_try" in
2110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111  *) ac_try_echo=$ac_try;;
2112esac
2113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114$as_echo "$ac_try_echo"; } >&5
2115  (eval "$ac_try") 2>&5
2116  ac_status=$?
2117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118  test $ac_status = 0; }; }; then :
2119  ac_retval=0
2120else
2121  $as_echo "$as_me: program exited with status $ac_status" >&5
2122       $as_echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125       ac_retval=$ac_status
2126fi
2127  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129  as_fn_set_status $ac_retval
2130
2131} # ac_fn_c_try_run
2132
2133# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2134# -------------------------------------------------------
2135# Tests whether HEADER exists and can be compiled using the include files in
2136# INCLUDES, setting the cache variable VAR accordingly.
2137ac_fn_c_check_header_compile ()
2138{
2139  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141$as_echo_n "checking for $2... " >&6; }
2142if eval \${$3+:} false; then :
2143  $as_echo_n "(cached) " >&6
2144else
2145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h.  */
2147$4
2148#include <$2>
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151  eval "$3=yes"
2152else
2153  eval "$3=no"
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156fi
2157eval ac_res=\$$3
2158	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159$as_echo "$ac_res" >&6; }
2160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161
2162} # ac_fn_c_check_header_compile
2163
2164# ac_fn_c_try_link LINENO
2165# -----------------------
2166# Try to link conftest.$ac_ext, and return whether this succeeded.
2167ac_fn_c_try_link ()
2168{
2169  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170  rm -f conftest.$ac_objext conftest$ac_exeext
2171  if { { ac_try="$ac_link"
2172case "(($ac_try" in
2173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174  *) ac_try_echo=$ac_try;;
2175esac
2176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177$as_echo "$ac_try_echo"; } >&5
2178  (eval "$ac_link") 2>conftest.err
2179  ac_status=$?
2180  if test -s conftest.err; then
2181    grep -v '^ *+' conftest.err >conftest.er1
2182    cat conftest.er1 >&5
2183    mv -f conftest.er1 conftest.err
2184  fi
2185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186  test $ac_status = 0; } && {
2187	 test -z "$ac_c_werror_flag" ||
2188	 test ! -s conftest.err
2189       } && test -s conftest$ac_exeext && {
2190	 test "$cross_compiling" = yes ||
2191	 test -x conftest$ac_exeext
2192       }; then :
2193  ac_retval=0
2194else
2195  $as_echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198	ac_retval=1
2199fi
2200  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2201  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2202  # interfere with the next link command; also delete a directory that is
2203  # left behind by Apple's compiler.  We do this before executing the actions.
2204  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2205  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206  as_fn_set_status $ac_retval
2207
2208} # ac_fn_c_try_link
2209
2210# ac_fn_cxx_try_compile LINENO
2211# ----------------------------
2212# Try to compile conftest.$ac_ext, and return whether this succeeded.
2213ac_fn_cxx_try_compile ()
2214{
2215  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216  rm -f conftest.$ac_objext
2217  if { { ac_try="$ac_compile"
2218case "(($ac_try" in
2219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220  *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223$as_echo "$ac_try_echo"; } >&5
2224  (eval "$ac_compile") 2>conftest.err
2225  ac_status=$?
2226  if test -s conftest.err; then
2227    grep -v '^ *+' conftest.err >conftest.er1
2228    cat conftest.er1 >&5
2229    mv -f conftest.er1 conftest.err
2230  fi
2231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232  test $ac_status = 0; } && {
2233	 test -z "$ac_cxx_werror_flag" ||
2234	 test ! -s conftest.err
2235       } && test -s conftest.$ac_objext; then :
2236  ac_retval=0
2237else
2238  $as_echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241	ac_retval=1
2242fi
2243  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244  as_fn_set_status $ac_retval
2245
2246} # ac_fn_cxx_try_compile
2247
2248# ac_fn_c_check_func LINENO FUNC VAR
2249# ----------------------------------
2250# Tests whether FUNC exists, setting the cache variable VAR accordingly
2251ac_fn_c_check_func ()
2252{
2253  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2255$as_echo_n "checking for $2... " >&6; }
2256if eval \${$3+:} false; then :
2257  $as_echo_n "(cached) " >&6
2258else
2259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h.  */
2261/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2262   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2263#define $2 innocuous_$2
2264
2265/* System header to define __stub macros and hopefully few prototypes,
2266    which can conflict with char $2 (); below.
2267    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2268    <limits.h> exists even on freestanding compilers.  */
2269
2270#ifdef __STDC__
2271# include <limits.h>
2272#else
2273# include <assert.h>
2274#endif
2275
2276#undef $2
2277
2278/* Override any GCC internal prototype to avoid an error.
2279   Use char because int might match the return type of a GCC
2280   builtin and then its argument prototype would still apply.  */
2281#ifdef __cplusplus
2282extern "C"
2283#endif
2284char $2 ();
2285/* The GNU C library defines this for functions which it implements
2286    to always fail with ENOSYS.  Some functions are actually named
2287    something starting with __ and the normal name is an alias.  */
2288#if defined __stub_$2 || defined __stub___$2
2289choke me
2290#endif
2291
2292int
2293main ()
2294{
2295return $2 ();
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_link "$LINENO"; then :
2301  eval "$3=yes"
2302else
2303  eval "$3=no"
2304fi
2305rm -f core conftest.err conftest.$ac_objext \
2306    conftest$ac_exeext conftest.$ac_ext
2307fi
2308eval ac_res=\$$3
2309	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310$as_echo "$ac_res" >&6; }
2311  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313} # ac_fn_c_check_func
2314
2315# ac_fn_cxx_try_cpp LINENO
2316# ------------------------
2317# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2318ac_fn_cxx_try_cpp ()
2319{
2320  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321  if { { ac_try="$ac_cpp conftest.$ac_ext"
2322case "(($ac_try" in
2323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324  *) ac_try_echo=$ac_try;;
2325esac
2326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327$as_echo "$ac_try_echo"; } >&5
2328  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2329  ac_status=$?
2330  if test -s conftest.err; then
2331    grep -v '^ *+' conftest.err >conftest.er1
2332    cat conftest.er1 >&5
2333    mv -f conftest.er1 conftest.err
2334  fi
2335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336  test $ac_status = 0; } > conftest.i && {
2337	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2338	 test ! -s conftest.err
2339       }; then :
2340  ac_retval=0
2341else
2342  $as_echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345    ac_retval=1
2346fi
2347  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348  as_fn_set_status $ac_retval
2349
2350} # ac_fn_cxx_try_cpp
2351
2352# ac_fn_cxx_try_link LINENO
2353# -------------------------
2354# Try to link conftest.$ac_ext, and return whether this succeeded.
2355ac_fn_cxx_try_link ()
2356{
2357  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358  rm -f conftest.$ac_objext conftest$ac_exeext
2359  if { { ac_try="$ac_link"
2360case "(($ac_try" in
2361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362  *) ac_try_echo=$ac_try;;
2363esac
2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365$as_echo "$ac_try_echo"; } >&5
2366  (eval "$ac_link") 2>conftest.err
2367  ac_status=$?
2368  if test -s conftest.err; then
2369    grep -v '^ *+' conftest.err >conftest.er1
2370    cat conftest.er1 >&5
2371    mv -f conftest.er1 conftest.err
2372  fi
2373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374  test $ac_status = 0; } && {
2375	 test -z "$ac_cxx_werror_flag" ||
2376	 test ! -s conftest.err
2377       } && test -s conftest$ac_exeext && {
2378	 test "$cross_compiling" = yes ||
2379	 test -x conftest$ac_exeext
2380       }; then :
2381  ac_retval=0
2382else
2383  $as_echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386	ac_retval=1
2387fi
2388  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390  # interfere with the next link command; also delete a directory that is
2391  # left behind by Apple's compiler.  We do this before executing the actions.
2392  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394  as_fn_set_status $ac_retval
2395
2396} # ac_fn_cxx_try_link
2397
2398# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2399# -------------------------------------------
2400# Tests whether TYPE exists after having included INCLUDES, setting cache
2401# variable VAR accordingly.
2402ac_fn_c_check_type ()
2403{
2404  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406$as_echo_n "checking for $2... " >&6; }
2407if eval \${$3+:} false; then :
2408  $as_echo_n "(cached) " >&6
2409else
2410  eval "$3=no"
2411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h.  */
2413$4
2414int
2415main ()
2416{
2417if (sizeof ($2))
2418	 return 0;
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_c_try_compile "$LINENO"; then :
2424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h.  */
2426$4
2427int
2428main ()
2429{
2430if (sizeof (($2)))
2431	    return 0;
2432  ;
2433  return 0;
2434}
2435_ACEOF
2436if ac_fn_c_try_compile "$LINENO"; then :
2437
2438else
2439  eval "$3=yes"
2440fi
2441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442fi
2443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444fi
2445eval ac_res=\$$3
2446	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447$as_echo "$ac_res" >&6; }
2448  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2449
2450} # ac_fn_c_check_type
2451
2452# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2453# --------------------------------------------
2454# Tries to find the compile-time value of EXPR in a program that includes
2455# INCLUDES, setting VAR accordingly. Returns whether the value could be
2456# computed
2457ac_fn_c_compute_int ()
2458{
2459  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460  if test "$cross_compiling" = yes; then
2461    # Depending upon the size, compute the lo and hi bounds.
2462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463/* end confdefs.h.  */
2464$4
2465int
2466main ()
2467{
2468static int test_array [1 - 2 * !(($2) >= 0)];
2469test_array [0] = 0;
2470return test_array [0];
2471
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476if ac_fn_c_try_compile "$LINENO"; then :
2477  ac_lo=0 ac_mid=0
2478  while :; do
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;
2487return test_array [0];
2488
2489  ;
2490  return 0;
2491}
2492_ACEOF
2493if ac_fn_c_try_compile "$LINENO"; then :
2494  ac_hi=$ac_mid; break
2495else
2496  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2497			if test $ac_lo -le $ac_mid; then
2498			  ac_lo= ac_hi=
2499			  break
2500			fi
2501			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2502fi
2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504  done
2505else
2506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507/* end confdefs.h.  */
2508$4
2509int
2510main ()
2511{
2512static int test_array [1 - 2 * !(($2) < 0)];
2513test_array [0] = 0;
2514return test_array [0];
2515
2516  ;
2517  return 0;
2518}
2519_ACEOF
2520if ac_fn_c_try_compile "$LINENO"; then :
2521  ac_hi=-1 ac_mid=-1
2522  while :; do
2523    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524/* end confdefs.h.  */
2525$4
2526int
2527main ()
2528{
2529static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2530test_array [0] = 0;
2531return test_array [0];
2532
2533  ;
2534  return 0;
2535}
2536_ACEOF
2537if ac_fn_c_try_compile "$LINENO"; then :
2538  ac_lo=$ac_mid; break
2539else
2540  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2541			if test $ac_mid -le $ac_hi; then
2542			  ac_lo= ac_hi=
2543			  break
2544			fi
2545			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2546fi
2547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548  done
2549else
2550  ac_lo= ac_hi=
2551fi
2552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553fi
2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555# Binary search between lo and hi bounds.
2556while test "x$ac_lo" != "x$ac_hi"; do
2557  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559/* end confdefs.h.  */
2560$4
2561int
2562main ()
2563{
2564static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2565test_array [0] = 0;
2566return test_array [0];
2567
2568  ;
2569  return 0;
2570}
2571_ACEOF
2572if ac_fn_c_try_compile "$LINENO"; then :
2573  ac_hi=$ac_mid
2574else
2575  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2576fi
2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578done
2579case $ac_lo in #((
2580?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2581'') ac_retval=1 ;;
2582esac
2583  else
2584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585/* end confdefs.h.  */
2586$4
2587static long int longval () { return $2; }
2588static unsigned long int ulongval () { return $2; }
2589#include <stdio.h>
2590#include <stdlib.h>
2591int
2592main ()
2593{
2594
2595  FILE *f = fopen ("conftest.val", "w");
2596  if (! f)
2597    return 1;
2598  if (($2) < 0)
2599    {
2600      long int i = longval ();
2601      if (i != ($2))
2602	return 1;
2603      fprintf (f, "%ld", i);
2604    }
2605  else
2606    {
2607      unsigned long int i = ulongval ();
2608      if (i != ($2))
2609	return 1;
2610      fprintf (f, "%lu", i);
2611    }
2612  /* Do not output a trailing newline, as this causes \r\n confusion
2613     on some platforms.  */
2614  return ferror (f) || fclose (f) != 0;
2615
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620if ac_fn_c_try_run "$LINENO"; then :
2621  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2622else
2623  ac_retval=1
2624fi
2625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2626  conftest.$ac_objext conftest.beam conftest.$ac_ext
2627rm -f conftest.val
2628
2629  fi
2630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631  as_fn_set_status $ac_retval
2632
2633} # ac_fn_c_compute_int
2634
2635# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2636# ---------------------------------------------
2637# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2638# accordingly.
2639ac_fn_c_check_decl ()
2640{
2641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642  as_decl_name=`echo $2|sed 's/ *(.*//'`
2643  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646if eval \${$3+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h.  */
2651$4
2652int
2653main ()
2654{
2655#ifndef $as_decl_name
2656#ifdef __cplusplus
2657  (void) $as_decl_use;
2658#else
2659  (void) $as_decl_name;
2660#endif
2661#endif
2662
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667if ac_fn_c_try_compile "$LINENO"; then :
2668  eval "$3=yes"
2669else
2670  eval "$3=no"
2671fi
2672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673fi
2674eval ac_res=\$$3
2675	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676$as_echo "$ac_res" >&6; }
2677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678
2679} # ac_fn_c_check_decl
2680
2681# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2682# ----------------------------------------------------
2683# Tries to find if the field MEMBER exists in type AGGR, after including
2684# INCLUDES, setting cache variable VAR accordingly.
2685ac_fn_c_check_member ()
2686{
2687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2689$as_echo_n "checking for $2.$3... " >&6; }
2690if eval \${$4+:} false; then :
2691  $as_echo_n "(cached) " >&6
2692else
2693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694/* end confdefs.h.  */
2695$5
2696int
2697main ()
2698{
2699static $2 ac_aggr;
2700if (ac_aggr.$3)
2701return 0;
2702  ;
2703  return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707  eval "$4=yes"
2708else
2709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h.  */
2711$5
2712int
2713main ()
2714{
2715static $2 ac_aggr;
2716if (sizeof ac_aggr.$3)
2717return 0;
2718  ;
2719  return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723  eval "$4=yes"
2724else
2725  eval "$4=no"
2726fi
2727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728fi
2729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730fi
2731eval ac_res=\$$4
2732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733$as_echo "$ac_res" >&6; }
2734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735
2736} # ac_fn_c_check_member
2737cat >config.log <<_ACEOF
2738This file contains any messages produced by compilers while
2739running configure, to aid debugging if configure makes a mistake.
2740
2741It was created by ntp $as_me 4.2.8p3, which was
2742generated by GNU Autoconf 2.69.  Invocation command line was
2743
2744  $ $0 $@
2745
2746_ACEOF
2747exec 5>>config.log
2748{
2749cat <<_ASUNAME
2750## --------- ##
2751## Platform. ##
2752## --------- ##
2753
2754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758uname -v = `(uname -v) 2>/dev/null || echo unknown`
2759
2760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2762
2763/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2764/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2767/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2768/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2769/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2770
2771_ASUNAME
2772
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  test -z "$as_dir" && as_dir=.
2778    $as_echo "PATH: $as_dir"
2779  done
2780IFS=$as_save_IFS
2781
2782} >&5
2783
2784cat >&5 <<_ACEOF
2785
2786
2787## ----------- ##
2788## Core tests. ##
2789## ----------- ##
2790
2791_ACEOF
2792
2793
2794# Keep a trace of the command line.
2795# Strip out --no-create and --no-recursion so they do not pile up.
2796# Strip out --silent because we don't want to record it for future runs.
2797# Also quote any args containing shell meta-characters.
2798# Make two passes to allow for proper duplicate-argument suppression.
2799ac_configure_args=
2800ac_configure_args0=
2801ac_configure_args1=
2802ac_must_keep_next=false
2803for ac_pass in 1 2
2804do
2805  for ac_arg
2806  do
2807    case $ac_arg in
2808    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2809    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2810    | -silent | --silent | --silen | --sile | --sil)
2811      continue ;;
2812    *\'*)
2813      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2814    esac
2815    case $ac_pass in
2816    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2817    2)
2818      as_fn_append ac_configure_args1 " '$ac_arg'"
2819      if test $ac_must_keep_next = true; then
2820	ac_must_keep_next=false # Got value, back to normal.
2821      else
2822	case $ac_arg in
2823	  *=* | --config-cache | -C | -disable-* | --disable-* \
2824	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2825	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2826	  | -with-* | --with-* | -without-* | --without-* | --x)
2827	    case "$ac_configure_args0 " in
2828	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2829	    esac
2830	    ;;
2831	  -* ) ac_must_keep_next=true ;;
2832	esac
2833      fi
2834      as_fn_append ac_configure_args " '$ac_arg'"
2835      ;;
2836    esac
2837  done
2838done
2839{ ac_configure_args0=; unset ac_configure_args0;}
2840{ ac_configure_args1=; unset ac_configure_args1;}
2841
2842# When interrupted or exit'd, cleanup temporary files, and complete
2843# config.log.  We remove comments because anyway the quotes in there
2844# would cause problems or look ugly.
2845# WARNING: Use '\'' to represent an apostrophe within the trap.
2846# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2847trap 'exit_status=$?
2848  # Save into config.log some information that might help in debugging.
2849  {
2850    echo
2851
2852    $as_echo "## ---------------- ##
2853## Cache variables. ##
2854## ---------------- ##"
2855    echo
2856    # The following way of writing the cache mishandles newlines in values,
2857(
2858  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859    eval ac_val=\$$ac_var
2860    case $ac_val in #(
2861    *${as_nl}*)
2862      case $ac_var in #(
2863      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2865      esac
2866      case $ac_var in #(
2867      _ | IFS | as_nl) ;; #(
2868      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869      *) { eval $ac_var=; unset $ac_var;} ;;
2870      esac ;;
2871    esac
2872  done
2873  (set) 2>&1 |
2874    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875    *${as_nl}ac_space=\ *)
2876      sed -n \
2877	"s/'\''/'\''\\\\'\'''\''/g;
2878	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2879      ;; #(
2880    *)
2881      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2882      ;;
2883    esac |
2884    sort
2885)
2886    echo
2887
2888    $as_echo "## ----------------- ##
2889## Output variables. ##
2890## ----------------- ##"
2891    echo
2892    for ac_var in $ac_subst_vars
2893    do
2894      eval ac_val=\$$ac_var
2895      case $ac_val in
2896      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2897      esac
2898      $as_echo "$ac_var='\''$ac_val'\''"
2899    done | sort
2900    echo
2901
2902    if test -n "$ac_subst_files"; then
2903      $as_echo "## ------------------- ##
2904## File substitutions. ##
2905## ------------------- ##"
2906      echo
2907      for ac_var in $ac_subst_files
2908      do
2909	eval ac_val=\$$ac_var
2910	case $ac_val in
2911	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2912	esac
2913	$as_echo "$ac_var='\''$ac_val'\''"
2914      done | sort
2915      echo
2916    fi
2917
2918    if test -s confdefs.h; then
2919      $as_echo "## ----------- ##
2920## confdefs.h. ##
2921## ----------- ##"
2922      echo
2923      cat confdefs.h
2924      echo
2925    fi
2926    test "$ac_signal" != 0 &&
2927      $as_echo "$as_me: caught signal $ac_signal"
2928    $as_echo "$as_me: exit $exit_status"
2929  } >&5
2930  rm -f core *.core core.conftest.* &&
2931    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2932    exit $exit_status
2933' 0
2934for ac_signal in 1 2 13 15; do
2935  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2936done
2937ac_signal=0
2938
2939# confdefs.h avoids OS command line length limits that DEFS can exceed.
2940rm -f -r conftest* confdefs.h
2941
2942$as_echo "/* confdefs.h */" > confdefs.h
2943
2944# Predefined preprocessor variables.
2945
2946cat >>confdefs.h <<_ACEOF
2947#define PACKAGE_NAME "$PACKAGE_NAME"
2948_ACEOF
2949
2950cat >>confdefs.h <<_ACEOF
2951#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2952_ACEOF
2953
2954cat >>confdefs.h <<_ACEOF
2955#define PACKAGE_VERSION "$PACKAGE_VERSION"
2956_ACEOF
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE_STRING "$PACKAGE_STRING"
2960_ACEOF
2961
2962cat >>confdefs.h <<_ACEOF
2963#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2964_ACEOF
2965
2966cat >>confdefs.h <<_ACEOF
2967#define PACKAGE_URL "$PACKAGE_URL"
2968_ACEOF
2969
2970
2971# Let the site file select an alternate cache file if it wants to.
2972# Prefer an explicitly selected file to automatically selected ones.
2973ac_site_file1=NONE
2974ac_site_file2=NONE
2975if test -n "$CONFIG_SITE"; then
2976  # We do not want a PATH search for config.site.
2977  case $CONFIG_SITE in #((
2978    -*)  ac_site_file1=./$CONFIG_SITE;;
2979    */*) ac_site_file1=$CONFIG_SITE;;
2980    *)   ac_site_file1=./$CONFIG_SITE;;
2981  esac
2982elif test "x$prefix" != xNONE; then
2983  ac_site_file1=$prefix/share/config.site
2984  ac_site_file2=$prefix/etc/config.site
2985else
2986  ac_site_file1=$ac_default_prefix/share/config.site
2987  ac_site_file2=$ac_default_prefix/etc/config.site
2988fi
2989for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2990do
2991  test "x$ac_site_file" = xNONE && continue
2992  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2993    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2994$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2995    sed 's/^/| /' "$ac_site_file" >&5
2996    . "$ac_site_file" \
2997      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "failed to load site script $ac_site_file
3000See \`config.log' for more details" "$LINENO" 5; }
3001  fi
3002done
3003
3004if test -r "$cache_file"; then
3005  # Some versions of bash will fail to source /dev/null (special files
3006  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3007  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3008    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009$as_echo "$as_me: loading cache $cache_file" >&6;}
3010    case $cache_file in
3011      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012      *)                      . "./$cache_file";;
3013    esac
3014  fi
3015else
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017$as_echo "$as_me: creating cache $cache_file" >&6;}
3018  >$cache_file
3019fi
3020
3021as_fn_append ac_header_list " stdarg.h"
3022# Check that the precious variables saved in the cache have kept the same
3023# value.
3024ac_cache_corrupted=false
3025for ac_var in $ac_precious_vars; do
3026  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3027  eval ac_new_set=\$ac_env_${ac_var}_set
3028  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3029  eval ac_new_val=\$ac_env_${ac_var}_value
3030  case $ac_old_set,$ac_new_set in
3031    set,)
3032      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3033$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3034      ac_cache_corrupted=: ;;
3035    ,set)
3036      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3037$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3038      ac_cache_corrupted=: ;;
3039    ,);;
3040    *)
3041      if test "x$ac_old_val" != "x$ac_new_val"; then
3042	# differences in whitespace do not lead to failure.
3043	ac_old_val_w=`echo x $ac_old_val`
3044	ac_new_val_w=`echo x $ac_new_val`
3045	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3046	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3047$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3048	  ac_cache_corrupted=:
3049	else
3050	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3051$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3052	  eval $ac_var=\$ac_old_val
3053	fi
3054	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3055$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3056	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3057$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3058      fi;;
3059  esac
3060  # Pass precious variables to config.status.
3061  if test "$ac_new_set" = set; then
3062    case $ac_new_val in
3063    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3064    *) ac_arg=$ac_var=$ac_new_val ;;
3065    esac
3066    case " $ac_configure_args " in
3067      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3068      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3069    esac
3070  fi
3071done
3072if $ac_cache_corrupted; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3076$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3077  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3078fi
3079## -------------------- ##
3080## Main body of script. ##
3081## -------------------- ##
3082
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089
3090
3091ac_aux_dir=
3092for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3093  if test -f "$ac_dir/install-sh"; then
3094    ac_aux_dir=$ac_dir
3095    ac_install_sh="$ac_aux_dir/install-sh -c"
3096    break
3097  elif test -f "$ac_dir/install.sh"; then
3098    ac_aux_dir=$ac_dir
3099    ac_install_sh="$ac_aux_dir/install.sh -c"
3100    break
3101  elif test -f "$ac_dir/shtool"; then
3102    ac_aux_dir=$ac_dir
3103    ac_install_sh="$ac_aux_dir/shtool install -c"
3104    break
3105  fi
3106done
3107if test -z "$ac_aux_dir"; then
3108  as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3109fi
3110
3111# These three variables are undocumented and unsupported,
3112# and are intended to be withdrawn in a future Autoconf release.
3113# They can cause serious problems if a builder's source tree is in a directory
3114# whose full name contains unusual characters.
3115ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3116ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3117ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3118
3119
3120
3121
3122
3123
3124
3125# Bump ntp_configure_cache_version for each change to configure.ac or
3126# .m4 files which invalidates cached values from previous configure
3127# runs.
3128#
3129# If the change affects cache variables used only by the main NTP
3130# configure.ac, then only its version number should be bumped, while
3131# the subdir configure.ac version numbers should be unchanged.  The
3132# same is true for a test/variable that is used only by one subdir
3133# being changed incompatibly; only that subdir's cache version needs
3134# bumping.
3135#
3136# If a change affects variables shared by all NTP configure scripts,
3137# please bump the version numbers of each.  If you are not sure, the
3138# safe choice is to bump all on any cache-invalidating change.
3139#
3140# In order to avoid the risk of version stamp collision between -stable
3141# and -dev branches, do not simply increment the version, instead use
3142# the date YYYYMMDD optionally with -HHMM if there is more than one
3143# bump in a day.
3144
3145ntp_configure_cache_version=20120806
3146
3147# When the cache version of config.cache and configure do not
3148# match, NTP_CACHEVERSION will flush the cache.
3149
3150
3151
3152    ntp_cache_flush=1
3153
3154    case "$ntp_cv_main_cache_version" in
3155     $ntp_configure_cache_version)
3156	# same version, good
3157	ntp_cache_flush=0
3158	;;
3159     '')
3160	# No cache, predates ntp_cv_main_cache_version, or is empty.
3161	case "$cache_file" in
3162	 /dev/null)
3163	    ntp_cache_flush=0
3164	    ;;
3165	 *)
3166	    case "$NTP_CACHEVERSION_PARENT" in
3167	     '')
3168		# Do not clear the cache immediately after it is created
3169		# empty as it is noisy.  Differentiate a newly-created
3170		# config.cache from one predating the cache version
3171		# mechanism by looking for the first cached variable set
3172		# by Autoconf
3173		case "$ac_cv_path_install" in
3174		 '')
3175		    # empty config.cache file
3176		    ntp_cache_flush=0
3177		esac
3178		;;
3179	     *)
3180		# Parent configure just created cache from empty,
3181		# flushing would be counterproductive.
3182		ntp_cache_flush=0;
3183		;;
3184	    esac
3185	esac
3186	;;
3187     *)
3188	# configure cache version mismatches config.cache version
3189	;;
3190    esac
3191
3192    case "$ntp_cache_flush" in
3193     1)
3194	c_version="${ntp_cv_main_cache_version:-(no version found)}"
3195
3196	# Do we flush all variables or exclude others' version stamps?
3197
3198	case "$NTP_CACHEVERSION_PARENT" in
3199	 '')
3200	    # Clear all *_cv_* variables including our child subdirs'
3201	    # ntp_cv_*_cache_version variables.  This prevents subdir
3202	    # configure scripts from noticing a version mismatch just
3203	    # after the top configure in the invocation cleared and
3204	    # recreated the cache.
3205
3206	    c_varname_list=`set |
3207			    sed -n -e 's/=.*$//' \
3208				   -e '/_cv_/p'
3209			   `
3210	    ;;
3211	 *)
3212	    # This is not the top configure this particular invocation.
3213	    # Clear all *_cv_* variables sparing the version stamps
3214	    # of other configure scripts, so we don't trigger
3215	    # useless repeated clearings.
3216
3217	    c_varname_list=`set |
3218			    sed -n -e 's/=.*$//' \
3219				   -e '/ntp_cv_.*_cache_version/d' \
3220				   -e '/_cv_/p'
3221			   `
3222	esac
3223
3224	for c_varname in $c_varname_list
3225	do
3226	    	    	    	    	    	    { eval $c_varname=; unset $c_varname; }
3227	done
3228
3229	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3230$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3231	{ $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3232$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3233	{ $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3234$as_echo "$as_me: $cache_file version: $c_version" >&6;}
3235	{ c_varname=; unset c_varname;}
3236	{ c_varname_list=; unset c_varname_list;}
3237	{ c_version=; unset c_version;}
3238    esac
3239
3240    { ntp_cache_flush=; unset ntp_cache_flush;}
3241
3242    # save configure version in config.cache for next time
3243    ntp_cv_main_cache_version="$ntp_configure_cache_version"
3244
3245    # let any subdir configure.ac NTP_CACHEVERSION invocations
3246    # know they are not the top level.
3247    NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3248
3249
3250am__api_version='1.15'
3251
3252# Find a good install program.  We prefer a C program (faster),
3253# so one script is as good as another.  But avoid the broken or
3254# incompatible versions:
3255# SysV /etc/install, /usr/sbin/install
3256# SunOS /usr/etc/install
3257# IRIX /sbin/install
3258# AIX /bin/install
3259# AmigaOS /C/install, which installs bootblocks on floppy discs
3260# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3261# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3262# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3263# OS/2's system install, which has a completely different semantic
3264# ./install, which can be erroneously created by make from ./install.sh.
3265# Reject install programs that cannot install multiple files.
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3267$as_echo_n "checking for a BSD-compatible install... " >&6; }
3268if test -z "$INSTALL"; then
3269if ${ac_cv_path_install+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    # Account for people who put trailing slashes in PATH elements.
3278case $as_dir/ in #((
3279  ./ | .// | /[cC]/* | \
3280  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3281  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3282  /usr/ucb/* ) ;;
3283  *)
3284    # OSF1 and SCO ODT 3.0 have their own names for install.
3285    # Don't use installbsd from OSF since it installs stuff as root
3286    # by default.
3287    for ac_prog in ginstall scoinst install; do
3288      for ac_exec_ext in '' $ac_executable_extensions; do
3289	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3290	  if test $ac_prog = install &&
3291	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292	    # AIX install.  It has an incompatible calling convention.
3293	    :
3294	  elif test $ac_prog = install &&
3295	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296	    # program-specific install script used by HP pwplus--don't use.
3297	    :
3298	  else
3299	    rm -rf conftest.one conftest.two conftest.dir
3300	    echo one > conftest.one
3301	    echo two > conftest.two
3302	    mkdir conftest.dir
3303	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3304	      test -s conftest.one && test -s conftest.two &&
3305	      test -s conftest.dir/conftest.one &&
3306	      test -s conftest.dir/conftest.two
3307	    then
3308	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3309	      break 3
3310	    fi
3311	  fi
3312	fi
3313      done
3314    done
3315    ;;
3316esac
3317
3318  done
3319IFS=$as_save_IFS
3320
3321rm -rf conftest.one conftest.two conftest.dir
3322
3323fi
3324  if test "${ac_cv_path_install+set}" = set; then
3325    INSTALL=$ac_cv_path_install
3326  else
3327    # As a last resort, use the slow shell script.  Don't cache a
3328    # value for INSTALL within a source directory, because that will
3329    # break other packages using the cache if that directory is
3330    # removed, or if the value is a relative name.
3331    INSTALL=$ac_install_sh
3332  fi
3333fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3335$as_echo "$INSTALL" >&6; }
3336
3337# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3338# It thinks the first close brace ends the variable substitution.
3339test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3340
3341test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3342
3343test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3344
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3346$as_echo_n "checking whether build environment is sane... " >&6; }
3347# Reject unsafe characters in $srcdir or the absolute working directory
3348# name.  Accept space and tab only in the latter.
3349am_lf='
3350'
3351case `pwd` in
3352  *[\\\"\#\$\&\'\`$am_lf]*)
3353    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3354esac
3355case $srcdir in
3356  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3357    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3358esac
3359
3360# Do 'set' in a subshell so we don't clobber the current shell's
3361# arguments.  Must try -L first in case configure is actually a
3362# symlink; some systems play weird games with the mod time of symlinks
3363# (eg FreeBSD returns the mod time of the symlink's containing
3364# directory).
3365if (
3366   am_has_slept=no
3367   for am_try in 1 2; do
3368     echo "timestamp, slept: $am_has_slept" > conftest.file
3369     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3370     if test "$*" = "X"; then
3371	# -L didn't work.
3372	set X `ls -t "$srcdir/configure" conftest.file`
3373     fi
3374     if test "$*" != "X $srcdir/configure conftest.file" \
3375	&& test "$*" != "X conftest.file $srcdir/configure"; then
3376
3377	# If neither matched, then we have a broken ls.  This can happen
3378	# if, for instance, CONFIG_SHELL is bash and it inherits a
3379	# broken ls alias from the environment.  This has actually
3380	# happened.  Such a system could not be considered "sane".
3381	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3382  alias in your environment" "$LINENO" 5
3383     fi
3384     if test "$2" = conftest.file || test $am_try -eq 2; then
3385       break
3386     fi
3387     # Just in case.
3388     sleep 1
3389     am_has_slept=yes
3390   done
3391   test "$2" = conftest.file
3392   )
3393then
3394   # Ok.
3395   :
3396else
3397   as_fn_error $? "newly created file is older than distributed files!
3398Check your system clock" "$LINENO" 5
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401$as_echo "yes" >&6; }
3402# If we didn't sleep, we still need to ensure time stamps of config.status and
3403# generated files are strictly newer.
3404am_sleep_pid=
3405if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3406  ( sleep 1 ) &
3407  am_sleep_pid=$!
3408fi
3409
3410rm -f conftest.file
3411
3412test "$program_prefix" != NONE &&
3413  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3414# Use a double $ so make ignores it.
3415test "$program_suffix" != NONE &&
3416  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3417# Double any \ or $.
3418# By default was `s,x,x', remove it if useless.
3419ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3420program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3421
3422# Expand $ac_aux_dir to an absolute path.
3423am_aux_dir=`cd "$ac_aux_dir" && pwd`
3424
3425if test x"${MISSING+set}" != xset; then
3426  case $am_aux_dir in
3427  *\ * | *\	*)
3428    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3429  *)
3430    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3431  esac
3432fi
3433# Use eval to expand $SHELL
3434if eval "$MISSING --is-lightweight"; then
3435  am_missing_run="$MISSING "
3436else
3437  am_missing_run=
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3439$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3440fi
3441
3442if test x"${install_sh+set}" != xset; then
3443  case $am_aux_dir in
3444  *\ * | *\	*)
3445    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3446  *)
3447    install_sh="\${SHELL} $am_aux_dir/install-sh"
3448  esac
3449fi
3450
3451# Installed binaries are usually stripped using 'strip' when the user
3452# run "make install-strip".  However 'strip' might not be the right
3453# tool to use in cross-compilation environments, therefore Automake
3454# will honor the 'STRIP' environment variable to overrule this program.
3455if test "$cross_compiling" != no; then
3456  if test -n "$ac_tool_prefix"; then
3457  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3458set dummy ${ac_tool_prefix}strip; ac_word=$2
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460$as_echo_n "checking for $ac_word... " >&6; }
3461if ${ac_cv_prog_STRIP+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464  if test -n "$STRIP"; then
3465  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3466else
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470  IFS=$as_save_IFS
3471  test -z "$as_dir" && as_dir=.
3472    for ac_exec_ext in '' $ac_executable_extensions; do
3473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476    break 2
3477  fi
3478done
3479  done
3480IFS=$as_save_IFS
3481
3482fi
3483fi
3484STRIP=$ac_cv_prog_STRIP
3485if test -n "$STRIP"; then
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3487$as_echo "$STRIP" >&6; }
3488else
3489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490$as_echo "no" >&6; }
3491fi
3492
3493
3494fi
3495if test -z "$ac_cv_prog_STRIP"; then
3496  ac_ct_STRIP=$STRIP
3497  # Extract the first word of "strip", so it can be a program name with args.
3498set dummy strip; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  if test -n "$ac_ct_STRIP"; then
3505  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  test -z "$as_dir" && as_dir=.
3512    for ac_exec_ext in '' $ac_executable_extensions; do
3513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514    ac_cv_prog_ac_ct_STRIP="strip"
3515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516    break 2
3517  fi
3518done
3519  done
3520IFS=$as_save_IFS
3521
3522fi
3523fi
3524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3525if test -n "$ac_ct_STRIP"; then
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3527$as_echo "$ac_ct_STRIP" >&6; }
3528else
3529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
3531fi
3532
3533  if test "x$ac_ct_STRIP" = x; then
3534    STRIP=":"
3535  else
3536    case $cross_compiling:$ac_tool_warned in
3537yes:)
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540ac_tool_warned=yes ;;
3541esac
3542    STRIP=$ac_ct_STRIP
3543  fi
3544else
3545  STRIP="$ac_cv_prog_STRIP"
3546fi
3547
3548fi
3549INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3550
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3552$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3553if test -z "$MKDIR_P"; then
3554  if ${ac_cv_path_mkdir+:} false; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3559do
3560  IFS=$as_save_IFS
3561  test -z "$as_dir" && as_dir=.
3562    for ac_prog in mkdir gmkdir; do
3563	 for ac_exec_ext in '' $ac_executable_extensions; do
3564	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3565	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3566	     'mkdir (GNU coreutils) '* | \
3567	     'mkdir (coreutils) '* | \
3568	     'mkdir (fileutils) '4.1*)
3569	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3570	       break 3;;
3571	   esac
3572	 done
3573       done
3574  done
3575IFS=$as_save_IFS
3576
3577fi
3578
3579  test -d ./--version && rmdir ./--version
3580  if test "${ac_cv_path_mkdir+set}" = set; then
3581    MKDIR_P="$ac_cv_path_mkdir -p"
3582  else
3583    # As a last resort, use the slow shell script.  Don't cache a
3584    # value for MKDIR_P within a source directory, because that will
3585    # break other packages using the cache if that directory is
3586    # removed, or if the value is a relative name.
3587    MKDIR_P="$ac_install_sh -d"
3588  fi
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3591$as_echo "$MKDIR_P" >&6; }
3592
3593for ac_prog in gawk mawk nawk awk
3594do
3595  # Extract the first word of "$ac_prog", so it can be a program name with args.
3596set dummy $ac_prog; ac_word=$2
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598$as_echo_n "checking for $ac_word... " >&6; }
3599if ${ac_cv_prog_AWK+:} false; then :
3600  $as_echo_n "(cached) " >&6
3601else
3602  if test -n "$AWK"; then
3603  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608  IFS=$as_save_IFS
3609  test -z "$as_dir" && as_dir=.
3610    for ac_exec_ext in '' $ac_executable_extensions; do
3611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612    ac_cv_prog_AWK="$ac_prog"
3613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614    break 2
3615  fi
3616done
3617  done
3618IFS=$as_save_IFS
3619
3620fi
3621fi
3622AWK=$ac_cv_prog_AWK
3623if test -n "$AWK"; then
3624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3625$as_echo "$AWK" >&6; }
3626else
3627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628$as_echo "no" >&6; }
3629fi
3630
3631
3632  test -n "$AWK" && break
3633done
3634
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3636$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3637set x ${MAKE-make}
3638ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3639if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  cat >conftest.make <<\_ACEOF
3643SHELL = /bin/sh
3644all:
3645	@echo '@@@%%%=$(MAKE)=@@@%%%'
3646_ACEOF
3647# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3648case `${MAKE-make} -f conftest.make 2>/dev/null` in
3649  *@@@%%%=?*=@@@%%%*)
3650    eval ac_cv_prog_make_${ac_make}_set=yes;;
3651  *)
3652    eval ac_cv_prog_make_${ac_make}_set=no;;
3653esac
3654rm -f conftest.make
3655fi
3656if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658$as_echo "yes" >&6; }
3659  SET_MAKE=
3660else
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663  SET_MAKE="MAKE=${MAKE-make}"
3664fi
3665
3666rm -rf .tst 2>/dev/null
3667mkdir .tst 2>/dev/null
3668if test -d .tst; then
3669  am__leading_dot=.
3670else
3671  am__leading_dot=_
3672fi
3673rmdir .tst 2>/dev/null
3674
3675# Check whether --enable-silent-rules was given.
3676if test "${enable_silent_rules+set}" = set; then :
3677  enableval=$enable_silent_rules;
3678fi
3679
3680case $enable_silent_rules in # (((
3681  yes) AM_DEFAULT_VERBOSITY=0;;
3682   no) AM_DEFAULT_VERBOSITY=1;;
3683    *) AM_DEFAULT_VERBOSITY=1;;
3684esac
3685am_make=${MAKE-make}
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3687$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3688if ${am_cv_make_support_nested_variables+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  if $as_echo 'TRUE=$(BAR$(V))
3692BAR0=false
3693BAR1=true
3694V=1
3695am__doit:
3696	@$(TRUE)
3697.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3698  am_cv_make_support_nested_variables=yes
3699else
3700  am_cv_make_support_nested_variables=no
3701fi
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3704$as_echo "$am_cv_make_support_nested_variables" >&6; }
3705if test $am_cv_make_support_nested_variables = yes; then
3706    AM_V='$(V)'
3707  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3708else
3709  AM_V=$AM_DEFAULT_VERBOSITY
3710  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3711fi
3712AM_BACKSLASH='\'
3713
3714if test "`cd $srcdir && pwd`" != "`pwd`"; then
3715  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3716  # is not polluted with repeated "-I."
3717  am__isrc=' -I$(srcdir)'
3718  # test to see if srcdir already configured
3719  if test -f $srcdir/config.status; then
3720    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3721  fi
3722fi
3723
3724# test whether we have cygpath
3725if test -z "$CYGPATH_W"; then
3726  if (cygpath --version) >/dev/null 2>/dev/null; then
3727    CYGPATH_W='cygpath -w'
3728  else
3729    CYGPATH_W=echo
3730  fi
3731fi
3732
3733
3734# Define the identity of the package.
3735 PACKAGE='ntp'
3736 VERSION='4.2.8p3'
3737
3738
3739cat >>confdefs.h <<_ACEOF
3740#define PACKAGE "$PACKAGE"
3741_ACEOF
3742
3743
3744cat >>confdefs.h <<_ACEOF
3745#define VERSION "$VERSION"
3746_ACEOF
3747
3748# Some tools Automake needs.
3749
3750ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3751
3752
3753AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3754
3755
3756AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3757
3758
3759AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3760
3761
3762MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3763
3764# For better backward compatibility.  To be removed once Automake 1.9.x
3765# dies out for good.  For more background, see:
3766# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3767# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3768mkdir_p='$(MKDIR_P)'
3769
3770# We need awk for the "check" target (and possibly the TAP driver).  The
3771# system "awk" is bad on some platforms.
3772# Always define AMTAR for backward compatibility.  Yes, it's still used
3773# in the wild :-(  We should find a proper way to deprecate it ...
3774AMTAR='$${TAR-tar}'
3775
3776
3777# We'll loop over all known methods to create a tar archive until one works.
3778_am_tools='gnutar  pax cpio none'
3779
3780am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3781
3782
3783
3784
3785
3786
3787# POSIX will say in a future version that running "rm -f" with no argument
3788# is OK; and we want to be able to make that assumption in our Makefile
3789# recipes.  So use an aggressive probe to check that the usage we want is
3790# actually supported "in the wild" to an acceptable degree.
3791# See automake bug#10828.
3792# To make any issue more visible, cause the running configure to be aborted
3793# by default if the 'rm' program in use doesn't match our expectations; the
3794# user can still override this though.
3795if rm -f && rm -fr && rm -rf; then : OK; else
3796  cat >&2 <<'END'
3797Oops!
3798
3799Your 'rm' program seems unable to run without file operands specified
3800on the command line, even when the '-f' option is present.  This is contrary
3801to the behaviour of most rm programs out there, and not conforming with
3802the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3803
3804Please tell bug-automake@gnu.org about your system, including the value
3805of your $PATH and any error possibly output before this message.  This
3806can help us improve future automake versions.
3807
3808END
3809  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3810    echo 'Configuration will proceed anyway, since you have set the' >&2
3811    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3812    echo >&2
3813  else
3814    cat >&2 <<'END'
3815Aborting the configuration process, to ensure you take notice of the issue.
3816
3817You can download and install GNU coreutils to get an 'rm' implementation
3818that behaves properly: <http://www.gnu.org/software/coreutils/>.
3819
3820If you want to complete the configuration process using your problematic
3821'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3822to "yes", and re-run configure.
3823
3824END
3825    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3826  fi
3827fi
3828
3829
3830# Check whether --enable-silent-rules was given.
3831if test "${enable_silent_rules+set}" = set; then :
3832  enableval=$enable_silent_rules;
3833fi
3834
3835case $enable_silent_rules in # (((
3836  yes) AM_DEFAULT_VERBOSITY=0;;
3837   no) AM_DEFAULT_VERBOSITY=1;;
3838    *) AM_DEFAULT_VERBOSITY=0;;
3839esac
3840am_make=${MAKE-make}
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3842$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3843if ${am_cv_make_support_nested_variables+:} false; then :
3844  $as_echo_n "(cached) " >&6
3845else
3846  if $as_echo 'TRUE=$(BAR$(V))
3847BAR0=false
3848BAR1=true
3849V=1
3850am__doit:
3851	@$(TRUE)
3852.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3853  am_cv_make_support_nested_variables=yes
3854else
3855  am_cv_make_support_nested_variables=no
3856fi
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3859$as_echo "$am_cv_make_support_nested_variables" >&6; }
3860if test $am_cv_make_support_nested_variables = yes; then
3861    AM_V='$(V)'
3862  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3863else
3864  AM_V=$AM_DEFAULT_VERBOSITY
3865  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3866fi
3867AM_BACKSLASH='\'
3868
3869
3870# Make sure we can run config.sub.
3871$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3872  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3873
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3875$as_echo_n "checking build system type... " >&6; }
3876if ${ac_cv_build+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  ac_build_alias=$build_alias
3880test "x$ac_build_alias" = x &&
3881  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3882test "x$ac_build_alias" = x &&
3883  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3884ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3885  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3886
3887fi
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3889$as_echo "$ac_cv_build" >&6; }
3890case $ac_cv_build in
3891*-*-*) ;;
3892*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3893esac
3894build=$ac_cv_build
3895ac_save_IFS=$IFS; IFS='-'
3896set x $ac_cv_build
3897shift
3898build_cpu=$1
3899build_vendor=$2
3900shift; shift
3901# Remember, the first character of IFS is used to create $*,
3902# except with old shells:
3903build_os=$*
3904IFS=$ac_save_IFS
3905case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3906
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3909$as_echo_n "checking host system type... " >&6; }
3910if ${ac_cv_host+:} false; then :
3911  $as_echo_n "(cached) " >&6
3912else
3913  if test "x$host_alias" = x; then
3914  ac_cv_host=$ac_cv_build
3915else
3916  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3917    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3918fi
3919
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3922$as_echo "$ac_cv_host" >&6; }
3923case $ac_cv_host in
3924*-*-*) ;;
3925*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3926esac
3927host=$ac_cv_host
3928ac_save_IFS=$IFS; IFS='-'
3929set x $ac_cv_host
3930shift
3931host_cpu=$1
3932host_vendor=$2
3933shift; shift
3934# Remember, the first character of IFS is used to create $*,
3935# except with old shells:
3936host_os=$*
3937IFS=$ac_save_IFS
3938case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3939
3940
3941
3942cat >>confdefs.h <<_ACEOF
3943#define STR_SYSTEM "$host"
3944_ACEOF
3945
3946ac_config_headers="$ac_config_headers config.h"
3947
3948
3949ntp_atom_ok=${ntp_atom_ok=no}
3950ntp_oncore_ok=${ntp_oncore_ok=no}
3951ntp_parse_ok=${ntp_parse_ok=no}
3952ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3953ntp_jupiter_ok=${ntp_jupiter_ok=no}
3954
3955DEPDIR="${am__leading_dot}deps"
3956
3957ac_config_commands="$ac_config_commands depfiles"
3958
3959
3960am_make=${MAKE-make}
3961cat > confinc << 'END'
3962am__doit:
3963	@echo this is the am__doit target
3964.PHONY: am__doit
3965END
3966# If we don't find an include directive, just comment out the code.
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3968$as_echo_n "checking for style of include used by $am_make... " >&6; }
3969am__include="#"
3970am__quote=
3971_am_result=none
3972# First try GNU make style include.
3973echo "include confinc" > confmf
3974# Ignore all kinds of additional output from 'make'.
3975case `$am_make -s -f confmf 2> /dev/null` in #(
3976*the\ am__doit\ target*)
3977  am__include=include
3978  am__quote=
3979  _am_result=GNU
3980  ;;
3981esac
3982# Now try BSD make style include.
3983if test "$am__include" = "#"; then
3984   echo '.include "confinc"' > confmf
3985   case `$am_make -s -f confmf 2> /dev/null` in #(
3986   *the\ am__doit\ target*)
3987     am__include=.include
3988     am__quote="\""
3989     _am_result=BSD
3990     ;;
3991   esac
3992fi
3993
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996$as_echo "$_am_result" >&6; }
3997rm -f confinc confmf
3998
3999# Check whether --enable-dependency-tracking was given.
4000if test "${enable_dependency_tracking+set}" = set; then :
4001  enableval=$enable_dependency_tracking;
4002fi
4003
4004if test "x$enable_dependency_tracking" != xno; then
4005  am_depcomp="$ac_aux_dir/depcomp"
4006  AMDEPBACKSLASH='\'
4007  am__nodep='_no'
4008fi
4009 if test "x$enable_dependency_tracking" != xno; then
4010  AMDEP_TRUE=
4011  AMDEP_FALSE='#'
4012else
4013  AMDEP_TRUE='#'
4014  AMDEP_FALSE=
4015fi
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023if test -n "$ac_tool_prefix"; then
4024  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4025set dummy ${ac_tool_prefix}gcc; ac_word=$2
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if ${ac_cv_prog_CC+:} false; then :
4029  $as_echo_n "(cached) " >&6
4030else
4031  if test -n "$CC"; then
4032  ac_cv_prog_CC="$CC" # Let the user override the test.
4033else
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037  IFS=$as_save_IFS
4038  test -z "$as_dir" && as_dir=.
4039    for ac_exec_ext in '' $ac_executable_extensions; do
4040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043    break 2
4044  fi
4045done
4046  done
4047IFS=$as_save_IFS
4048
4049fi
4050fi
4051CC=$ac_cv_prog_CC
4052if test -n "$CC"; then
4053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4054$as_echo "$CC" >&6; }
4055else
4056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
4058fi
4059
4060
4061fi
4062if test -z "$ac_cv_prog_CC"; then
4063  ac_ct_CC=$CC
4064  # Extract the first word of "gcc", so it can be a program name with args.
4065set dummy gcc; ac_word=$2
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067$as_echo_n "checking for $ac_word... " >&6; }
4068if ${ac_cv_prog_ac_ct_CC+:} false; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  if test -n "$ac_ct_CC"; then
4072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4073else
4074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH
4076do
4077  IFS=$as_save_IFS
4078  test -z "$as_dir" && as_dir=.
4079    for ac_exec_ext in '' $ac_executable_extensions; do
4080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081    ac_cv_prog_ac_ct_CC="gcc"
4082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083    break 2
4084  fi
4085done
4086  done
4087IFS=$as_save_IFS
4088
4089fi
4090fi
4091ac_ct_CC=$ac_cv_prog_ac_ct_CC
4092if test -n "$ac_ct_CC"; then
4093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4094$as_echo "$ac_ct_CC" >&6; }
4095else
4096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097$as_echo "no" >&6; }
4098fi
4099
4100  if test "x$ac_ct_CC" = x; then
4101    CC=""
4102  else
4103    case $cross_compiling:$ac_tool_warned in
4104yes:)
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4107ac_tool_warned=yes ;;
4108esac
4109    CC=$ac_ct_CC
4110  fi
4111else
4112  CC="$ac_cv_prog_CC"
4113fi
4114
4115if test -z "$CC"; then
4116          if test -n "$ac_tool_prefix"; then
4117    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4118set dummy ${ac_tool_prefix}cc; ac_word=$2
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120$as_echo_n "checking for $ac_word... " >&6; }
4121if ${ac_cv_prog_CC+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124  if test -n "$CC"; then
4125  ac_cv_prog_CC="$CC" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132    for ac_exec_ext in '' $ac_executable_extensions; do
4133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134    ac_cv_prog_CC="${ac_tool_prefix}cc"
4135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136    break 2
4137  fi
4138done
4139  done
4140IFS=$as_save_IFS
4141
4142fi
4143fi
4144CC=$ac_cv_prog_CC
4145if test -n "$CC"; then
4146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4147$as_echo "$CC" >&6; }
4148else
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150$as_echo "no" >&6; }
4151fi
4152
4153
4154  fi
4155fi
4156if test -z "$CC"; then
4157  # Extract the first word of "cc", so it can be a program name with args.
4158set dummy cc; ac_word=$2
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160$as_echo_n "checking for $ac_word... " >&6; }
4161if ${ac_cv_prog_CC+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if test -n "$CC"; then
4165  ac_cv_prog_CC="$CC" # Let the user override the test.
4166else
4167  ac_prog_rejected=no
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171  IFS=$as_save_IFS
4172  test -z "$as_dir" && as_dir=.
4173    for ac_exec_ext in '' $ac_executable_extensions; do
4174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4176       ac_prog_rejected=yes
4177       continue
4178     fi
4179    ac_cv_prog_CC="cc"
4180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184  done
4185IFS=$as_save_IFS
4186
4187if test $ac_prog_rejected = yes; then
4188  # We found a bogon in the path, so make sure we never use it.
4189  set dummy $ac_cv_prog_CC
4190  shift
4191  if test $# != 0; then
4192    # We chose a different compiler from the bogus one.
4193    # However, it has the same basename, so the bogon will be chosen
4194    # first if we set CC to just the basename; use the full file name.
4195    shift
4196    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4197  fi
4198fi
4199fi
4200fi
4201CC=$ac_cv_prog_CC
4202if test -n "$CC"; then
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4204$as_echo "$CC" >&6; }
4205else
4206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207$as_echo "no" >&6; }
4208fi
4209
4210
4211fi
4212if test -z "$CC"; then
4213  if test -n "$ac_tool_prefix"; then
4214  for ac_prog in cl.exe
4215  do
4216    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219$as_echo_n "checking for $ac_word... " >&6; }
4220if ${ac_cv_prog_CC+:} false; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  if test -n "$CC"; then
4224  ac_cv_prog_CC="$CC" # Let the user override the test.
4225else
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229  IFS=$as_save_IFS
4230  test -z "$as_dir" && as_dir=.
4231    for ac_exec_ext in '' $ac_executable_extensions; do
4232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235    break 2
4236  fi
4237done
4238  done
4239IFS=$as_save_IFS
4240
4241fi
4242fi
4243CC=$ac_cv_prog_CC
4244if test -n "$CC"; then
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246$as_echo "$CC" >&6; }
4247else
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249$as_echo "no" >&6; }
4250fi
4251
4252
4253    test -n "$CC" && break
4254  done
4255fi
4256if test -z "$CC"; then
4257  ac_ct_CC=$CC
4258  for ac_prog in cl.exe
4259do
4260  # Extract the first word of "$ac_prog", so it can be a program name with args.
4261set dummy $ac_prog; ac_word=$2
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263$as_echo_n "checking for $ac_word... " >&6; }
4264if ${ac_cv_prog_ac_ct_CC+:} false; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  if test -n "$ac_ct_CC"; then
4268  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275    for ac_exec_ext in '' $ac_executable_extensions; do
4276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277    ac_cv_prog_ac_ct_CC="$ac_prog"
4278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279    break 2
4280  fi
4281done
4282  done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287ac_ct_CC=$ac_cv_prog_ac_ct_CC
4288if test -n "$ac_ct_CC"; then
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4290$as_echo "$ac_ct_CC" >&6; }
4291else
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293$as_echo "no" >&6; }
4294fi
4295
4296
4297  test -n "$ac_ct_CC" && break
4298done
4299
4300  if test "x$ac_ct_CC" = x; then
4301    CC=""
4302  else
4303    case $cross_compiling:$ac_tool_warned in
4304yes:)
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307ac_tool_warned=yes ;;
4308esac
4309    CC=$ac_ct_CC
4310  fi
4311fi
4312
4313fi
4314
4315
4316test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318as_fn_error $? "no acceptable C compiler found in \$PATH
4319See \`config.log' for more details" "$LINENO" 5; }
4320
4321# Provide some information about the compiler.
4322$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4323set X $ac_compile
4324ac_compiler=$2
4325for ac_option in --version -v -V -qversion; do
4326  { { ac_try="$ac_compiler $ac_option >&5"
4327case "(($ac_try" in
4328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329  *) ac_try_echo=$ac_try;;
4330esac
4331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332$as_echo "$ac_try_echo"; } >&5
4333  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4334  ac_status=$?
4335  if test -s conftest.err; then
4336    sed '10a\
4337... rest of stderr output deleted ...
4338         10q' conftest.err >conftest.er1
4339    cat conftest.er1 >&5
4340  fi
4341  rm -f conftest.er1 conftest.err
4342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343  test $ac_status = 0; }
4344done
4345
4346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h.  */
4348
4349int
4350main ()
4351{
4352
4353  ;
4354  return 0;
4355}
4356_ACEOF
4357ac_clean_files_save=$ac_clean_files
4358ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4359# Try to create an executable without -o first, disregard a.out.
4360# It will help us diagnose broken compilers, and finding out an intuition
4361# of exeext.
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4363$as_echo_n "checking whether the C compiler works... " >&6; }
4364ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4365
4366# The possible output files:
4367ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4368
4369ac_rmfiles=
4370for ac_file in $ac_files
4371do
4372  case $ac_file in
4373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4374    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4375  esac
4376done
4377rm -f $ac_rmfiles
4378
4379if { { ac_try="$ac_link_default"
4380case "(($ac_try" in
4381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382  *) ac_try_echo=$ac_try;;
4383esac
4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385$as_echo "$ac_try_echo"; } >&5
4386  (eval "$ac_link_default") 2>&5
4387  ac_status=$?
4388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389  test $ac_status = 0; }; then :
4390  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4391# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4392# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4393# so that the user can short-circuit this test for compilers unknown to
4394# Autoconf.
4395for ac_file in $ac_files ''
4396do
4397  test -f "$ac_file" || continue
4398  case $ac_file in
4399    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4400	;;
4401    [ab].out )
4402	# We found the default executable, but exeext='' is most
4403	# certainly right.
4404	break;;
4405    *.* )
4406	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4407	then :; else
4408	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4409	fi
4410	# We set ac_cv_exeext here because the later test for it is not
4411	# safe: cross compilers may not add the suffix if given an `-o'
4412	# argument, so we may need to know it at that point already.
4413	# Even if this section looks crufty: it has the advantage of
4414	# actually working.
4415	break;;
4416    * )
4417	break;;
4418  esac
4419done
4420test "$ac_cv_exeext" = no && ac_cv_exeext=
4421
4422else
4423  ac_file=''
4424fi
4425if test -z "$ac_file"; then :
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427$as_echo "no" >&6; }
4428$as_echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433as_fn_error 77 "C compiler cannot create executables
4434See \`config.log' for more details" "$LINENO" 5; }
4435else
4436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4437$as_echo "yes" >&6; }
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4440$as_echo_n "checking for C compiler default output file name... " >&6; }
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4442$as_echo "$ac_file" >&6; }
4443ac_exeext=$ac_cv_exeext
4444
4445rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4446ac_clean_files=$ac_clean_files_save
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4448$as_echo_n "checking for suffix of executables... " >&6; }
4449if { { ac_try="$ac_link"
4450case "(($ac_try" in
4451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452  *) ac_try_echo=$ac_try;;
4453esac
4454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
4456  (eval "$ac_link") 2>&5
4457  ac_status=$?
4458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459  test $ac_status = 0; }; then :
4460  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4461# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4462# work properly (i.e., refer to `conftest.exe'), while it won't with
4463# `rm'.
4464for ac_file in conftest.exe conftest conftest.*; do
4465  test -f "$ac_file" || continue
4466  case $ac_file in
4467    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4468    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4469	  break;;
4470    * ) break;;
4471  esac
4472done
4473else
4474  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4477See \`config.log' for more details" "$LINENO" 5; }
4478fi
4479rm -f conftest conftest$ac_cv_exeext
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4481$as_echo "$ac_cv_exeext" >&6; }
4482
4483rm -f conftest.$ac_ext
4484EXEEXT=$ac_cv_exeext
4485ac_exeext=$EXEEXT
4486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488#include <stdio.h>
4489int
4490main ()
4491{
4492FILE *f = fopen ("conftest.out", "w");
4493 return ferror (f) || fclose (f) != 0;
4494
4495  ;
4496  return 0;
4497}
4498_ACEOF
4499ac_clean_files="$ac_clean_files conftest.out"
4500# Check that the compiler produces executables we can run.  If not, either
4501# the compiler is broken, or we cross compile.
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4503$as_echo_n "checking whether we are cross compiling... " >&6; }
4504if test "$cross_compiling" != yes; then
4505  { { ac_try="$ac_link"
4506case "(($ac_try" in
4507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508  *) ac_try_echo=$ac_try;;
4509esac
4510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511$as_echo "$ac_try_echo"; } >&5
4512  (eval "$ac_link") 2>&5
4513  ac_status=$?
4514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515  test $ac_status = 0; }
4516  if { ac_try='./conftest$ac_cv_exeext'
4517  { { case "(($ac_try" in
4518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519  *) ac_try_echo=$ac_try;;
4520esac
4521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522$as_echo "$ac_try_echo"; } >&5
4523  (eval "$ac_try") 2>&5
4524  ac_status=$?
4525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526  test $ac_status = 0; }; }; then
4527    cross_compiling=no
4528  else
4529    if test "$cross_compiling" = maybe; then
4530	cross_compiling=yes
4531    else
4532	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534as_fn_error $? "cannot run C compiled programs.
4535If you meant to cross compile, use \`--host'.
4536See \`config.log' for more details" "$LINENO" 5; }
4537    fi
4538  fi
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4541$as_echo "$cross_compiling" >&6; }
4542
4543rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4544ac_clean_files=$ac_clean_files_save
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4546$as_echo_n "checking for suffix of object files... " >&6; }
4547if ${ac_cv_objext+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552
4553int
4554main ()
4555{
4556
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561rm -f conftest.o conftest.obj
4562if { { ac_try="$ac_compile"
4563case "(($ac_try" in
4564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565  *) ac_try_echo=$ac_try;;
4566esac
4567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568$as_echo "$ac_try_echo"; } >&5
4569  (eval "$ac_compile") 2>&5
4570  ac_status=$?
4571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572  test $ac_status = 0; }; then :
4573  for ac_file in conftest.o conftest.obj conftest.*; do
4574  test -f "$ac_file" || continue;
4575  case $ac_file in
4576    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4577    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4578       break;;
4579  esac
4580done
4581else
4582  $as_echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587as_fn_error $? "cannot compute suffix of object files: cannot compile
4588See \`config.log' for more details" "$LINENO" 5; }
4589fi
4590rm -f conftest.$ac_cv_objext conftest.$ac_ext
4591fi
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4593$as_echo "$ac_cv_objext" >&6; }
4594OBJEXT=$ac_cv_objext
4595ac_objext=$OBJEXT
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4597$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4598if ${ac_cv_c_compiler_gnu+:} false; then :
4599  $as_echo_n "(cached) " >&6
4600else
4601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603
4604int
4605main ()
4606{
4607#ifndef __GNUC__
4608       choke me
4609#endif
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616  ac_compiler_gnu=yes
4617else
4618  ac_compiler_gnu=no
4619fi
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621ac_cv_c_compiler_gnu=$ac_compiler_gnu
4622
4623fi
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4625$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4626if test $ac_compiler_gnu = yes; then
4627  GCC=yes
4628else
4629  GCC=
4630fi
4631ac_test_CFLAGS=${CFLAGS+set}
4632ac_save_CFLAGS=$CFLAGS
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4634$as_echo_n "checking whether $CC accepts -g... " >&6; }
4635if ${ac_cv_prog_cc_g+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  ac_save_c_werror_flag=$ac_c_werror_flag
4639   ac_c_werror_flag=yes
4640   ac_cv_prog_cc_g=no
4641   CFLAGS="-g"
4642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h.  */
4644
4645int
4646main ()
4647{
4648
4649  ;
4650  return 0;
4651}
4652_ACEOF
4653if ac_fn_c_try_compile "$LINENO"; then :
4654  ac_cv_prog_cc_g=yes
4655else
4656  CFLAGS=""
4657      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658/* end confdefs.h.  */
4659
4660int
4661main ()
4662{
4663
4664  ;
4665  return 0;
4666}
4667_ACEOF
4668if ac_fn_c_try_compile "$LINENO"; then :
4669
4670else
4671  ac_c_werror_flag=$ac_save_c_werror_flag
4672	 CFLAGS="-g"
4673	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h.  */
4675
4676int
4677main ()
4678{
4679
4680  ;
4681  return 0;
4682}
4683_ACEOF
4684if ac_fn_c_try_compile "$LINENO"; then :
4685  ac_cv_prog_cc_g=yes
4686fi
4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692   ac_c_werror_flag=$ac_save_c_werror_flag
4693fi
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4695$as_echo "$ac_cv_prog_cc_g" >&6; }
4696if test "$ac_test_CFLAGS" = set; then
4697  CFLAGS=$ac_save_CFLAGS
4698elif test $ac_cv_prog_cc_g = yes; then
4699  if test "$GCC" = yes; then
4700    CFLAGS="-g -O2"
4701  else
4702    CFLAGS="-g"
4703  fi
4704else
4705  if test "$GCC" = yes; then
4706    CFLAGS="-O2"
4707  else
4708    CFLAGS=
4709  fi
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4712$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4713if ${ac_cv_prog_cc_c89+:} false; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  ac_cv_prog_cc_c89=no
4717ac_save_CC=$CC
4718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h.  */
4720#include <stdarg.h>
4721#include <stdio.h>
4722struct stat;
4723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4724struct buf { int x; };
4725FILE * (*rcsopen) (struct buf *, struct stat *, int);
4726static char *e (p, i)
4727     char **p;
4728     int i;
4729{
4730  return p[i];
4731}
4732static char *f (char * (*g) (char **, int), char **p, ...)
4733{
4734  char *s;
4735  va_list v;
4736  va_start (v,p);
4737  s = g (p, va_arg (v,int));
4738  va_end (v);
4739  return s;
4740}
4741
4742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4743   function prototypes and stuff, but not '\xHH' hex character constants.
4744   These don't provoke an error unfortunately, instead are silently treated
4745   as 'x'.  The following induces an error, until -std is added to get
4746   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4747   array size at least.  It's necessary to write '\x00'==0 to get something
4748   that's true only with -std.  */
4749int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4750
4751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4752   inside strings and character constants.  */
4753#define FOO(x) 'x'
4754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4755
4756int test (int i, double x);
4757struct s1 {int (*f) (int a);};
4758struct s2 {int (*f) (double a);};
4759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4760int argc;
4761char **argv;
4762int
4763main ()
4764{
4765return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4771	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4772do
4773  CC="$ac_save_CC $ac_arg"
4774  if ac_fn_c_try_compile "$LINENO"; then :
4775  ac_cv_prog_cc_c89=$ac_arg
4776fi
4777rm -f core conftest.err conftest.$ac_objext
4778  test "x$ac_cv_prog_cc_c89" != "xno" && break
4779done
4780rm -f conftest.$ac_ext
4781CC=$ac_save_CC
4782
4783fi
4784# AC_CACHE_VAL
4785case "x$ac_cv_prog_cc_c89" in
4786  x)
4787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788$as_echo "none needed" >&6; } ;;
4789  xno)
4790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4791$as_echo "unsupported" >&6; } ;;
4792  *)
4793    CC="$CC $ac_cv_prog_cc_c89"
4794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4796esac
4797if test "x$ac_cv_prog_cc_c89" != xno; then :
4798
4799fi
4800
4801ac_ext=c
4802ac_cpp='$CPP $CPPFLAGS'
4803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807ac_ext=c
4808ac_cpp='$CPP $CPPFLAGS'
4809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4813$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4814if ${am_cv_prog_cc_c_o+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main ()
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828  # Make sure it works both with $CC and with simple cc.
4829  # Following AC_PROG_CC_C_O, we do the test twice because some
4830  # compilers refuse to overwrite an existing .o file with -o,
4831  # though they will create one.
4832  am_cv_prog_cc_c_o=yes
4833  for am_i in 1 2; do
4834    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4835   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } \
4839         && test -f conftest2.$ac_objext; then
4840      : OK
4841    else
4842      am_cv_prog_cc_c_o=no
4843      break
4844    fi
4845  done
4846  rm -f core conftest*
4847  unset am_i
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4850$as_echo "$am_cv_prog_cc_c_o" >&6; }
4851if test "$am_cv_prog_cc_c_o" != yes; then
4852   # Losing compiler, so override with the script.
4853   # FIXME: It is wrong to rewrite CC.
4854   # But if we don't then we get into trouble of one sort or another.
4855   # A longer-term fix would be to have automake use am__CC in this case,
4856   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4857   CC="$am_aux_dir/compile $CC"
4858fi
4859ac_ext=c
4860ac_cpp='$CPP $CPPFLAGS'
4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864
4865
4866depcc="$CC"   am_compiler_list=
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4869$as_echo_n "checking dependency style of $depcc... " >&6; }
4870if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4874  # We make a subdir and do the tests there.  Otherwise we can end up
4875  # making bogus files that we don't know about and never remove.  For
4876  # instance it was reported that on HP-UX the gcc test will end up
4877  # making a dummy file named 'D' -- because '-MD' means "put the output
4878  # in D".
4879  rm -rf conftest.dir
4880  mkdir conftest.dir
4881  # Copy depcomp to subdir because otherwise we won't find it if we're
4882  # using a relative directory.
4883  cp "$am_depcomp" conftest.dir
4884  cd conftest.dir
4885  # We will build objects and dependencies in a subdirectory because
4886  # it helps to detect inapplicable dependency modes.  For instance
4887  # both Tru64's cc and ICC support -MD to output dependencies as a
4888  # side effect of compilation, but ICC will put the dependencies in
4889  # the current directory while Tru64 will put them in the object
4890  # directory.
4891  mkdir sub
4892
4893  am_cv_CC_dependencies_compiler_type=none
4894  if test "$am_compiler_list" = ""; then
4895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4896  fi
4897  am__universal=false
4898  case " $depcc " in #(
4899     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4900     esac
4901
4902  for depmode in $am_compiler_list; do
4903    # Setup a source with many dependencies, because some compilers
4904    # like to wrap large dependency lists on column 80 (with \), and
4905    # we should not choose a depcomp mode which is confused by this.
4906    #
4907    # We need to recreate these files for each test, as the compiler may
4908    # overwrite some of them when testing with obscure command lines.
4909    # This happens at least with the AIX C compiler.
4910    : > sub/conftest.c
4911    for i in 1 2 3 4 5 6; do
4912      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4913      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4914      # Solaris 10 /bin/sh.
4915      echo '/* dummy */' > sub/conftst$i.h
4916    done
4917    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4918
4919    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4920    # mode.  It turns out that the SunPro C++ compiler does not properly
4921    # handle '-M -o', and we need to detect this.  Also, some Intel
4922    # versions had trouble with output in subdirs.
4923    am__obj=sub/conftest.${OBJEXT-o}
4924    am__minus_obj="-o $am__obj"
4925    case $depmode in
4926    gcc)
4927      # This depmode causes a compiler race in universal mode.
4928      test "$am__universal" = false || continue
4929      ;;
4930    nosideeffect)
4931      # After this tag, mechanisms are not by side-effect, so they'll
4932      # only be used when explicitly requested.
4933      if test "x$enable_dependency_tracking" = xyes; then
4934	continue
4935      else
4936	break
4937      fi
4938      ;;
4939    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4940      # This compiler won't grok '-c -o', but also, the minuso test has
4941      # not run yet.  These depmodes are late enough in the game, and
4942      # so weak that their functioning should not be impacted.
4943      am__obj=conftest.${OBJEXT-o}
4944      am__minus_obj=
4945      ;;
4946    none) break ;;
4947    esac
4948    if depmode=$depmode \
4949       source=sub/conftest.c object=$am__obj \
4950       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4951       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4952         >/dev/null 2>conftest.err &&
4953       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4954       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4955       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4956       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4957      # icc doesn't choke on unknown options, it will just issue warnings
4958      # or remarks (even with -Werror).  So we grep stderr for any message
4959      # that says an option was ignored or not supported.
4960      # When given -MP, icc 7.0 and 7.1 complain thusly:
4961      #   icc: Command line warning: ignoring option '-M'; no argument required
4962      # The diagnosis changed in icc 8.0:
4963      #   icc: Command line remark: option '-MP' not supported
4964      if (grep 'ignoring option' conftest.err ||
4965          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4966        am_cv_CC_dependencies_compiler_type=$depmode
4967        break
4968      fi
4969    fi
4970  done
4971
4972  cd ..
4973  rm -rf conftest.dir
4974else
4975  am_cv_CC_dependencies_compiler_type=none
4976fi
4977
4978fi
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4980$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4981CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4982
4983 if
4984  test "x$enable_dependency_tracking" != xno \
4985  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4986  am__fastdepCC_TRUE=
4987  am__fastdepCC_FALSE='#'
4988else
4989  am__fastdepCC_TRUE='#'
4990  am__fastdepCC_FALSE=
4991fi
4992
4993
4994
4995ac_ext=c
4996ac_cpp='$CPP $CPPFLAGS'
4997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5001$as_echo_n "checking how to run the C preprocessor... " >&6; }
5002# On Suns, sometimes $CPP names a directory.
5003if test -n "$CPP" && test -d "$CPP"; then
5004  CPP=
5005fi
5006if test -z "$CPP"; then
5007  if ${ac_cv_prog_CPP+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010      # Double quotes because CPP needs to be expanded
5011    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5012    do
5013      ac_preproc_ok=false
5014for ac_c_preproc_warn_flag in '' yes
5015do
5016  # Use a header file that comes with gcc, so configuring glibc
5017  # with a fresh cross-compiler works.
5018  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019  # <limits.h> exists even on freestanding compilers.
5020  # On the NeXT, cc -E runs the code through the compiler's parser,
5021  # not just through cpp. "Syntax error" is here to catch this case.
5022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h.  */
5024#ifdef __STDC__
5025# include <limits.h>
5026#else
5027# include <assert.h>
5028#endif
5029		     Syntax error
5030_ACEOF
5031if ac_fn_c_try_cpp "$LINENO"; then :
5032
5033else
5034  # Broken: fails on valid input.
5035continue
5036fi
5037rm -f conftest.err conftest.i conftest.$ac_ext
5038
5039  # OK, works on sane cases.  Now check whether nonexistent headers
5040  # can be detected and how.
5041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h.  */
5043#include <ac_nonexistent.h>
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046  # Broken: success on invalid input.
5047continue
5048else
5049  # Passes both tests.
5050ac_preproc_ok=:
5051break
5052fi
5053rm -f conftest.err conftest.i conftest.$ac_ext
5054
5055done
5056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057rm -f conftest.i conftest.err conftest.$ac_ext
5058if $ac_preproc_ok; then :
5059  break
5060fi
5061
5062    done
5063    ac_cv_prog_CPP=$CPP
5064
5065fi
5066  CPP=$ac_cv_prog_CPP
5067else
5068  ac_cv_prog_CPP=$CPP
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5071$as_echo "$CPP" >&6; }
5072ac_preproc_ok=false
5073for ac_c_preproc_warn_flag in '' yes
5074do
5075  # Use a header file that comes with gcc, so configuring glibc
5076  # with a fresh cross-compiler works.
5077  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078  # <limits.h> exists even on freestanding compilers.
5079  # On the NeXT, cc -E runs the code through the compiler's parser,
5080  # not just through cpp. "Syntax error" is here to catch this case.
5081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083#ifdef __STDC__
5084# include <limits.h>
5085#else
5086# include <assert.h>
5087#endif
5088		     Syntax error
5089_ACEOF
5090if ac_fn_c_try_cpp "$LINENO"; then :
5091
5092else
5093  # Broken: fails on valid input.
5094continue
5095fi
5096rm -f conftest.err conftest.i conftest.$ac_ext
5097
5098  # OK, works on sane cases.  Now check whether nonexistent headers
5099  # can be detected and how.
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102#include <ac_nonexistent.h>
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105  # Broken: success on invalid input.
5106continue
5107else
5108  # Passes both tests.
5109ac_preproc_ok=:
5110break
5111fi
5112rm -f conftest.err conftest.i conftest.$ac_ext
5113
5114done
5115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116rm -f conftest.i conftest.err conftest.$ac_ext
5117if $ac_preproc_ok; then :
5118
5119else
5120  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5123See \`config.log' for more details" "$LINENO" 5; }
5124fi
5125
5126ac_ext=c
5127ac_cpp='$CPP $CPPFLAGS'
5128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131
5132
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5134$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5135if ${ac_cv_path_GREP+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  if test -z "$GREP"; then
5139  ac_path_GREP_found=false
5140  # Loop through the user's path and test for each of PROGNAME-LIST
5141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146    for ac_prog in grep ggrep; do
5147    for ac_exec_ext in '' $ac_executable_extensions; do
5148      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5149      as_fn_executable_p "$ac_path_GREP" || continue
5150# Check for GNU ac_path_GREP and select it if it is found.
5151  # Check for GNU $ac_path_GREP
5152case `"$ac_path_GREP" --version 2>&1` in
5153*GNU*)
5154  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5155*)
5156  ac_count=0
5157  $as_echo_n 0123456789 >"conftest.in"
5158  while :
5159  do
5160    cat "conftest.in" "conftest.in" >"conftest.tmp"
5161    mv "conftest.tmp" "conftest.in"
5162    cp "conftest.in" "conftest.nl"
5163    $as_echo 'GREP' >> "conftest.nl"
5164    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5165    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5166    as_fn_arith $ac_count + 1 && ac_count=$as_val
5167    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5168      # Best one so far, save it but keep looking for a better one
5169      ac_cv_path_GREP="$ac_path_GREP"
5170      ac_path_GREP_max=$ac_count
5171    fi
5172    # 10*(2^10) chars as input seems more than enough
5173    test $ac_count -gt 10 && break
5174  done
5175  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5176esac
5177
5178      $ac_path_GREP_found && break 3
5179    done
5180  done
5181  done
5182IFS=$as_save_IFS
5183  if test -z "$ac_cv_path_GREP"; then
5184    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5185  fi
5186else
5187  ac_cv_path_GREP=$GREP
5188fi
5189
5190fi
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5192$as_echo "$ac_cv_path_GREP" >&6; }
5193 GREP="$ac_cv_path_GREP"
5194
5195
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5197$as_echo_n "checking for egrep... " >&6; }
5198if ${ac_cv_path_EGREP+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5202   then ac_cv_path_EGREP="$GREP -E"
5203   else
5204     if test -z "$EGREP"; then
5205  ac_path_EGREP_found=false
5206  # Loop through the user's path and test for each of PROGNAME-LIST
5207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5209do
5210  IFS=$as_save_IFS
5211  test -z "$as_dir" && as_dir=.
5212    for ac_prog in egrep; do
5213    for ac_exec_ext in '' $ac_executable_extensions; do
5214      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5215      as_fn_executable_p "$ac_path_EGREP" || continue
5216# Check for GNU ac_path_EGREP and select it if it is found.
5217  # Check for GNU $ac_path_EGREP
5218case `"$ac_path_EGREP" --version 2>&1` in
5219*GNU*)
5220  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5221*)
5222  ac_count=0
5223  $as_echo_n 0123456789 >"conftest.in"
5224  while :
5225  do
5226    cat "conftest.in" "conftest.in" >"conftest.tmp"
5227    mv "conftest.tmp" "conftest.in"
5228    cp "conftest.in" "conftest.nl"
5229    $as_echo 'EGREP' >> "conftest.nl"
5230    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5231    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5232    as_fn_arith $ac_count + 1 && ac_count=$as_val
5233    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5234      # Best one so far, save it but keep looking for a better one
5235      ac_cv_path_EGREP="$ac_path_EGREP"
5236      ac_path_EGREP_max=$ac_count
5237    fi
5238    # 10*(2^10) chars as input seems more than enough
5239    test $ac_count -gt 10 && break
5240  done
5241  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5242esac
5243
5244      $ac_path_EGREP_found && break 3
5245    done
5246  done
5247  done
5248IFS=$as_save_IFS
5249  if test -z "$ac_cv_path_EGREP"; then
5250    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5251  fi
5252else
5253  ac_cv_path_EGREP=$EGREP
5254fi
5255
5256   fi
5257fi
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5259$as_echo "$ac_cv_path_EGREP" >&6; }
5260 EGREP="$ac_cv_path_EGREP"
5261
5262
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5264$as_echo_n "checking for ANSI C header files... " >&6; }
5265if ${ac_cv_header_stdc+:} false; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270#include <stdlib.h>
5271#include <stdarg.h>
5272#include <string.h>
5273#include <float.h>
5274
5275int
5276main ()
5277{
5278
5279  ;
5280  return 0;
5281}
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284  ac_cv_header_stdc=yes
5285else
5286  ac_cv_header_stdc=no
5287fi
5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289
5290if test $ac_cv_header_stdc = yes; then
5291  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294#include <string.h>
5295
5296_ACEOF
5297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298  $EGREP "memchr" >/dev/null 2>&1; then :
5299
5300else
5301  ac_cv_header_stdc=no
5302fi
5303rm -f conftest*
5304
5305fi
5306
5307if test $ac_cv_header_stdc = yes; then
5308  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311#include <stdlib.h>
5312
5313_ACEOF
5314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315  $EGREP "free" >/dev/null 2>&1; then :
5316
5317else
5318  ac_cv_header_stdc=no
5319fi
5320rm -f conftest*
5321
5322fi
5323
5324if test $ac_cv_header_stdc = yes; then
5325  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326  if test "$cross_compiling" = yes; then :
5327  :
5328else
5329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331#include <ctype.h>
5332#include <stdlib.h>
5333#if ((' ' & 0x0FF) == 0x020)
5334# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5336#else
5337# define ISLOWER(c) \
5338		   (('a' <= (c) && (c) <= 'i') \
5339		     || ('j' <= (c) && (c) <= 'r') \
5340		     || ('s' <= (c) && (c) <= 'z'))
5341# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5342#endif
5343
5344#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5345int
5346main ()
5347{
5348  int i;
5349  for (i = 0; i < 256; i++)
5350    if (XOR (islower (i), ISLOWER (i))
5351	|| toupper (i) != TOUPPER (i))
5352      return 2;
5353  return 0;
5354}
5355_ACEOF
5356if ac_fn_c_try_run "$LINENO"; then :
5357
5358else
5359  ac_cv_header_stdc=no
5360fi
5361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5362  conftest.$ac_objext conftest.beam conftest.$ac_ext
5363fi
5364
5365fi
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5368$as_echo "$ac_cv_header_stdc" >&6; }
5369if test $ac_cv_header_stdc = yes; then
5370
5371$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5372
5373fi
5374
5375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5377		  inttypes.h stdint.h unistd.h
5378do :
5379  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5380ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5381"
5382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5383  cat >>confdefs.h <<_ACEOF
5384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385_ACEOF
5386
5387fi
5388
5389done
5390
5391
5392
5393
5394
5395  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5396if test "x$ac_cv_header_minix_config_h" = xyes; then :
5397  MINIX=yes
5398else
5399  MINIX=
5400fi
5401
5402
5403  if test "$MINIX" = yes; then
5404
5405$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5406
5407
5408$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5409
5410
5411$as_echo "#define _MINIX 1" >>confdefs.h
5412
5413  fi
5414
5415        case "$host_os" in
5416    hpux*)
5417
5418$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5419
5420      ;;
5421  esac
5422
5423
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5425$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5426if ${ac_cv_safe_to_define___extensions__+:} false; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h.  */
5431
5432#         define __EXTENSIONS__ 1
5433          $ac_includes_default
5434int
5435main ()
5436{
5437
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442if ac_fn_c_try_compile "$LINENO"; then :
5443  ac_cv_safe_to_define___extensions__=yes
5444else
5445  ac_cv_safe_to_define___extensions__=no
5446fi
5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5450$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5451  test $ac_cv_safe_to_define___extensions__ = yes &&
5452    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5453
5454  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5455
5456  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5457
5458  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5459
5460  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5461
5462
5463
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5465$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5466if ${ac_cv_prog_cc_c89+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  ac_cv_prog_cc_c89=no
5470ac_save_CC=$CC
5471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h.  */
5473#include <stdarg.h>
5474#include <stdio.h>
5475struct stat;
5476/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5477struct buf { int x; };
5478FILE * (*rcsopen) (struct buf *, struct stat *, int);
5479static char *e (p, i)
5480     char **p;
5481     int i;
5482{
5483  return p[i];
5484}
5485static char *f (char * (*g) (char **, int), char **p, ...)
5486{
5487  char *s;
5488  va_list v;
5489  va_start (v,p);
5490  s = g (p, va_arg (v,int));
5491  va_end (v);
5492  return s;
5493}
5494
5495/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5496   function prototypes and stuff, but not '\xHH' hex character constants.
5497   These don't provoke an error unfortunately, instead are silently treated
5498   as 'x'.  The following induces an error, until -std is added to get
5499   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5500   array size at least.  It's necessary to write '\x00'==0 to get something
5501   that's true only with -std.  */
5502int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5503
5504/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5505   inside strings and character constants.  */
5506#define FOO(x) 'x'
5507int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5508
5509int test (int i, double x);
5510struct s1 {int (*f) (int a);};
5511struct s2 {int (*f) (double a);};
5512int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5513int argc;
5514char **argv;
5515int
5516main ()
5517{
5518return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5519  ;
5520  return 0;
5521}
5522_ACEOF
5523for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5524	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5525do
5526  CC="$ac_save_CC $ac_arg"
5527  if ac_fn_c_try_compile "$LINENO"; then :
5528  ac_cv_prog_cc_c89=$ac_arg
5529fi
5530rm -f core conftest.err conftest.$ac_objext
5531  test "x$ac_cv_prog_cc_c89" != "xno" && break
5532done
5533rm -f conftest.$ac_ext
5534CC=$ac_save_CC
5535
5536fi
5537# AC_CACHE_VAL
5538case "x$ac_cv_prog_cc_c89" in
5539  x)
5540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5541$as_echo "none needed" >&6; } ;;
5542  xno)
5543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5544$as_echo "unsupported" >&6; } ;;
5545  *)
5546    CC="$CC $ac_cv_prog_cc_c89"
5547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5548$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5549esac
5550if test "x$ac_cv_prog_cc_c89" != xno; then :
5551
5552fi
5553
5554
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5556$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5557if ${ac_cv_prog_cc_c99+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  ac_cv_prog_cc_c99=no
5561ac_save_CC=$CC
5562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564#include <stdarg.h>
5565#include <stdbool.h>
5566#include <stdlib.h>
5567#include <wchar.h>
5568#include <stdio.h>
5569
5570// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5571#define debug(...) fprintf (stderr, __VA_ARGS__)
5572#define showlist(...) puts (#__VA_ARGS__)
5573#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5574static void
5575test_varargs_macros (void)
5576{
5577  int x = 1234;
5578  int y = 5678;
5579  debug ("Flag");
5580  debug ("X = %d\n", x);
5581  showlist (The first, second, and third items.);
5582  report (x>y, "x is %d but y is %d", x, y);
5583}
5584
5585// Check long long types.
5586#define BIG64 18446744073709551615ull
5587#define BIG32 4294967295ul
5588#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5589#if !BIG_OK
5590  your preprocessor is broken;
5591#endif
5592#if BIG_OK
5593#else
5594  your preprocessor is broken;
5595#endif
5596static long long int bignum = -9223372036854775807LL;
5597static unsigned long long int ubignum = BIG64;
5598
5599struct incomplete_array
5600{
5601  int datasize;
5602  double data[];
5603};
5604
5605struct named_init {
5606  int number;
5607  const wchar_t *name;
5608  double average;
5609};
5610
5611typedef const char *ccp;
5612
5613static inline int
5614test_restrict (ccp restrict text)
5615{
5616  // See if C++-style comments work.
5617  // Iterate through items via the restricted pointer.
5618  // Also check for declarations in for loops.
5619  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5620    continue;
5621  return 0;
5622}
5623
5624// Check varargs and va_copy.
5625static void
5626test_varargs (const char *format, ...)
5627{
5628  va_list args;
5629  va_start (args, format);
5630  va_list args_copy;
5631  va_copy (args_copy, args);
5632
5633  const char *str;
5634  int number;
5635  float fnumber;
5636
5637  while (*format)
5638    {
5639      switch (*format++)
5640	{
5641	case 's': // string
5642	  str = va_arg (args_copy, const char *);
5643	  break;
5644	case 'd': // int
5645	  number = va_arg (args_copy, int);
5646	  break;
5647	case 'f': // float
5648	  fnumber = va_arg (args_copy, double);
5649	  break;
5650	default:
5651	  break;
5652	}
5653    }
5654  va_end (args_copy);
5655  va_end (args);
5656}
5657
5658int
5659main ()
5660{
5661
5662  // Check bool.
5663  _Bool success = false;
5664
5665  // Check restrict.
5666  if (test_restrict ("String literal") == 0)
5667    success = true;
5668  char *restrict newvar = "Another string";
5669
5670  // Check varargs.
5671  test_varargs ("s, d' f .", "string", 65, 34.234);
5672  test_varargs_macros ();
5673
5674  // Check flexible array members.
5675  struct incomplete_array *ia =
5676    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5677  ia->datasize = 10;
5678  for (int i = 0; i < ia->datasize; ++i)
5679    ia->data[i] = i * 1.234;
5680
5681  // Check named initializers.
5682  struct named_init ni = {
5683    .number = 34,
5684    .name = L"Test wide string",
5685    .average = 543.34343,
5686  };
5687
5688  ni.number = 58;
5689
5690  int dynamic_array[ni.number];
5691  dynamic_array[ni.number - 1] = 543;
5692
5693  // work around unused variable warnings
5694  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5695	  || dynamic_array[ni.number - 1] != 543);
5696
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5702do
5703  CC="$ac_save_CC $ac_arg"
5704  if ac_fn_c_try_compile "$LINENO"; then :
5705  ac_cv_prog_cc_c99=$ac_arg
5706fi
5707rm -f core conftest.err conftest.$ac_objext
5708  test "x$ac_cv_prog_cc_c99" != "xno" && break
5709done
5710rm -f conftest.$ac_ext
5711CC=$ac_save_CC
5712
5713fi
5714# AC_CACHE_VAL
5715case "x$ac_cv_prog_cc_c99" in
5716  x)
5717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5718$as_echo "none needed" >&6; } ;;
5719  xno)
5720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5721$as_echo "unsupported" >&6; } ;;
5722  *)
5723    CC="$CC $ac_cv_prog_cc_c99"
5724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5725$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5726esac
5727if test "x$ac_cv_prog_cc_c99" != xno; then :
5728
5729fi
5730
5731
5732
5733
5734
5735
5736ac_ext=c
5737ac_cpp='$CPP $CPPFLAGS'
5738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741if test -n "$ac_tool_prefix"; then
5742  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5743set dummy ${ac_tool_prefix}gcc; ac_word=$2
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745$as_echo_n "checking for $ac_word... " >&6; }
5746if ${ac_cv_prog_CC+:} false; then :
5747  $as_echo_n "(cached) " >&6
5748else
5749  if test -n "$CC"; then
5750  ac_cv_prog_CC="$CC" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755  IFS=$as_save_IFS
5756  test -z "$as_dir" && as_dir=.
5757    for ac_exec_ext in '' $ac_executable_extensions; do
5758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761    break 2
5762  fi
5763done
5764  done
5765IFS=$as_save_IFS
5766
5767fi
5768fi
5769CC=$ac_cv_prog_CC
5770if test -n "$CC"; then
5771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5772$as_echo "$CC" >&6; }
5773else
5774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775$as_echo "no" >&6; }
5776fi
5777
5778
5779fi
5780if test -z "$ac_cv_prog_CC"; then
5781  ac_ct_CC=$CC
5782  # Extract the first word of "gcc", so it can be a program name with args.
5783set dummy gcc; ac_word=$2
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785$as_echo_n "checking for $ac_word... " >&6; }
5786if ${ac_cv_prog_ac_ct_CC+:} false; then :
5787  $as_echo_n "(cached) " >&6
5788else
5789  if test -n "$ac_ct_CC"; then
5790  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795  IFS=$as_save_IFS
5796  test -z "$as_dir" && as_dir=.
5797    for ac_exec_ext in '' $ac_executable_extensions; do
5798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799    ac_cv_prog_ac_ct_CC="gcc"
5800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801    break 2
5802  fi
5803done
5804  done
5805IFS=$as_save_IFS
5806
5807fi
5808fi
5809ac_ct_CC=$ac_cv_prog_ac_ct_CC
5810if test -n "$ac_ct_CC"; then
5811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5812$as_echo "$ac_ct_CC" >&6; }
5813else
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815$as_echo "no" >&6; }
5816fi
5817
5818  if test "x$ac_ct_CC" = x; then
5819    CC=""
5820  else
5821    case $cross_compiling:$ac_tool_warned in
5822yes:)
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5825ac_tool_warned=yes ;;
5826esac
5827    CC=$ac_ct_CC
5828  fi
5829else
5830  CC="$ac_cv_prog_CC"
5831fi
5832
5833if test -z "$CC"; then
5834          if test -n "$ac_tool_prefix"; then
5835    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5836set dummy ${ac_tool_prefix}cc; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
5839if ${ac_cv_prog_CC+:} false; then :
5840  $as_echo_n "(cached) " >&6
5841else
5842  if test -n "$CC"; then
5843  ac_cv_prog_CC="$CC" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_exec_ext in '' $ac_executable_extensions; do
5851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852    ac_cv_prog_CC="${ac_tool_prefix}cc"
5853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854    break 2
5855  fi
5856done
5857  done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862CC=$ac_cv_prog_CC
5863if test -n "$CC"; then
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5865$as_echo "$CC" >&6; }
5866else
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871
5872  fi
5873fi
5874if test -z "$CC"; then
5875  # Extract the first word of "cc", so it can be a program name with args.
5876set dummy cc; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
5879if ${ac_cv_prog_CC+:} false; then :
5880  $as_echo_n "(cached) " >&6
5881else
5882  if test -n "$CC"; then
5883  ac_cv_prog_CC="$CC" # Let the user override the test.
5884else
5885  ac_prog_rejected=no
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889  IFS=$as_save_IFS
5890  test -z "$as_dir" && as_dir=.
5891    for ac_exec_ext in '' $ac_executable_extensions; do
5892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5894       ac_prog_rejected=yes
5895       continue
5896     fi
5897    ac_cv_prog_CC="cc"
5898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902  done
5903IFS=$as_save_IFS
5904
5905if test $ac_prog_rejected = yes; then
5906  # We found a bogon in the path, so make sure we never use it.
5907  set dummy $ac_cv_prog_CC
5908  shift
5909  if test $# != 0; then
5910    # We chose a different compiler from the bogus one.
5911    # However, it has the same basename, so the bogon will be chosen
5912    # first if we set CC to just the basename; use the full file name.
5913    shift
5914    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5915  fi
5916fi
5917fi
5918fi
5919CC=$ac_cv_prog_CC
5920if test -n "$CC"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5922$as_echo "$CC" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926fi
5927
5928
5929fi
5930if test -z "$CC"; then
5931  if test -n "$ac_tool_prefix"; then
5932  for ac_prog in cl.exe
5933  do
5934    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if ${ac_cv_prog_CC+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  if test -n "$CC"; then
5942  ac_cv_prog_CC="$CC" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947  IFS=$as_save_IFS
5948  test -z "$as_dir" && as_dir=.
5949    for ac_exec_ext in '' $ac_executable_extensions; do
5950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953    break 2
5954  fi
5955done
5956  done
5957IFS=$as_save_IFS
5958
5959fi
5960fi
5961CC=$ac_cv_prog_CC
5962if test -n "$CC"; then
5963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5964$as_echo "$CC" >&6; }
5965else
5966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970
5971    test -n "$CC" && break
5972  done
5973fi
5974if test -z "$CC"; then
5975  ac_ct_CC=$CC
5976  for ac_prog in cl.exe
5977do
5978  # Extract the first word of "$ac_prog", so it can be a program name with args.
5979set dummy $ac_prog; ac_word=$2
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981$as_echo_n "checking for $ac_word... " >&6; }
5982if ${ac_cv_prog_ac_ct_CC+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  if test -n "$ac_ct_CC"; then
5986  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993    for ac_exec_ext in '' $ac_executable_extensions; do
5994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995    ac_cv_prog_ac_ct_CC="$ac_prog"
5996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997    break 2
5998  fi
5999done
6000  done
6001IFS=$as_save_IFS
6002
6003fi
6004fi
6005ac_ct_CC=$ac_cv_prog_ac_ct_CC
6006if test -n "$ac_ct_CC"; then
6007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6008$as_echo "$ac_ct_CC" >&6; }
6009else
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }
6012fi
6013
6014
6015  test -n "$ac_ct_CC" && break
6016done
6017
6018  if test "x$ac_ct_CC" = x; then
6019    CC=""
6020  else
6021    case $cross_compiling:$ac_tool_warned in
6022yes:)
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025ac_tool_warned=yes ;;
6026esac
6027    CC=$ac_ct_CC
6028  fi
6029fi
6030
6031fi
6032
6033
6034test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036as_fn_error $? "no acceptable C compiler found in \$PATH
6037See \`config.log' for more details" "$LINENO" 5; }
6038
6039# Provide some information about the compiler.
6040$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6041set X $ac_compile
6042ac_compiler=$2
6043for ac_option in --version -v -V -qversion; do
6044  { { ac_try="$ac_compiler $ac_option >&5"
6045case "(($ac_try" in
6046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047  *) ac_try_echo=$ac_try;;
6048esac
6049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6050$as_echo "$ac_try_echo"; } >&5
6051  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6052  ac_status=$?
6053  if test -s conftest.err; then
6054    sed '10a\
6055... rest of stderr output deleted ...
6056         10q' conftest.err >conftest.er1
6057    cat conftest.er1 >&5
6058  fi
6059  rm -f conftest.er1 conftest.err
6060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061  test $ac_status = 0; }
6062done
6063
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6065$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6066if ${ac_cv_c_compiler_gnu+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071
6072int
6073main ()
6074{
6075#ifndef __GNUC__
6076       choke me
6077#endif
6078
6079  ;
6080  return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"; then :
6084  ac_compiler_gnu=yes
6085else
6086  ac_compiler_gnu=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089ac_cv_c_compiler_gnu=$ac_compiler_gnu
6090
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6093$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6094if test $ac_compiler_gnu = yes; then
6095  GCC=yes
6096else
6097  GCC=
6098fi
6099ac_test_CFLAGS=${CFLAGS+set}
6100ac_save_CFLAGS=$CFLAGS
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6102$as_echo_n "checking whether $CC accepts -g... " >&6; }
6103if ${ac_cv_prog_cc_g+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  ac_save_c_werror_flag=$ac_c_werror_flag
6107   ac_c_werror_flag=yes
6108   ac_cv_prog_cc_g=no
6109   CFLAGS="-g"
6110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111/* end confdefs.h.  */
6112
6113int
6114main ()
6115{
6116
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121if ac_fn_c_try_compile "$LINENO"; then :
6122  ac_cv_prog_cc_g=yes
6123else
6124  CFLAGS=""
6125      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127
6128int
6129main ()
6130{
6131
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"; then :
6137
6138else
6139  ac_c_werror_flag=$ac_save_c_werror_flag
6140	 CFLAGS="-g"
6141	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143
6144int
6145main ()
6146{
6147
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153  ac_cv_prog_cc_g=yes
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160   ac_c_werror_flag=$ac_save_c_werror_flag
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6163$as_echo "$ac_cv_prog_cc_g" >&6; }
6164if test "$ac_test_CFLAGS" = set; then
6165  CFLAGS=$ac_save_CFLAGS
6166elif test $ac_cv_prog_cc_g = yes; then
6167  if test "$GCC" = yes; then
6168    CFLAGS="-g -O2"
6169  else
6170    CFLAGS="-g"
6171  fi
6172else
6173  if test "$GCC" = yes; then
6174    CFLAGS="-O2"
6175  else
6176    CFLAGS=
6177  fi
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6180$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6181if ${ac_cv_prog_cc_c89+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  ac_cv_prog_cc_c89=no
6185ac_save_CC=$CC
6186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188#include <stdarg.h>
6189#include <stdio.h>
6190struct stat;
6191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6192struct buf { int x; };
6193FILE * (*rcsopen) (struct buf *, struct stat *, int);
6194static char *e (p, i)
6195     char **p;
6196     int i;
6197{
6198  return p[i];
6199}
6200static char *f (char * (*g) (char **, int), char **p, ...)
6201{
6202  char *s;
6203  va_list v;
6204  va_start (v,p);
6205  s = g (p, va_arg (v,int));
6206  va_end (v);
6207  return s;
6208}
6209
6210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6211   function prototypes and stuff, but not '\xHH' hex character constants.
6212   These don't provoke an error unfortunately, instead are silently treated
6213   as 'x'.  The following induces an error, until -std is added to get
6214   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6215   array size at least.  It's necessary to write '\x00'==0 to get something
6216   that's true only with -std.  */
6217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6218
6219/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6220   inside strings and character constants.  */
6221#define FOO(x) 'x'
6222int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6223
6224int test (int i, double x);
6225struct s1 {int (*f) (int a);};
6226struct s2 {int (*f) (double a);};
6227int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6228int argc;
6229char **argv;
6230int
6231main ()
6232{
6233return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6234  ;
6235  return 0;
6236}
6237_ACEOF
6238for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6239	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6240do
6241  CC="$ac_save_CC $ac_arg"
6242  if ac_fn_c_try_compile "$LINENO"; then :
6243  ac_cv_prog_cc_c89=$ac_arg
6244fi
6245rm -f core conftest.err conftest.$ac_objext
6246  test "x$ac_cv_prog_cc_c89" != "xno" && break
6247done
6248rm -f conftest.$ac_ext
6249CC=$ac_save_CC
6250
6251fi
6252# AC_CACHE_VAL
6253case "x$ac_cv_prog_cc_c89" in
6254  x)
6255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6256$as_echo "none needed" >&6; } ;;
6257  xno)
6258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6259$as_echo "unsupported" >&6; } ;;
6260  *)
6261    CC="$CC $ac_cv_prog_cc_c89"
6262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6263$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6264esac
6265if test "x$ac_cv_prog_cc_c89" != xno; then :
6266
6267fi
6268
6269ac_ext=c
6270ac_cpp='$CPP $CPPFLAGS'
6271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274
6275ac_ext=c
6276ac_cpp='$CPP $CPPFLAGS'
6277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6281$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6282if ${am_cv_prog_cc_c_o+:} false; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287
6288int
6289main ()
6290{
6291
6292  ;
6293  return 0;
6294}
6295_ACEOF
6296  # Make sure it works both with $CC and with simple cc.
6297  # Following AC_PROG_CC_C_O, we do the test twice because some
6298  # compilers refuse to overwrite an existing .o file with -o,
6299  # though they will create one.
6300  am_cv_prog_cc_c_o=yes
6301  for am_i in 1 2; do
6302    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6303   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } \
6307         && test -f conftest2.$ac_objext; then
6308      : OK
6309    else
6310      am_cv_prog_cc_c_o=no
6311      break
6312    fi
6313  done
6314  rm -f core conftest*
6315  unset am_i
6316fi
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6318$as_echo "$am_cv_prog_cc_c_o" >&6; }
6319if test "$am_cv_prog_cc_c_o" != yes; then
6320   # Losing compiler, so override with the script.
6321   # FIXME: It is wrong to rewrite CC.
6322   # But if we don't then we get into trouble of one sort or another.
6323   # A longer-term fix would be to have automake use am__CC in this case,
6324   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6325   CC="$am_aux_dir/compile $CC"
6326fi
6327ac_ext=c
6328ac_cpp='$CPP $CPPFLAGS'
6329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6331ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332
6333
6334depcc="$CC"   am_compiler_list=
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6337$as_echo_n "checking dependency style of $depcc... " >&6; }
6338if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6342  # We make a subdir and do the tests there.  Otherwise we can end up
6343  # making bogus files that we don't know about and never remove.  For
6344  # instance it was reported that on HP-UX the gcc test will end up
6345  # making a dummy file named 'D' -- because '-MD' means "put the output
6346  # in D".
6347  rm -rf conftest.dir
6348  mkdir conftest.dir
6349  # Copy depcomp to subdir because otherwise we won't find it if we're
6350  # using a relative directory.
6351  cp "$am_depcomp" conftest.dir
6352  cd conftest.dir
6353  # We will build objects and dependencies in a subdirectory because
6354  # it helps to detect inapplicable dependency modes.  For instance
6355  # both Tru64's cc and ICC support -MD to output dependencies as a
6356  # side effect of compilation, but ICC will put the dependencies in
6357  # the current directory while Tru64 will put them in the object
6358  # directory.
6359  mkdir sub
6360
6361  am_cv_CC_dependencies_compiler_type=none
6362  if test "$am_compiler_list" = ""; then
6363     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6364  fi
6365  am__universal=false
6366  case " $depcc " in #(
6367     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6368     esac
6369
6370  for depmode in $am_compiler_list; do
6371    # Setup a source with many dependencies, because some compilers
6372    # like to wrap large dependency lists on column 80 (with \), and
6373    # we should not choose a depcomp mode which is confused by this.
6374    #
6375    # We need to recreate these files for each test, as the compiler may
6376    # overwrite some of them when testing with obscure command lines.
6377    # This happens at least with the AIX C compiler.
6378    : > sub/conftest.c
6379    for i in 1 2 3 4 5 6; do
6380      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6381      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6382      # Solaris 10 /bin/sh.
6383      echo '/* dummy */' > sub/conftst$i.h
6384    done
6385    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6386
6387    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6388    # mode.  It turns out that the SunPro C++ compiler does not properly
6389    # handle '-M -o', and we need to detect this.  Also, some Intel
6390    # versions had trouble with output in subdirs.
6391    am__obj=sub/conftest.${OBJEXT-o}
6392    am__minus_obj="-o $am__obj"
6393    case $depmode in
6394    gcc)
6395      # This depmode causes a compiler race in universal mode.
6396      test "$am__universal" = false || continue
6397      ;;
6398    nosideeffect)
6399      # After this tag, mechanisms are not by side-effect, so they'll
6400      # only be used when explicitly requested.
6401      if test "x$enable_dependency_tracking" = xyes; then
6402	continue
6403      else
6404	break
6405      fi
6406      ;;
6407    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6408      # This compiler won't grok '-c -o', but also, the minuso test has
6409      # not run yet.  These depmodes are late enough in the game, and
6410      # so weak that their functioning should not be impacted.
6411      am__obj=conftest.${OBJEXT-o}
6412      am__minus_obj=
6413      ;;
6414    none) break ;;
6415    esac
6416    if depmode=$depmode \
6417       source=sub/conftest.c object=$am__obj \
6418       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6419       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6420         >/dev/null 2>conftest.err &&
6421       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6422       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6423       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6424       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6425      # icc doesn't choke on unknown options, it will just issue warnings
6426      # or remarks (even with -Werror).  So we grep stderr for any message
6427      # that says an option was ignored or not supported.
6428      # When given -MP, icc 7.0 and 7.1 complain thusly:
6429      #   icc: Command line warning: ignoring option '-M'; no argument required
6430      # The diagnosis changed in icc 8.0:
6431      #   icc: Command line remark: option '-MP' not supported
6432      if (grep 'ignoring option' conftest.err ||
6433          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6434        am_cv_CC_dependencies_compiler_type=$depmode
6435        break
6436      fi
6437    fi
6438  done
6439
6440  cd ..
6441  rm -rf conftest.dir
6442else
6443  am_cv_CC_dependencies_compiler_type=none
6444fi
6445
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6448$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6449CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6450
6451 if
6452  test "x$enable_dependency_tracking" != xno \
6453  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6454  am__fastdepCC_TRUE=
6455  am__fastdepCC_FALSE='#'
6456else
6457  am__fastdepCC_TRUE='#'
6458  am__fastdepCC_FALSE=
6459fi
6460
6461
6462# Ralf Wildenhues: With per-target flags we need CC_C_O
6463# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6464
6465if test $ac_cv_c_compiler_gnu = yes; then
6466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6467$as_echo_n "checking whether $CC needs -traditional... " >&6; }
6468if ${ac_cv_prog_gcc_traditional+:} false; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471    ac_pattern="Autoconf.*'x'"
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474#include <sgtty.h>
6475Autoconf TIOCGETP
6476_ACEOF
6477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6478  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6479  ac_cv_prog_gcc_traditional=yes
6480else
6481  ac_cv_prog_gcc_traditional=no
6482fi
6483rm -f conftest*
6484
6485
6486  if test $ac_cv_prog_gcc_traditional = no; then
6487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h.  */
6489#include <termio.h>
6490Autoconf TCGETA
6491_ACEOF
6492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6494  ac_cv_prog_gcc_traditional=yes
6495fi
6496rm -f conftest*
6497
6498  fi
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6501$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6502  if test $ac_cv_prog_gcc_traditional = yes; then
6503    CC="$CC -traditional"
6504  fi
6505fi
6506
6507
6508
6509
6510
6511CFLAGS_NTP=
6512CPPFLAGS_NTP=
6513LDADD_NTP=
6514LDFLAGS_NTP=
6515
6516
6517
6518
6519
6520case "$ac_cv_prog_cc_c89" in
6521 no)
6522    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6523		 version 4.2.5 and higher." >&5
6524$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6525		 version 4.2.5 and higher." >&2;}
6526    ;;
6527esac
6528
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6530$as_echo_n "checking if $CC can handle #warning... " >&6; }
6531if ${ntp_cv_cpp_warning+:} false; then :
6532  $as_echo_n "(cached) " >&6
6533else
6534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h.  */
6536
6537int
6538main ()
6539{
6540#warning foo
6541  ;
6542  return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_compile "$LINENO"; then :
6546  ntp_cv_cpp_warning=yes
6547else
6548  ntp_cv_cpp_warning=no
6549
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552
6553fi
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6555$as_echo "$ntp_cv_cpp_warning" >&6; }
6556case "$ntp_cv_cpp_warning" in
6557 no)
6558
6559$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6560
6561esac
6562
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6564$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6565if ${ntp_cv_cc_attribute+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h.  */
6570
6571int
6572main ()
6573{
6574void foo(void) __attribute__((__noreturn__));
6575
6576  ;
6577  return 0;
6578}
6579_ACEOF
6580if ac_fn_c_try_compile "$LINENO"; then :
6581  ntp_cv_cc_attribute=yes
6582else
6583  ntp_cv_cc_attribute=no
6584
6585fi
6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6590$as_echo "$ntp_cv_cc_attribute" >&6; }
6591case "$ntp_cv_cc_attribute" in
6592 yes)
6593
6594$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6595
6596esac
6597
6598
6599case "$GCC" in
6600 yes)
6601    SAVED_CFLAGS="$CFLAGS"
6602    CFLAGS="$CFLAGS -Wstrict-overflow"
6603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6604$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6605if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  ntp_cv_gcc_Wstrict_overflow=yes
6621else
6622  ntp_cv_gcc_Wstrict_overflow=no
6623
6624fi
6625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6629$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6630    #
6631    # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6632    # flag to CFLAGS.
6633    #
6634    CFLAGS="$SAVED_CFLAGS -Winit-self"
6635    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6636$as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6637if ${ntp_cv_gcc_Winit_self+:} false; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640
6641	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642/* end confdefs.h.  */
6643
6644int
6645main ()
6646{
6647
6648  ;
6649  return 0;
6650}
6651_ACEOF
6652if ac_fn_c_try_compile "$LINENO"; then :
6653  ntp_cv_gcc_Winit_self=yes
6654else
6655  ntp_cv_gcc_Winit_self=no
6656
6657fi
6658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659
6660
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6663$as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6664    CFLAGS="$SAVED_CFLAGS"
6665    { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6666    #
6667    # $ntp_cv_gcc_Winit_self is tested later to add the
6668    # flag to CFLAGS_NTP.
6669    #
6670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6671$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6672if ${ntp_cv_gc_sections_runs+:} false; then :
6673  $as_echo_n "(cached) " >&6
6674else
6675
6676	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
6677	    CFLAGS="$CFLAGS -Wl,--gc-sections"
6678	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680
6681			#include <stdlib.h>
6682			#include <stdio.h>
6683
6684int
6685main ()
6686{
6687
6688			FILE *	fpC;
6689			char	buf[32];
6690			size_t	cch;
6691			int	read_success_once;
6692
6693			fpC = fopen("conftest.c", "r");
6694			if (NULL == fpC)
6695				exit(1);
6696			do {
6697				cch = fread(buf, sizeof(buf), 1, fpC);
6698				read_success_once |= (0 != cch);
6699			} while (0 != cch);
6700			if (!read_success_once)
6701				exit(2);
6702			if (!feof(fpC))
6703				exit(3);
6704			if (0 != fclose(fpC))
6705				exit(4);
6706
6707			exit(EXIT_SUCCESS);
6708
6709
6710  ;
6711  return 0;
6712}
6713_ACEOF
6714if ac_fn_c_try_link "$LINENO"; then :
6715
6716		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6717			ntp_cv_gc_sections_runs=no
6718		    else
6719			ntp_cv_gc_sections_runs=no
6720			./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6721		    fi
6722
6723else
6724  ntp_cv_gc_sections_runs=no
6725
6726fi
6727rm -f core conftest.err conftest.$ac_objext \
6728    conftest$ac_exeext conftest.$ac_ext
6729	    CFLAGS="$origCFLAGS"
6730	    { origCFLAGS=; unset origCFLAGS;}
6731
6732
6733fi
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6735$as_echo "$ntp_cv_gc_sections_runs" >&6; }
6736    case "$ntp_cv_gc_sections_runs" in
6737     yes)
6738	LDADD_LIBNTP="-Wl,--gc-sections"
6739	CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6740	;;
6741     no)
6742	LDADD_LIBNTP=
6743	;;
6744    esac
6745    CFLAGS_NTP="$CFLAGS_NTP -Wall"
6746    CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6747    CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6748    # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6749    # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6750    # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6751    # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6752    CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6753    CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6754    CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6755    # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6756    # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6757    case "$ntp_cv_gcc_Winit_self" in
6758     yes)
6759	CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6760    esac
6761    case "$ntp_cv_gcc_Wstrict_overflow" in
6762     yes)
6763	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6764    esac
6765    # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6766esac
6767
6768
6769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6770$as_echo_n "checking additional compiler flags... " >&6; }
6771    # allow ntp_os_flags to be preset to skip this stuff
6772    case "${ntp_os_cflags+set}" in
6773     set)
6774	;;
6775     *)
6776	ntp_os_cflags=
6777	case "$host_os" in
6778	 aix[1-3]*)
6779	    ;;
6780	 aix4.[0-2]*)
6781	    # turn on additional headers
6782	    ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6783	    ;;
6784	 aix5.3*)
6785	    # avoid circular dependencies in yp headers, and more
6786	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6787	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6788	    ;;
6789	 aix*)
6790	    # XXX Only verified thru AIX6.
6791	    # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6792	    # avoid circular dependencies in yp headers
6793	    # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6794	    # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6795	    # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6796	    ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6797	    ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6798	    ;;
6799	 amigaos)
6800	    ntp_os_cflags="-DSYS_AMIGA"
6801	    ;;
6802	 darwin*|macosx*|rhapsody*)
6803	    ntp_os_cflags="-D_P1003_1B_VISIBLE"
6804	    ;;
6805	 hpux10.*)		# at least for hppa2.0-hp-hpux10.20
6806	    case "$GCC" in
6807	     yes)
6808		;;
6809	     *)
6810		# use Ansi compiler on HPUX, and some -Wp magic
6811		ntp_os_cflags="-Ae -Wp,-H18816"
6812		;;
6813	    esac
6814	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6815	    ;;
6816	 hpux*)
6817	    case "$GCC" in
6818	     yes)
6819		;;
6820	     *)
6821		# use Ansi compiler on HPUX
6822		ntp_os_cflags="-Ae"
6823	    esac
6824	    ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6825	    ;;
6826	 irix6*)
6827	    case "$CC" in
6828	     cc)
6829		# do not use 64-bit compiler
6830		ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6831	    esac
6832	    ;;
6833	 nextstep3)
6834	    ntp_os_cflags="-posix"
6835	    ;;
6836	 solaris1*|solaris2.[0-5]|solaris2.5.*)
6837	    ;;
6838	 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6839	    ;;
6840	 solaris2*|sunos5*)
6841	    # turn on 64-bit file offset interface
6842	    ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6843	    ;;
6844	 vxworks*)
6845	    case "$build" in
6846	     $host)
6847		;;
6848	     *)
6849		# Quick and dirty sanity check
6850		case "$VX_KERNEL" in
6851		 '')
6852		    as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6853		esac
6854		ntp_os_cflags="-DSYS_VXWORKS"
6855	    esac
6856	    ;;
6857	esac
6858    esac
6859    case "$ntp_os_flags" in
6860     '')
6861	ntp_os_cflags_msg="none needed"
6862	;;
6863     *)
6864	ntp_os_cflags_msg="$ntp_os_cflags"
6865    esac
6866    CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6868$as_echo "$ntp_os_cflags_msg" >&6; }
6869    { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6870
6871
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6874$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6875if ${ac_cv_c_bigendian+:} false; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878  ac_cv_c_bigendian=unknown
6879    # See if we're dealing with a universal compiler.
6880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882#ifndef __APPLE_CC__
6883	       not a universal capable compiler
6884	     #endif
6885	     typedef int dummy;
6886
6887_ACEOF
6888if ac_fn_c_try_compile "$LINENO"; then :
6889
6890	# Check for potential -arch flags.  It is not universal unless
6891	# there are at least two -arch flags with different values.
6892	ac_arch=
6893	ac_prev=
6894	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6895	 if test -n "$ac_prev"; then
6896	   case $ac_word in
6897	     i?86 | x86_64 | ppc | ppc64)
6898	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6899		 ac_arch=$ac_word
6900	       else
6901		 ac_cv_c_bigendian=universal
6902		 break
6903	       fi
6904	       ;;
6905	   esac
6906	   ac_prev=
6907	 elif test "x$ac_word" = "x-arch"; then
6908	   ac_prev=arch
6909	 fi
6910       done
6911fi
6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913    if test $ac_cv_c_bigendian = unknown; then
6914      # See if sys/param.h defines the BYTE_ORDER macro.
6915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917#include <sys/types.h>
6918	     #include <sys/param.h>
6919
6920int
6921main ()
6922{
6923#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6924		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6925		     && LITTLE_ENDIAN)
6926	      bogus endian macros
6927	     #endif
6928
6929  ;
6930  return 0;
6931}
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"; then :
6934  # It does; now see whether it defined to BIG_ENDIAN or not.
6935	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937#include <sys/types.h>
6938		#include <sys/param.h>
6939
6940int
6941main ()
6942{
6943#if BYTE_ORDER != BIG_ENDIAN
6944		 not big endian
6945		#endif
6946
6947  ;
6948  return 0;
6949}
6950_ACEOF
6951if ac_fn_c_try_compile "$LINENO"; then :
6952  ac_cv_c_bigendian=yes
6953else
6954  ac_cv_c_bigendian=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957fi
6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959    fi
6960    if test $ac_cv_c_bigendian = unknown; then
6961      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964#include <limits.h>
6965
6966int
6967main ()
6968{
6969#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6970	      bogus endian macros
6971	     #endif
6972
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"; then :
6978  # It does; now see whether it defined to _BIG_ENDIAN or not.
6979	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h.  */
6981#include <limits.h>
6982
6983int
6984main ()
6985{
6986#ifndef _BIG_ENDIAN
6987		 not big endian
6988		#endif
6989
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_compile "$LINENO"; then :
6995  ac_cv_c_bigendian=yes
6996else
6997  ac_cv_c_bigendian=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002    fi
7003    if test $ac_cv_c_bigendian = unknown; then
7004      # Compile a test program.
7005      if test "$cross_compiling" = yes; then :
7006  # Try to guess by grepping values from an object file.
7007	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h.  */
7009short int ascii_mm[] =
7010		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7011		short int ascii_ii[] =
7012		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7013		int use_ascii (int i) {
7014		  return ascii_mm[i] + ascii_ii[i];
7015		}
7016		short int ebcdic_ii[] =
7017		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7018		short int ebcdic_mm[] =
7019		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7020		int use_ebcdic (int i) {
7021		  return ebcdic_mm[i] + ebcdic_ii[i];
7022		}
7023		extern int foo;
7024
7025int
7026main ()
7027{
7028return use_ascii (foo) == use_ebcdic (foo);
7029  ;
7030  return 0;
7031}
7032_ACEOF
7033if ac_fn_c_try_compile "$LINENO"; then :
7034  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7035	      ac_cv_c_bigendian=yes
7036	    fi
7037	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7038	      if test "$ac_cv_c_bigendian" = unknown; then
7039		ac_cv_c_bigendian=no
7040	      else
7041		# finding both strings is unlikely to happen, but who knows?
7042		ac_cv_c_bigendian=unknown
7043	      fi
7044	    fi
7045fi
7046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047else
7048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050$ac_includes_default
7051int
7052main ()
7053{
7054
7055	     /* Are we little or big endian?  From Harbison&Steele.  */
7056	     union
7057	     {
7058	       long int l;
7059	       char c[sizeof (long int)];
7060	     } u;
7061	     u.l = 1;
7062	     return u.c[sizeof (long int) - 1] == 1;
7063
7064  ;
7065  return 0;
7066}
7067_ACEOF
7068if ac_fn_c_try_run "$LINENO"; then :
7069  ac_cv_c_bigendian=no
7070else
7071  ac_cv_c_bigendian=yes
7072fi
7073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7074  conftest.$ac_objext conftest.beam conftest.$ac_ext
7075fi
7076
7077    fi
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7080$as_echo "$ac_cv_c_bigendian" >&6; }
7081 case $ac_cv_c_bigendian in #(
7082   yes)
7083     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7084;; #(
7085   no)
7086      ;; #(
7087   universal)
7088
7089$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7090
7091     ;; #(
7092   *)
7093     as_fn_error $? "unknown endianness
7094 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7095 esac
7096
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7098$as_echo_n "checking for working volatile... " >&6; }
7099if ${ac_cv_c_volatile+:} false; then :
7100  $as_echo_n "(cached) " >&6
7101else
7102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104
7105int
7106main ()
7107{
7108
7109volatile int x;
7110int * volatile y = (int *) 0;
7111return !x && !y;
7112  ;
7113  return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_compile "$LINENO"; then :
7117  ac_cv_c_volatile=yes
7118else
7119  ac_cv_c_volatile=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7124$as_echo "$ac_cv_c_volatile" >&6; }
7125if test $ac_cv_c_volatile = no; then
7126
7127$as_echo "#define volatile /**/" >>confdefs.h
7128
7129fi
7130
7131ac_ext=c
7132ac_cpp='$CPP $CPPFLAGS'
7133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7137$as_echo_n "checking how to run the C preprocessor... " >&6; }
7138# On Suns, sometimes $CPP names a directory.
7139if test -n "$CPP" && test -d "$CPP"; then
7140  CPP=
7141fi
7142if test -z "$CPP"; then
7143  if ${ac_cv_prog_CPP+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146      # Double quotes because CPP needs to be expanded
7147    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7148    do
7149      ac_preproc_ok=false
7150for ac_c_preproc_warn_flag in '' yes
7151do
7152  # Use a header file that comes with gcc, so configuring glibc
7153  # with a fresh cross-compiler works.
7154  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155  # <limits.h> exists even on freestanding compilers.
7156  # On the NeXT, cc -E runs the code through the compiler's parser,
7157  # not just through cpp. "Syntax error" is here to catch this case.
7158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159/* end confdefs.h.  */
7160#ifdef __STDC__
7161# include <limits.h>
7162#else
7163# include <assert.h>
7164#endif
7165		     Syntax error
7166_ACEOF
7167if ac_fn_c_try_cpp "$LINENO"; then :
7168
7169else
7170  # Broken: fails on valid input.
7171continue
7172fi
7173rm -f conftest.err conftest.i conftest.$ac_ext
7174
7175  # OK, works on sane cases.  Now check whether nonexistent headers
7176  # can be detected and how.
7177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h.  */
7179#include <ac_nonexistent.h>
7180_ACEOF
7181if ac_fn_c_try_cpp "$LINENO"; then :
7182  # Broken: success on invalid input.
7183continue
7184else
7185  # Passes both tests.
7186ac_preproc_ok=:
7187break
7188fi
7189rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191done
7192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7193rm -f conftest.i conftest.err conftest.$ac_ext
7194if $ac_preproc_ok; then :
7195  break
7196fi
7197
7198    done
7199    ac_cv_prog_CPP=$CPP
7200
7201fi
7202  CPP=$ac_cv_prog_CPP
7203else
7204  ac_cv_prog_CPP=$CPP
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7207$as_echo "$CPP" >&6; }
7208ac_preproc_ok=false
7209for ac_c_preproc_warn_flag in '' yes
7210do
7211  # Use a header file that comes with gcc, so configuring glibc
7212  # with a fresh cross-compiler works.
7213  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214  # <limits.h> exists even on freestanding compilers.
7215  # On the NeXT, cc -E runs the code through the compiler's parser,
7216  # not just through cpp. "Syntax error" is here to catch this case.
7217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h.  */
7219#ifdef __STDC__
7220# include <limits.h>
7221#else
7222# include <assert.h>
7223#endif
7224		     Syntax error
7225_ACEOF
7226if ac_fn_c_try_cpp "$LINENO"; then :
7227
7228else
7229  # Broken: fails on valid input.
7230continue
7231fi
7232rm -f conftest.err conftest.i conftest.$ac_ext
7233
7234  # OK, works on sane cases.  Now check whether nonexistent headers
7235  # can be detected and how.
7236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237/* end confdefs.h.  */
7238#include <ac_nonexistent.h>
7239_ACEOF
7240if ac_fn_c_try_cpp "$LINENO"; then :
7241  # Broken: success on invalid input.
7242continue
7243else
7244  # Passes both tests.
7245ac_preproc_ok=:
7246break
7247fi
7248rm -f conftest.err conftest.i conftest.$ac_ext
7249
7250done
7251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7252rm -f conftest.i conftest.err conftest.$ac_ext
7253if $ac_preproc_ok; then :
7254
7255else
7256  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7258as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7259See \`config.log' for more details" "$LINENO" 5; }
7260fi
7261
7262ac_ext=c
7263ac_cpp='$CPP $CPPFLAGS'
7264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269
7270ac_ext=c
7271ac_cpp='$CPP $CPPFLAGS'
7272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7276$as_echo_n "checking how to run the C preprocessor... " >&6; }
7277# On Suns, sometimes $CPP names a directory.
7278if test -n "$CPP" && test -d "$CPP"; then
7279  CPP=
7280fi
7281if test -z "$CPP"; then
7282  if ${ac_cv_prog_CPP+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285      # Double quotes because CPP needs to be expanded
7286    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7287    do
7288      ac_preproc_ok=false
7289for ac_c_preproc_warn_flag in '' yes
7290do
7291  # Use a header file that comes with gcc, so configuring glibc
7292  # with a fresh cross-compiler works.
7293  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294  # <limits.h> exists even on freestanding compilers.
7295  # On the NeXT, cc -E runs the code through the compiler's parser,
7296  # not just through cpp. "Syntax error" is here to catch this case.
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299#ifdef __STDC__
7300# include <limits.h>
7301#else
7302# include <assert.h>
7303#endif
7304		     Syntax error
7305_ACEOF
7306if ac_fn_c_try_cpp "$LINENO"; then :
7307
7308else
7309  # Broken: fails on valid input.
7310continue
7311fi
7312rm -f conftest.err conftest.i conftest.$ac_ext
7313
7314  # OK, works on sane cases.  Now check whether nonexistent headers
7315  # can be detected and how.
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318#include <ac_nonexistent.h>
7319_ACEOF
7320if ac_fn_c_try_cpp "$LINENO"; then :
7321  # Broken: success on invalid input.
7322continue
7323else
7324  # Passes both tests.
7325ac_preproc_ok=:
7326break
7327fi
7328rm -f conftest.err conftest.i conftest.$ac_ext
7329
7330done
7331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7332rm -f conftest.i conftest.err conftest.$ac_ext
7333if $ac_preproc_ok; then :
7334  break
7335fi
7336
7337    done
7338    ac_cv_prog_CPP=$CPP
7339
7340fi
7341  CPP=$ac_cv_prog_CPP
7342else
7343  ac_cv_prog_CPP=$CPP
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7346$as_echo "$CPP" >&6; }
7347ac_preproc_ok=false
7348for ac_c_preproc_warn_flag in '' yes
7349do
7350  # Use a header file that comes with gcc, so configuring glibc
7351  # with a fresh cross-compiler works.
7352  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7353  # <limits.h> exists even on freestanding compilers.
7354  # On the NeXT, cc -E runs the code through the compiler's parser,
7355  # not just through cpp. "Syntax error" is here to catch this case.
7356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357/* end confdefs.h.  */
7358#ifdef __STDC__
7359# include <limits.h>
7360#else
7361# include <assert.h>
7362#endif
7363		     Syntax error
7364_ACEOF
7365if ac_fn_c_try_cpp "$LINENO"; then :
7366
7367else
7368  # Broken: fails on valid input.
7369continue
7370fi
7371rm -f conftest.err conftest.i conftest.$ac_ext
7372
7373  # OK, works on sane cases.  Now check whether nonexistent headers
7374  # can be detected and how.
7375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377#include <ac_nonexistent.h>
7378_ACEOF
7379if ac_fn_c_try_cpp "$LINENO"; then :
7380  # Broken: success on invalid input.
7381continue
7382else
7383  # Passes both tests.
7384ac_preproc_ok=:
7385break
7386fi
7387rm -f conftest.err conftest.i conftest.$ac_ext
7388
7389done
7390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7391rm -f conftest.i conftest.err conftest.$ac_ext
7392if $ac_preproc_ok; then :
7393
7394else
7395  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7397as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7398See \`config.log' for more details" "$LINENO" 5; }
7399fi
7400
7401ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407# Do we need CXX for anything besides google test?
7408ac_ext=cpp
7409ac_cpp='$CXXCPP $CPPFLAGS'
7410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7413if test -z "$CXX"; then
7414  if test -n "$CCC"; then
7415    CXX=$CCC
7416  else
7417    if test -n "$ac_tool_prefix"; then
7418  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7419  do
7420    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if ${ac_cv_prog_CXX+:} false; then :
7425  $as_echo_n "(cached) " >&6
7426else
7427  if test -n "$CXX"; then
7428  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433  IFS=$as_save_IFS
7434  test -z "$as_dir" && as_dir=.
7435    for ac_exec_ext in '' $ac_executable_extensions; do
7436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439    break 2
7440  fi
7441done
7442  done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447CXX=$ac_cv_prog_CXX
7448if test -n "$CXX"; then
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7450$as_echo "$CXX" >&6; }
7451else
7452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457    test -n "$CXX" && break
7458  done
7459fi
7460if test -z "$CXX"; then
7461  ac_ct_CXX=$CXX
7462  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7463do
7464  # Extract the first word of "$ac_prog", so it can be a program name with args.
7465set dummy $ac_prog; ac_word=$2
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$ac_ct_CXX"; then
7472  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  test -z "$as_dir" && as_dir=.
7479    for ac_exec_ext in '' $ac_executable_extensions; do
7480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481    ac_cv_prog_ac_ct_CXX="$ac_prog"
7482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483    break 2
7484  fi
7485done
7486  done
7487IFS=$as_save_IFS
7488
7489fi
7490fi
7491ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7492if test -n "$ac_ct_CXX"; then
7493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7494$as_echo "$ac_ct_CXX" >&6; }
7495else
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
7498fi
7499
7500
7501  test -n "$ac_ct_CXX" && break
7502done
7503
7504  if test "x$ac_ct_CXX" = x; then
7505    CXX="g++"
7506  else
7507    case $cross_compiling:$ac_tool_warned in
7508yes:)
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511ac_tool_warned=yes ;;
7512esac
7513    CXX=$ac_ct_CXX
7514  fi
7515fi
7516
7517  fi
7518fi
7519# Provide some information about the compiler.
7520$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7521set X $ac_compile
7522ac_compiler=$2
7523for ac_option in --version -v -V -qversion; do
7524  { { ac_try="$ac_compiler $ac_option >&5"
7525case "(($ac_try" in
7526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527  *) ac_try_echo=$ac_try;;
7528esac
7529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530$as_echo "$ac_try_echo"; } >&5
7531  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7532  ac_status=$?
7533  if test -s conftest.err; then
7534    sed '10a\
7535... rest of stderr output deleted ...
7536         10q' conftest.err >conftest.er1
7537    cat conftest.er1 >&5
7538  fi
7539  rm -f conftest.er1 conftest.err
7540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541  test $ac_status = 0; }
7542done
7543
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7545$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7546if ${ac_cv_cxx_compiler_gnu+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551
7552int
7553main ()
7554{
7555#ifndef __GNUC__
7556       choke me
7557#endif
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_cxx_try_compile "$LINENO"; then :
7564  ac_compiler_gnu=yes
7565else
7566  ac_compiler_gnu=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7570
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7573$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7574if test $ac_compiler_gnu = yes; then
7575  GXX=yes
7576else
7577  GXX=
7578fi
7579ac_test_CXXFLAGS=${CXXFLAGS+set}
7580ac_save_CXXFLAGS=$CXXFLAGS
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7582$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7583if ${ac_cv_prog_cxx_g+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7587   ac_cxx_werror_flag=yes
7588   ac_cv_prog_cxx_g=no
7589   CXXFLAGS="-g"
7590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592
7593int
7594main ()
7595{
7596
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601if ac_fn_cxx_try_compile "$LINENO"; then :
7602  ac_cv_prog_cxx_g=yes
7603else
7604  CXXFLAGS=""
7605      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607
7608int
7609main ()
7610{
7611
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616if ac_fn_cxx_try_compile "$LINENO"; then :
7617
7618else
7619  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7620	 CXXFLAGS="-g"
7621	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622/* end confdefs.h.  */
7623
7624int
7625main ()
7626{
7627
7628  ;
7629  return 0;
7630}
7631_ACEOF
7632if ac_fn_cxx_try_compile "$LINENO"; then :
7633  ac_cv_prog_cxx_g=yes
7634fi
7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636fi
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi
7639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7641fi
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7643$as_echo "$ac_cv_prog_cxx_g" >&6; }
7644if test "$ac_test_CXXFLAGS" = set; then
7645  CXXFLAGS=$ac_save_CXXFLAGS
7646elif test $ac_cv_prog_cxx_g = yes; then
7647  if test "$GXX" = yes; then
7648    CXXFLAGS="-g -O2"
7649  else
7650    CXXFLAGS="-g"
7651  fi
7652else
7653  if test "$GXX" = yes; then
7654    CXXFLAGS="-O2"
7655  else
7656    CXXFLAGS=
7657  fi
7658fi
7659ac_ext=c
7660ac_cpp='$CPP $CPPFLAGS'
7661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665depcc="$CXX"  am_compiler_list=
7666
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7668$as_echo_n "checking dependency style of $depcc... " >&6; }
7669if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7673  # We make a subdir and do the tests there.  Otherwise we can end up
7674  # making bogus files that we don't know about and never remove.  For
7675  # instance it was reported that on HP-UX the gcc test will end up
7676  # making a dummy file named 'D' -- because '-MD' means "put the output
7677  # in D".
7678  rm -rf conftest.dir
7679  mkdir conftest.dir
7680  # Copy depcomp to subdir because otherwise we won't find it if we're
7681  # using a relative directory.
7682  cp "$am_depcomp" conftest.dir
7683  cd conftest.dir
7684  # We will build objects and dependencies in a subdirectory because
7685  # it helps to detect inapplicable dependency modes.  For instance
7686  # both Tru64's cc and ICC support -MD to output dependencies as a
7687  # side effect of compilation, but ICC will put the dependencies in
7688  # the current directory while Tru64 will put them in the object
7689  # directory.
7690  mkdir sub
7691
7692  am_cv_CXX_dependencies_compiler_type=none
7693  if test "$am_compiler_list" = ""; then
7694     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7695  fi
7696  am__universal=false
7697  case " $depcc " in #(
7698     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7699     esac
7700
7701  for depmode in $am_compiler_list; do
7702    # Setup a source with many dependencies, because some compilers
7703    # like to wrap large dependency lists on column 80 (with \), and
7704    # we should not choose a depcomp mode which is confused by this.
7705    #
7706    # We need to recreate these files for each test, as the compiler may
7707    # overwrite some of them when testing with obscure command lines.
7708    # This happens at least with the AIX C compiler.
7709    : > sub/conftest.c
7710    for i in 1 2 3 4 5 6; do
7711      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7712      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7713      # Solaris 10 /bin/sh.
7714      echo '/* dummy */' > sub/conftst$i.h
7715    done
7716    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7717
7718    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7719    # mode.  It turns out that the SunPro C++ compiler does not properly
7720    # handle '-M -o', and we need to detect this.  Also, some Intel
7721    # versions had trouble with output in subdirs.
7722    am__obj=sub/conftest.${OBJEXT-o}
7723    am__minus_obj="-o $am__obj"
7724    case $depmode in
7725    gcc)
7726      # This depmode causes a compiler race in universal mode.
7727      test "$am__universal" = false || continue
7728      ;;
7729    nosideeffect)
7730      # After this tag, mechanisms are not by side-effect, so they'll
7731      # only be used when explicitly requested.
7732      if test "x$enable_dependency_tracking" = xyes; then
7733	continue
7734      else
7735	break
7736      fi
7737      ;;
7738    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7739      # This compiler won't grok '-c -o', but also, the minuso test has
7740      # not run yet.  These depmodes are late enough in the game, and
7741      # so weak that their functioning should not be impacted.
7742      am__obj=conftest.${OBJEXT-o}
7743      am__minus_obj=
7744      ;;
7745    none) break ;;
7746    esac
7747    if depmode=$depmode \
7748       source=sub/conftest.c object=$am__obj \
7749       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7750       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7751         >/dev/null 2>conftest.err &&
7752       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7753       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7754       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7755       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7756      # icc doesn't choke on unknown options, it will just issue warnings
7757      # or remarks (even with -Werror).  So we grep stderr for any message
7758      # that says an option was ignored or not supported.
7759      # When given -MP, icc 7.0 and 7.1 complain thusly:
7760      #   icc: Command line warning: ignoring option '-M'; no argument required
7761      # The diagnosis changed in icc 8.0:
7762      #   icc: Command line remark: option '-MP' not supported
7763      if (grep 'ignoring option' conftest.err ||
7764          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7765        am_cv_CXX_dependencies_compiler_type=$depmode
7766        break
7767      fi
7768    fi
7769  done
7770
7771  cd ..
7772  rm -rf conftest.dir
7773else
7774  am_cv_CXX_dependencies_compiler_type=none
7775fi
7776
7777fi
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7779$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7780CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7781
7782 if
7783  test "x$enable_dependency_tracking" != xno \
7784  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7785  am__fastdepCXX_TRUE=
7786  am__fastdepCXX_FALSE='#'
7787else
7788  am__fastdepCXX_TRUE='#'
7789  am__fastdepCXX_FALSE=
7790fi
7791
7792
7793for ac_prog in 'bison -y' byacc
7794do
7795  # Extract the first word of "$ac_prog", so it can be a program name with args.
7796set dummy $ac_prog; ac_word=$2
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
7799if ${ac_cv_prog_YACC+:} false; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  if test -n "$YACC"; then
7803  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808  IFS=$as_save_IFS
7809  test -z "$as_dir" && as_dir=.
7810    for ac_exec_ext in '' $ac_executable_extensions; do
7811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812    ac_cv_prog_YACC="$ac_prog"
7813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814    break 2
7815  fi
7816done
7817  done
7818IFS=$as_save_IFS
7819
7820fi
7821fi
7822YACC=$ac_cv_prog_YACC
7823if test -n "$YACC"; then
7824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7825$as_echo "$YACC" >&6; }
7826else
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
7829fi
7830
7831
7832  test -n "$YACC" && break
7833done
7834test -n "$YACC" || YACC="yacc"
7835
7836if test "x$CC" != xcc; then
7837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7838$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7839else
7840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7841$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7842fi
7843set dummy $CC; ac_cc=`$as_echo "$2" |
7844		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7845if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h.  */
7850
7851int
7852main ()
7853{
7854
7855  ;
7856  return 0;
7857}
7858_ACEOF
7859# Make sure it works both with $CC and with simple cc.
7860# We do the test twice because some compilers refuse to overwrite an
7861# existing .o file with -o, though they will create one.
7862ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7863rm -f conftest2.*
7864if { { case "(($ac_try" in
7865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866  *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7869$as_echo "$ac_try_echo"; } >&5
7870  (eval "$ac_try") 2>&5
7871  ac_status=$?
7872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873  test $ac_status = 0; } &&
7874   test -f conftest2.$ac_objext && { { case "(($ac_try" in
7875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876  *) ac_try_echo=$ac_try;;
7877esac
7878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7879$as_echo "$ac_try_echo"; } >&5
7880  (eval "$ac_try") 2>&5
7881  ac_status=$?
7882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883  test $ac_status = 0; };
7884then
7885  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7886  if test "x$CC" != xcc; then
7887    # Test first that cc exists at all.
7888    if { ac_try='cc -c conftest.$ac_ext >&5'
7889  { { case "(($ac_try" in
7890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891  *) ac_try_echo=$ac_try;;
7892esac
7893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7894$as_echo "$ac_try_echo"; } >&5
7895  (eval "$ac_try") 2>&5
7896  ac_status=$?
7897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7898  test $ac_status = 0; }; }; then
7899      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7900      rm -f conftest2.*
7901      if { { case "(($ac_try" in
7902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903  *) ac_try_echo=$ac_try;;
7904esac
7905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7906$as_echo "$ac_try_echo"; } >&5
7907  (eval "$ac_try") 2>&5
7908  ac_status=$?
7909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910  test $ac_status = 0; } &&
7911	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913  *) ac_try_echo=$ac_try;;
7914esac
7915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7916$as_echo "$ac_try_echo"; } >&5
7917  (eval "$ac_try") 2>&5
7918  ac_status=$?
7919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920  test $ac_status = 0; };
7921      then
7922	# cc works too.
7923	:
7924      else
7925	# cc exists but doesn't like -o.
7926	eval ac_cv_prog_cc_${ac_cc}_c_o=no
7927      fi
7928    fi
7929  fi
7930else
7931  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7932fi
7933rm -f core conftest*
7934
7935fi
7936if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938$as_echo "yes" >&6; }
7939else
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941$as_echo "no" >&6; }
7942
7943$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7944
7945fi
7946
7947
7948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
7949$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
7950
7951
7952	ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961
7962			struct foo_s {int i1; int i2;};
7963			int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
7964
7965_ACEOF
7966if ac_fn_c_try_compile "$LINENO"; then :
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7968$as_echo "yes" >&6; }
7969else
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
7972
7973$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
7974
7975fi
7976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977
7978	ac_ext=c
7979ac_cpp='$CPP $CPPFLAGS'
7980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985
7986
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
7988$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
7989ntp_vpath_hack="no"
7990case "$srcdir::${force_ntp_vpath_hack-no}" in
7991 .::*)
7992    ;; # VPATH_HACK path is for VPATH builds only.
7993 *::yes)
7994    ntp_vpath_hack="yes"
7995    ;;
7996 *::*)
7997    case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
7998     '')
7999	ntp_vpath_hack="yes"
8000    esac
8001esac
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8003$as_echo "$ntp_vpath_hack" >&6; }
8004 if test x$ntp_vpath_hack = xyes; then
8005  VPATH_HACK_TRUE=
8006  VPATH_HACK_FALSE='#'
8007else
8008  VPATH_HACK_TRUE='#'
8009  VPATH_HACK_FALSE=
8010fi
8011
8012
8013
8014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8016$as_echo_n "checking for install dir and man conventions... " >&6; }
8017
8018
8019# Check whether --with-locfile was given.
8020if test "${with_locfile+set}" = set; then :
8021  withval=$with_locfile;
8022else
8023  with_locfile=no
8024
8025fi
8026
8027
8028(									\
8029    SENTINEL_DIR="$PWD" &&						\
8030    cd $srcdir/sntp &&							\
8031    case "$with_locfile" in						\
8032     yes|no|'')								\
8033	scripts/genLocInfo -d "$SENTINEL_DIR"				\
8034	;;								\
8035     *)									\
8036	scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"	\
8037	;;								\
8038    esac								\
8039) > genLocInfo.i 2> genLocInfo.err
8040. ./genLocInfo.i
8041
8042case "$GENLOCINFO" in
8043 OK)
8044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8045$as_echo "in file $GENLOCINFOFILE" >&6; }
8046    rm genLocInfo.err genLocInfo.i
8047    ;;
8048 *)
8049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8050$as_echo "failed." >&6; }
8051    as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8052    ;;
8053esac
8054
8055 if test "$CALC_TICKADJ_MS" ; then
8056  WANT_CALC_TICKADJ_MS_TRUE=
8057  WANT_CALC_TICKADJ_MS_FALSE='#'
8058else
8059  WANT_CALC_TICKADJ_MS_TRUE='#'
8060  WANT_CALC_TICKADJ_MS_FALSE=
8061fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105 if test -z "$NTPSWEEP_NI" ; then
8106  INSTALL_NTPSWEEP_TRUE=
8107  INSTALL_NTPSWEEP_FALSE='#'
8108else
8109  INSTALL_NTPSWEEP_TRUE='#'
8110  INSTALL_NTPSWEEP_FALSE=
8111fi
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153 if test -z "$UPDATE_LEAP_NI" ; then
8154  INSTALL_UPDATE_LEAP_TRUE=
8155  INSTALL_UPDATE_LEAP_FALSE='#'
8156else
8157  INSTALL_UPDATE_LEAP_TRUE='#'
8158  INSTALL_UPDATE_LEAP_FALSE=
8159fi
8160
8161
8162
8163if test -n "$ac_tool_prefix"; then
8164  for ac_prog in ar lib "link -lib"
8165  do
8166    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169$as_echo_n "checking for $ac_word... " >&6; }
8170if ${ac_cv_prog_AR+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  if test -n "$AR"; then
8174  ac_cv_prog_AR="$AR" # Let the user override the test.
8175else
8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179  IFS=$as_save_IFS
8180  test -z "$as_dir" && as_dir=.
8181    for ac_exec_ext in '' $ac_executable_extensions; do
8182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185    break 2
8186  fi
8187done
8188  done
8189IFS=$as_save_IFS
8190
8191fi
8192fi
8193AR=$ac_cv_prog_AR
8194if test -n "$AR"; then
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8196$as_echo "$AR" >&6; }
8197else
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
8200fi
8201
8202
8203    test -n "$AR" && break
8204  done
8205fi
8206if test -z "$AR"; then
8207  ac_ct_AR=$AR
8208  for ac_prog in ar lib "link -lib"
8209do
8210  # Extract the first word of "$ac_prog", so it can be a program name with args.
8211set dummy $ac_prog; ac_word=$2
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213$as_echo_n "checking for $ac_word... " >&6; }
8214if ${ac_cv_prog_ac_ct_AR+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  if test -n "$ac_ct_AR"; then
8218  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8219else
8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH
8222do
8223  IFS=$as_save_IFS
8224  test -z "$as_dir" && as_dir=.
8225    for ac_exec_ext in '' $ac_executable_extensions; do
8226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227    ac_cv_prog_ac_ct_AR="$ac_prog"
8228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229    break 2
8230  fi
8231done
8232  done
8233IFS=$as_save_IFS
8234
8235fi
8236fi
8237ac_ct_AR=$ac_cv_prog_ac_ct_AR
8238if test -n "$ac_ct_AR"; then
8239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8240$as_echo "$ac_ct_AR" >&6; }
8241else
8242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
8244fi
8245
8246
8247  test -n "$ac_ct_AR" && break
8248done
8249
8250  if test "x$ac_ct_AR" = x; then
8251    AR="false"
8252  else
8253    case $cross_compiling:$ac_tool_warned in
8254yes:)
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8257ac_tool_warned=yes ;;
8258esac
8259    AR=$ac_ct_AR
8260  fi
8261fi
8262
8263: ${AR=ar}
8264
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8266$as_echo_n "checking the archiver ($AR) interface... " >&6; }
8267if ${am_cv_ar_interface+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  ac_ext=c
8271ac_cpp='$CPP $CPPFLAGS'
8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276   am_cv_ar_interface=ar
8277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h.  */
8279int some_variable = 0;
8280_ACEOF
8281if ac_fn_c_try_compile "$LINENO"; then :
8282  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8283      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8284  (eval $am_ar_try) 2>&5
8285  ac_status=$?
8286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287  test $ac_status = 0; }
8288      if test "$ac_status" -eq 0; then
8289        am_cv_ar_interface=ar
8290      else
8291        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8292        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8293  (eval $am_ar_try) 2>&5
8294  ac_status=$?
8295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8296  test $ac_status = 0; }
8297        if test "$ac_status" -eq 0; then
8298          am_cv_ar_interface=lib
8299        else
8300          am_cv_ar_interface=unknown
8301        fi
8302      fi
8303      rm -f conftest.lib libconftest.a
8304
8305fi
8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307   ac_ext=c
8308ac_cpp='$CPP $CPPFLAGS'
8309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8315$as_echo "$am_cv_ar_interface" >&6; }
8316
8317case $am_cv_ar_interface in
8318ar)
8319  ;;
8320lib)
8321  # Microsoft lib, so override with the ar-lib wrapper script.
8322  # FIXME: It is wrong to rewrite AR.
8323  # But if we don't then we get into trouble of one sort or another.
8324  # A longer-term fix would be to have automake use am__AR in this case,
8325  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8326  # similar.
8327  AR="$am_aux_dir/ar-lib $AR"
8328  ;;
8329unknown)
8330  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8331  ;;
8332esac
8333
8334
8335
8336# So far, the only shared library we might use is libopts.
8337# It's a small library - we might as well use a static version of it.
8338# Check whether --enable-shared was given.
8339if test "${enable_shared+set}" = set; then :
8340  enableval=$enable_shared; p=${PACKAGE-default}
8341    case $enableval in
8342    yes) enable_shared=yes ;;
8343    no) enable_shared=no ;;
8344    *)
8345      enable_shared=no
8346      # Look at the argument we got.  We use all the common list separators.
8347      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8348      for pkg in $enableval; do
8349	IFS="$lt_save_ifs"
8350	if test "X$pkg" = "X$p"; then
8351	  enable_shared=yes
8352	fi
8353      done
8354      IFS="$lt_save_ifs"
8355      ;;
8356    esac
8357else
8358  enable_shared=no
8359fi
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369case `pwd` in
8370  *\ * | *\	*)
8371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8372$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8373esac
8374
8375
8376
8377macro_version='2.4.2'
8378macro_revision='1.3337'
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392ltmain="$ac_aux_dir/ltmain.sh"
8393
8394# Backslashify metacharacters that are still active within
8395# double-quoted strings.
8396sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8397
8398# Same as above, but do not quote variable references.
8399double_quote_subst='s/\(["`\\]\)/\\\1/g'
8400
8401# Sed substitution to delay expansion of an escaped shell variable in a
8402# double_quote_subst'ed string.
8403delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8404
8405# Sed substitution to delay expansion of an escaped single quote.
8406delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8407
8408# Sed substitution to avoid accidental globbing in evaled expressions
8409no_glob_subst='s/\*/\\\*/g'
8410
8411ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8413ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8414
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8416$as_echo_n "checking how to print strings... " >&6; }
8417# Test print first, because it will be a builtin if present.
8418if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8419   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8420  ECHO='print -r --'
8421elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8422  ECHO='printf %s\n'
8423else
8424  # Use this function as a fallback that always works.
8425  func_fallback_echo ()
8426  {
8427    eval 'cat <<_LTECHO_EOF
8428$1
8429_LTECHO_EOF'
8430  }
8431  ECHO='func_fallback_echo'
8432fi
8433
8434# func_echo_all arg...
8435# Invoke $ECHO with all args, space-separated.
8436func_echo_all ()
8437{
8438    $ECHO ""
8439}
8440
8441case "$ECHO" in
8442  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8443$as_echo "printf" >&6; } ;;
8444  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8445$as_echo "print -r" >&6; } ;;
8446  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8447$as_echo "cat" >&6; } ;;
8448esac
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8464$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8465if ${ac_cv_path_SED+:} false; then :
8466  $as_echo_n "(cached) " >&6
8467else
8468            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8469     for ac_i in 1 2 3 4 5 6 7; do
8470       ac_script="$ac_script$as_nl$ac_script"
8471     done
8472     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8473     { ac_script=; unset ac_script;}
8474     if test -z "$SED"; then
8475  ac_path_SED_found=false
8476  # Loop through the user's path and test for each of PROGNAME-LIST
8477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480  IFS=$as_save_IFS
8481  test -z "$as_dir" && as_dir=.
8482    for ac_prog in sed gsed; do
8483    for ac_exec_ext in '' $ac_executable_extensions; do
8484      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8485      as_fn_executable_p "$ac_path_SED" || continue
8486# Check for GNU ac_path_SED and select it if it is found.
8487  # Check for GNU $ac_path_SED
8488case `"$ac_path_SED" --version 2>&1` in
8489*GNU*)
8490  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8491*)
8492  ac_count=0
8493  $as_echo_n 0123456789 >"conftest.in"
8494  while :
8495  do
8496    cat "conftest.in" "conftest.in" >"conftest.tmp"
8497    mv "conftest.tmp" "conftest.in"
8498    cp "conftest.in" "conftest.nl"
8499    $as_echo '' >> "conftest.nl"
8500    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8501    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8502    as_fn_arith $ac_count + 1 && ac_count=$as_val
8503    if test $ac_count -gt ${ac_path_SED_max-0}; then
8504      # Best one so far, save it but keep looking for a better one
8505      ac_cv_path_SED="$ac_path_SED"
8506      ac_path_SED_max=$ac_count
8507    fi
8508    # 10*(2^10) chars as input seems more than enough
8509    test $ac_count -gt 10 && break
8510  done
8511  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8512esac
8513
8514      $ac_path_SED_found && break 3
8515    done
8516  done
8517  done
8518IFS=$as_save_IFS
8519  if test -z "$ac_cv_path_SED"; then
8520    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8521  fi
8522else
8523  ac_cv_path_SED=$SED
8524fi
8525
8526fi
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8528$as_echo "$ac_cv_path_SED" >&6; }
8529 SED="$ac_cv_path_SED"
8530  rm -f conftest.sed
8531
8532test -z "$SED" && SED=sed
8533Xsed="$SED -e 1s/^X//"
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8546$as_echo_n "checking for fgrep... " >&6; }
8547if ${ac_cv_path_FGREP+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8551   then ac_cv_path_FGREP="$GREP -F"
8552   else
8553     if test -z "$FGREP"; then
8554  ac_path_FGREP_found=false
8555  # Loop through the user's path and test for each of PROGNAME-LIST
8556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8558do
8559  IFS=$as_save_IFS
8560  test -z "$as_dir" && as_dir=.
8561    for ac_prog in fgrep; do
8562    for ac_exec_ext in '' $ac_executable_extensions; do
8563      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8564      as_fn_executable_p "$ac_path_FGREP" || continue
8565# Check for GNU ac_path_FGREP and select it if it is found.
8566  # Check for GNU $ac_path_FGREP
8567case `"$ac_path_FGREP" --version 2>&1` in
8568*GNU*)
8569  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8570*)
8571  ac_count=0
8572  $as_echo_n 0123456789 >"conftest.in"
8573  while :
8574  do
8575    cat "conftest.in" "conftest.in" >"conftest.tmp"
8576    mv "conftest.tmp" "conftest.in"
8577    cp "conftest.in" "conftest.nl"
8578    $as_echo 'FGREP' >> "conftest.nl"
8579    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8580    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8581    as_fn_arith $ac_count + 1 && ac_count=$as_val
8582    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8583      # Best one so far, save it but keep looking for a better one
8584      ac_cv_path_FGREP="$ac_path_FGREP"
8585      ac_path_FGREP_max=$ac_count
8586    fi
8587    # 10*(2^10) chars as input seems more than enough
8588    test $ac_count -gt 10 && break
8589  done
8590  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8591esac
8592
8593      $ac_path_FGREP_found && break 3
8594    done
8595  done
8596  done
8597IFS=$as_save_IFS
8598  if test -z "$ac_cv_path_FGREP"; then
8599    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8600  fi
8601else
8602  ac_cv_path_FGREP=$FGREP
8603fi
8604
8605   fi
8606fi
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8608$as_echo "$ac_cv_path_FGREP" >&6; }
8609 FGREP="$ac_cv_path_FGREP"
8610
8611
8612test -z "$GREP" && GREP=grep
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632# Check whether --with-gnu-ld was given.
8633if test "${with_gnu_ld+set}" = set; then :
8634  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8635else
8636  with_gnu_ld=no
8637fi
8638
8639ac_prog=ld
8640if test "$GCC" = yes; then
8641  # Check if gcc -print-prog-name=ld gives a path.
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8643$as_echo_n "checking for ld used by $CC... " >&6; }
8644  case $host in
8645  *-*-mingw*)
8646    # gcc leaves a trailing carriage return which upsets mingw
8647    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8648  *)
8649    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8650  esac
8651  case $ac_prog in
8652    # Accept absolute paths.
8653    [\\/]* | ?:[\\/]*)
8654      re_direlt='/[^/][^/]*/\.\./'
8655      # Canonicalize the pathname of ld
8656      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8657      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8658	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8659      done
8660      test -z "$LD" && LD="$ac_prog"
8661      ;;
8662  "")
8663    # If it fails, then pretend we aren't using GCC.
8664    ac_prog=ld
8665    ;;
8666  *)
8667    # If it is relative, then search for the first ld in PATH.
8668    with_gnu_ld=unknown
8669    ;;
8670  esac
8671elif test "$with_gnu_ld" = yes; then
8672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8673$as_echo_n "checking for GNU ld... " >&6; }
8674else
8675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8676$as_echo_n "checking for non-GNU ld... " >&6; }
8677fi
8678if ${lt_cv_path_LD+:} false; then :
8679  $as_echo_n "(cached) " >&6
8680else
8681  if test -z "$LD"; then
8682  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8683  for ac_dir in $PATH; do
8684    IFS="$lt_save_ifs"
8685    test -z "$ac_dir" && ac_dir=.
8686    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8687      lt_cv_path_LD="$ac_dir/$ac_prog"
8688      # Check to see if the program is GNU ld.  I'd rather use --version,
8689      # but apparently some variants of GNU ld only accept -v.
8690      # Break only if it was the GNU/non-GNU ld that we prefer.
8691      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8692      *GNU* | *'with BFD'*)
8693	test "$with_gnu_ld" != no && break
8694	;;
8695      *)
8696	test "$with_gnu_ld" != yes && break
8697	;;
8698      esac
8699    fi
8700  done
8701  IFS="$lt_save_ifs"
8702else
8703  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8704fi
8705fi
8706
8707LD="$lt_cv_path_LD"
8708if test -n "$LD"; then
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8710$as_echo "$LD" >&6; }
8711else
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714fi
8715test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8717$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8718if ${lt_cv_prog_gnu_ld+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8722case `$LD -v 2>&1 </dev/null` in
8723*GNU* | *'with BFD'*)
8724  lt_cv_prog_gnu_ld=yes
8725  ;;
8726*)
8727  lt_cv_prog_gnu_ld=no
8728  ;;
8729esac
8730fi
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8732$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8733with_gnu_ld=$lt_cv_prog_gnu_ld
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8744$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8745if ${lt_cv_path_NM+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  if test -n "$NM"; then
8749  # Let the user override the test.
8750  lt_cv_path_NM="$NM"
8751else
8752  lt_nm_to_check="${ac_tool_prefix}nm"
8753  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8754    lt_nm_to_check="$lt_nm_to_check nm"
8755  fi
8756  for lt_tmp_nm in $lt_nm_to_check; do
8757    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8758    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8759      IFS="$lt_save_ifs"
8760      test -z "$ac_dir" && ac_dir=.
8761      tmp_nm="$ac_dir/$lt_tmp_nm"
8762      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8763	# Check to see if the nm accepts a BSD-compat flag.
8764	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8765	#   nm: unknown option "B" ignored
8766	# Tru64's nm complains that /dev/null is an invalid object file
8767	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8768	*/dev/null* | *'Invalid file or object type'*)
8769	  lt_cv_path_NM="$tmp_nm -B"
8770	  break
8771	  ;;
8772	*)
8773	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8774	  */dev/null*)
8775	    lt_cv_path_NM="$tmp_nm -p"
8776	    break
8777	    ;;
8778	  *)
8779	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8780	    continue # so that we can try to find one that supports BSD flags
8781	    ;;
8782	  esac
8783	  ;;
8784	esac
8785      fi
8786    done
8787    IFS="$lt_save_ifs"
8788  done
8789  : ${lt_cv_path_NM=no}
8790fi
8791fi
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8793$as_echo "$lt_cv_path_NM" >&6; }
8794if test "$lt_cv_path_NM" != "no"; then
8795  NM="$lt_cv_path_NM"
8796else
8797  # Didn't find any BSD compatible name lister, look for dumpbin.
8798  if test -n "$DUMPBIN"; then :
8799    # Let the user override the test.
8800  else
8801    if test -n "$ac_tool_prefix"; then
8802  for ac_prog in dumpbin "link -dump"
8803  do
8804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if ${ac_cv_prog_DUMPBIN+:} false; then :
8809  $as_echo_n "(cached) " >&6
8810else
8811  if test -n "$DUMPBIN"; then
8812  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817  IFS=$as_save_IFS
8818  test -z "$as_dir" && as_dir=.
8819    for ac_exec_ext in '' $ac_executable_extensions; do
8820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823    break 2
8824  fi
8825done
8826  done
8827IFS=$as_save_IFS
8828
8829fi
8830fi
8831DUMPBIN=$ac_cv_prog_DUMPBIN
8832if test -n "$DUMPBIN"; then
8833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8834$as_echo "$DUMPBIN" >&6; }
8835else
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
8838fi
8839
8840
8841    test -n "$DUMPBIN" && break
8842  done
8843fi
8844if test -z "$DUMPBIN"; then
8845  ac_ct_DUMPBIN=$DUMPBIN
8846  for ac_prog in dumpbin "link -dump"
8847do
8848  # Extract the first word of "$ac_prog", so it can be a program name with args.
8849set dummy $ac_prog; ac_word=$2
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  if test -n "$ac_ct_DUMPBIN"; then
8856  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8857else
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861  IFS=$as_save_IFS
8862  test -z "$as_dir" && as_dir=.
8863    for ac_exec_ext in '' $ac_executable_extensions; do
8864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867    break 2
8868  fi
8869done
8870  done
8871IFS=$as_save_IFS
8872
8873fi
8874fi
8875ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8876if test -n "$ac_ct_DUMPBIN"; then
8877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8878$as_echo "$ac_ct_DUMPBIN" >&6; }
8879else
8880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
8882fi
8883
8884
8885  test -n "$ac_ct_DUMPBIN" && break
8886done
8887
8888  if test "x$ac_ct_DUMPBIN" = x; then
8889    DUMPBIN=":"
8890  else
8891    case $cross_compiling:$ac_tool_warned in
8892yes:)
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8895ac_tool_warned=yes ;;
8896esac
8897    DUMPBIN=$ac_ct_DUMPBIN
8898  fi
8899fi
8900
8901    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8902    *COFF*)
8903      DUMPBIN="$DUMPBIN -symbols"
8904      ;;
8905    *)
8906      DUMPBIN=:
8907      ;;
8908    esac
8909  fi
8910
8911  if test "$DUMPBIN" != ":"; then
8912    NM="$DUMPBIN"
8913  fi
8914fi
8915test -z "$NM" && NM=nm
8916
8917
8918
8919
8920
8921
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8923$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8924if ${lt_cv_nm_interface+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  lt_cv_nm_interface="BSD nm"
8928  echo "int some_variable = 0;" > conftest.$ac_ext
8929  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8930  (eval "$ac_compile" 2>conftest.err)
8931  cat conftest.err >&5
8932  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8933  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8934  cat conftest.err >&5
8935  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8936  cat conftest.out >&5
8937  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8938    lt_cv_nm_interface="MS dumpbin"
8939  fi
8940  rm -f conftest*
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8943$as_echo "$lt_cv_nm_interface" >&6; }
8944
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8946$as_echo_n "checking whether ln -s works... " >&6; }
8947LN_S=$as_ln_s
8948if test "$LN_S" = "ln -s"; then
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8950$as_echo "yes" >&6; }
8951else
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8953$as_echo "no, using $LN_S" >&6; }
8954fi
8955
8956# find the maximum length of command line arguments
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8958$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8959if ${lt_cv_sys_max_cmd_len+:} false; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962    i=0
8963  teststring="ABCD"
8964
8965  case $build_os in
8966  msdosdjgpp*)
8967    # On DJGPP, this test can blow up pretty badly due to problems in libc
8968    # (any single argument exceeding 2000 bytes causes a buffer overrun
8969    # during glob expansion).  Even if it were fixed, the result of this
8970    # check would be larger than it should be.
8971    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8972    ;;
8973
8974  gnu*)
8975    # Under GNU Hurd, this test is not required because there is
8976    # no limit to the length of command line arguments.
8977    # Libtool will interpret -1 as no limit whatsoever
8978    lt_cv_sys_max_cmd_len=-1;
8979    ;;
8980
8981  cygwin* | mingw* | cegcc*)
8982    # On Win9x/ME, this test blows up -- it succeeds, but takes
8983    # about 5 minutes as the teststring grows exponentially.
8984    # Worse, since 9x/ME are not pre-emptively multitasking,
8985    # you end up with a "frozen" computer, even though with patience
8986    # the test eventually succeeds (with a max line length of 256k).
8987    # Instead, let's just punt: use the minimum linelength reported by
8988    # all of the supported platforms: 8192 (on NT/2K/XP).
8989    lt_cv_sys_max_cmd_len=8192;
8990    ;;
8991
8992  mint*)
8993    # On MiNT this can take a long time and run out of memory.
8994    lt_cv_sys_max_cmd_len=8192;
8995    ;;
8996
8997  amigaos*)
8998    # On AmigaOS with pdksh, this test takes hours, literally.
8999    # So we just punt and use a minimum line length of 8192.
9000    lt_cv_sys_max_cmd_len=8192;
9001    ;;
9002
9003  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9004    # This has been around since 386BSD, at least.  Likely further.
9005    if test -x /sbin/sysctl; then
9006      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9007    elif test -x /usr/sbin/sysctl; then
9008      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9009    else
9010      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9011    fi
9012    # And add a safety zone
9013    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9014    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9015    ;;
9016
9017  interix*)
9018    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9019    lt_cv_sys_max_cmd_len=196608
9020    ;;
9021
9022  osf*)
9023    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9024    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9025    # nice to cause kernel panics so lets avoid the loop below.
9026    # First set a reasonable default.
9027    lt_cv_sys_max_cmd_len=16384
9028    #
9029    if test -x /sbin/sysconfig; then
9030      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9031        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9032      esac
9033    fi
9034    ;;
9035  sco3.2v5*)
9036    lt_cv_sys_max_cmd_len=102400
9037    ;;
9038  sysv5* | sco5v6* | sysv4.2uw2*)
9039    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9040    if test -n "$kargmax"; then
9041      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9042    else
9043      lt_cv_sys_max_cmd_len=32768
9044    fi
9045    ;;
9046  *)
9047    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9048    if test -n "$lt_cv_sys_max_cmd_len"; then
9049      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9050      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9051    else
9052      # Make teststring a little bigger before we do anything with it.
9053      # a 1K string should be a reasonable start.
9054      for i in 1 2 3 4 5 6 7 8 ; do
9055        teststring=$teststring$teststring
9056      done
9057      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9058      # If test is not a shell built-in, we'll probably end up computing a
9059      # maximum length that is only half of the actual maximum length, but
9060      # we can't tell.
9061      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9062	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9063	      test $i != 17 # 1/2 MB should be enough
9064      do
9065        i=`expr $i + 1`
9066        teststring=$teststring$teststring
9067      done
9068      # Only check the string length outside the loop.
9069      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9070      teststring=
9071      # Add a significant safety factor because C++ compilers can tack on
9072      # massive amounts of additional arguments before passing them to the
9073      # linker.  It appears as though 1/2 is a usable value.
9074      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9075    fi
9076    ;;
9077  esac
9078
9079fi
9080
9081if test -n $lt_cv_sys_max_cmd_len ; then
9082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9083$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9084else
9085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9086$as_echo "none" >&6; }
9087fi
9088max_cmd_len=$lt_cv_sys_max_cmd_len
9089
9090
9091
9092
9093
9094
9095: ${CP="cp -f"}
9096: ${MV="mv -f"}
9097: ${RM="rm -f"}
9098
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9100$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9101# Try some XSI features
9102xsi_shell=no
9103( _lt_dummy="a/b/c"
9104  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9105      = c,a/b,b/c, \
9106    && eval 'test $(( 1 + 1 )) -eq 2 \
9107    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9108  && xsi_shell=yes
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9110$as_echo "$xsi_shell" >&6; }
9111
9112
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9114$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9115lt_shell_append=no
9116( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9117    >/dev/null 2>&1 \
9118  && lt_shell_append=yes
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9120$as_echo "$lt_shell_append" >&6; }
9121
9122
9123if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9124  lt_unset=unset
9125else
9126  lt_unset=false
9127fi
9128
9129
9130
9131
9132
9133# test EBCDIC or ASCII
9134case `echo X|tr X '\101'` in
9135 A) # ASCII based system
9136    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9137  lt_SP2NL='tr \040 \012'
9138  lt_NL2SP='tr \015\012 \040\040'
9139  ;;
9140 *) # EBCDIC based system
9141  lt_SP2NL='tr \100 \n'
9142  lt_NL2SP='tr \r\n \100\100'
9143  ;;
9144esac
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9155$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9156if ${lt_cv_to_host_file_cmd+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  case $host in
9160  *-*-mingw* )
9161    case $build in
9162      *-*-mingw* ) # actually msys
9163        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9164        ;;
9165      *-*-cygwin* )
9166        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9167        ;;
9168      * ) # otherwise, assume *nix
9169        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9170        ;;
9171    esac
9172    ;;
9173  *-*-cygwin* )
9174    case $build in
9175      *-*-mingw* ) # actually msys
9176        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9177        ;;
9178      *-*-cygwin* )
9179        lt_cv_to_host_file_cmd=func_convert_file_noop
9180        ;;
9181      * ) # otherwise, assume *nix
9182        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9183        ;;
9184    esac
9185    ;;
9186  * ) # unhandled hosts (and "normal" native builds)
9187    lt_cv_to_host_file_cmd=func_convert_file_noop
9188    ;;
9189esac
9190
9191fi
9192
9193to_host_file_cmd=$lt_cv_to_host_file_cmd
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9195$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9196
9197
9198
9199
9200
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9202$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9203if ${lt_cv_to_tool_file_cmd+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  #assume ordinary cross tools, or native build.
9207lt_cv_to_tool_file_cmd=func_convert_file_noop
9208case $host in
9209  *-*-mingw* )
9210    case $build in
9211      *-*-mingw* ) # actually msys
9212        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9213        ;;
9214    esac
9215    ;;
9216esac
9217
9218fi
9219
9220to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9222$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9223
9224
9225
9226
9227
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9229$as_echo_n "checking for $LD option to reload object files... " >&6; }
9230if ${lt_cv_ld_reload_flag+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  lt_cv_ld_reload_flag='-r'
9234fi
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9236$as_echo "$lt_cv_ld_reload_flag" >&6; }
9237reload_flag=$lt_cv_ld_reload_flag
9238case $reload_flag in
9239"" | " "*) ;;
9240*) reload_flag=" $reload_flag" ;;
9241esac
9242reload_cmds='$LD$reload_flag -o $output$reload_objs'
9243case $host_os in
9244  cygwin* | mingw* | pw32* | cegcc*)
9245    if test "$GCC" != yes; then
9246      reload_cmds=false
9247    fi
9248    ;;
9249  darwin*)
9250    if test "$GCC" = yes; then
9251      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9252    else
9253      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9254    fi
9255    ;;
9256esac
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266if test -n "$ac_tool_prefix"; then
9267  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9268set dummy ${ac_tool_prefix}objdump; ac_word=$2
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270$as_echo_n "checking for $ac_word... " >&6; }
9271if ${ac_cv_prog_OBJDUMP+:} false; then :
9272  $as_echo_n "(cached) " >&6
9273else
9274  if test -n "$OBJDUMP"; then
9275  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9276else
9277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280  IFS=$as_save_IFS
9281  test -z "$as_dir" && as_dir=.
9282    for ac_exec_ext in '' $ac_executable_extensions; do
9283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286    break 2
9287  fi
9288done
9289  done
9290IFS=$as_save_IFS
9291
9292fi
9293fi
9294OBJDUMP=$ac_cv_prog_OBJDUMP
9295if test -n "$OBJDUMP"; then
9296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9297$as_echo "$OBJDUMP" >&6; }
9298else
9299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9302
9303
9304fi
9305if test -z "$ac_cv_prog_OBJDUMP"; then
9306  ac_ct_OBJDUMP=$OBJDUMP
9307  # Extract the first word of "objdump", so it can be a program name with args.
9308set dummy objdump; ac_word=$2
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310$as_echo_n "checking for $ac_word... " >&6; }
9311if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9312  $as_echo_n "(cached) " >&6
9313else
9314  if test -n "$ac_ct_OBJDUMP"; then
9315  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9316else
9317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318for as_dir in $PATH
9319do
9320  IFS=$as_save_IFS
9321  test -z "$as_dir" && as_dir=.
9322    for ac_exec_ext in '' $ac_executable_extensions; do
9323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9324    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9326    break 2
9327  fi
9328done
9329  done
9330IFS=$as_save_IFS
9331
9332fi
9333fi
9334ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9335if test -n "$ac_ct_OBJDUMP"; then
9336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9337$as_echo "$ac_ct_OBJDUMP" >&6; }
9338else
9339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340$as_echo "no" >&6; }
9341fi
9342
9343  if test "x$ac_ct_OBJDUMP" = x; then
9344    OBJDUMP="false"
9345  else
9346    case $cross_compiling:$ac_tool_warned in
9347yes:)
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9350ac_tool_warned=yes ;;
9351esac
9352    OBJDUMP=$ac_ct_OBJDUMP
9353  fi
9354else
9355  OBJDUMP="$ac_cv_prog_OBJDUMP"
9356fi
9357
9358test -z "$OBJDUMP" && OBJDUMP=objdump
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9369$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9370if ${lt_cv_deplibs_check_method+:} false; then :
9371  $as_echo_n "(cached) " >&6
9372else
9373  lt_cv_file_magic_cmd='$MAGIC_CMD'
9374lt_cv_file_magic_test_file=
9375lt_cv_deplibs_check_method='unknown'
9376# Need to set the preceding variable on all platforms that support
9377# interlibrary dependencies.
9378# 'none' -- dependencies not supported.
9379# `unknown' -- same as none, but documents that we really don't know.
9380# 'pass_all' -- all dependencies passed with no checks.
9381# 'test_compile' -- check by making test program.
9382# 'file_magic [[regex]]' -- check by looking for files in library path
9383# which responds to the $file_magic_cmd with a given extended regex.
9384# If you have `file' or equivalent on your system and you're not sure
9385# whether `pass_all' will *always* work, you probably want this one.
9386
9387case $host_os in
9388aix[4-9]*)
9389  lt_cv_deplibs_check_method=pass_all
9390  ;;
9391
9392beos*)
9393  lt_cv_deplibs_check_method=pass_all
9394  ;;
9395
9396bsdi[45]*)
9397  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9398  lt_cv_file_magic_cmd='/usr/bin/file -L'
9399  lt_cv_file_magic_test_file=/shlib/libc.so
9400  ;;
9401
9402cygwin*)
9403  # func_win32_libid is a shell function defined in ltmain.sh
9404  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9405  lt_cv_file_magic_cmd='func_win32_libid'
9406  ;;
9407
9408mingw* | pw32*)
9409  # Base MSYS/MinGW do not provide the 'file' command needed by
9410  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9411  # unless we find 'file', for example because we are cross-compiling.
9412  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9413  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9414    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9415    lt_cv_file_magic_cmd='func_win32_libid'
9416  else
9417    # Keep this pattern in sync with the one in func_win32_libid.
9418    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9419    lt_cv_file_magic_cmd='$OBJDUMP -f'
9420  fi
9421  ;;
9422
9423cegcc*)
9424  # use the weaker test based on 'objdump'. See mingw*.
9425  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9426  lt_cv_file_magic_cmd='$OBJDUMP -f'
9427  ;;
9428
9429darwin* | rhapsody*)
9430  lt_cv_deplibs_check_method=pass_all
9431  ;;
9432
9433freebsd* | dragonfly*)
9434  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9435    case $host_cpu in
9436    i*86 )
9437      # Not sure whether the presence of OpenBSD here was a mistake.
9438      # Let's accept both of them until this is cleared up.
9439      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9440      lt_cv_file_magic_cmd=/usr/bin/file
9441      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9442      ;;
9443    esac
9444  else
9445    lt_cv_deplibs_check_method=pass_all
9446  fi
9447  ;;
9448
9449gnu*)
9450  lt_cv_deplibs_check_method=pass_all
9451  ;;
9452
9453haiku*)
9454  lt_cv_deplibs_check_method=pass_all
9455  ;;
9456
9457hpux10.20* | hpux11*)
9458  lt_cv_file_magic_cmd=/usr/bin/file
9459  case $host_cpu in
9460  ia64*)
9461    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9462    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9463    ;;
9464  hppa*64*)
9465    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]'
9466    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9467    ;;
9468  *)
9469    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9470    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9471    ;;
9472  esac
9473  ;;
9474
9475interix[3-9]*)
9476  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9477  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9478  ;;
9479
9480irix5* | irix6* | nonstopux*)
9481  case $LD in
9482  *-32|*"-32 ") libmagic=32-bit;;
9483  *-n32|*"-n32 ") libmagic=N32;;
9484  *-64|*"-64 ") libmagic=64-bit;;
9485  *) libmagic=never-match;;
9486  esac
9487  lt_cv_deplibs_check_method=pass_all
9488  ;;
9489
9490# This must be Linux ELF.
9491linux* | k*bsd*-gnu | kopensolaris*-gnu)
9492  lt_cv_deplibs_check_method=pass_all
9493  ;;
9494
9495netbsd*)
9496  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9497    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9498  else
9499    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9500  fi
9501  ;;
9502
9503newos6*)
9504  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9505  lt_cv_file_magic_cmd=/usr/bin/file
9506  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9507  ;;
9508
9509*nto* | *qnx*)
9510  lt_cv_deplibs_check_method=pass_all
9511  ;;
9512
9513openbsd*)
9514  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9515    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9516  else
9517    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9518  fi
9519  ;;
9520
9521osf3* | osf4* | osf5*)
9522  lt_cv_deplibs_check_method=pass_all
9523  ;;
9524
9525rdos*)
9526  lt_cv_deplibs_check_method=pass_all
9527  ;;
9528
9529solaris*)
9530  lt_cv_deplibs_check_method=pass_all
9531  ;;
9532
9533sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9534  lt_cv_deplibs_check_method=pass_all
9535  ;;
9536
9537sysv4 | sysv4.3*)
9538  case $host_vendor in
9539  motorola)
9540    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]'
9541    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9542    ;;
9543  ncr)
9544    lt_cv_deplibs_check_method=pass_all
9545    ;;
9546  sequent)
9547    lt_cv_file_magic_cmd='/bin/file'
9548    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9549    ;;
9550  sni)
9551    lt_cv_file_magic_cmd='/bin/file'
9552    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9553    lt_cv_file_magic_test_file=/lib/libc.so
9554    ;;
9555  siemens)
9556    lt_cv_deplibs_check_method=pass_all
9557    ;;
9558  pc)
9559    lt_cv_deplibs_check_method=pass_all
9560    ;;
9561  esac
9562  ;;
9563
9564tpf*)
9565  lt_cv_deplibs_check_method=pass_all
9566  ;;
9567esac
9568
9569fi
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9571$as_echo "$lt_cv_deplibs_check_method" >&6; }
9572
9573file_magic_glob=
9574want_nocaseglob=no
9575if test "$build" = "$host"; then
9576  case $host_os in
9577  mingw* | pw32*)
9578    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9579      want_nocaseglob=yes
9580    else
9581      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9582    fi
9583    ;;
9584  esac
9585fi
9586
9587file_magic_cmd=$lt_cv_file_magic_cmd
9588deplibs_check_method=$lt_cv_deplibs_check_method
9589test -z "$deplibs_check_method" && deplibs_check_method=unknown
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612if test -n "$ac_tool_prefix"; then
9613  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9614set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616$as_echo_n "checking for $ac_word... " >&6; }
9617if ${ac_cv_prog_DLLTOOL+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  if test -n "$DLLTOOL"; then
9621  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9622else
9623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624for as_dir in $PATH
9625do
9626  IFS=$as_save_IFS
9627  test -z "$as_dir" && as_dir=.
9628    for ac_exec_ext in '' $ac_executable_extensions; do
9629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9630    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632    break 2
9633  fi
9634done
9635  done
9636IFS=$as_save_IFS
9637
9638fi
9639fi
9640DLLTOOL=$ac_cv_prog_DLLTOOL
9641if test -n "$DLLTOOL"; then
9642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9643$as_echo "$DLLTOOL" >&6; }
9644else
9645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646$as_echo "no" >&6; }
9647fi
9648
9649
9650fi
9651if test -z "$ac_cv_prog_DLLTOOL"; then
9652  ac_ct_DLLTOOL=$DLLTOOL
9653  # Extract the first word of "dlltool", so it can be a program name with args.
9654set dummy dlltool; ac_word=$2
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656$as_echo_n "checking for $ac_word... " >&6; }
9657if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9658  $as_echo_n "(cached) " >&6
9659else
9660  if test -n "$ac_ct_DLLTOOL"; then
9661  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9662else
9663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664for as_dir in $PATH
9665do
9666  IFS=$as_save_IFS
9667  test -z "$as_dir" && as_dir=.
9668    for ac_exec_ext in '' $ac_executable_extensions; do
9669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672    break 2
9673  fi
9674done
9675  done
9676IFS=$as_save_IFS
9677
9678fi
9679fi
9680ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9681if test -n "$ac_ct_DLLTOOL"; then
9682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9683$as_echo "$ac_ct_DLLTOOL" >&6; }
9684else
9685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686$as_echo "no" >&6; }
9687fi
9688
9689  if test "x$ac_ct_DLLTOOL" = x; then
9690    DLLTOOL="false"
9691  else
9692    case $cross_compiling:$ac_tool_warned in
9693yes:)
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9696ac_tool_warned=yes ;;
9697esac
9698    DLLTOOL=$ac_ct_DLLTOOL
9699  fi
9700else
9701  DLLTOOL="$ac_cv_prog_DLLTOOL"
9702fi
9703
9704test -z "$DLLTOOL" && DLLTOOL=dlltool
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9716$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9717if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  lt_cv_sharedlib_from_linklib_cmd='unknown'
9721
9722case $host_os in
9723cygwin* | mingw* | pw32* | cegcc*)
9724  # two different shell functions defined in ltmain.sh
9725  # decide which to use based on capabilities of $DLLTOOL
9726  case `$DLLTOOL --help 2>&1` in
9727  *--identify-strict*)
9728    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9729    ;;
9730  *)
9731    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9732    ;;
9733  esac
9734  ;;
9735*)
9736  # fallback: assume linklib IS sharedlib
9737  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9738  ;;
9739esac
9740
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9743$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9744sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9745test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9746
9747
9748
9749
9750
9751
9752
9753if test -n "$ac_tool_prefix"; then
9754  for ac_prog in ar
9755  do
9756    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9757set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if ${ac_cv_prog_AR+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  if test -n "$AR"; then
9764  ac_cv_prog_AR="$AR" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769  IFS=$as_save_IFS
9770  test -z "$as_dir" && as_dir=.
9771    for ac_exec_ext in '' $ac_executable_extensions; do
9772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775    break 2
9776  fi
9777done
9778  done
9779IFS=$as_save_IFS
9780
9781fi
9782fi
9783AR=$ac_cv_prog_AR
9784if test -n "$AR"; then
9785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9786$as_echo "$AR" >&6; }
9787else
9788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
9790fi
9791
9792
9793    test -n "$AR" && break
9794  done
9795fi
9796if test -z "$AR"; then
9797  ac_ct_AR=$AR
9798  for ac_prog in ar
9799do
9800  # Extract the first word of "$ac_prog", so it can be a program name with args.
9801set dummy $ac_prog; ac_word=$2
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803$as_echo_n "checking for $ac_word... " >&6; }
9804if ${ac_cv_prog_ac_ct_AR+:} false; then :
9805  $as_echo_n "(cached) " >&6
9806else
9807  if test -n "$ac_ct_AR"; then
9808  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9809else
9810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $PATH
9812do
9813  IFS=$as_save_IFS
9814  test -z "$as_dir" && as_dir=.
9815    for ac_exec_ext in '' $ac_executable_extensions; do
9816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817    ac_cv_prog_ac_ct_AR="$ac_prog"
9818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819    break 2
9820  fi
9821done
9822  done
9823IFS=$as_save_IFS
9824
9825fi
9826fi
9827ac_ct_AR=$ac_cv_prog_ac_ct_AR
9828if test -n "$ac_ct_AR"; then
9829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9830$as_echo "$ac_ct_AR" >&6; }
9831else
9832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835
9836
9837  test -n "$ac_ct_AR" && break
9838done
9839
9840  if test "x$ac_ct_AR" = x; then
9841    AR="false"
9842  else
9843    case $cross_compiling:$ac_tool_warned in
9844yes:)
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9847ac_tool_warned=yes ;;
9848esac
9849    AR=$ac_ct_AR
9850  fi
9851fi
9852
9853: ${AR=ar}
9854: ${AR_FLAGS=cru}
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9867$as_echo_n "checking for archiver @FILE support... " >&6; }
9868if ${lt_cv_ar_at_file+:} false; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  lt_cv_ar_at_file=no
9872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h.  */
9874
9875int
9876main ()
9877{
9878
9879  ;
9880  return 0;
9881}
9882_ACEOF
9883if ac_fn_c_try_compile "$LINENO"; then :
9884  echo conftest.$ac_objext > conftest.lst
9885      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9886      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9887  (eval $lt_ar_try) 2>&5
9888  ac_status=$?
9889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9890  test $ac_status = 0; }
9891      if test "$ac_status" -eq 0; then
9892	# Ensure the archiver fails upon bogus file names.
9893	rm -f conftest.$ac_objext libconftest.a
9894	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9895  (eval $lt_ar_try) 2>&5
9896  ac_status=$?
9897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898  test $ac_status = 0; }
9899	if test "$ac_status" -ne 0; then
9900          lt_cv_ar_at_file=@
9901        fi
9902      fi
9903      rm -f conftest.* libconftest.a
9904
9905fi
9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907
9908fi
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9910$as_echo "$lt_cv_ar_at_file" >&6; }
9911
9912if test "x$lt_cv_ar_at_file" = xno; then
9913  archiver_list_spec=
9914else
9915  archiver_list_spec=$lt_cv_ar_at_file
9916fi
9917
9918
9919
9920
9921
9922
9923
9924if test -n "$ac_tool_prefix"; then
9925  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9926set dummy ${ac_tool_prefix}strip; ac_word=$2
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928$as_echo_n "checking for $ac_word... " >&6; }
9929if ${ac_cv_prog_STRIP+:} false; then :
9930  $as_echo_n "(cached) " >&6
9931else
9932  if test -n "$STRIP"; then
9933  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9934else
9935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936for as_dir in $PATH
9937do
9938  IFS=$as_save_IFS
9939  test -z "$as_dir" && as_dir=.
9940    for ac_exec_ext in '' $ac_executable_extensions; do
9941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944    break 2
9945  fi
9946done
9947  done
9948IFS=$as_save_IFS
9949
9950fi
9951fi
9952STRIP=$ac_cv_prog_STRIP
9953if test -n "$STRIP"; then
9954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9955$as_echo "$STRIP" >&6; }
9956else
9957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
9959fi
9960
9961
9962fi
9963if test -z "$ac_cv_prog_STRIP"; then
9964  ac_ct_STRIP=$STRIP
9965  # Extract the first word of "strip", so it can be a program name with args.
9966set dummy strip; ac_word=$2
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968$as_echo_n "checking for $ac_word... " >&6; }
9969if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  if test -n "$ac_ct_STRIP"; then
9973  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9974else
9975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978  IFS=$as_save_IFS
9979  test -z "$as_dir" && as_dir=.
9980    for ac_exec_ext in '' $ac_executable_extensions; do
9981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982    ac_cv_prog_ac_ct_STRIP="strip"
9983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984    break 2
9985  fi
9986done
9987  done
9988IFS=$as_save_IFS
9989
9990fi
9991fi
9992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9993if test -n "$ac_ct_STRIP"; then
9994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9995$as_echo "$ac_ct_STRIP" >&6; }
9996else
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
9999fi
10000
10001  if test "x$ac_ct_STRIP" = x; then
10002    STRIP=":"
10003  else
10004    case $cross_compiling:$ac_tool_warned in
10005yes:)
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10008ac_tool_warned=yes ;;
10009esac
10010    STRIP=$ac_ct_STRIP
10011  fi
10012else
10013  STRIP="$ac_cv_prog_STRIP"
10014fi
10015
10016test -z "$STRIP" && STRIP=:
10017
10018
10019
10020
10021
10022
10023if test -n "$ac_tool_prefix"; then
10024  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10025set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027$as_echo_n "checking for $ac_word... " >&6; }
10028if ${ac_cv_prog_RANLIB+:} false; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  if test -n "$RANLIB"; then
10032  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10033else
10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037  IFS=$as_save_IFS
10038  test -z "$as_dir" && as_dir=.
10039    for ac_exec_ext in '' $ac_executable_extensions; do
10040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043    break 2
10044  fi
10045done
10046  done
10047IFS=$as_save_IFS
10048
10049fi
10050fi
10051RANLIB=$ac_cv_prog_RANLIB
10052if test -n "$RANLIB"; then
10053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10054$as_echo "$RANLIB" >&6; }
10055else
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057$as_echo "no" >&6; }
10058fi
10059
10060
10061fi
10062if test -z "$ac_cv_prog_RANLIB"; then
10063  ac_ct_RANLIB=$RANLIB
10064  # Extract the first word of "ranlib", so it can be a program name with args.
10065set dummy ranlib; ac_word=$2
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067$as_echo_n "checking for $ac_word... " >&6; }
10068if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10069  $as_echo_n "(cached) " >&6
10070else
10071  if test -n "$ac_ct_RANLIB"; then
10072  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10073else
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077  IFS=$as_save_IFS
10078  test -z "$as_dir" && as_dir=.
10079    for ac_exec_ext in '' $ac_executable_extensions; do
10080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081    ac_cv_prog_ac_ct_RANLIB="ranlib"
10082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083    break 2
10084  fi
10085done
10086  done
10087IFS=$as_save_IFS
10088
10089fi
10090fi
10091ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10092if test -n "$ac_ct_RANLIB"; then
10093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10094$as_echo "$ac_ct_RANLIB" >&6; }
10095else
10096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
10098fi
10099
10100  if test "x$ac_ct_RANLIB" = x; then
10101    RANLIB=":"
10102  else
10103    case $cross_compiling:$ac_tool_warned in
10104yes:)
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10107ac_tool_warned=yes ;;
10108esac
10109    RANLIB=$ac_ct_RANLIB
10110  fi
10111else
10112  RANLIB="$ac_cv_prog_RANLIB"
10113fi
10114
10115test -z "$RANLIB" && RANLIB=:
10116
10117
10118
10119
10120
10121
10122# Determine commands to create old-style static archives.
10123old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10124old_postinstall_cmds='chmod 644 $oldlib'
10125old_postuninstall_cmds=
10126
10127if test -n "$RANLIB"; then
10128  case $host_os in
10129  openbsd*)
10130    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10131    ;;
10132  *)
10133    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10134    ;;
10135  esac
10136  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10137fi
10138
10139case $host_os in
10140  darwin*)
10141    lock_old_archive_extraction=yes ;;
10142  *)
10143    lock_old_archive_extraction=no ;;
10144esac
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184# If no C compiler was specified, use CC.
10185LTCC=${LTCC-"$CC"}
10186
10187# If no C compiler flags were specified, use CFLAGS.
10188LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10189
10190# Allow CC to be a program name with arguments.
10191compiler=$CC
10192
10193
10194# Check for command to grab the raw symbol name followed by C symbol from nm.
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10196$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10197if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10198  $as_echo_n "(cached) " >&6
10199else
10200
10201# These are sane defaults that work on at least a few old systems.
10202# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10203
10204# Character class describing NM global symbol codes.
10205symcode='[BCDEGRST]'
10206
10207# Regexp to match symbols that can be accessed directly from C.
10208sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10209
10210# Define system-specific variables.
10211case $host_os in
10212aix*)
10213  symcode='[BCDT]'
10214  ;;
10215cygwin* | mingw* | pw32* | cegcc*)
10216  symcode='[ABCDGISTW]'
10217  ;;
10218hpux*)
10219  if test "$host_cpu" = ia64; then
10220    symcode='[ABCDEGRST]'
10221  fi
10222  ;;
10223irix* | nonstopux*)
10224  symcode='[BCDEGRST]'
10225  ;;
10226osf*)
10227  symcode='[BCDEGQRST]'
10228  ;;
10229solaris*)
10230  symcode='[BDRT]'
10231  ;;
10232sco3.2v5*)
10233  symcode='[DT]'
10234  ;;
10235sysv4.2uw2*)
10236  symcode='[DT]'
10237  ;;
10238sysv5* | sco5v6* | unixware* | OpenUNIX*)
10239  symcode='[ABDT]'
10240  ;;
10241sysv4)
10242  symcode='[DFNSTU]'
10243  ;;
10244esac
10245
10246# If we're using GNU nm, then use its standard symbol codes.
10247case `$NM -V 2>&1` in
10248*GNU* | *'with BFD'*)
10249  symcode='[ABCDGIRSTW]' ;;
10250esac
10251
10252# Transform an extracted symbol line into a proper C declaration.
10253# Some systems (esp. on ia64) link data and code symbols differently,
10254# so use this general approach.
10255lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10256
10257# Transform an extracted symbol line into symbol name and symbol address
10258lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10259lt_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'"
10260
10261# Handle CRLF in mingw tool chain
10262opt_cr=
10263case $build_os in
10264mingw*)
10265  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10266  ;;
10267esac
10268
10269# Try without a prefix underscore, then with it.
10270for ac_symprfx in "" "_"; do
10271
10272  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10273  symxfrm="\\1 $ac_symprfx\\2 \\2"
10274
10275  # Write the raw and C identifiers.
10276  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10277    # Fake it for dumpbin and say T for any non-static function
10278    # and D for any global variable.
10279    # Also find C++ and __fastcall symbols from MSVC++,
10280    # which start with @ or ?.
10281    lt_cv_sys_global_symbol_pipe="$AWK '"\
10282"     {last_section=section; section=\$ 3};"\
10283"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10284"     \$ 0!~/External *\|/{next};"\
10285"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10286"     {if(hide[section]) next};"\
10287"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10288"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10289"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10290"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10291"     ' prfx=^$ac_symprfx"
10292  else
10293    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10294  fi
10295  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10296
10297  # Check to see that the pipe works correctly.
10298  pipe_works=no
10299
10300  rm -f conftest*
10301  cat > conftest.$ac_ext <<_LT_EOF
10302#ifdef __cplusplus
10303extern "C" {
10304#endif
10305char nm_test_var;
10306void nm_test_func(void);
10307void nm_test_func(void){}
10308#ifdef __cplusplus
10309}
10310#endif
10311int main(){nm_test_var='a';nm_test_func();return(0);}
10312_LT_EOF
10313
10314  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10315  (eval $ac_compile) 2>&5
10316  ac_status=$?
10317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10318  test $ac_status = 0; }; then
10319    # Now try to grab the symbols.
10320    nlist=conftest.nm
10321    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10322  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10323  ac_status=$?
10324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325  test $ac_status = 0; } && test -s "$nlist"; then
10326      # Try sorting and uniquifying the output.
10327      if sort "$nlist" | uniq > "$nlist"T; then
10328	mv -f "$nlist"T "$nlist"
10329      else
10330	rm -f "$nlist"T
10331      fi
10332
10333      # Make sure that we snagged all the symbols we need.
10334      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10335	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10336	  cat <<_LT_EOF > conftest.$ac_ext
10337/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10338#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10339/* DATA imports from DLLs on WIN32 con't be const, because runtime
10340   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10341# define LT_DLSYM_CONST
10342#elif defined(__osf__)
10343/* This system does not cope well with relocations in const data.  */
10344# define LT_DLSYM_CONST
10345#else
10346# define LT_DLSYM_CONST const
10347#endif
10348
10349#ifdef __cplusplus
10350extern "C" {
10351#endif
10352
10353_LT_EOF
10354	  # Now generate the symbol file.
10355	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10356
10357	  cat <<_LT_EOF >> conftest.$ac_ext
10358
10359/* The mapping between symbol names and symbols.  */
10360LT_DLSYM_CONST struct {
10361  const char *name;
10362  void       *address;
10363}
10364lt__PROGRAM__LTX_preloaded_symbols[] =
10365{
10366  { "@PROGRAM@", (void *) 0 },
10367_LT_EOF
10368	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10369	  cat <<\_LT_EOF >> conftest.$ac_ext
10370  {0, (void *) 0}
10371};
10372
10373/* This works around a problem in FreeBSD linker */
10374#ifdef FREEBSD_WORKAROUND
10375static const void *lt_preloaded_setup() {
10376  return lt__PROGRAM__LTX_preloaded_symbols;
10377}
10378#endif
10379
10380#ifdef __cplusplus
10381}
10382#endif
10383_LT_EOF
10384	  # Now try linking the two files.
10385	  mv conftest.$ac_objext conftstm.$ac_objext
10386	  lt_globsym_save_LIBS=$LIBS
10387	  lt_globsym_save_CFLAGS=$CFLAGS
10388	  LIBS="conftstm.$ac_objext"
10389	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10390	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10391  (eval $ac_link) 2>&5
10392  ac_status=$?
10393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10394  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10395	    pipe_works=yes
10396	  fi
10397	  LIBS=$lt_globsym_save_LIBS
10398	  CFLAGS=$lt_globsym_save_CFLAGS
10399	else
10400	  echo "cannot find nm_test_func in $nlist" >&5
10401	fi
10402      else
10403	echo "cannot find nm_test_var in $nlist" >&5
10404      fi
10405    else
10406      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10407    fi
10408  else
10409    echo "$progname: failed program was:" >&5
10410    cat conftest.$ac_ext >&5
10411  fi
10412  rm -rf conftest* conftst*
10413
10414  # Do not use the global_symbol_pipe unless it works.
10415  if test "$pipe_works" = yes; then
10416    break
10417  else
10418    lt_cv_sys_global_symbol_pipe=
10419  fi
10420done
10421
10422fi
10423
10424if test -z "$lt_cv_sys_global_symbol_pipe"; then
10425  lt_cv_sys_global_symbol_to_cdecl=
10426fi
10427if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10429$as_echo "failed" >&6; }
10430else
10431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10432$as_echo "ok" >&6; }
10433fi
10434
10435# Response file support.
10436if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10437  nm_file_list_spec='@'
10438elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10439  nm_file_list_spec='@'
10440fi
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10469$as_echo_n "checking for sysroot... " >&6; }
10470
10471# Check whether --with-sysroot was given.
10472if test "${with_sysroot+set}" = set; then :
10473  withval=$with_sysroot;
10474else
10475  with_sysroot=no
10476fi
10477
10478
10479lt_sysroot=
10480case ${with_sysroot} in #(
10481 yes)
10482   if test "$GCC" = yes; then
10483     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10484   fi
10485   ;; #(
10486 /*)
10487   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10488   ;; #(
10489 no|'')
10490   ;; #(
10491 *)
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10493$as_echo "${with_sysroot}" >&6; }
10494   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10495   ;;
10496esac
10497
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10499$as_echo "${lt_sysroot:-no}" >&6; }
10500
10501
10502
10503
10504
10505# Check whether --enable-libtool-lock was given.
10506if test "${enable_libtool_lock+set}" = set; then :
10507  enableval=$enable_libtool_lock;
10508fi
10509
10510test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10511
10512# Some flags need to be propagated to the compiler or linker for good
10513# libtool support.
10514case $host in
10515ia64-*-hpux*)
10516  # Find out which ABI we are using.
10517  echo 'int i;' > conftest.$ac_ext
10518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10519  (eval $ac_compile) 2>&5
10520  ac_status=$?
10521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10522  test $ac_status = 0; }; then
10523    case `/usr/bin/file conftest.$ac_objext` in
10524      *ELF-32*)
10525	HPUX_IA64_MODE="32"
10526	;;
10527      *ELF-64*)
10528	HPUX_IA64_MODE="64"
10529	;;
10530    esac
10531  fi
10532  rm -rf conftest*
10533  ;;
10534*-*-irix6*)
10535  # Find out which ABI we are using.
10536  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10537  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10538  (eval $ac_compile) 2>&5
10539  ac_status=$?
10540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541  test $ac_status = 0; }; then
10542    if test "$lt_cv_prog_gnu_ld" = yes; then
10543      case `/usr/bin/file conftest.$ac_objext` in
10544	*32-bit*)
10545	  LD="${LD-ld} -melf32bsmip"
10546	  ;;
10547	*N32*)
10548	  LD="${LD-ld} -melf32bmipn32"
10549	  ;;
10550	*64-bit*)
10551	  LD="${LD-ld} -melf64bmip"
10552	;;
10553      esac
10554    else
10555      case `/usr/bin/file conftest.$ac_objext` in
10556	*32-bit*)
10557	  LD="${LD-ld} -32"
10558	  ;;
10559	*N32*)
10560	  LD="${LD-ld} -n32"
10561	  ;;
10562	*64-bit*)
10563	  LD="${LD-ld} -64"
10564	  ;;
10565      esac
10566    fi
10567  fi
10568  rm -rf conftest*
10569  ;;
10570
10571x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10572s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10573  # Find out which ABI we are using.
10574  echo 'int i;' > conftest.$ac_ext
10575  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10576  (eval $ac_compile) 2>&5
10577  ac_status=$?
10578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579  test $ac_status = 0; }; then
10580    case `/usr/bin/file conftest.o` in
10581      *32-bit*)
10582	case $host in
10583	  x86_64-*kfreebsd*-gnu)
10584	    LD="${LD-ld} -m elf_i386_fbsd"
10585	    ;;
10586	  x86_64-*linux*)
10587	    LD="${LD-ld} -m elf_i386"
10588	    ;;
10589	  ppc64-*linux*|powerpc64-*linux*)
10590	    LD="${LD-ld} -m elf32ppclinux"
10591	    ;;
10592	  s390x-*linux*)
10593	    LD="${LD-ld} -m elf_s390"
10594	    ;;
10595	  sparc64-*linux*)
10596	    LD="${LD-ld} -m elf32_sparc"
10597	    ;;
10598	esac
10599	;;
10600      *64-bit*)
10601	case $host in
10602	  x86_64-*kfreebsd*-gnu)
10603	    LD="${LD-ld} -m elf_x86_64_fbsd"
10604	    ;;
10605	  x86_64-*linux*)
10606	    LD="${LD-ld} -m elf_x86_64"
10607	    ;;
10608	  ppc*-*linux*|powerpc*-*linux*)
10609	    LD="${LD-ld} -m elf64ppc"
10610	    ;;
10611	  s390*-*linux*|s390*-*tpf*)
10612	    LD="${LD-ld} -m elf64_s390"
10613	    ;;
10614	  sparc*-*linux*)
10615	    LD="${LD-ld} -m elf64_sparc"
10616	    ;;
10617	esac
10618	;;
10619    esac
10620  fi
10621  rm -rf conftest*
10622  ;;
10623
10624*-*-sco3.2v5*)
10625  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10626  SAVE_CFLAGS="$CFLAGS"
10627  CFLAGS="$CFLAGS -belf"
10628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10629$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10630if ${lt_cv_cc_needs_belf+:} false; then :
10631  $as_echo_n "(cached) " >&6
10632else
10633  ac_ext=c
10634ac_cpp='$CPP $CPPFLAGS'
10635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637ac_compiler_gnu=$ac_cv_c_compiler_gnu
10638
10639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640/* end confdefs.h.  */
10641
10642int
10643main ()
10644{
10645
10646  ;
10647  return 0;
10648}
10649_ACEOF
10650if ac_fn_c_try_link "$LINENO"; then :
10651  lt_cv_cc_needs_belf=yes
10652else
10653  lt_cv_cc_needs_belf=no
10654fi
10655rm -f core conftest.err conftest.$ac_objext \
10656    conftest$ac_exeext conftest.$ac_ext
10657     ac_ext=c
10658ac_cpp='$CPP $CPPFLAGS'
10659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10661ac_compiler_gnu=$ac_cv_c_compiler_gnu
10662
10663fi
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10665$as_echo "$lt_cv_cc_needs_belf" >&6; }
10666  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10667    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10668    CFLAGS="$SAVE_CFLAGS"
10669  fi
10670  ;;
10671sparc*-*solaris*)
10672  # Find out which ABI we are using.
10673  echo 'int i;' > conftest.$ac_ext
10674  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10675  (eval $ac_compile) 2>&5
10676  ac_status=$?
10677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10678  test $ac_status = 0; }; then
10679    case `/usr/bin/file conftest.o` in
10680    *64-bit*)
10681      case $lt_cv_prog_gnu_ld in
10682      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10683      *)
10684	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10685	  LD="${LD-ld} -64"
10686	fi
10687	;;
10688      esac
10689      ;;
10690    esac
10691  fi
10692  rm -rf conftest*
10693  ;;
10694esac
10695
10696need_locks="$enable_libtool_lock"
10697
10698if test -n "$ac_tool_prefix"; then
10699  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10700set dummy ${ac_tool_prefix}mt; ac_word=$2
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702$as_echo_n "checking for $ac_word... " >&6; }
10703if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  if test -n "$MANIFEST_TOOL"; then
10707  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10708else
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712  IFS=$as_save_IFS
10713  test -z "$as_dir" && as_dir=.
10714    for ac_exec_ext in '' $ac_executable_extensions; do
10715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718    break 2
10719  fi
10720done
10721  done
10722IFS=$as_save_IFS
10723
10724fi
10725fi
10726MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10727if test -n "$MANIFEST_TOOL"; then
10728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10729$as_echo "$MANIFEST_TOOL" >&6; }
10730else
10731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732$as_echo "no" >&6; }
10733fi
10734
10735
10736fi
10737if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10738  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10739  # Extract the first word of "mt", so it can be a program name with args.
10740set dummy mt; ac_word=$2
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742$as_echo_n "checking for $ac_word... " >&6; }
10743if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10744  $as_echo_n "(cached) " >&6
10745else
10746  if test -n "$ac_ct_MANIFEST_TOOL"; then
10747  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10748else
10749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750for as_dir in $PATH
10751do
10752  IFS=$as_save_IFS
10753  test -z "$as_dir" && as_dir=.
10754    for ac_exec_ext in '' $ac_executable_extensions; do
10755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10756    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758    break 2
10759  fi
10760done
10761  done
10762IFS=$as_save_IFS
10763
10764fi
10765fi
10766ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10767if test -n "$ac_ct_MANIFEST_TOOL"; then
10768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10769$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10770else
10771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772$as_echo "no" >&6; }
10773fi
10774
10775  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10776    MANIFEST_TOOL=":"
10777  else
10778    case $cross_compiling:$ac_tool_warned in
10779yes:)
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10782ac_tool_warned=yes ;;
10783esac
10784    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10785  fi
10786else
10787  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10788fi
10789
10790test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10792$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10793if ${lt_cv_path_mainfest_tool+:} false; then :
10794  $as_echo_n "(cached) " >&6
10795else
10796  lt_cv_path_mainfest_tool=no
10797  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10798  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10799  cat conftest.err >&5
10800  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10801    lt_cv_path_mainfest_tool=yes
10802  fi
10803  rm -f conftest*
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10806$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10807if test "x$lt_cv_path_mainfest_tool" != xyes; then
10808  MANIFEST_TOOL=:
10809fi
10810
10811
10812
10813
10814
10815
10816  case $host_os in
10817    rhapsody* | darwin*)
10818    if test -n "$ac_tool_prefix"; then
10819  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10820set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822$as_echo_n "checking for $ac_word... " >&6; }
10823if ${ac_cv_prog_DSYMUTIL+:} false; then :
10824  $as_echo_n "(cached) " >&6
10825else
10826  if test -n "$DSYMUTIL"; then
10827  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10828else
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832  IFS=$as_save_IFS
10833  test -z "$as_dir" && as_dir=.
10834    for ac_exec_ext in '' $ac_executable_extensions; do
10835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10838    break 2
10839  fi
10840done
10841  done
10842IFS=$as_save_IFS
10843
10844fi
10845fi
10846DSYMUTIL=$ac_cv_prog_DSYMUTIL
10847if test -n "$DSYMUTIL"; then
10848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10849$as_echo "$DSYMUTIL" >&6; }
10850else
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852$as_echo "no" >&6; }
10853fi
10854
10855
10856fi
10857if test -z "$ac_cv_prog_DSYMUTIL"; then
10858  ac_ct_DSYMUTIL=$DSYMUTIL
10859  # Extract the first word of "dsymutil", so it can be a program name with args.
10860set dummy dsymutil; ac_word=$2
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862$as_echo_n "checking for $ac_word... " >&6; }
10863if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10864  $as_echo_n "(cached) " >&6
10865else
10866  if test -n "$ac_ct_DSYMUTIL"; then
10867  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10868else
10869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870for as_dir in $PATH
10871do
10872  IFS=$as_save_IFS
10873  test -z "$as_dir" && as_dir=.
10874    for ac_exec_ext in '' $ac_executable_extensions; do
10875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878    break 2
10879  fi
10880done
10881  done
10882IFS=$as_save_IFS
10883
10884fi
10885fi
10886ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10887if test -n "$ac_ct_DSYMUTIL"; then
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10889$as_echo "$ac_ct_DSYMUTIL" >&6; }
10890else
10891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892$as_echo "no" >&6; }
10893fi
10894
10895  if test "x$ac_ct_DSYMUTIL" = x; then
10896    DSYMUTIL=":"
10897  else
10898    case $cross_compiling:$ac_tool_warned in
10899yes:)
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10902ac_tool_warned=yes ;;
10903esac
10904    DSYMUTIL=$ac_ct_DSYMUTIL
10905  fi
10906else
10907  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10908fi
10909
10910    if test -n "$ac_tool_prefix"; then
10911  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10912set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914$as_echo_n "checking for $ac_word... " >&6; }
10915if ${ac_cv_prog_NMEDIT+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  if test -n "$NMEDIT"; then
10919  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10920else
10921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922for as_dir in $PATH
10923do
10924  IFS=$as_save_IFS
10925  test -z "$as_dir" && as_dir=.
10926    for ac_exec_ext in '' $ac_executable_extensions; do
10927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10928    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10930    break 2
10931  fi
10932done
10933  done
10934IFS=$as_save_IFS
10935
10936fi
10937fi
10938NMEDIT=$ac_cv_prog_NMEDIT
10939if test -n "$NMEDIT"; then
10940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10941$as_echo "$NMEDIT" >&6; }
10942else
10943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944$as_echo "no" >&6; }
10945fi
10946
10947
10948fi
10949if test -z "$ac_cv_prog_NMEDIT"; then
10950  ac_ct_NMEDIT=$NMEDIT
10951  # Extract the first word of "nmedit", so it can be a program name with args.
10952set dummy nmedit; ac_word=$2
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954$as_echo_n "checking for $ac_word... " >&6; }
10955if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10956  $as_echo_n "(cached) " >&6
10957else
10958  if test -n "$ac_ct_NMEDIT"; then
10959  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10960else
10961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962for as_dir in $PATH
10963do
10964  IFS=$as_save_IFS
10965  test -z "$as_dir" && as_dir=.
10966    for ac_exec_ext in '' $ac_executable_extensions; do
10967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970    break 2
10971  fi
10972done
10973  done
10974IFS=$as_save_IFS
10975
10976fi
10977fi
10978ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10979if test -n "$ac_ct_NMEDIT"; then
10980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10981$as_echo "$ac_ct_NMEDIT" >&6; }
10982else
10983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984$as_echo "no" >&6; }
10985fi
10986
10987  if test "x$ac_ct_NMEDIT" = x; then
10988    NMEDIT=":"
10989  else
10990    case $cross_compiling:$ac_tool_warned in
10991yes:)
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10994ac_tool_warned=yes ;;
10995esac
10996    NMEDIT=$ac_ct_NMEDIT
10997  fi
10998else
10999  NMEDIT="$ac_cv_prog_NMEDIT"
11000fi
11001
11002    if test -n "$ac_tool_prefix"; then
11003  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11004set dummy ${ac_tool_prefix}lipo; ac_word=$2
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006$as_echo_n "checking for $ac_word... " >&6; }
11007if ${ac_cv_prog_LIPO+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  if test -n "$LIPO"; then
11011  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11012else
11013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014for as_dir in $PATH
11015do
11016  IFS=$as_save_IFS
11017  test -z "$as_dir" && as_dir=.
11018    for ac_exec_ext in '' $ac_executable_extensions; do
11019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022    break 2
11023  fi
11024done
11025  done
11026IFS=$as_save_IFS
11027
11028fi
11029fi
11030LIPO=$ac_cv_prog_LIPO
11031if test -n "$LIPO"; then
11032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11033$as_echo "$LIPO" >&6; }
11034else
11035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036$as_echo "no" >&6; }
11037fi
11038
11039
11040fi
11041if test -z "$ac_cv_prog_LIPO"; then
11042  ac_ct_LIPO=$LIPO
11043  # Extract the first word of "lipo", so it can be a program name with args.
11044set dummy lipo; ac_word=$2
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046$as_echo_n "checking for $ac_word... " >&6; }
11047if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11048  $as_echo_n "(cached) " >&6
11049else
11050  if test -n "$ac_ct_LIPO"; then
11051  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11052else
11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054for as_dir in $PATH
11055do
11056  IFS=$as_save_IFS
11057  test -z "$as_dir" && as_dir=.
11058    for ac_exec_ext in '' $ac_executable_extensions; do
11059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060    ac_cv_prog_ac_ct_LIPO="lipo"
11061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062    break 2
11063  fi
11064done
11065  done
11066IFS=$as_save_IFS
11067
11068fi
11069fi
11070ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11071if test -n "$ac_ct_LIPO"; then
11072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11073$as_echo "$ac_ct_LIPO" >&6; }
11074else
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077fi
11078
11079  if test "x$ac_ct_LIPO" = x; then
11080    LIPO=":"
11081  else
11082    case $cross_compiling:$ac_tool_warned in
11083yes:)
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11086ac_tool_warned=yes ;;
11087esac
11088    LIPO=$ac_ct_LIPO
11089  fi
11090else
11091  LIPO="$ac_cv_prog_LIPO"
11092fi
11093
11094    if test -n "$ac_tool_prefix"; then
11095  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11096set dummy ${ac_tool_prefix}otool; ac_word=$2
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
11099if ${ac_cv_prog_OTOOL+:} false; then :
11100  $as_echo_n "(cached) " >&6
11101else
11102  if test -n "$OTOOL"; then
11103  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11104else
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108  IFS=$as_save_IFS
11109  test -z "$as_dir" && as_dir=.
11110    for ac_exec_ext in '' $ac_executable_extensions; do
11111  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11112    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114    break 2
11115  fi
11116done
11117  done
11118IFS=$as_save_IFS
11119
11120fi
11121fi
11122OTOOL=$ac_cv_prog_OTOOL
11123if test -n "$OTOOL"; then
11124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11125$as_echo "$OTOOL" >&6; }
11126else
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
11129fi
11130
11131
11132fi
11133if test -z "$ac_cv_prog_OTOOL"; then
11134  ac_ct_OTOOL=$OTOOL
11135  # Extract the first word of "otool", so it can be a program name with args.
11136set dummy otool; ac_word=$2
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138$as_echo_n "checking for $ac_word... " >&6; }
11139if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  if test -n "$ac_ct_OTOOL"; then
11143  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11144else
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148  IFS=$as_save_IFS
11149  test -z "$as_dir" && as_dir=.
11150    for ac_exec_ext in '' $ac_executable_extensions; do
11151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152    ac_cv_prog_ac_ct_OTOOL="otool"
11153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154    break 2
11155  fi
11156done
11157  done
11158IFS=$as_save_IFS
11159
11160fi
11161fi
11162ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11163if test -n "$ac_ct_OTOOL"; then
11164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11165$as_echo "$ac_ct_OTOOL" >&6; }
11166else
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168$as_echo "no" >&6; }
11169fi
11170
11171  if test "x$ac_ct_OTOOL" = x; then
11172    OTOOL=":"
11173  else
11174    case $cross_compiling:$ac_tool_warned in
11175yes:)
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178ac_tool_warned=yes ;;
11179esac
11180    OTOOL=$ac_ct_OTOOL
11181  fi
11182else
11183  OTOOL="$ac_cv_prog_OTOOL"
11184fi
11185
11186    if test -n "$ac_tool_prefix"; then
11187  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11188set dummy ${ac_tool_prefix}otool64; ac_word=$2
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190$as_echo_n "checking for $ac_word... " >&6; }
11191if ${ac_cv_prog_OTOOL64+:} false; then :
11192  $as_echo_n "(cached) " >&6
11193else
11194  if test -n "$OTOOL64"; then
11195  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200  IFS=$as_save_IFS
11201  test -z "$as_dir" && as_dir=.
11202    for ac_exec_ext in '' $ac_executable_extensions; do
11203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206    break 2
11207  fi
11208done
11209  done
11210IFS=$as_save_IFS
11211
11212fi
11213fi
11214OTOOL64=$ac_cv_prog_OTOOL64
11215if test -n "$OTOOL64"; then
11216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11217$as_echo "$OTOOL64" >&6; }
11218else
11219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220$as_echo "no" >&6; }
11221fi
11222
11223
11224fi
11225if test -z "$ac_cv_prog_OTOOL64"; then
11226  ac_ct_OTOOL64=$OTOOL64
11227  # Extract the first word of "otool64", so it can be a program name with args.
11228set dummy otool64; ac_word=$2
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230$as_echo_n "checking for $ac_word... " >&6; }
11231if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11232  $as_echo_n "(cached) " >&6
11233else
11234  if test -n "$ac_ct_OTOOL64"; then
11235  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11236else
11237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238for as_dir in $PATH
11239do
11240  IFS=$as_save_IFS
11241  test -z "$as_dir" && as_dir=.
11242    for ac_exec_ext in '' $ac_executable_extensions; do
11243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11244    ac_cv_prog_ac_ct_OTOOL64="otool64"
11245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246    break 2
11247  fi
11248done
11249  done
11250IFS=$as_save_IFS
11251
11252fi
11253fi
11254ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11255if test -n "$ac_ct_OTOOL64"; then
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11257$as_echo "$ac_ct_OTOOL64" >&6; }
11258else
11259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260$as_echo "no" >&6; }
11261fi
11262
11263  if test "x$ac_ct_OTOOL64" = x; then
11264    OTOOL64=":"
11265  else
11266    case $cross_compiling:$ac_tool_warned in
11267yes:)
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270ac_tool_warned=yes ;;
11271esac
11272    OTOOL64=$ac_ct_OTOOL64
11273  fi
11274else
11275  OTOOL64="$ac_cv_prog_OTOOL64"
11276fi
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11305$as_echo_n "checking for -single_module linker flag... " >&6; }
11306if ${lt_cv_apple_cc_single_mod+:} false; then :
11307  $as_echo_n "(cached) " >&6
11308else
11309  lt_cv_apple_cc_single_mod=no
11310      if test -z "${LT_MULTI_MODULE}"; then
11311	# By default we will add the -single_module flag. You can override
11312	# by either setting the environment variable LT_MULTI_MODULE
11313	# non-empty at configure time, or by adding -multi_module to the
11314	# link flags.
11315	rm -rf libconftest.dylib*
11316	echo "int foo(void){return 1;}" > conftest.c
11317	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11318-dynamiclib -Wl,-single_module conftest.c" >&5
11319	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11320	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11321        _lt_result=$?
11322	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11323	  lt_cv_apple_cc_single_mod=yes
11324	else
11325	  cat conftest.err >&5
11326	fi
11327	rm -rf libconftest.dylib*
11328	rm -f conftest.*
11329      fi
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11332$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11334$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11335if ${lt_cv_ld_exported_symbols_list+:} false; then :
11336  $as_echo_n "(cached) " >&6
11337else
11338  lt_cv_ld_exported_symbols_list=no
11339      save_LDFLAGS=$LDFLAGS
11340      echo "_main" > conftest.sym
11341      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11342      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345int
11346main ()
11347{
11348
11349  ;
11350  return 0;
11351}
11352_ACEOF
11353if ac_fn_c_try_link "$LINENO"; then :
11354  lt_cv_ld_exported_symbols_list=yes
11355else
11356  lt_cv_ld_exported_symbols_list=no
11357fi
11358rm -f core conftest.err conftest.$ac_objext \
11359    conftest$ac_exeext conftest.$ac_ext
11360	LDFLAGS="$save_LDFLAGS"
11361
11362fi
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11364$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11366$as_echo_n "checking for -force_load linker flag... " >&6; }
11367if ${lt_cv_ld_force_load+:} false; then :
11368  $as_echo_n "(cached) " >&6
11369else
11370  lt_cv_ld_force_load=no
11371      cat > conftest.c << _LT_EOF
11372int forced_loaded() { return 2;}
11373_LT_EOF
11374      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11375      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11376      echo "$AR cru libconftest.a conftest.o" >&5
11377      $AR cru libconftest.a conftest.o 2>&5
11378      echo "$RANLIB libconftest.a" >&5
11379      $RANLIB libconftest.a 2>&5
11380      cat > conftest.c << _LT_EOF
11381int main() { return 0;}
11382_LT_EOF
11383      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11384      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11385      _lt_result=$?
11386      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11387	lt_cv_ld_force_load=yes
11388      else
11389	cat conftest.err >&5
11390      fi
11391        rm -f conftest.err libconftest.a conftest conftest.c
11392        rm -rf conftest.dSYM
11393
11394fi
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11396$as_echo "$lt_cv_ld_force_load" >&6; }
11397    case $host_os in
11398    rhapsody* | darwin1.[012])
11399      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11400    darwin1.*)
11401      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11402    darwin*) # darwin 5.x on
11403      # if running on 10.5 or later, the deployment target defaults
11404      # to the OS version, if on x86, and 10.4, the deployment
11405      # target defaults to 10.4. Don't you love it?
11406      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11407	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11408	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11409	10.[012]*)
11410	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11411	10.*)
11412	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11413      esac
11414    ;;
11415  esac
11416    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11417      _lt_dar_single_mod='$single_module'
11418    fi
11419    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11420      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11421    else
11422      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11423    fi
11424    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11425      _lt_dsymutil='~$DSYMUTIL $lib || :'
11426    else
11427      _lt_dsymutil=
11428    fi
11429    ;;
11430  esac
11431
11432for ac_header in dlfcn.h
11433do :
11434  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11435"
11436if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11437  cat >>confdefs.h <<_ACEOF
11438#define HAVE_DLFCN_H 1
11439_ACEOF
11440
11441fi
11442
11443done
11444
11445
11446
11447
11448func_stripname_cnf ()
11449{
11450  case ${2} in
11451  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11452  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11453  esac
11454} # func_stripname_cnf
11455
11456
11457
11458
11459
11460# Set options
11461
11462
11463
11464        enable_dlopen=no
11465
11466
11467  enable_win32_dll=no
11468
11469
11470
11471  # Check whether --enable-static was given.
11472if test "${enable_static+set}" = set; then :
11473  enableval=$enable_static; p=${PACKAGE-default}
11474    case $enableval in
11475    yes) enable_static=yes ;;
11476    no) enable_static=no ;;
11477    *)
11478     enable_static=no
11479      # Look at the argument we got.  We use all the common list separators.
11480      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11481      for pkg in $enableval; do
11482	IFS="$lt_save_ifs"
11483	if test "X$pkg" = "X$p"; then
11484	  enable_static=yes
11485	fi
11486      done
11487      IFS="$lt_save_ifs"
11488      ;;
11489    esac
11490else
11491  enable_static=yes
11492fi
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503# Check whether --with-pic was given.
11504if test "${with_pic+set}" = set; then :
11505  withval=$with_pic; pic_mode="$withval"
11506else
11507  pic_mode=default
11508fi
11509
11510
11511test -z "$pic_mode" && pic_mode=default
11512
11513
11514
11515
11516
11517
11518
11519  # Check whether --enable-fast-install was given.
11520if test "${enable_fast_install+set}" = set; then :
11521  enableval=$enable_fast_install; p=${PACKAGE-default}
11522    case $enableval in
11523    yes) enable_fast_install=yes ;;
11524    no) enable_fast_install=no ;;
11525    *)
11526      enable_fast_install=no
11527      # Look at the argument we got.  We use all the common list separators.
11528      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11529      for pkg in $enableval; do
11530	IFS="$lt_save_ifs"
11531	if test "X$pkg" = "X$p"; then
11532	  enable_fast_install=yes
11533	fi
11534      done
11535      IFS="$lt_save_ifs"
11536      ;;
11537    esac
11538else
11539  enable_fast_install=yes
11540fi
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552# This can be used to rebuild libtool when needed
11553LIBTOOL_DEPS="$ltmain"
11554
11555# Always use our own libtool.
11556LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583test -z "$LN_S" && LN_S="ln -s"
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598if test -n "${ZSH_VERSION+set}" ; then
11599   setopt NO_GLOB_SUBST
11600fi
11601
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11603$as_echo_n "checking for objdir... " >&6; }
11604if ${lt_cv_objdir+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  rm -f .libs 2>/dev/null
11608mkdir .libs 2>/dev/null
11609if test -d .libs; then
11610  lt_cv_objdir=.libs
11611else
11612  # MS-DOS does not allow filenames that begin with a dot.
11613  lt_cv_objdir=_libs
11614fi
11615rmdir .libs 2>/dev/null
11616fi
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11618$as_echo "$lt_cv_objdir" >&6; }
11619objdir=$lt_cv_objdir
11620
11621
11622
11623
11624
11625cat >>confdefs.h <<_ACEOF
11626#define LT_OBJDIR "$lt_cv_objdir/"
11627_ACEOF
11628
11629
11630
11631
11632case $host_os in
11633aix3*)
11634  # AIX sometimes has problems with the GCC collect2 program.  For some
11635  # reason, if we set the COLLECT_NAMES environment variable, the problems
11636  # vanish in a puff of smoke.
11637  if test "X${COLLECT_NAMES+set}" != Xset; then
11638    COLLECT_NAMES=
11639    export COLLECT_NAMES
11640  fi
11641  ;;
11642esac
11643
11644# Global variables:
11645ofile=libtool
11646can_build_shared=yes
11647
11648# All known linkers require a `.a' archive for static linking (except MSVC,
11649# which needs '.lib').
11650libext=a
11651
11652with_gnu_ld="$lt_cv_prog_gnu_ld"
11653
11654old_CC="$CC"
11655old_CFLAGS="$CFLAGS"
11656
11657# Set sane defaults for various variables
11658test -z "$CC" && CC=cc
11659test -z "$LTCC" && LTCC=$CC
11660test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11661test -z "$LD" && LD=ld
11662test -z "$ac_objext" && ac_objext=o
11663
11664for cc_temp in $compiler""; do
11665  case $cc_temp in
11666    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11667    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11668    \-*) ;;
11669    *) break;;
11670  esac
11671done
11672cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11673
11674
11675# Only perform the check for file, if the check method requires it
11676test -z "$MAGIC_CMD" && MAGIC_CMD=file
11677case $deplibs_check_method in
11678file_magic*)
11679  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11681$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11682if ${lt_cv_path_MAGIC_CMD+:} false; then :
11683  $as_echo_n "(cached) " >&6
11684else
11685  case $MAGIC_CMD in
11686[\\/*] |  ?:[\\/]*)
11687  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11688  ;;
11689*)
11690  lt_save_MAGIC_CMD="$MAGIC_CMD"
11691  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11692  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11693  for ac_dir in $ac_dummy; do
11694    IFS="$lt_save_ifs"
11695    test -z "$ac_dir" && ac_dir=.
11696    if test -f $ac_dir/${ac_tool_prefix}file; then
11697      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11698      if test -n "$file_magic_test_file"; then
11699	case $deplibs_check_method in
11700	"file_magic "*)
11701	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11702	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11703	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11704	    $EGREP "$file_magic_regex" > /dev/null; then
11705	    :
11706	  else
11707	    cat <<_LT_EOF 1>&2
11708
11709*** Warning: the command libtool uses to detect shared libraries,
11710*** $file_magic_cmd, produces output that libtool cannot recognize.
11711*** The result is that libtool may fail to recognize shared libraries
11712*** as such.  This will affect the creation of libtool libraries that
11713*** depend on shared libraries, but programs linked with such libtool
11714*** libraries will work regardless of this problem.  Nevertheless, you
11715*** may want to report the problem to your system manager and/or to
11716*** bug-libtool@gnu.org
11717
11718_LT_EOF
11719	  fi ;;
11720	esac
11721      fi
11722      break
11723    fi
11724  done
11725  IFS="$lt_save_ifs"
11726  MAGIC_CMD="$lt_save_MAGIC_CMD"
11727  ;;
11728esac
11729fi
11730
11731MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11732if test -n "$MAGIC_CMD"; then
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11734$as_echo "$MAGIC_CMD" >&6; }
11735else
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
11738fi
11739
11740
11741
11742
11743
11744if test -z "$lt_cv_path_MAGIC_CMD"; then
11745  if test -n "$ac_tool_prefix"; then
11746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11747$as_echo_n "checking for file... " >&6; }
11748if ${lt_cv_path_MAGIC_CMD+:} false; then :
11749  $as_echo_n "(cached) " >&6
11750else
11751  case $MAGIC_CMD in
11752[\\/*] |  ?:[\\/]*)
11753  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11754  ;;
11755*)
11756  lt_save_MAGIC_CMD="$MAGIC_CMD"
11757  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11758  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11759  for ac_dir in $ac_dummy; do
11760    IFS="$lt_save_ifs"
11761    test -z "$ac_dir" && ac_dir=.
11762    if test -f $ac_dir/file; then
11763      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11764      if test -n "$file_magic_test_file"; then
11765	case $deplibs_check_method in
11766	"file_magic "*)
11767	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11768	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11769	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11770	    $EGREP "$file_magic_regex" > /dev/null; then
11771	    :
11772	  else
11773	    cat <<_LT_EOF 1>&2
11774
11775*** Warning: the command libtool uses to detect shared libraries,
11776*** $file_magic_cmd, produces output that libtool cannot recognize.
11777*** The result is that libtool may fail to recognize shared libraries
11778*** as such.  This will affect the creation of libtool libraries that
11779*** depend on shared libraries, but programs linked with such libtool
11780*** libraries will work regardless of this problem.  Nevertheless, you
11781*** may want to report the problem to your system manager and/or to
11782*** bug-libtool@gnu.org
11783
11784_LT_EOF
11785	  fi ;;
11786	esac
11787      fi
11788      break
11789    fi
11790  done
11791  IFS="$lt_save_ifs"
11792  MAGIC_CMD="$lt_save_MAGIC_CMD"
11793  ;;
11794esac
11795fi
11796
11797MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11798if test -n "$MAGIC_CMD"; then
11799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11800$as_echo "$MAGIC_CMD" >&6; }
11801else
11802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803$as_echo "no" >&6; }
11804fi
11805
11806
11807  else
11808    MAGIC_CMD=:
11809  fi
11810fi
11811
11812  fi
11813  ;;
11814esac
11815
11816# Use C for the default configuration in the libtool script
11817
11818lt_save_CC="$CC"
11819ac_ext=c
11820ac_cpp='$CPP $CPPFLAGS'
11821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824
11825
11826# Source file extension for C test sources.
11827ac_ext=c
11828
11829# Object file extension for compiled C test sources.
11830objext=o
11831objext=$objext
11832
11833# Code to be used in simple compile tests
11834lt_simple_compile_test_code="int some_variable = 0;"
11835
11836# Code to be used in simple link tests
11837lt_simple_link_test_code='int main(){return(0);}'
11838
11839
11840
11841
11842
11843
11844
11845# If no C compiler was specified, use CC.
11846LTCC=${LTCC-"$CC"}
11847
11848# If no C compiler flags were specified, use CFLAGS.
11849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11850
11851# Allow CC to be a program name with arguments.
11852compiler=$CC
11853
11854# Save the default compiler, since it gets overwritten when the other
11855# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11856compiler_DEFAULT=$CC
11857
11858# save warnings/boilerplate of simple test code
11859ac_outfile=conftest.$ac_objext
11860echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11862_lt_compiler_boilerplate=`cat conftest.err`
11863$RM conftest*
11864
11865ac_outfile=conftest.$ac_objext
11866echo "$lt_simple_link_test_code" >conftest.$ac_ext
11867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11868_lt_linker_boilerplate=`cat conftest.err`
11869$RM -r conftest*
11870
11871
11872## CAVEAT EMPTOR:
11873## There is no encapsulation within the following macros, do not change
11874## the running order or otherwise move them around unless you know exactly
11875## what you are doing...
11876if test -n "$compiler"; then
11877
11878lt_prog_compiler_no_builtin_flag=
11879
11880if test "$GCC" = yes; then
11881  case $cc_basename in
11882  nvcc*)
11883    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11884  *)
11885    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11886  esac
11887
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11889$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11890if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11891  $as_echo_n "(cached) " >&6
11892else
11893  lt_cv_prog_compiler_rtti_exceptions=no
11894   ac_outfile=conftest.$ac_objext
11895   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11896   lt_compiler_flag="-fno-rtti -fno-exceptions"
11897   # Insert the option either (1) after the last *FLAGS variable, or
11898   # (2) before a word containing "conftest.", or (3) at the end.
11899   # Note that $ac_compile itself does not contain backslashes and begins
11900   # with a dollar sign (not a hyphen), so the echo should work correctly.
11901   # The option is referenced via a variable to avoid confusing sed.
11902   lt_compile=`echo "$ac_compile" | $SED \
11903   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11904   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11905   -e 's:$: $lt_compiler_flag:'`
11906   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11907   (eval "$lt_compile" 2>conftest.err)
11908   ac_status=$?
11909   cat conftest.err >&5
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   if (exit $ac_status) && test -s "$ac_outfile"; then
11912     # The compiler can only warn and ignore the option if not recognized
11913     # So say no if there are warnings other than the usual output.
11914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11915     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11916     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11917       lt_cv_prog_compiler_rtti_exceptions=yes
11918     fi
11919   fi
11920   $RM conftest*
11921
11922fi
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11924$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11925
11926if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11927    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11928else
11929    :
11930fi
11931
11932fi
11933
11934
11935
11936
11937
11938
11939  lt_prog_compiler_wl=
11940lt_prog_compiler_pic=
11941lt_prog_compiler_static=
11942
11943
11944  if test "$GCC" = yes; then
11945    lt_prog_compiler_wl='-Wl,'
11946    lt_prog_compiler_static='-static'
11947
11948    case $host_os in
11949      aix*)
11950      # All AIX code is PIC.
11951      if test "$host_cpu" = ia64; then
11952	# AIX 5 now supports IA64 processor
11953	lt_prog_compiler_static='-Bstatic'
11954      fi
11955      ;;
11956
11957    amigaos*)
11958      case $host_cpu in
11959      powerpc)
11960            # see comment about AmigaOS4 .so support
11961            lt_prog_compiler_pic='-fPIC'
11962        ;;
11963      m68k)
11964            # FIXME: we need at least 68020 code to build shared libraries, but
11965            # adding the `-m68020' flag to GCC prevents building anything better,
11966            # like `-m68040'.
11967            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11968        ;;
11969      esac
11970      ;;
11971
11972    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11973      # PIC is the default for these OSes.
11974      ;;
11975
11976    mingw* | cygwin* | pw32* | os2* | cegcc*)
11977      # This hack is so that the source file can tell whether it is being
11978      # built for inclusion in a dll (and should export symbols for example).
11979      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11980      # (--disable-auto-import) libraries
11981      lt_prog_compiler_pic='-DDLL_EXPORT'
11982      ;;
11983
11984    darwin* | rhapsody*)
11985      # PIC is the default on this platform
11986      # Common symbols not allowed in MH_DYLIB files
11987      lt_prog_compiler_pic='-fno-common'
11988      ;;
11989
11990    haiku*)
11991      # PIC is the default for Haiku.
11992      # The "-static" flag exists, but is broken.
11993      lt_prog_compiler_static=
11994      ;;
11995
11996    hpux*)
11997      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11998      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11999      # sets the default TLS model and affects inlining.
12000      case $host_cpu in
12001      hppa*64*)
12002	# +Z the default
12003	;;
12004      *)
12005	lt_prog_compiler_pic='-fPIC'
12006	;;
12007      esac
12008      ;;
12009
12010    interix[3-9]*)
12011      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12012      # Instead, we relocate shared libraries at runtime.
12013      ;;
12014
12015    msdosdjgpp*)
12016      # Just because we use GCC doesn't mean we suddenly get shared libraries
12017      # on systems that don't support them.
12018      lt_prog_compiler_can_build_shared=no
12019      enable_shared=no
12020      ;;
12021
12022    *nto* | *qnx*)
12023      # QNX uses GNU C++, but need to define -shared option too, otherwise
12024      # it will coredump.
12025      lt_prog_compiler_pic='-fPIC -shared'
12026      ;;
12027
12028    sysv4*MP*)
12029      if test -d /usr/nec; then
12030	lt_prog_compiler_pic=-Kconform_pic
12031      fi
12032      ;;
12033
12034    *)
12035      lt_prog_compiler_pic='-fPIC'
12036      ;;
12037    esac
12038
12039    case $cc_basename in
12040    nvcc*) # Cuda Compiler Driver 2.2
12041      lt_prog_compiler_wl='-Xlinker '
12042      lt_prog_compiler_pic='-Xcompiler -fPIC'
12043      ;;
12044    esac
12045  else
12046    # PORTME Check for flag to pass linker flags through the system compiler.
12047    case $host_os in
12048    aix*)
12049      lt_prog_compiler_wl='-Wl,'
12050      if test "$host_cpu" = ia64; then
12051	# AIX 5 now supports IA64 processor
12052	lt_prog_compiler_static='-Bstatic'
12053      else
12054	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12055      fi
12056      ;;
12057
12058    mingw* | cygwin* | pw32* | os2* | cegcc*)
12059      # This hack is so that the source file can tell whether it is being
12060      # built for inclusion in a dll (and should export symbols for example).
12061      lt_prog_compiler_pic='-DDLL_EXPORT'
12062      ;;
12063
12064    hpux9* | hpux10* | hpux11*)
12065      lt_prog_compiler_wl='-Wl,'
12066      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12067      # not for PA HP-UX.
12068      case $host_cpu in
12069      hppa*64*|ia64*)
12070	# +Z the default
12071	;;
12072      *)
12073	lt_prog_compiler_pic='+Z'
12074	;;
12075      esac
12076      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12077      lt_prog_compiler_static='${wl}-a ${wl}archive'
12078      ;;
12079
12080    irix5* | irix6* | nonstopux*)
12081      lt_prog_compiler_wl='-Wl,'
12082      # PIC (with -KPIC) is the default.
12083      lt_prog_compiler_static='-non_shared'
12084      ;;
12085
12086    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12087      case $cc_basename in
12088      # old Intel for x86_64 which still supported -KPIC.
12089      ecc*)
12090	lt_prog_compiler_wl='-Wl,'
12091	lt_prog_compiler_pic='-KPIC'
12092	lt_prog_compiler_static='-static'
12093        ;;
12094      # icc used to be incompatible with GCC.
12095      # ICC 10 doesn't accept -KPIC any more.
12096      icc* | ifort*)
12097	lt_prog_compiler_wl='-Wl,'
12098	lt_prog_compiler_pic='-fPIC'
12099	lt_prog_compiler_static='-static'
12100        ;;
12101      # Lahey Fortran 8.1.
12102      lf95*)
12103	lt_prog_compiler_wl='-Wl,'
12104	lt_prog_compiler_pic='--shared'
12105	lt_prog_compiler_static='--static'
12106	;;
12107      nagfor*)
12108	# NAG Fortran compiler
12109	lt_prog_compiler_wl='-Wl,-Wl,,'
12110	lt_prog_compiler_pic='-PIC'
12111	lt_prog_compiler_static='-Bstatic'
12112	;;
12113      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12114        # Portland Group compilers (*not* the Pentium gcc compiler,
12115	# which looks to be a dead project)
12116	lt_prog_compiler_wl='-Wl,'
12117	lt_prog_compiler_pic='-fpic'
12118	lt_prog_compiler_static='-Bstatic'
12119        ;;
12120      ccc*)
12121        lt_prog_compiler_wl='-Wl,'
12122        # All Alpha code is PIC.
12123        lt_prog_compiler_static='-non_shared'
12124        ;;
12125      xl* | bgxl* | bgf* | mpixl*)
12126	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12127	lt_prog_compiler_wl='-Wl,'
12128	lt_prog_compiler_pic='-qpic'
12129	lt_prog_compiler_static='-qstaticlink'
12130	;;
12131      *)
12132	case `$CC -V 2>&1 | sed 5q` in
12133	*Sun\ F* | *Sun*Fortran*)
12134	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12135	  lt_prog_compiler_pic='-KPIC'
12136	  lt_prog_compiler_static='-Bstatic'
12137	  lt_prog_compiler_wl=''
12138	  ;;
12139	*Sun\ C*)
12140	  # Sun C 5.9
12141	  lt_prog_compiler_pic='-KPIC'
12142	  lt_prog_compiler_static='-Bstatic'
12143	  lt_prog_compiler_wl='-Wl,'
12144	  ;;
12145	esac
12146	;;
12147      esac
12148      ;;
12149
12150    newsos6)
12151      lt_prog_compiler_pic='-KPIC'
12152      lt_prog_compiler_static='-Bstatic'
12153      ;;
12154
12155    *nto* | *qnx*)
12156      # QNX uses GNU C++, but need to define -shared option too, otherwise
12157      # it will coredump.
12158      lt_prog_compiler_pic='-fPIC -shared'
12159      ;;
12160
12161    osf3* | osf4* | osf5*)
12162      lt_prog_compiler_wl='-Wl,'
12163      # All OSF/1 code is PIC.
12164      lt_prog_compiler_static='-non_shared'
12165      ;;
12166
12167    rdos*)
12168      lt_prog_compiler_static='-non_shared'
12169      ;;
12170
12171    solaris*)
12172      lt_prog_compiler_pic='-KPIC'
12173      lt_prog_compiler_static='-Bstatic'
12174      case $cc_basename in
12175      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12176	lt_prog_compiler_wl='-Qoption ld ';;
12177      *)
12178	lt_prog_compiler_wl='-Wl,';;
12179      esac
12180      ;;
12181
12182    sunos4*)
12183      lt_prog_compiler_wl='-Qoption ld '
12184      lt_prog_compiler_pic='-PIC'
12185      lt_prog_compiler_static='-Bstatic'
12186      ;;
12187
12188    sysv4 | sysv4.2uw2* | sysv4.3*)
12189      lt_prog_compiler_wl='-Wl,'
12190      lt_prog_compiler_pic='-KPIC'
12191      lt_prog_compiler_static='-Bstatic'
12192      ;;
12193
12194    sysv4*MP*)
12195      if test -d /usr/nec ;then
12196	lt_prog_compiler_pic='-Kconform_pic'
12197	lt_prog_compiler_static='-Bstatic'
12198      fi
12199      ;;
12200
12201    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12202      lt_prog_compiler_wl='-Wl,'
12203      lt_prog_compiler_pic='-KPIC'
12204      lt_prog_compiler_static='-Bstatic'
12205      ;;
12206
12207    unicos*)
12208      lt_prog_compiler_wl='-Wl,'
12209      lt_prog_compiler_can_build_shared=no
12210      ;;
12211
12212    uts4*)
12213      lt_prog_compiler_pic='-pic'
12214      lt_prog_compiler_static='-Bstatic'
12215      ;;
12216
12217    *)
12218      lt_prog_compiler_can_build_shared=no
12219      ;;
12220    esac
12221  fi
12222
12223case $host_os in
12224  # For platforms which do not support PIC, -DPIC is meaningless:
12225  *djgpp*)
12226    lt_prog_compiler_pic=
12227    ;;
12228  *)
12229    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12230    ;;
12231esac
12232
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12234$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12235if ${lt_cv_prog_compiler_pic+:} false; then :
12236  $as_echo_n "(cached) " >&6
12237else
12238  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12239fi
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12241$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12242lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12243
12244#
12245# Check to make sure the PIC flag actually works.
12246#
12247if test -n "$lt_prog_compiler_pic"; then
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12249$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12250if ${lt_cv_prog_compiler_pic_works+:} false; then :
12251  $as_echo_n "(cached) " >&6
12252else
12253  lt_cv_prog_compiler_pic_works=no
12254   ac_outfile=conftest.$ac_objext
12255   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12256   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12257   # Insert the option either (1) after the last *FLAGS variable, or
12258   # (2) before a word containing "conftest.", or (3) at the end.
12259   # Note that $ac_compile itself does not contain backslashes and begins
12260   # with a dollar sign (not a hyphen), so the echo should work correctly.
12261   # The option is referenced via a variable to avoid confusing sed.
12262   lt_compile=`echo "$ac_compile" | $SED \
12263   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12264   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12265   -e 's:$: $lt_compiler_flag:'`
12266   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12267   (eval "$lt_compile" 2>conftest.err)
12268   ac_status=$?
12269   cat conftest.err >&5
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   if (exit $ac_status) && test -s "$ac_outfile"; then
12272     # The compiler can only warn and ignore the option if not recognized
12273     # So say no if there are warnings other than the usual output.
12274     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12275     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12276     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12277       lt_cv_prog_compiler_pic_works=yes
12278     fi
12279   fi
12280   $RM conftest*
12281
12282fi
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12284$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12285
12286if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12287    case $lt_prog_compiler_pic in
12288     "" | " "*) ;;
12289     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12290     esac
12291else
12292    lt_prog_compiler_pic=
12293     lt_prog_compiler_can_build_shared=no
12294fi
12295
12296fi
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308#
12309# Check to make sure the static flag actually works.
12310#
12311wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12313$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12314if ${lt_cv_prog_compiler_static_works+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317  lt_cv_prog_compiler_static_works=no
12318   save_LDFLAGS="$LDFLAGS"
12319   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12320   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12321   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12322     # The linker can only warn and ignore the option if not recognized
12323     # So say no if there are warnings
12324     if test -s conftest.err; then
12325       # Append any errors to the config.log.
12326       cat conftest.err 1>&5
12327       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12328       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12329       if diff conftest.exp conftest.er2 >/dev/null; then
12330         lt_cv_prog_compiler_static_works=yes
12331       fi
12332     else
12333       lt_cv_prog_compiler_static_works=yes
12334     fi
12335   fi
12336   $RM -r conftest*
12337   LDFLAGS="$save_LDFLAGS"
12338
12339fi
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12341$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12342
12343if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12344    :
12345else
12346    lt_prog_compiler_static=
12347fi
12348
12349
12350
12351
12352
12353
12354
12355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12356$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12357if ${lt_cv_prog_compiler_c_o+:} false; then :
12358  $as_echo_n "(cached) " >&6
12359else
12360  lt_cv_prog_compiler_c_o=no
12361   $RM -r conftest 2>/dev/null
12362   mkdir conftest
12363   cd conftest
12364   mkdir out
12365   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12366
12367   lt_compiler_flag="-o out/conftest2.$ac_objext"
12368   # Insert the option either (1) after the last *FLAGS variable, or
12369   # (2) before a word containing "conftest.", or (3) at the end.
12370   # Note that $ac_compile itself does not contain backslashes and begins
12371   # with a dollar sign (not a hyphen), so the echo should work correctly.
12372   lt_compile=`echo "$ac_compile" | $SED \
12373   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12374   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12375   -e 's:$: $lt_compiler_flag:'`
12376   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12377   (eval "$lt_compile" 2>out/conftest.err)
12378   ac_status=$?
12379   cat out/conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12382   then
12383     # The compiler can only warn and ignore the option if not recognized
12384     # So say no if there are warnings
12385     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12386     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12387     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12388       lt_cv_prog_compiler_c_o=yes
12389     fi
12390   fi
12391   chmod u+w . 2>&5
12392   $RM conftest*
12393   # SGI C++ compiler will create directory out/ii_files/ for
12394   # template instantiation
12395   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12396   $RM out/* && rmdir out
12397   cd ..
12398   $RM -r conftest
12399   $RM conftest*
12400
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12403$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12404
12405
12406
12407
12408
12409
12410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12411$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12412if ${lt_cv_prog_compiler_c_o+:} false; then :
12413  $as_echo_n "(cached) " >&6
12414else
12415  lt_cv_prog_compiler_c_o=no
12416   $RM -r conftest 2>/dev/null
12417   mkdir conftest
12418   cd conftest
12419   mkdir out
12420   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421
12422   lt_compiler_flag="-o out/conftest2.$ac_objext"
12423   # Insert the option either (1) after the last *FLAGS variable, or
12424   # (2) before a word containing "conftest.", or (3) at the end.
12425   # Note that $ac_compile itself does not contain backslashes and begins
12426   # with a dollar sign (not a hyphen), so the echo should work correctly.
12427   lt_compile=`echo "$ac_compile" | $SED \
12428   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12430   -e 's:$: $lt_compiler_flag:'`
12431   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12432   (eval "$lt_compile" 2>out/conftest.err)
12433   ac_status=$?
12434   cat out/conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12437   then
12438     # The compiler can only warn and ignore the option if not recognized
12439     # So say no if there are warnings
12440     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12441     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12442     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12443       lt_cv_prog_compiler_c_o=yes
12444     fi
12445   fi
12446   chmod u+w . 2>&5
12447   $RM conftest*
12448   # SGI C++ compiler will create directory out/ii_files/ for
12449   # template instantiation
12450   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12451   $RM out/* && rmdir out
12452   cd ..
12453   $RM -r conftest
12454   $RM conftest*
12455
12456fi
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12458$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12459
12460
12461
12462
12463hard_links="nottested"
12464if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12465  # do not overwrite the value of need_locks provided by the user
12466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12467$as_echo_n "checking if we can lock with hard links... " >&6; }
12468  hard_links=yes
12469  $RM conftest*
12470  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471  touch conftest.a
12472  ln conftest.a conftest.b 2>&5 || hard_links=no
12473  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12475$as_echo "$hard_links" >&6; }
12476  if test "$hard_links" = no; then
12477    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12478$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12479    need_locks=warn
12480  fi
12481else
12482  need_locks=no
12483fi
12484
12485
12486
12487
12488
12489
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12491$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12492
12493  runpath_var=
12494  allow_undefined_flag=
12495  always_export_symbols=no
12496  archive_cmds=
12497  archive_expsym_cmds=
12498  compiler_needs_object=no
12499  enable_shared_with_static_runtimes=no
12500  export_dynamic_flag_spec=
12501  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12502  hardcode_automatic=no
12503  hardcode_direct=no
12504  hardcode_direct_absolute=no
12505  hardcode_libdir_flag_spec=
12506  hardcode_libdir_flag_spec_ld=
12507  hardcode_libdir_separator=
12508  hardcode_minus_L=no
12509  hardcode_shlibpath_var=unsupported
12510  inherit_rpath=no
12511  link_all_deplibs=unknown
12512  module_cmds=
12513  module_expsym_cmds=
12514  old_archive_from_new_cmds=
12515  old_archive_from_expsyms_cmds=
12516  thread_safe_flag_spec=
12517  whole_archive_flag_spec=
12518  # include_expsyms should be a list of space-separated symbols to be *always*
12519  # included in the symbol list
12520  include_expsyms=
12521  # exclude_expsyms can be an extended regexp of symbols to exclude
12522  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12523  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12524  # as well as any symbol that contains `d'.
12525  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12526  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12527  # platforms (ab)use it in PIC code, but their linkers get confused if
12528  # the symbol is explicitly referenced.  Since portable code cannot
12529  # rely on this symbol name, it's probably fine to never include it in
12530  # preloaded symbol tables.
12531  # Exclude shared library initialization/finalization symbols.
12532  extract_expsyms_cmds=
12533
12534  case $host_os in
12535  cygwin* | mingw* | pw32* | cegcc*)
12536    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12537    # When not using gcc, we currently assume that we are using
12538    # Microsoft Visual C++.
12539    if test "$GCC" != yes; then
12540      with_gnu_ld=no
12541    fi
12542    ;;
12543  interix*)
12544    # we just hope/assume this is gcc and not c89 (= MSVC++)
12545    with_gnu_ld=yes
12546    ;;
12547  openbsd*)
12548    with_gnu_ld=no
12549    ;;
12550  esac
12551
12552  ld_shlibs=yes
12553
12554  # On some targets, GNU ld is compatible enough with the native linker
12555  # that we're better off using the native interface for both.
12556  lt_use_gnu_ld_interface=no
12557  if test "$with_gnu_ld" = yes; then
12558    case $host_os in
12559      aix*)
12560	# The AIX port of GNU ld has always aspired to compatibility
12561	# with the native linker.  However, as the warning in the GNU ld
12562	# block says, versions before 2.19.5* couldn't really create working
12563	# shared libraries, regardless of the interface used.
12564	case `$LD -v 2>&1` in
12565	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12566	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12567	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12568	  *)
12569	    lt_use_gnu_ld_interface=yes
12570	    ;;
12571	esac
12572	;;
12573      *)
12574	lt_use_gnu_ld_interface=yes
12575	;;
12576    esac
12577  fi
12578
12579  if test "$lt_use_gnu_ld_interface" = yes; then
12580    # If archive_cmds runs LD, not CC, wlarc should be empty
12581    wlarc='${wl}'
12582
12583    # Set some defaults for GNU ld with shared library support. These
12584    # are reset later if shared libraries are not supported. Putting them
12585    # here allows them to be overridden if necessary.
12586    runpath_var=LD_RUN_PATH
12587    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12588    export_dynamic_flag_spec='${wl}--export-dynamic'
12589    # ancient GNU ld didn't support --whole-archive et. al.
12590    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12591      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12592    else
12593      whole_archive_flag_spec=
12594    fi
12595    supports_anon_versioning=no
12596    case `$LD -v 2>&1` in
12597      *GNU\ gold*) supports_anon_versioning=yes ;;
12598      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12599      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12600      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12601      *\ 2.11.*) ;; # other 2.11 versions
12602      *) supports_anon_versioning=yes ;;
12603    esac
12604
12605    # See if GNU ld supports shared libraries.
12606    case $host_os in
12607    aix[3-9]*)
12608      # On AIX/PPC, the GNU linker is very broken
12609      if test "$host_cpu" != ia64; then
12610	ld_shlibs=no
12611	cat <<_LT_EOF 1>&2
12612
12613*** Warning: the GNU linker, at least up to release 2.19, is reported
12614*** to be unable to reliably create shared libraries on AIX.
12615*** Therefore, libtool is disabling shared libraries support.  If you
12616*** really care for shared libraries, you may want to install binutils
12617*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12618*** You will then need to restart the configuration process.
12619
12620_LT_EOF
12621      fi
12622      ;;
12623
12624    amigaos*)
12625      case $host_cpu in
12626      powerpc)
12627            # see comment about AmigaOS4 .so support
12628            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12629            archive_expsym_cmds=''
12630        ;;
12631      m68k)
12632            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)'
12633            hardcode_libdir_flag_spec='-L$libdir'
12634            hardcode_minus_L=yes
12635        ;;
12636      esac
12637      ;;
12638
12639    beos*)
12640      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12641	allow_undefined_flag=unsupported
12642	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12643	# support --undefined.  This deserves some investigation.  FIXME
12644	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645      else
12646	ld_shlibs=no
12647      fi
12648      ;;
12649
12650    cygwin* | mingw* | pw32* | cegcc*)
12651      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12652      # as there is no search path for DLLs.
12653      hardcode_libdir_flag_spec='-L$libdir'
12654      export_dynamic_flag_spec='${wl}--export-all-symbols'
12655      allow_undefined_flag=unsupported
12656      always_export_symbols=no
12657      enable_shared_with_static_runtimes=yes
12658      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'
12659      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12660
12661      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663	# If the export-symbols file already is a .def file (1st line
12664	# is EXPORTS), use it as is; otherwise, prepend...
12665	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12666	  cp $export_symbols $output_objdir/$soname.def;
12667	else
12668	  echo EXPORTS > $output_objdir/$soname.def;
12669	  cat $export_symbols >> $output_objdir/$soname.def;
12670	fi~
12671	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12672      else
12673	ld_shlibs=no
12674      fi
12675      ;;
12676
12677    haiku*)
12678      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679      link_all_deplibs=yes
12680      ;;
12681
12682    interix[3-9]*)
12683      hardcode_direct=no
12684      hardcode_shlibpath_var=no
12685      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12686      export_dynamic_flag_spec='${wl}-E'
12687      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12688      # Instead, shared libraries are loaded at an image base (0x10000000 by
12689      # default) and relocated if they conflict, which is a slow very memory
12690      # consuming and fragmenting process.  To avoid this, we pick a random,
12691      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12692      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12693      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12694      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'
12695      ;;
12696
12697    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12698      tmp_diet=no
12699      if test "$host_os" = linux-dietlibc; then
12700	case $cc_basename in
12701	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12702	esac
12703      fi
12704      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12705	 && test "$tmp_diet" = no
12706      then
12707	tmp_addflag=' $pic_flag'
12708	tmp_sharedflag='-shared'
12709	case $cc_basename,$host_cpu in
12710        pgcc*)				# Portland Group C compiler
12711	  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'
12712	  tmp_addflag=' $pic_flag'
12713	  ;;
12714	pgf77* | pgf90* | pgf95* | pgfortran*)
12715					# Portland Group f77 and f90 compilers
12716	  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'
12717	  tmp_addflag=' $pic_flag -Mnomain' ;;
12718	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12719	  tmp_addflag=' -i_dynamic' ;;
12720	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12721	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12722	ifc* | ifort*)			# Intel Fortran compiler
12723	  tmp_addflag=' -nofor_main' ;;
12724	lf95*)				# Lahey Fortran 8.1
12725	  whole_archive_flag_spec=
12726	  tmp_sharedflag='--shared' ;;
12727	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12728	  tmp_sharedflag='-qmkshrobj'
12729	  tmp_addflag= ;;
12730	nvcc*)	# Cuda Compiler Driver 2.2
12731	  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'
12732	  compiler_needs_object=yes
12733	  ;;
12734	esac
12735	case `$CC -V 2>&1 | sed 5q` in
12736	*Sun\ C*)			# Sun C 5.9
12737	  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'
12738	  compiler_needs_object=yes
12739	  tmp_sharedflag='-G' ;;
12740	*Sun\ F*)			# Sun Fortran 8.3
12741	  tmp_sharedflag='-G' ;;
12742	esac
12743	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744
12745        if test "x$supports_anon_versioning" = xyes; then
12746          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12747	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12748	    echo "local: *; };" >> $output_objdir/$libname.ver~
12749	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12750        fi
12751
12752	case $cc_basename in
12753	xlf* | bgf* | bgxlf* | mpixlf*)
12754	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12755	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12756	  hardcode_libdir_flag_spec=
12757	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
12758	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12759	  if test "x$supports_anon_versioning" = xyes; then
12760	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12761	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12762	      echo "local: *; };" >> $output_objdir/$libname.ver~
12763	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12764	  fi
12765	  ;;
12766	esac
12767      else
12768        ld_shlibs=no
12769      fi
12770      ;;
12771
12772    netbsd*)
12773      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12775	wlarc=
12776      else
12777	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12779      fi
12780      ;;
12781
12782    solaris*)
12783      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12784	ld_shlibs=no
12785	cat <<_LT_EOF 1>&2
12786
12787*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788*** create shared libraries on Solaris systems.  Therefore, libtool
12789*** is disabling shared libraries support.  We urge you to upgrade GNU
12790*** binutils to release 2.9.1 or newer.  Another option is to modify
12791*** your PATH or compiler configuration so that the native linker is
12792*** used, and then restart.
12793
12794_LT_EOF
12795      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12796	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798      else
12799	ld_shlibs=no
12800      fi
12801      ;;
12802
12803    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12804      case `$LD -v 2>&1` in
12805        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12806	ld_shlibs=no
12807	cat <<_LT_EOF 1>&2
12808
12809*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12810*** reliably create shared libraries on SCO systems.  Therefore, libtool
12811*** is disabling shared libraries support.  We urge you to upgrade GNU
12812*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12813*** your PATH or compiler configuration so that the native linker is
12814*** used, and then restart.
12815
12816_LT_EOF
12817	;;
12818	*)
12819	  # For security reasons, it is highly recommended that you always
12820	  # use absolute paths for naming shared libraries, and exclude the
12821	  # DT_RUNPATH tag from executables and libraries.  But doing so
12822	  # requires that you compile everything twice, which is a pain.
12823	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12825	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12827	  else
12828	    ld_shlibs=no
12829	  fi
12830	;;
12831      esac
12832      ;;
12833
12834    sunos4*)
12835      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12836      wlarc=
12837      hardcode_direct=yes
12838      hardcode_shlibpath_var=no
12839      ;;
12840
12841    *)
12842      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845      else
12846	ld_shlibs=no
12847      fi
12848      ;;
12849    esac
12850
12851    if test "$ld_shlibs" = no; then
12852      runpath_var=
12853      hardcode_libdir_flag_spec=
12854      export_dynamic_flag_spec=
12855      whole_archive_flag_spec=
12856    fi
12857  else
12858    # PORTME fill in a description of your system's linker (not GNU ld)
12859    case $host_os in
12860    aix3*)
12861      allow_undefined_flag=unsupported
12862      always_export_symbols=yes
12863      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'
12864      # Note: this linker hardcodes the directories in LIBPATH if there
12865      # are no directories specified by -L.
12866      hardcode_minus_L=yes
12867      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12868	# Neither direct hardcoding nor static linking is supported with a
12869	# broken collect2.
12870	hardcode_direct=unsupported
12871      fi
12872      ;;
12873
12874    aix[4-9]*)
12875      if test "$host_cpu" = ia64; then
12876	# On IA64, the linker does run time linking by default, so we don't
12877	# have to do anything special.
12878	aix_use_runtimelinking=no
12879	exp_sym_flag='-Bexport'
12880	no_entry_flag=""
12881      else
12882	# If we're using GNU nm, then we don't want the "-C" option.
12883	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12884	# Also, AIX nm treats weak defined symbols like other global
12885	# defined symbols, whereas GNU nm marks them as "W".
12886	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12887	  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'
12888	else
12889	  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'
12890	fi
12891	aix_use_runtimelinking=no
12892
12893	# Test if we are trying to use run time linking or normal
12894	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12895	# need to do runtime linking.
12896	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12897	  for ld_flag in $LDFLAGS; do
12898	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12899	    aix_use_runtimelinking=yes
12900	    break
12901	  fi
12902	  done
12903	  ;;
12904	esac
12905
12906	exp_sym_flag='-bexport'
12907	no_entry_flag='-bnoentry'
12908      fi
12909
12910      # When large executables or shared objects are built, AIX ld can
12911      # have problems creating the table of contents.  If linking a library
12912      # or program results in "error TOC overflow" add -mminimal-toc to
12913      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12914      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12915
12916      archive_cmds=''
12917      hardcode_direct=yes
12918      hardcode_direct_absolute=yes
12919      hardcode_libdir_separator=':'
12920      link_all_deplibs=yes
12921      file_list_spec='${wl}-f,'
12922
12923      if test "$GCC" = yes; then
12924	case $host_os in aix4.[012]|aix4.[012].*)
12925	# We only want to do this on AIX 4.2 and lower, the check
12926	# below for broken collect2 doesn't work under 4.3+
12927	  collect2name=`${CC} -print-prog-name=collect2`
12928	  if test -f "$collect2name" &&
12929	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930	  then
12931	  # We have reworked collect2
12932	  :
12933	  else
12934	  # We have old collect2
12935	  hardcode_direct=unsupported
12936	  # It fails to find uninstalled libraries when the uninstalled
12937	  # path is not listed in the libpath.  Setting hardcode_minus_L
12938	  # to unsupported forces relinking
12939	  hardcode_minus_L=yes
12940	  hardcode_libdir_flag_spec='-L$libdir'
12941	  hardcode_libdir_separator=
12942	  fi
12943	  ;;
12944	esac
12945	shared_flag='-shared'
12946	if test "$aix_use_runtimelinking" = yes; then
12947	  shared_flag="$shared_flag "'${wl}-G'
12948	fi
12949      else
12950	# not using gcc
12951	if test "$host_cpu" = ia64; then
12952	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12953	# chokes on -Wl,-G. The following line is correct:
12954	  shared_flag='-G'
12955	else
12956	  if test "$aix_use_runtimelinking" = yes; then
12957	    shared_flag='${wl}-G'
12958	  else
12959	    shared_flag='${wl}-bM:SRE'
12960	  fi
12961	fi
12962      fi
12963
12964      export_dynamic_flag_spec='${wl}-bexpall'
12965      # It seems that -bexpall does not export symbols beginning with
12966      # underscore (_), so it is better to generate a list of symbols to export.
12967      always_export_symbols=yes
12968      if test "$aix_use_runtimelinking" = yes; then
12969	# Warning - without using the other runtime loading flags (-brtl),
12970	# -berok will link without error, but may produce a broken library.
12971	allow_undefined_flag='-berok'
12972        # Determine the default libpath from the value encoded in an
12973        # empty executable.
12974        if test "${lt_cv_aix_libpath+set}" = set; then
12975  aix_libpath=$lt_cv_aix_libpath
12976else
12977  if ${lt_cv_aix_libpath_+:} false; then :
12978  $as_echo_n "(cached) " >&6
12979else
12980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981/* end confdefs.h.  */
12982
12983int
12984main ()
12985{
12986
12987  ;
12988  return 0;
12989}
12990_ACEOF
12991if ac_fn_c_try_link "$LINENO"; then :
12992
12993  lt_aix_libpath_sed='
12994      /Import File Strings/,/^$/ {
12995	  /^0/ {
12996	      s/^0  *\([^ ]*\) *$/\1/
12997	      p
12998	  }
12999      }'
13000  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13001  # Check for a 64-bit object if we didn't find anything.
13002  if test -z "$lt_cv_aix_libpath_"; then
13003    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004  fi
13005fi
13006rm -f core conftest.err conftest.$ac_objext \
13007    conftest$ac_exeext conftest.$ac_ext
13008  if test -z "$lt_cv_aix_libpath_"; then
13009    lt_cv_aix_libpath_="/usr/lib:/lib"
13010  fi
13011
13012fi
13013
13014  aix_libpath=$lt_cv_aix_libpath_
13015fi
13016
13017        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13018        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"
13019      else
13020	if test "$host_cpu" = ia64; then
13021	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13022	  allow_undefined_flag="-z nodefs"
13023	  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"
13024	else
13025	 # Determine the default libpath from the value encoded in an
13026	 # empty executable.
13027	 if test "${lt_cv_aix_libpath+set}" = set; then
13028  aix_libpath=$lt_cv_aix_libpath
13029else
13030  if ${lt_cv_aix_libpath_+:} false; then :
13031  $as_echo_n "(cached) " >&6
13032else
13033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034/* end confdefs.h.  */
13035
13036int
13037main ()
13038{
13039
13040  ;
13041  return 0;
13042}
13043_ACEOF
13044if ac_fn_c_try_link "$LINENO"; then :
13045
13046  lt_aix_libpath_sed='
13047      /Import File Strings/,/^$/ {
13048	  /^0/ {
13049	      s/^0  *\([^ ]*\) *$/\1/
13050	      p
13051	  }
13052      }'
13053  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054  # Check for a 64-bit object if we didn't find anything.
13055  if test -z "$lt_cv_aix_libpath_"; then
13056    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057  fi
13058fi
13059rm -f core conftest.err conftest.$ac_objext \
13060    conftest$ac_exeext conftest.$ac_ext
13061  if test -z "$lt_cv_aix_libpath_"; then
13062    lt_cv_aix_libpath_="/usr/lib:/lib"
13063  fi
13064
13065fi
13066
13067  aix_libpath=$lt_cv_aix_libpath_
13068fi
13069
13070	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13071	  # Warning - without using the other run time loading flags,
13072	  # -berok will link without error, but may produce a broken library.
13073	  no_undefined_flag=' ${wl}-bernotok'
13074	  allow_undefined_flag=' ${wl}-berok'
13075	  if test "$with_gnu_ld" = yes; then
13076	    # We only use this code for GNU lds that support --whole-archive.
13077	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13078	  else
13079	    # Exported symbols can be pulled into shared objects from archives
13080	    whole_archive_flag_spec='$convenience'
13081	  fi
13082	  archive_cmds_need_lc=yes
13083	  # This is similar to how AIX traditionally builds its shared libraries.
13084	  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'
13085	fi
13086      fi
13087      ;;
13088
13089    amigaos*)
13090      case $host_cpu in
13091      powerpc)
13092            # see comment about AmigaOS4 .so support
13093            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13094            archive_expsym_cmds=''
13095        ;;
13096      m68k)
13097            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)'
13098            hardcode_libdir_flag_spec='-L$libdir'
13099            hardcode_minus_L=yes
13100        ;;
13101      esac
13102      ;;
13103
13104    bsdi[45]*)
13105      export_dynamic_flag_spec=-rdynamic
13106      ;;
13107
13108    cygwin* | mingw* | pw32* | cegcc*)
13109      # When not using gcc, we currently assume that we are using
13110      # Microsoft Visual C++.
13111      # hardcode_libdir_flag_spec is actually meaningless, as there is
13112      # no search path for DLLs.
13113      case $cc_basename in
13114      cl*)
13115	# Native MSVC
13116	hardcode_libdir_flag_spec=' '
13117	allow_undefined_flag=unsupported
13118	always_export_symbols=yes
13119	file_list_spec='@'
13120	# Tell ltmain to make .lib files, not .a files.
13121	libext=lib
13122	# Tell ltmain to make .dll files, not .so files.
13123	shrext_cmds=".dll"
13124	# FIXME: Setting linknames here is a bad hack.
13125	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13126	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13127	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13128	  else
13129	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13130	  fi~
13131	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13132	  linknames='
13133	# The linker will not automatically build a static lib if we build a DLL.
13134	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13135	enable_shared_with_static_runtimes=yes
13136	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13137	# Don't use ranlib
13138	old_postinstall_cmds='chmod 644 $oldlib'
13139	postlink_cmds='lt_outputfile="@OUTPUT@"~
13140	  lt_tool_outputfile="@TOOL_OUTPUT@"~
13141	  case $lt_outputfile in
13142	    *.exe|*.EXE) ;;
13143	    *)
13144	      lt_outputfile="$lt_outputfile.exe"
13145	      lt_tool_outputfile="$lt_tool_outputfile.exe"
13146	      ;;
13147	  esac~
13148	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13149	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13150	    $RM "$lt_outputfile.manifest";
13151	  fi'
13152	;;
13153      *)
13154	# Assume MSVC wrapper
13155	hardcode_libdir_flag_spec=' '
13156	allow_undefined_flag=unsupported
13157	# Tell ltmain to make .lib files, not .a files.
13158	libext=lib
13159	# Tell ltmain to make .dll files, not .so files.
13160	shrext_cmds=".dll"
13161	# FIXME: Setting linknames here is a bad hack.
13162	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13163	# The linker will automatically build a .lib file if we build a DLL.
13164	old_archive_from_new_cmds='true'
13165	# FIXME: Should let the user specify the lib program.
13166	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13167	enable_shared_with_static_runtimes=yes
13168	;;
13169      esac
13170      ;;
13171
13172    darwin* | rhapsody*)
13173
13174
13175  archive_cmds_need_lc=no
13176  hardcode_direct=no
13177  hardcode_automatic=yes
13178  hardcode_shlibpath_var=unsupported
13179  if test "$lt_cv_ld_force_load" = "yes"; then
13180    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\"`'
13181  else
13182    whole_archive_flag_spec=''
13183  fi
13184  link_all_deplibs=yes
13185  allow_undefined_flag="$_lt_dar_allow_undefined"
13186  case $cc_basename in
13187     ifort*) _lt_dar_can_shared=yes ;;
13188     *) _lt_dar_can_shared=$GCC ;;
13189  esac
13190  if test "$_lt_dar_can_shared" = "yes"; then
13191    output_verbose_link_cmd=func_echo_all
13192    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13193    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13194    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}"
13195    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}"
13196
13197  else
13198  ld_shlibs=no
13199  fi
13200
13201      ;;
13202
13203    dgux*)
13204      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13205      hardcode_libdir_flag_spec='-L$libdir'
13206      hardcode_shlibpath_var=no
13207      ;;
13208
13209    freebsd1*)
13210      ld_shlibs=no
13211      ;;
13212
13213    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13214    # support.  Future versions do this automatically, but an explicit c++rt0.o
13215    # does not break anything, and helps significantly (at the cost of a little
13216    # extra space).
13217    freebsd2.2*)
13218      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13219      hardcode_libdir_flag_spec='-R$libdir'
13220      hardcode_direct=yes
13221      hardcode_shlibpath_var=no
13222      ;;
13223
13224    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13225    freebsd2*)
13226      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13227      hardcode_direct=yes
13228      hardcode_minus_L=yes
13229      hardcode_shlibpath_var=no
13230      ;;
13231
13232    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13233    freebsd* | dragonfly*)
13234      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13235      hardcode_libdir_flag_spec='-R$libdir'
13236      hardcode_direct=yes
13237      hardcode_shlibpath_var=no
13238      ;;
13239
13240    hpux9*)
13241      if test "$GCC" = yes; then
13242	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'
13243      else
13244	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'
13245      fi
13246      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13247      hardcode_libdir_separator=:
13248      hardcode_direct=yes
13249
13250      # hardcode_minus_L: Not really in the search PATH,
13251      # but as the default location of the library.
13252      hardcode_minus_L=yes
13253      export_dynamic_flag_spec='${wl}-E'
13254      ;;
13255
13256    hpux10*)
13257      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13258	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13259      else
13260	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13261      fi
13262      if test "$with_gnu_ld" = no; then
13263	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13264	hardcode_libdir_flag_spec_ld='+b $libdir'
13265	hardcode_libdir_separator=:
13266	hardcode_direct=yes
13267	hardcode_direct_absolute=yes
13268	export_dynamic_flag_spec='${wl}-E'
13269	# hardcode_minus_L: Not really in the search PATH,
13270	# but as the default location of the library.
13271	hardcode_minus_L=yes
13272      fi
13273      ;;
13274
13275    hpux11*)
13276      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13277	case $host_cpu in
13278	hppa*64*)
13279	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13280	  ;;
13281	ia64*)
13282	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13283	  ;;
13284	*)
13285	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13286	  ;;
13287	esac
13288      else
13289	case $host_cpu in
13290	hppa*64*)
13291	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13292	  ;;
13293	ia64*)
13294	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13295	  ;;
13296	*)
13297
13298	  # Older versions of the 11.00 compiler do not understand -b yet
13299	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13300	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13301$as_echo_n "checking if $CC understands -b... " >&6; }
13302if ${lt_cv_prog_compiler__b+:} false; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  lt_cv_prog_compiler__b=no
13306   save_LDFLAGS="$LDFLAGS"
13307   LDFLAGS="$LDFLAGS -b"
13308   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13309   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13310     # The linker can only warn and ignore the option if not recognized
13311     # So say no if there are warnings
13312     if test -s conftest.err; then
13313       # Append any errors to the config.log.
13314       cat conftest.err 1>&5
13315       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13316       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13317       if diff conftest.exp conftest.er2 >/dev/null; then
13318         lt_cv_prog_compiler__b=yes
13319       fi
13320     else
13321       lt_cv_prog_compiler__b=yes
13322     fi
13323   fi
13324   $RM -r conftest*
13325   LDFLAGS="$save_LDFLAGS"
13326
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13329$as_echo "$lt_cv_prog_compiler__b" >&6; }
13330
13331if test x"$lt_cv_prog_compiler__b" = xyes; then
13332    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13333else
13334    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13335fi
13336
13337	  ;;
13338	esac
13339      fi
13340      if test "$with_gnu_ld" = no; then
13341	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13342	hardcode_libdir_separator=:
13343
13344	case $host_cpu in
13345	hppa*64*|ia64*)
13346	  hardcode_direct=no
13347	  hardcode_shlibpath_var=no
13348	  ;;
13349	*)
13350	  hardcode_direct=yes
13351	  hardcode_direct_absolute=yes
13352	  export_dynamic_flag_spec='${wl}-E'
13353
13354	  # hardcode_minus_L: Not really in the search PATH,
13355	  # but as the default location of the library.
13356	  hardcode_minus_L=yes
13357	  ;;
13358	esac
13359      fi
13360      ;;
13361
13362    irix5* | irix6* | nonstopux*)
13363      if test "$GCC" = yes; then
13364	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'
13365	# Try to use the -exported_symbol ld option, if it does not
13366	# work, assume that -exports_file does not work either and
13367	# implicitly export all symbols.
13368	# This should be the same for all languages, so no per-tag cache variable.
13369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13370$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13371if ${lt_cv_irix_exported_symbol+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  save_LDFLAGS="$LDFLAGS"
13375	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13376	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378int foo (void) { return 0; }
13379_ACEOF
13380if ac_fn_c_try_link "$LINENO"; then :
13381  lt_cv_irix_exported_symbol=yes
13382else
13383  lt_cv_irix_exported_symbol=no
13384fi
13385rm -f core conftest.err conftest.$ac_objext \
13386    conftest$ac_exeext conftest.$ac_ext
13387           LDFLAGS="$save_LDFLAGS"
13388fi
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13390$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13391	if test "$lt_cv_irix_exported_symbol" = yes; then
13392          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'
13393	fi
13394      else
13395	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'
13396	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'
13397      fi
13398      archive_cmds_need_lc='no'
13399      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13400      hardcode_libdir_separator=:
13401      inherit_rpath=yes
13402      link_all_deplibs=yes
13403      ;;
13404
13405    netbsd*)
13406      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13407	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13408      else
13409	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13410      fi
13411      hardcode_libdir_flag_spec='-R$libdir'
13412      hardcode_direct=yes
13413      hardcode_shlibpath_var=no
13414      ;;
13415
13416    newsos6)
13417      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13418      hardcode_direct=yes
13419      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13420      hardcode_libdir_separator=:
13421      hardcode_shlibpath_var=no
13422      ;;
13423
13424    *nto* | *qnx*)
13425      ;;
13426
13427    openbsd*)
13428      if test -f /usr/libexec/ld.so; then
13429	hardcode_direct=yes
13430	hardcode_shlibpath_var=no
13431	hardcode_direct_absolute=yes
13432	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13433	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13434	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13435	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13436	  export_dynamic_flag_spec='${wl}-E'
13437	else
13438	  case $host_os in
13439	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13440	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13441	     hardcode_libdir_flag_spec='-R$libdir'
13442	     ;;
13443	   *)
13444	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13445	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13446	     ;;
13447	  esac
13448	fi
13449      else
13450	ld_shlibs=no
13451      fi
13452      ;;
13453
13454    os2*)
13455      hardcode_libdir_flag_spec='-L$libdir'
13456      hardcode_minus_L=yes
13457      allow_undefined_flag=unsupported
13458      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'
13459      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13460      ;;
13461
13462    osf3*)
13463      if test "$GCC" = yes; then
13464	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13465	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'
13466      else
13467	allow_undefined_flag=' -expect_unresolved \*'
13468	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'
13469      fi
13470      archive_cmds_need_lc='no'
13471      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13472      hardcode_libdir_separator=:
13473      ;;
13474
13475    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13476      if test "$GCC" = yes; then
13477	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13478	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'
13479	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13480      else
13481	allow_undefined_flag=' -expect_unresolved \*'
13482	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'
13483	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~
13484	$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'
13485
13486	# Both c and cxx compiler support -rpath directly
13487	hardcode_libdir_flag_spec='-rpath $libdir'
13488      fi
13489      archive_cmds_need_lc='no'
13490      hardcode_libdir_separator=:
13491      ;;
13492
13493    solaris*)
13494      no_undefined_flag=' -z defs'
13495      if test "$GCC" = yes; then
13496	wlarc='${wl}'
13497	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13499	  $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'
13500      else
13501	case `$CC -V 2>&1` in
13502	*"Compilers 5.0"*)
13503	  wlarc=''
13504	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13506	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13507	  ;;
13508	*)
13509	  wlarc='${wl}'
13510	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13511	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13512	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13513	  ;;
13514	esac
13515      fi
13516      hardcode_libdir_flag_spec='-R$libdir'
13517      hardcode_shlibpath_var=no
13518      case $host_os in
13519      solaris2.[0-5] | solaris2.[0-5].*) ;;
13520      *)
13521	# The compiler driver will combine and reorder linker options,
13522	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13523	# but is careful enough not to reorder.
13524	# Supported since Solaris 2.6 (maybe 2.5.1?)
13525	if test "$GCC" = yes; then
13526	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13527	else
13528	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13529	fi
13530	;;
13531      esac
13532      link_all_deplibs=yes
13533      ;;
13534
13535    sunos4*)
13536      if test "x$host_vendor" = xsequent; then
13537	# Use $CC to link under sequent, because it throws in some extra .o
13538	# files that make .init and .fini sections work.
13539	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13540      else
13541	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13542      fi
13543      hardcode_libdir_flag_spec='-L$libdir'
13544      hardcode_direct=yes
13545      hardcode_minus_L=yes
13546      hardcode_shlibpath_var=no
13547      ;;
13548
13549    sysv4)
13550      case $host_vendor in
13551	sni)
13552	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553	  hardcode_direct=yes # is this really true???
13554	;;
13555	siemens)
13556	  ## LD is ld it makes a PLAMLIB
13557	  ## CC just makes a GrossModule.
13558	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13559	  reload_cmds='$CC -r -o $output$reload_objs'
13560	  hardcode_direct=no
13561        ;;
13562	motorola)
13563	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13564	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13565	;;
13566      esac
13567      runpath_var='LD_RUN_PATH'
13568      hardcode_shlibpath_var=no
13569      ;;
13570
13571    sysv4.3*)
13572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13573      hardcode_shlibpath_var=no
13574      export_dynamic_flag_spec='-Bexport'
13575      ;;
13576
13577    sysv4*MP*)
13578      if test -d /usr/nec; then
13579	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13580	hardcode_shlibpath_var=no
13581	runpath_var=LD_RUN_PATH
13582	hardcode_runpath_var=yes
13583	ld_shlibs=yes
13584      fi
13585      ;;
13586
13587    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13588      no_undefined_flag='${wl}-z,text'
13589      archive_cmds_need_lc=no
13590      hardcode_shlibpath_var=no
13591      runpath_var='LD_RUN_PATH'
13592
13593      if test "$GCC" = yes; then
13594	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13596      else
13597	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13599      fi
13600      ;;
13601
13602    sysv5* | sco3.2v5* | sco5v6*)
13603      # Note: We can NOT use -z defs as we might desire, because we do not
13604      # link with -lc, and that would cause any symbols used from libc to
13605      # always be unresolved, which means just about no library would
13606      # ever link correctly.  If we're not using GNU ld we use -z text
13607      # though, which does catch some bad symbols but isn't as heavy-handed
13608      # as -z defs.
13609      no_undefined_flag='${wl}-z,text'
13610      allow_undefined_flag='${wl}-z,nodefs'
13611      archive_cmds_need_lc=no
13612      hardcode_shlibpath_var=no
13613      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13614      hardcode_libdir_separator=':'
13615      link_all_deplibs=yes
13616      export_dynamic_flag_spec='${wl}-Bexport'
13617      runpath_var='LD_RUN_PATH'
13618
13619      if test "$GCC" = yes; then
13620	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13622      else
13623	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625      fi
13626      ;;
13627
13628    uts4*)
13629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13630      hardcode_libdir_flag_spec='-L$libdir'
13631      hardcode_shlibpath_var=no
13632      ;;
13633
13634    *)
13635      ld_shlibs=no
13636      ;;
13637    esac
13638
13639    if test x$host_vendor = xsni; then
13640      case $host in
13641      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13642	export_dynamic_flag_spec='${wl}-Blargedynsym'
13643	;;
13644      esac
13645    fi
13646  fi
13647
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13649$as_echo "$ld_shlibs" >&6; }
13650test "$ld_shlibs" = no && can_build_shared=no
13651
13652with_gnu_ld=$with_gnu_ld
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668#
13669# Do we need to explicitly link libc?
13670#
13671case "x$archive_cmds_need_lc" in
13672x|xyes)
13673  # Assume -lc should be added
13674  archive_cmds_need_lc=yes
13675
13676  if test "$enable_shared" = yes && test "$GCC" = yes; then
13677    case $archive_cmds in
13678    *'~'*)
13679      # FIXME: we may have to deal with multi-command sequences.
13680      ;;
13681    '$CC '*)
13682      # Test whether the compiler implicitly links with -lc since on some
13683      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13684      # to ld, don't add -lc before -lgcc.
13685      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13686$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13687if ${lt_cv_archive_cmds_need_lc+:} false; then :
13688  $as_echo_n "(cached) " >&6
13689else
13690  $RM conftest*
13691	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13692
13693	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13694  (eval $ac_compile) 2>&5
13695  ac_status=$?
13696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697  test $ac_status = 0; } 2>conftest.err; then
13698	  soname=conftest
13699	  lib=conftest
13700	  libobjs=conftest.$ac_objext
13701	  deplibs=
13702	  wl=$lt_prog_compiler_wl
13703	  pic_flag=$lt_prog_compiler_pic
13704	  compiler_flags=-v
13705	  linker_flags=-v
13706	  verstring=
13707	  output_objdir=.
13708	  libname=conftest
13709	  lt_save_allow_undefined_flag=$allow_undefined_flag
13710	  allow_undefined_flag=
13711	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13712  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13713  ac_status=$?
13714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715  test $ac_status = 0; }
13716	  then
13717	    lt_cv_archive_cmds_need_lc=no
13718	  else
13719	    lt_cv_archive_cmds_need_lc=yes
13720	  fi
13721	  allow_undefined_flag=$lt_save_allow_undefined_flag
13722	else
13723	  cat conftest.err 1>&5
13724	fi
13725	$RM conftest*
13726
13727fi
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13729$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13730      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13731      ;;
13732    esac
13733  fi
13734  ;;
13735esac
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13894$as_echo_n "checking dynamic linker characteristics... " >&6; }
13895
13896if test "$GCC" = yes; then
13897  case $host_os in
13898    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13899    *) lt_awk_arg="/^libraries:/" ;;
13900  esac
13901  case $host_os in
13902    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13903    *) lt_sed_strip_eq="s,=/,/,g" ;;
13904  esac
13905  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13906  case $lt_search_path_spec in
13907  *\;*)
13908    # if the path contains ";" then we assume it to be the separator
13909    # otherwise default to the standard path separator (i.e. ":") - it is
13910    # assumed that no part of a normal pathname contains ";" but that should
13911    # okay in the real world where ";" in dirpaths is itself problematic.
13912    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13913    ;;
13914  *)
13915    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13916    ;;
13917  esac
13918  # Ok, now we have the path, separated by spaces, we can step through it
13919  # and add multilib dir if necessary.
13920  lt_tmp_lt_search_path_spec=
13921  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13922  for lt_sys_path in $lt_search_path_spec; do
13923    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13924      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13925    else
13926      test -d "$lt_sys_path" && \
13927	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13928    fi
13929  done
13930  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13931BEGIN {RS=" "; FS="/|\n";} {
13932  lt_foo="";
13933  lt_count=0;
13934  for (lt_i = NF; lt_i > 0; lt_i--) {
13935    if ($lt_i != "" && $lt_i != ".") {
13936      if ($lt_i == "..") {
13937        lt_count++;
13938      } else {
13939        if (lt_count == 0) {
13940          lt_foo="/" $lt_i lt_foo;
13941        } else {
13942          lt_count--;
13943        }
13944      }
13945    }
13946  }
13947  if (lt_foo != "") { lt_freq[lt_foo]++; }
13948  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13949}'`
13950  # AWK program above erroneously prepends '/' to C:/dos/paths
13951  # for these hosts.
13952  case $host_os in
13953    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13954      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13955  esac
13956  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13957else
13958  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13959fi
13960library_names_spec=
13961libname_spec='lib$name'
13962soname_spec=
13963shrext_cmds=".so"
13964postinstall_cmds=
13965postuninstall_cmds=
13966finish_cmds=
13967finish_eval=
13968shlibpath_var=
13969shlibpath_overrides_runpath=unknown
13970version_type=none
13971dynamic_linker="$host_os ld.so"
13972sys_lib_dlsearch_path_spec="/lib /usr/lib"
13973need_lib_prefix=unknown
13974hardcode_into_libs=no
13975
13976# when you set need_version to no, make sure it does not cause -set_version
13977# flags to be left without arguments
13978need_version=unknown
13979
13980case $host_os in
13981aix3*)
13982  version_type=linux
13983  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13984  shlibpath_var=LIBPATH
13985
13986  # AIX 3 has no versioning support, so we append a major version to the name.
13987  soname_spec='${libname}${release}${shared_ext}$major'
13988  ;;
13989
13990aix[4-9]*)
13991  version_type=linux
13992  need_lib_prefix=no
13993  need_version=no
13994  hardcode_into_libs=yes
13995  if test "$host_cpu" = ia64; then
13996    # AIX 5 supports IA64
13997    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13998    shlibpath_var=LD_LIBRARY_PATH
13999  else
14000    # With GCC up to 2.95.x, collect2 would create an import file
14001    # for dependence libraries.  The import file would start with
14002    # the line `#! .'.  This would cause the generated library to
14003    # depend on `.', always an invalid library.  This was fixed in
14004    # development snapshots of GCC prior to 3.0.
14005    case $host_os in
14006      aix4 | aix4.[01] | aix4.[01].*)
14007      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14008	   echo ' yes '
14009	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14010	:
14011      else
14012	can_build_shared=no
14013      fi
14014      ;;
14015    esac
14016    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14017    # soname into executable. Probably we can add versioning support to
14018    # collect2, so additional links can be useful in future.
14019    if test "$aix_use_runtimelinking" = yes; then
14020      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14021      # instead of lib<name>.a to let people know that these are not
14022      # typical AIX shared libraries.
14023      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024    else
14025      # We preserve .a as extension for shared libraries through AIX4.2
14026      # and later when we are not doing run time linking.
14027      library_names_spec='${libname}${release}.a $libname.a'
14028      soname_spec='${libname}${release}${shared_ext}$major'
14029    fi
14030    shlibpath_var=LIBPATH
14031  fi
14032  ;;
14033
14034amigaos*)
14035  case $host_cpu in
14036  powerpc)
14037    # Since July 2007 AmigaOS4 officially supports .so libraries.
14038    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14039    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040    ;;
14041  m68k)
14042    library_names_spec='$libname.ixlibrary $libname.a'
14043    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14044    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'
14045    ;;
14046  esac
14047  ;;
14048
14049beos*)
14050  library_names_spec='${libname}${shared_ext}'
14051  dynamic_linker="$host_os ld.so"
14052  shlibpath_var=LIBRARY_PATH
14053  ;;
14054
14055bsdi[45]*)
14056  version_type=linux
14057  need_version=no
14058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059  soname_spec='${libname}${release}${shared_ext}$major'
14060  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14061  shlibpath_var=LD_LIBRARY_PATH
14062  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14063  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14064  # the default ld.so.conf also contains /usr/contrib/lib and
14065  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14066  # libtool to hard-code these into programs
14067  ;;
14068
14069cygwin* | mingw* | pw32* | cegcc*)
14070  version_type=windows
14071  shrext_cmds=".dll"
14072  need_version=no
14073  need_lib_prefix=no
14074
14075  case $GCC,$cc_basename in
14076  yes,*)
14077    # gcc
14078    library_names_spec='$libname.dll.a'
14079    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14080    postinstall_cmds='base_file=`basename \${file}`~
14081      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14082      dldir=$destdir/`dirname \$dlpath`~
14083      test -d \$dldir || mkdir -p \$dldir~
14084      $install_prog $dir/$dlname \$dldir/$dlname~
14085      chmod a+x \$dldir/$dlname~
14086      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14087        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14088      fi'
14089    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14090      dlpath=$dir/\$dldll~
14091       $RM \$dlpath'
14092    shlibpath_overrides_runpath=yes
14093
14094    case $host_os in
14095    cygwin*)
14096      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14097      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14098
14099      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14100      ;;
14101    mingw* | cegcc*)
14102      # MinGW DLLs use traditional 'lib' prefix
14103      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14104      ;;
14105    pw32*)
14106      # pw32 DLLs use 'pw' prefix rather than 'lib'
14107      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14108      ;;
14109    esac
14110    dynamic_linker='Win32 ld.exe'
14111    ;;
14112
14113  *,cl*)
14114    # Native MSVC
14115    libname_spec='$name'
14116    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14117    library_names_spec='${libname}.dll.lib'
14118
14119    case $build_os in
14120    mingw*)
14121      sys_lib_search_path_spec=
14122      lt_save_ifs=$IFS
14123      IFS=';'
14124      for lt_path in $LIB
14125      do
14126        IFS=$lt_save_ifs
14127        # Let DOS variable expansion print the short 8.3 style file name.
14128        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14129        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14130      done
14131      IFS=$lt_save_ifs
14132      # Convert to MSYS style.
14133      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14134      ;;
14135    cygwin*)
14136      # Convert to unix form, then to dos form, then back to unix form
14137      # but this time dos style (no spaces!) so that the unix form looks
14138      # like /cygdrive/c/PROGRA~1:/cygdr...
14139      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14140      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14141      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14142      ;;
14143    *)
14144      sys_lib_search_path_spec="$LIB"
14145      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14146        # It is most probably a Windows format PATH.
14147        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14148      else
14149        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14150      fi
14151      # FIXME: find the short name or the path components, as spaces are
14152      # common. (e.g. "Program Files" -> "PROGRA~1")
14153      ;;
14154    esac
14155
14156    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14157    postinstall_cmds='base_file=`basename \${file}`~
14158      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14159      dldir=$destdir/`dirname \$dlpath`~
14160      test -d \$dldir || mkdir -p \$dldir~
14161      $install_prog $dir/$dlname \$dldir/$dlname'
14162    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14163      dlpath=$dir/\$dldll~
14164       $RM \$dlpath'
14165    shlibpath_overrides_runpath=yes
14166    dynamic_linker='Win32 link.exe'
14167    ;;
14168
14169  *)
14170    # Assume MSVC wrapper
14171    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14172    dynamic_linker='Win32 ld.exe'
14173    ;;
14174  esac
14175  # FIXME: first we should search . and the directory the executable is in
14176  shlibpath_var=PATH
14177  ;;
14178
14179darwin* | rhapsody*)
14180  dynamic_linker="$host_os dyld"
14181  version_type=darwin
14182  need_lib_prefix=no
14183  need_version=no
14184  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14185  soname_spec='${libname}${release}${major}$shared_ext'
14186  shlibpath_overrides_runpath=yes
14187  shlibpath_var=DYLD_LIBRARY_PATH
14188  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14189
14190  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14191  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14192  ;;
14193
14194dgux*)
14195  version_type=linux
14196  need_lib_prefix=no
14197  need_version=no
14198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14199  soname_spec='${libname}${release}${shared_ext}$major'
14200  shlibpath_var=LD_LIBRARY_PATH
14201  ;;
14202
14203freebsd1*)
14204  dynamic_linker=no
14205  ;;
14206
14207freebsd* | dragonfly*)
14208  # DragonFly does not have aout.  When/if they implement a new
14209  # versioning mechanism, adjust this.
14210  if test -x /usr/bin/objformat; then
14211    objformat=`/usr/bin/objformat`
14212  else
14213    case $host_os in
14214    freebsd[123]*) objformat=aout ;;
14215    *) objformat=elf ;;
14216    esac
14217  fi
14218  version_type=freebsd-$objformat
14219  case $version_type in
14220    freebsd-elf*)
14221      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14222      need_version=no
14223      need_lib_prefix=no
14224      ;;
14225    freebsd-*)
14226      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14227      need_version=yes
14228      ;;
14229  esac
14230  shlibpath_var=LD_LIBRARY_PATH
14231  case $host_os in
14232  freebsd2*)
14233    shlibpath_overrides_runpath=yes
14234    ;;
14235  freebsd3.[01]* | freebsdelf3.[01]*)
14236    shlibpath_overrides_runpath=yes
14237    hardcode_into_libs=yes
14238    ;;
14239  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14240  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14241    shlibpath_overrides_runpath=no
14242    hardcode_into_libs=yes
14243    ;;
14244  *) # from 4.6 on, and DragonFly
14245    shlibpath_overrides_runpath=yes
14246    hardcode_into_libs=yes
14247    ;;
14248  esac
14249  ;;
14250
14251gnu*)
14252  version_type=linux
14253  need_lib_prefix=no
14254  need_version=no
14255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14256  soname_spec='${libname}${release}${shared_ext}$major'
14257  shlibpath_var=LD_LIBRARY_PATH
14258  hardcode_into_libs=yes
14259  ;;
14260
14261haiku*)
14262  version_type=linux
14263  need_lib_prefix=no
14264  need_version=no
14265  dynamic_linker="$host_os runtime_loader"
14266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14267  soname_spec='${libname}${release}${shared_ext}$major'
14268  shlibpath_var=LIBRARY_PATH
14269  shlibpath_overrides_runpath=yes
14270  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14271  hardcode_into_libs=yes
14272  ;;
14273
14274hpux9* | hpux10* | hpux11*)
14275  # Give a soname corresponding to the major version so that dld.sl refuses to
14276  # link against other versions.
14277  version_type=sunos
14278  need_lib_prefix=no
14279  need_version=no
14280  case $host_cpu in
14281  ia64*)
14282    shrext_cmds='.so'
14283    hardcode_into_libs=yes
14284    dynamic_linker="$host_os dld.so"
14285    shlibpath_var=LD_LIBRARY_PATH
14286    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14287    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288    soname_spec='${libname}${release}${shared_ext}$major'
14289    if test "X$HPUX_IA64_MODE" = X32; then
14290      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14291    else
14292      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14293    fi
14294    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14295    ;;
14296  hppa*64*)
14297    shrext_cmds='.sl'
14298    hardcode_into_libs=yes
14299    dynamic_linker="$host_os dld.sl"
14300    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14301    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303    soname_spec='${libname}${release}${shared_ext}$major'
14304    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14305    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14306    ;;
14307  *)
14308    shrext_cmds='.sl'
14309    dynamic_linker="$host_os dld.sl"
14310    shlibpath_var=SHLIB_PATH
14311    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14312    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313    soname_spec='${libname}${release}${shared_ext}$major'
14314    ;;
14315  esac
14316  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14317  postinstall_cmds='chmod 555 $lib'
14318  # or fails outright, so override atomically:
14319  install_override_mode=555
14320  ;;
14321
14322interix[3-9]*)
14323  version_type=linux
14324  need_lib_prefix=no
14325  need_version=no
14326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14327  soname_spec='${libname}${release}${shared_ext}$major'
14328  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14329  shlibpath_var=LD_LIBRARY_PATH
14330  shlibpath_overrides_runpath=no
14331  hardcode_into_libs=yes
14332  ;;
14333
14334irix5* | irix6* | nonstopux*)
14335  case $host_os in
14336    nonstopux*) version_type=nonstopux ;;
14337    *)
14338	if test "$lt_cv_prog_gnu_ld" = yes; then
14339		version_type=linux
14340	else
14341		version_type=irix
14342	fi ;;
14343  esac
14344  need_lib_prefix=no
14345  need_version=no
14346  soname_spec='${libname}${release}${shared_ext}$major'
14347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14348  case $host_os in
14349  irix5* | nonstopux*)
14350    libsuff= shlibsuff=
14351    ;;
14352  *)
14353    case $LD in # libtool.m4 will add one of these switches to LD
14354    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14355      libsuff= shlibsuff= libmagic=32-bit;;
14356    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14357      libsuff=32 shlibsuff=N32 libmagic=N32;;
14358    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14359      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14360    *) libsuff= shlibsuff= libmagic=never-match;;
14361    esac
14362    ;;
14363  esac
14364  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14365  shlibpath_overrides_runpath=no
14366  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14367  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14368  hardcode_into_libs=yes
14369  ;;
14370
14371# No shared lib support for Linux oldld, aout, or coff.
14372linux*oldld* | linux*aout* | linux*coff*)
14373  dynamic_linker=no
14374  ;;
14375
14376# This must be Linux ELF.
14377linux* | k*bsd*-gnu | kopensolaris*-gnu)
14378  version_type=linux
14379  need_lib_prefix=no
14380  need_version=no
14381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382  soname_spec='${libname}${release}${shared_ext}$major'
14383  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14384  shlibpath_var=LD_LIBRARY_PATH
14385  shlibpath_overrides_runpath=no
14386
14387  # Some binutils ld are patched to set DT_RUNPATH
14388  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14389  $as_echo_n "(cached) " >&6
14390else
14391  lt_cv_shlibpath_overrides_runpath=no
14392    save_LDFLAGS=$LDFLAGS
14393    save_libdir=$libdir
14394    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14395	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397/* end confdefs.h.  */
14398
14399int
14400main ()
14401{
14402
14403  ;
14404  return 0;
14405}
14406_ACEOF
14407if ac_fn_c_try_link "$LINENO"; then :
14408  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14409  lt_cv_shlibpath_overrides_runpath=yes
14410fi
14411fi
14412rm -f core conftest.err conftest.$ac_objext \
14413    conftest$ac_exeext conftest.$ac_ext
14414    LDFLAGS=$save_LDFLAGS
14415    libdir=$save_libdir
14416
14417fi
14418
14419  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14420
14421  # This implies no fast_install, which is unacceptable.
14422  # Some rework will be needed to allow for fast_install
14423  # before this can be enabled.
14424  hardcode_into_libs=yes
14425
14426  # Append ld.so.conf contents to the search path
14427  if test -f /etc/ld.so.conf; then
14428    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' ' '`
14429    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14430  fi
14431
14432  # We used to test for /lib/ld.so.1 and disable shared libraries on
14433  # powerpc, because MkLinux only supported shared libraries with the
14434  # GNU dynamic linker.  Since this was broken with cross compilers,
14435  # most powerpc-linux boxes support dynamic linking these days and
14436  # people can always --disable-shared, the test was removed, and we
14437  # assume the GNU/Linux dynamic linker is in use.
14438  dynamic_linker='GNU/Linux ld.so'
14439  ;;
14440
14441netbsd*)
14442  version_type=sunos
14443  need_lib_prefix=no
14444  need_version=no
14445  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14446    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14447    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14448    dynamic_linker='NetBSD (a.out) ld.so'
14449  else
14450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14451    soname_spec='${libname}${release}${shared_ext}$major'
14452    dynamic_linker='NetBSD ld.elf_so'
14453  fi
14454  shlibpath_var=LD_LIBRARY_PATH
14455  shlibpath_overrides_runpath=yes
14456  hardcode_into_libs=yes
14457  ;;
14458
14459newsos6)
14460  version_type=linux
14461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462  shlibpath_var=LD_LIBRARY_PATH
14463  shlibpath_overrides_runpath=yes
14464  ;;
14465
14466*nto* | *qnx*)
14467  version_type=qnx
14468  need_lib_prefix=no
14469  need_version=no
14470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471  soname_spec='${libname}${release}${shared_ext}$major'
14472  shlibpath_var=LD_LIBRARY_PATH
14473  shlibpath_overrides_runpath=no
14474  hardcode_into_libs=yes
14475  dynamic_linker='ldqnx.so'
14476  ;;
14477
14478openbsd*)
14479  version_type=sunos
14480  sys_lib_dlsearch_path_spec="/usr/lib"
14481  need_lib_prefix=no
14482  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14483  case $host_os in
14484    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14485    *)				need_version=no  ;;
14486  esac
14487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14488  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14489  shlibpath_var=LD_LIBRARY_PATH
14490  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14491    case $host_os in
14492      openbsd2.[89] | openbsd2.[89].*)
14493	shlibpath_overrides_runpath=no
14494	;;
14495      *)
14496	shlibpath_overrides_runpath=yes
14497	;;
14498      esac
14499  else
14500    shlibpath_overrides_runpath=yes
14501  fi
14502  ;;
14503
14504os2*)
14505  libname_spec='$name'
14506  shrext_cmds=".dll"
14507  need_lib_prefix=no
14508  library_names_spec='$libname${shared_ext} $libname.a'
14509  dynamic_linker='OS/2 ld.exe'
14510  shlibpath_var=LIBPATH
14511  ;;
14512
14513osf3* | osf4* | osf5*)
14514  version_type=osf
14515  need_lib_prefix=no
14516  need_version=no
14517  soname_spec='${libname}${release}${shared_ext}$major'
14518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519  shlibpath_var=LD_LIBRARY_PATH
14520  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14521  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14522  ;;
14523
14524rdos*)
14525  dynamic_linker=no
14526  ;;
14527
14528solaris*)
14529  version_type=linux
14530  need_lib_prefix=no
14531  need_version=no
14532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533  soname_spec='${libname}${release}${shared_ext}$major'
14534  shlibpath_var=LD_LIBRARY_PATH
14535  shlibpath_overrides_runpath=yes
14536  hardcode_into_libs=yes
14537  # ldd complains unless libraries are executable
14538  postinstall_cmds='chmod +x $lib'
14539  ;;
14540
14541sunos4*)
14542  version_type=sunos
14543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14544  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14545  shlibpath_var=LD_LIBRARY_PATH
14546  shlibpath_overrides_runpath=yes
14547  if test "$with_gnu_ld" = yes; then
14548    need_lib_prefix=no
14549  fi
14550  need_version=yes
14551  ;;
14552
14553sysv4 | sysv4.3*)
14554  version_type=linux
14555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556  soname_spec='${libname}${release}${shared_ext}$major'
14557  shlibpath_var=LD_LIBRARY_PATH
14558  case $host_vendor in
14559    sni)
14560      shlibpath_overrides_runpath=no
14561      need_lib_prefix=no
14562      runpath_var=LD_RUN_PATH
14563      ;;
14564    siemens)
14565      need_lib_prefix=no
14566      ;;
14567    motorola)
14568      need_lib_prefix=no
14569      need_version=no
14570      shlibpath_overrides_runpath=no
14571      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14572      ;;
14573  esac
14574  ;;
14575
14576sysv4*MP*)
14577  if test -d /usr/nec ;then
14578    version_type=linux
14579    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14580    soname_spec='$libname${shared_ext}.$major'
14581    shlibpath_var=LD_LIBRARY_PATH
14582  fi
14583  ;;
14584
14585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14586  version_type=freebsd-elf
14587  need_lib_prefix=no
14588  need_version=no
14589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14590  soname_spec='${libname}${release}${shared_ext}$major'
14591  shlibpath_var=LD_LIBRARY_PATH
14592  shlibpath_overrides_runpath=yes
14593  hardcode_into_libs=yes
14594  if test "$with_gnu_ld" = yes; then
14595    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14596  else
14597    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14598    case $host_os in
14599      sco3.2v5*)
14600        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14601	;;
14602    esac
14603  fi
14604  sys_lib_dlsearch_path_spec='/usr/lib'
14605  ;;
14606
14607tpf*)
14608  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14609  version_type=linux
14610  need_lib_prefix=no
14611  need_version=no
14612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613  shlibpath_var=LD_LIBRARY_PATH
14614  shlibpath_overrides_runpath=no
14615  hardcode_into_libs=yes
14616  ;;
14617
14618uts4*)
14619  version_type=linux
14620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14621  soname_spec='${libname}${release}${shared_ext}$major'
14622  shlibpath_var=LD_LIBRARY_PATH
14623  ;;
14624
14625*)
14626  dynamic_linker=no
14627  ;;
14628esac
14629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14630$as_echo "$dynamic_linker" >&6; }
14631test "$dynamic_linker" = no && can_build_shared=no
14632
14633variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14634if test "$GCC" = yes; then
14635  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14636fi
14637
14638if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14639  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14640fi
14641if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14642  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14643fi
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14737$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14738hardcode_action=
14739if test -n "$hardcode_libdir_flag_spec" ||
14740   test -n "$runpath_var" ||
14741   test "X$hardcode_automatic" = "Xyes" ; then
14742
14743  # We can hardcode non-existent directories.
14744  if test "$hardcode_direct" != no &&
14745     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14746     # have to relink, otherwise we might link with an installed library
14747     # when we should be linking with a yet-to-be-installed one
14748     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14749     test "$hardcode_minus_L" != no; then
14750    # Linking always hardcodes the temporary library directory.
14751    hardcode_action=relink
14752  else
14753    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14754    hardcode_action=immediate
14755  fi
14756else
14757  # We cannot hardcode anything, or else we can only hardcode existing
14758  # directories.
14759  hardcode_action=unsupported
14760fi
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14762$as_echo "$hardcode_action" >&6; }
14763
14764if test "$hardcode_action" = relink ||
14765   test "$inherit_rpath" = yes; then
14766  # Fast installation is not supported
14767  enable_fast_install=no
14768elif test "$shlibpath_overrides_runpath" = yes ||
14769     test "$enable_shared" = no; then
14770  # Fast installation is not necessary
14771  enable_fast_install=needless
14772fi
14773
14774
14775
14776
14777
14778
14779  if test "x$enable_dlopen" != xyes; then
14780  enable_dlopen=unknown
14781  enable_dlopen_self=unknown
14782  enable_dlopen_self_static=unknown
14783else
14784  lt_cv_dlopen=no
14785  lt_cv_dlopen_libs=
14786
14787  case $host_os in
14788  beos*)
14789    lt_cv_dlopen="load_add_on"
14790    lt_cv_dlopen_libs=
14791    lt_cv_dlopen_self=yes
14792    ;;
14793
14794  mingw* | pw32* | cegcc*)
14795    lt_cv_dlopen="LoadLibrary"
14796    lt_cv_dlopen_libs=
14797    ;;
14798
14799  cygwin*)
14800    lt_cv_dlopen="dlopen"
14801    lt_cv_dlopen_libs=
14802    ;;
14803
14804  darwin*)
14805  # if libdl is installed we need to link against it
14806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14807$as_echo_n "checking for dlopen in -ldl... " >&6; }
14808if ${ac_cv_lib_dl_dlopen+:} false; then :
14809  $as_echo_n "(cached) " >&6
14810else
14811  ac_check_lib_save_LIBS=$LIBS
14812LIBS="-ldl  $LIBS"
14813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814/* end confdefs.h.  */
14815
14816/* Override any GCC internal prototype to avoid an error.
14817   Use char because int might match the return type of a GCC
14818   builtin and then its argument prototype would still apply.  */
14819#ifdef __cplusplus
14820extern "C"
14821#endif
14822char dlopen ();
14823int
14824main ()
14825{
14826return dlopen ();
14827  ;
14828  return 0;
14829}
14830_ACEOF
14831if ac_fn_c_try_link "$LINENO"; then :
14832  ac_cv_lib_dl_dlopen=yes
14833else
14834  ac_cv_lib_dl_dlopen=no
14835fi
14836rm -f core conftest.err conftest.$ac_objext \
14837    conftest$ac_exeext conftest.$ac_ext
14838LIBS=$ac_check_lib_save_LIBS
14839fi
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14841$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14842if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14843  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14844else
14845
14846    lt_cv_dlopen="dyld"
14847    lt_cv_dlopen_libs=
14848    lt_cv_dlopen_self=yes
14849
14850fi
14851
14852    ;;
14853
14854  *)
14855    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14856if test "x$ac_cv_func_shl_load" = xyes; then :
14857  lt_cv_dlopen="shl_load"
14858else
14859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14860$as_echo_n "checking for shl_load in -ldld... " >&6; }
14861if ${ac_cv_lib_dld_shl_load+:} false; then :
14862  $as_echo_n "(cached) " >&6
14863else
14864  ac_check_lib_save_LIBS=$LIBS
14865LIBS="-ldld  $LIBS"
14866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h.  */
14868
14869/* Override any GCC internal prototype to avoid an error.
14870   Use char because int might match the return type of a GCC
14871   builtin and then its argument prototype would still apply.  */
14872#ifdef __cplusplus
14873extern "C"
14874#endif
14875char shl_load ();
14876int
14877main ()
14878{
14879return shl_load ();
14880  ;
14881  return 0;
14882}
14883_ACEOF
14884if ac_fn_c_try_link "$LINENO"; then :
14885  ac_cv_lib_dld_shl_load=yes
14886else
14887  ac_cv_lib_dld_shl_load=no
14888fi
14889rm -f core conftest.err conftest.$ac_objext \
14890    conftest$ac_exeext conftest.$ac_ext
14891LIBS=$ac_check_lib_save_LIBS
14892fi
14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14894$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14895if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14896  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14897else
14898  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14899if test "x$ac_cv_func_dlopen" = xyes; then :
14900  lt_cv_dlopen="dlopen"
14901else
14902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14903$as_echo_n "checking for dlopen in -ldl... " >&6; }
14904if ${ac_cv_lib_dl_dlopen+:} false; then :
14905  $as_echo_n "(cached) " >&6
14906else
14907  ac_check_lib_save_LIBS=$LIBS
14908LIBS="-ldl  $LIBS"
14909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910/* end confdefs.h.  */
14911
14912/* Override any GCC internal prototype to avoid an error.
14913   Use char because int might match the return type of a GCC
14914   builtin and then its argument prototype would still apply.  */
14915#ifdef __cplusplus
14916extern "C"
14917#endif
14918char dlopen ();
14919int
14920main ()
14921{
14922return dlopen ();
14923  ;
14924  return 0;
14925}
14926_ACEOF
14927if ac_fn_c_try_link "$LINENO"; then :
14928  ac_cv_lib_dl_dlopen=yes
14929else
14930  ac_cv_lib_dl_dlopen=no
14931fi
14932rm -f core conftest.err conftest.$ac_objext \
14933    conftest$ac_exeext conftest.$ac_ext
14934LIBS=$ac_check_lib_save_LIBS
14935fi
14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14937$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14938if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14939  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14940else
14941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14942$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14943if ${ac_cv_lib_svld_dlopen+:} false; then :
14944  $as_echo_n "(cached) " >&6
14945else
14946  ac_check_lib_save_LIBS=$LIBS
14947LIBS="-lsvld  $LIBS"
14948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949/* end confdefs.h.  */
14950
14951/* Override any GCC internal prototype to avoid an error.
14952   Use char because int might match the return type of a GCC
14953   builtin and then its argument prototype would still apply.  */
14954#ifdef __cplusplus
14955extern "C"
14956#endif
14957char dlopen ();
14958int
14959main ()
14960{
14961return dlopen ();
14962  ;
14963  return 0;
14964}
14965_ACEOF
14966if ac_fn_c_try_link "$LINENO"; then :
14967  ac_cv_lib_svld_dlopen=yes
14968else
14969  ac_cv_lib_svld_dlopen=no
14970fi
14971rm -f core conftest.err conftest.$ac_objext \
14972    conftest$ac_exeext conftest.$ac_ext
14973LIBS=$ac_check_lib_save_LIBS
14974fi
14975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14976$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14977if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14978  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14979else
14980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14981$as_echo_n "checking for dld_link in -ldld... " >&6; }
14982if ${ac_cv_lib_dld_dld_link+:} false; then :
14983  $as_echo_n "(cached) " >&6
14984else
14985  ac_check_lib_save_LIBS=$LIBS
14986LIBS="-ldld  $LIBS"
14987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988/* end confdefs.h.  */
14989
14990/* Override any GCC internal prototype to avoid an error.
14991   Use char because int might match the return type of a GCC
14992   builtin and then its argument prototype would still apply.  */
14993#ifdef __cplusplus
14994extern "C"
14995#endif
14996char dld_link ();
14997int
14998main ()
14999{
15000return dld_link ();
15001  ;
15002  return 0;
15003}
15004_ACEOF
15005if ac_fn_c_try_link "$LINENO"; then :
15006  ac_cv_lib_dld_dld_link=yes
15007else
15008  ac_cv_lib_dld_dld_link=no
15009fi
15010rm -f core conftest.err conftest.$ac_objext \
15011    conftest$ac_exeext conftest.$ac_ext
15012LIBS=$ac_check_lib_save_LIBS
15013fi
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15015$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15016if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15017  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15018fi
15019
15020
15021fi
15022
15023
15024fi
15025
15026
15027fi
15028
15029
15030fi
15031
15032
15033fi
15034
15035    ;;
15036  esac
15037
15038  if test "x$lt_cv_dlopen" != xno; then
15039    enable_dlopen=yes
15040  else
15041    enable_dlopen=no
15042  fi
15043
15044  case $lt_cv_dlopen in
15045  dlopen)
15046    save_CPPFLAGS="$CPPFLAGS"
15047    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15048
15049    save_LDFLAGS="$LDFLAGS"
15050    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15051
15052    save_LIBS="$LIBS"
15053    LIBS="$lt_cv_dlopen_libs $LIBS"
15054
15055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15056$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15057if ${lt_cv_dlopen_self+:} false; then :
15058  $as_echo_n "(cached) " >&6
15059else
15060  	  if test "$cross_compiling" = yes; then :
15061  lt_cv_dlopen_self=cross
15062else
15063  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15064  lt_status=$lt_dlunknown
15065  cat > conftest.$ac_ext <<_LT_EOF
15066#line $LINENO "configure"
15067#include "confdefs.h"
15068
15069#if HAVE_DLFCN_H
15070#include <dlfcn.h>
15071#endif
15072
15073#include <stdio.h>
15074
15075#ifdef RTLD_GLOBAL
15076#  define LT_DLGLOBAL		RTLD_GLOBAL
15077#else
15078#  ifdef DL_GLOBAL
15079#    define LT_DLGLOBAL		DL_GLOBAL
15080#  else
15081#    define LT_DLGLOBAL		0
15082#  endif
15083#endif
15084
15085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15086   find out it does not work in some platform. */
15087#ifndef LT_DLLAZY_OR_NOW
15088#  ifdef RTLD_LAZY
15089#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15090#  else
15091#    ifdef DL_LAZY
15092#      define LT_DLLAZY_OR_NOW		DL_LAZY
15093#    else
15094#      ifdef RTLD_NOW
15095#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15096#      else
15097#        ifdef DL_NOW
15098#          define LT_DLLAZY_OR_NOW	DL_NOW
15099#        else
15100#          define LT_DLLAZY_OR_NOW	0
15101#        endif
15102#      endif
15103#    endif
15104#  endif
15105#endif
15106
15107/* When -fvisbility=hidden is used, assume the code has been annotated
15108   correspondingly for the symbols needed.  */
15109#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15110int fnord () __attribute__((visibility("default")));
15111#endif
15112
15113int fnord () { return 42; }
15114int main ()
15115{
15116  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15117  int status = $lt_dlunknown;
15118
15119  if (self)
15120    {
15121      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15122      else
15123        {
15124	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15125          else puts (dlerror ());
15126	}
15127      /* dlclose (self); */
15128    }
15129  else
15130    puts (dlerror ());
15131
15132  return status;
15133}
15134_LT_EOF
15135  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15136  (eval $ac_link) 2>&5
15137  ac_status=$?
15138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15139  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15140    (./conftest; exit; ) >&5 2>/dev/null
15141    lt_status=$?
15142    case x$lt_status in
15143      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15144      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15145      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15146    esac
15147  else :
15148    # compilation failed
15149    lt_cv_dlopen_self=no
15150  fi
15151fi
15152rm -fr conftest*
15153
15154
15155fi
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15157$as_echo "$lt_cv_dlopen_self" >&6; }
15158
15159    if test "x$lt_cv_dlopen_self" = xyes; then
15160      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15161      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15162$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15163if ${lt_cv_dlopen_self_static+:} false; then :
15164  $as_echo_n "(cached) " >&6
15165else
15166  	  if test "$cross_compiling" = yes; then :
15167  lt_cv_dlopen_self_static=cross
15168else
15169  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15170  lt_status=$lt_dlunknown
15171  cat > conftest.$ac_ext <<_LT_EOF
15172#line $LINENO "configure"
15173#include "confdefs.h"
15174
15175#if HAVE_DLFCN_H
15176#include <dlfcn.h>
15177#endif
15178
15179#include <stdio.h>
15180
15181#ifdef RTLD_GLOBAL
15182#  define LT_DLGLOBAL		RTLD_GLOBAL
15183#else
15184#  ifdef DL_GLOBAL
15185#    define LT_DLGLOBAL		DL_GLOBAL
15186#  else
15187#    define LT_DLGLOBAL		0
15188#  endif
15189#endif
15190
15191/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15192   find out it does not work in some platform. */
15193#ifndef LT_DLLAZY_OR_NOW
15194#  ifdef RTLD_LAZY
15195#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15196#  else
15197#    ifdef DL_LAZY
15198#      define LT_DLLAZY_OR_NOW		DL_LAZY
15199#    else
15200#      ifdef RTLD_NOW
15201#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15202#      else
15203#        ifdef DL_NOW
15204#          define LT_DLLAZY_OR_NOW	DL_NOW
15205#        else
15206#          define LT_DLLAZY_OR_NOW	0
15207#        endif
15208#      endif
15209#    endif
15210#  endif
15211#endif
15212
15213/* When -fvisbility=hidden is used, assume the code has been annotated
15214   correspondingly for the symbols needed.  */
15215#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15216int fnord () __attribute__((visibility("default")));
15217#endif
15218
15219int fnord () { return 42; }
15220int main ()
15221{
15222  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15223  int status = $lt_dlunknown;
15224
15225  if (self)
15226    {
15227      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15228      else
15229        {
15230	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15231          else puts (dlerror ());
15232	}
15233      /* dlclose (self); */
15234    }
15235  else
15236    puts (dlerror ());
15237
15238  return status;
15239}
15240_LT_EOF
15241  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15242  (eval $ac_link) 2>&5
15243  ac_status=$?
15244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15246    (./conftest; exit; ) >&5 2>/dev/null
15247    lt_status=$?
15248    case x$lt_status in
15249      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15250      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15251      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15252    esac
15253  else :
15254    # compilation failed
15255    lt_cv_dlopen_self_static=no
15256  fi
15257fi
15258rm -fr conftest*
15259
15260
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15263$as_echo "$lt_cv_dlopen_self_static" >&6; }
15264    fi
15265
15266    CPPFLAGS="$save_CPPFLAGS"
15267    LDFLAGS="$save_LDFLAGS"
15268    LIBS="$save_LIBS"
15269    ;;
15270  esac
15271
15272  case $lt_cv_dlopen_self in
15273  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15274  *) enable_dlopen_self=unknown ;;
15275  esac
15276
15277  case $lt_cv_dlopen_self_static in
15278  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15279  *) enable_dlopen_self_static=unknown ;;
15280  esac
15281fi
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299striplib=
15300old_striplib=
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15302$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15303if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15304  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15305  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15307$as_echo "yes" >&6; }
15308else
15309# FIXME - insert some real tests, host_os isn't really good enough
15310  case $host_os in
15311  darwin*)
15312    if test -n "$STRIP" ; then
15313      striplib="$STRIP -x"
15314      old_striplib="$STRIP -S"
15315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15316$as_echo "yes" >&6; }
15317    else
15318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15319$as_echo "no" >&6; }
15320    fi
15321    ;;
15322  *)
15323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324$as_echo "no" >&6; }
15325    ;;
15326  esac
15327fi
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340  # Report which library types will actually be built
15341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15342$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15344$as_echo "$can_build_shared" >&6; }
15345
15346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15347$as_echo_n "checking whether to build shared libraries... " >&6; }
15348  test "$can_build_shared" = "no" && enable_shared=no
15349
15350  # On AIX, shared libraries and static libraries use the same namespace, and
15351  # are all built from PIC.
15352  case $host_os in
15353  aix3*)
15354    test "$enable_shared" = yes && enable_static=no
15355    if test -n "$RANLIB"; then
15356      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15357      postinstall_cmds='$RANLIB $lib'
15358    fi
15359    ;;
15360
15361  aix[4-9]*)
15362    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15363      test "$enable_shared" = yes && enable_static=no
15364    fi
15365    ;;
15366  esac
15367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15368$as_echo "$enable_shared" >&6; }
15369
15370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15371$as_echo_n "checking whether to build static libraries... " >&6; }
15372  # Make sure either enable_shared or enable_static is yes.
15373  test "$enable_shared" = yes || enable_static=yes
15374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15375$as_echo "$enable_static" >&6; }
15376
15377
15378
15379
15380fi
15381ac_ext=c
15382ac_cpp='$CPP $CPPFLAGS'
15383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15385ac_compiler_gnu=$ac_cv_c_compiler_gnu
15386
15387CC="$lt_save_CC"
15388
15389      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15390    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15391    (test "X$CXX" != "Xg++"))) ; then
15392  ac_ext=cpp
15393ac_cpp='$CXXCPP $CPPFLAGS'
15394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15398$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15399if test -z "$CXXCPP"; then
15400  if ${ac_cv_prog_CXXCPP+:} false; then :
15401  $as_echo_n "(cached) " >&6
15402else
15403      # Double quotes because CXXCPP needs to be expanded
15404    for CXXCPP in "$CXX -E" "/lib/cpp"
15405    do
15406      ac_preproc_ok=false
15407for ac_cxx_preproc_warn_flag in '' yes
15408do
15409  # Use a header file that comes with gcc, so configuring glibc
15410  # with a fresh cross-compiler works.
15411  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15412  # <limits.h> exists even on freestanding compilers.
15413  # On the NeXT, cc -E runs the code through the compiler's parser,
15414  # not just through cpp. "Syntax error" is here to catch this case.
15415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416/* end confdefs.h.  */
15417#ifdef __STDC__
15418# include <limits.h>
15419#else
15420# include <assert.h>
15421#endif
15422		     Syntax error
15423_ACEOF
15424if ac_fn_cxx_try_cpp "$LINENO"; then :
15425
15426else
15427  # Broken: fails on valid input.
15428continue
15429fi
15430rm -f conftest.err conftest.i conftest.$ac_ext
15431
15432  # OK, works on sane cases.  Now check whether nonexistent headers
15433  # can be detected and how.
15434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435/* end confdefs.h.  */
15436#include <ac_nonexistent.h>
15437_ACEOF
15438if ac_fn_cxx_try_cpp "$LINENO"; then :
15439  # Broken: success on invalid input.
15440continue
15441else
15442  # Passes both tests.
15443ac_preproc_ok=:
15444break
15445fi
15446rm -f conftest.err conftest.i conftest.$ac_ext
15447
15448done
15449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15450rm -f conftest.i conftest.err conftest.$ac_ext
15451if $ac_preproc_ok; then :
15452  break
15453fi
15454
15455    done
15456    ac_cv_prog_CXXCPP=$CXXCPP
15457
15458fi
15459  CXXCPP=$ac_cv_prog_CXXCPP
15460else
15461  ac_cv_prog_CXXCPP=$CXXCPP
15462fi
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15464$as_echo "$CXXCPP" >&6; }
15465ac_preproc_ok=false
15466for ac_cxx_preproc_warn_flag in '' yes
15467do
15468  # Use a header file that comes with gcc, so configuring glibc
15469  # with a fresh cross-compiler works.
15470  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15471  # <limits.h> exists even on freestanding compilers.
15472  # On the NeXT, cc -E runs the code through the compiler's parser,
15473  # not just through cpp. "Syntax error" is here to catch this case.
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476#ifdef __STDC__
15477# include <limits.h>
15478#else
15479# include <assert.h>
15480#endif
15481		     Syntax error
15482_ACEOF
15483if ac_fn_cxx_try_cpp "$LINENO"; then :
15484
15485else
15486  # Broken: fails on valid input.
15487continue
15488fi
15489rm -f conftest.err conftest.i conftest.$ac_ext
15490
15491  # OK, works on sane cases.  Now check whether nonexistent headers
15492  # can be detected and how.
15493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494/* end confdefs.h.  */
15495#include <ac_nonexistent.h>
15496_ACEOF
15497if ac_fn_cxx_try_cpp "$LINENO"; then :
15498  # Broken: success on invalid input.
15499continue
15500else
15501  # Passes both tests.
15502ac_preproc_ok=:
15503break
15504fi
15505rm -f conftest.err conftest.i conftest.$ac_ext
15506
15507done
15508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15509rm -f conftest.i conftest.err conftest.$ac_ext
15510if $ac_preproc_ok; then :
15511
15512else
15513  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15515as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15516See \`config.log' for more details" "$LINENO" 5; }
15517fi
15518
15519ac_ext=c
15520ac_cpp='$CPP $CPPFLAGS'
15521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15523ac_compiler_gnu=$ac_cv_c_compiler_gnu
15524
15525else
15526  _lt_caught_CXX_error=yes
15527fi
15528
15529ac_ext=cpp
15530ac_cpp='$CXXCPP $CPPFLAGS'
15531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15534
15535archive_cmds_need_lc_CXX=no
15536allow_undefined_flag_CXX=
15537always_export_symbols_CXX=no
15538archive_expsym_cmds_CXX=
15539compiler_needs_object_CXX=no
15540export_dynamic_flag_spec_CXX=
15541hardcode_direct_CXX=no
15542hardcode_direct_absolute_CXX=no
15543hardcode_libdir_flag_spec_CXX=
15544hardcode_libdir_flag_spec_ld_CXX=
15545hardcode_libdir_separator_CXX=
15546hardcode_minus_L_CXX=no
15547hardcode_shlibpath_var_CXX=unsupported
15548hardcode_automatic_CXX=no
15549inherit_rpath_CXX=no
15550module_cmds_CXX=
15551module_expsym_cmds_CXX=
15552link_all_deplibs_CXX=unknown
15553old_archive_cmds_CXX=$old_archive_cmds
15554reload_flag_CXX=$reload_flag
15555reload_cmds_CXX=$reload_cmds
15556no_undefined_flag_CXX=
15557whole_archive_flag_spec_CXX=
15558enable_shared_with_static_runtimes_CXX=no
15559
15560# Source file extension for C++ test sources.
15561ac_ext=cpp
15562
15563# Object file extension for compiled C++ test sources.
15564objext=o
15565objext_CXX=$objext
15566
15567# No sense in running all these tests if we already determined that
15568# the CXX compiler isn't working.  Some variables (like enable_shared)
15569# are currently assumed to apply to all compilers on this platform,
15570# and will be corrupted by setting them based on a non-working compiler.
15571if test "$_lt_caught_CXX_error" != yes; then
15572  # Code to be used in simple compile tests
15573  lt_simple_compile_test_code="int some_variable = 0;"
15574
15575  # Code to be used in simple link tests
15576  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15577
15578  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15579
15580
15581
15582
15583
15584
15585# If no C compiler was specified, use CC.
15586LTCC=${LTCC-"$CC"}
15587
15588# If no C compiler flags were specified, use CFLAGS.
15589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15590
15591# Allow CC to be a program name with arguments.
15592compiler=$CC
15593
15594
15595  # save warnings/boilerplate of simple test code
15596  ac_outfile=conftest.$ac_objext
15597echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15598eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15599_lt_compiler_boilerplate=`cat conftest.err`
15600$RM conftest*
15601
15602  ac_outfile=conftest.$ac_objext
15603echo "$lt_simple_link_test_code" >conftest.$ac_ext
15604eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15605_lt_linker_boilerplate=`cat conftest.err`
15606$RM -r conftest*
15607
15608
15609  # Allow CC to be a program name with arguments.
15610  lt_save_CC=$CC
15611  lt_save_CFLAGS=$CFLAGS
15612  lt_save_LD=$LD
15613  lt_save_GCC=$GCC
15614  GCC=$GXX
15615  lt_save_with_gnu_ld=$with_gnu_ld
15616  lt_save_path_LD=$lt_cv_path_LD
15617  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15618    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15619  else
15620    $as_unset lt_cv_prog_gnu_ld
15621  fi
15622  if test -n "${lt_cv_path_LDCXX+set}"; then
15623    lt_cv_path_LD=$lt_cv_path_LDCXX
15624  else
15625    $as_unset lt_cv_path_LD
15626  fi
15627  test -z "${LDCXX+set}" || LD=$LDCXX
15628  CC=${CXX-"c++"}
15629  CFLAGS=$CXXFLAGS
15630  compiler=$CC
15631  compiler_CXX=$CC
15632  for cc_temp in $compiler""; do
15633  case $cc_temp in
15634    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15635    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15636    \-*) ;;
15637    *) break;;
15638  esac
15639done
15640cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15641
15642
15643  if test -n "$compiler"; then
15644    # We don't want -fno-exception when compiling C++ code, so set the
15645    # no_builtin_flag separately
15646    if test "$GXX" = yes; then
15647      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15648    else
15649      lt_prog_compiler_no_builtin_flag_CXX=
15650    fi
15651
15652    if test "$GXX" = yes; then
15653      # Set up default GNU C++ configuration
15654
15655
15656
15657# Check whether --with-gnu-ld was given.
15658if test "${with_gnu_ld+set}" = set; then :
15659  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15660else
15661  with_gnu_ld=no
15662fi
15663
15664ac_prog=ld
15665if test "$GCC" = yes; then
15666  # Check if gcc -print-prog-name=ld gives a path.
15667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15668$as_echo_n "checking for ld used by $CC... " >&6; }
15669  case $host in
15670  *-*-mingw*)
15671    # gcc leaves a trailing carriage return which upsets mingw
15672    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15673  *)
15674    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15675  esac
15676  case $ac_prog in
15677    # Accept absolute paths.
15678    [\\/]* | ?:[\\/]*)
15679      re_direlt='/[^/][^/]*/\.\./'
15680      # Canonicalize the pathname of ld
15681      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15682      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15683	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15684      done
15685      test -z "$LD" && LD="$ac_prog"
15686      ;;
15687  "")
15688    # If it fails, then pretend we aren't using GCC.
15689    ac_prog=ld
15690    ;;
15691  *)
15692    # If it is relative, then search for the first ld in PATH.
15693    with_gnu_ld=unknown
15694    ;;
15695  esac
15696elif test "$with_gnu_ld" = yes; then
15697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15698$as_echo_n "checking for GNU ld... " >&6; }
15699else
15700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15701$as_echo_n "checking for non-GNU ld... " >&6; }
15702fi
15703if ${lt_cv_path_LD+:} false; then :
15704  $as_echo_n "(cached) " >&6
15705else
15706  if test -z "$LD"; then
15707  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15708  for ac_dir in $PATH; do
15709    IFS="$lt_save_ifs"
15710    test -z "$ac_dir" && ac_dir=.
15711    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15712      lt_cv_path_LD="$ac_dir/$ac_prog"
15713      # Check to see if the program is GNU ld.  I'd rather use --version,
15714      # but apparently some variants of GNU ld only accept -v.
15715      # Break only if it was the GNU/non-GNU ld that we prefer.
15716      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15717      *GNU* | *'with BFD'*)
15718	test "$with_gnu_ld" != no && break
15719	;;
15720      *)
15721	test "$with_gnu_ld" != yes && break
15722	;;
15723      esac
15724    fi
15725  done
15726  IFS="$lt_save_ifs"
15727else
15728  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15729fi
15730fi
15731
15732LD="$lt_cv_path_LD"
15733if test -n "$LD"; then
15734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15735$as_echo "$LD" >&6; }
15736else
15737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738$as_echo "no" >&6; }
15739fi
15740test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15742$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15743if ${lt_cv_prog_gnu_ld+:} false; then :
15744  $as_echo_n "(cached) " >&6
15745else
15746  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15747case `$LD -v 2>&1 </dev/null` in
15748*GNU* | *'with BFD'*)
15749  lt_cv_prog_gnu_ld=yes
15750  ;;
15751*)
15752  lt_cv_prog_gnu_ld=no
15753  ;;
15754esac
15755fi
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15757$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15758with_gnu_ld=$lt_cv_prog_gnu_ld
15759
15760
15761
15762
15763
15764
15765
15766      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15767      # archiving commands below assume that GNU ld is being used.
15768      if test "$with_gnu_ld" = yes; then
15769        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15770        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'
15771
15772        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15773        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15774
15775        # If archive_cmds runs LD, not CC, wlarc should be empty
15776        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15777        #     investigate it a little bit more. (MM)
15778        wlarc='${wl}'
15779
15780        # ancient GNU ld didn't support --whole-archive et. al.
15781        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15782	  $GREP 'no-whole-archive' > /dev/null; then
15783          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15784        else
15785          whole_archive_flag_spec_CXX=
15786        fi
15787      else
15788        with_gnu_ld=no
15789        wlarc=
15790
15791        # A generic and very simple default shared library creation
15792        # command for GNU C++ for the case where it uses the native
15793        # linker, instead of GNU ld.  If possible, this setting should
15794        # overridden to take advantage of the native linker features on
15795        # the platform it is being used on.
15796        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15797      fi
15798
15799      # Commands to make compiler produce verbose output that lists
15800      # what "hidden" libraries, object files and flags are used when
15801      # linking a shared library.
15802      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15803
15804    else
15805      GXX=no
15806      with_gnu_ld=no
15807      wlarc=
15808    fi
15809
15810    # PORTME: fill in a description of your system's C++ link characteristics
15811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15812$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15813    ld_shlibs_CXX=yes
15814    case $host_os in
15815      aix3*)
15816        # FIXME: insert proper C++ library support
15817        ld_shlibs_CXX=no
15818        ;;
15819      aix[4-9]*)
15820        if test "$host_cpu" = ia64; then
15821          # On IA64, the linker does run time linking by default, so we don't
15822          # have to do anything special.
15823          aix_use_runtimelinking=no
15824          exp_sym_flag='-Bexport'
15825          no_entry_flag=""
15826        else
15827          aix_use_runtimelinking=no
15828
15829          # Test if we are trying to use run time linking or normal
15830          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15831          # need to do runtime linking.
15832          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15833	    for ld_flag in $LDFLAGS; do
15834	      case $ld_flag in
15835	      *-brtl*)
15836	        aix_use_runtimelinking=yes
15837	        break
15838	        ;;
15839	      esac
15840	    done
15841	    ;;
15842          esac
15843
15844          exp_sym_flag='-bexport'
15845          no_entry_flag='-bnoentry'
15846        fi
15847
15848        # When large executables or shared objects are built, AIX ld can
15849        # have problems creating the table of contents.  If linking a library
15850        # or program results in "error TOC overflow" add -mminimal-toc to
15851        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15852        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15853
15854        archive_cmds_CXX=''
15855        hardcode_direct_CXX=yes
15856        hardcode_direct_absolute_CXX=yes
15857        hardcode_libdir_separator_CXX=':'
15858        link_all_deplibs_CXX=yes
15859        file_list_spec_CXX='${wl}-f,'
15860
15861        if test "$GXX" = yes; then
15862          case $host_os in aix4.[012]|aix4.[012].*)
15863          # We only want to do this on AIX 4.2 and lower, the check
15864          # below for broken collect2 doesn't work under 4.3+
15865	  collect2name=`${CC} -print-prog-name=collect2`
15866	  if test -f "$collect2name" &&
15867	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15868	  then
15869	    # We have reworked collect2
15870	    :
15871	  else
15872	    # We have old collect2
15873	    hardcode_direct_CXX=unsupported
15874	    # It fails to find uninstalled libraries when the uninstalled
15875	    # path is not listed in the libpath.  Setting hardcode_minus_L
15876	    # to unsupported forces relinking
15877	    hardcode_minus_L_CXX=yes
15878	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15879	    hardcode_libdir_separator_CXX=
15880	  fi
15881          esac
15882          shared_flag='-shared'
15883	  if test "$aix_use_runtimelinking" = yes; then
15884	    shared_flag="$shared_flag "'${wl}-G'
15885	  fi
15886        else
15887          # not using gcc
15888          if test "$host_cpu" = ia64; then
15889	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15890	  # chokes on -Wl,-G. The following line is correct:
15891	  shared_flag='-G'
15892          else
15893	    if test "$aix_use_runtimelinking" = yes; then
15894	      shared_flag='${wl}-G'
15895	    else
15896	      shared_flag='${wl}-bM:SRE'
15897	    fi
15898          fi
15899        fi
15900
15901        export_dynamic_flag_spec_CXX='${wl}-bexpall'
15902        # It seems that -bexpall does not export symbols beginning with
15903        # underscore (_), so it is better to generate a list of symbols to
15904	# export.
15905        always_export_symbols_CXX=yes
15906        if test "$aix_use_runtimelinking" = yes; then
15907          # Warning - without using the other runtime loading flags (-brtl),
15908          # -berok will link without error, but may produce a broken library.
15909          allow_undefined_flag_CXX='-berok'
15910          # Determine the default libpath from the value encoded in an empty
15911          # executable.
15912          if test "${lt_cv_aix_libpath+set}" = set; then
15913  aix_libpath=$lt_cv_aix_libpath
15914else
15915  if ${lt_cv_aix_libpath__CXX+:} false; then :
15916  $as_echo_n "(cached) " >&6
15917else
15918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919/* end confdefs.h.  */
15920
15921int
15922main ()
15923{
15924
15925  ;
15926  return 0;
15927}
15928_ACEOF
15929if ac_fn_cxx_try_link "$LINENO"; then :
15930
15931  lt_aix_libpath_sed='
15932      /Import File Strings/,/^$/ {
15933	  /^0/ {
15934	      s/^0  *\([^ ]*\) *$/\1/
15935	      p
15936	  }
15937      }'
15938  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15939  # Check for a 64-bit object if we didn't find anything.
15940  if test -z "$lt_cv_aix_libpath__CXX"; then
15941    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15942  fi
15943fi
15944rm -f core conftest.err conftest.$ac_objext \
15945    conftest$ac_exeext conftest.$ac_ext
15946  if test -z "$lt_cv_aix_libpath__CXX"; then
15947    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15948  fi
15949
15950fi
15951
15952  aix_libpath=$lt_cv_aix_libpath__CXX
15953fi
15954
15955          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15956
15957          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"
15958        else
15959          if test "$host_cpu" = ia64; then
15960	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15961	    allow_undefined_flag_CXX="-z nodefs"
15962	    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"
15963          else
15964	    # Determine the default libpath from the value encoded in an
15965	    # empty executable.
15966	    if test "${lt_cv_aix_libpath+set}" = set; then
15967  aix_libpath=$lt_cv_aix_libpath
15968else
15969  if ${lt_cv_aix_libpath__CXX+:} false; then :
15970  $as_echo_n "(cached) " >&6
15971else
15972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973/* end confdefs.h.  */
15974
15975int
15976main ()
15977{
15978
15979  ;
15980  return 0;
15981}
15982_ACEOF
15983if ac_fn_cxx_try_link "$LINENO"; then :
15984
15985  lt_aix_libpath_sed='
15986      /Import File Strings/,/^$/ {
15987	  /^0/ {
15988	      s/^0  *\([^ ]*\) *$/\1/
15989	      p
15990	  }
15991      }'
15992  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15993  # Check for a 64-bit object if we didn't find anything.
15994  if test -z "$lt_cv_aix_libpath__CXX"; then
15995    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15996  fi
15997fi
15998rm -f core conftest.err conftest.$ac_objext \
15999    conftest$ac_exeext conftest.$ac_ext
16000  if test -z "$lt_cv_aix_libpath__CXX"; then
16001    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16002  fi
16003
16004fi
16005
16006  aix_libpath=$lt_cv_aix_libpath__CXX
16007fi
16008
16009	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16010	    # Warning - without using the other run time loading flags,
16011	    # -berok will link without error, but may produce a broken library.
16012	    no_undefined_flag_CXX=' ${wl}-bernotok'
16013	    allow_undefined_flag_CXX=' ${wl}-berok'
16014	    if test "$with_gnu_ld" = yes; then
16015	      # We only use this code for GNU lds that support --whole-archive.
16016	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16017	    else
16018	      # Exported symbols can be pulled into shared objects from archives
16019	      whole_archive_flag_spec_CXX='$convenience'
16020	    fi
16021	    archive_cmds_need_lc_CXX=yes
16022	    # This is similar to how AIX traditionally builds its shared
16023	    # libraries.
16024	    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'
16025          fi
16026        fi
16027        ;;
16028
16029      beos*)
16030	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16031	  allow_undefined_flag_CXX=unsupported
16032	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16033	  # support --undefined.  This deserves some investigation.  FIXME
16034	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035	else
16036	  ld_shlibs_CXX=no
16037	fi
16038	;;
16039
16040      chorus*)
16041        case $cc_basename in
16042          *)
16043	  # FIXME: insert proper C++ library support
16044	  ld_shlibs_CXX=no
16045	  ;;
16046        esac
16047        ;;
16048
16049      cygwin* | mingw* | pw32* | cegcc*)
16050	case $GXX,$cc_basename in
16051	,cl* | no,cl*)
16052	  # Native MSVC
16053	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16054	  # no search path for DLLs.
16055	  hardcode_libdir_flag_spec_CXX=' '
16056	  allow_undefined_flag_CXX=unsupported
16057	  always_export_symbols_CXX=yes
16058	  file_list_spec_CXX='@'
16059	  # Tell ltmain to make .lib files, not .a files.
16060	  libext=lib
16061	  # Tell ltmain to make .dll files, not .so files.
16062	  shrext_cmds=".dll"
16063	  # FIXME: Setting linknames here is a bad hack.
16064	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16065	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16066	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16067	    else
16068	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16069	    fi~
16070	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16071	    linknames='
16072	  # The linker will not automatically build a static lib if we build a DLL.
16073	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16074	  enable_shared_with_static_runtimes_CXX=yes
16075	  # Don't use ranlib
16076	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16077	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16078	    lt_tool_outputfile="@TOOL_OUTPUT@"~
16079	    case $lt_outputfile in
16080	      *.exe|*.EXE) ;;
16081	      *)
16082		lt_outputfile="$lt_outputfile.exe"
16083		lt_tool_outputfile="$lt_tool_outputfile.exe"
16084		;;
16085	    esac~
16086	    func_to_tool_file "$lt_outputfile"~
16087	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16088	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16089	      $RM "$lt_outputfile.manifest";
16090	    fi'
16091	  ;;
16092	*)
16093	  # g++
16094	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16095	  # as there is no search path for DLLs.
16096	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16097	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16098	  allow_undefined_flag_CXX=unsupported
16099	  always_export_symbols_CXX=no
16100	  enable_shared_with_static_runtimes_CXX=yes
16101
16102	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16103	    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'
16104	    # If the export-symbols file already is a .def file (1st line
16105	    # is EXPORTS), use it as is; otherwise, prepend...
16106	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16107	      cp $export_symbols $output_objdir/$soname.def;
16108	    else
16109	      echo EXPORTS > $output_objdir/$soname.def;
16110	      cat $export_symbols >> $output_objdir/$soname.def;
16111	    fi~
16112	    $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'
16113	  else
16114	    ld_shlibs_CXX=no
16115	  fi
16116	  ;;
16117	esac
16118	;;
16119      darwin* | rhapsody*)
16120
16121
16122  archive_cmds_need_lc_CXX=no
16123  hardcode_direct_CXX=no
16124  hardcode_automatic_CXX=yes
16125  hardcode_shlibpath_var_CXX=unsupported
16126  if test "$lt_cv_ld_force_load" = "yes"; then
16127    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\"`'
16128  else
16129    whole_archive_flag_spec_CXX=''
16130  fi
16131  link_all_deplibs_CXX=yes
16132  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16133  case $cc_basename in
16134     ifort*) _lt_dar_can_shared=yes ;;
16135     *) _lt_dar_can_shared=$GCC ;;
16136  esac
16137  if test "$_lt_dar_can_shared" = "yes"; then
16138    output_verbose_link_cmd=func_echo_all
16139    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}"
16140    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16141    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}"
16142    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}"
16143       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16144      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}"
16145      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}"
16146    fi
16147
16148  else
16149  ld_shlibs_CXX=no
16150  fi
16151
16152	;;
16153
16154      dgux*)
16155        case $cc_basename in
16156          ec++*)
16157	    # FIXME: insert proper C++ library support
16158	    ld_shlibs_CXX=no
16159	    ;;
16160          ghcx*)
16161	    # Green Hills C++ Compiler
16162	    # FIXME: insert proper C++ library support
16163	    ld_shlibs_CXX=no
16164	    ;;
16165          *)
16166	    # FIXME: insert proper C++ library support
16167	    ld_shlibs_CXX=no
16168	    ;;
16169        esac
16170        ;;
16171
16172      freebsd[12]*)
16173        # C++ shared libraries reported to be fairly broken before
16174	# switch to ELF
16175        ld_shlibs_CXX=no
16176        ;;
16177
16178      freebsd-elf*)
16179        archive_cmds_need_lc_CXX=no
16180        ;;
16181
16182      freebsd* | dragonfly*)
16183        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16184        # conventions
16185        ld_shlibs_CXX=yes
16186        ;;
16187
16188      gnu*)
16189        ;;
16190
16191      haiku*)
16192        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193        link_all_deplibs_CXX=yes
16194        ;;
16195
16196      hpux9*)
16197        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16198        hardcode_libdir_separator_CXX=:
16199        export_dynamic_flag_spec_CXX='${wl}-E'
16200        hardcode_direct_CXX=yes
16201        hardcode_minus_L_CXX=yes # Not in the search PATH,
16202				             # but as the default
16203				             # location of the library.
16204
16205        case $cc_basename in
16206          CC*)
16207            # FIXME: insert proper C++ library support
16208            ld_shlibs_CXX=no
16209            ;;
16210          aCC*)
16211            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'
16212            # Commands to make compiler produce verbose output that lists
16213            # what "hidden" libraries, object files and flags are used when
16214            # linking a shared library.
16215            #
16216            # There doesn't appear to be a way to prevent this compiler from
16217            # explicitly linking system object files so we need to strip them
16218            # from the output so that they don't get included in the library
16219            # dependencies.
16220            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"'
16221            ;;
16222          *)
16223            if test "$GXX" = yes; then
16224              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'
16225            else
16226              # FIXME: insert proper C++ library support
16227              ld_shlibs_CXX=no
16228            fi
16229            ;;
16230        esac
16231        ;;
16232
16233      hpux10*|hpux11*)
16234        if test $with_gnu_ld = no; then
16235	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16236	  hardcode_libdir_separator_CXX=:
16237
16238          case $host_cpu in
16239            hppa*64*|ia64*)
16240              ;;
16241            *)
16242	      export_dynamic_flag_spec_CXX='${wl}-E'
16243              ;;
16244          esac
16245        fi
16246        case $host_cpu in
16247          hppa*64*|ia64*)
16248            hardcode_direct_CXX=no
16249            hardcode_shlibpath_var_CXX=no
16250            ;;
16251          *)
16252            hardcode_direct_CXX=yes
16253            hardcode_direct_absolute_CXX=yes
16254            hardcode_minus_L_CXX=yes # Not in the search PATH,
16255					         # but as the default
16256					         # location of the library.
16257            ;;
16258        esac
16259
16260        case $cc_basename in
16261          CC*)
16262	    # FIXME: insert proper C++ library support
16263	    ld_shlibs_CXX=no
16264	    ;;
16265          aCC*)
16266	    case $host_cpu in
16267	      hppa*64*)
16268	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16269	        ;;
16270	      ia64*)
16271	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16272	        ;;
16273	      *)
16274	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16275	        ;;
16276	    esac
16277	    # Commands to make compiler produce verbose output that lists
16278	    # what "hidden" libraries, object files and flags are used when
16279	    # linking a shared library.
16280	    #
16281	    # There doesn't appear to be a way to prevent this compiler from
16282	    # explicitly linking system object files so we need to strip them
16283	    # from the output so that they don't get included in the library
16284	    # dependencies.
16285	    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"'
16286	    ;;
16287          *)
16288	    if test "$GXX" = yes; then
16289	      if test $with_gnu_ld = no; then
16290	        case $host_cpu in
16291	          hppa*64*)
16292	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16293	            ;;
16294	          ia64*)
16295	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16296	            ;;
16297	          *)
16298	            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'
16299	            ;;
16300	        esac
16301	      fi
16302	    else
16303	      # FIXME: insert proper C++ library support
16304	      ld_shlibs_CXX=no
16305	    fi
16306	    ;;
16307        esac
16308        ;;
16309
16310      interix[3-9]*)
16311	hardcode_direct_CXX=no
16312	hardcode_shlibpath_var_CXX=no
16313	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16314	export_dynamic_flag_spec_CXX='${wl}-E'
16315	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16316	# Instead, shared libraries are loaded at an image base (0x10000000 by
16317	# default) and relocated if they conflict, which is a slow very memory
16318	# consuming and fragmenting process.  To avoid this, we pick a random,
16319	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16320	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16321	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'
16322	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'
16323	;;
16324      irix5* | irix6*)
16325        case $cc_basename in
16326          CC*)
16327	    # SGI C++
16328	    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'
16329
16330	    # Archives containing C++ object files must be created using
16331	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16332	    # necessary to make sure instantiated templates are included
16333	    # in the archive.
16334	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16335	    ;;
16336          *)
16337	    if test "$GXX" = yes; then
16338	      if test "$with_gnu_ld" = no; then
16339	        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'
16340	      else
16341	        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'
16342	      fi
16343	    fi
16344	    link_all_deplibs_CXX=yes
16345	    ;;
16346        esac
16347        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16348        hardcode_libdir_separator_CXX=:
16349        inherit_rpath_CXX=yes
16350        ;;
16351
16352      linux* | k*bsd*-gnu | kopensolaris*-gnu)
16353        case $cc_basename in
16354          KCC*)
16355	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16356
16357	    # KCC will only create a shared library if the output file
16358	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16359	    # to its proper name (with version) after linking.
16360	    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'
16361	    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'
16362	    # Commands to make compiler produce verbose output that lists
16363	    # what "hidden" libraries, object files and flags are used when
16364	    # linking a shared library.
16365	    #
16366	    # There doesn't appear to be a way to prevent this compiler from
16367	    # explicitly linking system object files so we need to strip them
16368	    # from the output so that they don't get included in the library
16369	    # dependencies.
16370	    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"'
16371
16372	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16373	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16374
16375	    # Archives containing C++ object files must be created using
16376	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16377	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16378	    ;;
16379	  icpc* | ecpc* )
16380	    # Intel C++
16381	    with_gnu_ld=yes
16382	    # version 8.0 and above of icpc choke on multiply defined symbols
16383	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16384	    # earlier do not add the objects themselves.
16385	    case `$CC -V 2>&1` in
16386	      *"Version 7."*)
16387	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16388		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'
16389		;;
16390	      *)  # Version 8.0 or newer
16391	        tmp_idyn=
16392	        case $host_cpu in
16393		  ia64*) tmp_idyn=' -i_dynamic';;
16394		esac
16395	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16396		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'
16397		;;
16398	    esac
16399	    archive_cmds_need_lc_CXX=no
16400	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16401	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16402	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16403	    ;;
16404          pgCC* | pgcpp*)
16405            # Portland Group C++ compiler
16406	    case `$CC -V` in
16407	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16408	      prelink_cmds_CXX='tpldir=Template.dir~
16409		rm -rf $tpldir~
16410		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16411		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16412	      old_archive_cmds_CXX='tpldir=Template.dir~
16413		rm -rf $tpldir~
16414		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16415		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16416		$RANLIB $oldlib'
16417	      archive_cmds_CXX='tpldir=Template.dir~
16418		rm -rf $tpldir~
16419		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16420		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16421	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16422		rm -rf $tpldir~
16423		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16424		$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'
16425	      ;;
16426	    *) # Version 6 and above use weak symbols
16427	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16428	      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'
16429	      ;;
16430	    esac
16431
16432	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16433	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16434	    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'
16435            ;;
16436	  cxx*)
16437	    # Compaq C++
16438	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439	    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'
16440
16441	    runpath_var=LD_RUN_PATH
16442	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16443	    hardcode_libdir_separator_CXX=:
16444
16445	    # Commands to make compiler produce verbose output that lists
16446	    # what "hidden" libraries, object files and flags are used when
16447	    # linking a shared library.
16448	    #
16449	    # There doesn't appear to be a way to prevent this compiler from
16450	    # explicitly linking system object files so we need to strip them
16451	    # from the output so that they don't get included in the library
16452	    # dependencies.
16453	    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'
16454	    ;;
16455	  xl* | mpixl* | bgxl*)
16456	    # IBM XL 8.0 on PPC, with GNU ld
16457	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16458	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16459	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16460	    if test "x$supports_anon_versioning" = xyes; then
16461	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16462		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16463		echo "local: *; };" >> $output_objdir/$libname.ver~
16464		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16465	    fi
16466	    ;;
16467	  *)
16468	    case `$CC -V 2>&1 | sed 5q` in
16469	    *Sun\ C*)
16470	      # Sun C++ 5.9
16471	      no_undefined_flag_CXX=' -zdefs'
16472	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16473	      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'
16474	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16475	      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'
16476	      compiler_needs_object_CXX=yes
16477
16478	      # Not sure whether something based on
16479	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16480	      # would be better.
16481	      output_verbose_link_cmd='func_echo_all'
16482
16483	      # Archives containing C++ object files must be created using
16484	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16485	      # necessary to make sure instantiated templates are included
16486	      # in the archive.
16487	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16488	      ;;
16489	    esac
16490	    ;;
16491	esac
16492	;;
16493
16494      lynxos*)
16495        # FIXME: insert proper C++ library support
16496	ld_shlibs_CXX=no
16497	;;
16498
16499      m88k*)
16500        # FIXME: insert proper C++ library support
16501        ld_shlibs_CXX=no
16502	;;
16503
16504      mvs*)
16505        case $cc_basename in
16506          cxx*)
16507	    # FIXME: insert proper C++ library support
16508	    ld_shlibs_CXX=no
16509	    ;;
16510	  *)
16511	    # FIXME: insert proper C++ library support
16512	    ld_shlibs_CXX=no
16513	    ;;
16514	esac
16515	;;
16516
16517      netbsd*)
16518        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16519	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16520	  wlarc=
16521	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16522	  hardcode_direct_CXX=yes
16523	  hardcode_shlibpath_var_CXX=no
16524	fi
16525	# Workaround some broken pre-1.5 toolchains
16526	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16527	;;
16528
16529      *nto* | *qnx*)
16530        ld_shlibs_CXX=yes
16531	;;
16532
16533      openbsd2*)
16534        # C++ shared libraries are fairly broken
16535	ld_shlibs_CXX=no
16536	;;
16537
16538      openbsd*)
16539	if test -f /usr/libexec/ld.so; then
16540	  hardcode_direct_CXX=yes
16541	  hardcode_shlibpath_var_CXX=no
16542	  hardcode_direct_absolute_CXX=yes
16543	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16544	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16545	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16546	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16547	    export_dynamic_flag_spec_CXX='${wl}-E'
16548	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16549	  fi
16550	  output_verbose_link_cmd=func_echo_all
16551	else
16552	  ld_shlibs_CXX=no
16553	fi
16554	;;
16555
16556      osf3* | osf4* | osf5*)
16557        case $cc_basename in
16558          KCC*)
16559	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16560
16561	    # KCC will only create a shared library if the output file
16562	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16563	    # to its proper name (with version) after linking.
16564	    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'
16565
16566	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16567	    hardcode_libdir_separator_CXX=:
16568
16569	    # Archives containing C++ object files must be created using
16570	    # the KAI C++ compiler.
16571	    case $host in
16572	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16573	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16574	    esac
16575	    ;;
16576          RCC*)
16577	    # Rational C++ 2.4.1
16578	    # FIXME: insert proper C++ library support
16579	    ld_shlibs_CXX=no
16580	    ;;
16581          cxx*)
16582	    case $host in
16583	      osf3*)
16584	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16585	        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'
16586	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16587		;;
16588	      *)
16589	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16590	        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'
16591	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16592	          echo "-hidden">> $lib.exp~
16593	          $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~
16594	          $RM $lib.exp'
16595	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16596		;;
16597	    esac
16598
16599	    hardcode_libdir_separator_CXX=:
16600
16601	    # Commands to make compiler produce verbose output that lists
16602	    # what "hidden" libraries, object files and flags are used when
16603	    # linking a shared library.
16604	    #
16605	    # There doesn't appear to be a way to prevent this compiler from
16606	    # explicitly linking system object files so we need to strip them
16607	    # from the output so that they don't get included in the library
16608	    # dependencies.
16609	    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"'
16610	    ;;
16611	  *)
16612	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16613	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16614	      case $host in
16615	        osf3*)
16616	          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'
16617		  ;;
16618	        *)
16619	          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'
16620		  ;;
16621	      esac
16622
16623	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16624	      hardcode_libdir_separator_CXX=:
16625
16626	      # Commands to make compiler produce verbose output that lists
16627	      # what "hidden" libraries, object files and flags are used when
16628	      # linking a shared library.
16629	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16630
16631	    else
16632	      # FIXME: insert proper C++ library support
16633	      ld_shlibs_CXX=no
16634	    fi
16635	    ;;
16636        esac
16637        ;;
16638
16639      psos*)
16640        # FIXME: insert proper C++ library support
16641        ld_shlibs_CXX=no
16642        ;;
16643
16644      sunos4*)
16645        case $cc_basename in
16646          CC*)
16647	    # Sun C++ 4.x
16648	    # FIXME: insert proper C++ library support
16649	    ld_shlibs_CXX=no
16650	    ;;
16651          lcc*)
16652	    # Lucid
16653	    # FIXME: insert proper C++ library support
16654	    ld_shlibs_CXX=no
16655	    ;;
16656          *)
16657	    # FIXME: insert proper C++ library support
16658	    ld_shlibs_CXX=no
16659	    ;;
16660        esac
16661        ;;
16662
16663      solaris*)
16664        case $cc_basename in
16665          CC* | sunCC*)
16666	    # Sun C++ 4.2, 5.x and Centerline C++
16667            archive_cmds_need_lc_CXX=yes
16668	    no_undefined_flag_CXX=' -zdefs'
16669	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16670	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16671	      $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'
16672
16673	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16674	    hardcode_shlibpath_var_CXX=no
16675	    case $host_os in
16676	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16677	      *)
16678		# The compiler driver will combine and reorder linker options,
16679		# but understands `-z linker_flag'.
16680	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16681		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16682	        ;;
16683	    esac
16684	    link_all_deplibs_CXX=yes
16685
16686	    output_verbose_link_cmd='func_echo_all'
16687
16688	    # Archives containing C++ object files must be created using
16689	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16690	    # necessary to make sure instantiated templates are included
16691	    # in the archive.
16692	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16693	    ;;
16694          gcx*)
16695	    # Green Hills C++ Compiler
16696	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16697
16698	    # The C++ compiler must be used to create the archive.
16699	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16700	    ;;
16701          *)
16702	    # GNU C++ compiler with Solaris linker
16703	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16704	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16705	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16706	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16707	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16708		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16709
16710	        # Commands to make compiler produce verbose output that lists
16711	        # what "hidden" libraries, object files and flags are used when
16712	        # linking a shared library.
16713	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16714	      else
16715	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
16716	        # platform.
16717	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16718	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16719		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16720
16721	        # Commands to make compiler produce verbose output that lists
16722	        # what "hidden" libraries, object files and flags are used when
16723	        # linking a shared library.
16724	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16725	      fi
16726
16727	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16728	      case $host_os in
16729		solaris2.[0-5] | solaris2.[0-5].*) ;;
16730		*)
16731		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16732		  ;;
16733	      esac
16734	    fi
16735	    ;;
16736        esac
16737        ;;
16738
16739    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16740      no_undefined_flag_CXX='${wl}-z,text'
16741      archive_cmds_need_lc_CXX=no
16742      hardcode_shlibpath_var_CXX=no
16743      runpath_var='LD_RUN_PATH'
16744
16745      case $cc_basename in
16746        CC*)
16747	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749	  ;;
16750	*)
16751	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16753	  ;;
16754      esac
16755      ;;
16756
16757      sysv5* | sco3.2v5* | sco5v6*)
16758	# Note: We can NOT use -z defs as we might desire, because we do not
16759	# link with -lc, and that would cause any symbols used from libc to
16760	# always be unresolved, which means just about no library would
16761	# ever link correctly.  If we're not using GNU ld we use -z text
16762	# though, which does catch some bad symbols but isn't as heavy-handed
16763	# as -z defs.
16764	no_undefined_flag_CXX='${wl}-z,text'
16765	allow_undefined_flag_CXX='${wl}-z,nodefs'
16766	archive_cmds_need_lc_CXX=no
16767	hardcode_shlibpath_var_CXX=no
16768	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16769	hardcode_libdir_separator_CXX=':'
16770	link_all_deplibs_CXX=yes
16771	export_dynamic_flag_spec_CXX='${wl}-Bexport'
16772	runpath_var='LD_RUN_PATH'
16773
16774	case $cc_basename in
16775          CC*)
16776	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16779	      '"$old_archive_cmds_CXX"
16780	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16781	      '"$reload_cmds_CXX"
16782	    ;;
16783	  *)
16784	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16785	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16786	    ;;
16787	esac
16788      ;;
16789
16790      tandem*)
16791        case $cc_basename in
16792          NCC*)
16793	    # NonStop-UX NCC 3.20
16794	    # FIXME: insert proper C++ library support
16795	    ld_shlibs_CXX=no
16796	    ;;
16797          *)
16798	    # FIXME: insert proper C++ library support
16799	    ld_shlibs_CXX=no
16800	    ;;
16801        esac
16802        ;;
16803
16804      vxworks*)
16805        # FIXME: insert proper C++ library support
16806        ld_shlibs_CXX=no
16807        ;;
16808
16809      *)
16810        # FIXME: insert proper C++ library support
16811        ld_shlibs_CXX=no
16812        ;;
16813    esac
16814
16815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16816$as_echo "$ld_shlibs_CXX" >&6; }
16817    test "$ld_shlibs_CXX" = no && can_build_shared=no
16818
16819    GCC_CXX="$GXX"
16820    LD_CXX="$LD"
16821
16822    ## CAVEAT EMPTOR:
16823    ## There is no encapsulation within the following macros, do not change
16824    ## the running order or otherwise move them around unless you know exactly
16825    ## what you are doing...
16826    # Dependencies to place before and after the object being linked:
16827predep_objects_CXX=
16828postdep_objects_CXX=
16829predeps_CXX=
16830postdeps_CXX=
16831compiler_lib_search_path_CXX=
16832
16833cat > conftest.$ac_ext <<_LT_EOF
16834class Foo
16835{
16836public:
16837  Foo (void) { a = 0; }
16838private:
16839  int a;
16840};
16841_LT_EOF
16842
16843
16844_lt_libdeps_save_CFLAGS=$CFLAGS
16845case "$CC $CFLAGS " in #(
16846*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16847*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16848esac
16849
16850if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16851  (eval $ac_compile) 2>&5
16852  ac_status=$?
16853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16854  test $ac_status = 0; }; then
16855  # Parse the compiler output and extract the necessary
16856  # objects, libraries and library flags.
16857
16858  # Sentinel used to keep track of whether or not we are before
16859  # the conftest object file.
16860  pre_test_object_deps_done=no
16861
16862  for p in `eval "$output_verbose_link_cmd"`; do
16863    case ${prev}${p} in
16864
16865    -L* | -R* | -l*)
16866       # Some compilers place space between "-{L,R}" and the path.
16867       # Remove the space.
16868       if test $p = "-L" ||
16869          test $p = "-R"; then
16870	 prev=$p
16871	 continue
16872       fi
16873
16874       # Expand the sysroot to ease extracting the directories later.
16875       if test -z "$prev"; then
16876         case $p in
16877         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16878         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16879         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16880         esac
16881       fi
16882       case $p in
16883       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16884       esac
16885       if test "$pre_test_object_deps_done" = no; then
16886	 case ${prev} in
16887	 -L | -R)
16888	   # Internal compiler library paths should come after those
16889	   # provided the user.  The postdeps already come after the
16890	   # user supplied libs so there is no need to process them.
16891	   if test -z "$compiler_lib_search_path_CXX"; then
16892	     compiler_lib_search_path_CXX="${prev}${p}"
16893	   else
16894	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16895	   fi
16896	   ;;
16897	 # The "-l" case would never come before the object being
16898	 # linked, so don't bother handling this case.
16899	 esac
16900       else
16901	 if test -z "$postdeps_CXX"; then
16902	   postdeps_CXX="${prev}${p}"
16903	 else
16904	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16905	 fi
16906       fi
16907       prev=
16908       ;;
16909
16910    *.lto.$objext) ;; # Ignore GCC LTO objects
16911    *.$objext)
16912       # This assumes that the test object file only shows up
16913       # once in the compiler output.
16914       if test "$p" = "conftest.$objext"; then
16915	 pre_test_object_deps_done=yes
16916	 continue
16917       fi
16918
16919       if test "$pre_test_object_deps_done" = no; then
16920	 if test -z "$predep_objects_CXX"; then
16921	   predep_objects_CXX="$p"
16922	 else
16923	   predep_objects_CXX="$predep_objects_CXX $p"
16924	 fi
16925       else
16926	 if test -z "$postdep_objects_CXX"; then
16927	   postdep_objects_CXX="$p"
16928	 else
16929	   postdep_objects_CXX="$postdep_objects_CXX $p"
16930	 fi
16931       fi
16932       ;;
16933
16934    *) ;; # Ignore the rest.
16935
16936    esac
16937  done
16938
16939  # Clean up.
16940  rm -f a.out a.exe
16941else
16942  echo "libtool.m4: error: problem compiling CXX test program"
16943fi
16944
16945$RM -f confest.$objext
16946CFLAGS=$_lt_libdeps_save_CFLAGS
16947
16948# PORTME: override above test on systems where it is broken
16949case $host_os in
16950interix[3-9]*)
16951  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16952  # hack all around it, let's just trust "g++" to DTRT.
16953  predep_objects_CXX=
16954  postdep_objects_CXX=
16955  postdeps_CXX=
16956  ;;
16957
16958linux*)
16959  case `$CC -V 2>&1 | sed 5q` in
16960  *Sun\ C*)
16961    # Sun C++ 5.9
16962
16963    # The more standards-conforming stlport4 library is
16964    # incompatible with the Cstd library. Avoid specifying
16965    # it if it's in CXXFLAGS. Ignore libCrun as
16966    # -library=stlport4 depends on it.
16967    case " $CXX $CXXFLAGS " in
16968    *" -library=stlport4 "*)
16969      solaris_use_stlport4=yes
16970      ;;
16971    esac
16972
16973    if test "$solaris_use_stlport4" != yes; then
16974      postdeps_CXX='-library=Cstd -library=Crun'
16975    fi
16976    ;;
16977  esac
16978  ;;
16979
16980solaris*)
16981  case $cc_basename in
16982  CC* | sunCC*)
16983    # The more standards-conforming stlport4 library is
16984    # incompatible with the Cstd library. Avoid specifying
16985    # it if it's in CXXFLAGS. Ignore libCrun as
16986    # -library=stlport4 depends on it.
16987    case " $CXX $CXXFLAGS " in
16988    *" -library=stlport4 "*)
16989      solaris_use_stlport4=yes
16990      ;;
16991    esac
16992
16993    # Adding this requires a known-good setup of shared libraries for
16994    # Sun compiler versions before 5.6, else PIC objects from an old
16995    # archive will be linked into the output, leading to subtle bugs.
16996    if test "$solaris_use_stlport4" != yes; then
16997      postdeps_CXX='-library=Cstd -library=Crun'
16998    fi
16999    ;;
17000  esac
17001  ;;
17002esac
17003
17004
17005case " $postdeps_CXX " in
17006*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17007esac
17008 compiler_lib_search_dirs_CXX=
17009if test -n "${compiler_lib_search_path_CXX}"; then
17010 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17011fi
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043    lt_prog_compiler_wl_CXX=
17044lt_prog_compiler_pic_CXX=
17045lt_prog_compiler_static_CXX=
17046
17047
17048  # C++ specific cases for pic, static, wl, etc.
17049  if test "$GXX" = yes; then
17050    lt_prog_compiler_wl_CXX='-Wl,'
17051    lt_prog_compiler_static_CXX='-static'
17052
17053    case $host_os in
17054    aix*)
17055      # All AIX code is PIC.
17056      if test "$host_cpu" = ia64; then
17057	# AIX 5 now supports IA64 processor
17058	lt_prog_compiler_static_CXX='-Bstatic'
17059      fi
17060      ;;
17061
17062    amigaos*)
17063      case $host_cpu in
17064      powerpc)
17065            # see comment about AmigaOS4 .so support
17066            lt_prog_compiler_pic_CXX='-fPIC'
17067        ;;
17068      m68k)
17069            # FIXME: we need at least 68020 code to build shared libraries, but
17070            # adding the `-m68020' flag to GCC prevents building anything better,
17071            # like `-m68040'.
17072            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17073        ;;
17074      esac
17075      ;;
17076
17077    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17078      # PIC is the default for these OSes.
17079      ;;
17080    mingw* | cygwin* | os2* | pw32* | cegcc*)
17081      # This hack is so that the source file can tell whether it is being
17082      # built for inclusion in a dll (and should export symbols for example).
17083      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17084      # (--disable-auto-import) libraries
17085      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17086      ;;
17087    darwin* | rhapsody*)
17088      # PIC is the default on this platform
17089      # Common symbols not allowed in MH_DYLIB files
17090      lt_prog_compiler_pic_CXX='-fno-common'
17091      ;;
17092    *djgpp*)
17093      # DJGPP does not support shared libraries at all
17094      lt_prog_compiler_pic_CXX=
17095      ;;
17096    haiku*)
17097      # PIC is the default for Haiku.
17098      # The "-static" flag exists, but is broken.
17099      lt_prog_compiler_static_CXX=
17100      ;;
17101    interix[3-9]*)
17102      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17103      # Instead, we relocate shared libraries at runtime.
17104      ;;
17105    sysv4*MP*)
17106      if test -d /usr/nec; then
17107	lt_prog_compiler_pic_CXX=-Kconform_pic
17108      fi
17109      ;;
17110    hpux*)
17111      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17112      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17113      # sets the default TLS model and affects inlining.
17114      case $host_cpu in
17115      hppa*64*)
17116	;;
17117      *)
17118	lt_prog_compiler_pic_CXX='-fPIC'
17119	;;
17120      esac
17121      ;;
17122    *qnx* | *nto*)
17123      # QNX uses GNU C++, but need to define -shared option too, otherwise
17124      # it will coredump.
17125      lt_prog_compiler_pic_CXX='-fPIC -shared'
17126      ;;
17127    *)
17128      lt_prog_compiler_pic_CXX='-fPIC'
17129      ;;
17130    esac
17131  else
17132    case $host_os in
17133      aix[4-9]*)
17134	# All AIX code is PIC.
17135	if test "$host_cpu" = ia64; then
17136	  # AIX 5 now supports IA64 processor
17137	  lt_prog_compiler_static_CXX='-Bstatic'
17138	else
17139	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17140	fi
17141	;;
17142      chorus*)
17143	case $cc_basename in
17144	cxch68*)
17145	  # Green Hills C++ Compiler
17146	  # _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"
17147	  ;;
17148	esac
17149	;;
17150      mingw* | cygwin* | os2* | pw32* | cegcc*)
17151	# This hack is so that the source file can tell whether it is being
17152	# built for inclusion in a dll (and should export symbols for example).
17153	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17154	;;
17155      dgux*)
17156	case $cc_basename in
17157	  ec++*)
17158	    lt_prog_compiler_pic_CXX='-KPIC'
17159	    ;;
17160	  ghcx*)
17161	    # Green Hills C++ Compiler
17162	    lt_prog_compiler_pic_CXX='-pic'
17163	    ;;
17164	  *)
17165	    ;;
17166	esac
17167	;;
17168      freebsd* | dragonfly*)
17169	# FreeBSD uses GNU C++
17170	;;
17171      hpux9* | hpux10* | hpux11*)
17172	case $cc_basename in
17173	  CC*)
17174	    lt_prog_compiler_wl_CXX='-Wl,'
17175	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17176	    if test "$host_cpu" != ia64; then
17177	      lt_prog_compiler_pic_CXX='+Z'
17178	    fi
17179	    ;;
17180	  aCC*)
17181	    lt_prog_compiler_wl_CXX='-Wl,'
17182	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17183	    case $host_cpu in
17184	    hppa*64*|ia64*)
17185	      # +Z the default
17186	      ;;
17187	    *)
17188	      lt_prog_compiler_pic_CXX='+Z'
17189	      ;;
17190	    esac
17191	    ;;
17192	  *)
17193	    ;;
17194	esac
17195	;;
17196      interix*)
17197	# This is c89, which is MS Visual C++ (no shared libs)
17198	# Anyone wants to do a port?
17199	;;
17200      irix5* | irix6* | nonstopux*)
17201	case $cc_basename in
17202	  CC*)
17203	    lt_prog_compiler_wl_CXX='-Wl,'
17204	    lt_prog_compiler_static_CXX='-non_shared'
17205	    # CC pic flag -KPIC is the default.
17206	    ;;
17207	  *)
17208	    ;;
17209	esac
17210	;;
17211      linux* | k*bsd*-gnu | kopensolaris*-gnu)
17212	case $cc_basename in
17213	  KCC*)
17214	    # KAI C++ Compiler
17215	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17216	    lt_prog_compiler_pic_CXX='-fPIC'
17217	    ;;
17218	  ecpc* )
17219	    # old Intel C++ for x86_64 which still supported -KPIC.
17220	    lt_prog_compiler_wl_CXX='-Wl,'
17221	    lt_prog_compiler_pic_CXX='-KPIC'
17222	    lt_prog_compiler_static_CXX='-static'
17223	    ;;
17224	  icpc* )
17225	    # Intel C++, used to be incompatible with GCC.
17226	    # ICC 10 doesn't accept -KPIC any more.
17227	    lt_prog_compiler_wl_CXX='-Wl,'
17228	    lt_prog_compiler_pic_CXX='-fPIC'
17229	    lt_prog_compiler_static_CXX='-static'
17230	    ;;
17231	  pgCC* | pgcpp*)
17232	    # Portland Group C++ compiler
17233	    lt_prog_compiler_wl_CXX='-Wl,'
17234	    lt_prog_compiler_pic_CXX='-fpic'
17235	    lt_prog_compiler_static_CXX='-Bstatic'
17236	    ;;
17237	  cxx*)
17238	    # Compaq C++
17239	    # Make sure the PIC flag is empty.  It appears that all Alpha
17240	    # Linux and Compaq Tru64 Unix objects are PIC.
17241	    lt_prog_compiler_pic_CXX=
17242	    lt_prog_compiler_static_CXX='-non_shared'
17243	    ;;
17244	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17245	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17246	    lt_prog_compiler_wl_CXX='-Wl,'
17247	    lt_prog_compiler_pic_CXX='-qpic'
17248	    lt_prog_compiler_static_CXX='-qstaticlink'
17249	    ;;
17250	  *)
17251	    case `$CC -V 2>&1 | sed 5q` in
17252	    *Sun\ C*)
17253	      # Sun C++ 5.9
17254	      lt_prog_compiler_pic_CXX='-KPIC'
17255	      lt_prog_compiler_static_CXX='-Bstatic'
17256	      lt_prog_compiler_wl_CXX='-Qoption ld '
17257	      ;;
17258	    esac
17259	    ;;
17260	esac
17261	;;
17262      lynxos*)
17263	;;
17264      m88k*)
17265	;;
17266      mvs*)
17267	case $cc_basename in
17268	  cxx*)
17269	    lt_prog_compiler_pic_CXX='-W c,exportall'
17270	    ;;
17271	  *)
17272	    ;;
17273	esac
17274	;;
17275      netbsd*)
17276	;;
17277      *qnx* | *nto*)
17278        # QNX uses GNU C++, but need to define -shared option too, otherwise
17279        # it will coredump.
17280        lt_prog_compiler_pic_CXX='-fPIC -shared'
17281        ;;
17282      osf3* | osf4* | osf5*)
17283	case $cc_basename in
17284	  KCC*)
17285	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17286	    ;;
17287	  RCC*)
17288	    # Rational C++ 2.4.1
17289	    lt_prog_compiler_pic_CXX='-pic'
17290	    ;;
17291	  cxx*)
17292	    # Digital/Compaq C++
17293	    lt_prog_compiler_wl_CXX='-Wl,'
17294	    # Make sure the PIC flag is empty.  It appears that all Alpha
17295	    # Linux and Compaq Tru64 Unix objects are PIC.
17296	    lt_prog_compiler_pic_CXX=
17297	    lt_prog_compiler_static_CXX='-non_shared'
17298	    ;;
17299	  *)
17300	    ;;
17301	esac
17302	;;
17303      psos*)
17304	;;
17305      solaris*)
17306	case $cc_basename in
17307	  CC* | sunCC*)
17308	    # Sun C++ 4.2, 5.x and Centerline C++
17309	    lt_prog_compiler_pic_CXX='-KPIC'
17310	    lt_prog_compiler_static_CXX='-Bstatic'
17311	    lt_prog_compiler_wl_CXX='-Qoption ld '
17312	    ;;
17313	  gcx*)
17314	    # Green Hills C++ Compiler
17315	    lt_prog_compiler_pic_CXX='-PIC'
17316	    ;;
17317	  *)
17318	    ;;
17319	esac
17320	;;
17321      sunos4*)
17322	case $cc_basename in
17323	  CC*)
17324	    # Sun C++ 4.x
17325	    lt_prog_compiler_pic_CXX='-pic'
17326	    lt_prog_compiler_static_CXX='-Bstatic'
17327	    ;;
17328	  lcc*)
17329	    # Lucid
17330	    lt_prog_compiler_pic_CXX='-pic'
17331	    ;;
17332	  *)
17333	    ;;
17334	esac
17335	;;
17336      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17337	case $cc_basename in
17338	  CC*)
17339	    lt_prog_compiler_wl_CXX='-Wl,'
17340	    lt_prog_compiler_pic_CXX='-KPIC'
17341	    lt_prog_compiler_static_CXX='-Bstatic'
17342	    ;;
17343	esac
17344	;;
17345      tandem*)
17346	case $cc_basename in
17347	  NCC*)
17348	    # NonStop-UX NCC 3.20
17349	    lt_prog_compiler_pic_CXX='-KPIC'
17350	    ;;
17351	  *)
17352	    ;;
17353	esac
17354	;;
17355      vxworks*)
17356	;;
17357      *)
17358	lt_prog_compiler_can_build_shared_CXX=no
17359	;;
17360    esac
17361  fi
17362
17363case $host_os in
17364  # For platforms which do not support PIC, -DPIC is meaningless:
17365  *djgpp*)
17366    lt_prog_compiler_pic_CXX=
17367    ;;
17368  *)
17369    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17370    ;;
17371esac
17372
17373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17374$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17375if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17376  $as_echo_n "(cached) " >&6
17377else
17378  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17379fi
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17381$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17382lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17383
17384#
17385# Check to make sure the PIC flag actually works.
17386#
17387if test -n "$lt_prog_compiler_pic_CXX"; then
17388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17389$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17390if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17391  $as_echo_n "(cached) " >&6
17392else
17393  lt_cv_prog_compiler_pic_works_CXX=no
17394   ac_outfile=conftest.$ac_objext
17395   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17396   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17397   # Insert the option either (1) after the last *FLAGS variable, or
17398   # (2) before a word containing "conftest.", or (3) at the end.
17399   # Note that $ac_compile itself does not contain backslashes and begins
17400   # with a dollar sign (not a hyphen), so the echo should work correctly.
17401   # The option is referenced via a variable to avoid confusing sed.
17402   lt_compile=`echo "$ac_compile" | $SED \
17403   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17404   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17405   -e 's:$: $lt_compiler_flag:'`
17406   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17407   (eval "$lt_compile" 2>conftest.err)
17408   ac_status=$?
17409   cat conftest.err >&5
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   if (exit $ac_status) && test -s "$ac_outfile"; then
17412     # The compiler can only warn and ignore the option if not recognized
17413     # So say no if there are warnings other than the usual output.
17414     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17415     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17416     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17417       lt_cv_prog_compiler_pic_works_CXX=yes
17418     fi
17419   fi
17420   $RM conftest*
17421
17422fi
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17424$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17425
17426if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17427    case $lt_prog_compiler_pic_CXX in
17428     "" | " "*) ;;
17429     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17430     esac
17431else
17432    lt_prog_compiler_pic_CXX=
17433     lt_prog_compiler_can_build_shared_CXX=no
17434fi
17435
17436fi
17437
17438
17439
17440
17441
17442#
17443# Check to make sure the static flag actually works.
17444#
17445wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17447$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17448if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17449  $as_echo_n "(cached) " >&6
17450else
17451  lt_cv_prog_compiler_static_works_CXX=no
17452   save_LDFLAGS="$LDFLAGS"
17453   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17454   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17455   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17456     # The linker can only warn and ignore the option if not recognized
17457     # So say no if there are warnings
17458     if test -s conftest.err; then
17459       # Append any errors to the config.log.
17460       cat conftest.err 1>&5
17461       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17462       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17463       if diff conftest.exp conftest.er2 >/dev/null; then
17464         lt_cv_prog_compiler_static_works_CXX=yes
17465       fi
17466     else
17467       lt_cv_prog_compiler_static_works_CXX=yes
17468     fi
17469   fi
17470   $RM -r conftest*
17471   LDFLAGS="$save_LDFLAGS"
17472
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17475$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17476
17477if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17478    :
17479else
17480    lt_prog_compiler_static_CXX=
17481fi
17482
17483
17484
17485
17486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17487$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17488if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17489  $as_echo_n "(cached) " >&6
17490else
17491  lt_cv_prog_compiler_c_o_CXX=no
17492   $RM -r conftest 2>/dev/null
17493   mkdir conftest
17494   cd conftest
17495   mkdir out
17496   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17497
17498   lt_compiler_flag="-o out/conftest2.$ac_objext"
17499   # Insert the option either (1) after the last *FLAGS variable, or
17500   # (2) before a word containing "conftest.", or (3) at the end.
17501   # Note that $ac_compile itself does not contain backslashes and begins
17502   # with a dollar sign (not a hyphen), so the echo should work correctly.
17503   lt_compile=`echo "$ac_compile" | $SED \
17504   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17505   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17506   -e 's:$: $lt_compiler_flag:'`
17507   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17508   (eval "$lt_compile" 2>out/conftest.err)
17509   ac_status=$?
17510   cat out/conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17513   then
17514     # The compiler can only warn and ignore the option if not recognized
17515     # So say no if there are warnings
17516     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17517     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17518     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17519       lt_cv_prog_compiler_c_o_CXX=yes
17520     fi
17521   fi
17522   chmod u+w . 2>&5
17523   $RM conftest*
17524   # SGI C++ compiler will create directory out/ii_files/ for
17525   # template instantiation
17526   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17527   $RM out/* && rmdir out
17528   cd ..
17529   $RM -r conftest
17530   $RM conftest*
17531
17532fi
17533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17534$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17535
17536
17537
17538    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17539$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17540if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17541  $as_echo_n "(cached) " >&6
17542else
17543  lt_cv_prog_compiler_c_o_CXX=no
17544   $RM -r conftest 2>/dev/null
17545   mkdir conftest
17546   cd conftest
17547   mkdir out
17548   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17549
17550   lt_compiler_flag="-o out/conftest2.$ac_objext"
17551   # Insert the option either (1) after the last *FLAGS variable, or
17552   # (2) before a word containing "conftest.", or (3) at the end.
17553   # Note that $ac_compile itself does not contain backslashes and begins
17554   # with a dollar sign (not a hyphen), so the echo should work correctly.
17555   lt_compile=`echo "$ac_compile" | $SED \
17556   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17557   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17558   -e 's:$: $lt_compiler_flag:'`
17559   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17560   (eval "$lt_compile" 2>out/conftest.err)
17561   ac_status=$?
17562   cat out/conftest.err >&5
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17565   then
17566     # The compiler can only warn and ignore the option if not recognized
17567     # So say no if there are warnings
17568     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17569     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17570     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17571       lt_cv_prog_compiler_c_o_CXX=yes
17572     fi
17573   fi
17574   chmod u+w . 2>&5
17575   $RM conftest*
17576   # SGI C++ compiler will create directory out/ii_files/ for
17577   # template instantiation
17578   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17579   $RM out/* && rmdir out
17580   cd ..
17581   $RM -r conftest
17582   $RM conftest*
17583
17584fi
17585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17586$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17587
17588
17589
17590
17591hard_links="nottested"
17592if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17593  # do not overwrite the value of need_locks provided by the user
17594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17595$as_echo_n "checking if we can lock with hard links... " >&6; }
17596  hard_links=yes
17597  $RM conftest*
17598  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17599  touch conftest.a
17600  ln conftest.a conftest.b 2>&5 || hard_links=no
17601  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17603$as_echo "$hard_links" >&6; }
17604  if test "$hard_links" = no; then
17605    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17606$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17607    need_locks=warn
17608  fi
17609else
17610  need_locks=no
17611fi
17612
17613
17614
17615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17616$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17617
17618  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17619  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17620  case $host_os in
17621  aix[4-9]*)
17622    # If we're using GNU nm, then we don't want the "-C" option.
17623    # -C means demangle to AIX nm, but means don't demangle with GNU nm
17624    # Also, AIX nm treats weak defined symbols like other global defined
17625    # symbols, whereas GNU nm marks them as "W".
17626    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17627      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'
17628    else
17629      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'
17630    fi
17631    ;;
17632  pw32*)
17633    export_symbols_cmds_CXX="$ltdll_cmds"
17634    ;;
17635  cygwin* | mingw* | cegcc*)
17636    case $cc_basename in
17637    cl*) ;;
17638    *)
17639      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'
17640      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17641      ;;
17642    esac
17643    ;;
17644  *)
17645    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17646    ;;
17647  esac
17648
17649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17650$as_echo "$ld_shlibs_CXX" >&6; }
17651test "$ld_shlibs_CXX" = no && can_build_shared=no
17652
17653with_gnu_ld_CXX=$with_gnu_ld
17654
17655
17656
17657
17658
17659
17660#
17661# Do we need to explicitly link libc?
17662#
17663case "x$archive_cmds_need_lc_CXX" in
17664x|xyes)
17665  # Assume -lc should be added
17666  archive_cmds_need_lc_CXX=yes
17667
17668  if test "$enable_shared" = yes && test "$GCC" = yes; then
17669    case $archive_cmds_CXX in
17670    *'~'*)
17671      # FIXME: we may have to deal with multi-command sequences.
17672      ;;
17673    '$CC '*)
17674      # Test whether the compiler implicitly links with -lc since on some
17675      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17676      # to ld, don't add -lc before -lgcc.
17677      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17678$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17679if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17680  $as_echo_n "(cached) " >&6
17681else
17682  $RM conftest*
17683	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17684
17685	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17686  (eval $ac_compile) 2>&5
17687  ac_status=$?
17688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17689  test $ac_status = 0; } 2>conftest.err; then
17690	  soname=conftest
17691	  lib=conftest
17692	  libobjs=conftest.$ac_objext
17693	  deplibs=
17694	  wl=$lt_prog_compiler_wl_CXX
17695	  pic_flag=$lt_prog_compiler_pic_CXX
17696	  compiler_flags=-v
17697	  linker_flags=-v
17698	  verstring=
17699	  output_objdir=.
17700	  libname=conftest
17701	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17702	  allow_undefined_flag_CXX=
17703	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17704  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17705  ac_status=$?
17706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17707  test $ac_status = 0; }
17708	  then
17709	    lt_cv_archive_cmds_need_lc_CXX=no
17710	  else
17711	    lt_cv_archive_cmds_need_lc_CXX=yes
17712	  fi
17713	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17714	else
17715	  cat conftest.err 1>&5
17716	fi
17717	$RM conftest*
17718
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17721$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17722      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17723      ;;
17724    esac
17725  fi
17726  ;;
17727esac
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17793$as_echo_n "checking dynamic linker characteristics... " >&6; }
17794
17795library_names_spec=
17796libname_spec='lib$name'
17797soname_spec=
17798shrext_cmds=".so"
17799postinstall_cmds=
17800postuninstall_cmds=
17801finish_cmds=
17802finish_eval=
17803shlibpath_var=
17804shlibpath_overrides_runpath=unknown
17805version_type=none
17806dynamic_linker="$host_os ld.so"
17807sys_lib_dlsearch_path_spec="/lib /usr/lib"
17808need_lib_prefix=unknown
17809hardcode_into_libs=no
17810
17811# when you set need_version to no, make sure it does not cause -set_version
17812# flags to be left without arguments
17813need_version=unknown
17814
17815case $host_os in
17816aix3*)
17817  version_type=linux
17818  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17819  shlibpath_var=LIBPATH
17820
17821  # AIX 3 has no versioning support, so we append a major version to the name.
17822  soname_spec='${libname}${release}${shared_ext}$major'
17823  ;;
17824
17825aix[4-9]*)
17826  version_type=linux
17827  need_lib_prefix=no
17828  need_version=no
17829  hardcode_into_libs=yes
17830  if test "$host_cpu" = ia64; then
17831    # AIX 5 supports IA64
17832    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17833    shlibpath_var=LD_LIBRARY_PATH
17834  else
17835    # With GCC up to 2.95.x, collect2 would create an import file
17836    # for dependence libraries.  The import file would start with
17837    # the line `#! .'.  This would cause the generated library to
17838    # depend on `.', always an invalid library.  This was fixed in
17839    # development snapshots of GCC prior to 3.0.
17840    case $host_os in
17841      aix4 | aix4.[01] | aix4.[01].*)
17842      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17843	   echo ' yes '
17844	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17845	:
17846      else
17847	can_build_shared=no
17848      fi
17849      ;;
17850    esac
17851    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17852    # soname into executable. Probably we can add versioning support to
17853    # collect2, so additional links can be useful in future.
17854    if test "$aix_use_runtimelinking" = yes; then
17855      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17856      # instead of lib<name>.a to let people know that these are not
17857      # typical AIX shared libraries.
17858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859    else
17860      # We preserve .a as extension for shared libraries through AIX4.2
17861      # and later when we are not doing run time linking.
17862      library_names_spec='${libname}${release}.a $libname.a'
17863      soname_spec='${libname}${release}${shared_ext}$major'
17864    fi
17865    shlibpath_var=LIBPATH
17866  fi
17867  ;;
17868
17869amigaos*)
17870  case $host_cpu in
17871  powerpc)
17872    # Since July 2007 AmigaOS4 officially supports .so libraries.
17873    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875    ;;
17876  m68k)
17877    library_names_spec='$libname.ixlibrary $libname.a'
17878    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17879    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'
17880    ;;
17881  esac
17882  ;;
17883
17884beos*)
17885  library_names_spec='${libname}${shared_ext}'
17886  dynamic_linker="$host_os ld.so"
17887  shlibpath_var=LIBRARY_PATH
17888  ;;
17889
17890bsdi[45]*)
17891  version_type=linux
17892  need_version=no
17893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894  soname_spec='${libname}${release}${shared_ext}$major'
17895  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17896  shlibpath_var=LD_LIBRARY_PATH
17897  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17898  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17899  # the default ld.so.conf also contains /usr/contrib/lib and
17900  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17901  # libtool to hard-code these into programs
17902  ;;
17903
17904cygwin* | mingw* | pw32* | cegcc*)
17905  version_type=windows
17906  shrext_cmds=".dll"
17907  need_version=no
17908  need_lib_prefix=no
17909
17910  case $GCC,$cc_basename in
17911  yes,*)
17912    # gcc
17913    library_names_spec='$libname.dll.a'
17914    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17915    postinstall_cmds='base_file=`basename \${file}`~
17916      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17917      dldir=$destdir/`dirname \$dlpath`~
17918      test -d \$dldir || mkdir -p \$dldir~
17919      $install_prog $dir/$dlname \$dldir/$dlname~
17920      chmod a+x \$dldir/$dlname~
17921      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17922        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17923      fi'
17924    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17925      dlpath=$dir/\$dldll~
17926       $RM \$dlpath'
17927    shlibpath_overrides_runpath=yes
17928
17929    case $host_os in
17930    cygwin*)
17931      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17932      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17933
17934      ;;
17935    mingw* | cegcc*)
17936      # MinGW DLLs use traditional 'lib' prefix
17937      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17938      ;;
17939    pw32*)
17940      # pw32 DLLs use 'pw' prefix rather than 'lib'
17941      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17942      ;;
17943    esac
17944    dynamic_linker='Win32 ld.exe'
17945    ;;
17946
17947  *,cl*)
17948    # Native MSVC
17949    libname_spec='$name'
17950    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951    library_names_spec='${libname}.dll.lib'
17952
17953    case $build_os in
17954    mingw*)
17955      sys_lib_search_path_spec=
17956      lt_save_ifs=$IFS
17957      IFS=';'
17958      for lt_path in $LIB
17959      do
17960        IFS=$lt_save_ifs
17961        # Let DOS variable expansion print the short 8.3 style file name.
17962        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17963        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17964      done
17965      IFS=$lt_save_ifs
17966      # Convert to MSYS style.
17967      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17968      ;;
17969    cygwin*)
17970      # Convert to unix form, then to dos form, then back to unix form
17971      # but this time dos style (no spaces!) so that the unix form looks
17972      # like /cygdrive/c/PROGRA~1:/cygdr...
17973      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17974      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17975      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17976      ;;
17977    *)
17978      sys_lib_search_path_spec="$LIB"
17979      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17980        # It is most probably a Windows format PATH.
17981        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17982      else
17983        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17984      fi
17985      # FIXME: find the short name or the path components, as spaces are
17986      # common. (e.g. "Program Files" -> "PROGRA~1")
17987      ;;
17988    esac
17989
17990    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991    postinstall_cmds='base_file=`basename \${file}`~
17992      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17993      dldir=$destdir/`dirname \$dlpath`~
17994      test -d \$dldir || mkdir -p \$dldir~
17995      $install_prog $dir/$dlname \$dldir/$dlname'
17996    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17997      dlpath=$dir/\$dldll~
17998       $RM \$dlpath'
17999    shlibpath_overrides_runpath=yes
18000    dynamic_linker='Win32 link.exe'
18001    ;;
18002
18003  *)
18004    # Assume MSVC wrapper
18005    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18006    dynamic_linker='Win32 ld.exe'
18007    ;;
18008  esac
18009  # FIXME: first we should search . and the directory the executable is in
18010  shlibpath_var=PATH
18011  ;;
18012
18013darwin* | rhapsody*)
18014  dynamic_linker="$host_os dyld"
18015  version_type=darwin
18016  need_lib_prefix=no
18017  need_version=no
18018  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18019  soname_spec='${libname}${release}${major}$shared_ext'
18020  shlibpath_overrides_runpath=yes
18021  shlibpath_var=DYLD_LIBRARY_PATH
18022  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18023
18024  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18025  ;;
18026
18027dgux*)
18028  version_type=linux
18029  need_lib_prefix=no
18030  need_version=no
18031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18032  soname_spec='${libname}${release}${shared_ext}$major'
18033  shlibpath_var=LD_LIBRARY_PATH
18034  ;;
18035
18036freebsd1*)
18037  dynamic_linker=no
18038  ;;
18039
18040freebsd* | dragonfly*)
18041  # DragonFly does not have aout.  When/if they implement a new
18042  # versioning mechanism, adjust this.
18043  if test -x /usr/bin/objformat; then
18044    objformat=`/usr/bin/objformat`
18045  else
18046    case $host_os in
18047    freebsd[123]*) objformat=aout ;;
18048    *) objformat=elf ;;
18049    esac
18050  fi
18051  version_type=freebsd-$objformat
18052  case $version_type in
18053    freebsd-elf*)
18054      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18055      need_version=no
18056      need_lib_prefix=no
18057      ;;
18058    freebsd-*)
18059      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18060      need_version=yes
18061      ;;
18062  esac
18063  shlibpath_var=LD_LIBRARY_PATH
18064  case $host_os in
18065  freebsd2*)
18066    shlibpath_overrides_runpath=yes
18067    ;;
18068  freebsd3.[01]* | freebsdelf3.[01]*)
18069    shlibpath_overrides_runpath=yes
18070    hardcode_into_libs=yes
18071    ;;
18072  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18073  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18074    shlibpath_overrides_runpath=no
18075    hardcode_into_libs=yes
18076    ;;
18077  *) # from 4.6 on, and DragonFly
18078    shlibpath_overrides_runpath=yes
18079    hardcode_into_libs=yes
18080    ;;
18081  esac
18082  ;;
18083
18084gnu*)
18085  version_type=linux
18086  need_lib_prefix=no
18087  need_version=no
18088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18089  soname_spec='${libname}${release}${shared_ext}$major'
18090  shlibpath_var=LD_LIBRARY_PATH
18091  hardcode_into_libs=yes
18092  ;;
18093
18094haiku*)
18095  version_type=linux
18096  need_lib_prefix=no
18097  need_version=no
18098  dynamic_linker="$host_os runtime_loader"
18099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18100  soname_spec='${libname}${release}${shared_ext}$major'
18101  shlibpath_var=LIBRARY_PATH
18102  shlibpath_overrides_runpath=yes
18103  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18104  hardcode_into_libs=yes
18105  ;;
18106
18107hpux9* | hpux10* | hpux11*)
18108  # Give a soname corresponding to the major version so that dld.sl refuses to
18109  # link against other versions.
18110  version_type=sunos
18111  need_lib_prefix=no
18112  need_version=no
18113  case $host_cpu in
18114  ia64*)
18115    shrext_cmds='.so'
18116    hardcode_into_libs=yes
18117    dynamic_linker="$host_os dld.so"
18118    shlibpath_var=LD_LIBRARY_PATH
18119    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18120    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121    soname_spec='${libname}${release}${shared_ext}$major'
18122    if test "X$HPUX_IA64_MODE" = X32; then
18123      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18124    else
18125      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18126    fi
18127    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18128    ;;
18129  hppa*64*)
18130    shrext_cmds='.sl'
18131    hardcode_into_libs=yes
18132    dynamic_linker="$host_os dld.sl"
18133    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18134    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136    soname_spec='${libname}${release}${shared_ext}$major'
18137    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18138    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18139    ;;
18140  *)
18141    shrext_cmds='.sl'
18142    dynamic_linker="$host_os dld.sl"
18143    shlibpath_var=SHLIB_PATH
18144    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18145    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146    soname_spec='${libname}${release}${shared_ext}$major'
18147    ;;
18148  esac
18149  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18150  postinstall_cmds='chmod 555 $lib'
18151  # or fails outright, so override atomically:
18152  install_override_mode=555
18153  ;;
18154
18155interix[3-9]*)
18156  version_type=linux
18157  need_lib_prefix=no
18158  need_version=no
18159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18160  soname_spec='${libname}${release}${shared_ext}$major'
18161  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18162  shlibpath_var=LD_LIBRARY_PATH
18163  shlibpath_overrides_runpath=no
18164  hardcode_into_libs=yes
18165  ;;
18166
18167irix5* | irix6* | nonstopux*)
18168  case $host_os in
18169    nonstopux*) version_type=nonstopux ;;
18170    *)
18171	if test "$lt_cv_prog_gnu_ld" = yes; then
18172		version_type=linux
18173	else
18174		version_type=irix
18175	fi ;;
18176  esac
18177  need_lib_prefix=no
18178  need_version=no
18179  soname_spec='${libname}${release}${shared_ext}$major'
18180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18181  case $host_os in
18182  irix5* | nonstopux*)
18183    libsuff= shlibsuff=
18184    ;;
18185  *)
18186    case $LD in # libtool.m4 will add one of these switches to LD
18187    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18188      libsuff= shlibsuff= libmagic=32-bit;;
18189    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18190      libsuff=32 shlibsuff=N32 libmagic=N32;;
18191    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18192      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18193    *) libsuff= shlibsuff= libmagic=never-match;;
18194    esac
18195    ;;
18196  esac
18197  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18198  shlibpath_overrides_runpath=no
18199  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18200  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18201  hardcode_into_libs=yes
18202  ;;
18203
18204# No shared lib support for Linux oldld, aout, or coff.
18205linux*oldld* | linux*aout* | linux*coff*)
18206  dynamic_linker=no
18207  ;;
18208
18209# This must be Linux ELF.
18210linux* | k*bsd*-gnu | kopensolaris*-gnu)
18211  version_type=linux
18212  need_lib_prefix=no
18213  need_version=no
18214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215  soname_spec='${libname}${release}${shared_ext}$major'
18216  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18217  shlibpath_var=LD_LIBRARY_PATH
18218  shlibpath_overrides_runpath=no
18219
18220  # Some binutils ld are patched to set DT_RUNPATH
18221  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18222  $as_echo_n "(cached) " >&6
18223else
18224  lt_cv_shlibpath_overrides_runpath=no
18225    save_LDFLAGS=$LDFLAGS
18226    save_libdir=$libdir
18227    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18228	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230/* end confdefs.h.  */
18231
18232int
18233main ()
18234{
18235
18236  ;
18237  return 0;
18238}
18239_ACEOF
18240if ac_fn_cxx_try_link "$LINENO"; then :
18241  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18242  lt_cv_shlibpath_overrides_runpath=yes
18243fi
18244fi
18245rm -f core conftest.err conftest.$ac_objext \
18246    conftest$ac_exeext conftest.$ac_ext
18247    LDFLAGS=$save_LDFLAGS
18248    libdir=$save_libdir
18249
18250fi
18251
18252  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18253
18254  # This implies no fast_install, which is unacceptable.
18255  # Some rework will be needed to allow for fast_install
18256  # before this can be enabled.
18257  hardcode_into_libs=yes
18258
18259  # Append ld.so.conf contents to the search path
18260  if test -f /etc/ld.so.conf; then
18261    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' ' '`
18262    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18263  fi
18264
18265  # We used to test for /lib/ld.so.1 and disable shared libraries on
18266  # powerpc, because MkLinux only supported shared libraries with the
18267  # GNU dynamic linker.  Since this was broken with cross compilers,
18268  # most powerpc-linux boxes support dynamic linking these days and
18269  # people can always --disable-shared, the test was removed, and we
18270  # assume the GNU/Linux dynamic linker is in use.
18271  dynamic_linker='GNU/Linux ld.so'
18272  ;;
18273
18274netbsd*)
18275  version_type=sunos
18276  need_lib_prefix=no
18277  need_version=no
18278  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18279    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18280    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18281    dynamic_linker='NetBSD (a.out) ld.so'
18282  else
18283    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18284    soname_spec='${libname}${release}${shared_ext}$major'
18285    dynamic_linker='NetBSD ld.elf_so'
18286  fi
18287  shlibpath_var=LD_LIBRARY_PATH
18288  shlibpath_overrides_runpath=yes
18289  hardcode_into_libs=yes
18290  ;;
18291
18292newsos6)
18293  version_type=linux
18294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295  shlibpath_var=LD_LIBRARY_PATH
18296  shlibpath_overrides_runpath=yes
18297  ;;
18298
18299*nto* | *qnx*)
18300  version_type=qnx
18301  need_lib_prefix=no
18302  need_version=no
18303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304  soname_spec='${libname}${release}${shared_ext}$major'
18305  shlibpath_var=LD_LIBRARY_PATH
18306  shlibpath_overrides_runpath=no
18307  hardcode_into_libs=yes
18308  dynamic_linker='ldqnx.so'
18309  ;;
18310
18311openbsd*)
18312  version_type=sunos
18313  sys_lib_dlsearch_path_spec="/usr/lib"
18314  need_lib_prefix=no
18315  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18316  case $host_os in
18317    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18318    *)				need_version=no  ;;
18319  esac
18320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18321  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18322  shlibpath_var=LD_LIBRARY_PATH
18323  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18324    case $host_os in
18325      openbsd2.[89] | openbsd2.[89].*)
18326	shlibpath_overrides_runpath=no
18327	;;
18328      *)
18329	shlibpath_overrides_runpath=yes
18330	;;
18331      esac
18332  else
18333    shlibpath_overrides_runpath=yes
18334  fi
18335  ;;
18336
18337os2*)
18338  libname_spec='$name'
18339  shrext_cmds=".dll"
18340  need_lib_prefix=no
18341  library_names_spec='$libname${shared_ext} $libname.a'
18342  dynamic_linker='OS/2 ld.exe'
18343  shlibpath_var=LIBPATH
18344  ;;
18345
18346osf3* | osf4* | osf5*)
18347  version_type=osf
18348  need_lib_prefix=no
18349  need_version=no
18350  soname_spec='${libname}${release}${shared_ext}$major'
18351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352  shlibpath_var=LD_LIBRARY_PATH
18353  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18354  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18355  ;;
18356
18357rdos*)
18358  dynamic_linker=no
18359  ;;
18360
18361solaris*)
18362  version_type=linux
18363  need_lib_prefix=no
18364  need_version=no
18365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366  soname_spec='${libname}${release}${shared_ext}$major'
18367  shlibpath_var=LD_LIBRARY_PATH
18368  shlibpath_overrides_runpath=yes
18369  hardcode_into_libs=yes
18370  # ldd complains unless libraries are executable
18371  postinstall_cmds='chmod +x $lib'
18372  ;;
18373
18374sunos4*)
18375  version_type=sunos
18376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18377  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18378  shlibpath_var=LD_LIBRARY_PATH
18379  shlibpath_overrides_runpath=yes
18380  if test "$with_gnu_ld" = yes; then
18381    need_lib_prefix=no
18382  fi
18383  need_version=yes
18384  ;;
18385
18386sysv4 | sysv4.3*)
18387  version_type=linux
18388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389  soname_spec='${libname}${release}${shared_ext}$major'
18390  shlibpath_var=LD_LIBRARY_PATH
18391  case $host_vendor in
18392    sni)
18393      shlibpath_overrides_runpath=no
18394      need_lib_prefix=no
18395      runpath_var=LD_RUN_PATH
18396      ;;
18397    siemens)
18398      need_lib_prefix=no
18399      ;;
18400    motorola)
18401      need_lib_prefix=no
18402      need_version=no
18403      shlibpath_overrides_runpath=no
18404      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18405      ;;
18406  esac
18407  ;;
18408
18409sysv4*MP*)
18410  if test -d /usr/nec ;then
18411    version_type=linux
18412    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18413    soname_spec='$libname${shared_ext}.$major'
18414    shlibpath_var=LD_LIBRARY_PATH
18415  fi
18416  ;;
18417
18418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18419  version_type=freebsd-elf
18420  need_lib_prefix=no
18421  need_version=no
18422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18423  soname_spec='${libname}${release}${shared_ext}$major'
18424  shlibpath_var=LD_LIBRARY_PATH
18425  shlibpath_overrides_runpath=yes
18426  hardcode_into_libs=yes
18427  if test "$with_gnu_ld" = yes; then
18428    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18429  else
18430    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18431    case $host_os in
18432      sco3.2v5*)
18433        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18434	;;
18435    esac
18436  fi
18437  sys_lib_dlsearch_path_spec='/usr/lib'
18438  ;;
18439
18440tpf*)
18441  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18442  version_type=linux
18443  need_lib_prefix=no
18444  need_version=no
18445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446  shlibpath_var=LD_LIBRARY_PATH
18447  shlibpath_overrides_runpath=no
18448  hardcode_into_libs=yes
18449  ;;
18450
18451uts4*)
18452  version_type=linux
18453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18454  soname_spec='${libname}${release}${shared_ext}$major'
18455  shlibpath_var=LD_LIBRARY_PATH
18456  ;;
18457
18458*)
18459  dynamic_linker=no
18460  ;;
18461esac
18462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18463$as_echo "$dynamic_linker" >&6; }
18464test "$dynamic_linker" = no && can_build_shared=no
18465
18466variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18467if test "$GCC" = yes; then
18468  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18469fi
18470
18471if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18472  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18473fi
18474if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18475  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18476fi
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18516$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18517hardcode_action_CXX=
18518if test -n "$hardcode_libdir_flag_spec_CXX" ||
18519   test -n "$runpath_var_CXX" ||
18520   test "X$hardcode_automatic_CXX" = "Xyes" ; then
18521
18522  # We can hardcode non-existent directories.
18523  if test "$hardcode_direct_CXX" != no &&
18524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18525     # have to relink, otherwise we might link with an installed library
18526     # when we should be linking with a yet-to-be-installed one
18527     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18528     test "$hardcode_minus_L_CXX" != no; then
18529    # Linking always hardcodes the temporary library directory.
18530    hardcode_action_CXX=relink
18531  else
18532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18533    hardcode_action_CXX=immediate
18534  fi
18535else
18536  # We cannot hardcode anything, or else we can only hardcode existing
18537  # directories.
18538  hardcode_action_CXX=unsupported
18539fi
18540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18541$as_echo "$hardcode_action_CXX" >&6; }
18542
18543if test "$hardcode_action_CXX" = relink ||
18544   test "$inherit_rpath_CXX" = yes; then
18545  # Fast installation is not supported
18546  enable_fast_install=no
18547elif test "$shlibpath_overrides_runpath" = yes ||
18548     test "$enable_shared" = no; then
18549  # Fast installation is not necessary
18550  enable_fast_install=needless
18551fi
18552
18553
18554
18555
18556
18557
18558
18559  fi # test -n "$compiler"
18560
18561  CC=$lt_save_CC
18562  CFLAGS=$lt_save_CFLAGS
18563  LDCXX=$LD
18564  LD=$lt_save_LD
18565  GCC=$lt_save_GCC
18566  with_gnu_ld=$lt_save_with_gnu_ld
18567  lt_cv_path_LDCXX=$lt_cv_path_LD
18568  lt_cv_path_LD=$lt_save_path_LD
18569  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18570  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18571fi # test "$_lt_caught_CXX_error" != yes
18572
18573ac_ext=c
18574ac_cpp='$CPP $CPPFLAGS'
18575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591        ac_config_commands="$ac_config_commands libtool"
18592
18593
18594
18595
18596# Only expand once:
18597
18598
18599
18600
18601# NTP has (so far) been relying on leading-edge autogen, which
18602# means we need the appropriate corresponding libopts as well.
18603# Therefore, by default:
18604# - use the version of libopts we ship with
18605# - do not install it
18606# - build a static copy (AC_DISABLE_SHARED - done earlier)
18607case "${enable_local_libopts+set}" in
18608 set) ;;
18609 *) enable_local_libopts=yes ;;
18610esac
18611case "${enable_libopts_install+set}" in
18612 set) ;;
18613 *) enable_libopts_install=no ;;
18614esac
18615enable_nls=no
18616ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18617if test "x$ac_cv_type_pid_t" = xyes; then :
18618
18619else
18620
18621cat >>confdefs.h <<_ACEOF
18622#define pid_t int
18623_ACEOF
18624
18625fi
18626
18627
18628
18629  ac_header_dirent=no
18630for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18631  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18633$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18634if eval \${$as_ac_Header+:} false; then :
18635  $as_echo_n "(cached) " >&6
18636else
18637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638/* end confdefs.h.  */
18639#include <sys/types.h>
18640#include <$ac_hdr>
18641
18642int
18643main ()
18644{
18645if ((DIR *) 0)
18646return 0;
18647  ;
18648  return 0;
18649}
18650_ACEOF
18651if ac_fn_c_try_compile "$LINENO"; then :
18652  eval "$as_ac_Header=yes"
18653else
18654  eval "$as_ac_Header=no"
18655fi
18656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18657fi
18658eval ac_res=\$$as_ac_Header
18659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18660$as_echo "$ac_res" >&6; }
18661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18662  cat >>confdefs.h <<_ACEOF
18663#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18664_ACEOF
18665
18666ac_header_dirent=$ac_hdr; break
18667fi
18668
18669done
18670# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18671if test $ac_header_dirent = dirent.h; then
18672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18673$as_echo_n "checking for library containing opendir... " >&6; }
18674if ${ac_cv_search_opendir+:} false; then :
18675  $as_echo_n "(cached) " >&6
18676else
18677  ac_func_search_save_LIBS=$LIBS
18678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679/* end confdefs.h.  */
18680
18681/* Override any GCC internal prototype to avoid an error.
18682   Use char because int might match the return type of a GCC
18683   builtin and then its argument prototype would still apply.  */
18684#ifdef __cplusplus
18685extern "C"
18686#endif
18687char opendir ();
18688int
18689main ()
18690{
18691return opendir ();
18692  ;
18693  return 0;
18694}
18695_ACEOF
18696for ac_lib in '' dir; do
18697  if test -z "$ac_lib"; then
18698    ac_res="none required"
18699  else
18700    ac_res=-l$ac_lib
18701    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18702  fi
18703  if ac_fn_c_try_link "$LINENO"; then :
18704  ac_cv_search_opendir=$ac_res
18705fi
18706rm -f core conftest.err conftest.$ac_objext \
18707    conftest$ac_exeext
18708  if ${ac_cv_search_opendir+:} false; then :
18709  break
18710fi
18711done
18712if ${ac_cv_search_opendir+:} false; then :
18713
18714else
18715  ac_cv_search_opendir=no
18716fi
18717rm conftest.$ac_ext
18718LIBS=$ac_func_search_save_LIBS
18719fi
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18721$as_echo "$ac_cv_search_opendir" >&6; }
18722ac_res=$ac_cv_search_opendir
18723if test "$ac_res" != no; then :
18724  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18725
18726fi
18727
18728else
18729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18730$as_echo_n "checking for library containing opendir... " >&6; }
18731if ${ac_cv_search_opendir+:} false; then :
18732  $as_echo_n "(cached) " >&6
18733else
18734  ac_func_search_save_LIBS=$LIBS
18735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736/* end confdefs.h.  */
18737
18738/* Override any GCC internal prototype to avoid an error.
18739   Use char because int might match the return type of a GCC
18740   builtin and then its argument prototype would still apply.  */
18741#ifdef __cplusplus
18742extern "C"
18743#endif
18744char opendir ();
18745int
18746main ()
18747{
18748return opendir ();
18749  ;
18750  return 0;
18751}
18752_ACEOF
18753for ac_lib in '' x; do
18754  if test -z "$ac_lib"; then
18755    ac_res="none required"
18756  else
18757    ac_res=-l$ac_lib
18758    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18759  fi
18760  if ac_fn_c_try_link "$LINENO"; then :
18761  ac_cv_search_opendir=$ac_res
18762fi
18763rm -f core conftest.err conftest.$ac_objext \
18764    conftest$ac_exeext
18765  if ${ac_cv_search_opendir+:} false; then :
18766  break
18767fi
18768done
18769if ${ac_cv_search_opendir+:} false; then :
18770
18771else
18772  ac_cv_search_opendir=no
18773fi
18774rm conftest.$ac_ext
18775LIBS=$ac_func_search_save_LIBS
18776fi
18777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18778$as_echo "$ac_cv_search_opendir" >&6; }
18779ac_res=$ac_cv_search_opendir
18780if test "$ac_res" != no; then :
18781  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18782
18783fi
18784
18785fi
18786
18787
18788  # =================
18789  # AC_CHECK_HEADERS
18790  # =================
18791  for ac_header in  \
18792      sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
18793      sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
18794      sys/un.h      sys/wait.h    dlfcn.h       errno.h \
18795      fcntl.h       libgen.h      libintl.h     memory.h \
18796      netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
18797      unistd.h      utime.h
18798do :
18799  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18800ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18802  cat >>confdefs.h <<_ACEOF
18803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18804_ACEOF
18805
18806fi
18807
18808done
18809
18810
18811  for ac_header in stdarg.h     varargs.h
18812do :
18813  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18814ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18816  cat >>confdefs.h <<_ACEOF
18817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18818_ACEOF
18819 lo_have_arg_hdr=true;break
18820else
18821  lo_have_arg_hdr=false
18822fi
18823
18824done
18825
18826
18827  for ac_header in string.h     strings.h
18828do :
18829  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18830ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18832  cat >>confdefs.h <<_ACEOF
18833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18834_ACEOF
18835 lo_have_str_hdr=true;break
18836else
18837  lo_have_str_hdr=false
18838fi
18839
18840done
18841
18842
18843  for ac_header in limits.h     sys/limits.h  values.h
18844do :
18845  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18846ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18848  cat >>confdefs.h <<_ACEOF
18849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18850_ACEOF
18851 lo_have_lim_hdr=true;break
18852else
18853  lo_have_lim_hdr=false
18854fi
18855
18856done
18857
18858
18859  for ac_header in inttypes.h   stdint.h
18860do :
18861  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18862ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18864  cat >>confdefs.h <<_ACEOF
18865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18866_ACEOF
18867 lo_have_typ_hdr=true;break
18868else
18869  lo_have_typ_hdr=false
18870fi
18871
18872done
18873
18874
18875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18876$as_echo_n "checking for working stdnoreturn.h... " >&6; }
18877if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18878  $as_echo_n "(cached) " >&6
18879else
18880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881/* end confdefs.h.  */
18882#include <stdlib.h>
18883            #include <stdnoreturn.h>
18884            /* Do not check for 'noreturn' after the return type.
18885               C11 allows it, but it's rarely done that way
18886               and circa-2012 bleeding-edge GCC rejects it when given
18887               -Werror=old-style-declaration.  */
18888            noreturn void foo1 (void) { exit (0); }
18889            _Noreturn void foo2 (void) { exit (0); }
18890            int testit (int argc, char **argv) {
18891              if (argc & 1)
18892                return 0;
18893              (argv[0][0] ? foo1 : foo2) ();
18894            }
18895
18896int
18897main ()
18898{
18899
18900  ;
18901  return 0;
18902}
18903_ACEOF
18904if ac_fn_c_try_compile "$LINENO"; then :
18905  gl_cv_header_working_stdnoreturn_h=yes
18906else
18907  gl_cv_header_working_stdnoreturn_h=no
18908fi
18909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910fi
18911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18912$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18913
18914  if test $gl_cv_header_working_stdnoreturn_h = yes; then
18915    STDNORETURN_H=''
18916  else
18917    STDNORETURN_H='stdnoreturn.h'
18918  fi
18919
18920
18921   if test -n "$STDNORETURN_H"; then
18922  GL_GENERATE_STDNORETURN_H_TRUE=
18923  GL_GENERATE_STDNORETURN_H_FALSE='#'
18924else
18925  GL_GENERATE_STDNORETURN_H_TRUE='#'
18926  GL_GENERATE_STDNORETURN_H_FALSE=
18927fi
18928
18929
18930
18931  # ----------------------------------------------------------------------
18932  # check for various programs used during the build.
18933  # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18934  # ----------------------------------------------------------------------
18935  for ac_header in runetype.h wchar.h
18936do :
18937  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18938ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18939  $ac_includes_default
18940  #if HAVE_RUNETYPE_H
18941  # include <runetype.h>
18942  #endif
18943
18944"
18945if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18946  cat >>confdefs.h <<_ACEOF
18947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18948_ACEOF
18949
18950fi
18951
18952done
18953
18954
18955  # Check whether --enable-nls was given.
18956if test "${enable_nls+set}" = set; then :
18957  enableval=$enable_nls;
18958fi
18959
18960  if test "x$enable_nls" != "xno" && \
18961  test "X${ac_cv_header_libintl_h}" = Xyes; then :
18962
18963
18964$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18965
18966fi
18967
18968  # --------------------------------------------
18969  # Verify certain entries from AC_CHECK_HEADERS
18970  # --------------------------------------------
18971  ${lo_have_arg_hdr} || \
18972    as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
18973
18974  ${lo_have_str_hdr} || \
18975    as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
18976
18977  ${lo_have_lim_hdr} || \
18978    as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
18979
18980  ${lo_have_typ_hdr} || \
18981    as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
18982
18983  for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
18984  do eval as_ac_var=\${ac_cv_header_${f}_h}
18985     test "X${as_ac_var}" = Xyes || {
18986       as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
18987     }
18988  done
18989  test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
18990    echo '#include <stdint.h>' > inttypes.h
18991
18992  # ----------------------------------------------------------------------
18993  # Checks for typedefs
18994  # ----------------------------------------------------------------------
18995  ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18996if test "x$ac_cv_type_wchar_t" = xyes; then :
18997
18998cat >>confdefs.h <<_ACEOF
18999#define HAVE_WCHAR_T 1
19000_ACEOF
19001
19002
19003fi
19004
19005  ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19006    $ac_includes_default
19007    #if HAVE_RUNETYPE_H
19008    # include <runetype.h>
19009    #endif
19010    #if HAVE_WCHAR_H
19011    # include <wchar.h>
19012    #endif
19013
19014"
19015if test "x$ac_cv_type_wint_t" = xyes; then :
19016
19017cat >>confdefs.h <<_ACEOF
19018#define HAVE_WINT_T 1
19019_ACEOF
19020
19021
19022fi
19023
19024  ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19025if test "x$ac_cv_type_int8_t" = xyes; then :
19026
19027cat >>confdefs.h <<_ACEOF
19028#define HAVE_INT8_T 1
19029_ACEOF
19030
19031
19032fi
19033ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19034if test "x$ac_cv_type_uint8_t" = xyes; then :
19035
19036cat >>confdefs.h <<_ACEOF
19037#define HAVE_UINT8_T 1
19038_ACEOF
19039
19040
19041fi
19042ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19043if test "x$ac_cv_type_int16_t" = xyes; then :
19044
19045cat >>confdefs.h <<_ACEOF
19046#define HAVE_INT16_T 1
19047_ACEOF
19048
19049
19050fi
19051ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19052if test "x$ac_cv_type_uint16_t" = xyes; then :
19053
19054cat >>confdefs.h <<_ACEOF
19055#define HAVE_UINT16_T 1
19056_ACEOF
19057
19058
19059fi
19060ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19061if test "x$ac_cv_type_int32_t" = xyes; then :
19062
19063cat >>confdefs.h <<_ACEOF
19064#define HAVE_INT32_T 1
19065_ACEOF
19066
19067
19068fi
19069ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19070if test "x$ac_cv_type_uint32_t" = xyes; then :
19071
19072cat >>confdefs.h <<_ACEOF
19073#define HAVE_UINT32_T 1
19074_ACEOF
19075
19076
19077fi
19078ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19079if test "x$ac_cv_type_intptr_t" = xyes; then :
19080
19081cat >>confdefs.h <<_ACEOF
19082#define HAVE_INTPTR_T 1
19083_ACEOF
19084
19085
19086fi
19087ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19088if test "x$ac_cv_type_uintptr_t" = xyes; then :
19089
19090cat >>confdefs.h <<_ACEOF
19091#define HAVE_UINTPTR_T 1
19092_ACEOF
19093
19094
19095fi
19096ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19097if test "x$ac_cv_type_uint_t" = xyes; then :
19098
19099cat >>confdefs.h <<_ACEOF
19100#define HAVE_UINT_T 1
19101_ACEOF
19102
19103
19104fi
19105ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19106if test "x$ac_cv_type_pid_t" = xyes; then :
19107
19108cat >>confdefs.h <<_ACEOF
19109#define HAVE_PID_T 1
19110_ACEOF
19111
19112
19113fi
19114ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19115if test "x$ac_cv_type_size_t" = xyes; then :
19116
19117cat >>confdefs.h <<_ACEOF
19118#define HAVE_SIZE_T 1
19119_ACEOF
19120
19121
19122fi
19123ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19124if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19125
19126cat >>confdefs.h <<_ACEOF
19127#define HAVE_PTRDIFF_T 1
19128_ACEOF
19129
19130
19131fi
19132
19133  # The cast to long int works around a bug in the HP C Compiler
19134# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19135# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19136# This bug is HP SR number 8606223364.
19137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19138$as_echo_n "checking size of char *... " >&6; }
19139if ${ac_cv_sizeof_char_p+:} false; then :
19140  $as_echo_n "(cached) " >&6
19141else
19142  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
19143
19144else
19145  if test "$ac_cv_type_char_p" = yes; then
19146     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19148as_fn_error 77 "cannot compute sizeof (char *)
19149See \`config.log' for more details" "$LINENO" 5; }
19150   else
19151     ac_cv_sizeof_char_p=0
19152   fi
19153fi
19154
19155fi
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19157$as_echo "$ac_cv_sizeof_char_p" >&6; }
19158
19159
19160
19161cat >>confdefs.h <<_ACEOF
19162#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19163_ACEOF
19164
19165
19166  # The cast to long int works around a bug in the HP C Compiler
19167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19169# This bug is HP SR number 8606223364.
19170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19171$as_echo_n "checking size of int... " >&6; }
19172if ${ac_cv_sizeof_int+:} false; then :
19173  $as_echo_n "(cached) " >&6
19174else
19175  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
19176
19177else
19178  if test "$ac_cv_type_int" = yes; then
19179     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19181as_fn_error 77 "cannot compute sizeof (int)
19182See \`config.log' for more details" "$LINENO" 5; }
19183   else
19184     ac_cv_sizeof_int=0
19185   fi
19186fi
19187
19188fi
19189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19190$as_echo "$ac_cv_sizeof_int" >&6; }
19191
19192
19193
19194cat >>confdefs.h <<_ACEOF
19195#define SIZEOF_INT $ac_cv_sizeof_int
19196_ACEOF
19197
19198
19199  # The cast to long int works around a bug in the HP C Compiler
19200# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19201# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19202# This bug is HP SR number 8606223364.
19203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19204$as_echo_n "checking size of long... " >&6; }
19205if ${ac_cv_sizeof_long+:} false; then :
19206  $as_echo_n "(cached) " >&6
19207else
19208  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19209
19210else
19211  if test "$ac_cv_type_long" = yes; then
19212     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19214as_fn_error 77 "cannot compute sizeof (long)
19215See \`config.log' for more details" "$LINENO" 5; }
19216   else
19217     ac_cv_sizeof_long=0
19218   fi
19219fi
19220
19221fi
19222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19223$as_echo "$ac_cv_sizeof_long" >&6; }
19224
19225
19226
19227cat >>confdefs.h <<_ACEOF
19228#define SIZEOF_LONG $ac_cv_sizeof_long
19229_ACEOF
19230
19231
19232  # The cast to long int works around a bug in the HP C Compiler
19233# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19234# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19235# This bug is HP SR number 8606223364.
19236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19237$as_echo_n "checking size of short... " >&6; }
19238if ${ac_cv_sizeof_short+:} false; then :
19239  $as_echo_n "(cached) " >&6
19240else
19241  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
19242
19243else
19244  if test "$ac_cv_type_short" = yes; then
19245     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19247as_fn_error 77 "cannot compute sizeof (short)
19248See \`config.log' for more details" "$LINENO" 5; }
19249   else
19250     ac_cv_sizeof_short=0
19251   fi
19252fi
19253
19254fi
19255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19256$as_echo "$ac_cv_sizeof_short" >&6; }
19257
19258
19259
19260cat >>confdefs.h <<_ACEOF
19261#define SIZEOF_SHORT $ac_cv_sizeof_short
19262_ACEOF
19263
19264
19265
19266  # ------------
19267  # AC_CHECK_LIB
19268  # ------------
19269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19270$as_echo_n "checking for pathfind in -lgen... " >&6; }
19271if ${ac_cv_lib_gen_pathfind+:} false; then :
19272  $as_echo_n "(cached) " >&6
19273else
19274  ac_check_lib_save_LIBS=$LIBS
19275LIBS="-lgen  $LIBS"
19276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277/* end confdefs.h.  */
19278
19279/* Override any GCC internal prototype to avoid an error.
19280   Use char because int might match the return type of a GCC
19281   builtin and then its argument prototype would still apply.  */
19282#ifdef __cplusplus
19283extern "C"
19284#endif
19285char pathfind ();
19286int
19287main ()
19288{
19289return pathfind ();
19290  ;
19291  return 0;
19292}
19293_ACEOF
19294if ac_fn_c_try_link "$LINENO"; then :
19295  ac_cv_lib_gen_pathfind=yes
19296else
19297  ac_cv_lib_gen_pathfind=no
19298fi
19299rm -f core conftest.err conftest.$ac_objext \
19300    conftest$ac_exeext conftest.$ac_ext
19301LIBS=$ac_check_lib_save_LIBS
19302fi
19303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19304$as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19305if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19306  cat >>confdefs.h <<_ACEOF
19307#define HAVE_LIBGEN 1
19308_ACEOF
19309
19310  LIBS="-lgen $LIBS"
19311
19312fi
19313
19314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19315$as_echo_n "checking for gettext in -lintl... " >&6; }
19316if ${ac_cv_lib_intl_gettext+:} false; then :
19317  $as_echo_n "(cached) " >&6
19318else
19319  ac_check_lib_save_LIBS=$LIBS
19320LIBS="-lintl  $LIBS"
19321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322/* end confdefs.h.  */
19323
19324/* Override any GCC internal prototype to avoid an error.
19325   Use char because int might match the return type of a GCC
19326   builtin and then its argument prototype would still apply.  */
19327#ifdef __cplusplus
19328extern "C"
19329#endif
19330char gettext ();
19331int
19332main ()
19333{
19334return gettext ();
19335  ;
19336  return 0;
19337}
19338_ACEOF
19339if ac_fn_c_try_link "$LINENO"; then :
19340  ac_cv_lib_intl_gettext=yes
19341else
19342  ac_cv_lib_intl_gettext=no
19343fi
19344rm -f core conftest.err conftest.$ac_objext \
19345    conftest$ac_exeext conftest.$ac_ext
19346LIBS=$ac_check_lib_save_LIBS
19347fi
19348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19349$as_echo "$ac_cv_lib_intl_gettext" >&6; }
19350if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19351  cat >>confdefs.h <<_ACEOF
19352#define HAVE_LIBINTL 1
19353_ACEOF
19354
19355  LIBS="-lintl $LIBS"
19356
19357fi
19358
19359  for ac_func in vprintf
19360do :
19361  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19362if test "x$ac_cv_func_vprintf" = xyes; then :
19363  cat >>confdefs.h <<_ACEOF
19364#define HAVE_VPRINTF 1
19365_ACEOF
19366
19367ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19368if test "x$ac_cv_func__doprnt" = xyes; then :
19369
19370$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19371
19372fi
19373
19374fi
19375done
19376
19377
19378  for ac_header in vfork.h
19379do :
19380  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19381if test "x$ac_cv_header_vfork_h" = xyes; then :
19382  cat >>confdefs.h <<_ACEOF
19383#define HAVE_VFORK_H 1
19384_ACEOF
19385
19386fi
19387
19388done
19389
19390for ac_func in fork vfork
19391do :
19392  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19394if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19395  cat >>confdefs.h <<_ACEOF
19396#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19397_ACEOF
19398
19399fi
19400done
19401
19402if test "x$ac_cv_func_fork" = xyes; then
19403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19404$as_echo_n "checking for working fork... " >&6; }
19405if ${ac_cv_func_fork_works+:} false; then :
19406  $as_echo_n "(cached) " >&6
19407else
19408  if test "$cross_compiling" = yes; then :
19409  ac_cv_func_fork_works=cross
19410else
19411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412/* end confdefs.h.  */
19413$ac_includes_default
19414int
19415main ()
19416{
19417
19418	  /* By Ruediger Kuhlmann. */
19419	  return fork () < 0;
19420
19421  ;
19422  return 0;
19423}
19424_ACEOF
19425if ac_fn_c_try_run "$LINENO"; then :
19426  ac_cv_func_fork_works=yes
19427else
19428  ac_cv_func_fork_works=no
19429fi
19430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19431  conftest.$ac_objext conftest.beam conftest.$ac_ext
19432fi
19433
19434fi
19435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19436$as_echo "$ac_cv_func_fork_works" >&6; }
19437
19438else
19439  ac_cv_func_fork_works=$ac_cv_func_fork
19440fi
19441if test "x$ac_cv_func_fork_works" = xcross; then
19442  case $host in
19443    *-*-amigaos* | *-*-msdosdjgpp*)
19444      # Override, as these systems have only a dummy fork() stub
19445      ac_cv_func_fork_works=no
19446      ;;
19447    *)
19448      ac_cv_func_fork_works=yes
19449      ;;
19450  esac
19451  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19452$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19453fi
19454ac_cv_func_vfork_works=$ac_cv_func_vfork
19455if test "x$ac_cv_func_vfork" = xyes; then
19456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19457$as_echo_n "checking for working vfork... " >&6; }
19458if ${ac_cv_func_vfork_works+:} false; then :
19459  $as_echo_n "(cached) " >&6
19460else
19461  if test "$cross_compiling" = yes; then :
19462  ac_cv_func_vfork_works=cross
19463else
19464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465/* end confdefs.h.  */
19466/* Thanks to Paul Eggert for this test.  */
19467$ac_includes_default
19468#include <sys/wait.h>
19469#ifdef HAVE_VFORK_H
19470# include <vfork.h>
19471#endif
19472/* On some sparc systems, changes by the child to local and incoming
19473   argument registers are propagated back to the parent.  The compiler
19474   is told about this with #include <vfork.h>, but some compilers
19475   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19476   static variable whose address is put into a register that is
19477   clobbered by the vfork.  */
19478static void
19479#ifdef __cplusplus
19480sparc_address_test (int arg)
19481# else
19482sparc_address_test (arg) int arg;
19483#endif
19484{
19485  static pid_t child;
19486  if (!child) {
19487    child = vfork ();
19488    if (child < 0) {
19489      perror ("vfork");
19490      _exit(2);
19491    }
19492    if (!child) {
19493      arg = getpid();
19494      write(-1, "", 0);
19495      _exit (arg);
19496    }
19497  }
19498}
19499
19500int
19501main ()
19502{
19503  pid_t parent = getpid ();
19504  pid_t child;
19505
19506  sparc_address_test (0);
19507
19508  child = vfork ();
19509
19510  if (child == 0) {
19511    /* Here is another test for sparc vfork register problems.  This
19512       test uses lots of local variables, at least as many local
19513       variables as main has allocated so far including compiler
19514       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19515       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19516       reuse the register of parent for one of the local variables,
19517       since it will think that parent can't possibly be used any more
19518       in this routine.  Assigning to the local variable will thus
19519       munge parent in the parent process.  */
19520    pid_t
19521      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19522      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19523    /* Convince the compiler that p..p7 are live; otherwise, it might
19524       use the same hardware register for all 8 local variables.  */
19525    if (p != p1 || p != p2 || p != p3 || p != p4
19526	|| p != p5 || p != p6 || p != p7)
19527      _exit(1);
19528
19529    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19530       from child file descriptors.  If the child closes a descriptor
19531       before it execs or exits, this munges the parent's descriptor
19532       as well.  Test for this by closing stdout in the child.  */
19533    _exit(close(fileno(stdout)) != 0);
19534  } else {
19535    int status;
19536    struct stat st;
19537
19538    while (wait(&status) != child)
19539      ;
19540    return (
19541	 /* Was there some problem with vforking?  */
19542	 child < 0
19543
19544	 /* Did the child fail?  (This shouldn't happen.)  */
19545	 || status
19546
19547	 /* Did the vfork/compiler bug occur?  */
19548	 || parent != getpid()
19549
19550	 /* Did the file descriptor bug occur?  */
19551	 || fstat(fileno(stdout), &st) != 0
19552	 );
19553  }
19554}
19555_ACEOF
19556if ac_fn_c_try_run "$LINENO"; then :
19557  ac_cv_func_vfork_works=yes
19558else
19559  ac_cv_func_vfork_works=no
19560fi
19561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19562  conftest.$ac_objext conftest.beam conftest.$ac_ext
19563fi
19564
19565fi
19566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19567$as_echo "$ac_cv_func_vfork_works" >&6; }
19568
19569fi;
19570if test "x$ac_cv_func_fork_works" = xcross; then
19571  ac_cv_func_vfork_works=$ac_cv_func_vfork
19572  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19573$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19574fi
19575
19576if test "x$ac_cv_func_vfork_works" = xyes; then
19577
19578$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19579
19580else
19581
19582$as_echo "#define vfork fork" >>confdefs.h
19583
19584fi
19585if test "x$ac_cv_func_fork_works" = xyes; then
19586
19587$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19588
19589fi
19590
19591  for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19592                 strrchr strsignal fchmod fstat chmod
19593do :
19594  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19596if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19597  cat >>confdefs.h <<_ACEOF
19598#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19599_ACEOF
19600
19601fi
19602done
19603
19604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19605$as_echo_n "checking for a sed that does not truncate output... " >&6; }
19606if ${ac_cv_path_SED+:} false; then :
19607  $as_echo_n "(cached) " >&6
19608else
19609            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19610     for ac_i in 1 2 3 4 5 6 7; do
19611       ac_script="$ac_script$as_nl$ac_script"
19612     done
19613     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19614     { ac_script=; unset ac_script;}
19615     if test -z "$SED"; then
19616  ac_path_SED_found=false
19617  # Loop through the user's path and test for each of PROGNAME-LIST
19618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19619for as_dir in $PATH
19620do
19621  IFS=$as_save_IFS
19622  test -z "$as_dir" && as_dir=.
19623    for ac_prog in sed gsed; do
19624    for ac_exec_ext in '' $ac_executable_extensions; do
19625      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19626      as_fn_executable_p "$ac_path_SED" || continue
19627# Check for GNU ac_path_SED and select it if it is found.
19628  # Check for GNU $ac_path_SED
19629case `"$ac_path_SED" --version 2>&1` in
19630*GNU*)
19631  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19632*)
19633  ac_count=0
19634  $as_echo_n 0123456789 >"conftest.in"
19635  while :
19636  do
19637    cat "conftest.in" "conftest.in" >"conftest.tmp"
19638    mv "conftest.tmp" "conftest.in"
19639    cp "conftest.in" "conftest.nl"
19640    $as_echo '' >> "conftest.nl"
19641    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19642    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19643    as_fn_arith $ac_count + 1 && ac_count=$as_val
19644    if test $ac_count -gt ${ac_path_SED_max-0}; then
19645      # Best one so far, save it but keep looking for a better one
19646      ac_cv_path_SED="$ac_path_SED"
19647      ac_path_SED_max=$ac_count
19648    fi
19649    # 10*(2^10) chars as input seems more than enough
19650    test $ac_count -gt 10 && break
19651  done
19652  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19653esac
19654
19655      $ac_path_SED_found && break 3
19656    done
19657  done
19658  done
19659IFS=$as_save_IFS
19660  if test -z "$ac_cv_path_SED"; then
19661    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19662  fi
19663else
19664  ac_cv_path_SED=$SED
19665fi
19666
19667fi
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19669$as_echo "$ac_cv_path_SED" >&6; }
19670 SED="$ac_cv_path_SED"
19671  rm -f conftest.sed
19672
19673  while :
19674  do
19675      POSIX_SHELL=`which bash`
19676      test -x "$POSIX_SHELL" && break
19677      POSIX_SHELL=`which dash`
19678      test -x "$POSIX_SHELL" && break
19679      POSIX_SHELL=/usr/xpg4/bin/sh
19680      test -x "$POSIX_SHELL" && break
19681      POSIX_SHELL=`/bin/sh -c '
19682          exec 2>/dev/null
19683          if ! true ; then exit 1 ; fi
19684          echo /bin/sh'`
19685      test -x "$POSIX_SHELL" && break
19686      as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19687  done
19688
19689cat >>confdefs.h <<_ACEOF
19690#define POSIX_SHELL "${POSIX_SHELL}"
19691_ACEOF
19692
19693
19694
19695
19696
19697  LIBOPTS_BUILD_BLOCKED=true
19698
19699
19700  NEED_LIBOPTS_DIR=''
19701
19702  # Check whether --enable-local-libopts was given.
19703if test "${enable_local_libopts+set}" = set; then :
19704  enableval=$enable_local_libopts;
19705    if test x$enableval = xyes ; then
19706       { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19707$as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19708       LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19709       NEED_LIBOPTS_DIR=true
19710       LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19711    fi
19712fi
19713
19714
19715  # Check whether --enable-libopts-install was given.
19716if test "${enable_libopts_install+set}" = set; then :
19717  enableval=$enable_libopts_install;
19718fi
19719
19720   if test "X${enable_libopts_install}" = Xyes; then
19721  INSTALL_LIBOPTS_TRUE=
19722  INSTALL_LIBOPTS_FALSE='#'
19723else
19724  INSTALL_LIBOPTS_TRUE='#'
19725  INSTALL_LIBOPTS_FALSE=
19726fi
19727
19728
19729  if test -z "${NEED_LIBOPTS_DIR}" ; then
19730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19731$as_echo_n "checking whether autoopts-config can be found... " >&6; }
19732
19733# Check whether --with-autoopts-config was given.
19734if test "${with_autoopts_config+set}" = set; then :
19735  withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19736else
19737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19738$as_echo_n "checking whether autoopts-config is specified... " >&6; }
19739if ${lo_cv_with_autoopts_config+:} false; then :
19740  $as_echo_n "(cached) " >&6
19741else
19742  if autoopts-config --help 2>/dev/null 1>&2
19743        then lo_cv_with_autoopts_config=autoopts-config
19744        elif libopts-config --help 2>/dev/null 1>&2
19745        then lo_cv_with_autoopts_config=libopts-config
19746        else lo_cv_with_autoopts_config=no ; fi
19747fi
19748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19749$as_echo "$lo_cv_with_autoopts_config" >&6; }
19750
19751fi
19752 # end of AC_ARG_WITH
19753
19754     if ${lo_cv_test_autoopts+:} false; then :
19755  $as_echo_n "(cached) " >&6
19756else
19757
19758        if test -z "${lo_cv_with_autoopts_config}" \
19759                -o X"${lo_cv_with_autoopts_config}" = Xno
19760        then
19761           if autoopts-config --help 2>/dev/null 1>&2
19762           then lo_cv_with_autoopts_config=autoopts-config
19763           elif libopts-config --help 2>/dev/null 1>&2
19764           then lo_cv_with_autoopts_config=libopts-config
19765           else lo_cv_with_autoopts_config=false ; fi
19766        fi
19767        lo_cv_test_autoopts=`
19768            ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19769        if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19770        then lo_cv_test_autoopts=no ; fi
19771
19772fi
19773 # end of CACHE_VAL
19774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19775$as_echo "${lo_cv_test_autoopts}" >&6; }
19776
19777     if test "X${lo_cv_test_autoopts}" != Xno
19778     then
19779        LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19780        LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19781     else
19782        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19783        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19784        NEED_LIBOPTS_DIR=true
19785     fi
19786  fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19787  if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19788    NEED_LIBOPTS_DIR=''
19789  fi
19790   if test -n "${NEED_LIBOPTS_DIR}"; then
19791  NEED_LIBOPTS_TRUE=
19792  NEED_LIBOPTS_FALSE='#'
19793else
19794  NEED_LIBOPTS_TRUE='#'
19795  NEED_LIBOPTS_FALSE=
19796fi
19797
19798
19799
19800  LIBOPTS_DIR=sntp/libopts
19801
19802
19803# end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19804
19805  # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19806
19807
19808
19809
19810ntp_pkgconfig_min_version='0.15.0'
19811if test -n "$ac_tool_prefix"; then
19812  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19813set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19815$as_echo_n "checking for $ac_word... " >&6; }
19816if ${ac_cv_path_PKG_CONFIG+:} false; then :
19817  $as_echo_n "(cached) " >&6
19818else
19819  case $PKG_CONFIG in
19820  [\\/]* | ?:[\\/]*)
19821  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19822  ;;
19823  *)
19824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19825for as_dir in $PATH
19826do
19827  IFS=$as_save_IFS
19828  test -z "$as_dir" && as_dir=.
19829    for ac_exec_ext in '' $ac_executable_extensions; do
19830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19831    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19833    break 2
19834  fi
19835done
19836  done
19837IFS=$as_save_IFS
19838
19839  ;;
19840esac
19841fi
19842PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19843if test -n "$PKG_CONFIG"; then
19844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19845$as_echo "$PKG_CONFIG" >&6; }
19846else
19847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19848$as_echo "no" >&6; }
19849fi
19850
19851
19852fi
19853if test -z "$ac_cv_path_PKG_CONFIG"; then
19854  ac_pt_PKG_CONFIG=$PKG_CONFIG
19855  # Extract the first word of "pkg-config", so it can be a program name with args.
19856set dummy pkg-config; ac_word=$2
19857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19858$as_echo_n "checking for $ac_word... " >&6; }
19859if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19860  $as_echo_n "(cached) " >&6
19861else
19862  case $ac_pt_PKG_CONFIG in
19863  [\\/]* | ?:[\\/]*)
19864  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19865  ;;
19866  *)
19867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868for as_dir in $PATH
19869do
19870  IFS=$as_save_IFS
19871  test -z "$as_dir" && as_dir=.
19872    for ac_exec_ext in '' $ac_executable_extensions; do
19873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19874    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19876    break 2
19877  fi
19878done
19879  done
19880IFS=$as_save_IFS
19881
19882  ;;
19883esac
19884fi
19885ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19886if test -n "$ac_pt_PKG_CONFIG"; then
19887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19888$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19889else
19890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19891$as_echo "no" >&6; }
19892fi
19893
19894  if test "x$ac_pt_PKG_CONFIG" = x; then
19895    PKG_CONFIG=""
19896  else
19897    case $cross_compiling:$ac_tool_warned in
19898yes:)
19899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19901ac_tool_warned=yes ;;
19902esac
19903    PKG_CONFIG=$ac_pt_PKG_CONFIG
19904  fi
19905else
19906  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19907fi
19908
19909{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19910{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19911
19912case "$PKG_CONFIG" in
19913 /*)
19914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19915$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19916    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19917	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918$as_echo "yes" >&6; }
19919    else
19920	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921$as_echo "no" >&6; }
19922	PKG_CONFIG=""
19923    fi
19924    ;;
19925esac
19926
19927
19928
19929
19930# Check whether --enable-local-libevent was given.
19931if test "${enable_local_libevent+set}" = set; then :
19932  enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19933else
19934  ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19935
19936fi
19937
19938
19939
19940
19941
19942ntp_libevent_min_version=2
19943ntp_libevent_tearoff=sntp/libevent
19944
19945
19946
19947
19948case "$ntp_use_local_libevent" in
19949 yes)
19950    ;;
19951 *) # If we have (a good enough) pkg-config, see if it can find libevent
19952    case "$PKG_CONFIG" in
19953     /*)
19954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
19955$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
19956	if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
19957	then
19958	    ntp_use_local_libevent=no
19959	    { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
19960$as_echo "$as_me: Using the installed libevent" >&6;}
19961	    CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
19962	    # HMS: I hope the following is accurate.
19963	    # We don't need -levent, we only need  -levent_core.
19964	    # While we could grab only the -L stuff, there *might* be
19965	    # other flags there we want.  Originally we just removed -levent
19966	    # but then somebody decided to install -levent-2.0
19967	    # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
19968	    # So now we dance...
19969	    LDADD_LIBEVENT=
19970	    for i in `$PKG_CONFIG --libs libevent`
19971	    do
19972		case "$i" in
19973		 -levent*) ;;
19974		 *) case "$LDADD_LIBEVENT" in
19975		     '') LDADD_LIBEVENT="$i" ;;
19976		     *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
19977		    esac
19978		    ;;
19979		esac
19980	    done
19981	    case "$LIBISC_PTHREADS_NOTHREADS" in
19982	     pthreads)
19983		LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
19984	    esac
19985	    LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
19986	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19987$as_echo "yes" >&6; }
19988	else
19989	    ntp_use_local_libevent=yes
19990	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991$as_echo "no" >&6; }
19992	fi
19993	;;
19994     *)
19995	ntp_use_local_libevent=yes
19996	;;
19997    esac
19998    ;;
19999esac
20000
20001case "$ntp_use_local_libevent" in
20002 yes)
20003    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20004$as_echo "$as_me: Using libevent tearoff" >&6;}
20005    CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20006    case "$LIBISC_PTHREADS_NOTHREADS" in
20007     pthreads)
20008	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20009	;;
20010     *)
20011	LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20012    esac
20013esac
20014
20015 if test "x$ntp_use_local_libevent" = "xyes"; then
20016  BUILD_LIBEVENT_TRUE=
20017  BUILD_LIBEVENT_FALSE='#'
20018else
20019  BUILD_LIBEVENT_TRUE='#'
20020  BUILD_LIBEVENT_FALSE=
20021fi
20022
20023
20024
20025
20026
20027
20028# Expose a cross-compilation indicator to makefiles
20029 if test $build != $host; then
20030  NTP_CROSSCOMPILE_TRUE=
20031  NTP_CROSSCOMPILE_FALSE='#'
20032else
20033  NTP_CROSSCOMPILE_TRUE='#'
20034  NTP_CROSSCOMPILE_FALSE=
20035fi
20036
20037
20038
20039ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20040if test "x$ac_cv_type_size_t" = xyes; then :
20041
20042else
20043
20044cat >>confdefs.h <<_ACEOF
20045#define size_t unsigned int
20046_ACEOF
20047
20048fi
20049
20050
20051            # Check whether --enable-c99-snprintf was given.
20052if test "${enable_c99_snprintf+set}" = set; then :
20053  enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20054else
20055  force_c99_snprintf=no
20056
20057fi
20058
20059    case "$force_c99_snprintf" in
20060     yes)
20061	hw_force_rpl_snprintf=yes
20062	hw_force_rpl_vsnprintf=yes
20063    esac
20064
20065
20066
20067
20068
20069
20070  for ac_header in $ac_header_list
20071do :
20072  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20073ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20074"
20075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20076  cat >>confdefs.h <<_ACEOF
20077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078_ACEOF
20079
20080fi
20081
20082done
20083
20084
20085
20086
20087
20088
20089
20090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20091$as_echo_n "checking for unsigned long long int... " >&6; }
20092if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20093  $as_echo_n "(cached) " >&6
20094else
20095  ac_cv_type_unsigned_long_long_int=yes
20096     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098/* end confdefs.h.  */
20099
20100  /* For now, do not test the preprocessor; as of 2007 there are too many
20101	 implementations with broken preprocessors.  Perhaps this can
20102	 be revisited in 2012.  In the meantime, code should not expect
20103	 #if to work with literals wider than 32 bits.  */
20104      /* Test literals.  */
20105      long long int ll = 9223372036854775807ll;
20106      long long int nll = -9223372036854775807LL;
20107      unsigned long long int ull = 18446744073709551615ULL;
20108      /* Test constant expressions.   */
20109      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20110		     ? 1 : -1)];
20111      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20112		     ? 1 : -1)];
20113      int i = 63;
20114int
20115main ()
20116{
20117/* Test availability of runtime routines for shift and division.  */
20118      long long int llmax = 9223372036854775807ll;
20119      unsigned long long int ullmax = 18446744073709551615ull;
20120      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20121	      | (llmax / ll) | (llmax % ll)
20122	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20123	      | (ullmax / ull) | (ullmax % ull));
20124  ;
20125  return 0;
20126}
20127
20128_ACEOF
20129if ac_fn_c_try_link "$LINENO"; then :
20130
20131else
20132  ac_cv_type_unsigned_long_long_int=no
20133fi
20134rm -f core conftest.err conftest.$ac_objext \
20135    conftest$ac_exeext conftest.$ac_ext
20136     fi
20137fi
20138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20139$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20140  if test $ac_cv_type_unsigned_long_long_int = yes; then
20141
20142$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20143
20144  fi
20145
20146
20147      ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20148if test "x$ac_cv_func_vsnprintf" = xyes; then :
20149  hw_cv_func_vsnprintf=yes
20150else
20151  hw_cv_func_vsnprintf=no
20152fi
20153
20154  if test "$hw_cv_func_vsnprintf" = yes; then :
20155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20156$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20157if ${hw_cv_func_vsnprintf_c99+:} false; then :
20158  $as_echo_n "(cached) " >&6
20159else
20160  if test "$cross_compiling" = yes; then :
20161  hw_cv_func_vsnprintf_c99=no
20162else
20163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164/* end confdefs.h.  */
20165#if HAVE_STDARG_H
20166          #include <stdarg.h>
20167          #endif
20168          #include <stdio.h>
20169          static int testprintf(char *buf, size_t size, const char *format, ...)
20170          {
20171            int result;
20172            va_list ap;
20173            va_start(ap, format);
20174            result = vsnprintf(buf, size, format, ap);
20175            va_end(ap);
20176            return result;
20177          }
20178int
20179main ()
20180{
20181char buf[43];
20182          if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20183              testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20184              buf[0] != 'T' || buf[3] != '\0')
20185            return 1;
20186  ;
20187  return 0;
20188}
20189_ACEOF
20190if ac_fn_c_try_run "$LINENO"; then :
20191  hw_cv_func_vsnprintf_c99=yes
20192else
20193  hw_cv_func_vsnprintf_c99=no
20194fi
20195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20196  conftest.$ac_objext conftest.beam conftest.$ac_ext
20197fi
20198
20199fi
20200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20201$as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20202else
20203  hw_cv_func_vsnprintf_c99=no
20204fi
20205
20206$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20207
20208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20209$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20210  if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20211  hw_use_rpl_vsnprintf=yes
20212else
20213  hw_use_rpl_vsnprintf=no
20214fi
20215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20216$as_echo "$hw_use_rpl_vsnprintf" >&6; }
20217  if test "$hw_use_rpl_vsnprintf" = yes; then :
20218
20219$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20220
20221    if test ${hw_nodef_vsnprintf=no} = no; then :
20222
20223$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20224
20225fi
20226    for ac_header in inttypes.h locale.h stddef.h stdint.h
20227do :
20228  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20229ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20231  cat >>confdefs.h <<_ACEOF
20232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20233_ACEOF
20234
20235fi
20236
20237done
20238
20239    ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20240"
20241if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20242
20243cat >>confdefs.h <<_ACEOF
20244#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20245_ACEOF
20246
20247
20248fi
20249ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20250"
20251if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20252
20253cat >>confdefs.h <<_ACEOF
20254#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20255_ACEOF
20256
20257
20258fi
20259
20260
20261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20262$as_echo_n "checking for long double... " >&6; }
20263if ${ac_cv_type_long_double+:} false; then :
20264  $as_echo_n "(cached) " >&6
20265else
20266  if test "$GCC" = yes; then
20267       ac_cv_type_long_double=yes
20268     else
20269       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270/* end confdefs.h.  */
20271/* The Stardent Vistra knows sizeof (long double), but does
20272		 not support it.  */
20273	      long double foo = 0.0L;
20274int
20275main ()
20276{
20277static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20278	      sizeof (double) <= sizeof (long double))];
20279test_array [0] = 0;
20280return test_array [0];
20281
20282  ;
20283  return 0;
20284}
20285_ACEOF
20286if ac_fn_c_try_compile "$LINENO"; then :
20287  ac_cv_type_long_double=yes
20288else
20289  ac_cv_type_long_double=no
20290fi
20291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20292     fi
20293fi
20294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20295$as_echo "$ac_cv_type_long_double" >&6; }
20296  if test $ac_cv_type_long_double = yes; then
20297
20298$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20299
20300  fi
20301
20302
20303
20304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20305$as_echo_n "checking for long long int... " >&6; }
20306if ${ac_cv_type_long_long_int+:} false; then :
20307  $as_echo_n "(cached) " >&6
20308else
20309  ac_cv_type_long_long_int=yes
20310      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20311	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20312	if test $ac_cv_type_long_long_int = yes; then
20313	  	  	  	  if test "$cross_compiling" = yes; then :
20314  :
20315else
20316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317/* end confdefs.h.  */
20318#include <limits.h>
20319		 #ifndef LLONG_MAX
20320		 # define HALF \
20321			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20322		 # define LLONG_MAX (HALF - 1 + HALF)
20323		 #endif
20324int
20325main ()
20326{
20327long long int n = 1;
20328		 int i;
20329		 for (i = 0; ; i++)
20330		   {
20331		     long long int m = n << i;
20332		     if (m >> i != n)
20333		       return 1;
20334		     if (LLONG_MAX / 2 < m)
20335		       break;
20336		   }
20337		 return 0;
20338  ;
20339  return 0;
20340}
20341_ACEOF
20342if ac_fn_c_try_run "$LINENO"; then :
20343
20344else
20345  ac_cv_type_long_long_int=no
20346fi
20347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20348  conftest.$ac_objext conftest.beam conftest.$ac_ext
20349fi
20350
20351	fi
20352      fi
20353fi
20354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20355$as_echo "$ac_cv_type_long_long_int" >&6; }
20356  if test $ac_cv_type_long_long_int = yes; then
20357
20358$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20359
20360  fi
20361
20362
20363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20364$as_echo_n "checking for unsigned long long int... " >&6; }
20365if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20366  $as_echo_n "(cached) " >&6
20367else
20368  ac_cv_type_unsigned_long_long_int=yes
20369     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20370       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371/* end confdefs.h.  */
20372
20373  /* For now, do not test the preprocessor; as of 2007 there are too many
20374	 implementations with broken preprocessors.  Perhaps this can
20375	 be revisited in 2012.  In the meantime, code should not expect
20376	 #if to work with literals wider than 32 bits.  */
20377      /* Test literals.  */
20378      long long int ll = 9223372036854775807ll;
20379      long long int nll = -9223372036854775807LL;
20380      unsigned long long int ull = 18446744073709551615ULL;
20381      /* Test constant expressions.   */
20382      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20383		     ? 1 : -1)];
20384      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20385		     ? 1 : -1)];
20386      int i = 63;
20387int
20388main ()
20389{
20390/* Test availability of runtime routines for shift and division.  */
20391      long long int llmax = 9223372036854775807ll;
20392      unsigned long long int ullmax = 18446744073709551615ull;
20393      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20394	      | (llmax / ll) | (llmax % ll)
20395	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20396	      | (ullmax / ull) | (ullmax % ull));
20397  ;
20398  return 0;
20399}
20400
20401_ACEOF
20402if ac_fn_c_try_link "$LINENO"; then :
20403
20404else
20405  ac_cv_type_unsigned_long_long_int=no
20406fi
20407rm -f core conftest.err conftest.$ac_objext \
20408    conftest$ac_exeext conftest.$ac_ext
20409     fi
20410fi
20411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20412$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20413  if test $ac_cv_type_unsigned_long_long_int = yes; then
20414
20415$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20416
20417  fi
20418
20419    ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20420if test "x$ac_cv_type_size_t" = xyes; then :
20421
20422else
20423
20424cat >>confdefs.h <<_ACEOF
20425#define size_t unsigned int
20426_ACEOF
20427
20428fi
20429
20430
20431
20432  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20433if test "x$ac_cv_type_intmax_t" = xyes; then :
20434
20435$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20436
20437else
20438  test $ac_cv_type_long_long_int = yes \
20439       && ac_type='long long int' \
20440       || ac_type='long int'
20441
20442cat >>confdefs.h <<_ACEOF
20443#define intmax_t $ac_type
20444_ACEOF
20445
20446fi
20447
20448
20449
20450
20451  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20452if test "x$ac_cv_type_uintmax_t" = xyes; then :
20453
20454$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20455
20456else
20457  test $ac_cv_type_unsigned_long_long_int = yes \
20458       && ac_type='unsigned long long int' \
20459       || ac_type='unsigned long int'
20460
20461cat >>confdefs.h <<_ACEOF
20462#define uintmax_t $ac_type
20463_ACEOF
20464
20465fi
20466
20467
20468
20469  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20470if test "x$ac_cv_type_uintptr_t" = xyes; then :
20471
20472$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20473
20474else
20475  for ac_type in 'unsigned int' 'unsigned long int' \
20476	'unsigned long long int'; do
20477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478/* end confdefs.h.  */
20479$ac_includes_default
20480int
20481main ()
20482{
20483static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20484test_array [0] = 0;
20485return test_array [0];
20486
20487  ;
20488  return 0;
20489}
20490_ACEOF
20491if ac_fn_c_try_compile "$LINENO"; then :
20492
20493cat >>confdefs.h <<_ACEOF
20494#define uintptr_t $ac_type
20495_ACEOF
20496
20497	  ac_type=
20498fi
20499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500       test -z "$ac_type" && break
20501     done
20502fi
20503
20504
20505    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20506if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20507
20508cat >>confdefs.h <<_ACEOF
20509#define HAVE_PTRDIFF_T 1
20510_ACEOF
20511
20512
20513fi
20514
20515    for ac_func in localeconv
20516do :
20517  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20518if test "x$ac_cv_func_localeconv" = xyes; then :
20519  cat >>confdefs.h <<_ACEOF
20520#define HAVE_LOCALECONV 1
20521_ACEOF
20522
20523fi
20524done
20525
20526
20527  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20529$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20530if ${ac_cv_c_const+:} false; then :
20531  $as_echo_n "(cached) " >&6
20532else
20533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534/* end confdefs.h.  */
20535
20536int
20537main ()
20538{
20539
20540#ifndef __cplusplus
20541  /* Ultrix mips cc rejects this sort of thing.  */
20542  typedef int charset[2];
20543  const charset cs = { 0, 0 };
20544  /* SunOS 4.1.1 cc rejects this.  */
20545  char const *const *pcpcc;
20546  char **ppc;
20547  /* NEC SVR4.0.2 mips cc rejects this.  */
20548  struct point {int x, y;};
20549  static struct point const zero = {0,0};
20550  /* AIX XL C 1.02.0.0 rejects this.
20551     It does not let you subtract one const X* pointer from another in
20552     an arm of an if-expression whose if-part is not a constant
20553     expression */
20554  const char *g = "string";
20555  pcpcc = &g + (g ? g-g : 0);
20556  /* HPUX 7.0 cc rejects these. */
20557  ++pcpcc;
20558  ppc = (char**) pcpcc;
20559  pcpcc = (char const *const *) ppc;
20560  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20561    char tx;
20562    char *t = &tx;
20563    char const *s = 0 ? (char *) 0 : (char const *) 0;
20564
20565    *t++ = 0;
20566    if (s) return 0;
20567  }
20568  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20569    int x[] = {25, 17};
20570    const int *foo = &x[0];
20571    ++foo;
20572  }
20573  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20574    typedef const int *iptr;
20575    iptr p = 0;
20576    ++p;
20577  }
20578  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20579       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20580    struct s { int j; const int *ap[3]; } bx;
20581    struct s *b = &bx; b->j = 5;
20582  }
20583  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20584    const int foo = 10;
20585    if (!foo) return 0;
20586  }
20587  return !cs[0] && !zero.x;
20588#endif
20589
20590  ;
20591  return 0;
20592}
20593_ACEOF
20594if ac_fn_c_try_compile "$LINENO"; then :
20595  ac_cv_c_const=yes
20596else
20597  ac_cv_c_const=no
20598fi
20599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600fi
20601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20602$as_echo "$ac_cv_c_const" >&6; }
20603if test $ac_cv_c_const = no; then
20604
20605$as_echo "#define const /**/" >>confdefs.h
20606
20607fi
20608
20609
20610
20611
20612    case " $LIBOBJS " in
20613  *" snprintf.$ac_objext "* ) ;;
20614  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20615 ;;
20616esac
20617
20618    _hw_cv_func_xprintf_replace_done=yes
20619fi
20620
20621fi
20622
20623
20624    ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20625if test "x$ac_cv_func_snprintf" = xyes; then :
20626  hw_cv_func_snprintf=yes
20627else
20628  hw_cv_func_snprintf=no
20629fi
20630
20631  if test "$hw_cv_func_snprintf" = yes; then :
20632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20633$as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20634if ${hw_cv_func_snprintf_c99+:} false; then :
20635  $as_echo_n "(cached) " >&6
20636else
20637  if test "$cross_compiling" = yes; then :
20638  hw_cv_func_snprintf_c99=no
20639else
20640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641/* end confdefs.h.  */
20642#include <stdio.h>
20643int
20644main ()
20645{
20646char buf[43];
20647          if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20648              snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20649              buf[0] != 'T' || buf[3] != '\0')
20650            return 1;
20651  ;
20652  return 0;
20653}
20654_ACEOF
20655if ac_fn_c_try_run "$LINENO"; then :
20656  hw_cv_func_snprintf_c99=yes
20657else
20658  hw_cv_func_snprintf_c99=no
20659fi
20660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20661  conftest.$ac_objext conftest.beam conftest.$ac_ext
20662fi
20663
20664fi
20665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20666$as_echo "$hw_cv_func_snprintf_c99" >&6; }
20667else
20668  hw_cv_func_snprintf_c99=no
20669fi
20670
20671$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20672
20673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20674$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20675  if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20676  hw_use_rpl_snprintf=yes
20677else
20678  hw_use_rpl_snprintf=no
20679fi
20680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20681$as_echo "$hw_use_rpl_snprintf" >&6; }
20682  if test "$hw_use_rpl_snprintf" = yes; then :
20683
20684$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20685
20686    if test ${hw_nodef_snprintf=no} = no; then :
20687
20688$as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20689
20690fi
20691
20692  if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20694$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20695if ${ac_cv_c_const+:} false; then :
20696  $as_echo_n "(cached) " >&6
20697else
20698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20699/* end confdefs.h.  */
20700
20701int
20702main ()
20703{
20704
20705#ifndef __cplusplus
20706  /* Ultrix mips cc rejects this sort of thing.  */
20707  typedef int charset[2];
20708  const charset cs = { 0, 0 };
20709  /* SunOS 4.1.1 cc rejects this.  */
20710  char const *const *pcpcc;
20711  char **ppc;
20712  /* NEC SVR4.0.2 mips cc rejects this.  */
20713  struct point {int x, y;};
20714  static struct point const zero = {0,0};
20715  /* AIX XL C 1.02.0.0 rejects this.
20716     It does not let you subtract one const X* pointer from another in
20717     an arm of an if-expression whose if-part is not a constant
20718     expression */
20719  const char *g = "string";
20720  pcpcc = &g + (g ? g-g : 0);
20721  /* HPUX 7.0 cc rejects these. */
20722  ++pcpcc;
20723  ppc = (char**) pcpcc;
20724  pcpcc = (char const *const *) ppc;
20725  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20726    char tx;
20727    char *t = &tx;
20728    char const *s = 0 ? (char *) 0 : (char const *) 0;
20729
20730    *t++ = 0;
20731    if (s) return 0;
20732  }
20733  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20734    int x[] = {25, 17};
20735    const int *foo = &x[0];
20736    ++foo;
20737  }
20738  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20739    typedef const int *iptr;
20740    iptr p = 0;
20741    ++p;
20742  }
20743  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20744       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20745    struct s { int j; const int *ap[3]; } bx;
20746    struct s *b = &bx; b->j = 5;
20747  }
20748  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20749    const int foo = 10;
20750    if (!foo) return 0;
20751  }
20752  return !cs[0] && !zero.x;
20753#endif
20754
20755  ;
20756  return 0;
20757}
20758_ACEOF
20759if ac_fn_c_try_compile "$LINENO"; then :
20760  ac_cv_c_const=yes
20761else
20762  ac_cv_c_const=no
20763fi
20764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765fi
20766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20767$as_echo "$ac_cv_c_const" >&6; }
20768if test $ac_cv_c_const = no; then
20769
20770$as_echo "#define const /**/" >>confdefs.h
20771
20772fi
20773
20774
20775
20776
20777    case " $LIBOBJS " in
20778  *" snprintf.$ac_objext "* ) ;;
20779  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20780 ;;
20781esac
20782
20783    _hw_cv_func_xprintf_replace_done=yes
20784fi
20785
20786fi
20787
20788
20789
20790
20791
20792# HMS: Save $LIBS and empty it.
20793# any LIBS we add here should go in to LDADD_LIBNTP
20794
20795__LIBS=$LIBS
20796LIBS=
20797
20798
20799
20800# [Bug 2332] because we need to know if we are using GNU ld...
20801
20802
20803# Check whether --with-gnu-ld was given.
20804if test "${with_gnu_ld+set}" = set; then :
20805  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20806else
20807  with_gnu_ld=no
20808fi
20809
20810ac_prog=ld
20811if test "$GCC" = yes; then
20812  # Check if gcc -print-prog-name=ld gives a path.
20813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20814$as_echo_n "checking for ld used by $CC... " >&6; }
20815  case $host in
20816  *-*-mingw*)
20817    # gcc leaves a trailing carriage return which upsets mingw
20818    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20819  *)
20820    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20821  esac
20822  case $ac_prog in
20823    # Accept absolute paths.
20824    [\\/]* | ?:[\\/]*)
20825      re_direlt='/[^/][^/]*/\.\./'
20826      # Canonicalize the pathname of ld
20827      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20828      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20829	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20830      done
20831      test -z "$LD" && LD="$ac_prog"
20832      ;;
20833  "")
20834    # If it fails, then pretend we aren't using GCC.
20835    ac_prog=ld
20836    ;;
20837  *)
20838    # If it is relative, then search for the first ld in PATH.
20839    with_gnu_ld=unknown
20840    ;;
20841  esac
20842elif test "$with_gnu_ld" = yes; then
20843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20844$as_echo_n "checking for GNU ld... " >&6; }
20845else
20846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20847$as_echo_n "checking for non-GNU ld... " >&6; }
20848fi
20849if ${lt_cv_path_LD+:} false; then :
20850  $as_echo_n "(cached) " >&6
20851else
20852  if test -z "$LD"; then
20853  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20854  for ac_dir in $PATH; do
20855    IFS="$lt_save_ifs"
20856    test -z "$ac_dir" && ac_dir=.
20857    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20858      lt_cv_path_LD="$ac_dir/$ac_prog"
20859      # Check to see if the program is GNU ld.  I'd rather use --version,
20860      # but apparently some variants of GNU ld only accept -v.
20861      # Break only if it was the GNU/non-GNU ld that we prefer.
20862      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20863      *GNU* | *'with BFD'*)
20864	test "$with_gnu_ld" != no && break
20865	;;
20866      *)
20867	test "$with_gnu_ld" != yes && break
20868	;;
20869      esac
20870    fi
20871  done
20872  IFS="$lt_save_ifs"
20873else
20874  lt_cv_path_LD="$LD" # Let the user override the test with a path.
20875fi
20876fi
20877
20878LD="$lt_cv_path_LD"
20879if test -n "$LD"; then
20880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20881$as_echo "$LD" >&6; }
20882else
20883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20884$as_echo "no" >&6; }
20885fi
20886test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20888$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20889if ${lt_cv_prog_gnu_ld+:} false; then :
20890  $as_echo_n "(cached) " >&6
20891else
20892  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20893case `$LD -v 2>&1 </dev/null` in
20894*GNU* | *'with BFD'*)
20895  lt_cv_prog_gnu_ld=yes
20896  ;;
20897*)
20898  lt_cv_prog_gnu_ld=no
20899  ;;
20900esac
20901fi
20902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20903$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20904with_gnu_ld=$lt_cv_prog_gnu_ld
20905
20906
20907
20908
20909
20910
20911
20912
20913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20914$as_echo_n "checking for directory path separator... " >&6; }
20915if ${ntp_cv_dir_sep+:} false; then :
20916  $as_echo_n "(cached) " >&6
20917else
20918
20919	case "$ntp_cv_dir_sep" in
20920	 '')
20921	    case "$host_os" in
20922	     *djgpp | *mingw32* | *emx*)
20923		ntp_cv_dir_sep="'\\'"
20924		;;
20925	     *)
20926		ntp_cv_dir_sep="'/'"
20927		;;
20928	    esac
20929	esac
20930
20931
20932fi
20933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20934$as_echo "$ntp_cv_dir_sep" >&6; }
20935
20936cat >>confdefs.h <<_ACEOF
20937#define DIR_SEP $ntp_cv_dir_sep
20938_ACEOF
20939
20940
20941
20942    NTP_ORIG_LIBS="$LIBS"
20943
20944# Check whether --with-lineeditlibs was given.
20945if test "${with_lineeditlibs+set}" = set; then :
20946  withval=$with_lineeditlibs; use_lineeditlibs="$withval"
20947else
20948  use_lineeditlibs="edit,editline"
20949
20950fi
20951
20952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
20953$as_echo_n "checking line editing libraries... " >&6; }
20954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
20955$as_echo "$use_lineeditlibs" >&6; }
20956    case "$use_lineeditlibs" in
20957     no)
20958	ntp_lib_lineedit=no
20959	;;
20960     *)
20961	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
20962	    for term_lib in "" termcap curses ncurses; do
20963		case "$term_lib" in
20964		 '')
20965		    TRY_LIB="-l$lineedit_lib"
20966		    ;;
20967		 *)
20968		    TRY_LIB="-l$lineedit_lib -l$term_lib"
20969		    ;;
20970		esac
20971		LIBS="$NTP_ORIG_LIBS $TRY_LIB"
20972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
20973$as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
20974		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975/* end confdefs.h.  */
20976
20977/* Override any GCC internal prototype to avoid an error.
20978   Use char because int might match the return type of a GCC
20979   builtin and then its argument prototype would still apply.  */
20980#ifdef __cplusplus
20981extern "C"
20982#endif
20983char readline ();
20984int
20985main ()
20986{
20987return readline ();
20988  ;
20989  return 0;
20990}
20991_ACEOF
20992if ac_fn_c_try_link "$LINENO"; then :
20993  ntp_lib_lineedit="$TRY_LIB"
20994fi
20995rm -f core conftest.err conftest.$ac_objext \
20996    conftest$ac_exeext conftest.$ac_ext
20997		case "$ntp_lib_lineedit" in
20998		 '')
20999		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21000$as_echo "no" >&6; }
21001		    ;;
21002		 *)
21003		    # Use readline()
21004		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21005$as_echo "yes" >&6; }
21006		    break
21007		esac
21008		case "$term_lib" in
21009		 '')
21010		    # do not try el_gets without a terminal library
21011		    ;;
21012		 *)
21013		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21014$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21015		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016/* end confdefs.h.  */
21017
21018/* Override any GCC internal prototype to avoid an error.
21019   Use char because int might match the return type of a GCC
21020   builtin and then its argument prototype would still apply.  */
21021#ifdef __cplusplus
21022extern "C"
21023#endif
21024char el_gets ();
21025int
21026main ()
21027{
21028return el_gets ();
21029  ;
21030  return 0;
21031}
21032_ACEOF
21033if ac_fn_c_try_link "$LINENO"; then :
21034  ntp_lib_lineedit="$TRY_LIB"
21035fi
21036rm -f core conftest.err conftest.$ac_objext \
21037    conftest$ac_exeext conftest.$ac_ext
21038		    case "$ntp_lib_lineedit" in
21039		     '')
21040			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21041$as_echo "no" >&6; }
21042			;;
21043		     *) # Use el_gets()
21044			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21045$as_echo "yes" >&6; }
21046			break
21047			;;
21048		    esac	# $ntp_lib_lineedit
21049		esac		# $term_lib
21050	    done
21051	    case "$ntp_lib_lineedit" in
21052	     '')
21053		;;
21054	     *)
21055		break
21056		;;
21057	    esac
21058	done
21059	LIBS="$NTP_ORIG_LIBS"
21060	;;
21061    esac	# $use_lineeditlibs
21062
21063    case "$ntp_lib_lineedit" in
21064     '')
21065	ntp_lib_lineedit="no"
21066	;;
21067     no)
21068	;;
21069     *)
21070	EDITLINE_LIBS="$ntp_lib_lineedit"
21071
21072	;;
21073    esac	# $ntp_lib_lineedit
21074
21075    case "$ntp_lib_lineedit" in
21076     no)
21077	;;
21078     *)
21079	for ac_header in readline.h readline/readline.h histedit.h
21080do :
21081  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21082ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21084  cat >>confdefs.h <<_ACEOF
21085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21086_ACEOF
21087
21088fi
21089
21090done
21091
21092	for ac_header in history.h readline/history.h
21093do :
21094  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21095ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21096if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21097  cat >>confdefs.h <<_ACEOF
21098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21099_ACEOF
21100
21101fi
21102
21103done
21104
21105
21106	case "$ac_cv_header_histedit_h" in
21107	 yes)
21108	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21109$as_echo_n "checking number of arguments to el_init()... " >&6; }
21110if ${ntp_cv_el_init_args+:} false; then :
21111  $as_echo_n "(cached) " >&6
21112else
21113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114/* end confdefs.h.  */
21115
21116			    #include <stdio.h>
21117			    #include <histedit.h>
21118
21119int
21120main ()
21121{
21122
21123			    el_init("conftest", stdin, stdout, stderr);
21124
21125
21126  ;
21127  return 0;
21128}
21129_ACEOF
21130if ac_fn_c_try_compile "$LINENO"; then :
21131  ntp_cv_el_init_args=4
21132else
21133  ntp_cv_el_init_args=3
21134
21135fi
21136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137
21138fi
21139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21140$as_echo "$ntp_cv_el_init_args" >&6; }
21141
21142cat >>confdefs.h <<_ACEOF
21143#define EL_INIT_ARGS $ntp_cv_el_init_args
21144_ACEOF
21145
21146	esac
21147
21148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21149$as_echo_n "checking whether readline supports history... " >&6; }
21150
21151	ntp_lib_lineedit_history="no"
21152	ORIG_LIBS="$LIBS"
21153	LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21154	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21155/* end confdefs.h.  */
21156
21157/* Override any GCC internal prototype to avoid an error.
21158   Use char because int might match the return type of a GCC
21159   builtin and then its argument prototype would still apply.  */
21160#ifdef __cplusplus
21161extern "C"
21162#endif
21163char add_history ();
21164int
21165main ()
21166{
21167return add_history ();
21168  ;
21169  return 0;
21170}
21171_ACEOF
21172if ac_fn_c_try_link "$LINENO"; then :
21173  ntp_lib_lineedit_history="yes"
21174fi
21175rm -f core conftest.err conftest.$ac_objext \
21176    conftest$ac_exeext conftest.$ac_ext
21177	LIBS="$ORIG_LIBS"
21178
21179	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21180$as_echo "$ntp_lib_lineedit_history" >&6; }
21181
21182	case "$ntp_lib_lineedit_history" in
21183	 yes)
21184
21185$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21186
21187	esac
21188    esac	# $ntp_lib_lineedit
21189    { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21190    { ORIG_LIBS=; unset ORIG_LIBS;}
21191    { TRY_LIB=; unset TRY_LIB;}
21192    { use_lineeditlibs=; unset use_lineeditlibs;}
21193
21194
21195LIBM=
21196case "$host" in
21197 *-*-darwin*)
21198    ;;
21199 *)
21200    _libs=$LIBS
21201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21202$as_echo_n "checking for library containing cos... " >&6; }
21203if ${ac_cv_search_cos+:} false; then :
21204  $as_echo_n "(cached) " >&6
21205else
21206  ac_func_search_save_LIBS=$LIBS
21207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208/* end confdefs.h.  */
21209
21210/* Override any GCC internal prototype to avoid an error.
21211   Use char because int might match the return type of a GCC
21212   builtin and then its argument prototype would still apply.  */
21213#ifdef __cplusplus
21214extern "C"
21215#endif
21216char cos ();
21217int
21218main ()
21219{
21220return cos ();
21221  ;
21222  return 0;
21223}
21224_ACEOF
21225for ac_lib in '' m; do
21226  if test -z "$ac_lib"; then
21227    ac_res="none required"
21228  else
21229    ac_res=-l$ac_lib
21230    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21231  fi
21232  if ac_fn_c_try_link "$LINENO"; then :
21233  ac_cv_search_cos=$ac_res
21234fi
21235rm -f core conftest.err conftest.$ac_objext \
21236    conftest$ac_exeext
21237  if ${ac_cv_search_cos+:} false; then :
21238  break
21239fi
21240done
21241if ${ac_cv_search_cos+:} false; then :
21242
21243else
21244  ac_cv_search_cos=no
21245fi
21246rm conftest.$ac_ext
21247LIBS=$ac_func_search_save_LIBS
21248fi
21249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21250$as_echo "$ac_cv_search_cos" >&6; }
21251ac_res=$ac_cv_search_cos
21252if test "$ac_res" != no; then :
21253  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21254  LIBM="-lm"
21255fi
21256
21257    LIBS=$_libs
21258    ;;
21259esac
21260
21261{ _libs=; unset _libs;}
21262
21263
21264for ac_header in vfork.h
21265do :
21266  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21267if test "x$ac_cv_header_vfork_h" = xyes; then :
21268  cat >>confdefs.h <<_ACEOF
21269#define HAVE_VFORK_H 1
21270_ACEOF
21271
21272fi
21273
21274done
21275
21276for ac_func in fork vfork
21277do :
21278  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21281  cat >>confdefs.h <<_ACEOF
21282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21283_ACEOF
21284
21285fi
21286done
21287
21288if test "x$ac_cv_func_fork" = xyes; then
21289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21290$as_echo_n "checking for working fork... " >&6; }
21291if ${ac_cv_func_fork_works+:} false; then :
21292  $as_echo_n "(cached) " >&6
21293else
21294  if test "$cross_compiling" = yes; then :
21295  ac_cv_func_fork_works=cross
21296else
21297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298/* end confdefs.h.  */
21299$ac_includes_default
21300int
21301main ()
21302{
21303
21304	  /* By Ruediger Kuhlmann. */
21305	  return fork () < 0;
21306
21307  ;
21308  return 0;
21309}
21310_ACEOF
21311if ac_fn_c_try_run "$LINENO"; then :
21312  ac_cv_func_fork_works=yes
21313else
21314  ac_cv_func_fork_works=no
21315fi
21316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21317  conftest.$ac_objext conftest.beam conftest.$ac_ext
21318fi
21319
21320fi
21321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21322$as_echo "$ac_cv_func_fork_works" >&6; }
21323
21324else
21325  ac_cv_func_fork_works=$ac_cv_func_fork
21326fi
21327if test "x$ac_cv_func_fork_works" = xcross; then
21328  case $host in
21329    *-*-amigaos* | *-*-msdosdjgpp*)
21330      # Override, as these systems have only a dummy fork() stub
21331      ac_cv_func_fork_works=no
21332      ;;
21333    *)
21334      ac_cv_func_fork_works=yes
21335      ;;
21336  esac
21337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21338$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21339fi
21340ac_cv_func_vfork_works=$ac_cv_func_vfork
21341if test "x$ac_cv_func_vfork" = xyes; then
21342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21343$as_echo_n "checking for working vfork... " >&6; }
21344if ${ac_cv_func_vfork_works+:} false; then :
21345  $as_echo_n "(cached) " >&6
21346else
21347  if test "$cross_compiling" = yes; then :
21348  ac_cv_func_vfork_works=cross
21349else
21350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351/* end confdefs.h.  */
21352/* Thanks to Paul Eggert for this test.  */
21353$ac_includes_default
21354#include <sys/wait.h>
21355#ifdef HAVE_VFORK_H
21356# include <vfork.h>
21357#endif
21358/* On some sparc systems, changes by the child to local and incoming
21359   argument registers are propagated back to the parent.  The compiler
21360   is told about this with #include <vfork.h>, but some compilers
21361   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21362   static variable whose address is put into a register that is
21363   clobbered by the vfork.  */
21364static void
21365#ifdef __cplusplus
21366sparc_address_test (int arg)
21367# else
21368sparc_address_test (arg) int arg;
21369#endif
21370{
21371  static pid_t child;
21372  if (!child) {
21373    child = vfork ();
21374    if (child < 0) {
21375      perror ("vfork");
21376      _exit(2);
21377    }
21378    if (!child) {
21379      arg = getpid();
21380      write(-1, "", 0);
21381      _exit (arg);
21382    }
21383  }
21384}
21385
21386int
21387main ()
21388{
21389  pid_t parent = getpid ();
21390  pid_t child;
21391
21392  sparc_address_test (0);
21393
21394  child = vfork ();
21395
21396  if (child == 0) {
21397    /* Here is another test for sparc vfork register problems.  This
21398       test uses lots of local variables, at least as many local
21399       variables as main has allocated so far including compiler
21400       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21401       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21402       reuse the register of parent for one of the local variables,
21403       since it will think that parent can't possibly be used any more
21404       in this routine.  Assigning to the local variable will thus
21405       munge parent in the parent process.  */
21406    pid_t
21407      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21408      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21409    /* Convince the compiler that p..p7 are live; otherwise, it might
21410       use the same hardware register for all 8 local variables.  */
21411    if (p != p1 || p != p2 || p != p3 || p != p4
21412	|| p != p5 || p != p6 || p != p7)
21413      _exit(1);
21414
21415    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21416       from child file descriptors.  If the child closes a descriptor
21417       before it execs or exits, this munges the parent's descriptor
21418       as well.  Test for this by closing stdout in the child.  */
21419    _exit(close(fileno(stdout)) != 0);
21420  } else {
21421    int status;
21422    struct stat st;
21423
21424    while (wait(&status) != child)
21425      ;
21426    return (
21427	 /* Was there some problem with vforking?  */
21428	 child < 0
21429
21430	 /* Did the child fail?  (This shouldn't happen.)  */
21431	 || status
21432
21433	 /* Did the vfork/compiler bug occur?  */
21434	 || parent != getpid()
21435
21436	 /* Did the file descriptor bug occur?  */
21437	 || fstat(fileno(stdout), &st) != 0
21438	 );
21439  }
21440}
21441_ACEOF
21442if ac_fn_c_try_run "$LINENO"; then :
21443  ac_cv_func_vfork_works=yes
21444else
21445  ac_cv_func_vfork_works=no
21446fi
21447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21448  conftest.$ac_objext conftest.beam conftest.$ac_ext
21449fi
21450
21451fi
21452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21453$as_echo "$ac_cv_func_vfork_works" >&6; }
21454
21455fi;
21456if test "x$ac_cv_func_fork_works" = xcross; then
21457  ac_cv_func_vfork_works=$ac_cv_func_vfork
21458  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21459$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21460fi
21461
21462if test "x$ac_cv_func_vfork_works" = xyes; then
21463
21464$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21465
21466else
21467
21468$as_echo "#define vfork fork" >>confdefs.h
21469
21470fi
21471if test "x$ac_cv_func_fork_works" = xyes; then
21472
21473$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21474
21475fi
21476
21477# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21478# for constant arguments.  Useless!
21479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21480$as_echo_n "checking for working alloca.h... " >&6; }
21481if ${ac_cv_working_alloca_h+:} false; then :
21482  $as_echo_n "(cached) " >&6
21483else
21484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485/* end confdefs.h.  */
21486#include <alloca.h>
21487int
21488main ()
21489{
21490char *p = (char *) alloca (2 * sizeof (int));
21491			  if (p) return 0;
21492  ;
21493  return 0;
21494}
21495_ACEOF
21496if ac_fn_c_try_link "$LINENO"; then :
21497  ac_cv_working_alloca_h=yes
21498else
21499  ac_cv_working_alloca_h=no
21500fi
21501rm -f core conftest.err conftest.$ac_objext \
21502    conftest$ac_exeext conftest.$ac_ext
21503fi
21504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21505$as_echo "$ac_cv_working_alloca_h" >&6; }
21506if test $ac_cv_working_alloca_h = yes; then
21507
21508$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21509
21510fi
21511
21512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21513$as_echo_n "checking for alloca... " >&6; }
21514if ${ac_cv_func_alloca_works+:} false; then :
21515  $as_echo_n "(cached) " >&6
21516else
21517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21518/* end confdefs.h.  */
21519#ifdef __GNUC__
21520# define alloca __builtin_alloca
21521#else
21522# ifdef _MSC_VER
21523#  include <malloc.h>
21524#  define alloca _alloca
21525# else
21526#  ifdef HAVE_ALLOCA_H
21527#   include <alloca.h>
21528#  else
21529#   ifdef _AIX
21530 #pragma alloca
21531#   else
21532#    ifndef alloca /* predefined by HP cc +Olibcalls */
21533void *alloca (size_t);
21534#    endif
21535#   endif
21536#  endif
21537# endif
21538#endif
21539
21540int
21541main ()
21542{
21543char *p = (char *) alloca (1);
21544				    if (p) return 0;
21545  ;
21546  return 0;
21547}
21548_ACEOF
21549if ac_fn_c_try_link "$LINENO"; then :
21550  ac_cv_func_alloca_works=yes
21551else
21552  ac_cv_func_alloca_works=no
21553fi
21554rm -f core conftest.err conftest.$ac_objext \
21555    conftest$ac_exeext conftest.$ac_ext
21556fi
21557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21558$as_echo "$ac_cv_func_alloca_works" >&6; }
21559
21560if test $ac_cv_func_alloca_works = yes; then
21561
21562$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21563
21564else
21565  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21566# that cause trouble.  Some versions do not even contain alloca or
21567# contain a buggy version.  If you still want to use their alloca,
21568# use ar to extract alloca.o from them instead of compiling alloca.c.
21569
21570ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21571
21572$as_echo "#define C_ALLOCA 1" >>confdefs.h
21573
21574
21575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21576$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21577if ${ac_cv_os_cray+:} false; then :
21578  $as_echo_n "(cached) " >&6
21579else
21580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581/* end confdefs.h.  */
21582#if defined CRAY && ! defined CRAY2
21583webecray
21584#else
21585wenotbecray
21586#endif
21587
21588_ACEOF
21589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21590  $EGREP "webecray" >/dev/null 2>&1; then :
21591  ac_cv_os_cray=yes
21592else
21593  ac_cv_os_cray=no
21594fi
21595rm -f conftest*
21596
21597fi
21598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21599$as_echo "$ac_cv_os_cray" >&6; }
21600if test $ac_cv_os_cray = yes; then
21601  for ac_func in _getb67 GETB67 getb67; do
21602    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21603ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21604if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21605
21606cat >>confdefs.h <<_ACEOF
21607#define CRAY_STACKSEG_END $ac_func
21608_ACEOF
21609
21610    break
21611fi
21612
21613  done
21614fi
21615
21616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21617$as_echo_n "checking stack direction for C alloca... " >&6; }
21618if ${ac_cv_c_stack_direction+:} false; then :
21619  $as_echo_n "(cached) " >&6
21620else
21621  if test "$cross_compiling" = yes; then :
21622  ac_cv_c_stack_direction=0
21623else
21624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21625/* end confdefs.h.  */
21626$ac_includes_default
21627int
21628find_stack_direction (int *addr, int depth)
21629{
21630  int dir, dummy = 0;
21631  if (! addr)
21632    addr = &dummy;
21633  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21634  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21635  return dir + dummy;
21636}
21637
21638int
21639main (int argc, char **argv)
21640{
21641  return find_stack_direction (0, argc + !argv + 20) < 0;
21642}
21643_ACEOF
21644if ac_fn_c_try_run "$LINENO"; then :
21645  ac_cv_c_stack_direction=1
21646else
21647  ac_cv_c_stack_direction=-1
21648fi
21649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21650  conftest.$ac_objext conftest.beam conftest.$ac_ext
21651fi
21652
21653fi
21654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21655$as_echo "$ac_cv_c_stack_direction" >&6; }
21656cat >>confdefs.h <<_ACEOF
21657#define STACK_DIRECTION $ac_cv_c_stack_direction
21658_ACEOF
21659
21660
21661fi
21662
21663ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21664if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21665  ac_have_decl=1
21666else
21667  ac_have_decl=0
21668fi
21669
21670cat >>confdefs.h <<_ACEOF
21671#define HAVE_DECL_STRERROR_R $ac_have_decl
21672_ACEOF
21673
21674for ac_func in strerror_r
21675do :
21676  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21677if test "x$ac_cv_func_strerror_r" = xyes; then :
21678  cat >>confdefs.h <<_ACEOF
21679#define HAVE_STRERROR_R 1
21680_ACEOF
21681
21682fi
21683done
21684
21685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21686$as_echo_n "checking whether strerror_r returns char *... " >&6; }
21687if ${ac_cv_func_strerror_r_char_p+:} false; then :
21688  $as_echo_n "(cached) " >&6
21689else
21690
21691    ac_cv_func_strerror_r_char_p=no
21692    if test $ac_cv_have_decl_strerror_r = yes; then
21693      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21694/* end confdefs.h.  */
21695$ac_includes_default
21696int
21697main ()
21698{
21699
21700	  char buf[100];
21701	  char x = *strerror_r (0, buf, sizeof buf);
21702	  char *p = strerror_r (0, buf, sizeof buf);
21703	  return !p || x;
21704
21705  ;
21706  return 0;
21707}
21708_ACEOF
21709if ac_fn_c_try_compile "$LINENO"; then :
21710  ac_cv_func_strerror_r_char_p=yes
21711fi
21712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713    else
21714      # strerror_r is not declared.  Choose between
21715      # systems that have relatively inaccessible declarations for the
21716      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21717      # former has a strerror_r that returns char*, while the latter
21718      # has a strerror_r that returns `int'.
21719      # This test should segfault on the DEC system.
21720      if test "$cross_compiling" = yes; then :
21721  :
21722else
21723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724/* end confdefs.h.  */
21725$ac_includes_default
21726	extern char *strerror_r ();
21727int
21728main ()
21729{
21730char buf[100];
21731	  char x = *strerror_r (0, buf, sizeof buf);
21732	  return ! isalpha (x);
21733  ;
21734  return 0;
21735}
21736_ACEOF
21737if ac_fn_c_try_run "$LINENO"; then :
21738  ac_cv_func_strerror_r_char_p=yes
21739fi
21740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21741  conftest.$ac_objext conftest.beam conftest.$ac_ext
21742fi
21743
21744    fi
21745
21746fi
21747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21748$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21749if test $ac_cv_func_strerror_r_char_p = yes; then
21750
21751$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21752
21753fi
21754
21755
21756ac_busted_vpath_in_make=no
21757case "$build" in
21758 *-*-irix6.1*)	# 64 bit only
21759    # busted vpath?
21760    ;;
21761 *-*-irix6*)	# 6.2 (and later?)
21762    ac_busted_vpath_in_make=yes
21763    ;;
21764 *-*-solaris2.5.1)
21765    ac_busted_vpath_in_make=yes
21766    ;;
21767 *-*-unicosmp*)
21768    ac_busted_vpath_in_make=yes
21769    ;;
21770esac
21771
21772case "$ac_busted_vpath_in_make$srcdir" in
21773 yes.|no*)
21774    ;;
21775 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21776     '')
21777	as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21778    esac
21779    ;;
21780esac
21781
21782case "$host" in
21783 *-*-aix4*)
21784	# Bug 2516:
21785	# Was *-*-aix[[4-9]]*
21786	# XXX only verified thru AIX6.  But...
21787	# Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21788	# that this support would be in 5.3, removed in 6, and added back.
21789	#
21790	# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21791	# (returning ENOSYS).  I didn't check 4.2.  If, in the future,
21792	# IBM pulls its thumbs out long enough to implement clock_settime,
21793	# this conditional will need to change.  Maybe use AC_TRY_RUN
21794	# instead to try to set the time to itself and check errno.
21795    ;;
21796 *)
21797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21798$as_echo_n "checking for library containing clock_gettime... " >&6; }
21799if ${ac_cv_search_clock_gettime+:} false; then :
21800  $as_echo_n "(cached) " >&6
21801else
21802  ac_func_search_save_LIBS=$LIBS
21803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804/* end confdefs.h.  */
21805
21806/* Override any GCC internal prototype to avoid an error.
21807   Use char because int might match the return type of a GCC
21808   builtin and then its argument prototype would still apply.  */
21809#ifdef __cplusplus
21810extern "C"
21811#endif
21812char clock_gettime ();
21813int
21814main ()
21815{
21816return clock_gettime ();
21817  ;
21818  return 0;
21819}
21820_ACEOF
21821for ac_lib in '' rt; do
21822  if test -z "$ac_lib"; then
21823    ac_res="none required"
21824  else
21825    ac_res=-l$ac_lib
21826    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21827  fi
21828  if ac_fn_c_try_link "$LINENO"; then :
21829  ac_cv_search_clock_gettime=$ac_res
21830fi
21831rm -f core conftest.err conftest.$ac_objext \
21832    conftest$ac_exeext
21833  if ${ac_cv_search_clock_gettime+:} false; then :
21834  break
21835fi
21836done
21837if ${ac_cv_search_clock_gettime+:} false; then :
21838
21839else
21840  ac_cv_search_clock_gettime=no
21841fi
21842rm conftest.$ac_ext
21843LIBS=$ac_func_search_save_LIBS
21844fi
21845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21846$as_echo "$ac_cv_search_clock_gettime" >&6; }
21847ac_res=$ac_cv_search_clock_gettime
21848if test "$ac_res" != no; then :
21849  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21850  case "$ac_cv_search_clock_gettime" in
21851 'none required') ;;
21852 no) ;;
21853 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21854 esac
21855
21856fi
21857
21858    for ac_func in clock_getres clock_gettime clock_settime
21859do :
21860  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21862if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21863  cat >>confdefs.h <<_ACEOF
21864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21865_ACEOF
21866
21867fi
21868done
21869
21870    ;;
21871esac
21872
21873for ac_func in getclock stime timegm strlcpy strlcat
21874do :
21875  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21876ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21877if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21878  cat >>confdefs.h <<_ACEOF
21879#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21880_ACEOF
21881
21882fi
21883done
21884
21885
21886# Bug 2713
21887LDADD_LIBUTIL=
21888
21889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21890$as_echo_n "checking for library containing snprintb... " >&6; }
21891if ${ac_cv_search_snprintb+:} false; then :
21892  $as_echo_n "(cached) " >&6
21893else
21894  ac_func_search_save_LIBS=$LIBS
21895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896/* end confdefs.h.  */
21897
21898/* Override any GCC internal prototype to avoid an error.
21899   Use char because int might match the return type of a GCC
21900   builtin and then its argument prototype would still apply.  */
21901#ifdef __cplusplus
21902extern "C"
21903#endif
21904char snprintb ();
21905int
21906main ()
21907{
21908return snprintb ();
21909  ;
21910  return 0;
21911}
21912_ACEOF
21913for ac_lib in '' util; do
21914  if test -z "$ac_lib"; then
21915    ac_res="none required"
21916  else
21917    ac_res=-l$ac_lib
21918    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21919  fi
21920  if ac_fn_c_try_link "$LINENO"; then :
21921  ac_cv_search_snprintb=$ac_res
21922fi
21923rm -f core conftest.err conftest.$ac_objext \
21924    conftest$ac_exeext
21925  if ${ac_cv_search_snprintb+:} false; then :
21926  break
21927fi
21928done
21929if ${ac_cv_search_snprintb+:} false; then :
21930
21931else
21932  ac_cv_search_snprintb=no
21933fi
21934rm conftest.$ac_ext
21935LIBS=$ac_func_search_save_LIBS
21936fi
21937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21938$as_echo "$ac_cv_search_snprintb" >&6; }
21939ac_res=$ac_cv_search_snprintb
21940if test "$ac_res" != no; then :
21941  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21942  case "$ac_cv_search_snprintb" in
21943 'none required') ;;
21944 no) ;;
21945 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
21946 esac
21947
21948$as_echo "#define USE_SNPRINTB 1" >>confdefs.h
21949
21950fi
21951
21952
21953#
21954for ac_header in errno.h sys/socket.h sys/types.h time.h
21955do :
21956  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21957ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21958if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21959  cat >>confdefs.h <<_ACEOF
21960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21961_ACEOF
21962
21963fi
21964
21965done
21966
21967for ac_header in net/if.h
21968do :
21969  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21970    #ifdef HAVE_SYS_SOCKET_H
21971    # include <sys/socket.h>
21972    #endif
21973
21974"
21975if test "x$ac_cv_header_net_if_h" = xyes; then :
21976  cat >>confdefs.h <<_ACEOF
21977#define HAVE_NET_IF_H 1
21978_ACEOF
21979
21980fi
21981
21982done
21983
21984case "$host" in
21985 *-hp-hpux*)
21986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
21987$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
21988if ${ntp_cv_predecl_mpinfou+:} false; then :
21989  $as_echo_n "(cached) " >&6
21990else
21991
21992	    np_cv_predecl_mpinfou=no
21993	    case "$ac_cv_header_net_if_h" in
21994	     no)
21995		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996/* end confdefs.h.  */
21997
21998			    typedef union mpinfou {
21999				    struct pdk_mpinfo *pdkptr;
22000				    struct mpinfo *pikptr;
22001			    } mpinfou_t;
22002			    #ifdef HAVE_SYS_SOCKET_H
22003			    # include <sys/socket.h>
22004			    #endif
22005			    #include <net/if.h>
22006
22007int
22008main ()
22009{
22010
22011
22012
22013  ;
22014  return 0;
22015}
22016_ACEOF
22017if ac_fn_c_try_compile "$LINENO"; then :
22018
22019			ntp_cv_predecl_mpinfou=yes
22020			ac_cv_header_net_if_h=yes
22021
22022
22023fi
22024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025	    esac
22026
22027
22028fi
22029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22030$as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22031    case "$ntp_cv_predecl_mpinfou" in
22032     yes)
22033	cat >>confdefs.h <<_ACEOF
22034#ifndef MPINFOU_PREDECLARED
22035# define MPINFOU_PREDECLARED
22036typedef union mpinfou {
22037	struct pdk_mpinfo *pdkptr;
22038	struct mpinfo *pikptr;
22039} mpinfou_t;
22040#endif
22041_ACEOF
22042
22043    esac
22044esac
22045
22046case "$host" in
22047 *-linux*)
22048    for ac_header in linux/if_addr.h
22049do :
22050  ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22051	#ifdef HAVE_SYS_SOCKET_H
22052	# include <sys/socket.h>
22053	#endif
22054
22055"
22056if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22057  cat >>confdefs.h <<_ACEOF
22058#define HAVE_LINUX_IF_ADDR_H 1
22059_ACEOF
22060
22061fi
22062
22063done
22064
22065esac
22066
22067for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22068do :
22069  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22070ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22071if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22072  cat >>confdefs.h <<_ACEOF
22073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22074_ACEOF
22075
22076fi
22077
22078done
22079
22080# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22081for ac_header in sys/sysctl.h
22082do :
22083  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22084    #if defined HAVE_SYS_PARAM_H
22085    # include <sys/param.h>
22086    #endif
22087
22088"
22089if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22090  cat >>confdefs.h <<_ACEOF
22091#define HAVE_SYS_SYSCTL_H 1
22092_ACEOF
22093
22094fi
22095
22096done
22097
22098for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22099do :
22100  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22101ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22102if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22103  cat >>confdefs.h <<_ACEOF
22104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22105_ACEOF
22106
22107fi
22108
22109done
22110
22111
22112for ac_header in resolv.h
22113do :
22114  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22115    #ifdef HAVE_SYS_TYPES_H
22116    # include <sys/types.h>
22117    #endif
22118    #ifdef HAVE_NETINET_IN_H
22119    # include <netinet/in.h>
22120    #endif
22121    #ifdef HAVE_ARPA_NAMESER_H
22122    # include <arpa/nameser.h>
22123    #endif
22124
22125"
22126if test "x$ac_cv_header_resolv_h" = xyes; then :
22127  cat >>confdefs.h <<_ACEOF
22128#define HAVE_RESOLV_H 1
22129_ACEOF
22130
22131fi
22132
22133done
22134
22135
22136for ac_header in net/if_var.h
22137do :
22138  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22139    #if HAVE_SYS_TYPES_H
22140    # include <sys/types.h>
22141    #endif
22142    #ifdef HAVE_SYS_SOCKET_H
22143    # include <sys/socket.h>
22144    #endif
22145    #ifdef HAVE_NETINET_IN_H
22146    # include <netinet/in.h>
22147    #endif
22148    #ifdef HAVE_NET_IF_H
22149    # include <net/if.h>
22150    #endif
22151
22152"
22153if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22154  cat >>confdefs.h <<_ACEOF
22155#define HAVE_NET_IF_VAR_H 1
22156_ACEOF
22157
22158fi
22159
22160done
22161
22162
22163for ac_header in netinet/ip.h netinet/in_var.h
22164do :
22165  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22166ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22167    #ifdef HAVE_SYS_TYPES_H
22168    # include <sys/types.h>
22169    #endif
22170    #ifdef HAVE_SYS_SOCKET_H
22171    # include <sys/socket.h>
22172    #endif
22173    #ifdef HAVE_NET_IF_H
22174    # include <net/if.h>
22175    #endif
22176    #ifdef HAVE_NETINET_IN_H
22177    # include <netinet/in.h>
22178    #endif
22179    #ifdef HAVE_NET_IF_VAR_H
22180    # include <net/if_var.h>
22181    #endif
22182    #ifdef HAVE_NETINET_IN_SYSTM_H
22183    # include <netinet/in_systm.h>
22184    #endif
22185
22186"
22187if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22188  cat >>confdefs.h <<_ACEOF
22189#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22190_ACEOF
22191
22192fi
22193
22194done
22195
22196
22197# HMS: Do we need to check for -lsocket before or after these tests?
22198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22199$as_echo_n "checking for library containing inet_pton... " >&6; }
22200if ${ac_cv_search_inet_pton+:} false; then :
22201  $as_echo_n "(cached) " >&6
22202else
22203  ac_func_search_save_LIBS=$LIBS
22204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22205/* end confdefs.h.  */
22206
22207/* Override any GCC internal prototype to avoid an error.
22208   Use char because int might match the return type of a GCC
22209   builtin and then its argument prototype would still apply.  */
22210#ifdef __cplusplus
22211extern "C"
22212#endif
22213char inet_pton ();
22214int
22215main ()
22216{
22217return inet_pton ();
22218  ;
22219  return 0;
22220}
22221_ACEOF
22222for ac_lib in '' nsl; do
22223  if test -z "$ac_lib"; then
22224    ac_res="none required"
22225  else
22226    ac_res=-l$ac_lib
22227    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22228  fi
22229  if ac_fn_c_try_link "$LINENO"; then :
22230  ac_cv_search_inet_pton=$ac_res
22231fi
22232rm -f core conftest.err conftest.$ac_objext \
22233    conftest$ac_exeext
22234  if ${ac_cv_search_inet_pton+:} false; then :
22235  break
22236fi
22237done
22238if ${ac_cv_search_inet_pton+:} false; then :
22239
22240else
22241  ac_cv_search_inet_pton=no
22242fi
22243rm conftest.$ac_ext
22244LIBS=$ac_func_search_save_LIBS
22245fi
22246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22247$as_echo "$ac_cv_search_inet_pton" >&6; }
22248ac_res=$ac_cv_search_inet_pton
22249if test "$ac_res" != no; then :
22250  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22251  case "$ac_cv_search_inet_pton" in
22252 'none required') ;;
22253 no) ;;
22254 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22255 esac
22256
22257fi
22258
22259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22260$as_echo_n "checking for library containing inet_ntop... " >&6; }
22261if ${ac_cv_search_inet_ntop+:} false; then :
22262  $as_echo_n "(cached) " >&6
22263else
22264  ac_func_search_save_LIBS=$LIBS
22265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266/* end confdefs.h.  */
22267
22268/* Override any GCC internal prototype to avoid an error.
22269   Use char because int might match the return type of a GCC
22270   builtin and then its argument prototype would still apply.  */
22271#ifdef __cplusplus
22272extern "C"
22273#endif
22274char inet_ntop ();
22275int
22276main ()
22277{
22278return inet_ntop ();
22279  ;
22280  return 0;
22281}
22282_ACEOF
22283for ac_lib in '' resolv; do
22284  if test -z "$ac_lib"; then
22285    ac_res="none required"
22286  else
22287    ac_res=-l$ac_lib
22288    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22289  fi
22290  if ac_fn_c_try_link "$LINENO"; then :
22291  ac_cv_search_inet_ntop=$ac_res
22292fi
22293rm -f core conftest.err conftest.$ac_objext \
22294    conftest$ac_exeext
22295  if ${ac_cv_search_inet_ntop+:} false; then :
22296  break
22297fi
22298done
22299if ${ac_cv_search_inet_ntop+:} false; then :
22300
22301else
22302  ac_cv_search_inet_ntop=no
22303fi
22304rm conftest.$ac_ext
22305LIBS=$ac_func_search_save_LIBS
22306fi
22307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22308$as_echo "$ac_cv_search_inet_ntop" >&6; }
22309ac_res=$ac_cv_search_inet_ntop
22310if test "$ac_res" != no; then :
22311  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22312  case "$ac_cv_search_inet_ntop" in
22313 'none required') ;;
22314 no) ;;
22315 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22316 esac
22317
22318fi
22319
22320
22321# [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
22322# avoid keying on the OS name:  If we find socket functions in
22323# libsocket, next try for them in libxnet without libsocket, if found,
22324# list both.  If we simply tested libxnet first, we would find the
22325# functions there and never add libsocket.  See also [Bug 660]
22326# http://bugs.ntp.org/show_bug.cgi?id=660#c9
22327saved_LIBS=$LIBS
22328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22329$as_echo_n "checking for library containing setsockopt... " >&6; }
22330if ${ac_cv_search_setsockopt+:} false; then :
22331  $as_echo_n "(cached) " >&6
22332else
22333  ac_func_search_save_LIBS=$LIBS
22334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335/* end confdefs.h.  */
22336
22337/* Override any GCC internal prototype to avoid an error.
22338   Use char because int might match the return type of a GCC
22339   builtin and then its argument prototype would still apply.  */
22340#ifdef __cplusplus
22341extern "C"
22342#endif
22343char setsockopt ();
22344int
22345main ()
22346{
22347return setsockopt ();
22348  ;
22349  return 0;
22350}
22351_ACEOF
22352for ac_lib in '' socket; do
22353  if test -z "$ac_lib"; then
22354    ac_res="none required"
22355  else
22356    ac_res=-l$ac_lib
22357    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22358  fi
22359  if ac_fn_c_try_link "$LINENO"; then :
22360  ac_cv_search_setsockopt=$ac_res
22361fi
22362rm -f core conftest.err conftest.$ac_objext \
22363    conftest$ac_exeext
22364  if ${ac_cv_search_setsockopt+:} false; then :
22365  break
22366fi
22367done
22368if ${ac_cv_search_setsockopt+:} false; then :
22369
22370else
22371  ac_cv_search_setsockopt=no
22372fi
22373rm conftest.$ac_ext
22374LIBS=$ac_func_search_save_LIBS
22375fi
22376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22377$as_echo "$ac_cv_search_setsockopt" >&6; }
22378ac_res=$ac_cv_search_setsockopt
22379if test "$ac_res" != no; then :
22380  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22381  case "$ac_cv_search_setsockopt" in
22382 'none required') ;;
22383 no) ;;
22384 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22385 esac
22386
22387fi
22388
22389case "$ac_cv_search_setsockopt" in
22390 -lsocket)
22391    LIBS="$saved_LIBS"
22392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22393$as_echo_n "checking for library containing getsockopt... " >&6; }
22394if ${ac_cv_search_getsockopt+:} false; then :
22395  $as_echo_n "(cached) " >&6
22396else
22397  ac_func_search_save_LIBS=$LIBS
22398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399/* end confdefs.h.  */
22400
22401/* Override any GCC internal prototype to avoid an error.
22402   Use char because int might match the return type of a GCC
22403   builtin and then its argument prototype would still apply.  */
22404#ifdef __cplusplus
22405extern "C"
22406#endif
22407char getsockopt ();
22408int
22409main ()
22410{
22411return getsockopt ();
22412  ;
22413  return 0;
22414}
22415_ACEOF
22416for ac_lib in '' xnet; do
22417  if test -z "$ac_lib"; then
22418    ac_res="none required"
22419  else
22420    ac_res=-l$ac_lib
22421    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22422  fi
22423  if ac_fn_c_try_link "$LINENO"; then :
22424  ac_cv_search_getsockopt=$ac_res
22425fi
22426rm -f core conftest.err conftest.$ac_objext \
22427    conftest$ac_exeext
22428  if ${ac_cv_search_getsockopt+:} false; then :
22429  break
22430fi
22431done
22432if ${ac_cv_search_getsockopt+:} false; then :
22433
22434else
22435  ac_cv_search_getsockopt=no
22436fi
22437rm conftest.$ac_ext
22438LIBS=$ac_func_search_save_LIBS
22439fi
22440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22441$as_echo "$ac_cv_search_getsockopt" >&6; }
22442ac_res=$ac_cv_search_getsockopt
22443if test "$ac_res" != no; then :
22444  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22445  case "$ac_cv_search_getsockopt" in
22446 'none required') ;;
22447 no) ;;
22448 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22449 esac
22450
22451fi
22452
22453    # XXX Possible trouble here - reading the comments above and looking at the
22454    # code below I wonder if we'll add -lxnet when we don't need it.
22455    # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22456    # there when it is not needed?
22457    case "$ac_cv_search_getsockopt" in
22458     -lxnet)
22459	LIBS="-lxnet -lsocket $saved_LIBS"
22460	;;
22461     *) LIBS="-lsocket $saved_LIBS"
22462	;;
22463    esac
22464    ;;
22465esac
22466{ saved_LIBS=; unset saved_LIBS;}
22467
22468# Bug 2427 - look for recvmsg here.
22469for ac_func in recvmsg
22470do :
22471  ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22472if test "x$ac_cv_func_recvmsg" = xyes; then :
22473  cat >>confdefs.h <<_ACEOF
22474#define HAVE_RECVMSG 1
22475_ACEOF
22476
22477fi
22478done
22479
22480
22481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22482$as_echo_n "checking for inline... " >&6; }
22483if ${ac_cv_c_inline+:} false; then :
22484  $as_echo_n "(cached) " >&6
22485else
22486  ac_cv_c_inline=no
22487for ac_kw in inline __inline__ __inline; do
22488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489/* end confdefs.h.  */
22490#ifndef __cplusplus
22491typedef int foo_t;
22492static $ac_kw foo_t static_foo () {return 0; }
22493$ac_kw foo_t foo () {return 0; }
22494#endif
22495
22496_ACEOF
22497if ac_fn_c_try_compile "$LINENO"; then :
22498  ac_cv_c_inline=$ac_kw
22499fi
22500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501  test "$ac_cv_c_inline" != no && break
22502done
22503
22504fi
22505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22506$as_echo "$ac_cv_c_inline" >&6; }
22507
22508case $ac_cv_c_inline in
22509  inline | yes) ;;
22510  *)
22511    case $ac_cv_c_inline in
22512      no) ac_val=;;
22513      *) ac_val=$ac_cv_c_inline;;
22514    esac
22515    cat >>confdefs.h <<_ACEOF
22516#ifndef __cplusplus
22517#define inline $ac_val
22518#endif
22519_ACEOF
22520    ;;
22521esac
22522
22523
22524case "$ac_cv_c_inline" in
22525 '')
22526    ;;
22527 *)
22528
22529$as_echo "#define HAVE_INLINE 1" >>confdefs.h
22530
22531
22532esac
22533
22534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22535$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22536if ${ac_cv_header_time+:} false; then :
22537  $as_echo_n "(cached) " >&6
22538else
22539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540/* end confdefs.h.  */
22541#include <sys/types.h>
22542#include <sys/time.h>
22543#include <time.h>
22544
22545int
22546main ()
22547{
22548if ((struct tm *) 0)
22549return 0;
22550  ;
22551  return 0;
22552}
22553_ACEOF
22554if ac_fn_c_try_compile "$LINENO"; then :
22555  ac_cv_header_time=yes
22556else
22557  ac_cv_header_time=no
22558fi
22559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560fi
22561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22562$as_echo "$ac_cv_header_time" >&6; }
22563if test $ac_cv_header_time = yes; then
22564
22565$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22566
22567fi
22568
22569# The cast to long int works around a bug in the HP C Compiler
22570# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22571# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22572# This bug is HP SR number 8606223364.
22573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22574$as_echo_n "checking size of time_t... " >&6; }
22575if ${ac_cv_sizeof_time_t+:} false; then :
22576  $as_echo_n "(cached) " >&6
22577else
22578  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22579
22580else
22581  if test "$ac_cv_type_time_t" = yes; then
22582     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22584as_fn_error 77 "cannot compute sizeof (time_t)
22585See \`config.log' for more details" "$LINENO" 5; }
22586   else
22587     ac_cv_sizeof_time_t=0
22588   fi
22589fi
22590
22591fi
22592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22593$as_echo "$ac_cv_sizeof_time_t" >&6; }
22594
22595
22596
22597cat >>confdefs.h <<_ACEOF
22598#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22599_ACEOF
22600
22601
22602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22603$as_echo_n "checking whether char is unsigned... " >&6; }
22604if ${ac_cv_c_char_unsigned+:} false; then :
22605  $as_echo_n "(cached) " >&6
22606else
22607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608/* end confdefs.h.  */
22609$ac_includes_default
22610int
22611main ()
22612{
22613static int test_array [1 - 2 * !(((char) -1) < 0)];
22614test_array [0] = 0;
22615return test_array [0];
22616
22617  ;
22618  return 0;
22619}
22620_ACEOF
22621if ac_fn_c_try_compile "$LINENO"; then :
22622  ac_cv_c_char_unsigned=no
22623else
22624  ac_cv_c_char_unsigned=yes
22625fi
22626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627fi
22628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22629$as_echo "$ac_cv_c_char_unsigned" >&6; }
22630if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22631  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22632
22633fi
22634		# The cast to long int works around a bug in the HP C Compiler
22635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22637# This bug is HP SR number 8606223364.
22638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22639$as_echo_n "checking size of signed char... " >&6; }
22640if ${ac_cv_sizeof_signed_char+:} false; then :
22641  $as_echo_n "(cached) " >&6
22642else
22643  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
22644
22645else
22646  if test "$ac_cv_type_signed_char" = yes; then
22647     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22649as_fn_error 77 "cannot compute sizeof (signed char)
22650See \`config.log' for more details" "$LINENO" 5; }
22651   else
22652     ac_cv_sizeof_signed_char=0
22653   fi
22654fi
22655
22656fi
22657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22658$as_echo "$ac_cv_sizeof_signed_char" >&6; }
22659
22660
22661
22662cat >>confdefs.h <<_ACEOF
22663#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22664_ACEOF
22665
22666
22667ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22668if test "x$ac_cv_type_s_char" = xyes; then :
22669
22670cat >>confdefs.h <<_ACEOF
22671#define HAVE_S_CHAR 1
22672_ACEOF
22673
22674
22675fi
22676ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22677if test "x$ac_cv_type_long_long" = xyes; then :
22678
22679cat >>confdefs.h <<_ACEOF
22680#define HAVE_LONG_LONG 1
22681_ACEOF
22682
22683
22684fi
22685
22686# The cast to long int works around a bug in the HP C Compiler
22687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22689# This bug is HP SR number 8606223364.
22690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22691$as_echo_n "checking size of short... " >&6; }
22692if ${ac_cv_sizeof_short+:} false; then :
22693  $as_echo_n "(cached) " >&6
22694else
22695  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
22696
22697else
22698  if test "$ac_cv_type_short" = yes; then
22699     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22701as_fn_error 77 "cannot compute sizeof (short)
22702See \`config.log' for more details" "$LINENO" 5; }
22703   else
22704     ac_cv_sizeof_short=0
22705   fi
22706fi
22707
22708fi
22709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22710$as_echo "$ac_cv_sizeof_short" >&6; }
22711
22712
22713
22714cat >>confdefs.h <<_ACEOF
22715#define SIZEOF_SHORT $ac_cv_sizeof_short
22716_ACEOF
22717
22718
22719# The cast to long int works around a bug in the HP C Compiler
22720# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22721# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22722# This bug is HP SR number 8606223364.
22723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22724$as_echo_n "checking size of int... " >&6; }
22725if ${ac_cv_sizeof_int+:} false; then :
22726  $as_echo_n "(cached) " >&6
22727else
22728  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
22729
22730else
22731  if test "$ac_cv_type_int" = yes; then
22732     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22734as_fn_error 77 "cannot compute sizeof (int)
22735See \`config.log' for more details" "$LINENO" 5; }
22736   else
22737     ac_cv_sizeof_int=0
22738   fi
22739fi
22740
22741fi
22742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22743$as_echo "$ac_cv_sizeof_int" >&6; }
22744
22745
22746
22747cat >>confdefs.h <<_ACEOF
22748#define SIZEOF_INT $ac_cv_sizeof_int
22749_ACEOF
22750
22751
22752# The cast to long int works around a bug in the HP C Compiler
22753# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22754# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22755# This bug is HP SR number 8606223364.
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22757$as_echo_n "checking size of long... " >&6; }
22758if ${ac_cv_sizeof_long+:} false; then :
22759  $as_echo_n "(cached) " >&6
22760else
22761  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
22762
22763else
22764  if test "$ac_cv_type_long" = yes; then
22765     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22767as_fn_error 77 "cannot compute sizeof (long)
22768See \`config.log' for more details" "$LINENO" 5; }
22769   else
22770     ac_cv_sizeof_long=0
22771   fi
22772fi
22773
22774fi
22775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22776$as_echo "$ac_cv_sizeof_long" >&6; }
22777
22778
22779
22780cat >>confdefs.h <<_ACEOF
22781#define SIZEOF_LONG $ac_cv_sizeof_long
22782_ACEOF
22783
22784
22785
22786case "$ac_cv_type_long_long" in
22787 no)
22788    ;;
22789 *)
22790    # The cast to long int works around a bug in the HP C Compiler
22791# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22792# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22793# This bug is HP SR number 8606223364.
22794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22795$as_echo_n "checking size of long long... " >&6; }
22796if ${ac_cv_sizeof_long_long+:} false; then :
22797  $as_echo_n "(cached) " >&6
22798else
22799  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
22800
22801else
22802  if test "$ac_cv_type_long_long" = yes; then
22803     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22805as_fn_error 77 "cannot compute sizeof (long long)
22806See \`config.log' for more details" "$LINENO" 5; }
22807   else
22808     ac_cv_sizeof_long_long=0
22809   fi
22810fi
22811
22812fi
22813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22814$as_echo "$ac_cv_sizeof_long_long" >&6; }
22815
22816
22817
22818cat >>confdefs.h <<_ACEOF
22819#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22820_ACEOF
22821
22822
22823    ;;
22824esac
22825
22826case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22827 *yes)
22828    # We have a typedef for s_char.  Might as well believe it...
22829    ;;
22830 no0no)
22831    # We have signed chars, can't say 'signed char', no s_char typedef.
22832
22833$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22834
22835    ;;
22836 no1no)
22837    # We have signed chars, can say 'signed char', no s_char typedef.
22838
22839$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22840
22841    ;;
22842 yes0no)
22843    # We have unsigned chars, can't say 'signed char', no s_char typedef.
22844    as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22845    ;;
22846 yes1no)
22847    # We have unsigned chars, can say 'signed char', no s_char typedef.
22848
22849$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22850
22851    ;;
22852esac
22853
22854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22855$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22856if ${ac_cv_type_uid_t+:} false; then :
22857  $as_echo_n "(cached) " >&6
22858else
22859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h.  */
22861#include <sys/types.h>
22862
22863_ACEOF
22864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22865  $EGREP "uid_t" >/dev/null 2>&1; then :
22866  ac_cv_type_uid_t=yes
22867else
22868  ac_cv_type_uid_t=no
22869fi
22870rm -f conftest*
22871
22872fi
22873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22874$as_echo "$ac_cv_type_uid_t" >&6; }
22875if test $ac_cv_type_uid_t = no; then
22876
22877$as_echo "#define uid_t int" >>confdefs.h
22878
22879
22880$as_echo "#define gid_t int" >>confdefs.h
22881
22882fi
22883
22884
22885
22886
22887
22888
22889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22890$as_echo_n "checking if we're including debugging code... " >&6; }
22891# Check whether --enable-debugging was given.
22892if test "${enable_debugging+set}" = set; then :
22893  enableval=$enable_debugging; ntp_ok=$enableval
22894else
22895  ntp_ok=yes
22896
22897fi
22898
22899case "$ntp_ok" in
22900 yes)
22901
22902$as_echo "#define DEBUG 1" >>confdefs.h
22903
22904esac
22905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22906$as_echo "$ntp_ok" >&6; }
22907
22908
22909
22910# check if we can compile with pthreads
22911for ac_header in semaphore.h
22912do :
22913  ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22914if test "x$ac_cv_header_semaphore_h" = xyes; then :
22915  cat >>confdefs.h <<_ACEOF
22916#define HAVE_SEMAPHORE_H 1
22917_ACEOF
22918
22919fi
22920
22921done
22922
22923for ac_func in socketpair
22924do :
22925  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22926if test "x$ac_cv_func_socketpair" = xyes; then :
22927  cat >>confdefs.h <<_ACEOF
22928#define HAVE_SOCKETPAIR 1
22929_ACEOF
22930
22931fi
22932done
22933
22934# Check whether --enable-thread-support was given.
22935if test "${enable_thread_support+set}" = set; then :
22936  enableval=$enable_thread_support;
22937else
22938  enable_thread_support=yes
22939
22940fi
22941
22942have_pthreads=no
22943case "$enable_thread_support" in
22944 yes)
22945    ol_found_pthreads=no
22946
22947
22948
22949ac_ext=c
22950ac_cpp='$CPP $CPPFLAGS'
22951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22953ac_compiler_gnu=$ac_cv_c_compiler_gnu
22954
22955# OpenLDAP --with-threads
22956
22957# Check whether --with-threads was given.
22958if test "${with_threads+set}" = set; then :
22959  withval=$with_threads;
22960	ol_arg=invalid
22961	for ol_val in auto nt posix mach pth lwp yes no manual  ; do
22962		if test "$withval" = "$ol_val" ; then
22963			ol_arg="$ol_val"
22964		fi
22965	done
22966	if test "$ol_arg" = "invalid" ; then
22967		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
22968	fi
22969	ol_with_threads="$ol_arg"
22970
22971else
22972  	ol_with_threads="auto"
22973fi
22974# end --with-threads
22975
22976
22977case "$ol_with_threads$host" in
22978 auto*-*-solaris2.[0-6])
22979        ol_with_threads=no
22980    ;;
22981esac
22982
22983
22984ol_aix_threads=no
22985case "$host" in
22986*-*-aix*) 	if test -z "$CC" ; then
22987		case "$ol_with_threads" in
22988		auto | yes |  posix) ol_aix_threads=yes ;;
22989		esac
22990	fi
22991;;
22992esac
22993
22994if test $ol_aix_threads = yes ; then
22995	if test -z "${CC}" ; then
22996		for ac_prog in cc_r xlc_r cc
22997do
22998  # Extract the first word of "$ac_prog", so it can be a program name with args.
22999set dummy $ac_prog; ac_word=$2
23000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23001$as_echo_n "checking for $ac_word... " >&6; }
23002if ${ac_cv_prog_CC+:} false; then :
23003  $as_echo_n "(cached) " >&6
23004else
23005  if test -n "$CC"; then
23006  ac_cv_prog_CC="$CC" # Let the user override the test.
23007else
23008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23009for as_dir in $PATH
23010do
23011  IFS=$as_save_IFS
23012  test -z "$as_dir" && as_dir=.
23013    for ac_exec_ext in '' $ac_executable_extensions; do
23014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23015    ac_cv_prog_CC="$ac_prog"
23016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23017    break 2
23018  fi
23019done
23020  done
23021IFS=$as_save_IFS
23022
23023fi
23024fi
23025CC=$ac_cv_prog_CC
23026if test -n "$CC"; then
23027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23028$as_echo "$CC" >&6; }
23029else
23030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031$as_echo "no" >&6; }
23032fi
23033
23034
23035  test -n "$CC" && break
23036done
23037
23038
23039		if test "$CC" = cc ; then
23040						if test $ol_with_threads != auto ; then
23041				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23042			else
23043				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23044$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23045			fi
23046			ol_with_threads=no
23047  		fi
23048	fi
23049
23050	case ${CC} in cc_r | xlc_r)
23051		ol_with_threads=posix
23052		ol_cv_pthread_create=yes
23053		;;
23054	esac
23055fi
23056
23057ol_link_threads=no
23058# OpenLDAP --with-yielding_select
23059
23060# Check whether --with-yielding_select was given.
23061if test "${with_yielding_select+set}" = set; then :
23062  withval=$with_yielding_select;
23063	ol_arg=invalid
23064	for ol_val in auto yes no manual  ; do
23065		if test "$withval" = "$ol_val" ; then
23066			ol_arg="$ol_val"
23067		fi
23068	done
23069	if test "$ol_arg" = "invalid" ; then
23070		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23071	fi
23072	ol_with_yielding_select="$ol_arg"
23073
23074else
23075  	ol_with_yielding_select="auto"
23076fi
23077# end --with-yielding_select
23078
23079
23080case $ol_with_threads in auto | yes | nt)
23081
23082
23083	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23084if test "x$ac_cv_func__beginthread" = xyes; then :
23085
23086fi
23087
23088
23089	if test $ac_cv_func__beginthread = yes ; then
23090
23091$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23092
23093		ol_cv_nt_threads=yes
23094	fi
23095
23096
23097	if test "$ol_cv_nt_threads" = yes ; then
23098		ol_link_threads=nt
23099		ol_with_threads=found
23100		ol_with_yielding_select=yes
23101
23102
23103$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23104
23105
23106$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23107
23108	fi
23109
23110	if test $ol_with_threads = nt ; then
23111		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23112	fi
23113	;;
23114esac
23115
23116case $ol_with_threads in auto | yes | posix)
23117
23118	for ac_header in pthread.h
23119do :
23120  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23121if test "x$ac_cv_header_pthread_h" = xyes; then :
23122  cat >>confdefs.h <<_ACEOF
23123#define HAVE_PTHREAD_H 1
23124_ACEOF
23125
23126fi
23127
23128done
23129
23130
23131	if test $ac_cv_header_pthread_h = yes ; then
23132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23133$as_echo_n "checking POSIX thread version... " >&6; }
23134if ${ol_cv_pthread_version+:} false; then :
23135  $as_echo_n "(cached) " >&6
23136else
23137
23138	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139/* end confdefs.h.  */
23140
23141#		include <pthread.h>
23142
23143int
23144main ()
23145{
23146
23147		int i = PTHREAD_CREATE_JOINABLE;
23148
23149  ;
23150  return 0;
23151}
23152_ACEOF
23153if ac_fn_c_try_compile "$LINENO"; then :
23154
23155	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156/* end confdefs.h.  */
23157#include <pthread.h>
23158
23159_ACEOF
23160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161  $EGREP "pthread_detach" >/dev/null 2>&1; then :
23162  ol_cv_pthread_version=10
23163else
23164  ol_cv_pthread_version=8
23165fi
23166rm -f conftest*
23167
23168else
23169
23170	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23171/* end confdefs.h.  */
23172
23173#		include <pthread.h>
23174#		ifdef PTHREAD_CREATE_UNDETACHED
23175		draft7
23176#		endif
23177
23178_ACEOF
23179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23180  $EGREP "draft7" >/dev/null 2>&1; then :
23181  ol_cv_pthread_version=7
23182else
23183
23184	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185/* end confdefs.h.  */
23186#include <pthread.h>
23187
23188_ACEOF
23189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23190  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23191  ol_cv_pthread_version=6
23192else
23193
23194	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195/* end confdefs.h.  */
23196
23197#		include <pthread.h>
23198#ifdef		PTHREAD_MUTEX_INITIALIZER
23199		draft5
23200#endif
23201
23202_ACEOF
23203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23204  $EGREP "draft5" >/dev/null 2>&1; then :
23205  ol_cv_pthread_version=5
23206else
23207  ol_cv_pthread_version=4
23208fi
23209rm -f conftest*
23210
23211fi
23212rm -f conftest*
23213
23214fi
23215rm -f conftest*
23216
23217fi
23218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219
23220fi
23221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23222$as_echo "$ol_cv_pthread_version" >&6; }
23223
23224
23225		if test $ol_cv_pthread_version != 0 ; then
23226
23227cat >>confdefs.h <<_ACEOF
23228#define HAVE_PTHREADS $ol_cv_pthread_version
23229_ACEOF
23230
23231		else
23232			as_fn_error $? "unknown pthread version" "$LINENO" 5
23233		fi
23234
23235		# consider threads found
23236		ol_with_threads=found
23237
23238
23239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23240$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23241if ${ol_cv_header_linux_threads+:} false; then :
23242  $as_echo_n "(cached) " >&6
23243else
23244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245/* end confdefs.h.  */
23246#include <pthread.h>
23247_ACEOF
23248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23249  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23250  ol_cv_header_linux_threads=yes
23251else
23252  ol_cv_header_linux_threads=no
23253fi
23254rm -f conftest*
23255
23256
23257fi
23258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23259$as_echo "$ol_cv_header_linux_threads" >&6; }
23260	if test $ol_cv_header_linux_threads = yes; then
23261
23262$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23263
23264	fi
23265
23266
23267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23268$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23269if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23270  $as_echo_n "(cached) " >&6
23271else
23272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273/* end confdefs.h.  */
23274#include <pthread.h>
23275#ifdef _POSIX_THREAD_IS_GNU_PTH
23276	__gnu_pth__;
23277#endif
23278
23279_ACEOF
23280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23281  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23282  ol_cv_header_gnu_pth_pthread_h=yes
23283else
23284  ol_cv_header_gnu_pth_pthread_h=no
23285fi
23286rm -f conftest*
23287
23288
23289fi
23290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23291$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23292
23293
23294		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23295			for ac_header in sched.h
23296do :
23297  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23298if test "x$ac_cv_header_sched_h" = xyes; then :
23299  cat >>confdefs.h <<_ACEOF
23300#define HAVE_SCHED_H 1
23301_ACEOF
23302
23303fi
23304
23305done
23306
23307		fi
23308
23309
23310				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23311$as_echo_n "checking for pthread_create in default libraries... " >&6; }
23312if ${ol_cv_pthread_create+:} false; then :
23313  $as_echo_n "(cached) " >&6
23314else
23315
23316			if test "$cross_compiling" = yes; then :
23317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318/* end confdefs.h.  */
23319
23320/* pthread test headers */
23321#include <pthread.h>
23322#if HAVE_PTHREADS < 7
23323#include <errno.h>
23324#endif
23325#ifndef NULL
23326#define NULL (void*)0
23327#endif
23328
23329static void *task(p)
23330	void *p;
23331{
23332	return (void *) (p == NULL);
23333}
23334
23335int
23336main ()
23337{
23338
23339	/* pthread test function */
23340#ifndef PTHREAD_CREATE_DETACHED
23341#define	PTHREAD_CREATE_DETACHED	1
23342#endif
23343	pthread_t t;
23344	int status;
23345	int detach = PTHREAD_CREATE_DETACHED;
23346
23347#if HAVE_PTHREADS > 4
23348	/* Final pthreads */
23349	pthread_attr_t attr;
23350
23351	status = pthread_attr_init(&attr);
23352	if( status ) return status;
23353
23354#if HAVE_PTHREADS < 7
23355	status = pthread_attr_setdetachstate(&attr, &detach);
23356	if( status < 0 ) status = errno;
23357#else
23358	status = pthread_attr_setdetachstate(&attr, detach);
23359#endif
23360	if( status ) return status;
23361	status = pthread_create( &t, &attr, task, NULL );
23362#if HAVE_PTHREADS < 7
23363	if( status < 0 ) status = errno;
23364#endif
23365	if( status ) return status;
23366#else
23367	/* Draft 4 pthreads */
23368	status = pthread_create( &t, pthread_attr_default, task, NULL );
23369	if( status ) return errno;
23370
23371	/* give thread a chance to complete */
23372	/* it should remain joinable and hence detachable */
23373	sleep( 1 );
23374
23375	status = pthread_detach( &t );
23376	if( status ) return errno;
23377#endif
23378
23379#ifdef HAVE_LINUX_THREADS
23380	pthread_kill_other_threads_np();
23381#endif
23382
23383	return 0;
23384
23385  ;
23386  return 0;
23387}
23388_ACEOF
23389if ac_fn_c_try_link "$LINENO"; then :
23390  ol_cv_pthread_create=yes
23391else
23392  ol_cv_pthread_create=no
23393fi
23394rm -f core conftest.err conftest.$ac_objext \
23395    conftest$ac_exeext conftest.$ac_ext
23396else
23397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398/* end confdefs.h.  */
23399
23400
23401/* pthread test headers */
23402#include <pthread.h>
23403#if HAVE_PTHREADS < 7
23404#include <errno.h>
23405#endif
23406#ifndef NULL
23407#define NULL (void*)0
23408#endif
23409
23410static void *task(p)
23411	void *p;
23412{
23413	return (void *) (p == NULL);
23414}
23415
23416
23417int main(argc, argv)
23418	int argc;
23419	char **argv;
23420{
23421
23422	/* pthread test function */
23423#ifndef PTHREAD_CREATE_DETACHED
23424#define	PTHREAD_CREATE_DETACHED	1
23425#endif
23426	pthread_t t;
23427	int status;
23428	int detach = PTHREAD_CREATE_DETACHED;
23429
23430#if HAVE_PTHREADS > 4
23431	/* Final pthreads */
23432	pthread_attr_t attr;
23433
23434	status = pthread_attr_init(&attr);
23435	if( status ) return status;
23436
23437#if HAVE_PTHREADS < 7
23438	status = pthread_attr_setdetachstate(&attr, &detach);
23439	if( status < 0 ) status = errno;
23440#else
23441	status = pthread_attr_setdetachstate(&attr, detach);
23442#endif
23443	if( status ) return status;
23444	status = pthread_create( &t, &attr, task, NULL );
23445#if HAVE_PTHREADS < 7
23446	if( status < 0 ) status = errno;
23447#endif
23448	if( status ) return status;
23449#else
23450	/* Draft 4 pthreads */
23451	status = pthread_create( &t, pthread_attr_default, task, NULL );
23452	if( status ) return errno;
23453
23454	/* give thread a chance to complete */
23455	/* it should remain joinable and hence detachable */
23456	sleep( 1 );
23457
23458	status = pthread_detach( &t );
23459	if( status ) return errno;
23460#endif
23461
23462#ifdef HAVE_LINUX_THREADS
23463	pthread_kill_other_threads_np();
23464#endif
23465
23466	return 0;
23467
23468}
23469
23470_ACEOF
23471if ac_fn_c_try_run "$LINENO"; then :
23472  ol_cv_pthread_create=yes
23473else
23474  ol_cv_pthread_create=no
23475fi
23476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23477  conftest.$ac_objext conftest.beam conftest.$ac_ext
23478fi
23479
23480fi
23481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23482$as_echo "$ol_cv_pthread_create" >&6; }
23483
23484		if test $ol_cv_pthread_create != no ; then
23485			ol_link_threads=posix
23486			ol_link_pthreads=""
23487		fi
23488
23489		# Pthread try link: -kthread (ol_cv_pthread_kthread)
23490if test "$ol_link_threads" = no ; then
23491	# try -kthread
23492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23493$as_echo_n "checking for pthread link with -kthread... " >&6; }
23494if ${ol_cv_pthread_kthread+:} false; then :
23495  $as_echo_n "(cached) " >&6
23496else
23497
23498		# save the flags
23499		ol_LIBS="$LIBS"
23500		LIBS="-kthread $LIBS"
23501
23502		if test "$cross_compiling" = yes; then :
23503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504/* end confdefs.h.  */
23505
23506/* pthread test headers */
23507#include <pthread.h>
23508#if HAVE_PTHREADS < 7
23509#include <errno.h>
23510#endif
23511#ifndef NULL
23512#define NULL (void*)0
23513#endif
23514
23515static void *task(p)
23516	void *p;
23517{
23518	return (void *) (p == NULL);
23519}
23520
23521int
23522main ()
23523{
23524
23525	/* pthread test function */
23526#ifndef PTHREAD_CREATE_DETACHED
23527#define	PTHREAD_CREATE_DETACHED	1
23528#endif
23529	pthread_t t;
23530	int status;
23531	int detach = PTHREAD_CREATE_DETACHED;
23532
23533#if HAVE_PTHREADS > 4
23534	/* Final pthreads */
23535	pthread_attr_t attr;
23536
23537	status = pthread_attr_init(&attr);
23538	if( status ) return status;
23539
23540#if HAVE_PTHREADS < 7
23541	status = pthread_attr_setdetachstate(&attr, &detach);
23542	if( status < 0 ) status = errno;
23543#else
23544	status = pthread_attr_setdetachstate(&attr, detach);
23545#endif
23546	if( status ) return status;
23547	status = pthread_create( &t, &attr, task, NULL );
23548#if HAVE_PTHREADS < 7
23549	if( status < 0 ) status = errno;
23550#endif
23551	if( status ) return status;
23552#else
23553	/* Draft 4 pthreads */
23554	status = pthread_create( &t, pthread_attr_default, task, NULL );
23555	if( status ) return errno;
23556
23557	/* give thread a chance to complete */
23558	/* it should remain joinable and hence detachable */
23559	sleep( 1 );
23560
23561	status = pthread_detach( &t );
23562	if( status ) return errno;
23563#endif
23564
23565#ifdef HAVE_LINUX_THREADS
23566	pthread_kill_other_threads_np();
23567#endif
23568
23569	return 0;
23570
23571  ;
23572  return 0;
23573}
23574_ACEOF
23575if ac_fn_c_try_link "$LINENO"; then :
23576  ol_cv_pthread_kthread=yes
23577else
23578  ol_cv_pthread_kthread=no
23579fi
23580rm -f core conftest.err conftest.$ac_objext \
23581    conftest$ac_exeext conftest.$ac_ext
23582else
23583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584/* end confdefs.h.  */
23585
23586
23587/* pthread test headers */
23588#include <pthread.h>
23589#if HAVE_PTHREADS < 7
23590#include <errno.h>
23591#endif
23592#ifndef NULL
23593#define NULL (void*)0
23594#endif
23595
23596static void *task(p)
23597	void *p;
23598{
23599	return (void *) (p == NULL);
23600}
23601
23602
23603int main(argc, argv)
23604	int argc;
23605	char **argv;
23606{
23607
23608	/* pthread test function */
23609#ifndef PTHREAD_CREATE_DETACHED
23610#define	PTHREAD_CREATE_DETACHED	1
23611#endif
23612	pthread_t t;
23613	int status;
23614	int detach = PTHREAD_CREATE_DETACHED;
23615
23616#if HAVE_PTHREADS > 4
23617	/* Final pthreads */
23618	pthread_attr_t attr;
23619
23620	status = pthread_attr_init(&attr);
23621	if( status ) return status;
23622
23623#if HAVE_PTHREADS < 7
23624	status = pthread_attr_setdetachstate(&attr, &detach);
23625	if( status < 0 ) status = errno;
23626#else
23627	status = pthread_attr_setdetachstate(&attr, detach);
23628#endif
23629	if( status ) return status;
23630	status = pthread_create( &t, &attr, task, NULL );
23631#if HAVE_PTHREADS < 7
23632	if( status < 0 ) status = errno;
23633#endif
23634	if( status ) return status;
23635#else
23636	/* Draft 4 pthreads */
23637	status = pthread_create( &t, pthread_attr_default, task, NULL );
23638	if( status ) return errno;
23639
23640	/* give thread a chance to complete */
23641	/* it should remain joinable and hence detachable */
23642	sleep( 1 );
23643
23644	status = pthread_detach( &t );
23645	if( status ) return errno;
23646#endif
23647
23648#ifdef HAVE_LINUX_THREADS
23649	pthread_kill_other_threads_np();
23650#endif
23651
23652	return 0;
23653
23654}
23655
23656_ACEOF
23657if ac_fn_c_try_run "$LINENO"; then :
23658  ol_cv_pthread_kthread=yes
23659else
23660  ol_cv_pthread_kthread=no
23661fi
23662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23663  conftest.$ac_objext conftest.beam conftest.$ac_ext
23664fi
23665
23666
23667		# restore the LIBS
23668		LIBS="$ol_LIBS"
23669
23670fi
23671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23672$as_echo "$ol_cv_pthread_kthread" >&6; }
23673
23674	if test $ol_cv_pthread_kthread = yes ; then
23675		ol_link_pthreads="-kthread"
23676		ol_link_threads=posix
23677	fi
23678fi
23679
23680		# Pthread try link: -pthread (ol_cv_pthread_pthread)
23681if test "$ol_link_threads" = no ; then
23682	# try -pthread
23683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23684$as_echo_n "checking for pthread link with -pthread... " >&6; }
23685if ${ol_cv_pthread_pthread+:} false; then :
23686  $as_echo_n "(cached) " >&6
23687else
23688
23689		# save the flags
23690		ol_LIBS="$LIBS"
23691		LIBS="-pthread $LIBS"
23692
23693		if test "$cross_compiling" = yes; then :
23694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23695/* end confdefs.h.  */
23696
23697/* pthread test headers */
23698#include <pthread.h>
23699#if HAVE_PTHREADS < 7
23700#include <errno.h>
23701#endif
23702#ifndef NULL
23703#define NULL (void*)0
23704#endif
23705
23706static void *task(p)
23707	void *p;
23708{
23709	return (void *) (p == NULL);
23710}
23711
23712int
23713main ()
23714{
23715
23716	/* pthread test function */
23717#ifndef PTHREAD_CREATE_DETACHED
23718#define	PTHREAD_CREATE_DETACHED	1
23719#endif
23720	pthread_t t;
23721	int status;
23722	int detach = PTHREAD_CREATE_DETACHED;
23723
23724#if HAVE_PTHREADS > 4
23725	/* Final pthreads */
23726	pthread_attr_t attr;
23727
23728	status = pthread_attr_init(&attr);
23729	if( status ) return status;
23730
23731#if HAVE_PTHREADS < 7
23732	status = pthread_attr_setdetachstate(&attr, &detach);
23733	if( status < 0 ) status = errno;
23734#else
23735	status = pthread_attr_setdetachstate(&attr, detach);
23736#endif
23737	if( status ) return status;
23738	status = pthread_create( &t, &attr, task, NULL );
23739#if HAVE_PTHREADS < 7
23740	if( status < 0 ) status = errno;
23741#endif
23742	if( status ) return status;
23743#else
23744	/* Draft 4 pthreads */
23745	status = pthread_create( &t, pthread_attr_default, task, NULL );
23746	if( status ) return errno;
23747
23748	/* give thread a chance to complete */
23749	/* it should remain joinable and hence detachable */
23750	sleep( 1 );
23751
23752	status = pthread_detach( &t );
23753	if( status ) return errno;
23754#endif
23755
23756#ifdef HAVE_LINUX_THREADS
23757	pthread_kill_other_threads_np();
23758#endif
23759
23760	return 0;
23761
23762  ;
23763  return 0;
23764}
23765_ACEOF
23766if ac_fn_c_try_link "$LINENO"; then :
23767  ol_cv_pthread_pthread=yes
23768else
23769  ol_cv_pthread_pthread=no
23770fi
23771rm -f core conftest.err conftest.$ac_objext \
23772    conftest$ac_exeext conftest.$ac_ext
23773else
23774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23775/* end confdefs.h.  */
23776
23777
23778/* pthread test headers */
23779#include <pthread.h>
23780#if HAVE_PTHREADS < 7
23781#include <errno.h>
23782#endif
23783#ifndef NULL
23784#define NULL (void*)0
23785#endif
23786
23787static void *task(p)
23788	void *p;
23789{
23790	return (void *) (p == NULL);
23791}
23792
23793
23794int main(argc, argv)
23795	int argc;
23796	char **argv;
23797{
23798
23799	/* pthread test function */
23800#ifndef PTHREAD_CREATE_DETACHED
23801#define	PTHREAD_CREATE_DETACHED	1
23802#endif
23803	pthread_t t;
23804	int status;
23805	int detach = PTHREAD_CREATE_DETACHED;
23806
23807#if HAVE_PTHREADS > 4
23808	/* Final pthreads */
23809	pthread_attr_t attr;
23810
23811	status = pthread_attr_init(&attr);
23812	if( status ) return status;
23813
23814#if HAVE_PTHREADS < 7
23815	status = pthread_attr_setdetachstate(&attr, &detach);
23816	if( status < 0 ) status = errno;
23817#else
23818	status = pthread_attr_setdetachstate(&attr, detach);
23819#endif
23820	if( status ) return status;
23821	status = pthread_create( &t, &attr, task, NULL );
23822#if HAVE_PTHREADS < 7
23823	if( status < 0 ) status = errno;
23824#endif
23825	if( status ) return status;
23826#else
23827	/* Draft 4 pthreads */
23828	status = pthread_create( &t, pthread_attr_default, task, NULL );
23829	if( status ) return errno;
23830
23831	/* give thread a chance to complete */
23832	/* it should remain joinable and hence detachable */
23833	sleep( 1 );
23834
23835	status = pthread_detach( &t );
23836	if( status ) return errno;
23837#endif
23838
23839#ifdef HAVE_LINUX_THREADS
23840	pthread_kill_other_threads_np();
23841#endif
23842
23843	return 0;
23844
23845}
23846
23847_ACEOF
23848if ac_fn_c_try_run "$LINENO"; then :
23849  ol_cv_pthread_pthread=yes
23850else
23851  ol_cv_pthread_pthread=no
23852fi
23853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23854  conftest.$ac_objext conftest.beam conftest.$ac_ext
23855fi
23856
23857
23858		# restore the LIBS
23859		LIBS="$ol_LIBS"
23860
23861fi
23862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23863$as_echo "$ol_cv_pthread_pthread" >&6; }
23864
23865	if test $ol_cv_pthread_pthread = yes ; then
23866		ol_link_pthreads="-pthread"
23867		ol_link_threads=posix
23868	fi
23869fi
23870
23871		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23872if test "$ol_link_threads" = no ; then
23873	# try -pthreads
23874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23875$as_echo_n "checking for pthread link with -pthreads... " >&6; }
23876if ${ol_cv_pthread_pthreads+:} false; then :
23877  $as_echo_n "(cached) " >&6
23878else
23879
23880		# save the flags
23881		ol_LIBS="$LIBS"
23882		LIBS="-pthreads $LIBS"
23883
23884		if test "$cross_compiling" = yes; then :
23885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23886/* end confdefs.h.  */
23887
23888/* pthread test headers */
23889#include <pthread.h>
23890#if HAVE_PTHREADS < 7
23891#include <errno.h>
23892#endif
23893#ifndef NULL
23894#define NULL (void*)0
23895#endif
23896
23897static void *task(p)
23898	void *p;
23899{
23900	return (void *) (p == NULL);
23901}
23902
23903int
23904main ()
23905{
23906
23907	/* pthread test function */
23908#ifndef PTHREAD_CREATE_DETACHED
23909#define	PTHREAD_CREATE_DETACHED	1
23910#endif
23911	pthread_t t;
23912	int status;
23913	int detach = PTHREAD_CREATE_DETACHED;
23914
23915#if HAVE_PTHREADS > 4
23916	/* Final pthreads */
23917	pthread_attr_t attr;
23918
23919	status = pthread_attr_init(&attr);
23920	if( status ) return status;
23921
23922#if HAVE_PTHREADS < 7
23923	status = pthread_attr_setdetachstate(&attr, &detach);
23924	if( status < 0 ) status = errno;
23925#else
23926	status = pthread_attr_setdetachstate(&attr, detach);
23927#endif
23928	if( status ) return status;
23929	status = pthread_create( &t, &attr, task, NULL );
23930#if HAVE_PTHREADS < 7
23931	if( status < 0 ) status = errno;
23932#endif
23933	if( status ) return status;
23934#else
23935	/* Draft 4 pthreads */
23936	status = pthread_create( &t, pthread_attr_default, task, NULL );
23937	if( status ) return errno;
23938
23939	/* give thread a chance to complete */
23940	/* it should remain joinable and hence detachable */
23941	sleep( 1 );
23942
23943	status = pthread_detach( &t );
23944	if( status ) return errno;
23945#endif
23946
23947#ifdef HAVE_LINUX_THREADS
23948	pthread_kill_other_threads_np();
23949#endif
23950
23951	return 0;
23952
23953  ;
23954  return 0;
23955}
23956_ACEOF
23957if ac_fn_c_try_link "$LINENO"; then :
23958  ol_cv_pthread_pthreads=yes
23959else
23960  ol_cv_pthread_pthreads=no
23961fi
23962rm -f core conftest.err conftest.$ac_objext \
23963    conftest$ac_exeext conftest.$ac_ext
23964else
23965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966/* end confdefs.h.  */
23967
23968
23969/* pthread test headers */
23970#include <pthread.h>
23971#if HAVE_PTHREADS < 7
23972#include <errno.h>
23973#endif
23974#ifndef NULL
23975#define NULL (void*)0
23976#endif
23977
23978static void *task(p)
23979	void *p;
23980{
23981	return (void *) (p == NULL);
23982}
23983
23984
23985int main(argc, argv)
23986	int argc;
23987	char **argv;
23988{
23989
23990	/* pthread test function */
23991#ifndef PTHREAD_CREATE_DETACHED
23992#define	PTHREAD_CREATE_DETACHED	1
23993#endif
23994	pthread_t t;
23995	int status;
23996	int detach = PTHREAD_CREATE_DETACHED;
23997
23998#if HAVE_PTHREADS > 4
23999	/* Final pthreads */
24000	pthread_attr_t attr;
24001
24002	status = pthread_attr_init(&attr);
24003	if( status ) return status;
24004
24005#if HAVE_PTHREADS < 7
24006	status = pthread_attr_setdetachstate(&attr, &detach);
24007	if( status < 0 ) status = errno;
24008#else
24009	status = pthread_attr_setdetachstate(&attr, detach);
24010#endif
24011	if( status ) return status;
24012	status = pthread_create( &t, &attr, task, NULL );
24013#if HAVE_PTHREADS < 7
24014	if( status < 0 ) status = errno;
24015#endif
24016	if( status ) return status;
24017#else
24018	/* Draft 4 pthreads */
24019	status = pthread_create( &t, pthread_attr_default, task, NULL );
24020	if( status ) return errno;
24021
24022	/* give thread a chance to complete */
24023	/* it should remain joinable and hence detachable */
24024	sleep( 1 );
24025
24026	status = pthread_detach( &t );
24027	if( status ) return errno;
24028#endif
24029
24030#ifdef HAVE_LINUX_THREADS
24031	pthread_kill_other_threads_np();
24032#endif
24033
24034	return 0;
24035
24036}
24037
24038_ACEOF
24039if ac_fn_c_try_run "$LINENO"; then :
24040  ol_cv_pthread_pthreads=yes
24041else
24042  ol_cv_pthread_pthreads=no
24043fi
24044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24045  conftest.$ac_objext conftest.beam conftest.$ac_ext
24046fi
24047
24048
24049		# restore the LIBS
24050		LIBS="$ol_LIBS"
24051
24052fi
24053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24054$as_echo "$ol_cv_pthread_pthreads" >&6; }
24055
24056	if test $ol_cv_pthread_pthreads = yes ; then
24057		ol_link_pthreads="-pthreads"
24058		ol_link_threads=posix
24059	fi
24060fi
24061
24062		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24063if test "$ol_link_threads" = no ; then
24064	# try -mthreads
24065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24066$as_echo_n "checking for pthread link with -mthreads... " >&6; }
24067if ${ol_cv_pthread_mthreads+:} false; then :
24068  $as_echo_n "(cached) " >&6
24069else
24070
24071		# save the flags
24072		ol_LIBS="$LIBS"
24073		LIBS="-mthreads $LIBS"
24074
24075		if test "$cross_compiling" = yes; then :
24076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077/* end confdefs.h.  */
24078
24079/* pthread test headers */
24080#include <pthread.h>
24081#if HAVE_PTHREADS < 7
24082#include <errno.h>
24083#endif
24084#ifndef NULL
24085#define NULL (void*)0
24086#endif
24087
24088static void *task(p)
24089	void *p;
24090{
24091	return (void *) (p == NULL);
24092}
24093
24094int
24095main ()
24096{
24097
24098	/* pthread test function */
24099#ifndef PTHREAD_CREATE_DETACHED
24100#define	PTHREAD_CREATE_DETACHED	1
24101#endif
24102	pthread_t t;
24103	int status;
24104	int detach = PTHREAD_CREATE_DETACHED;
24105
24106#if HAVE_PTHREADS > 4
24107	/* Final pthreads */
24108	pthread_attr_t attr;
24109
24110	status = pthread_attr_init(&attr);
24111	if( status ) return status;
24112
24113#if HAVE_PTHREADS < 7
24114	status = pthread_attr_setdetachstate(&attr, &detach);
24115	if( status < 0 ) status = errno;
24116#else
24117	status = pthread_attr_setdetachstate(&attr, detach);
24118#endif
24119	if( status ) return status;
24120	status = pthread_create( &t, &attr, task, NULL );
24121#if HAVE_PTHREADS < 7
24122	if( status < 0 ) status = errno;
24123#endif
24124	if( status ) return status;
24125#else
24126	/* Draft 4 pthreads */
24127	status = pthread_create( &t, pthread_attr_default, task, NULL );
24128	if( status ) return errno;
24129
24130	/* give thread a chance to complete */
24131	/* it should remain joinable and hence detachable */
24132	sleep( 1 );
24133
24134	status = pthread_detach( &t );
24135	if( status ) return errno;
24136#endif
24137
24138#ifdef HAVE_LINUX_THREADS
24139	pthread_kill_other_threads_np();
24140#endif
24141
24142	return 0;
24143
24144  ;
24145  return 0;
24146}
24147_ACEOF
24148if ac_fn_c_try_link "$LINENO"; then :
24149  ol_cv_pthread_mthreads=yes
24150else
24151  ol_cv_pthread_mthreads=no
24152fi
24153rm -f core conftest.err conftest.$ac_objext \
24154    conftest$ac_exeext conftest.$ac_ext
24155else
24156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24157/* end confdefs.h.  */
24158
24159
24160/* pthread test headers */
24161#include <pthread.h>
24162#if HAVE_PTHREADS < 7
24163#include <errno.h>
24164#endif
24165#ifndef NULL
24166#define NULL (void*)0
24167#endif
24168
24169static void *task(p)
24170	void *p;
24171{
24172	return (void *) (p == NULL);
24173}
24174
24175
24176int main(argc, argv)
24177	int argc;
24178	char **argv;
24179{
24180
24181	/* pthread test function */
24182#ifndef PTHREAD_CREATE_DETACHED
24183#define	PTHREAD_CREATE_DETACHED	1
24184#endif
24185	pthread_t t;
24186	int status;
24187	int detach = PTHREAD_CREATE_DETACHED;
24188
24189#if HAVE_PTHREADS > 4
24190	/* Final pthreads */
24191	pthread_attr_t attr;
24192
24193	status = pthread_attr_init(&attr);
24194	if( status ) return status;
24195
24196#if HAVE_PTHREADS < 7
24197	status = pthread_attr_setdetachstate(&attr, &detach);
24198	if( status < 0 ) status = errno;
24199#else
24200	status = pthread_attr_setdetachstate(&attr, detach);
24201#endif
24202	if( status ) return status;
24203	status = pthread_create( &t, &attr, task, NULL );
24204#if HAVE_PTHREADS < 7
24205	if( status < 0 ) status = errno;
24206#endif
24207	if( status ) return status;
24208#else
24209	/* Draft 4 pthreads */
24210	status = pthread_create( &t, pthread_attr_default, task, NULL );
24211	if( status ) return errno;
24212
24213	/* give thread a chance to complete */
24214	/* it should remain joinable and hence detachable */
24215	sleep( 1 );
24216
24217	status = pthread_detach( &t );
24218	if( status ) return errno;
24219#endif
24220
24221#ifdef HAVE_LINUX_THREADS
24222	pthread_kill_other_threads_np();
24223#endif
24224
24225	return 0;
24226
24227}
24228
24229_ACEOF
24230if ac_fn_c_try_run "$LINENO"; then :
24231  ol_cv_pthread_mthreads=yes
24232else
24233  ol_cv_pthread_mthreads=no
24234fi
24235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24236  conftest.$ac_objext conftest.beam conftest.$ac_ext
24237fi
24238
24239
24240		# restore the LIBS
24241		LIBS="$ol_LIBS"
24242
24243fi
24244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24245$as_echo "$ol_cv_pthread_mthreads" >&6; }
24246
24247	if test $ol_cv_pthread_mthreads = yes ; then
24248		ol_link_pthreads="-mthreads"
24249		ol_link_threads=posix
24250	fi
24251fi
24252
24253		# Pthread try link: -thread (ol_cv_pthread_thread)
24254if test "$ol_link_threads" = no ; then
24255	# try -thread
24256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24257$as_echo_n "checking for pthread link with -thread... " >&6; }
24258if ${ol_cv_pthread_thread+:} false; then :
24259  $as_echo_n "(cached) " >&6
24260else
24261
24262		# save the flags
24263		ol_LIBS="$LIBS"
24264		LIBS="-thread $LIBS"
24265
24266		if test "$cross_compiling" = yes; then :
24267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268/* end confdefs.h.  */
24269
24270/* pthread test headers */
24271#include <pthread.h>
24272#if HAVE_PTHREADS < 7
24273#include <errno.h>
24274#endif
24275#ifndef NULL
24276#define NULL (void*)0
24277#endif
24278
24279static void *task(p)
24280	void *p;
24281{
24282	return (void *) (p == NULL);
24283}
24284
24285int
24286main ()
24287{
24288
24289	/* pthread test function */
24290#ifndef PTHREAD_CREATE_DETACHED
24291#define	PTHREAD_CREATE_DETACHED	1
24292#endif
24293	pthread_t t;
24294	int status;
24295	int detach = PTHREAD_CREATE_DETACHED;
24296
24297#if HAVE_PTHREADS > 4
24298	/* Final pthreads */
24299	pthread_attr_t attr;
24300
24301	status = pthread_attr_init(&attr);
24302	if( status ) return status;
24303
24304#if HAVE_PTHREADS < 7
24305	status = pthread_attr_setdetachstate(&attr, &detach);
24306	if( status < 0 ) status = errno;
24307#else
24308	status = pthread_attr_setdetachstate(&attr, detach);
24309#endif
24310	if( status ) return status;
24311	status = pthread_create( &t, &attr, task, NULL );
24312#if HAVE_PTHREADS < 7
24313	if( status < 0 ) status = errno;
24314#endif
24315	if( status ) return status;
24316#else
24317	/* Draft 4 pthreads */
24318	status = pthread_create( &t, pthread_attr_default, task, NULL );
24319	if( status ) return errno;
24320
24321	/* give thread a chance to complete */
24322	/* it should remain joinable and hence detachable */
24323	sleep( 1 );
24324
24325	status = pthread_detach( &t );
24326	if( status ) return errno;
24327#endif
24328
24329#ifdef HAVE_LINUX_THREADS
24330	pthread_kill_other_threads_np();
24331#endif
24332
24333	return 0;
24334
24335  ;
24336  return 0;
24337}
24338_ACEOF
24339if ac_fn_c_try_link "$LINENO"; then :
24340  ol_cv_pthread_thread=yes
24341else
24342  ol_cv_pthread_thread=no
24343fi
24344rm -f core conftest.err conftest.$ac_objext \
24345    conftest$ac_exeext conftest.$ac_ext
24346else
24347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348/* end confdefs.h.  */
24349
24350
24351/* pthread test headers */
24352#include <pthread.h>
24353#if HAVE_PTHREADS < 7
24354#include <errno.h>
24355#endif
24356#ifndef NULL
24357#define NULL (void*)0
24358#endif
24359
24360static void *task(p)
24361	void *p;
24362{
24363	return (void *) (p == NULL);
24364}
24365
24366
24367int main(argc, argv)
24368	int argc;
24369	char **argv;
24370{
24371
24372	/* pthread test function */
24373#ifndef PTHREAD_CREATE_DETACHED
24374#define	PTHREAD_CREATE_DETACHED	1
24375#endif
24376	pthread_t t;
24377	int status;
24378	int detach = PTHREAD_CREATE_DETACHED;
24379
24380#if HAVE_PTHREADS > 4
24381	/* Final pthreads */
24382	pthread_attr_t attr;
24383
24384	status = pthread_attr_init(&attr);
24385	if( status ) return status;
24386
24387#if HAVE_PTHREADS < 7
24388	status = pthread_attr_setdetachstate(&attr, &detach);
24389	if( status < 0 ) status = errno;
24390#else
24391	status = pthread_attr_setdetachstate(&attr, detach);
24392#endif
24393	if( status ) return status;
24394	status = pthread_create( &t, &attr, task, NULL );
24395#if HAVE_PTHREADS < 7
24396	if( status < 0 ) status = errno;
24397#endif
24398	if( status ) return status;
24399#else
24400	/* Draft 4 pthreads */
24401	status = pthread_create( &t, pthread_attr_default, task, NULL );
24402	if( status ) return errno;
24403
24404	/* give thread a chance to complete */
24405	/* it should remain joinable and hence detachable */
24406	sleep( 1 );
24407
24408	status = pthread_detach( &t );
24409	if( status ) return errno;
24410#endif
24411
24412#ifdef HAVE_LINUX_THREADS
24413	pthread_kill_other_threads_np();
24414#endif
24415
24416	return 0;
24417
24418}
24419
24420_ACEOF
24421if ac_fn_c_try_run "$LINENO"; then :
24422  ol_cv_pthread_thread=yes
24423else
24424  ol_cv_pthread_thread=no
24425fi
24426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24427  conftest.$ac_objext conftest.beam conftest.$ac_ext
24428fi
24429
24430
24431		# restore the LIBS
24432		LIBS="$ol_LIBS"
24433
24434fi
24435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24436$as_echo "$ol_cv_pthread_thread" >&6; }
24437
24438	if test $ol_cv_pthread_thread = yes ; then
24439		ol_link_pthreads="-thread"
24440		ol_link_threads=posix
24441	fi
24442fi
24443
24444
24445		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24446if test "$ol_link_threads" = no ; then
24447	# try -lpthread -lmach -lexc -lc_r
24448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24449$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24450if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24451  $as_echo_n "(cached) " >&6
24452else
24453
24454		# save the flags
24455		ol_LIBS="$LIBS"
24456		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24457
24458		if test "$cross_compiling" = yes; then :
24459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24460/* end confdefs.h.  */
24461
24462/* pthread test headers */
24463#include <pthread.h>
24464#if HAVE_PTHREADS < 7
24465#include <errno.h>
24466#endif
24467#ifndef NULL
24468#define NULL (void*)0
24469#endif
24470
24471static void *task(p)
24472	void *p;
24473{
24474	return (void *) (p == NULL);
24475}
24476
24477int
24478main ()
24479{
24480
24481	/* pthread test function */
24482#ifndef PTHREAD_CREATE_DETACHED
24483#define	PTHREAD_CREATE_DETACHED	1
24484#endif
24485	pthread_t t;
24486	int status;
24487	int detach = PTHREAD_CREATE_DETACHED;
24488
24489#if HAVE_PTHREADS > 4
24490	/* Final pthreads */
24491	pthread_attr_t attr;
24492
24493	status = pthread_attr_init(&attr);
24494	if( status ) return status;
24495
24496#if HAVE_PTHREADS < 7
24497	status = pthread_attr_setdetachstate(&attr, &detach);
24498	if( status < 0 ) status = errno;
24499#else
24500	status = pthread_attr_setdetachstate(&attr, detach);
24501#endif
24502	if( status ) return status;
24503	status = pthread_create( &t, &attr, task, NULL );
24504#if HAVE_PTHREADS < 7
24505	if( status < 0 ) status = errno;
24506#endif
24507	if( status ) return status;
24508#else
24509	/* Draft 4 pthreads */
24510	status = pthread_create( &t, pthread_attr_default, task, NULL );
24511	if( status ) return errno;
24512
24513	/* give thread a chance to complete */
24514	/* it should remain joinable and hence detachable */
24515	sleep( 1 );
24516
24517	status = pthread_detach( &t );
24518	if( status ) return errno;
24519#endif
24520
24521#ifdef HAVE_LINUX_THREADS
24522	pthread_kill_other_threads_np();
24523#endif
24524
24525	return 0;
24526
24527  ;
24528  return 0;
24529}
24530_ACEOF
24531if ac_fn_c_try_link "$LINENO"; then :
24532  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24533else
24534  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24535fi
24536rm -f core conftest.err conftest.$ac_objext \
24537    conftest$ac_exeext conftest.$ac_ext
24538else
24539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540/* end confdefs.h.  */
24541
24542
24543/* pthread test headers */
24544#include <pthread.h>
24545#if HAVE_PTHREADS < 7
24546#include <errno.h>
24547#endif
24548#ifndef NULL
24549#define NULL (void*)0
24550#endif
24551
24552static void *task(p)
24553	void *p;
24554{
24555	return (void *) (p == NULL);
24556}
24557
24558
24559int main(argc, argv)
24560	int argc;
24561	char **argv;
24562{
24563
24564	/* pthread test function */
24565#ifndef PTHREAD_CREATE_DETACHED
24566#define	PTHREAD_CREATE_DETACHED	1
24567#endif
24568	pthread_t t;
24569	int status;
24570	int detach = PTHREAD_CREATE_DETACHED;
24571
24572#if HAVE_PTHREADS > 4
24573	/* Final pthreads */
24574	pthread_attr_t attr;
24575
24576	status = pthread_attr_init(&attr);
24577	if( status ) return status;
24578
24579#if HAVE_PTHREADS < 7
24580	status = pthread_attr_setdetachstate(&attr, &detach);
24581	if( status < 0 ) status = errno;
24582#else
24583	status = pthread_attr_setdetachstate(&attr, detach);
24584#endif
24585	if( status ) return status;
24586	status = pthread_create( &t, &attr, task, NULL );
24587#if HAVE_PTHREADS < 7
24588	if( status < 0 ) status = errno;
24589#endif
24590	if( status ) return status;
24591#else
24592	/* Draft 4 pthreads */
24593	status = pthread_create( &t, pthread_attr_default, task, NULL );
24594	if( status ) return errno;
24595
24596	/* give thread a chance to complete */
24597	/* it should remain joinable and hence detachable */
24598	sleep( 1 );
24599
24600	status = pthread_detach( &t );
24601	if( status ) return errno;
24602#endif
24603
24604#ifdef HAVE_LINUX_THREADS
24605	pthread_kill_other_threads_np();
24606#endif
24607
24608	return 0;
24609
24610}
24611
24612_ACEOF
24613if ac_fn_c_try_run "$LINENO"; then :
24614  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24615else
24616  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24617fi
24618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24619  conftest.$ac_objext conftest.beam conftest.$ac_ext
24620fi
24621
24622
24623		# restore the LIBS
24624		LIBS="$ol_LIBS"
24625
24626fi
24627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24628$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24629
24630	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24631		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24632		ol_link_threads=posix
24633	fi
24634fi
24635
24636		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24637if test "$ol_link_threads" = no ; then
24638	# try -lpthread -lmach -lexc
24639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24640$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24641if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24642  $as_echo_n "(cached) " >&6
24643else
24644
24645		# save the flags
24646		ol_LIBS="$LIBS"
24647		LIBS="-lpthread -lmach -lexc $LIBS"
24648
24649		if test "$cross_compiling" = yes; then :
24650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24651/* end confdefs.h.  */
24652
24653/* pthread test headers */
24654#include <pthread.h>
24655#if HAVE_PTHREADS < 7
24656#include <errno.h>
24657#endif
24658#ifndef NULL
24659#define NULL (void*)0
24660#endif
24661
24662static void *task(p)
24663	void *p;
24664{
24665	return (void *) (p == NULL);
24666}
24667
24668int
24669main ()
24670{
24671
24672	/* pthread test function */
24673#ifndef PTHREAD_CREATE_DETACHED
24674#define	PTHREAD_CREATE_DETACHED	1
24675#endif
24676	pthread_t t;
24677	int status;
24678	int detach = PTHREAD_CREATE_DETACHED;
24679
24680#if HAVE_PTHREADS > 4
24681	/* Final pthreads */
24682	pthread_attr_t attr;
24683
24684	status = pthread_attr_init(&attr);
24685	if( status ) return status;
24686
24687#if HAVE_PTHREADS < 7
24688	status = pthread_attr_setdetachstate(&attr, &detach);
24689	if( status < 0 ) status = errno;
24690#else
24691	status = pthread_attr_setdetachstate(&attr, detach);
24692#endif
24693	if( status ) return status;
24694	status = pthread_create( &t, &attr, task, NULL );
24695#if HAVE_PTHREADS < 7
24696	if( status < 0 ) status = errno;
24697#endif
24698	if( status ) return status;
24699#else
24700	/* Draft 4 pthreads */
24701	status = pthread_create( &t, pthread_attr_default, task, NULL );
24702	if( status ) return errno;
24703
24704	/* give thread a chance to complete */
24705	/* it should remain joinable and hence detachable */
24706	sleep( 1 );
24707
24708	status = pthread_detach( &t );
24709	if( status ) return errno;
24710#endif
24711
24712#ifdef HAVE_LINUX_THREADS
24713	pthread_kill_other_threads_np();
24714#endif
24715
24716	return 0;
24717
24718  ;
24719  return 0;
24720}
24721_ACEOF
24722if ac_fn_c_try_link "$LINENO"; then :
24723  ol_cv_pthread_lpthread_lmach_lexc=yes
24724else
24725  ol_cv_pthread_lpthread_lmach_lexc=no
24726fi
24727rm -f core conftest.err conftest.$ac_objext \
24728    conftest$ac_exeext conftest.$ac_ext
24729else
24730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731/* end confdefs.h.  */
24732
24733
24734/* pthread test headers */
24735#include <pthread.h>
24736#if HAVE_PTHREADS < 7
24737#include <errno.h>
24738#endif
24739#ifndef NULL
24740#define NULL (void*)0
24741#endif
24742
24743static void *task(p)
24744	void *p;
24745{
24746	return (void *) (p == NULL);
24747}
24748
24749
24750int main(argc, argv)
24751	int argc;
24752	char **argv;
24753{
24754
24755	/* pthread test function */
24756#ifndef PTHREAD_CREATE_DETACHED
24757#define	PTHREAD_CREATE_DETACHED	1
24758#endif
24759	pthread_t t;
24760	int status;
24761	int detach = PTHREAD_CREATE_DETACHED;
24762
24763#if HAVE_PTHREADS > 4
24764	/* Final pthreads */
24765	pthread_attr_t attr;
24766
24767	status = pthread_attr_init(&attr);
24768	if( status ) return status;
24769
24770#if HAVE_PTHREADS < 7
24771	status = pthread_attr_setdetachstate(&attr, &detach);
24772	if( status < 0 ) status = errno;
24773#else
24774	status = pthread_attr_setdetachstate(&attr, detach);
24775#endif
24776	if( status ) return status;
24777	status = pthread_create( &t, &attr, task, NULL );
24778#if HAVE_PTHREADS < 7
24779	if( status < 0 ) status = errno;
24780#endif
24781	if( status ) return status;
24782#else
24783	/* Draft 4 pthreads */
24784	status = pthread_create( &t, pthread_attr_default, task, NULL );
24785	if( status ) return errno;
24786
24787	/* give thread a chance to complete */
24788	/* it should remain joinable and hence detachable */
24789	sleep( 1 );
24790
24791	status = pthread_detach( &t );
24792	if( status ) return errno;
24793#endif
24794
24795#ifdef HAVE_LINUX_THREADS
24796	pthread_kill_other_threads_np();
24797#endif
24798
24799	return 0;
24800
24801}
24802
24803_ACEOF
24804if ac_fn_c_try_run "$LINENO"; then :
24805  ol_cv_pthread_lpthread_lmach_lexc=yes
24806else
24807  ol_cv_pthread_lpthread_lmach_lexc=no
24808fi
24809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24810  conftest.$ac_objext conftest.beam conftest.$ac_ext
24811fi
24812
24813
24814		# restore the LIBS
24815		LIBS="$ol_LIBS"
24816
24817fi
24818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24819$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24820
24821	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24822		ol_link_pthreads="-lpthread -lmach -lexc"
24823		ol_link_threads=posix
24824	fi
24825fi
24826
24827
24828		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24829if test "$ol_link_threads" = no ; then
24830	# try -lpthread -Wl,-woff,85
24831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24832$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24833if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24834  $as_echo_n "(cached) " >&6
24835else
24836
24837		# save the flags
24838		ol_LIBS="$LIBS"
24839		LIBS="-lpthread -Wl,-woff,85 $LIBS"
24840
24841		if test "$cross_compiling" = yes; then :
24842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24843/* end confdefs.h.  */
24844
24845/* pthread test headers */
24846#include <pthread.h>
24847#if HAVE_PTHREADS < 7
24848#include <errno.h>
24849#endif
24850#ifndef NULL
24851#define NULL (void*)0
24852#endif
24853
24854static void *task(p)
24855	void *p;
24856{
24857	return (void *) (p == NULL);
24858}
24859
24860int
24861main ()
24862{
24863
24864	/* pthread test function */
24865#ifndef PTHREAD_CREATE_DETACHED
24866#define	PTHREAD_CREATE_DETACHED	1
24867#endif
24868	pthread_t t;
24869	int status;
24870	int detach = PTHREAD_CREATE_DETACHED;
24871
24872#if HAVE_PTHREADS > 4
24873	/* Final pthreads */
24874	pthread_attr_t attr;
24875
24876	status = pthread_attr_init(&attr);
24877	if( status ) return status;
24878
24879#if HAVE_PTHREADS < 7
24880	status = pthread_attr_setdetachstate(&attr, &detach);
24881	if( status < 0 ) status = errno;
24882#else
24883	status = pthread_attr_setdetachstate(&attr, detach);
24884#endif
24885	if( status ) return status;
24886	status = pthread_create( &t, &attr, task, NULL );
24887#if HAVE_PTHREADS < 7
24888	if( status < 0 ) status = errno;
24889#endif
24890	if( status ) return status;
24891#else
24892	/* Draft 4 pthreads */
24893	status = pthread_create( &t, pthread_attr_default, task, NULL );
24894	if( status ) return errno;
24895
24896	/* give thread a chance to complete */
24897	/* it should remain joinable and hence detachable */
24898	sleep( 1 );
24899
24900	status = pthread_detach( &t );
24901	if( status ) return errno;
24902#endif
24903
24904#ifdef HAVE_LINUX_THREADS
24905	pthread_kill_other_threads_np();
24906#endif
24907
24908	return 0;
24909
24910  ;
24911  return 0;
24912}
24913_ACEOF
24914if ac_fn_c_try_link "$LINENO"; then :
24915  ol_cv_pthread_lib_lpthread_woff=yes
24916else
24917  ol_cv_pthread_lib_lpthread_woff=no
24918fi
24919rm -f core conftest.err conftest.$ac_objext \
24920    conftest$ac_exeext conftest.$ac_ext
24921else
24922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923/* end confdefs.h.  */
24924
24925
24926/* pthread test headers */
24927#include <pthread.h>
24928#if HAVE_PTHREADS < 7
24929#include <errno.h>
24930#endif
24931#ifndef NULL
24932#define NULL (void*)0
24933#endif
24934
24935static void *task(p)
24936	void *p;
24937{
24938	return (void *) (p == NULL);
24939}
24940
24941
24942int main(argc, argv)
24943	int argc;
24944	char **argv;
24945{
24946
24947	/* pthread test function */
24948#ifndef PTHREAD_CREATE_DETACHED
24949#define	PTHREAD_CREATE_DETACHED	1
24950#endif
24951	pthread_t t;
24952	int status;
24953	int detach = PTHREAD_CREATE_DETACHED;
24954
24955#if HAVE_PTHREADS > 4
24956	/* Final pthreads */
24957	pthread_attr_t attr;
24958
24959	status = pthread_attr_init(&attr);
24960	if( status ) return status;
24961
24962#if HAVE_PTHREADS < 7
24963	status = pthread_attr_setdetachstate(&attr, &detach);
24964	if( status < 0 ) status = errno;
24965#else
24966	status = pthread_attr_setdetachstate(&attr, detach);
24967#endif
24968	if( status ) return status;
24969	status = pthread_create( &t, &attr, task, NULL );
24970#if HAVE_PTHREADS < 7
24971	if( status < 0 ) status = errno;
24972#endif
24973	if( status ) return status;
24974#else
24975	/* Draft 4 pthreads */
24976	status = pthread_create( &t, pthread_attr_default, task, NULL );
24977	if( status ) return errno;
24978
24979	/* give thread a chance to complete */
24980	/* it should remain joinable and hence detachable */
24981	sleep( 1 );
24982
24983	status = pthread_detach( &t );
24984	if( status ) return errno;
24985#endif
24986
24987#ifdef HAVE_LINUX_THREADS
24988	pthread_kill_other_threads_np();
24989#endif
24990
24991	return 0;
24992
24993}
24994
24995_ACEOF
24996if ac_fn_c_try_run "$LINENO"; then :
24997  ol_cv_pthread_lib_lpthread_woff=yes
24998else
24999  ol_cv_pthread_lib_lpthread_woff=no
25000fi
25001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25002  conftest.$ac_objext conftest.beam conftest.$ac_ext
25003fi
25004
25005
25006		# restore the LIBS
25007		LIBS="$ol_LIBS"
25008
25009fi
25010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25011$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25012
25013	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25014		ol_link_pthreads="-lpthread -Wl,-woff,85"
25015		ol_link_threads=posix
25016	fi
25017fi
25018
25019
25020		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25021if test "$ol_link_threads" = no ; then
25022	# try -lpthread
25023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25024$as_echo_n "checking for pthread link with -lpthread... " >&6; }
25025if ${ol_cv_pthread_lpthread+:} false; then :
25026  $as_echo_n "(cached) " >&6
25027else
25028
25029		# save the flags
25030		ol_LIBS="$LIBS"
25031		LIBS="-lpthread $LIBS"
25032
25033		if test "$cross_compiling" = yes; then :
25034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25035/* end confdefs.h.  */
25036
25037/* pthread test headers */
25038#include <pthread.h>
25039#if HAVE_PTHREADS < 7
25040#include <errno.h>
25041#endif
25042#ifndef NULL
25043#define NULL (void*)0
25044#endif
25045
25046static void *task(p)
25047	void *p;
25048{
25049	return (void *) (p == NULL);
25050}
25051
25052int
25053main ()
25054{
25055
25056	/* pthread test function */
25057#ifndef PTHREAD_CREATE_DETACHED
25058#define	PTHREAD_CREATE_DETACHED	1
25059#endif
25060	pthread_t t;
25061	int status;
25062	int detach = PTHREAD_CREATE_DETACHED;
25063
25064#if HAVE_PTHREADS > 4
25065	/* Final pthreads */
25066	pthread_attr_t attr;
25067
25068	status = pthread_attr_init(&attr);
25069	if( status ) return status;
25070
25071#if HAVE_PTHREADS < 7
25072	status = pthread_attr_setdetachstate(&attr, &detach);
25073	if( status < 0 ) status = errno;
25074#else
25075	status = pthread_attr_setdetachstate(&attr, detach);
25076#endif
25077	if( status ) return status;
25078	status = pthread_create( &t, &attr, task, NULL );
25079#if HAVE_PTHREADS < 7
25080	if( status < 0 ) status = errno;
25081#endif
25082	if( status ) return status;
25083#else
25084	/* Draft 4 pthreads */
25085	status = pthread_create( &t, pthread_attr_default, task, NULL );
25086	if( status ) return errno;
25087
25088	/* give thread a chance to complete */
25089	/* it should remain joinable and hence detachable */
25090	sleep( 1 );
25091
25092	status = pthread_detach( &t );
25093	if( status ) return errno;
25094#endif
25095
25096#ifdef HAVE_LINUX_THREADS
25097	pthread_kill_other_threads_np();
25098#endif
25099
25100	return 0;
25101
25102  ;
25103  return 0;
25104}
25105_ACEOF
25106if ac_fn_c_try_link "$LINENO"; then :
25107  ol_cv_pthread_lpthread=yes
25108else
25109  ol_cv_pthread_lpthread=no
25110fi
25111rm -f core conftest.err conftest.$ac_objext \
25112    conftest$ac_exeext conftest.$ac_ext
25113else
25114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115/* end confdefs.h.  */
25116
25117
25118/* pthread test headers */
25119#include <pthread.h>
25120#if HAVE_PTHREADS < 7
25121#include <errno.h>
25122#endif
25123#ifndef NULL
25124#define NULL (void*)0
25125#endif
25126
25127static void *task(p)
25128	void *p;
25129{
25130	return (void *) (p == NULL);
25131}
25132
25133
25134int main(argc, argv)
25135	int argc;
25136	char **argv;
25137{
25138
25139	/* pthread test function */
25140#ifndef PTHREAD_CREATE_DETACHED
25141#define	PTHREAD_CREATE_DETACHED	1
25142#endif
25143	pthread_t t;
25144	int status;
25145	int detach = PTHREAD_CREATE_DETACHED;
25146
25147#if HAVE_PTHREADS > 4
25148	/* Final pthreads */
25149	pthread_attr_t attr;
25150
25151	status = pthread_attr_init(&attr);
25152	if( status ) return status;
25153
25154#if HAVE_PTHREADS < 7
25155	status = pthread_attr_setdetachstate(&attr, &detach);
25156	if( status < 0 ) status = errno;
25157#else
25158	status = pthread_attr_setdetachstate(&attr, detach);
25159#endif
25160	if( status ) return status;
25161	status = pthread_create( &t, &attr, task, NULL );
25162#if HAVE_PTHREADS < 7
25163	if( status < 0 ) status = errno;
25164#endif
25165	if( status ) return status;
25166#else
25167	/* Draft 4 pthreads */
25168	status = pthread_create( &t, pthread_attr_default, task, NULL );
25169	if( status ) return errno;
25170
25171	/* give thread a chance to complete */
25172	/* it should remain joinable and hence detachable */
25173	sleep( 1 );
25174
25175	status = pthread_detach( &t );
25176	if( status ) return errno;
25177#endif
25178
25179#ifdef HAVE_LINUX_THREADS
25180	pthread_kill_other_threads_np();
25181#endif
25182
25183	return 0;
25184
25185}
25186
25187_ACEOF
25188if ac_fn_c_try_run "$LINENO"; then :
25189  ol_cv_pthread_lpthread=yes
25190else
25191  ol_cv_pthread_lpthread=no
25192fi
25193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25194  conftest.$ac_objext conftest.beam conftest.$ac_ext
25195fi
25196
25197
25198		# restore the LIBS
25199		LIBS="$ol_LIBS"
25200
25201fi
25202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25203$as_echo "$ol_cv_pthread_lpthread" >&6; }
25204
25205	if test $ol_cv_pthread_lpthread = yes ; then
25206		ol_link_pthreads="-lpthread"
25207		ol_link_threads=posix
25208	fi
25209fi
25210
25211		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25212if test "$ol_link_threads" = no ; then
25213	# try -lc_r
25214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25215$as_echo_n "checking for pthread link with -lc_r... " >&6; }
25216if ${ol_cv_pthread_lc_r+:} false; then :
25217  $as_echo_n "(cached) " >&6
25218else
25219
25220		# save the flags
25221		ol_LIBS="$LIBS"
25222		LIBS="-lc_r $LIBS"
25223
25224		if test "$cross_compiling" = yes; then :
25225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226/* end confdefs.h.  */
25227
25228/* pthread test headers */
25229#include <pthread.h>
25230#if HAVE_PTHREADS < 7
25231#include <errno.h>
25232#endif
25233#ifndef NULL
25234#define NULL (void*)0
25235#endif
25236
25237static void *task(p)
25238	void *p;
25239{
25240	return (void *) (p == NULL);
25241}
25242
25243int
25244main ()
25245{
25246
25247	/* pthread test function */
25248#ifndef PTHREAD_CREATE_DETACHED
25249#define	PTHREAD_CREATE_DETACHED	1
25250#endif
25251	pthread_t t;
25252	int status;
25253	int detach = PTHREAD_CREATE_DETACHED;
25254
25255#if HAVE_PTHREADS > 4
25256	/* Final pthreads */
25257	pthread_attr_t attr;
25258
25259	status = pthread_attr_init(&attr);
25260	if( status ) return status;
25261
25262#if HAVE_PTHREADS < 7
25263	status = pthread_attr_setdetachstate(&attr, &detach);
25264	if( status < 0 ) status = errno;
25265#else
25266	status = pthread_attr_setdetachstate(&attr, detach);
25267#endif
25268	if( status ) return status;
25269	status = pthread_create( &t, &attr, task, NULL );
25270#if HAVE_PTHREADS < 7
25271	if( status < 0 ) status = errno;
25272#endif
25273	if( status ) return status;
25274#else
25275	/* Draft 4 pthreads */
25276	status = pthread_create( &t, pthread_attr_default, task, NULL );
25277	if( status ) return errno;
25278
25279	/* give thread a chance to complete */
25280	/* it should remain joinable and hence detachable */
25281	sleep( 1 );
25282
25283	status = pthread_detach( &t );
25284	if( status ) return errno;
25285#endif
25286
25287#ifdef HAVE_LINUX_THREADS
25288	pthread_kill_other_threads_np();
25289#endif
25290
25291	return 0;
25292
25293  ;
25294  return 0;
25295}
25296_ACEOF
25297if ac_fn_c_try_link "$LINENO"; then :
25298  ol_cv_pthread_lc_r=yes
25299else
25300  ol_cv_pthread_lc_r=no
25301fi
25302rm -f core conftest.err conftest.$ac_objext \
25303    conftest$ac_exeext conftest.$ac_ext
25304else
25305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306/* end confdefs.h.  */
25307
25308
25309/* pthread test headers */
25310#include <pthread.h>
25311#if HAVE_PTHREADS < 7
25312#include <errno.h>
25313#endif
25314#ifndef NULL
25315#define NULL (void*)0
25316#endif
25317
25318static void *task(p)
25319	void *p;
25320{
25321	return (void *) (p == NULL);
25322}
25323
25324
25325int main(argc, argv)
25326	int argc;
25327	char **argv;
25328{
25329
25330	/* pthread test function */
25331#ifndef PTHREAD_CREATE_DETACHED
25332#define	PTHREAD_CREATE_DETACHED	1
25333#endif
25334	pthread_t t;
25335	int status;
25336	int detach = PTHREAD_CREATE_DETACHED;
25337
25338#if HAVE_PTHREADS > 4
25339	/* Final pthreads */
25340	pthread_attr_t attr;
25341
25342	status = pthread_attr_init(&attr);
25343	if( status ) return status;
25344
25345#if HAVE_PTHREADS < 7
25346	status = pthread_attr_setdetachstate(&attr, &detach);
25347	if( status < 0 ) status = errno;
25348#else
25349	status = pthread_attr_setdetachstate(&attr, detach);
25350#endif
25351	if( status ) return status;
25352	status = pthread_create( &t, &attr, task, NULL );
25353#if HAVE_PTHREADS < 7
25354	if( status < 0 ) status = errno;
25355#endif
25356	if( status ) return status;
25357#else
25358	/* Draft 4 pthreads */
25359	status = pthread_create( &t, pthread_attr_default, task, NULL );
25360	if( status ) return errno;
25361
25362	/* give thread a chance to complete */
25363	/* it should remain joinable and hence detachable */
25364	sleep( 1 );
25365
25366	status = pthread_detach( &t );
25367	if( status ) return errno;
25368#endif
25369
25370#ifdef HAVE_LINUX_THREADS
25371	pthread_kill_other_threads_np();
25372#endif
25373
25374	return 0;
25375
25376}
25377
25378_ACEOF
25379if ac_fn_c_try_run "$LINENO"; then :
25380  ol_cv_pthread_lc_r=yes
25381else
25382  ol_cv_pthread_lc_r=no
25383fi
25384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25385  conftest.$ac_objext conftest.beam conftest.$ac_ext
25386fi
25387
25388
25389		# restore the LIBS
25390		LIBS="$ol_LIBS"
25391
25392fi
25393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25394$as_echo "$ol_cv_pthread_lc_r" >&6; }
25395
25396	if test $ol_cv_pthread_lc_r = yes ; then
25397		ol_link_pthreads="-lc_r"
25398		ol_link_threads=posix
25399	fi
25400fi
25401
25402
25403		# Pthread try link: -threads (ol_cv_pthread_threads)
25404if test "$ol_link_threads" = no ; then
25405	# try -threads
25406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25407$as_echo_n "checking for pthread link with -threads... " >&6; }
25408if ${ol_cv_pthread_threads+:} false; then :
25409  $as_echo_n "(cached) " >&6
25410else
25411
25412		# save the flags
25413		ol_LIBS="$LIBS"
25414		LIBS="-threads $LIBS"
25415
25416		if test "$cross_compiling" = yes; then :
25417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418/* end confdefs.h.  */
25419
25420/* pthread test headers */
25421#include <pthread.h>
25422#if HAVE_PTHREADS < 7
25423#include <errno.h>
25424#endif
25425#ifndef NULL
25426#define NULL (void*)0
25427#endif
25428
25429static void *task(p)
25430	void *p;
25431{
25432	return (void *) (p == NULL);
25433}
25434
25435int
25436main ()
25437{
25438
25439	/* pthread test function */
25440#ifndef PTHREAD_CREATE_DETACHED
25441#define	PTHREAD_CREATE_DETACHED	1
25442#endif
25443	pthread_t t;
25444	int status;
25445	int detach = PTHREAD_CREATE_DETACHED;
25446
25447#if HAVE_PTHREADS > 4
25448	/* Final pthreads */
25449	pthread_attr_t attr;
25450
25451	status = pthread_attr_init(&attr);
25452	if( status ) return status;
25453
25454#if HAVE_PTHREADS < 7
25455	status = pthread_attr_setdetachstate(&attr, &detach);
25456	if( status < 0 ) status = errno;
25457#else
25458	status = pthread_attr_setdetachstate(&attr, detach);
25459#endif
25460	if( status ) return status;
25461	status = pthread_create( &t, &attr, task, NULL );
25462#if HAVE_PTHREADS < 7
25463	if( status < 0 ) status = errno;
25464#endif
25465	if( status ) return status;
25466#else
25467	/* Draft 4 pthreads */
25468	status = pthread_create( &t, pthread_attr_default, task, NULL );
25469	if( status ) return errno;
25470
25471	/* give thread a chance to complete */
25472	/* it should remain joinable and hence detachable */
25473	sleep( 1 );
25474
25475	status = pthread_detach( &t );
25476	if( status ) return errno;
25477#endif
25478
25479#ifdef HAVE_LINUX_THREADS
25480	pthread_kill_other_threads_np();
25481#endif
25482
25483	return 0;
25484
25485  ;
25486  return 0;
25487}
25488_ACEOF
25489if ac_fn_c_try_link "$LINENO"; then :
25490  ol_cv_pthread_threads=yes
25491else
25492  ol_cv_pthread_threads=no
25493fi
25494rm -f core conftest.err conftest.$ac_objext \
25495    conftest$ac_exeext conftest.$ac_ext
25496else
25497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498/* end confdefs.h.  */
25499
25500
25501/* pthread test headers */
25502#include <pthread.h>
25503#if HAVE_PTHREADS < 7
25504#include <errno.h>
25505#endif
25506#ifndef NULL
25507#define NULL (void*)0
25508#endif
25509
25510static void *task(p)
25511	void *p;
25512{
25513	return (void *) (p == NULL);
25514}
25515
25516
25517int main(argc, argv)
25518	int argc;
25519	char **argv;
25520{
25521
25522	/* pthread test function */
25523#ifndef PTHREAD_CREATE_DETACHED
25524#define	PTHREAD_CREATE_DETACHED	1
25525#endif
25526	pthread_t t;
25527	int status;
25528	int detach = PTHREAD_CREATE_DETACHED;
25529
25530#if HAVE_PTHREADS > 4
25531	/* Final pthreads */
25532	pthread_attr_t attr;
25533
25534	status = pthread_attr_init(&attr);
25535	if( status ) return status;
25536
25537#if HAVE_PTHREADS < 7
25538	status = pthread_attr_setdetachstate(&attr, &detach);
25539	if( status < 0 ) status = errno;
25540#else
25541	status = pthread_attr_setdetachstate(&attr, detach);
25542#endif
25543	if( status ) return status;
25544	status = pthread_create( &t, &attr, task, NULL );
25545#if HAVE_PTHREADS < 7
25546	if( status < 0 ) status = errno;
25547#endif
25548	if( status ) return status;
25549#else
25550	/* Draft 4 pthreads */
25551	status = pthread_create( &t, pthread_attr_default, task, NULL );
25552	if( status ) return errno;
25553
25554	/* give thread a chance to complete */
25555	/* it should remain joinable and hence detachable */
25556	sleep( 1 );
25557
25558	status = pthread_detach( &t );
25559	if( status ) return errno;
25560#endif
25561
25562#ifdef HAVE_LINUX_THREADS
25563	pthread_kill_other_threads_np();
25564#endif
25565
25566	return 0;
25567
25568}
25569
25570_ACEOF
25571if ac_fn_c_try_run "$LINENO"; then :
25572  ol_cv_pthread_threads=yes
25573else
25574  ol_cv_pthread_threads=no
25575fi
25576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25577  conftest.$ac_objext conftest.beam conftest.$ac_ext
25578fi
25579
25580
25581		# restore the LIBS
25582		LIBS="$ol_LIBS"
25583
25584fi
25585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25586$as_echo "$ol_cv_pthread_threads" >&6; }
25587
25588	if test $ol_cv_pthread_threads = yes ; then
25589		ol_link_pthreads="-threads"
25590		ol_link_threads=posix
25591	fi
25592fi
25593
25594
25595		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25596if test "$ol_link_threads" = no ; then
25597	# try -lpthreads -lmach -lexc -lc_r
25598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25599$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25600if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25601  $as_echo_n "(cached) " >&6
25602else
25603
25604		# save the flags
25605		ol_LIBS="$LIBS"
25606		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25607
25608		if test "$cross_compiling" = yes; then :
25609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610/* end confdefs.h.  */
25611
25612/* pthread test headers */
25613#include <pthread.h>
25614#if HAVE_PTHREADS < 7
25615#include <errno.h>
25616#endif
25617#ifndef NULL
25618#define NULL (void*)0
25619#endif
25620
25621static void *task(p)
25622	void *p;
25623{
25624	return (void *) (p == NULL);
25625}
25626
25627int
25628main ()
25629{
25630
25631	/* pthread test function */
25632#ifndef PTHREAD_CREATE_DETACHED
25633#define	PTHREAD_CREATE_DETACHED	1
25634#endif
25635	pthread_t t;
25636	int status;
25637	int detach = PTHREAD_CREATE_DETACHED;
25638
25639#if HAVE_PTHREADS > 4
25640	/* Final pthreads */
25641	pthread_attr_t attr;
25642
25643	status = pthread_attr_init(&attr);
25644	if( status ) return status;
25645
25646#if HAVE_PTHREADS < 7
25647	status = pthread_attr_setdetachstate(&attr, &detach);
25648	if( status < 0 ) status = errno;
25649#else
25650	status = pthread_attr_setdetachstate(&attr, detach);
25651#endif
25652	if( status ) return status;
25653	status = pthread_create( &t, &attr, task, NULL );
25654#if HAVE_PTHREADS < 7
25655	if( status < 0 ) status = errno;
25656#endif
25657	if( status ) return status;
25658#else
25659	/* Draft 4 pthreads */
25660	status = pthread_create( &t, pthread_attr_default, task, NULL );
25661	if( status ) return errno;
25662
25663	/* give thread a chance to complete */
25664	/* it should remain joinable and hence detachable */
25665	sleep( 1 );
25666
25667	status = pthread_detach( &t );
25668	if( status ) return errno;
25669#endif
25670
25671#ifdef HAVE_LINUX_THREADS
25672	pthread_kill_other_threads_np();
25673#endif
25674
25675	return 0;
25676
25677  ;
25678  return 0;
25679}
25680_ACEOF
25681if ac_fn_c_try_link "$LINENO"; then :
25682  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25683else
25684  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25685fi
25686rm -f core conftest.err conftest.$ac_objext \
25687    conftest$ac_exeext conftest.$ac_ext
25688else
25689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690/* end confdefs.h.  */
25691
25692
25693/* pthread test headers */
25694#include <pthread.h>
25695#if HAVE_PTHREADS < 7
25696#include <errno.h>
25697#endif
25698#ifndef NULL
25699#define NULL (void*)0
25700#endif
25701
25702static void *task(p)
25703	void *p;
25704{
25705	return (void *) (p == NULL);
25706}
25707
25708
25709int main(argc, argv)
25710	int argc;
25711	char **argv;
25712{
25713
25714	/* pthread test function */
25715#ifndef PTHREAD_CREATE_DETACHED
25716#define	PTHREAD_CREATE_DETACHED	1
25717#endif
25718	pthread_t t;
25719	int status;
25720	int detach = PTHREAD_CREATE_DETACHED;
25721
25722#if HAVE_PTHREADS > 4
25723	/* Final pthreads */
25724	pthread_attr_t attr;
25725
25726	status = pthread_attr_init(&attr);
25727	if( status ) return status;
25728
25729#if HAVE_PTHREADS < 7
25730	status = pthread_attr_setdetachstate(&attr, &detach);
25731	if( status < 0 ) status = errno;
25732#else
25733	status = pthread_attr_setdetachstate(&attr, detach);
25734#endif
25735	if( status ) return status;
25736	status = pthread_create( &t, &attr, task, NULL );
25737#if HAVE_PTHREADS < 7
25738	if( status < 0 ) status = errno;
25739#endif
25740	if( status ) return status;
25741#else
25742	/* Draft 4 pthreads */
25743	status = pthread_create( &t, pthread_attr_default, task, NULL );
25744	if( status ) return errno;
25745
25746	/* give thread a chance to complete */
25747	/* it should remain joinable and hence detachable */
25748	sleep( 1 );
25749
25750	status = pthread_detach( &t );
25751	if( status ) return errno;
25752#endif
25753
25754#ifdef HAVE_LINUX_THREADS
25755	pthread_kill_other_threads_np();
25756#endif
25757
25758	return 0;
25759
25760}
25761
25762_ACEOF
25763if ac_fn_c_try_run "$LINENO"; then :
25764  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25765else
25766  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25767fi
25768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25769  conftest.$ac_objext conftest.beam conftest.$ac_ext
25770fi
25771
25772
25773		# restore the LIBS
25774		LIBS="$ol_LIBS"
25775
25776fi
25777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25778$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25779
25780	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25781		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25782		ol_link_threads=posix
25783	fi
25784fi
25785
25786		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25787if test "$ol_link_threads" = no ; then
25788	# try -lpthreads -lmach -lexc
25789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25790$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25791if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25792  $as_echo_n "(cached) " >&6
25793else
25794
25795		# save the flags
25796		ol_LIBS="$LIBS"
25797		LIBS="-lpthreads -lmach -lexc $LIBS"
25798
25799		if test "$cross_compiling" = yes; then :
25800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801/* end confdefs.h.  */
25802
25803/* pthread test headers */
25804#include <pthread.h>
25805#if HAVE_PTHREADS < 7
25806#include <errno.h>
25807#endif
25808#ifndef NULL
25809#define NULL (void*)0
25810#endif
25811
25812static void *task(p)
25813	void *p;
25814{
25815	return (void *) (p == NULL);
25816}
25817
25818int
25819main ()
25820{
25821
25822	/* pthread test function */
25823#ifndef PTHREAD_CREATE_DETACHED
25824#define	PTHREAD_CREATE_DETACHED	1
25825#endif
25826	pthread_t t;
25827	int status;
25828	int detach = PTHREAD_CREATE_DETACHED;
25829
25830#if HAVE_PTHREADS > 4
25831	/* Final pthreads */
25832	pthread_attr_t attr;
25833
25834	status = pthread_attr_init(&attr);
25835	if( status ) return status;
25836
25837#if HAVE_PTHREADS < 7
25838	status = pthread_attr_setdetachstate(&attr, &detach);
25839	if( status < 0 ) status = errno;
25840#else
25841	status = pthread_attr_setdetachstate(&attr, detach);
25842#endif
25843	if( status ) return status;
25844	status = pthread_create( &t, &attr, task, NULL );
25845#if HAVE_PTHREADS < 7
25846	if( status < 0 ) status = errno;
25847#endif
25848	if( status ) return status;
25849#else
25850	/* Draft 4 pthreads */
25851	status = pthread_create( &t, pthread_attr_default, task, NULL );
25852	if( status ) return errno;
25853
25854	/* give thread a chance to complete */
25855	/* it should remain joinable and hence detachable */
25856	sleep( 1 );
25857
25858	status = pthread_detach( &t );
25859	if( status ) return errno;
25860#endif
25861
25862#ifdef HAVE_LINUX_THREADS
25863	pthread_kill_other_threads_np();
25864#endif
25865
25866	return 0;
25867
25868  ;
25869  return 0;
25870}
25871_ACEOF
25872if ac_fn_c_try_link "$LINENO"; then :
25873  ol_cv_pthread_lpthreads_lmach_lexc=yes
25874else
25875  ol_cv_pthread_lpthreads_lmach_lexc=no
25876fi
25877rm -f core conftest.err conftest.$ac_objext \
25878    conftest$ac_exeext conftest.$ac_ext
25879else
25880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25881/* end confdefs.h.  */
25882
25883
25884/* pthread test headers */
25885#include <pthread.h>
25886#if HAVE_PTHREADS < 7
25887#include <errno.h>
25888#endif
25889#ifndef NULL
25890#define NULL (void*)0
25891#endif
25892
25893static void *task(p)
25894	void *p;
25895{
25896	return (void *) (p == NULL);
25897}
25898
25899
25900int main(argc, argv)
25901	int argc;
25902	char **argv;
25903{
25904
25905	/* pthread test function */
25906#ifndef PTHREAD_CREATE_DETACHED
25907#define	PTHREAD_CREATE_DETACHED	1
25908#endif
25909	pthread_t t;
25910	int status;
25911	int detach = PTHREAD_CREATE_DETACHED;
25912
25913#if HAVE_PTHREADS > 4
25914	/* Final pthreads */
25915	pthread_attr_t attr;
25916
25917	status = pthread_attr_init(&attr);
25918	if( status ) return status;
25919
25920#if HAVE_PTHREADS < 7
25921	status = pthread_attr_setdetachstate(&attr, &detach);
25922	if( status < 0 ) status = errno;
25923#else
25924	status = pthread_attr_setdetachstate(&attr, detach);
25925#endif
25926	if( status ) return status;
25927	status = pthread_create( &t, &attr, task, NULL );
25928#if HAVE_PTHREADS < 7
25929	if( status < 0 ) status = errno;
25930#endif
25931	if( status ) return status;
25932#else
25933	/* Draft 4 pthreads */
25934	status = pthread_create( &t, pthread_attr_default, task, NULL );
25935	if( status ) return errno;
25936
25937	/* give thread a chance to complete */
25938	/* it should remain joinable and hence detachable */
25939	sleep( 1 );
25940
25941	status = pthread_detach( &t );
25942	if( status ) return errno;
25943#endif
25944
25945#ifdef HAVE_LINUX_THREADS
25946	pthread_kill_other_threads_np();
25947#endif
25948
25949	return 0;
25950
25951}
25952
25953_ACEOF
25954if ac_fn_c_try_run "$LINENO"; then :
25955  ol_cv_pthread_lpthreads_lmach_lexc=yes
25956else
25957  ol_cv_pthread_lpthreads_lmach_lexc=no
25958fi
25959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25960  conftest.$ac_objext conftest.beam conftest.$ac_ext
25961fi
25962
25963
25964		# restore the LIBS
25965		LIBS="$ol_LIBS"
25966
25967fi
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
25969$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
25970
25971	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
25972		ol_link_pthreads="-lpthreads -lmach -lexc"
25973		ol_link_threads=posix
25974	fi
25975fi
25976
25977		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
25978if test "$ol_link_threads" = no ; then
25979	# try -lpthreads -lexc
25980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
25981$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
25982if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
25983  $as_echo_n "(cached) " >&6
25984else
25985
25986		# save the flags
25987		ol_LIBS="$LIBS"
25988		LIBS="-lpthreads -lexc $LIBS"
25989
25990		if test "$cross_compiling" = yes; then :
25991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992/* end confdefs.h.  */
25993
25994/* pthread test headers */
25995#include <pthread.h>
25996#if HAVE_PTHREADS < 7
25997#include <errno.h>
25998#endif
25999#ifndef NULL
26000#define NULL (void*)0
26001#endif
26002
26003static void *task(p)
26004	void *p;
26005{
26006	return (void *) (p == NULL);
26007}
26008
26009int
26010main ()
26011{
26012
26013	/* pthread test function */
26014#ifndef PTHREAD_CREATE_DETACHED
26015#define	PTHREAD_CREATE_DETACHED	1
26016#endif
26017	pthread_t t;
26018	int status;
26019	int detach = PTHREAD_CREATE_DETACHED;
26020
26021#if HAVE_PTHREADS > 4
26022	/* Final pthreads */
26023	pthread_attr_t attr;
26024
26025	status = pthread_attr_init(&attr);
26026	if( status ) return status;
26027
26028#if HAVE_PTHREADS < 7
26029	status = pthread_attr_setdetachstate(&attr, &detach);
26030	if( status < 0 ) status = errno;
26031#else
26032	status = pthread_attr_setdetachstate(&attr, detach);
26033#endif
26034	if( status ) return status;
26035	status = pthread_create( &t, &attr, task, NULL );
26036#if HAVE_PTHREADS < 7
26037	if( status < 0 ) status = errno;
26038#endif
26039	if( status ) return status;
26040#else
26041	/* Draft 4 pthreads */
26042	status = pthread_create( &t, pthread_attr_default, task, NULL );
26043	if( status ) return errno;
26044
26045	/* give thread a chance to complete */
26046	/* it should remain joinable and hence detachable */
26047	sleep( 1 );
26048
26049	status = pthread_detach( &t );
26050	if( status ) return errno;
26051#endif
26052
26053#ifdef HAVE_LINUX_THREADS
26054	pthread_kill_other_threads_np();
26055#endif
26056
26057	return 0;
26058
26059  ;
26060  return 0;
26061}
26062_ACEOF
26063if ac_fn_c_try_link "$LINENO"; then :
26064  ol_cv_pthread_lpthreads_lexc=yes
26065else
26066  ol_cv_pthread_lpthreads_lexc=no
26067fi
26068rm -f core conftest.err conftest.$ac_objext \
26069    conftest$ac_exeext conftest.$ac_ext
26070else
26071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072/* end confdefs.h.  */
26073
26074
26075/* pthread test headers */
26076#include <pthread.h>
26077#if HAVE_PTHREADS < 7
26078#include <errno.h>
26079#endif
26080#ifndef NULL
26081#define NULL (void*)0
26082#endif
26083
26084static void *task(p)
26085	void *p;
26086{
26087	return (void *) (p == NULL);
26088}
26089
26090
26091int main(argc, argv)
26092	int argc;
26093	char **argv;
26094{
26095
26096	/* pthread test function */
26097#ifndef PTHREAD_CREATE_DETACHED
26098#define	PTHREAD_CREATE_DETACHED	1
26099#endif
26100	pthread_t t;
26101	int status;
26102	int detach = PTHREAD_CREATE_DETACHED;
26103
26104#if HAVE_PTHREADS > 4
26105	/* Final pthreads */
26106	pthread_attr_t attr;
26107
26108	status = pthread_attr_init(&attr);
26109	if( status ) return status;
26110
26111#if HAVE_PTHREADS < 7
26112	status = pthread_attr_setdetachstate(&attr, &detach);
26113	if( status < 0 ) status = errno;
26114#else
26115	status = pthread_attr_setdetachstate(&attr, detach);
26116#endif
26117	if( status ) return status;
26118	status = pthread_create( &t, &attr, task, NULL );
26119#if HAVE_PTHREADS < 7
26120	if( status < 0 ) status = errno;
26121#endif
26122	if( status ) return status;
26123#else
26124	/* Draft 4 pthreads */
26125	status = pthread_create( &t, pthread_attr_default, task, NULL );
26126	if( status ) return errno;
26127
26128	/* give thread a chance to complete */
26129	/* it should remain joinable and hence detachable */
26130	sleep( 1 );
26131
26132	status = pthread_detach( &t );
26133	if( status ) return errno;
26134#endif
26135
26136#ifdef HAVE_LINUX_THREADS
26137	pthread_kill_other_threads_np();
26138#endif
26139
26140	return 0;
26141
26142}
26143
26144_ACEOF
26145if ac_fn_c_try_run "$LINENO"; then :
26146  ol_cv_pthread_lpthreads_lexc=yes
26147else
26148  ol_cv_pthread_lpthreads_lexc=no
26149fi
26150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26151  conftest.$ac_objext conftest.beam conftest.$ac_ext
26152fi
26153
26154
26155		# restore the LIBS
26156		LIBS="$ol_LIBS"
26157
26158fi
26159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26160$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26161
26162	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26163		ol_link_pthreads="-lpthreads -lexc"
26164		ol_link_threads=posix
26165	fi
26166fi
26167
26168
26169		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26170if test "$ol_link_threads" = no ; then
26171	# try -lpthreads
26172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26173$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26174if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26175  $as_echo_n "(cached) " >&6
26176else
26177
26178		# save the flags
26179		ol_LIBS="$LIBS"
26180		LIBS="-lpthreads $LIBS"
26181
26182		if test "$cross_compiling" = yes; then :
26183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184/* end confdefs.h.  */
26185
26186/* pthread test headers */
26187#include <pthread.h>
26188#if HAVE_PTHREADS < 7
26189#include <errno.h>
26190#endif
26191#ifndef NULL
26192#define NULL (void*)0
26193#endif
26194
26195static void *task(p)
26196	void *p;
26197{
26198	return (void *) (p == NULL);
26199}
26200
26201int
26202main ()
26203{
26204
26205	/* pthread test function */
26206#ifndef PTHREAD_CREATE_DETACHED
26207#define	PTHREAD_CREATE_DETACHED	1
26208#endif
26209	pthread_t t;
26210	int status;
26211	int detach = PTHREAD_CREATE_DETACHED;
26212
26213#if HAVE_PTHREADS > 4
26214	/* Final pthreads */
26215	pthread_attr_t attr;
26216
26217	status = pthread_attr_init(&attr);
26218	if( status ) return status;
26219
26220#if HAVE_PTHREADS < 7
26221	status = pthread_attr_setdetachstate(&attr, &detach);
26222	if( status < 0 ) status = errno;
26223#else
26224	status = pthread_attr_setdetachstate(&attr, detach);
26225#endif
26226	if( status ) return status;
26227	status = pthread_create( &t, &attr, task, NULL );
26228#if HAVE_PTHREADS < 7
26229	if( status < 0 ) status = errno;
26230#endif
26231	if( status ) return status;
26232#else
26233	/* Draft 4 pthreads */
26234	status = pthread_create( &t, pthread_attr_default, task, NULL );
26235	if( status ) return errno;
26236
26237	/* give thread a chance to complete */
26238	/* it should remain joinable and hence detachable */
26239	sleep( 1 );
26240
26241	status = pthread_detach( &t );
26242	if( status ) return errno;
26243#endif
26244
26245#ifdef HAVE_LINUX_THREADS
26246	pthread_kill_other_threads_np();
26247#endif
26248
26249	return 0;
26250
26251  ;
26252  return 0;
26253}
26254_ACEOF
26255if ac_fn_c_try_link "$LINENO"; then :
26256  ol_cv_pthread_lib_lpthreads=yes
26257else
26258  ol_cv_pthread_lib_lpthreads=no
26259fi
26260rm -f core conftest.err conftest.$ac_objext \
26261    conftest$ac_exeext conftest.$ac_ext
26262else
26263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264/* end confdefs.h.  */
26265
26266
26267/* pthread test headers */
26268#include <pthread.h>
26269#if HAVE_PTHREADS < 7
26270#include <errno.h>
26271#endif
26272#ifndef NULL
26273#define NULL (void*)0
26274#endif
26275
26276static void *task(p)
26277	void *p;
26278{
26279	return (void *) (p == NULL);
26280}
26281
26282
26283int main(argc, argv)
26284	int argc;
26285	char **argv;
26286{
26287
26288	/* pthread test function */
26289#ifndef PTHREAD_CREATE_DETACHED
26290#define	PTHREAD_CREATE_DETACHED	1
26291#endif
26292	pthread_t t;
26293	int status;
26294	int detach = PTHREAD_CREATE_DETACHED;
26295
26296#if HAVE_PTHREADS > 4
26297	/* Final pthreads */
26298	pthread_attr_t attr;
26299
26300	status = pthread_attr_init(&attr);
26301	if( status ) return status;
26302
26303#if HAVE_PTHREADS < 7
26304	status = pthread_attr_setdetachstate(&attr, &detach);
26305	if( status < 0 ) status = errno;
26306#else
26307	status = pthread_attr_setdetachstate(&attr, detach);
26308#endif
26309	if( status ) return status;
26310	status = pthread_create( &t, &attr, task, NULL );
26311#if HAVE_PTHREADS < 7
26312	if( status < 0 ) status = errno;
26313#endif
26314	if( status ) return status;
26315#else
26316	/* Draft 4 pthreads */
26317	status = pthread_create( &t, pthread_attr_default, task, NULL );
26318	if( status ) return errno;
26319
26320	/* give thread a chance to complete */
26321	/* it should remain joinable and hence detachable */
26322	sleep( 1 );
26323
26324	status = pthread_detach( &t );
26325	if( status ) return errno;
26326#endif
26327
26328#ifdef HAVE_LINUX_THREADS
26329	pthread_kill_other_threads_np();
26330#endif
26331
26332	return 0;
26333
26334}
26335
26336_ACEOF
26337if ac_fn_c_try_run "$LINENO"; then :
26338  ol_cv_pthread_lib_lpthreads=yes
26339else
26340  ol_cv_pthread_lib_lpthreads=no
26341fi
26342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26343  conftest.$ac_objext conftest.beam conftest.$ac_ext
26344fi
26345
26346
26347		# restore the LIBS
26348		LIBS="$ol_LIBS"
26349
26350fi
26351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26352$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26353
26354	if test $ol_cv_pthread_lib_lpthreads = yes ; then
26355		ol_link_pthreads="-lpthreads"
26356		ol_link_threads=posix
26357	fi
26358fi
26359
26360
26361		if test $ol_link_threads != no ; then
26362			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26363
26364						save_CPPFLAGS="$CPPFLAGS"
26365			save_LIBS="$LIBS"
26366			LIBS="$LTHREAD_LIBS $LIBS"
26367
26368												for ac_func in sched_yield pthread_yield thr_yield
26369do :
26370  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26371ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26372if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26373  cat >>confdefs.h <<_ACEOF
26374#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26375_ACEOF
26376
26377fi
26378done
26379
26380
26381			if test $ac_cv_func_sched_yield = no &&
26382			   test $ac_cv_func_pthread_yield = no &&
26383			   test $ac_cv_func_thr_yield = no ; then
26384								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26385$as_echo_n "checking for sched_yield in -lrt... " >&6; }
26386if ${ac_cv_lib_rt_sched_yield+:} false; then :
26387  $as_echo_n "(cached) " >&6
26388else
26389  ac_check_lib_save_LIBS=$LIBS
26390LIBS="-lrt  $LIBS"
26391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26392/* end confdefs.h.  */
26393
26394/* Override any GCC internal prototype to avoid an error.
26395   Use char because int might match the return type of a GCC
26396   builtin and then its argument prototype would still apply.  */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400char sched_yield ();
26401int
26402main ()
26403{
26404return sched_yield ();
26405  ;
26406  return 0;
26407}
26408_ACEOF
26409if ac_fn_c_try_link "$LINENO"; then :
26410  ac_cv_lib_rt_sched_yield=yes
26411else
26412  ac_cv_lib_rt_sched_yield=no
26413fi
26414rm -f core conftest.err conftest.$ac_objext \
26415    conftest$ac_exeext conftest.$ac_ext
26416LIBS=$ac_check_lib_save_LIBS
26417fi
26418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26419$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26420if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26421  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26422
26423$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26424
26425					ac_cv_func_sched_yield=yes
26426else
26427  ac_cv_func_sched_yield=no
26428fi
26429
26430			fi
26431			if test $ac_cv_func_sched_yield = no &&
26432			   test $ac_cv_func_pthread_yield = no &&
26433			   test "$ac_cv_func_thr_yield" = no ; then
26434				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26435$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26436			fi
26437
26438						for ac_func in pthread_kill
26439do :
26440  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26441if test "x$ac_cv_func_pthread_kill" = xyes; then :
26442  cat >>confdefs.h <<_ACEOF
26443#define HAVE_PTHREAD_KILL 1
26444_ACEOF
26445
26446fi
26447done
26448
26449
26450									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26451$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26452if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26453  $as_echo_n "(cached) " >&6
26454else
26455
26456								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26457/* end confdefs.h.  */
26458
26459#include <pthread.h>
26460pthread_rwlock_t rwlock;
26461
26462int
26463main ()
26464{
26465pthread_rwlock_destroy(&rwlock);
26466  ;
26467  return 0;
26468}
26469_ACEOF
26470if ac_fn_c_try_link "$LINENO"; then :
26471  ol_cv_func_pthread_rwlock_destroy=yes
26472else
26473  ol_cv_func_pthread_rwlock_destroy=no
26474fi
26475rm -f core conftest.err conftest.$ac_objext \
26476    conftest$ac_exeext conftest.$ac_ext
26477
26478fi
26479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26480$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26481			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26482
26483$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26484
26485			fi
26486
26487									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26488$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26489if ${ol_cv_func_pthread_detach+:} false; then :
26490  $as_echo_n "(cached) " >&6
26491else
26492
26493								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494/* end confdefs.h.  */
26495
26496#include <pthread.h>
26497#ifndef NULL
26498#define NULL (void*)0
26499#endif
26500
26501int
26502main ()
26503{
26504pthread_detach(NULL);
26505  ;
26506  return 0;
26507}
26508_ACEOF
26509if ac_fn_c_try_link "$LINENO"; then :
26510  ol_cv_func_pthread_detach=yes
26511else
26512  ol_cv_func_pthread_detach=no
26513fi
26514rm -f core conftest.err conftest.$ac_objext \
26515    conftest$ac_exeext conftest.$ac_ext
26516
26517fi
26518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26519$as_echo "$ol_cv_func_pthread_detach" >&6; }
26520
26521			if test $ol_cv_func_pthread_detach = no ; then
26522				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26523			fi
26524
26525
26526$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26527
26528
26529						for ac_func in \
26530				pthread_setconcurrency \
26531				pthread_getconcurrency \
26532				thr_setconcurrency \
26533				thr_getconcurrency \
26534
26535do :
26536  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26538if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26539  cat >>confdefs.h <<_ACEOF
26540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26541_ACEOF
26542
26543fi
26544done
26545
26546
26547
26548	for ac_func in pthread_kill_other_threads_np
26549do :
26550  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26551if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26552  cat >>confdefs.h <<_ACEOF
26553#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26554_ACEOF
26555
26556fi
26557done
26558
26559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26560$as_echo_n "checking for LinuxThreads implementation... " >&6; }
26561if ${ol_cv_sys_linux_threads+:} false; then :
26562  $as_echo_n "(cached) " >&6
26563else
26564  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26565fi
26566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26567$as_echo "$ol_cv_sys_linux_threads" >&6; }
26568
26569
26570
26571
26572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26573$as_echo_n "checking for LinuxThreads consistency... " >&6; }
26574if ${ol_cv_linux_threads+:} false; then :
26575  $as_echo_n "(cached) " >&6
26576else
26577
26578		if test $ol_cv_header_linux_threads = yes &&
26579		   test $ol_cv_sys_linux_threads = yes; then
26580			ol_cv_linux_threads=yes
26581		elif test $ol_cv_header_linux_threads = no &&
26582		     test $ol_cv_sys_linux_threads = no; then
26583			ol_cv_linux_threads=no
26584		else
26585			ol_cv_linux_threads=error
26586		fi
26587
26588fi
26589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26590$as_echo "$ol_cv_linux_threads" >&6; }
26591
26592
26593			if test $ol_cv_linux_threads = error; then
26594				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26595			fi
26596
26597			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26598$as_echo_n "checking if pthread_create() works... " >&6; }
26599if ${ol_cv_pthread_create_works+:} false; then :
26600  $as_echo_n "(cached) " >&6
26601else
26602
26603			if test "$cross_compiling" = yes; then :
26604  				ol_cv_pthread_create_works=yes
26605else
26606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26607/* end confdefs.h.  */
26608
26609
26610/* pthread test headers */
26611#include <pthread.h>
26612#if HAVE_PTHREADS < 7
26613#include <errno.h>
26614#endif
26615#ifndef NULL
26616#define NULL (void*)0
26617#endif
26618
26619static void *task(p)
26620	void *p;
26621{
26622	return (void *) (p == NULL);
26623}
26624
26625
26626int main(argc, argv)
26627	int argc;
26628	char **argv;
26629{
26630
26631	/* pthread test function */
26632#ifndef PTHREAD_CREATE_DETACHED
26633#define	PTHREAD_CREATE_DETACHED	1
26634#endif
26635	pthread_t t;
26636	int status;
26637	int detach = PTHREAD_CREATE_DETACHED;
26638
26639#if HAVE_PTHREADS > 4
26640	/* Final pthreads */
26641	pthread_attr_t attr;
26642
26643	status = pthread_attr_init(&attr);
26644	if( status ) return status;
26645
26646#if HAVE_PTHREADS < 7
26647	status = pthread_attr_setdetachstate(&attr, &detach);
26648	if( status < 0 ) status = errno;
26649#else
26650	status = pthread_attr_setdetachstate(&attr, detach);
26651#endif
26652	if( status ) return status;
26653	status = pthread_create( &t, &attr, task, NULL );
26654#if HAVE_PTHREADS < 7
26655	if( status < 0 ) status = errno;
26656#endif
26657	if( status ) return status;
26658#else
26659	/* Draft 4 pthreads */
26660	status = pthread_create( &t, pthread_attr_default, task, NULL );
26661	if( status ) return errno;
26662
26663	/* give thread a chance to complete */
26664	/* it should remain joinable and hence detachable */
26665	sleep( 1 );
26666
26667	status = pthread_detach( &t );
26668	if( status ) return errno;
26669#endif
26670
26671#ifdef HAVE_LINUX_THREADS
26672	pthread_kill_other_threads_np();
26673#endif
26674
26675	return 0;
26676
26677}
26678
26679_ACEOF
26680if ac_fn_c_try_run "$LINENO"; then :
26681  ol_cv_pthread_create_works=yes
26682else
26683  ol_cv_pthread_create_works=no
26684fi
26685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26686  conftest.$ac_objext conftest.beam conftest.$ac_ext
26687fi
26688
26689fi
26690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26691$as_echo "$ol_cv_pthread_create_works" >&6; }
26692
26693			if test $ol_cv_pthread_create_works = no ; then
26694				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26695			fi
26696
26697			ol_replace_broken_yield=no
26698
26699			if test $ol_replace_broken_yield = yes ; then
26700
26701$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26702
26703			fi
26704
26705						if test x$ol_with_yielding_select = xauto ; then
26706				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26707$as_echo_n "checking if select yields when using pthreads... " >&6; }
26708if ${ol_cv_pthread_select_yields+:} false; then :
26709  $as_echo_n "(cached) " >&6
26710else
26711
26712				if test "$cross_compiling" = yes; then :
26713  ol_cv_pthread_select_yields=cross
26714else
26715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716/* end confdefs.h.  */
26717
26718#include <sys/types.h>
26719#include <sys/time.h>
26720#include <unistd.h>
26721#include <pthread.h>
26722#ifndef NULL
26723#define NULL (void*) 0
26724#endif
26725
26726static int fildes[2];
26727
26728static void *task(p)
26729	void *p;
26730{
26731	int i;
26732	struct timeval tv;
26733
26734	fd_set rfds;
26735
26736	tv.tv_sec=10;
26737	tv.tv_usec=0;
26738
26739	FD_ZERO(&rfds);
26740	FD_SET(fildes[0], &rfds);
26741
26742	/* we're not interested in any fds */
26743	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26744
26745	if(i < 0) {
26746		perror("select");
26747		exit(10);
26748	}
26749
26750	exit(0); /* if we exit here, the select blocked the whole process */
26751}
26752
26753int main(argc, argv)
26754	int argc;
26755	char **argv;
26756{
26757	pthread_t t;
26758
26759	/* create a pipe to select */
26760	if(pipe(&fildes[0])) {
26761		perror("select");
26762		exit(1);
26763	}
26764
26765#ifdef HAVE_PTHREAD_SETCONCURRENCY
26766	(void) pthread_setconcurrency(2);
26767#else
26768#ifdef HAVE_THR_SETCONCURRENCY
26769	/* Set Solaris LWP concurrency to 2 */
26770	thr_setconcurrency(2);
26771#endif
26772#endif
26773
26774#if HAVE_PTHREADS < 6
26775	pthread_create(&t, pthread_attr_default, task, NULL);
26776#else
26777	pthread_create(&t, NULL, task, NULL);
26778#endif
26779
26780	/* make sure task runs first */
26781#ifdef HAVE_THR_YIELD
26782	thr_yield();
26783#elif defined( HAVE_SCHED_YIELD )
26784	sched_yield();
26785#elif defined( HAVE_PTHREAD_YIELD )
26786	pthread_yield();
26787#endif
26788
26789	exit(2);
26790}
26791_ACEOF
26792if ac_fn_c_try_run "$LINENO"; then :
26793  ol_cv_pthread_select_yields=no
26794else
26795  ol_cv_pthread_select_yields=yes
26796fi
26797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26798  conftest.$ac_objext conftest.beam conftest.$ac_ext
26799fi
26800
26801fi
26802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26803$as_echo "$ol_cv_pthread_select_yields" >&6; }
26804
26805				if test $ol_cv_pthread_select_yields = cross ; then
26806					as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26807				fi
26808
26809				if test $ol_cv_pthread_select_yields = yes ; then
26810					ol_with_yielding_select=yes
26811				fi
26812			fi
26813
26814						CPPFLAGS="$save_CPPFLAGS"
26815			LIBS="$save_LIBS"
26816		else
26817			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26818		fi
26819	fi
26820
26821	if test $ol_with_threads = posix ; then
26822		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26823	fi
26824	;;
26825esac
26826
26827case $ol_with_threads in auto | yes | mach)
26828
26829		for ac_header in mach/cthreads.h cthreads.h
26830do :
26831  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26832ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26834  cat >>confdefs.h <<_ACEOF
26835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26836_ACEOF
26837
26838fi
26839
26840done
26841
26842	if test $ac_cv_header_mach_cthreads_h = yes ; then
26843		ol_with_threads=found
26844
26845				ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26846if test "x$ac_cv_func_cthread_fork" = xyes; then :
26847  ol_link_threads=yes
26848fi
26849
26850
26851		if test $ol_link_threads = no ; then
26852									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26853$as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26854if ${ol_cv_cthread_all_load+:} false; then :
26855  $as_echo_n "(cached) " >&6
26856else
26857
26858								save_LIBS="$LIBS"
26859				LIBS="-all_load $LIBS"
26860				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861/* end confdefs.h.  */
26862#include <mach/cthreads.h>
26863int
26864main ()
26865{
26866
26867					cthread_fork((void *)0, (void *)0);
26868
26869  ;
26870  return 0;
26871}
26872_ACEOF
26873if ac_fn_c_try_link "$LINENO"; then :
26874  ol_cv_cthread_all_load=yes
26875else
26876  ol_cv_cthread_all_load=no
26877fi
26878rm -f core conftest.err conftest.$ac_objext \
26879    conftest$ac_exeext conftest.$ac_ext
26880								LIBS="$save_LIBS"
26881
26882fi
26883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26884$as_echo "$ol_cv_cthread_all_load" >&6; }
26885
26886			if test $ol_cv_cthread_all_load = yes ; then
26887				LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26888				ol_link_threads=mach
26889				ol_with_threads=found
26890			fi
26891		fi
26892
26893	elif test $ac_cv_header_cthreads_h = yes ; then
26894
26895		ol_with_threads=found
26896
26897				save_LIBS="$LIBS"
26898		LIBS="$LIBS -lthreads"
26899		ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26900if test "x$ac_cv_func_cthread_fork" = xyes; then :
26901  ol_link_threads=yes
26902fi
26903
26904		LIBS="$save_LIBS"
26905
26906		if test $ol_link_threads = yes ; then
26907			LTHREAD_LIBS="-lthreads"
26908			ol_link_threads=mach
26909			ol_with_threads=found
26910		else
26911			as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26912		fi
26913
26914	elif test $ol_with_threads = mach ; then
26915		as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26916	fi
26917
26918	if test $ol_link_threads = mach ; then
26919
26920$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26921
26922	elif test $ol_with_threads = found ; then
26923		as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26924	fi
26925	;;
26926esac
26927
26928case $ol_with_threads in auto | yes | pth)
26929
26930	for ac_header in pth.h
26931do :
26932  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
26933if test "x$ac_cv_header_pth_h" = xyes; then :
26934  cat >>confdefs.h <<_ACEOF
26935#define HAVE_PTH_H 1
26936_ACEOF
26937
26938fi
26939
26940done
26941
26942
26943	if test $ac_cv_header_pth_h = yes ; then
26944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
26945$as_echo_n "checking for pth_version in -lpth... " >&6; }
26946if ${ac_cv_lib_pth_pth_version+:} false; then :
26947  $as_echo_n "(cached) " >&6
26948else
26949  ac_check_lib_save_LIBS=$LIBS
26950LIBS="-lpth  $LIBS"
26951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952/* end confdefs.h.  */
26953
26954/* Override any GCC internal prototype to avoid an error.
26955   Use char because int might match the return type of a GCC
26956   builtin and then its argument prototype would still apply.  */
26957#ifdef __cplusplus
26958extern "C"
26959#endif
26960char pth_version ();
26961int
26962main ()
26963{
26964return pth_version ();
26965  ;
26966  return 0;
26967}
26968_ACEOF
26969if ac_fn_c_try_link "$LINENO"; then :
26970  ac_cv_lib_pth_pth_version=yes
26971else
26972  ac_cv_lib_pth_pth_version=no
26973fi
26974rm -f core conftest.err conftest.$ac_objext \
26975    conftest$ac_exeext conftest.$ac_ext
26976LIBS=$ac_check_lib_save_LIBS
26977fi
26978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
26979$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
26980if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
26981  have_pth=yes
26982else
26983  have_pth=no
26984fi
26985
26986
26987		if test $have_pth = yes ; then
26988
26989$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
26990
26991			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26992			ol_link_threads=pth
26993			ol_with_threads=found
26994
26995			if test x$ol_with_yielding_select = xauto ; then
26996				ol_with_yielding_select=yes
26997			fi
26998		fi
26999	fi
27000	;;
27001esac
27002
27003case $ol_with_threads in auto | yes | lwp)
27004
27005		for ac_header in thread.h synch.h
27006do :
27007  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27008ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27010  cat >>confdefs.h <<_ACEOF
27011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27012_ACEOF
27013
27014fi
27015
27016done
27017
27018	if test $ac_cv_header_thread_h = yes &&
27019	   test $ac_cv_header_synch_h = yes ; then
27020		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27021$as_echo_n "checking for thr_create in -lthread... " >&6; }
27022if ${ac_cv_lib_thread_thr_create+:} false; then :
27023  $as_echo_n "(cached) " >&6
27024else
27025  ac_check_lib_save_LIBS=$LIBS
27026LIBS="-lthread  $LIBS"
27027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028/* end confdefs.h.  */
27029
27030/* Override any GCC internal prototype to avoid an error.
27031   Use char because int might match the return type of a GCC
27032   builtin and then its argument prototype would still apply.  */
27033#ifdef __cplusplus
27034extern "C"
27035#endif
27036char thr_create ();
27037int
27038main ()
27039{
27040return thr_create ();
27041  ;
27042  return 0;
27043}
27044_ACEOF
27045if ac_fn_c_try_link "$LINENO"; then :
27046  ac_cv_lib_thread_thr_create=yes
27047else
27048  ac_cv_lib_thread_thr_create=no
27049fi
27050rm -f core conftest.err conftest.$ac_objext \
27051    conftest$ac_exeext conftest.$ac_ext
27052LIBS=$ac_check_lib_save_LIBS
27053fi
27054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27055$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27056if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27057  have_thr=yes
27058else
27059  have_thr=no
27060fi
27061
27062
27063		if test $have_thr = yes ; then
27064
27065$as_echo "#define HAVE_THR 1" >>confdefs.h
27066
27067			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27068			ol_link_threads=thr
27069
27070			if test x$ol_with_yielding_select = xauto ; then
27071				ol_with_yielding_select=yes
27072			fi
27073
27074						for ac_func in \
27075				thr_setconcurrency \
27076				thr_getconcurrency \
27077
27078do :
27079  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27080ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27081if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27082  cat >>confdefs.h <<_ACEOF
27083#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27084_ACEOF
27085
27086fi
27087done
27088
27089		fi
27090	fi
27091
27092		for ac_header in lwp/lwp.h
27093do :
27094  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27095if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27096  cat >>confdefs.h <<_ACEOF
27097#define HAVE_LWP_LWP_H 1
27098_ACEOF
27099
27100fi
27101
27102done
27103
27104	if test $ac_cv_header_lwp_lwp_h = yes ; then
27105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27106$as_echo_n "checking for lwp_create in -llwp... " >&6; }
27107if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27108  $as_echo_n "(cached) " >&6
27109else
27110  ac_check_lib_save_LIBS=$LIBS
27111LIBS="-llwp  $LIBS"
27112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27113/* end confdefs.h.  */
27114
27115/* Override any GCC internal prototype to avoid an error.
27116   Use char because int might match the return type of a GCC
27117   builtin and then its argument prototype would still apply.  */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121char lwp_create ();
27122int
27123main ()
27124{
27125return lwp_create ();
27126  ;
27127  return 0;
27128}
27129_ACEOF
27130if ac_fn_c_try_link "$LINENO"; then :
27131  ac_cv_lib_lwp_lwp_create=yes
27132else
27133  ac_cv_lib_lwp_lwp_create=no
27134fi
27135rm -f core conftest.err conftest.$ac_objext \
27136    conftest$ac_exeext conftest.$ac_ext
27137LIBS=$ac_check_lib_save_LIBS
27138fi
27139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27140$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27141if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27142  have_lwp=yes
27143else
27144  have_lwp=no
27145fi
27146
27147
27148		if test $have_lwp = yes ; then
27149
27150$as_echo "#define HAVE_LWP 1" >>confdefs.h
27151
27152			LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27153			ol_link_threads=lwp
27154
27155			if test x$ol_with_yielding_select = xauto ; then
27156				ol_with_yielding_select=no
27157			fi
27158		fi
27159	fi
27160	;;
27161esac
27162
27163if test $ol_with_yielding_select = yes ; then
27164
27165$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27166
27167fi
27168
27169if test $ol_with_threads = manual ; then
27170		ol_link_threads=yes
27171
27172	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27173$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27174
27175	for ac_header in pthread.h sched.h
27176do :
27177  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27178ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27179if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27180  cat >>confdefs.h <<_ACEOF
27181#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27182_ACEOF
27183
27184fi
27185
27186done
27187
27188	for ac_func in sched_yield pthread_yield
27189do :
27190  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27191ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27192if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27193  cat >>confdefs.h <<_ACEOF
27194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27195_ACEOF
27196
27197fi
27198done
27199
27200
27201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27202$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27203if ${ol_cv_header_linux_threads+:} false; then :
27204  $as_echo_n "(cached) " >&6
27205else
27206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207/* end confdefs.h.  */
27208#include <pthread.h>
27209_ACEOF
27210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27211  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27212  ol_cv_header_linux_threads=yes
27213else
27214  ol_cv_header_linux_threads=no
27215fi
27216rm -f conftest*
27217
27218
27219fi
27220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27221$as_echo "$ol_cv_header_linux_threads" >&6; }
27222	if test $ol_cv_header_linux_threads = yes; then
27223
27224$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27225
27226	fi
27227
27228
27229	for ac_header in mach/cthreads.h
27230do :
27231  ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27232if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27233  cat >>confdefs.h <<_ACEOF
27234#define HAVE_MACH_CTHREADS_H 1
27235_ACEOF
27236
27237fi
27238
27239done
27240
27241	for ac_header in lwp/lwp.h
27242do :
27243  ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27244if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27245  cat >>confdefs.h <<_ACEOF
27246#define HAVE_LWP_LWP_H 1
27247_ACEOF
27248
27249fi
27250
27251done
27252
27253	for ac_header in thread.h synch.h
27254do :
27255  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27256ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27257if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27258  cat >>confdefs.h <<_ACEOF
27259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27260_ACEOF
27261
27262fi
27263
27264done
27265
27266fi
27267
27268if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27269
27270$as_echo "#define REENTRANT 1" >>confdefs.h
27271
27272
27273$as_echo "#define _REENTRANT 1" >>confdefs.h
27274
27275
27276$as_echo "#define THREAD_SAFE 1" >>confdefs.h
27277
27278
27279$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27280
27281
27282$as_echo "#define THREADSAFE 1" >>confdefs.h
27283
27284
27285$as_echo "#define _THREADSAFE 1" >>confdefs.h
27286
27287
27288$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27289
27290
27291			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27292$as_echo_n "checking for thread specific errno... " >&6; }
27293if ${ol_cv_errno_thread_specific+:} false; then :
27294  $as_echo_n "(cached) " >&6
27295else
27296
27297		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27298/* end confdefs.h.  */
27299#include <errno.h>
27300int
27301main ()
27302{
27303errno = 0;
27304  ;
27305  return 0;
27306}
27307_ACEOF
27308if ac_fn_c_try_link "$LINENO"; then :
27309  ol_cv_errno_thread_specific=yes
27310else
27311  ol_cv_errno_thread_specific=no
27312fi
27313rm -f core conftest.err conftest.$ac_objext \
27314    conftest$ac_exeext conftest.$ac_ext
27315
27316fi
27317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27318$as_echo "$ol_cv_errno_thread_specific" >&6; }
27319
27320			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27321$as_echo_n "checking for thread specific h_errno... " >&6; }
27322if ${ol_cv_h_errno_thread_specific+:} false; then :
27323  $as_echo_n "(cached) " >&6
27324else
27325
27326		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327/* end confdefs.h.  */
27328#include <netdb.h>
27329int
27330main ()
27331{
27332h_errno = 0;
27333  ;
27334  return 0;
27335}
27336_ACEOF
27337if ac_fn_c_try_link "$LINENO"; then :
27338  ol_cv_h_errno_thread_specific=yes
27339else
27340  ol_cv_h_errno_thread_specific=no
27341fi
27342rm -f core conftest.err conftest.$ac_objext \
27343    conftest$ac_exeext conftest.$ac_ext
27344
27345fi
27346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27347$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27348
27349	if test $ol_cv_errno_thread_specific != yes ||
27350	   test $ol_cv_h_errno_thread_specific != yes ; then
27351		LIBS="$LTHREAD_LIBS $LIBS"
27352		LTHREAD_LIBS=""
27353	fi
27354
27355fi
27356
27357if test $ol_link_threads = no ; then
27358	if test $ol_with_threads = yes ; then
27359		as_fn_error $? "no suitable thread support" "$LINENO" 5
27360	fi
27361
27362	if test $ol_with_threads = auto ; then
27363		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27364$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27365		ol_with_threads=no
27366	fi
27367
27368
27369$as_echo "#define NO_THREADS 1" >>confdefs.h
27370
27371	LTHREAD_LIBS=""
27372	BUILD_THREAD=no
27373else
27374	BUILD_THREAD=yes
27375fi
27376
27377if test $ol_link_threads != no ; then
27378
27379$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27380
27381fi
27382
27383# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27384case "$ol_with_threads" in
27385 no)
27386    ol_pthread_ok=no
27387
27388    ;;
27389 *)
27390    ol_found_pthreads=yes
27391    ;;
27392esac
27393
27394ac_ext=c
27395ac_cpp='$CPP $CPPFLAGS'
27396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27398ac_compiler_gnu=$ac_cv_c_compiler_gnu
27399
27400
27401    case "$ol_found_pthreads" in
27402     yes)
27403	saved_LIBS="$LIBS"
27404	LIBS="$LTHREAD_LIBS $LIBS"
27405	saved_CFLAGS="$CFLAGS"
27406	CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27407	for ac_func in sem_timedwait
27408do :
27409  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27410if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27411  cat >>confdefs.h <<_ACEOF
27412#define HAVE_SEM_TIMEDWAIT 1
27413_ACEOF
27414
27415fi
27416done
27417
27418	LIBS="$saved_LIBS"
27419	{ saved_LIBS=; unset saved_LIBS;}
27420	CFLAGS="$saved_CFLAGS"
27421	{ saved_CFLAGS=; unset saved_CFLAGS;}
27422	case "$ac_cv_func_sem_timedwait" in
27423	 yes)
27424	    PTHREAD_LIBS="$LTHREAD_LIBS"
27425	    have_pthreads=yes
27426	    # Bug 2332: With GCC we need to force a reference to libgcc_s
27427	    # (if libgcc_s exists) or the combination of
27428	    # threads + setuid + mlockall does not work on linux because
27429	    # thread cancellation fails to load libgcc_s with dlopen().
27430	    # We have to pass this all as linker options to avoid argument
27431	    # reordering by libtool.
27432	    case "$GCC$with_gnu_ld" in
27433	    yesyes)
27434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5
27435$as_echo_n "checking for exit in -lgcc_s... " >&6; }
27436if ${ac_cv_lib_gcc_s_exit+:} false; then :
27437  $as_echo_n "(cached) " >&6
27438else
27439  ac_check_lib_save_LIBS=$LIBS
27440LIBS="-lgcc_s  $LIBS"
27441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442/* end confdefs.h.  */
27443
27444/* Override any GCC internal prototype to avoid an error.
27445   Use char because int might match the return type of a GCC
27446   builtin and then its argument prototype would still apply.  */
27447#ifdef __cplusplus
27448extern "C"
27449#endif
27450char exit ();
27451int
27452main ()
27453{
27454return exit ();
27455  ;
27456  return 0;
27457}
27458_ACEOF
27459if ac_fn_c_try_link "$LINENO"; then :
27460  ac_cv_lib_gcc_s_exit=yes
27461else
27462  ac_cv_lib_gcc_s_exit=no
27463fi
27464rm -f core conftest.err conftest.$ac_objext \
27465    conftest$ac_exeext conftest.$ac_ext
27466LIBS=$ac_check_lib_save_LIBS
27467fi
27468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5
27469$as_echo "$ac_cv_lib_gcc_s_exit" >&6; }
27470if test "x$ac_cv_lib_gcc_s_exit" = xyes; then :
27471  PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed"
27472fi
27473
27474		;;
27475	    esac
27476	esac
27477    esac
27478esac
27479
27480case "$have_pthreads" in
27481 yes)
27482    CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27483    saved_LIBS="$LIBS"
27484    LIBS="$LTHREAD_LIBS $LIBS"
27485    saved_CFLAGS="$CFLAGS"
27486    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27487    # The cast to long int works around a bug in the HP C Compiler
27488# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27489# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27490# This bug is HP SR number 8606223364.
27491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27492$as_echo_n "checking size of pthread_t... " >&6; }
27493if ${ac_cv_sizeof_pthread_t+:} false; then :
27494  $as_echo_n "(cached) " >&6
27495else
27496  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
27497	    $ac_includes_default
27498	    #include <pthread.h>
27499
27500
27501"; then :
27502
27503else
27504  if test "$ac_cv_type_pthread_t" = yes; then
27505     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27507as_fn_error 77 "cannot compute sizeof (pthread_t)
27508See \`config.log' for more details" "$LINENO" 5; }
27509   else
27510     ac_cv_sizeof_pthread_t=0
27511   fi
27512fi
27513
27514fi
27515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27516$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27517
27518
27519
27520cat >>confdefs.h <<_ACEOF
27521#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27522_ACEOF
27523
27524
27525    LIBISC_PTHREADS_NOTHREADS=pthreads
27526
27527$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27528
27529    #
27530    # We'd like to use sigwait() too
27531    #
27532    ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27533if test "x$ac_cv_func_sigwait" = xyes; then :
27534  have_sigwait=yes
27535else
27536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27537$as_echo_n "checking for sigwait in -lc... " >&6; }
27538if ${ac_cv_lib_c_sigwait+:} false; then :
27539  $as_echo_n "(cached) " >&6
27540else
27541  ac_check_lib_save_LIBS=$LIBS
27542LIBS="-lc  $LIBS"
27543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27544/* end confdefs.h.  */
27545
27546/* Override any GCC internal prototype to avoid an error.
27547   Use char because int might match the return type of a GCC
27548   builtin and then its argument prototype would still apply.  */
27549#ifdef __cplusplus
27550extern "C"
27551#endif
27552char sigwait ();
27553int
27554main ()
27555{
27556return sigwait ();
27557  ;
27558  return 0;
27559}
27560_ACEOF
27561if ac_fn_c_try_link "$LINENO"; then :
27562  ac_cv_lib_c_sigwait=yes
27563else
27564  ac_cv_lib_c_sigwait=no
27565fi
27566rm -f core conftest.err conftest.$ac_objext \
27567    conftest$ac_exeext conftest.$ac_ext
27568LIBS=$ac_check_lib_save_LIBS
27569fi
27570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27571$as_echo "$ac_cv_lib_c_sigwait" >&6; }
27572if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27573  have_sigwait=yes
27574else
27575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27576$as_echo_n "checking for sigwait in -lpthread... " >&6; }
27577if ${ac_cv_lib_pthread_sigwait+:} false; then :
27578  $as_echo_n "(cached) " >&6
27579else
27580  ac_check_lib_save_LIBS=$LIBS
27581LIBS="-lpthread  $LIBS"
27582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27583/* end confdefs.h.  */
27584
27585/* Override any GCC internal prototype to avoid an error.
27586   Use char because int might match the return type of a GCC
27587   builtin and then its argument prototype would still apply.  */
27588#ifdef __cplusplus
27589extern "C"
27590#endif
27591char sigwait ();
27592int
27593main ()
27594{
27595return sigwait ();
27596  ;
27597  return 0;
27598}
27599_ACEOF
27600if ac_fn_c_try_link "$LINENO"; then :
27601  ac_cv_lib_pthread_sigwait=yes
27602else
27603  ac_cv_lib_pthread_sigwait=no
27604fi
27605rm -f core conftest.err conftest.$ac_objext \
27606    conftest$ac_exeext conftest.$ac_ext
27607LIBS=$ac_check_lib_save_LIBS
27608fi
27609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27610$as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27611if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27612  have_sigwait=yes
27613else
27614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27615$as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27616if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27617  $as_echo_n "(cached) " >&6
27618else
27619  ac_check_lib_save_LIBS=$LIBS
27620LIBS="-lpthread  $LIBS"
27621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622/* end confdefs.h.  */
27623
27624/* Override any GCC internal prototype to avoid an error.
27625   Use char because int might match the return type of a GCC
27626   builtin and then its argument prototype would still apply.  */
27627#ifdef __cplusplus
27628extern "C"
27629#endif
27630char _Psigwait ();
27631int
27632main ()
27633{
27634return _Psigwait ();
27635  ;
27636  return 0;
27637}
27638_ACEOF
27639if ac_fn_c_try_link "$LINENO"; then :
27640  ac_cv_lib_pthread__Psigwait=yes
27641else
27642  ac_cv_lib_pthread__Psigwait=no
27643fi
27644rm -f core conftest.err conftest.$ac_objext \
27645    conftest$ac_exeext conftest.$ac_ext
27646LIBS=$ac_check_lib_save_LIBS
27647fi
27648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27649$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27650if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27651  have_sigwait=yes
27652else
27653  have_sigwait=no
27654
27655fi
27656
27657
27658fi
27659
27660
27661fi
27662
27663
27664fi
27665
27666    case "$host:$have_sigwait" in
27667     *-freebsd*:no)
27668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27669$as_echo_n "checking for sigwait in -lc_r... " >&6; }
27670if ${ac_cv_lib_c_r_sigwait+:} false; then :
27671  $as_echo_n "(cached) " >&6
27672else
27673  ac_check_lib_save_LIBS=$LIBS
27674LIBS="-lc_r  $LIBS"
27675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27676/* end confdefs.h.  */
27677
27678/* Override any GCC internal prototype to avoid an error.
27679   Use char because int might match the return type of a GCC
27680   builtin and then its argument prototype would still apply.  */
27681#ifdef __cplusplus
27682extern "C"
27683#endif
27684char sigwait ();
27685int
27686main ()
27687{
27688return sigwait ();
27689  ;
27690  return 0;
27691}
27692_ACEOF
27693if ac_fn_c_try_link "$LINENO"; then :
27694  ac_cv_lib_c_r_sigwait=yes
27695else
27696  ac_cv_lib_c_r_sigwait=no
27697fi
27698rm -f core conftest.err conftest.$ac_objext \
27699    conftest$ac_exeext conftest.$ac_ext
27700LIBS=$ac_check_lib_save_LIBS
27701fi
27702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27703$as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27704if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27705  have_sigwait=yes
27706
27707fi
27708
27709    esac
27710    case "$have_sigwait" in
27711     yes)
27712	ac_cv_func_sigwait=yes
27713
27714$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27715
27716    esac
27717
27718    for ac_func in pthread_attr_getstacksize
27719do :
27720  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27721if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27722  cat >>confdefs.h <<_ACEOF
27723#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27724_ACEOF
27725
27726fi
27727done
27728
27729    for ac_func in pthread_attr_setstacksize sysconf
27730do :
27731  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27733if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27734  cat >>confdefs.h <<_ACEOF
27735#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27736_ACEOF
27737
27738fi
27739done
27740
27741
27742    case "$host" in
27743     *-freebsd5.[012]|*-freebsd5.[012].*)
27744	;;
27745     *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27746
27747$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27748
27749	;;
27750     *-bsdi3.*|*-bsdi4.0*)
27751
27752$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27753
27754	;;
27755     *-linux*)
27756
27757$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27758
27759	;;
27760     *-solaris*)
27761	$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27762
27763	for ac_func in pthread_setconcurrency
27764do :
27765  ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27766if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27767  cat >>confdefs.h <<_ACEOF
27768#define HAVE_PTHREAD_SETCONCURRENCY 1
27769_ACEOF
27770
27771fi
27772done
27773
27774	case "$ac_cv_func_pthread_setconcurrency" in
27775	 yes)
27776
27777$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27778
27779	esac
27780	;;
27781     *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27782
27783$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27784
27785	;;
27786    esac
27787    hack_shutup_pthreadonceinit=no
27788    case "$host" in
27789     *-aix5.[123].*)
27790	hack_shutup_pthreadonceinit=yes
27791	;;
27792     *-solaris2.[89])
27793	hack_shutup_pthreadonceinit=yes
27794	;;
27795     *-solaris2.1[0-9])
27796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27797$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27798if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27799  $as_echo_n "(cached) " >&6
27800else
27801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27802/* end confdefs.h.  */
27803
27804			#include <pthread.h>
27805
27806int
27807main ()
27808{
27809
27810		        static pthread_once_t once_test =
27811						PTHREAD_ONCE_INIT;
27812
27813
27814  ;
27815  return 0;
27816}
27817_ACEOF
27818if ac_fn_c_try_compile "$LINENO"; then :
27819  ntp_cv_braces_around_pthread_once_init=no
27820else
27821  ntp_cv_braces_around_pthread_once_init=yes
27822
27823fi
27824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27825
27826fi
27827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27828$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27829	case "$ntp_cv_braces_around_pthread_once_init" in
27830	 yes)
27831	    hack_shutup_pthreadonceinit=yes
27832	esac
27833	;;
27834    esac
27835    case "$hack_shutup_pthreadonceinit" in
27836     yes)
27837
27838$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27839
27840    esac
27841    LIBS="$saved_LIBS"
27842    { saved_LIBS=; unset saved_LIBS;}
27843    CFLAGS="$saved_CFLAGS"
27844    { saved_CFLAGS=; unset saved_CFLAGS;}
27845    ;;
27846 *)
27847    LIBISC_PTHREADS_NOTHREADS=nothreads
27848    ;;
27849esac
27850
27851 if test "$have_pthreads" != "no"; then
27852  PTHREADS_TRUE=
27853  PTHREADS_FALSE='#'
27854else
27855  PTHREADS_TRUE='#'
27856  PTHREADS_FALSE=
27857fi
27858
27859
27860
27861
27862
27863
27864
27865case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27866 no:yes)
27867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27868$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27869if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27870  $as_echo_n "(cached) " >&6
27871else
27872  if test "$cross_compiling" = yes; then :
27873  ntp_cv_vsnprintf_percent_m=no
27874
27875else
27876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877/* end confdefs.h.  */
27878
27879		    #include <stdarg.h>
27880		    #include <errno.h>
27881		    #include <stdio.h>
27882		    #include <string.h>
27883
27884		    int call_vsnprintf(
27885			    char *	dst,
27886			    size_t	sz,
27887			    const char *fmt,
27888			    ...
27889			    );
27890
27891		    int call_vsnprintf(
27892			    char *	dst,
27893			    size_t	sz,
27894			    const char *fmt,
27895			    ...
27896			    )
27897		    {
27898			    va_list	ap;
27899			    int		rc;
27900
27901			    va_start(ap, fmt);
27902			    rc = vsnprintf(dst, sz, fmt, ap);
27903			    va_end(ap);
27904
27905			    return rc;
27906		    }
27907
27908int
27909main ()
27910{
27911
27912		    char	sbuf[512];
27913		    char	pbuf[512];
27914		    int		slen;
27915
27916		    strcpy(sbuf, strerror(ENOENT));
27917		    errno = ENOENT;
27918		    slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27919					  "wrong");
27920		    return strcmp(sbuf, pbuf);
27921
27922
27923  ;
27924  return 0;
27925}
27926_ACEOF
27927if ac_fn_c_try_run "$LINENO"; then :
27928  ntp_cv_vsnprintf_percent_m=yes
27929else
27930  ntp_cv_vsnprintf_percent_m=no
27931fi
27932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27933  conftest.$ac_objext conftest.beam conftest.$ac_ext
27934fi
27935
27936
27937fi
27938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27939$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27940    case "$ntp_cv_vsnprintf_percent_m" in
27941     yes)
27942
27943$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27944
27945    esac
27946esac
27947
27948for ac_header in sys/clockctl.h
27949do :
27950  ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27951if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27952  cat >>confdefs.h <<_ACEOF
27953#define HAVE_SYS_CLOCKCTL_H 1
27954_ACEOF
27955
27956fi
27957
27958done
27959
27960
27961# Check whether --enable-clockctl was given.
27962if test "${enable_clockctl+set}" = set; then :
27963  enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27964else
27965  ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27966
27967fi
27968
27969
27970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27971$as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27973$as_echo "$ntp_use_dev_clockctl" >&6; }
27974
27975
27976for ac_header in sys/capability.h sys/prctl.h
27977do :
27978  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27979ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27980if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27981  cat >>confdefs.h <<_ACEOF
27982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27983_ACEOF
27984
27985fi
27986
27987done
27988
27989
27990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
27991$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
27992
27993case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
27994 yesyes)
27995    case "$host" in
27996     mips-sgi-irix*)
27997	ntp_have_linuxcaps=no
27998	;;
27999     *) ntp_have_linuxcaps=yes
28000	;;
28001    esac
28002    ;;
28003 *)
28004    ntp_have_linuxcaps=no
28005    ;;
28006esac
28007
28008# Check whether --enable-linuxcaps was given.
28009if test "${enable_linuxcaps+set}" = set; then :
28010  enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28011
28012fi
28013
28014
28015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28016$as_echo "$ntp_have_linuxcaps" >&6; }
28017
28018case "$ntp_have_linuxcaps" in
28019 yes)
28020
28021$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28022
28023    LIBS="$LIBS -lcap"
28024    ;;
28025esac
28026
28027
28028for ac_header in priv.h
28029do :
28030  ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28031if test "x$ac_cv_header_priv_h" = xyes; then :
28032  cat >>confdefs.h <<_ACEOF
28033#define HAVE_PRIV_H 1
28034_ACEOF
28035
28036fi
28037
28038done
28039
28040
28041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28042$as_echo_n "checking if we have solaris privileges... " >&6; }
28043
28044case "$ac_cv_header_priv_h" in
28045 yes)
28046    case "$host" in
28047     *-solaris*)
28048	ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28049if test "x$ac_cv_func_setppriv" = xyes; then :
28050  ntp_have_solarisprivs=yes
28051else
28052  ntp_have_solarisprivs=no
28053
28054fi
28055
28056	;;
28057    esac
28058esac
28059
28060# Check whether --enable-solarisprivs was given.
28061if test "${enable_solarisprivs+set}" = set; then :
28062  enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28063
28064fi
28065
28066
28067
28068case "$ntp_have_solarisprivs" in
28069 yes)
28070
28071$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28072
28073esac
28074
28075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28076$as_echo "$ntp_have_solarisprivs" >&6; }
28077
28078case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28079 *yes*)
28080
28081$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28082
28083esac
28084
28085case "$host" in
28086 *-*-darwin*)
28087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28088$as_echo_n "checking for library containing res_9_init... " >&6; }
28089if ${ac_cv_search_res_9_init+:} false; then :
28090  $as_echo_n "(cached) " >&6
28091else
28092  ac_func_search_save_LIBS=$LIBS
28093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28094/* end confdefs.h.  */
28095
28096/* Override any GCC internal prototype to avoid an error.
28097   Use char because int might match the return type of a GCC
28098   builtin and then its argument prototype would still apply.  */
28099#ifdef __cplusplus
28100extern "C"
28101#endif
28102char res_9_init ();
28103int
28104main ()
28105{
28106return res_9_init ();
28107  ;
28108  return 0;
28109}
28110_ACEOF
28111for ac_lib in '' resolv; do
28112  if test -z "$ac_lib"; then
28113    ac_res="none required"
28114  else
28115    ac_res=-l$ac_lib
28116    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28117  fi
28118  if ac_fn_c_try_link "$LINENO"; then :
28119  ac_cv_search_res_9_init=$ac_res
28120fi
28121rm -f core conftest.err conftest.$ac_objext \
28122    conftest$ac_exeext
28123  if ${ac_cv_search_res_9_init+:} false; then :
28124  break
28125fi
28126done
28127if ${ac_cv_search_res_9_init+:} false; then :
28128
28129else
28130  ac_cv_search_res_9_init=no
28131fi
28132rm conftest.$ac_ext
28133LIBS=$ac_func_search_save_LIBS
28134fi
28135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28136$as_echo "$ac_cv_search_res_9_init" >&6; }
28137ac_res=$ac_cv_search_res_9_init
28138if test "$ac_res" != no; then :
28139  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28140
28141fi
28142
28143    ;;
28144 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28145$as_echo_n "checking for library containing res_init... " >&6; }
28146if ${ac_cv_search_res_init+:} false; then :
28147  $as_echo_n "(cached) " >&6
28148else
28149  ac_func_search_save_LIBS=$LIBS
28150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28151/* end confdefs.h.  */
28152
28153/* Override any GCC internal prototype to avoid an error.
28154   Use char because int might match the return type of a GCC
28155   builtin and then its argument prototype would still apply.  */
28156#ifdef __cplusplus
28157extern "C"
28158#endif
28159char res_init ();
28160int
28161main ()
28162{
28163return res_init ();
28164  ;
28165  return 0;
28166}
28167_ACEOF
28168for ac_lib in '' resolv; do
28169  if test -z "$ac_lib"; then
28170    ac_res="none required"
28171  else
28172    ac_res=-l$ac_lib
28173    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28174  fi
28175  if ac_fn_c_try_link "$LINENO"; then :
28176  ac_cv_search_res_init=$ac_res
28177fi
28178rm -f core conftest.err conftest.$ac_objext \
28179    conftest$ac_exeext
28180  if ${ac_cv_search_res_init+:} false; then :
28181  break
28182fi
28183done
28184if ${ac_cv_search_res_init+:} false; then :
28185
28186else
28187  ac_cv_search_res_init=no
28188fi
28189rm conftest.$ac_ext
28190LIBS=$ac_func_search_save_LIBS
28191fi
28192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28193$as_echo "$ac_cv_search_res_init" >&6; }
28194ac_res=$ac_cv_search_res_init
28195if test "$ac_res" != no; then :
28196  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28197
28198fi
28199
28200    ;;
28201esac
28202for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28203do :
28204  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28205ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28206#  include <sys/types.h>
28207#endif
28208#ifdef HAVE_NETINET_IN_H
28209#  include <netinet/in.h>   /* inet_ functions / structs */
28210#endif
28211#ifdef HAVE_ARPA_NAMESER_H
28212#  include <arpa/nameser.h> /* DNS HEADER struct */
28213#endif
28214#ifdef HAVE_NETDB_H
28215#  include <netdb.h>
28216#endif
28217"
28218if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28219  cat >>confdefs.h <<_ACEOF
28220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28221_ACEOF
28222
28223fi
28224
28225done
28226
28227
28228#HMS: Why do we do this check so "early"?
28229for ac_func in res_init
28230do :
28231  ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28232if test "x$ac_cv_func_res_init" = xyes; then :
28233  cat >>confdefs.h <<_ACEOF
28234#define HAVE_RES_INIT 1
28235_ACEOF
28236
28237else
28238  for ac_func in __res_init
28239do :
28240  ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28241if test "x$ac_cv_func___res_init" = xyes; then :
28242  cat >>confdefs.h <<_ACEOF
28243#define HAVE___RES_INIT 1
28244_ACEOF
28245
28246fi
28247done
28248
28249fi
28250done
28251
28252
28253# We also need -lsocket, but we have tested for that already.
28254ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28255if test "x$ac_cv_func_inet_ntop" = xyes; then :
28256
28257else
28258
28259$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28260
28261fi
28262
28263ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28264if test "x$ac_cv_func_inet_pton" = xyes; then :
28265
28266else
28267
28268$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28269
28270fi
28271
28272
28273ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28274if test "x$ac_cv_type_uintptr_t" = xyes; then :
28275
28276cat >>confdefs.h <<_ACEOF
28277#define HAVE_UINTPTR_T 1
28278_ACEOF
28279
28280
28281fi
28282ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28283if test "x$ac_cv_type_int32" = xyes; then :
28284
28285cat >>confdefs.h <<_ACEOF
28286#define HAVE_INT32 1
28287_ACEOF
28288
28289
28290fi
28291ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28292if test "x$ac_cv_type_u_int32" = xyes; then :
28293
28294cat >>confdefs.h <<_ACEOF
28295#define HAVE_U_INT32 1
28296_ACEOF
28297
28298
28299fi
28300
28301
28302
28303
28304case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28305 no::yes)
28306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28307$as_echo_n "checking for int32 with DNS headers included... " >&6; }
28308if ${ntp_cv_type_int32_with_dns+:} false; then :
28309  $as_echo_n "(cached) " >&6
28310else
28311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28312/* end confdefs.h.  */
28313
28314		    #ifdef HAVE_ARPA_NAMESER_H
28315		    # include <arpa/nameser.h>
28316		    #endif
28317		    #include <resolv.h>
28318
28319int
28320main ()
28321{
28322
28323		    size_t cb = sizeof(int32);
28324
28325
28326  ;
28327  return 0;
28328}
28329_ACEOF
28330if ac_fn_c_try_compile "$LINENO"; then :
28331  ntp_cv_type_int32_with_dns=yes
28332else
28333  ntp_cv_type_int32_with_dns=no
28334
28335fi
28336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28337
28338fi
28339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28340$as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28341    case "$ntp_cv_type_int32_with_dns" in
28342     yes)
28343
28344$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28345
28346    esac
28347esac
28348
28349case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28350 no::yes)
28351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28352$as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28353if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28354  $as_echo_n "(cached) " >&6
28355else
28356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28357/* end confdefs.h.  */
28358
28359		    #ifdef HAVE_ARPA_NAMESER_H
28360		    # include <arpa/nameser.h>
28361		    #endif
28362		    #include <resolv.h>
28363
28364int
28365main ()
28366{
28367
28368		    size_t cb = sizeof(u_int32);
28369
28370
28371  ;
28372  return 0;
28373}
28374_ACEOF
28375if ac_fn_c_try_compile "$LINENO"; then :
28376  ntp_cv_type_u_int32_with_dns=yes
28377else
28378  ntp_cv_type_u_int32_with_dns=no
28379
28380fi
28381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382
28383fi
28384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28385$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28386    case "$ntp_cv_type_u_int32_with_dns" in
28387     yes)
28388
28389$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28390
28391    esac
28392esac
28393
28394for ac_header in sys/timepps.h
28395do :
28396  ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28397	#ifdef HAVE_SYS_TIME_H
28398	# include <sys/time.h>
28399	#endif
28400	#ifdef HAVE_ERRNO_H
28401	# include <errno.h>
28402	#endif
28403
28404
28405"
28406if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28407  cat >>confdefs.h <<_ACEOF
28408#define HAVE_SYS_TIMEPPS_H 1
28409_ACEOF
28410
28411fi
28412
28413done
28414
28415
28416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28417$as_echo_n "checking for struct timespec... " >&6; }
28418if ${ntp_cv_struct_timespec+:} false; then :
28419  $as_echo_n "(cached) " >&6
28420else
28421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28422/* end confdefs.h.  */
28423
28424		#include <sys/time.h>
28425		/* Under SunOS, timespec is in sys/timepps.h,
28426		   which needs errno.h and FRAC */
28427		#ifdef HAVE_ERRNO_H
28428		# include <errno.h>
28429		#endif
28430		#ifdef HAVE_SYS_TIMEPPS_H
28431		# define FRAC 4294967296
28432		# include <sys/timepps.h>
28433		#endif
28434
28435int
28436main ()
28437{
28438
28439		struct timespec n;
28440
28441
28442  ;
28443  return 0;
28444}
28445_ACEOF
28446if ac_fn_c_try_compile "$LINENO"; then :
28447  ntp_cv_struct_timespec=yes
28448else
28449  ntp_cv_struct_timespec=no
28450
28451fi
28452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28453
28454fi
28455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28456$as_echo "$ntp_cv_struct_timespec" >&6; }
28457case "$ntp_cv_struct_timespec" in
28458 yes)
28459
28460$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28461
28462esac
28463
28464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28465$as_echo_n "checking for struct ntptimeval... " >&6; }
28466if ${ntp_cv_struct_ntptimeval+:} false; then :
28467  $as_echo_n "(cached) " >&6
28468else
28469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28470/* end confdefs.h.  */
28471
28472		#include <sys/time.h>
28473		#include <sys/timex.h>
28474
28475int
28476main ()
28477{
28478
28479		struct ntptimeval n;
28480
28481
28482  ;
28483  return 0;
28484}
28485_ACEOF
28486if ac_fn_c_try_compile "$LINENO"; then :
28487  ntp_cv_struct_ntptimeval=yes
28488else
28489  ntp_cv_struct_ntptimeval=no
28490
28491fi
28492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28493
28494fi
28495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28496$as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28497case "$ntp_cv_struct_ntptimeval" in
28498 yes)
28499
28500$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28501
28502esac
28503
28504for ac_header in md5.h
28505do :
28506  ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28507	#ifdef HAVE_SYS_TYPES_H
28508	# include <sys/types.h>
28509	#endif
28510
28511
28512"
28513if test "x$ac_cv_header_md5_h" = xyes; then :
28514  cat >>confdefs.h <<_ACEOF
28515#define HAVE_MD5_H 1
28516_ACEOF
28517
28518fi
28519
28520done
28521
28522
28523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28524$as_echo_n "checking for library containing MD5Init... " >&6; }
28525if ${ac_cv_search_MD5Init+:} false; then :
28526  $as_echo_n "(cached) " >&6
28527else
28528  ac_func_search_save_LIBS=$LIBS
28529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28530/* end confdefs.h.  */
28531
28532/* Override any GCC internal prototype to avoid an error.
28533   Use char because int might match the return type of a GCC
28534   builtin and then its argument prototype would still apply.  */
28535#ifdef __cplusplus
28536extern "C"
28537#endif
28538char MD5Init ();
28539int
28540main ()
28541{
28542return MD5Init ();
28543  ;
28544  return 0;
28545}
28546_ACEOF
28547for ac_lib in '' md5 md; do
28548  if test -z "$ac_lib"; then
28549    ac_res="none required"
28550  else
28551    ac_res=-l$ac_lib
28552    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28553  fi
28554  if ac_fn_c_try_link "$LINENO"; then :
28555  ac_cv_search_MD5Init=$ac_res
28556fi
28557rm -f core conftest.err conftest.$ac_objext \
28558    conftest$ac_exeext
28559  if ${ac_cv_search_MD5Init+:} false; then :
28560  break
28561fi
28562done
28563if ${ac_cv_search_MD5Init+:} false; then :
28564
28565else
28566  ac_cv_search_MD5Init=no
28567fi
28568rm conftest.$ac_ext
28569LIBS=$ac_func_search_save_LIBS
28570fi
28571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28572$as_echo "$ac_cv_search_MD5Init" >&6; }
28573ac_res=$ac_cv_search_MD5Init
28574if test "$ac_res" != no; then :
28575  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28576
28577fi
28578
28579for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28580do :
28581  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28582ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28583if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28584  cat >>confdefs.h <<_ACEOF
28585#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28586_ACEOF
28587
28588fi
28589done
28590
28591
28592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28593$as_echo_n "checking for SIGIO... " >&6; }
28594if ${ntp_cv_hdr_def_sigio+:} false; then :
28595  $as_echo_n "(cached) " >&6
28596else
28597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28598/* end confdefs.h.  */
28599
28600	    #include <signal.h>
28601
28602	    #ifndef SIGIO
28603	    # error
28604	    #endif
28605
28606_ACEOF
28607if ac_fn_c_try_cpp "$LINENO"; then :
28608  ntp_cv_hdr_def_sigio=yes
28609else
28610  ntp_cv_hdr_def_sigio=no
28611
28612fi
28613rm -f conftest.err conftest.i conftest.$ac_ext
28614
28615fi
28616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28617$as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28618
28619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28620$as_echo_n "checking if we want to use SIGIO... " >&6; }
28621ans=no
28622case "$ntp_cv_hdr_def_sigio" in
28623 yes)
28624    ans=yes
28625    case "$host" in
28626     alpha*-dec-osf4*|alpha*-dec-osf5*)
28627	ans=no
28628	;;
28629     *-convex-*)
28630	ans=no
28631	;;
28632     *-dec-*)
28633	ans=no
28634	;;
28635     *-pc-cygwin*)
28636	ans=no
28637	;;
28638     *-sni-sysv*)
28639	ans=no
28640	;;
28641     *-stratus-vos)
28642	ans=no
28643	;;
28644     *-univel-sysv*)
28645	ans=no
28646	;;
28647     *-*-irix6*)
28648	ans=no
28649	;;
28650     *-*-freebsd*)
28651	ans=no
28652	;;
28653     *-*-*linux*)
28654	ans=no
28655	;;
28656     *-*-unicosmp*)
28657	ans=no
28658	;;
28659     *-*-kfreebsd*)
28660	ans=no
28661	;;
28662     m68k-*-mint*)
28663	ans=no
28664	;;
28665    esac
28666    ;;
28667esac
28668case "$ans" in
28669 yes)
28670
28671$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28672
28673esac
28674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28675$as_echo "$ans" >&6; }
28676
28677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28678$as_echo_n "checking for SIGPOLL... " >&6; }
28679if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28680  $as_echo_n "(cached) " >&6
28681else
28682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28683/* end confdefs.h.  */
28684
28685	    #include <signal.h>
28686
28687	    #ifndef SIGPOLL
28688	    # error
28689	    #endif
28690
28691_ACEOF
28692if ac_fn_c_try_cpp "$LINENO"; then :
28693  ntp_cv_hdr_def_sigpoll=yes
28694else
28695  ntp_cv_hdr_def_sigpoll=no
28696
28697fi
28698rm -f conftest.err conftest.i conftest.$ac_ext
28699
28700fi
28701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28702$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28703
28704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28705$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28706ans=no
28707case "$ntp_cv_hdr_def_sigpoll" in
28708 yes)
28709    case "$host" in
28710     mips-sgi-irix*)
28711	ans=no
28712	;;
28713     vax-dec-bsd)
28714	ans=no
28715	;;
28716     *-pc-cygwin*)
28717	ans=no
28718	;;
28719     *-sni-sysv*)
28720	ans=no
28721	;;
28722     *-stratus-vos)
28723	ans=no
28724	;;
28725     *-*-aix[4-9]*)
28726	# XXX Only verified thru AIX6
28727	ans=no
28728	;;
28729     *-*-hpux*)
28730	ans=no
28731	;;
28732     *-*-*linux*)
28733	ans=no
28734	;;
28735     *-*-osf*)
28736	ans=no
28737	;;
28738     *-*-qnx*)
28739	ans=no
28740	;;
28741     *-*-sunos*)
28742	ans=no
28743	;;
28744     *-*-solaris*)
28745	ans=no
28746	;;
28747     *-*-ultrix*)
28748	ans=no
28749	;;
28750     *-*-unicosmp*)
28751	ans=no
28752	;;
28753     *-*-kfreebsd*)
28754	ans=no
28755	;;
28756     *) ans=yes
28757	;;
28758    esac
28759    ;;
28760esac
28761case "$ans" in
28762 yes)
28763
28764$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28765
28766esac
28767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28768$as_echo "$ans" >&6; }
28769
28770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28771$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28772ans=no
28773case "$ntp_cv_hdr_def_sigpoll" in
28774 yes)
28775    case "$host" in
28776     mips-sgi-irix*)
28777	ans=no
28778	;;
28779     vax-dec-bsd)
28780	ans=no
28781	;;
28782     *-pc-cygwin*)
28783	ans=no
28784	;;
28785     *-sni-sysv*)
28786	ans=no
28787	;;
28788     *-stratus-vos)
28789	ans=no
28790	;;
28791     *-*-aix[4-9]*)
28792	# XXX Only verified thru AIX6
28793	ans=no
28794	;;
28795     *-*-hpux*)
28796	ans=no
28797	;;
28798     *-*-*linux*)
28799	ans=no
28800	;;
28801     *-*-osf*)
28802	ans=no
28803	;;
28804     *-*-sunos*)
28805	ans=no
28806	;;
28807     *-*-ultrix*)
28808	ans=no
28809	;;
28810     *-*-qnx*)
28811	ans=no
28812	;;
28813     *-*-unicosmp*)
28814	ans=no
28815	;;
28816     *-*-kfreebsd*)
28817	ans=no
28818	;;
28819     *) ans=yes
28820	;;
28821    esac
28822    ;;
28823esac
28824case "$ans" in
28825 yes)
28826
28827$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28828
28829esac
28830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28831$as_echo "$ans" >&6; }
28832
28833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28834$as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28835if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28836  $as_echo_n "(cached) " >&6
28837else
28838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28839/* end confdefs.h.  */
28840
28841		#include <sys/time.h>
28842
28843int
28844main ()
28845{
28846
28847		gettimeofday(0, 0);
28848		settimeofday(0, 0);
28849
28850
28851  ;
28852  return 0;
28853}
28854_ACEOF
28855if ac_fn_c_try_compile "$LINENO"; then :
28856  ntp_cv_func_Xettimeofday_nargs=2
28857else
28858  ntp_cv_func_Xettimeofday_nargs=1
28859
28860fi
28861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28862
28863fi
28864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28865$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28866case "$ntp_cv_func_Xettimeofday_nargs" in
28867 1)
28868
28869$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28870
28871esac
28872
28873for ac_func in settimeofday
28874do :
28875  ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28876if test "x$ac_cv_func_settimeofday" = xyes; then :
28877  cat >>confdefs.h <<_ACEOF
28878#define HAVE_SETTIMEOFDAY 1
28879_ACEOF
28880
28881else
28882
28883    case "$host" in
28884     *-*-mpeix*) ac_cv_func_settimeofday=yes
28885    esac
28886
28887fi
28888done
28889
28890
28891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28892$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28893ntp_warning='GRONK'
28894ans=none
28895case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28896 yes*)
28897    ntp_warning=''
28898    ans='clock_settime()'
28899    ;;
28900 noyes*)
28901    ntp_warning='But clock_settime() would be better (if we had it)'
28902    ans='settimeofday()'
28903    ;;
28904 nonoyes)
28905    ntp_warning='Which is the worst of the three'
28906    ans='stime()'
28907    ;;
28908 *)
28909    case "$build" in
28910     $host)
28911	ntp_warning='Which leaves us with nothing to use!'
28912    esac
28913esac
28914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28915$as_echo "$ans" >&6; }
28916case "$ntp_warning" in
28917 '')
28918    ;;
28919 *)
28920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28921$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28922    ;;
28923esac
28924
28925
28926LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28927LIBS=$__LIBS
28928{ __LIBS=; unset __LIBS;}
28929
28930
28931
28932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28933$as_echo_n "checking for deprecated --with-arlib... " >&6; }
28934
28935# Check whether --with-arlib was given.
28936if test "${with_arlib+set}" = set; then :
28937  withval=$with_arlib; ans=$withval
28938else
28939  ans=no
28940fi
28941
28942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28943$as_echo "$ans" >&6; }
28944
28945case "$ans" in
28946 yes)
28947    { $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
28948$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;}
28949    ;;
28950esac
28951
28952for ac_prog in gawk mawk nawk awk
28953do
28954  # Extract the first word of "$ac_prog", so it can be a program name with args.
28955set dummy $ac_prog; ac_word=$2
28956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28957$as_echo_n "checking for $ac_word... " >&6; }
28958if ${ac_cv_prog_AWK+:} false; then :
28959  $as_echo_n "(cached) " >&6
28960else
28961  if test -n "$AWK"; then
28962  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28963else
28964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28965for as_dir in $PATH
28966do
28967  IFS=$as_save_IFS
28968  test -z "$as_dir" && as_dir=.
28969    for ac_exec_ext in '' $ac_executable_extensions; do
28970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28971    ac_cv_prog_AWK="$ac_prog"
28972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28973    break 2
28974  fi
28975done
28976  done
28977IFS=$as_save_IFS
28978
28979fi
28980fi
28981AWK=$ac_cv_prog_AWK
28982if test -n "$AWK"; then
28983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28984$as_echo "$AWK" >&6; }
28985else
28986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28987$as_echo "no" >&6; }
28988fi
28989
28990
28991  test -n "$AWK" && break
28992done
28993
28994{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
28995				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28996$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28997set x ${MAKE-make}
28998ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28999if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29000  $as_echo_n "(cached) " >&6
29001else
29002  cat >conftest.make <<\_ACEOF
29003SHELL = /bin/sh
29004all:
29005	@echo '@@@%%%=$(MAKE)=@@@%%%'
29006_ACEOF
29007# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29008case `${MAKE-make} -f conftest.make 2>/dev/null` in
29009  *@@@%%%=?*=@@@%%%*)
29010    eval ac_cv_prog_make_${ac_make}_set=yes;;
29011  *)
29012    eval ac_cv_prog_make_${ac_make}_set=no;;
29013esac
29014rm -f conftest.make
29015fi
29016if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29018$as_echo "yes" >&6; }
29019  SET_MAKE=
29020else
29021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29022$as_echo "no" >&6; }
29023  SET_MAKE="MAKE=${MAKE-make}"
29024fi
29025
29026
29027
29028
29029
29030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29031$as_echo_n "checking whether ln -s works... " >&6; }
29032LN_S=$as_ln_s
29033if test "$LN_S" = "ln -s"; then
29034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29035$as_echo "yes" >&6; }
29036else
29037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29038$as_echo "no, using $LN_S" >&6; }
29039fi
29040
29041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29042$as_echo_n "checking for library containing strerror... " >&6; }
29043if ${ac_cv_search_strerror+:} false; then :
29044  $as_echo_n "(cached) " >&6
29045else
29046  ac_func_search_save_LIBS=$LIBS
29047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29048/* end confdefs.h.  */
29049
29050/* Override any GCC internal prototype to avoid an error.
29051   Use char because int might match the return type of a GCC
29052   builtin and then its argument prototype would still apply.  */
29053#ifdef __cplusplus
29054extern "C"
29055#endif
29056char strerror ();
29057int
29058main ()
29059{
29060return strerror ();
29061  ;
29062  return 0;
29063}
29064_ACEOF
29065for ac_lib in '' cposix; do
29066  if test -z "$ac_lib"; then
29067    ac_res="none required"
29068  else
29069    ac_res=-l$ac_lib
29070    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29071  fi
29072  if ac_fn_c_try_link "$LINENO"; then :
29073  ac_cv_search_strerror=$ac_res
29074fi
29075rm -f core conftest.err conftest.$ac_objext \
29076    conftest$ac_exeext
29077  if ${ac_cv_search_strerror+:} false; then :
29078  break
29079fi
29080done
29081if ${ac_cv_search_strerror+:} false; then :
29082
29083else
29084  ac_cv_search_strerror=no
29085fi
29086rm conftest.$ac_ext
29087LIBS=$ac_func_search_save_LIBS
29088fi
29089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29090$as_echo "$ac_cv_search_strerror" >&6; }
29091ac_res=$ac_cv_search_strerror
29092if test "$ac_res" != no; then :
29093  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29094
29095fi
29096
29097
29098
29099# Extract the first word of "perl", so it can be a program name with args.
29100set dummy perl; ac_word=$2
29101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29102$as_echo_n "checking for $ac_word... " >&6; }
29103if ${ac_cv_path_PATH_PERL+:} false; then :
29104  $as_echo_n "(cached) " >&6
29105else
29106  case $PATH_PERL in
29107  [\\/]* | ?:[\\/]*)
29108  ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29109  ;;
29110  *)
29111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29112for as_dir in $PATH
29113do
29114  IFS=$as_save_IFS
29115  test -z "$as_dir" && as_dir=.
29116    for ac_exec_ext in '' $ac_executable_extensions; do
29117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29118    ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29120    break 2
29121  fi
29122done
29123  done
29124IFS=$as_save_IFS
29125
29126  ;;
29127esac
29128fi
29129PATH_PERL=$ac_cv_path_PATH_PERL
29130if test -n "$PATH_PERL"; then
29131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29132$as_echo "$PATH_PERL" >&6; }
29133else
29134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29135$as_echo "no" >&6; }
29136fi
29137
29138
29139{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29140# Extract the first word of "test", so it can be a program name with args.
29141set dummy test; ac_word=$2
29142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29143$as_echo_n "checking for $ac_word... " >&6; }
29144if ${ac_cv_path_PATH_TEST+:} false; then :
29145  $as_echo_n "(cached) " >&6
29146else
29147  case $PATH_TEST in
29148  [\\/]* | ?:[\\/]*)
29149  ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29150  ;;
29151  *)
29152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29153for as_dir in $PATH
29154do
29155  IFS=$as_save_IFS
29156  test -z "$as_dir" && as_dir=.
29157    for ac_exec_ext in '' $ac_executable_extensions; do
29158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29159    ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29161    break 2
29162  fi
29163done
29164  done
29165IFS=$as_save_IFS
29166
29167  ;;
29168esac
29169fi
29170PATH_TEST=$ac_cv_path_PATH_TEST
29171if test -n "$PATH_TEST"; then
29172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29173$as_echo "$PATH_TEST" >&6; }
29174else
29175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29176$as_echo "no" >&6; }
29177fi
29178
29179
29180{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29181test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29182
29183
29184# Check whether --with-net-snmp-config was given.
29185if test "${with_net_snmp_config+set}" = set; then :
29186  withval=$with_net_snmp_config; ans=$withval
29187else
29188  ans=yes
29189
29190fi
29191
29192case "$ans" in
29193 no)
29194    ;;
29195 yes)
29196    ans=net-snmp-config
29197    ;;
29198 /*)
29199    ;;
29200 */*)
29201    as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29202    ;;
29203 *)
29204    ;;
29205esac
29206PROG_NET_SNMP_CONFIG=$ans
29207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29208$as_echo_n "checking for net-snmp-config path... " >&6; }
29209case "$PROG_NET_SNMP_CONFIG" in
29210 no) ;;
29211 /*)
29212    PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29213    ;;
29214 *)
29215    # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29216set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29218$as_echo_n "checking for $ac_word... " >&6; }
29219if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29220  $as_echo_n "(cached) " >&6
29221else
29222  case $PATH_NET_SNMP_CONFIG in
29223  [\\/]* | ?:[\\/]*)
29224  ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29225  ;;
29226  *)
29227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29228for as_dir in $PATH
29229do
29230  IFS=$as_save_IFS
29231  test -z "$as_dir" && as_dir=.
29232    for ac_exec_ext in '' $ac_executable_extensions; do
29233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29234    ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29236    break 2
29237  fi
29238done
29239  done
29240IFS=$as_save_IFS
29241
29242  ;;
29243esac
29244fi
29245PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29246if test -n "$PATH_NET_SNMP_CONFIG"; then
29247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29248$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29249else
29250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29251$as_echo "no" >&6; }
29252fi
29253
29254
29255    { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29256;;
29257esac
29258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29259$as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29260
29261case "$PATH_NET_SNMP_CONFIG" in
29262 /*)	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29263$as_echo_n "checking for net-snmp version... " >&6; }
29264if ${ntp_cv_net_snmp_version+:} false; then :
29265  $as_echo_n "(cached) " >&6
29266else
29267  ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29268
29269fi
29270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29271$as_echo "$ntp_cv_net_snmp_version" >&6; }
29272	;;
29273esac
29274
29275case "$host" in
29276 *-*-vxworks*)
29277    ac_link="$ac_link $VX_KERNEL"
29278    ;;
29279esac
29280
29281# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29283$as_echo_n "checking for library containing openlog... " >&6; }
29284if ${ac_cv_search_openlog+:} false; then :
29285  $as_echo_n "(cached) " >&6
29286else
29287  ac_func_search_save_LIBS=$LIBS
29288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29289/* end confdefs.h.  */
29290
29291/* Override any GCC internal prototype to avoid an error.
29292   Use char because int might match the return type of a GCC
29293   builtin and then its argument prototype would still apply.  */
29294#ifdef __cplusplus
29295extern "C"
29296#endif
29297char openlog ();
29298int
29299main ()
29300{
29301return openlog ();
29302  ;
29303  return 0;
29304}
29305_ACEOF
29306for ac_lib in '' gen syslog; do
29307  if test -z "$ac_lib"; then
29308    ac_res="none required"
29309  else
29310    ac_res=-l$ac_lib
29311    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29312  fi
29313  if ac_fn_c_try_link "$LINENO"; then :
29314  ac_cv_search_openlog=$ac_res
29315fi
29316rm -f core conftest.err conftest.$ac_objext \
29317    conftest$ac_exeext
29318  if ${ac_cv_search_openlog+:} false; then :
29319  break
29320fi
29321done
29322if ${ac_cv_search_openlog+:} false; then :
29323
29324else
29325  ac_cv_search_openlog=no
29326fi
29327rm conftest.$ac_ext
29328LIBS=$ac_func_search_save_LIBS
29329fi
29330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29331$as_echo "$ac_cv_search_openlog" >&6; }
29332ac_res=$ac_cv_search_openlog
29333if test "$ac_res" != no; then :
29334  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29335
29336fi
29337
29338# XXX library list will be in ac_cv_search_openlog
29339
29340# LIBSECCOMP is off by default -- needs testing with all the features
29341# Please send bug reports to loganaden@gmail.com
29342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29343$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29344# Check whether --enable-libseccomp was given.
29345if test "${enable_libseccomp+set}" = set; then :
29346  enableval=$enable_libseccomp; ntp_ok=$enableval
29347else
29348  ntp_ok=no
29349
29350fi
29351
29352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29353$as_echo "$ntp_ok" >&6; }
29354case "$ntp_ok" in
29355 yes)
29356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29357$as_echo_n "checking for library containing seccomp_init... " >&6; }
29358if ${ac_cv_search_seccomp_init+:} false; then :
29359  $as_echo_n "(cached) " >&6
29360else
29361  ac_func_search_save_LIBS=$LIBS
29362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29363/* end confdefs.h.  */
29364
29365/* Override any GCC internal prototype to avoid an error.
29366   Use char because int might match the return type of a GCC
29367   builtin and then its argument prototype would still apply.  */
29368#ifdef __cplusplus
29369extern "C"
29370#endif
29371char seccomp_init ();
29372int
29373main ()
29374{
29375return seccomp_init ();
29376  ;
29377  return 0;
29378}
29379_ACEOF
29380for ac_lib in '' seccomp; do
29381  if test -z "$ac_lib"; then
29382    ac_res="none required"
29383  else
29384    ac_res=-l$ac_lib
29385    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29386  fi
29387  if ac_fn_c_try_link "$LINENO"; then :
29388  ac_cv_search_seccomp_init=$ac_res
29389fi
29390rm -f core conftest.err conftest.$ac_objext \
29391    conftest$ac_exeext
29392  if ${ac_cv_search_seccomp_init+:} false; then :
29393  break
29394fi
29395done
29396if ${ac_cv_search_seccomp_init+:} false; then :
29397
29398else
29399  ac_cv_search_seccomp_init=no
29400fi
29401rm conftest.$ac_ext
29402LIBS=$ac_func_search_save_LIBS
29403fi
29404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29405$as_echo "$ac_cv_search_seccomp_init" >&6; }
29406ac_res=$ac_cv_search_seccomp_init
29407if test "$ac_res" != no; then :
29408  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29409
29410$as_echo "#define LIBSECCOMP 1" >>confdefs.h
29411
29412
29413fi
29414
29415    if test "$cross_compiling" = yes; then :
29416  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29418as_fn_error $? "cannot run test program while cross compiling
29419See \`config.log' for more details" "$LINENO" 5; }
29420else
29421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29422/* end confdefs.h.  */
29423
29424	#include <stdio.h>
29425	#include <stdlib.h>
29426	#include <errno.h>
29427	#include <sys/prctl.h>
29428	#include <linux/seccomp.h>
29429
29430	int main(void)
29431	{
29432		int ret;
29433		ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29434		if (ret < 0) {
29435			switch (errno) {
29436			case ENOSYS:
29437				return 1;
29438			case EINVAL:
29439				return 1;
29440			default:
29441				return 1;
29442			}
29443		}
29444		ret =
29445		prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29446		if (ret < 0) {
29447			switch (errno) {
29448			case EINVAL:
29449				return 1;
29450			case EFAULT:
29451				return 0;
29452			default:
29453				return 1;
29454		}
29455	}
29456return 1;
29457}
29458
29459
29460_ACEOF
29461if ac_fn_c_try_run "$LINENO"; then :
29462
29463$as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29464
29465
29466fi
29467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29468  conftest.$ac_objext conftest.beam conftest.$ac_ext
29469fi
29470
29471    ;;
29472esac
29473
29474
29475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29476$as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29477if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29478  $as_echo_n "(cached) " >&6
29479else
29480
29481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482/* end confdefs.h.  */
29483
29484#define SYSLOG_NAMES
29485#include <stdlib.h>
29486#include <syslog.h>
29487
29488int
29489main ()
29490{
29491 void *fnames; fnames = facilitynames;
29492  ;
29493  return 0;
29494}
29495_ACEOF
29496if ac_fn_c_try_compile "$LINENO"; then :
29497  ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29498else
29499  ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29500fi
29501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29502fi
29503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29504$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29505case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29506 yes)
29507
29508$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29509
29510    ;;
29511 no)
29512    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29513$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29514    ;;
29515 cross)
29516    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29517$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29518    ;;
29519esac
29520
29521
29522
29523case "$host" in
29524 *-*-*linux*) ;;
29525 *-*-osf4*) ;;
29526 *-*-osf5*) ;;
29527 *)
29528    # HMS: Make sure we check for -lrt for clock_* before this...
29529    case "$ac_cv_search_clock_gettime" in
29530     '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29531    esac
29532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29533$as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29534if ${ac_cv_search_sched_setscheduler+:} false; then :
29535  $as_echo_n "(cached) " >&6
29536else
29537  ac_func_search_save_LIBS=$LIBS
29538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29539/* end confdefs.h.  */
29540
29541/* Override any GCC internal prototype to avoid an error.
29542   Use char because int might match the return type of a GCC
29543   builtin and then its argument prototype would still apply.  */
29544#ifdef __cplusplus
29545extern "C"
29546#endif
29547char sched_setscheduler ();
29548int
29549main ()
29550{
29551return sched_setscheduler ();
29552  ;
29553  return 0;
29554}
29555_ACEOF
29556for ac_lib in '' rt posix4; do
29557  if test -z "$ac_lib"; then
29558    ac_res="none required"
29559  else
29560    ac_res=-l$ac_lib
29561    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29562  fi
29563  if ac_fn_c_try_link "$LINENO"; then :
29564  ac_cv_search_sched_setscheduler=$ac_res
29565fi
29566rm -f core conftest.err conftest.$ac_objext \
29567    conftest$ac_exeext
29568  if ${ac_cv_search_sched_setscheduler+:} false; then :
29569  break
29570fi
29571done
29572if ${ac_cv_search_sched_setscheduler+:} false; then :
29573
29574else
29575  ac_cv_search_sched_setscheduler=no
29576fi
29577rm conftest.$ac_ext
29578LIBS=$ac_func_search_save_LIBS
29579fi
29580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29581$as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29582ac_res=$ac_cv_search_sched_setscheduler
29583if test "$ac_res" != no; then :
29584  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29585
29586fi
29587
29588    ;;
29589esac
29590
29591for ac_header in bstring.h
29592do :
29593  ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29594if test "x$ac_cv_header_bstring_h" = xyes; then :
29595  cat >>confdefs.h <<_ACEOF
29596#define HAVE_BSTRING_H 1
29597_ACEOF
29598
29599fi
29600
29601done
29602
29603ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29604if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29606$as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29607if ${ac_cv_search_DNSServiceRegister+:} false; then :
29608  $as_echo_n "(cached) " >&6
29609else
29610  ac_func_search_save_LIBS=$LIBS
29611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29612/* end confdefs.h.  */
29613
29614/* Override any GCC internal prototype to avoid an error.
29615   Use char because int might match the return type of a GCC
29616   builtin and then its argument prototype would still apply.  */
29617#ifdef __cplusplus
29618extern "C"
29619#endif
29620char DNSServiceRegister ();
29621int
29622main ()
29623{
29624return DNSServiceRegister ();
29625  ;
29626  return 0;
29627}
29628_ACEOF
29629for ac_lib in '' dns_sd; do
29630  if test -z "$ac_lib"; then
29631    ac_res="none required"
29632  else
29633    ac_res=-l$ac_lib
29634    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29635  fi
29636  if ac_fn_c_try_link "$LINENO"; then :
29637  ac_cv_search_DNSServiceRegister=$ac_res
29638fi
29639rm -f core conftest.err conftest.$ac_objext \
29640    conftest$ac_exeext
29641  if ${ac_cv_search_DNSServiceRegister+:} false; then :
29642  break
29643fi
29644done
29645if ${ac_cv_search_DNSServiceRegister+:} false; then :
29646
29647else
29648  ac_cv_search_DNSServiceRegister=no
29649fi
29650rm conftest.$ac_ext
29651LIBS=$ac_func_search_save_LIBS
29652fi
29653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29654$as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29655ac_res=$ac_cv_search_DNSServiceRegister
29656if test "$ac_res" != no; then :
29657  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29658
29659$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29660
29661
29662fi
29663
29664
29665fi
29666
29667
29668for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29669do :
29670  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29671ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29673  cat >>confdefs.h <<_ACEOF
29674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29675_ACEOF
29676
29677fi
29678
29679done
29680
29681
29682for ac_header in memory.h netdb.h poll.h
29683do :
29684  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29685ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29687  cat >>confdefs.h <<_ACEOF
29688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29689_ACEOF
29690
29691fi
29692
29693done
29694
29695for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h
29696do :
29697  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29698ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29700  cat >>confdefs.h <<_ACEOF
29701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29702_ACEOF
29703
29704fi
29705
29706done
29707
29708for ac_header in termios.h timepps.h timex.h unistd.h
29709do :
29710  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29713  cat >>confdefs.h <<_ACEOF
29714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29715_ACEOF
29716
29717fi
29718
29719done
29720
29721
29722case "$host" in
29723 *-*-aix*)
29724    for ac_header in utmpx.h
29725do :
29726  ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29727if test "x$ac_cv_header_utmpx_h" = xyes; then :
29728  cat >>confdefs.h <<_ACEOF
29729#define HAVE_UTMPX_H 1
29730_ACEOF
29731
29732fi
29733
29734done
29735
29736    case "$ac_cv_header_utmpx_h" in
29737     yes)
29738	;;
29739     *)
29740	for ac_header in utmp.h
29741do :
29742  ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29743if test "x$ac_cv_header_utmp_h" = xyes; then :
29744  cat >>confdefs.h <<_ACEOF
29745#define HAVE_UTMP_H 1
29746_ACEOF
29747
29748fi
29749
29750done
29751
29752	;;
29753    esac
29754    ;;
29755 *)
29756    for ac_header in utmp.h utmpx.h
29757do :
29758  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29759ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29761  cat >>confdefs.h <<_ACEOF
29762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29763_ACEOF
29764
29765fi
29766
29767done
29768
29769    ;;
29770esac
29771
29772#
29773# On Suns only (so far) getpass() truncates the typed password to 8
29774# characters, but getpassphrase() allows up to 257.  Most systems'
29775# getpass() does not truncate, at least not so as to affect ntpq and
29776# ntpdc password prompts.
29777#
29778# So check for getpassphrase(), but only on Sun operating systems.
29779#
29780case "$host" in
29781 *-*-sunos*|*-*-solaris*)
29782    for ac_func in getpassphrase
29783do :
29784  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29785if test "x$ac_cv_func_getpassphrase" = xyes; then :
29786  cat >>confdefs.h <<_ACEOF
29787#define HAVE_GETPASSPHRASE 1
29788_ACEOF
29789
29790fi
29791done
29792
29793esac
29794
29795
29796for ac_header in net/if6.h
29797do :
29798  ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29799if test "x$ac_cv_header_net_if6_h" = xyes; then :
29800  cat >>confdefs.h <<_ACEOF
29801#define HAVE_NET_IF6_H 1
29802_ACEOF
29803
29804fi
29805
29806done
29807
29808for ac_header in net/route.h
29809do :
29810  ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29811    #include <sys/types.h>
29812    #include <sys/socket.h>
29813    #include <net/if.h>
29814
29815"
29816if test "x$ac_cv_header_net_route_h" = xyes; then :
29817  cat >>confdefs.h <<_ACEOF
29818#define HAVE_NET_ROUTE_H 1
29819_ACEOF
29820
29821fi
29822
29823done
29824
29825
29826for ac_header in netinfo/ni.h
29827do :
29828  ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29829if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29830  cat >>confdefs.h <<_ACEOF
29831#define HAVE_NETINFO_NI_H 1
29832_ACEOF
29833
29834fi
29835
29836done
29837
29838case "$ac_cv_header_netinfo_ni_h" in
29839 yes)
29840
29841$as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29842
29843esac
29844for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29845do :
29846  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29847ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29849  cat >>confdefs.h <<_ACEOF
29850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29851_ACEOF
29852
29853fi
29854
29855done
29856
29857case "$host" in
29858 *-*-sunos4*)
29859    ;;
29860 *)
29861    for ac_header in sys/ioctl.h
29862do :
29863  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29864if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29865  cat >>confdefs.h <<_ACEOF
29866#define HAVE_SYS_IOCTL_H 1
29867_ACEOF
29868
29869fi
29870
29871done
29872
29873    ;;
29874esac
29875for ac_header in sys/ipc.h sys/lock.h sys/mman.h
29876do :
29877  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29878ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29880  cat >>confdefs.h <<_ACEOF
29881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29882_ACEOF
29883
29884fi
29885
29886done
29887
29888# HMS: Check sys/proc.h and sys/resource.h after some others
29889for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
29890do :
29891  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29892ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29894  cat >>confdefs.h <<_ACEOF
29895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29896_ACEOF
29897
29898fi
29899
29900done
29901
29902case "$ac_cv_header_sched_h" in
29903 yes)
29904    ;;
29905 *)
29906    for ac_header in sys/sched.h
29907do :
29908  ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
29909if test "x$ac_cv_header_sys_sched_h" = xyes; then :
29910  cat >>confdefs.h <<_ACEOF
29911#define HAVE_SYS_SCHED_H 1
29912_ACEOF
29913
29914fi
29915
29916done
29917
29918    ;;
29919esac
29920# HMS: Check sys/shm.h after some others
29921for ac_header in sys/select.h sys/signal.h sys/sockio.h
29922do :
29923  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29924ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29925if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29926  cat >>confdefs.h <<_ACEOF
29927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29928_ACEOF
29929
29930fi
29931
29932done
29933
29934# HMS: Checked sys/socket.h earlier
29935case "$host" in
29936 *-*-netbsd*)
29937    ;;
29938 *)
29939    for ac_header in machine/soundcard.h sys/soundcard.h
29940do :
29941  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29942ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29943if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29944  cat >>confdefs.h <<_ACEOF
29945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29946_ACEOF
29947
29948fi
29949
29950done
29951
29952    ;;
29953esac
29954for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
29955do :
29956  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29957ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29958if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29959  cat >>confdefs.h <<_ACEOF
29960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29961_ACEOF
29962
29963fi
29964
29965done
29966
29967for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
29968do :
29969  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29970ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29972  cat >>confdefs.h <<_ACEOF
29973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29974_ACEOF
29975
29976fi
29977
29978done
29979
29980case "$host" in
29981*-convex-*)
29982    for ac_header in /sys/sync/queue.h /sys/sync/sema.h
29983do :
29984  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29985ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29987  cat >>confdefs.h <<_ACEOF
29988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29989_ACEOF
29990
29991fi
29992
29993done
29994
29995    ;;
29996*-*-bsdi*)
29997    for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
29998do :
29999  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30002  cat >>confdefs.h <<_ACEOF
30003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30004_ACEOF
30005
30006fi
30007
30008done
30009
30010    ;;
30011esac
30012
30013case "$ac_cv_header_stdatomic_h" in
30014 yes)
30015	for ac_func in atomic_thread_fence
30016do :
30017  ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30018if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30019  cat >>confdefs.h <<_ACEOF
30020#define HAVE_ATOMIC_THREAD_FENCE 1
30021_ACEOF
30022
30023fi
30024done
30025
30026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30027$as_echo_n "checking for atomic_thread_fence()... " >&6; }
30028if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30029  $as_echo_n "(cached) " >&6
30030else
30031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032/* end confdefs.h.  */
30033
30034			#include <stdatomic.h>
30035
30036int
30037main ()
30038{
30039
30040			atomic_thread_fence(memory_order_seq_cst);
30041
30042
30043  ;
30044  return 0;
30045}
30046		ntp_cv_func_atomic_thread_fence=yes
30047_ACEOF
30048if ac_fn_c_try_compile "$LINENO"; then :
30049  ntp_cv_func_atomic_thread_fence=no
30050
30051fi
30052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30053
30054fi
30055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30056$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30057    ;;
30058esac
30059
30060case "$host" in
30061 *-*-solaris2.6)
30062    # Broken...
30063    ;;
30064 *)
30065    for ac_func in ntp_adjtime ntp_gettime
30066do :
30067  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30069if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30070  cat >>confdefs.h <<_ACEOF
30071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30072_ACEOF
30073
30074fi
30075done
30076
30077    ;;
30078esac
30079
30080case "$host" in
30081 *-*-*linux*)
30082    case "$ac_cv_func_ntp_gettime" in
30083     yes)
30084	;;
30085     *)
30086	for ac_func in __ntp_gettime
30087do :
30088  ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30089if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30090  cat >>confdefs.h <<_ACEOF
30091#define HAVE___NTP_GETTIME 1
30092_ACEOF
30093
30094fi
30095done
30096
30097	case "$ac_cv_func___ntp_gettime" in
30098	 yes)
30099
30100$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30101
30102
30103$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30104
30105	esac
30106	;;
30107    esac
30108    for ac_func in adjtimex
30109do :
30110  ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30111if test "x$ac_cv_func_adjtimex" = xyes; then :
30112  cat >>confdefs.h <<_ACEOF
30113#define HAVE_ADJTIMEX 1
30114_ACEOF
30115
30116fi
30117done
30118
30119    case "$ac_cv_func_adjtimex" in
30120     yes)
30121
30122$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30123
30124
30125$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30126
30127	have_adjtimex=1
30128	;;
30129     *)
30130	for ac_func in __adjtimex
30131do :
30132  ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30133if test "x$ac_cv_func___adjtimex" = xyes; then :
30134  cat >>confdefs.h <<_ACEOF
30135#define HAVE___ADJTIMEX 1
30136_ACEOF
30137
30138fi
30139done
30140
30141	case "$ac_cv_func___adjtimex" in
30142	 yes)
30143
30144$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30145
30146
30147$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30148
30149
30150$as_echo "#define adjtimex __adjtimex" >>confdefs.h
30151
30152
30153$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30154
30155	    have_adjtimex=1
30156	esac
30157	;;
30158    esac
30159esac
30160case "$have_adjtimex" in
30161 '')
30162    # nlist stuff is only needed for tickadj.
30163    saved_LIBS="$LIBS"
30164    LIBS=
30165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30166$as_echo_n "checking for library containing nlist... " >&6; }
30167if ${ac_cv_search_nlist+:} false; then :
30168  $as_echo_n "(cached) " >&6
30169else
30170  ac_func_search_save_LIBS=$LIBS
30171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30172/* end confdefs.h.  */
30173
30174/* Override any GCC internal prototype to avoid an error.
30175   Use char because int might match the return type of a GCC
30176   builtin and then its argument prototype would still apply.  */
30177#ifdef __cplusplus
30178extern "C"
30179#endif
30180char nlist ();
30181int
30182main ()
30183{
30184return nlist ();
30185  ;
30186  return 0;
30187}
30188_ACEOF
30189for ac_lib in '' elf ld mld; do
30190  if test -z "$ac_lib"; then
30191    ac_res="none required"
30192  else
30193    ac_res=-l$ac_lib
30194    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30195  fi
30196  if ac_fn_c_try_link "$LINENO"; then :
30197  ac_cv_search_nlist=$ac_res
30198fi
30199rm -f core conftest.err conftest.$ac_objext \
30200    conftest$ac_exeext
30201  if ${ac_cv_search_nlist+:} false; then :
30202  break
30203fi
30204done
30205if ${ac_cv_search_nlist+:} false; then :
30206
30207else
30208  ac_cv_search_nlist=no
30209fi
30210rm conftest.$ac_ext
30211LIBS=$ac_func_search_save_LIBS
30212fi
30213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30214$as_echo "$ac_cv_search_nlist" >&6; }
30215ac_res=$ac_cv_search_nlist
30216if test "$ac_res" != no; then :
30217  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30218
30219fi
30220
30221    # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30223$as_echo_n "checking for library containing kvm_open... " >&6; }
30224if ${ac_cv_search_kvm_open+:} false; then :
30225  $as_echo_n "(cached) " >&6
30226else
30227  ac_func_search_save_LIBS=$LIBS
30228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30229/* end confdefs.h.  */
30230
30231/* Override any GCC internal prototype to avoid an error.
30232   Use char because int might match the return type of a GCC
30233   builtin and then its argument prototype would still apply.  */
30234#ifdef __cplusplus
30235extern "C"
30236#endif
30237char kvm_open ();
30238int
30239main ()
30240{
30241return kvm_open ();
30242  ;
30243  return 0;
30244}
30245_ACEOF
30246for ac_lib in '' kvm; do
30247  if test -z "$ac_lib"; then
30248    ac_res="none required"
30249  else
30250    ac_res=-l$ac_lib
30251    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30252  fi
30253  if ac_fn_c_try_link "$LINENO"; then :
30254  ac_cv_search_kvm_open=$ac_res
30255fi
30256rm -f core conftest.err conftest.$ac_objext \
30257    conftest$ac_exeext
30258  if ${ac_cv_search_kvm_open+:} false; then :
30259  break
30260fi
30261done
30262if ${ac_cv_search_kvm_open+:} false; then :
30263
30264else
30265  ac_cv_search_kvm_open=no
30266fi
30267rm conftest.$ac_ext
30268LIBS=$ac_func_search_save_LIBS
30269fi
30270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30271$as_echo "$ac_cv_search_kvm_open" >&6; }
30272ac_res=$ac_cv_search_kvm_open
30273if test "$ac_res" != no; then :
30274  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30275
30276fi
30277	    # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30278    for ac_header in nlist.h sys/var.h
30279do :
30280  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30281ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30282if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30283  cat >>confdefs.h <<_ACEOF
30284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30285_ACEOF
30286
30287fi
30288
30289done
30290
30291    case "$ac_cv_header_nlist_h" in
30292     yes)
30293
30294$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30295
30296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30297$as_echo_n "checking for n_un in struct nlist... " >&6; }
30298if ${ntp_cv_struct_nlist_n_un+:} false; then :
30299  $as_echo_n "(cached) " >&6
30300else
30301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30302/* end confdefs.h.  */
30303
30304			#include <nlist.h>
30305
30306int
30307main ()
30308{
30309
30310			struct nlist n;
30311			n.n_un.n_name = 0;
30312
30313
30314  ;
30315  return 0;
30316}
30317		ntp_cv_struct_nlist_n_un=yes
30318_ACEOF
30319if ac_fn_c_try_compile "$LINENO"; then :
30320  ntp_cv_struct_nlist_n_un=no
30321
30322fi
30323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30324
30325fi
30326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30327$as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30328	case "$ntp_cv_struct_nlist_n_un" in
30329	 yes)
30330
30331$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30332
30333	esac
30334    esac
30335
30336    LDADD_NLIST="$LIBS"
30337    LIBS="$saved_LIBS"
30338    { saved_LIBS=; unset saved_LIBS;}
30339esac
30340
30341for ac_header in sys/proc.h
30342do :
30343  ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30344    #ifdef HAVE_SYS_TYPES_H
30345    # include <sys/types.h>
30346    #endif
30347    #ifdef HAVE_SYS_TIME_H
30348    # include <sys/time.h>
30349    #endif
30350
30351"
30352if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30353  cat >>confdefs.h <<_ACEOF
30354#define HAVE_SYS_PROC_H 1
30355_ACEOF
30356
30357fi
30358
30359done
30360
30361
30362for ac_header in sys/resource.h
30363do :
30364  ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30365    #ifdef HAVE_SYS_TIME_H
30366    # include <sys/time.h>
30367    #endif
30368
30369"
30370if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30371  cat >>confdefs.h <<_ACEOF
30372#define HAVE_SYS_RESOURCE_H 1
30373_ACEOF
30374
30375fi
30376
30377done
30378
30379
30380for ac_header in sys/shm.h
30381do :
30382  ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30383    #ifdef HAVE_SYS_TYPES_H
30384    # include <sys/types.h>
30385    #endif
30386    #ifdef HAVE_SYS_IPC_H
30387    # include <sys/ipc.h>
30388    #endif
30389
30390"
30391if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30392  cat >>confdefs.h <<_ACEOF
30393#define HAVE_SYS_SHM_H 1
30394_ACEOF
30395
30396fi
30397
30398done
30399
30400
30401for ac_header in sys/timex.h
30402do :
30403  ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30404    #ifdef HAVE_SYS_TIME_H
30405    # include <sys/time.h>
30406    #endif
30407
30408"
30409if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30410  cat >>confdefs.h <<_ACEOF
30411#define HAVE_SYS_TIMEX_H 1
30412_ACEOF
30413
30414fi
30415
30416done
30417
30418
30419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30420$as_echo_n "checking return type of signal handlers... " >&6; }
30421if ${ac_cv_type_signal+:} false; then :
30422  $as_echo_n "(cached) " >&6
30423else
30424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30425/* end confdefs.h.  */
30426#include <sys/types.h>
30427#include <signal.h>
30428
30429int
30430main ()
30431{
30432return *(signal (0, 0)) (0) == 1;
30433  ;
30434  return 0;
30435}
30436_ACEOF
30437if ac_fn_c_try_compile "$LINENO"; then :
30438  ac_cv_type_signal=int
30439else
30440  ac_cv_type_signal=void
30441fi
30442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30443fi
30444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30445$as_echo "$ac_cv_type_signal" >&6; }
30446
30447cat >>confdefs.h <<_ACEOF
30448#define RETSIGTYPE $ac_cv_type_signal
30449_ACEOF
30450
30451
30452ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30453if test "x$ac_cv_type_off_t" = xyes; then :
30454
30455else
30456
30457cat >>confdefs.h <<_ACEOF
30458#define off_t long int
30459_ACEOF
30460
30461fi
30462
30463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30464$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30465if ${ac_cv_struct_tm+:} false; then :
30466  $as_echo_n "(cached) " >&6
30467else
30468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469/* end confdefs.h.  */
30470#include <sys/types.h>
30471#include <time.h>
30472
30473int
30474main ()
30475{
30476struct tm tm;
30477				     int *p = &tm.tm_sec;
30478				     return !p;
30479  ;
30480  return 0;
30481}
30482_ACEOF
30483if ac_fn_c_try_compile "$LINENO"; then :
30484  ac_cv_struct_tm=time.h
30485else
30486  ac_cv_struct_tm=sys/time.h
30487fi
30488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30489fi
30490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30491$as_echo "$ac_cv_struct_tm" >&6; }
30492if test $ac_cv_struct_tm = sys/time.h; then
30493
30494$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30495
30496fi
30497
30498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30499$as_echo_n "checking for a fallback value for HZ... " >&6; }
30500if ${ntp_cv_default_hz+:} false; then :
30501  $as_echo_n "(cached) " >&6
30502else
30503
30504	ntp_cv_default_hz=100
30505	case "$host" in
30506	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30507	    ntp_cv_default_hz=1024
30508	    ;;
30509	 mips-dec-ultrix4*)
30510	    ntp_cv_default_hz=256
30511	    ;;
30512	esac
30513
30514
30515fi
30516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30517$as_echo "$ntp_cv_default_hz" >&6; }
30518
30519cat >>confdefs.h <<_ACEOF
30520#define DEFAULT_HZ $ntp_cv_default_hz
30521_ACEOF
30522
30523
30524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30525$as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30526if ${ntp_cv_override_hz+:} false; then :
30527  $as_echo_n "(cached) " >&6
30528else
30529
30530	ntp_cv_override_hz=no
30531	case "$host" in
30532	 alpha*-dec-osf4*|alpha*-dec-osf5*)
30533	    ntp_cv_override_hz=yes
30534	    ;;
30535	 mips-dec-ultrix4*)
30536	    ntp_cv_override_hz=yes
30537	    ;;
30538	 *-*-freebsd*)
30539	    ntp_cv_override_hz=yes
30540	    ;;
30541	 *-*-sunos4*)
30542	    ntp_cv_override_hz=yes
30543	    ;;
30544	 *-*-kfreebsd*)
30545	    ntp_cv_override_hz=yes
30546	    ;;
30547	esac
30548
30549
30550fi
30551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30552$as_echo "$ntp_cv_override_hz" >&6; }
30553case "$ntp_cv_override_hz" in
30554 yes)
30555
30556$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30557
30558esac
30559
30560
30561
30562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30563$as_echo_n "checking for struct rt_msghdr... " >&6; }
30564if ${ntp_cv_struct_rt_msghdr+:} false; then :
30565  $as_echo_n "(cached) " >&6
30566else
30567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30568/* end confdefs.h.  */
30569
30570		#include <sys/types.h>
30571		#include <sys/socket.h>
30572		#include <net/if.h>
30573		#include <net/route.h>
30574
30575int
30576main ()
30577{
30578
30579		struct rt_msghdr p;
30580
30581
30582  ;
30583  return 0;
30584}
30585_ACEOF
30586if ac_fn_c_try_compile "$LINENO"; then :
30587  ntp_cv_struct_rt_msghdr=yes
30588else
30589  ntp_cv_struct_rt_msghdr=no
30590
30591fi
30592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30593
30594fi
30595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30596$as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30597
30598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30599$as_echo_n "checking for struct rtattr... " >&6; }
30600if ${ntp_cv_rtattr+:} false; then :
30601  $as_echo_n "(cached) " >&6
30602else
30603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30604/* end confdefs.h.  */
30605
30606		#include <stddef.h>
30607		#include <sys/socket.h>
30608		#include <linux/rtnetlink.h>
30609
30610int
30611main ()
30612{
30613
30614		struct rtattr p;
30615
30616
30617  ;
30618  return 0;
30619}
30620_ACEOF
30621if ac_fn_c_try_compile "$LINENO"; then :
30622  ntp_cv_rtattr=yes
30623else
30624  ntp_cv_rtattr=no
30625
30626fi
30627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30628
30629fi
30630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30631$as_echo "$ntp_cv_rtattr" >&6; }
30632
30633case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30634 *yes*)
30635
30636$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30637
30638    case "$ntp_cv_rtattr" in
30639     yes)
30640
30641$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30642
30643    esac
30644esac
30645
30646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30647$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30648if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30649  $as_echo_n "(cached) " >&6
30650else
30651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30652/* end confdefs.h.  */
30653
30654		#include <signal.h>
30655
30656int
30657main ()
30658{
30659
30660		struct sigaction act;
30661		act.sa_sigaction = 0;
30662
30663
30664  ;
30665  return 0;
30666}
30667_ACEOF
30668if ac_fn_c_try_compile "$LINENO"; then :
30669  ntp_cv_struct_sigaction_has_sa_sigaction=yes
30670else
30671  ntp_cv_struct_sigaction_has_sa_sigaction=no
30672
30673fi
30674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30675
30676fi
30677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30678$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30679case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30680 yes)
30681
30682$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30683
30684esac
30685
30686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30687$as_echo_n "checking for struct ppsclockev... " >&6; }
30688if ${ntp_cv_struct_ppsclockev+:} false; then :
30689  $as_echo_n "(cached) " >&6
30690else
30691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30692/* end confdefs.h.  */
30693
30694		#ifdef HAVE_SYS_TYPES_H
30695		# include <sys/types.h>
30696		#endif
30697		#ifdef HAVE_SYS_TERMIOS_H
30698		# include <sys/termios.h>
30699		#endif
30700		#ifdef HAVE_SYS_TIME_H
30701		# include <sys/time.h>
30702		#endif
30703		#ifdef HAVE_SYS_PPSCLOCK_H
30704		# include <sys/ppsclock.h>
30705		#endif
30706
30707int
30708main ()
30709{
30710
30711		extern struct ppsclockev *pce;
30712		return pce->serial;
30713
30714
30715  ;
30716  return 0;
30717}
30718_ACEOF
30719if ac_fn_c_try_compile "$LINENO"; then :
30720  ntp_cv_struct_ppsclockev=yes
30721else
30722  ntp_cv_struct_ppsclockev=no
30723
30724fi
30725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30726
30727fi
30728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30729$as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30730case "$ntp_cv_struct_ppsclockev" in
30731 yes)
30732
30733$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30734
30735esac
30736
30737case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30738  *yes*)
30739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30740$as_echo_n "checking for struct snd_size... " >&6; }
30741if ${ntp_cv_struct_snd_size+:} false; then :
30742  $as_echo_n "(cached) " >&6
30743else
30744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745/* end confdefs.h.  */
30746
30747		    #ifdef HAVE_MACHINE_SOUNDCARD_H
30748		    # include <machine/soundcard.h>
30749		    #endif
30750		    #ifdef HAVE_SYS_SOUNDCARD_H
30751		    # include <sys/soundcard.h>
30752		    #endif
30753
30754int
30755main ()
30756{
30757
30758		    extern struct snd_size *ss;
30759		    return ss->rec_size;
30760
30761
30762  ;
30763  return 0;
30764}
30765_ACEOF
30766if ac_fn_c_try_compile "$LINENO"; then :
30767  ntp_cv_struct_snd_size=yes
30768else
30769  ntp_cv_struct_snd_size=no
30770
30771fi
30772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773
30774fi
30775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30776$as_echo "$ntp_cv_struct_snd_size" >&6; }
30777    case "$ntp_cv_struct_snd_size" in
30778     yes)
30779
30780$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30781
30782    esac
30783esac
30784
30785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30786$as_echo_n "checking struct clockinfo for hz... " >&6; }
30787if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30788  $as_echo_n "(cached) " >&6
30789else
30790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30791/* end confdefs.h.  */
30792
30793		#include <sys/time.h>
30794
30795int
30796main ()
30797{
30798
30799		extern struct clockinfo *pc;
30800		return pc->hz;
30801
30802
30803  ;
30804  return 0;
30805}
30806_ACEOF
30807if ac_fn_c_try_compile "$LINENO"; then :
30808  ntp_cv_struct_clockinfo_has_hz=yes
30809else
30810  ntp_cv_struct_clockinfo_has_hz=no
30811
30812fi
30813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30814
30815fi
30816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30817$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30818case "$ntp_cv_struct_clockinfo_has_hz" in
30819 yes)
30820
30821$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30822
30823esac
30824
30825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30826$as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30827if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30828  $as_echo_n "(cached) " >&6
30829else
30830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30831/* end confdefs.h.  */
30832
30833		#include <sys/time.h>
30834
30835int
30836main ()
30837{
30838
30839		extern struct clockinfo *pc;
30840		return pc->tickadj;
30841
30842
30843  ;
30844  return 0;
30845}
30846_ACEOF
30847if ac_fn_c_try_compile "$LINENO"; then :
30848  ntp_cv_struct_clockinfo_has_hz=yes
30849else
30850  ntp_cv_struct_clockinfo_has_hz=no
30851
30852fi
30853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30854
30855fi
30856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30857$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30858case "$ntp_cv_struct_clockinfo_has_hz" in
30859 yes)
30860
30861$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30862
30863esac
30864
30865case "$ntp_cv_struct_ntptimeval" in
30866 yes)
30867    ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30868	    #ifdef HAVE_SYS_TIME_H
30869	    # include <sys/time.h>
30870	    #else
30871	    # ifdef HAVE_TIME_H
30872	    #  include <time.h>
30873	    # endif
30874	    #endif
30875	    #ifdef HAVE_SYS_TIMEX_H
30876	    # include <sys/timex.h>
30877	    #else
30878	    # ifdef HAVE_TIMEX_H
30879	    #  include <timex.h>
30880	    # endif
30881	    #endif
30882
30883
30884"
30885if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
30886
30887cat >>confdefs.h <<_ACEOF
30888#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
30889_ACEOF
30890
30891
30892fi
30893
30894esac
30895
30896####
30897
30898for ac_func in arc4random_buf
30899do :
30900  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
30901if test "x$ac_cv_func_arc4random_buf" = xyes; then :
30902  cat >>confdefs.h <<_ACEOF
30903#define HAVE_ARC4RANDOM_BUF 1
30904_ACEOF
30905
30906fi
30907done
30908
30909
30910####
30911
30912saved_LIBS="$LIBS"
30913LIBS="$LIBS $LDADD_LIBNTP"
30914for ac_func in daemon
30915do :
30916  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
30917if test "x$ac_cv_func_daemon" = xyes; then :
30918  cat >>confdefs.h <<_ACEOF
30919#define HAVE_DAEMON 1
30920_ACEOF
30921
30922fi
30923done
30924
30925# XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
30926LIBS="$saved_LIBS"
30927{ saved_LIBS=; unset saved_LIBS;}
30928
30929for ac_func in finite
30930do :
30931  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
30932if test "x$ac_cv_func_finite" = xyes; then :
30933  cat >>confdefs.h <<_ACEOF
30934#define HAVE_FINITE 1
30935_ACEOF
30936
30937else
30938  for ac_func in isfinite
30939do :
30940  ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
30941if test "x$ac_cv_func_isfinite" = xyes; then :
30942  cat >>confdefs.h <<_ACEOF
30943#define HAVE_ISFINITE 1
30944_ACEOF
30945
30946else
30947
30948	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
30949$as_echo_n "checking for isfinite with <math.h>... " >&6; }
30950	    _libs=$LIBS
30951	    # XXX
30952	    LIBS="$LIBS -lm"
30953	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30954/* end confdefs.h.  */
30955
30956			#include <math.h>
30957
30958int
30959main ()
30960{
30961
30962			float f = 0.0;
30963			isfinite(f);
30964
30965
30966  ;
30967  return 0;
30968}
30969_ACEOF
30970if ac_fn_c_try_link "$LINENO"; then :
30971  ans=yes
30972else
30973  ans=no
30974
30975fi
30976rm -f core conftest.err conftest.$ac_objext \
30977    conftest$ac_exeext conftest.$ac_ext
30978	    LIBS=$_libs
30979	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30980$as_echo "$ans" >&6; }
30981	    case "$ans" in
30982	     yes)
30983		$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
30984
30985	    esac
30986
30987
30988fi
30989done
30990
30991
30992fi
30993done
30994
30995
30996for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
30997do :
30998  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31000if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31001  cat >>confdefs.h <<_ACEOF
31002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31003_ACEOF
31004
31005fi
31006done
31007
31008
31009# kvm_open() is only used by tickadj.  Also see above.
31010case "$ac_cv_header_kvm_h" in
31011 yes)
31012    for ac_func in kvm_open
31013do :
31014  ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31015if test "x$ac_cv_func_kvm_open" = xyes; then :
31016  cat >>confdefs.h <<_ACEOF
31017#define HAVE_KVM_OPEN 1
31018_ACEOF
31019
31020fi
31021done
31022
31023    ;;
31024esac
31025
31026case "$host" in
31027 *-*-sco3.2v5.0.*)
31028    # Just stubs.  Sigh.
31029    ;;
31030 *) for ac_func in mkstemp
31031do :
31032  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31033if test "x$ac_cv_func_mkstemp" = xyes; then :
31034  cat >>confdefs.h <<_ACEOF
31035#define HAVE_MKSTEMP 1
31036_ACEOF
31037
31038fi
31039done
31040
31041    ;;
31042esac
31043for ac_func in mktime
31044do :
31045  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31046if test "x$ac_cv_func_mktime" = xyes; then :
31047  cat >>confdefs.h <<_ACEOF
31048#define HAVE_MKTIME 1
31049_ACEOF
31050
31051fi
31052done
31053
31054case "$host" in
31055 *-*-aix[4-9]*)
31056    # XXX only verified thru AIX6.
31057    # Just a stub.  Sigh.
31058    ;;
31059 *-*-irix[45]*)
31060    # Just a stub in "old" Irix.  Sigh.
31061    ;;
31062# In the belief that the fix for bug 1223 fixes mlockall() under linux...
31063# *-*-*linux*)
31064#    # there, but more trouble than it is worth for now (resolver problems)
31065#    ;;
31066 *-*-qnx*)
31067    # Apparently there but not working in QNX.  Sigh?
31068    ;;
31069 *-*-sco3.2v5.0.*)
31070    # Just a stub.  Sigh.
31071    ;;
31072 alpha*-dec-osf4*|alpha*-dec-osf5*)
31073    # mlockall is there, as a #define calling memlk via <sys/mman.h>
31074    # Not easy to test for - cheat.
31075    for ac_func in memlk
31076do :
31077  ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31078if test "x$ac_cv_func_memlk" = xyes; then :
31079  cat >>confdefs.h <<_ACEOF
31080#define HAVE_MEMLK 1
31081_ACEOF
31082 ac_cv_func_mlockall=yes
31083fi
31084done
31085
31086    for ac_func in mlockall
31087do :
31088  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31089if test "x$ac_cv_func_mlockall" = xyes; then :
31090  cat >>confdefs.h <<_ACEOF
31091#define HAVE_MLOCKALL 1
31092_ACEOF
31093
31094fi
31095done
31096
31097    ;;
31098 *) for ac_func in mlockall
31099do :
31100  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31101if test "x$ac_cv_func_mlockall" = xyes; then :
31102  cat >>confdefs.h <<_ACEOF
31103#define HAVE_MLOCKALL 1
31104_ACEOF
31105
31106fi
31107done
31108
31109    ;;
31110esac
31111for ac_func in nice plock pututline pututxline readlink rtprio
31112do :
31113  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31114ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31115if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31116  cat >>confdefs.h <<_ACEOF
31117#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31118_ACEOF
31119
31120fi
31121done
31122
31123case "$host" in
31124 *-*-aix[4-9]*)
31125    # XXX only verified thru AIX6.
31126    # Just a stub in AIX 4.  Sigh.
31127    ;;
31128 *-*-solaris2.5*)
31129    # Just stubs in solaris2.5.  Sigh.
31130    ;;
31131 *) for ac_func in sched_setscheduler
31132do :
31133  ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31134if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31135  cat >>confdefs.h <<_ACEOF
31136#define HAVE_SCHED_SETSCHEDULER 1
31137_ACEOF
31138
31139fi
31140done
31141
31142    ;;
31143esac
31144for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31145do :
31146  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31147ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31148if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31149  cat >>confdefs.h <<_ACEOF
31150#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31151_ACEOF
31152
31153fi
31154done
31155
31156for ac_func in strdup strerror setrlimit strchr
31157do :
31158  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31159ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31160if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31161  cat >>confdefs.h <<_ACEOF
31162#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163_ACEOF
31164
31165fi
31166done
31167
31168case "$host" in
31169 *-*-aix[4-9]*)
31170    # XXX only verified thru AIX6.
31171    # Just stubs.  Sigh.
31172    ;;
31173 *-*-netbsd1*)
31174    # Just stubs.  Sigh.
31175    ;;
31176 *-*-netbsdelf1*)
31177    # Just stubs.  Sigh.
31178    ;;
31179 *-*-openbsd*)
31180    # Just stubs.  Sigh.
31181    ;;
31182 *)
31183    for ac_func in timer_create
31184do :
31185  ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31186if test "x$ac_cv_func_timer_create" = xyes; then :
31187  cat >>confdefs.h <<_ACEOF
31188#define HAVE_TIMER_CREATE 1
31189_ACEOF
31190
31191fi
31192done
31193
31194    ;;
31195esac
31196
31197
31198
31199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31200$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31201if ${ntp_cv_rlimit_memlock+:} false; then :
31202  $as_echo_n "(cached) " >&6
31203else
31204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31205/* end confdefs.h.  */
31206
31207		#ifdef HAVE_SYS_TYPES_H
31208		# include <sys/types.h>
31209		#endif
31210		#ifdef HAVE_SYS_TIME_H
31211		# include <sys/time.h>
31212		#endif
31213		#ifdef HAVE_SYS_RESOURCE_H
31214		# include <sys/resource.h>
31215		#endif
31216
31217int
31218main ()
31219{
31220
31221		getrlimit(RLIMIT_MEMLOCK, 0);
31222
31223
31224  ;
31225  return 0;
31226}
31227_ACEOF
31228if ac_fn_c_try_compile "$LINENO"; then :
31229  ntp_cv_rlimit_memlock=yes
31230else
31231  ntp_cv_rlimit_memlock=no
31232
31233fi
31234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31235
31236fi
31237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31238$as_echo "$ntp_cv_rlimit_memlock" >&6; }
31239case "$ntp_cv_rlimit_memlock" in
31240 yes)
31241
31242    HAVE_RLIMIT_MEMLOCK=" memlock 32"
31243esac
31244
31245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31246$as_echo_n "checking for RLIMIT_STACK... " >&6; }
31247if ${ntp_cv_rlimit_stack+:} false; then :
31248  $as_echo_n "(cached) " >&6
31249else
31250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251/* end confdefs.h.  */
31252
31253		#ifdef HAVE_SYS_TYPES_H
31254		# include <sys/types.h>
31255		#endif
31256		#ifdef HAVE_SYS_TIME_H
31257		# include <sys/time.h>
31258		#endif
31259		#ifdef HAVE_SYS_RESOURCE_H
31260		# include <sys/resource.h>
31261		#endif
31262
31263int
31264main ()
31265{
31266
31267		getrlimit(RLIMIT_STACK, 0);
31268
31269
31270  ;
31271  return 0;
31272}
31273_ACEOF
31274if ac_fn_c_try_compile "$LINENO"; then :
31275  ntp_cv_rlimit_stack=yes
31276else
31277  ntp_cv_rlimit_stack=no
31278
31279fi
31280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31281
31282fi
31283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31284$as_echo "$ntp_cv_rlimit_stack" >&6; }
31285case "$ntp_cv_rlimit_stack" in
31286 yes)
31287
31288    HAVE_RLIMIT_STACK=" stacksize 50"
31289esac
31290
31291
31292
31293# HMS: Only if we are doing the MLOCKALL stuff...
31294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31295$as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31296
31297# Check whether --with-stack-limit was given.
31298if test "${with_stack_limit+set}" = set; then :
31299  withval=$with_stack_limit; ans=$withval
31300else
31301  ans=yes
31302
31303fi
31304
31305case "$ans" in
31306 yes | no)
31307    case "$host" in
31308     *-*-openbsd*)
31309	ans=200
31310	;;
31311     *) ans=50
31312        ;;
31313    esac
31314    ;;
31315 [1-9][0-9]*)
31316    ;;
31317 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31318    ;;
31319esac
31320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31321$as_echo "$ans" >&6; }
31322
31323cat >>confdefs.h <<_ACEOF
31324#define DFLT_RLIMIT_STACK $ans
31325_ACEOF
31326
31327
31328# HMS: only if we have RLIMIT_MEMLOCK
31329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31330$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31331
31332# Check whether --with-memlock was given.
31333if test "${with_memlock+set}" = set; then :
31334  withval=$with_memlock; ans=$withval
31335else
31336  ans=yes
31337
31338fi
31339
31340case "$ans" in
31341 yes | no)
31342    ans=32
31343    ;;
31344 [1-9][0-9]*) ;;
31345 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31346     ;;
31347esac
31348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31349$as_echo "$ans" >&6; }
31350
31351cat >>confdefs.h <<_ACEOF
31352#define DFLT_RLIMIT_MEMLOCK $ans
31353_ACEOF
31354
31355
31356
31357# some OSes prefer _exit() in forked children to exit()
31358for ac_func in _exit
31359do :
31360  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31361if test "x$ac_cv_func__exit" = xyes; then :
31362  cat >>confdefs.h <<_ACEOF
31363#define HAVE__EXIT 1
31364_ACEOF
31365
31366fi
31367done
31368
31369ntp_worker_child_exit=exit
31370case "$ac_cv_func__exit::$host_os" in
31371 yes::netbsd*)
31372    ntp_worker_child_exit=_exit
31373    ;;
31374 yes::openbsd*)
31375    ntp_worker_child_exit=_exit
31376    ;;
31377esac
31378
31379cat >>confdefs.h <<_ACEOF
31380#define WORKER_CHILD_EXIT $ntp_worker_child_exit
31381_ACEOF
31382
31383
31384for ac_func in umask uname updwtmp updwtmpx
31385do :
31386  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31387ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31389  cat >>confdefs.h <<_ACEOF
31390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31391_ACEOF
31392
31393fi
31394done
31395
31396
31397###
31398
31399# http://bugs.ntp.org/737
31400case "$ac_cv_func_recvmsg" in
31401 yes)
31402    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31403$as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31404if ${ntp_cv_struct_iovec_help+:} false; then :
31405  $as_echo_n "(cached) " >&6
31406else
31407
31408	    compiled=no
31409	    for ntp_cv_struct_iovec_help in '0' '1'; do
31410		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31411/* end confdefs.h.  */
31412
31413			    #ifdef HAVE_SYS_TYPES_H
31414			    # include <sys/types.h>
31415			    #endif
31416			    #ifdef HAVE_SYS_SOCKET_H
31417			    # include <sys/socket.h>
31418			    #endif
31419			    #if $ntp_cv_struct_iovec_help
31420			    # include <sys/uio.h>
31421			    #endif
31422
31423int
31424main ()
31425{
31426
31427			    void foo(void) {
31428				ssize_t x;
31429				int s = 0;
31430				struct iovec iov;
31431				struct msghdr mh;
31432				int flags = 0;
31433
31434				mh.msg_iov = &iov;
31435				x = recvmsg(s, &mh, flags);
31436			    }
31437
31438
31439  ;
31440  return 0;
31441}
31442_ACEOF
31443if ac_fn_c_try_compile "$LINENO"; then :
31444  compiled=yes ; break 1
31445fi
31446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31447	    done
31448	    case "$compiled" in
31449	     no)
31450		ntp_cv_struct_iovec_help=0
31451	    esac
31452	    { compiled=; unset compiled;}
31453
31454
31455fi
31456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31457$as_echo "$ntp_cv_struct_iovec_help" >&6; }
31458    case "$ntp_cv_struct_iovec_help" in
31459     1)
31460
31461$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31462
31463    esac
31464esac
31465
31466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31467$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31468if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31469  $as_echo_n "(cached) " >&6
31470else
31471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31472/* end confdefs.h.  */
31473
31474		#ifdef HAVE_SYS_TYPES_H
31475		# include <sys/types.h>
31476		#endif
31477		#ifdef HAVE_UNISTD_H
31478		# include <unistd.h>
31479		#endif
31480
31481int
31482main ()
31483{
31484
31485		setpgrp(0, 0);
31486
31487
31488  ;
31489  return 0;
31490}
31491_ACEOF
31492if ac_fn_c_try_compile "$LINENO"; then :
31493  ntp_cv_func_setpgrp_nargs=2
31494else
31495  ntp_cv_func_setpgrp_nargs=0
31496
31497fi
31498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31499
31500fi
31501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31502$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31503case "$ntp_cv_func_setpgrp_nargs" in
31504 0)
31505
31506$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31507
31508esac
31509
31510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31511$as_echo_n "checking if we need to declare 'errno'... " >&6; }
31512if ${ntp_cv_decl_errno+:} false; then :
31513  $as_echo_n "(cached) " >&6
31514else
31515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31516/* end confdefs.h.  */
31517
31518		#ifdef HAVE_ERRNO_H
31519		# include <errno.h>
31520		#endif
31521
31522int
31523main ()
31524{
31525
31526		errno = 0;
31527
31528
31529  ;
31530  return 0;
31531}
31532_ACEOF
31533if ac_fn_c_try_compile "$LINENO"; then :
31534  ntp_cv_decl_errno=no
31535else
31536  ntp_cv_decl_errno=yes
31537
31538fi
31539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31540
31541fi
31542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31543$as_echo "$ntp_cv_decl_errno" >&6; }
31544case "$ntp_cv_decl_errno" in
31545 yes)
31546
31547$as_echo "#define DECL_ERRNO 1" >>confdefs.h
31548
31549esac
31550
31551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31552$as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31553if ${ntp_cv_decl_h_errno+:} false; then :
31554  $as_echo_n "(cached) " >&6
31555else
31556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31557/* end confdefs.h.  */
31558
31559		#include <sys/types.h>
31560		#ifdef HAVE_NETINET_IN_H
31561		# include <netinet/in.h>
31562		#endif
31563		#ifdef HAVE_ARPA_NAMESER_H
31564		# include <arpa/nameser.h>
31565		#endif
31566		#ifdef HAVE_NETDB_H
31567		# include <netdb.h>
31568		#endif
31569		#ifdef HAVE_RESOLV_H
31570		# include <resolv.h>
31571		#endif
31572
31573int
31574main ()
31575{
31576
31577		extern int h_errno;
31578
31579
31580  ;
31581  return 0;
31582}
31583_ACEOF
31584if ac_fn_c_try_compile "$LINENO"; then :
31585  ntp_cv_decl_h_errno=yes
31586else
31587  ntp_cv_decl_h_errno=no
31588
31589fi
31590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31591
31592fi
31593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31594$as_echo "$ntp_cv_decl_h_errno" >&6; }
31595case "$ntp_cv_decl_h_errno" in
31596 yes)
31597
31598$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31599
31600esac
31601
31602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31603$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31604if ${ntp_cv_decl_syscall+:} false; then :
31605  $as_echo_n "(cached) " >&6
31606else
31607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31608/* end confdefs.h.  */
31609
31610		#ifdef HAVE_SYS_TYPES_H
31611		# include <sys/types.h>
31612		#endif
31613		#ifdef HAVE_UNISTD_H
31614		# include <unistd.h>
31615		#endif
31616
31617int
31618main ()
31619{
31620
31621		extern int syscall (int, ...);
31622
31623
31624  ;
31625  return 0;
31626}
31627	ntp_cv_decl_syscall=yes
31628_ACEOF
31629if ac_fn_c_try_compile "$LINENO"; then :
31630  ntp_cv_decl_syscall=no
31631
31632fi
31633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31634
31635fi
31636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31637$as_echo "$ntp_cv_decl_syscall" >&6; }
31638case "$ntp_cv_decl_syscall" in
31639 yes)
31640
31641$as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31642
31643esac
31644
31645case "$host" in
31646 *-*-aix4.3.*)
31647
31648$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31649		# Needed for XLC under AIX 4.3.2
31650    ;;
31651 *-*-mpeix*)
31652
31653$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31654
31655
31656$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31657
31658
31659$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31660
31661
31662$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31663
31664
31665$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31666
31667
31668$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31669
31670
31671$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31672
31673    ;;
31674 *-*-osf[45]*)
31675
31676$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31677
31678
31679$as_echo "#define DECL_STIME_1 1" >>confdefs.h
31680
31681    ;;
31682 *-*-qnx*)
31683
31684$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31685
31686    ;;
31687 *-*-riscos4*)
31688
31689$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31690
31691
31692$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31693
31694
31695$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31696
31697
31698$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31699
31700
31701$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31702
31703
31704$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31705
31706
31707$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31708
31709
31710$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31711
31712
31713$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31714
31715
31716$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31717
31718
31719$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31720
31721
31722$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31723
31724
31725$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31726
31727
31728$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31729
31730
31731$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31732
31733
31734$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31735
31736    ;;
31737 *-*-solaris2*)
31738
31739$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31740
31741
31742$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31743
31744    case "$host" in
31745     *-*-solaris2.4)
31746
31747$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31748
31749	;;
31750    esac
31751    ;;
31752 *-*-sunos4*)
31753
31754$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31755
31756
31757$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31758
31759
31760$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31761
31762
31763$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31764
31765
31766$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31767
31768
31769$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31770
31771
31772$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31773
31774
31775$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31776
31777
31778$as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31779
31780
31781$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31782
31783
31784$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31785
31786
31787$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31788
31789
31790$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31791
31792    case "`basename $ac_cv_prog_CC`" in
31793     acc*) ;;
31794     *)
31795$as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31796
31797	;;
31798    esac
31799
31800$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31801
31802
31803$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31804
31805
31806$as_echo "#define DECL_TIME_0 1" >>confdefs.h
31807
31808
31809$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31810
31811
31812$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31813
31814
31815$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31816
31817
31818$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31819
31820    ;;
31821 *-*-ultrix4*)
31822
31823$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31824
31825
31826$as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31827
31828
31829$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31830
31831
31832$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31833
31834
31835$as_echo "#define DECL_IPC_0 1" >>confdefs.h
31836
31837
31838$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31839
31840
31841$as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31842
31843
31844$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31845
31846
31847$as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31848
31849
31850$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31851
31852
31853$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31854
31855
31856$as_echo "#define DECL_STIME_0 1" >>confdefs.h
31857
31858
31859$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31860
31861
31862$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31863
31864    ;;
31865esac
31866
31867case "$host" in
31868 *-*-sco3.2*)
31869
31870$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
31871
31872    ;;
31873esac
31874
31875case "$host" in
31876 *-*-hpux[567]*)
31877
31878$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
31879
31880esac
31881
31882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
31883$as_echo_n "checking if we will open the broadcast socket... " >&6; }
31884if ${ntp_cv_var_open_bcast_socket+:} false; then :
31885  $as_echo_n "(cached) " >&6
31886else
31887
31888	ans=yes
31889	case "$host" in
31890	 *-*-domainos)
31891	    ans=no
31892	esac
31893	ntp_cv_var_open_bcast_socket=$ans
31894
31895
31896fi
31897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
31898$as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
31899case "$ntp_cv_var_open_bcast_socket" in
31900 yes)
31901
31902$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
31903
31904esac
31905
31906case "$host" in
31907 *-*-hpux*)
31908
31909$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
31910
31911esac
31912
31913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
31914$as_echo_n "checking if process groups are set with -pid... " >&6; }
31915if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
31916  $as_echo_n "(cached) " >&6
31917else
31918
31919	case "$host" in
31920	 *-*-hpux[567]*)
31921	    ans=no
31922	    ;;
31923	 *-*-hpux*)
31924	    ans=yes
31925	    ;;
31926	 *-*-*linux*)
31927	    ans=yes
31928	    ;;
31929	 *-*-sunos3*)
31930	    ans=yes
31931	    ;;
31932	 *-*-ultrix2*)
31933	    ans=yes
31934	    ;;
31935	 *)
31936	    ans=no
31937	    ;;
31938	esac
31939	ntp_cv_arg_setpgrp_negpid=$ans
31940
31941
31942fi
31943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
31944$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
31945case "$ntp_cv_arg_setpgrp_negpid" in
31946 yes)
31947
31948$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
31949
31950esac
31951
31952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
31953$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
31954if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
31955  $as_echo_n "(cached) " >&6
31956else
31957
31958	case "$host" in
31959	 *-*-bsdi[23]*)
31960	    ans=yes
31961	    ;;
31962	 *-*-freebsd*)
31963	    ans=yes
31964	    ;;
31965	# NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
31966	# while later versions will fail a ioctl(TIOCSCTTY, 0) call in
31967	# some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
31968	# in $host may be followed by "aout", "ecoff", or "elf".
31969	 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
31970	    ans=yes
31971	    ;;
31972	 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
31973	    ans=yes
31974	    ;;
31975	 *-*-openbsd*)
31976	    ans=yes
31977	    ;;
31978	 *-*-osf*)
31979	    ans=yes
31980	    ;;
31981	 *-*-darwin*)
31982	    ans=yes
31983	    ;;
31984	 *)
31985	    ans=no
31986	    ;;
31987	esac
31988	ntp_cv_func_ctty_for_f_setown=$ans
31989
31990
31991fi
31992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
31993$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
31994case "$ntp_cv_func_ctty_for_f_setown" in
31995 yes)
31996
31997$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
31998
31999esac
32000
32001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32002$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32003if ${ntp_cv_os_routeupdates+:} false; then :
32004  $as_echo_n "(cached) " >&6
32005else
32006
32007	case "$host" in
32008	 *-*-netbsd*)
32009	    ans=yes
32010	    ;;
32011	 *)
32012	    ans=no
32013	    ;;
32014	esac
32015	ntp_cv_os_routeupdates=$ans
32016
32017
32018fi
32019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32020$as_echo "$ntp_cv_os_routeupdates" >&6; }
32021case "$ntp_cv_os_routeupdates" in
32022 yes)
32023
32024$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32025
32026esac
32027
32028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32029$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32030if ${ntp_cv_os_wildcardreuse+:} false; then :
32031  $as_echo_n "(cached) " >&6
32032else
32033
32034	case "$host" in
32035	 *-*-*linux*)
32036	    ans=yes
32037	    ;;
32038	 *) ans=no
32039	    ;;
32040	esac
32041	ntp_cv_os_wildcardreuse=$ans
32042
32043
32044fi
32045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32046$as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32047case "$ntp_cv_os_wildcardreuse" in
32048 yes)
32049
32050$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32051
32052esac
32053
32054case "$host" in
32055 *-*-aix*)
32056
32057$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32058
32059esac
32060
32061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32062$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32063if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32064  $as_echo_n "(cached) " >&6
32065else
32066
32067	ans=no
32068	case "$host" in
32069	 *-*-aix*)
32070	    ans=40
32071	    ;;
32072	esac
32073	ntp_cv_var_min_rec_tickadj=$ans
32074
32075
32076fi
32077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32078$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32079case "$ntp_cv_var_min_rec_tickadj" in
32080 ''|no)
32081    ;;
32082 *)
32083
32084cat >>confdefs.h <<_ACEOF
32085#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32086_ACEOF
32087
32088esac
32089
32090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32091$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32092if ${ntp_cv_no_parenb_ignpar+:} false; then :
32093  $as_echo_n "(cached) " >&6
32094else
32095
32096	ans=no
32097	case "$host" in
32098	 i?86-*-*linux*)
32099	    ans=yes
32100	    ;;
32101	 mips-sgi-irix*)
32102	    ans=yes
32103	    ;;
32104	 i?86-*-freebsd[123].*)
32105	    ;;
32106	 i?86-*-freebsd*)
32107	    ans=yes
32108	    ;;
32109	 *-*-unicosmp*)
32110	    ans=yes
32111	    ;;
32112	esac
32113	ntp_cv_no_parenb_ignpar=$ans
32114
32115
32116fi
32117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32118$as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32119case "$ntp_cv_no_parenb_ignpar" in
32120 yes)
32121
32122$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32123
32124esac
32125
32126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32127$as_echo_n "checking if we're including processing time debugging code... " >&6; }
32128# Check whether --enable-debug-timing was given.
32129if test "${enable_debug_timing+set}" = set; then :
32130  enableval=$enable_debug_timing; ntp_ok=$enableval
32131else
32132  ntp_ok=no
32133
32134fi
32135
32136case "$ntp_ok" in
32137 yes)
32138
32139$as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32140
32141esac
32142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32143$as_echo "$ntp_ok" >&6; }
32144
32145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32146$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32147# Check whether --enable-dst-minutes was given.
32148if test "${enable_dst_minutes+set}" = set; then :
32149  enableval=$enable_dst_minutes; ans=$enableval
32150else
32151  ans=60
32152
32153fi
32154
32155
32156cat >>confdefs.h <<_ACEOF
32157#define DSTMINUTES $ans
32158_ACEOF
32159
32160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32161$as_echo "$ans" >&6; }
32162
32163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32164$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32165# Check whether --enable-ignore-dns-errors was given.
32166if test "${enable_ignore_dns_errors+set}" = set; then :
32167  enableval=$enable_ignore_dns_errors; ans=$enableval
32168else
32169  ans=no
32170
32171fi
32172
32173case "$ans" in
32174 yes)
32175
32176$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32177
32178esac
32179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32180$as_echo "$ans" >&6; }
32181
32182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32183$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32184if ${ntp_cv_var_ntp_syscalls+:} false; then :
32185  $as_echo_n "(cached) " >&6
32186else
32187
32188	ntp_cv_var_ntp_syscalls=no
32189	case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32190	 yesyes*)
32191	    ntp_cv_var_ntp_syscalls=libc
32192	    ;;
32193	 *yes)
32194	    ntp_cv_var_ntp_syscalls=inline
32195	    ;;
32196	 *)
32197	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32198/* end confdefs.h.  */
32199
32200			#include <sys/syscall.h>
32201			#if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32202			# error
32203			#endif
32204
32205_ACEOF
32206if ac_fn_c_try_cpp "$LINENO"; then :
32207  ntp_cv_var_ntp_syscalls=kernel
32208
32209fi
32210rm -f conftest.err conftest.i conftest.$ac_ext
32211	    ;;
32212	 esac
32213
32214
32215fi
32216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32217$as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32218case "$ntp_cv_var_ntp_syscalls" in
32219 libc)
32220
32221$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32222
32223    ;;
32224 kernel)
32225
32226$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32227
32228    ;;
32229esac
32230
32231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32232$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32233if ${ntp_cv_var_sta_fll+:} false; then :
32234  $as_echo_n "(cached) " >&6
32235else
32236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32237/* end confdefs.h.  */
32238
32239		#include <sys/timex.h>
32240		#ifndef STA_FLL
32241		# error
32242		#endif
32243
32244_ACEOF
32245if ac_fn_c_try_cpp "$LINENO"; then :
32246  ntp_cv_var_sta_fll=yes
32247else
32248  ntp_cv_var_sta_fll=no
32249
32250fi
32251rm -f conftest.err conftest.i conftest.$ac_ext
32252
32253fi
32254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32255$as_echo "$ntp_cv_var_sta_fll" >&6; }
32256
32257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32258$as_echo_n "checking if we have kernel PLL support... " >&6; }
32259if ${ntp_cv_var_kernel_pll+:} false; then :
32260  $as_echo_n "(cached) " >&6
32261else
32262  	case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32263	 *no*)
32264	    ntp_cv_var_kernel_pll=no
32265	    ;;
32266	 *) ntp_cv_var_kernel_pll=yes
32267	    ;;
32268	esac
32269
32270
32271fi
32272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32273$as_echo "$ntp_cv_var_kernel_pll" >&6; }
32274case "$ntp_cv_var_kernel_pll" in
32275 yes)
32276
32277$as_echo "#define KERNEL_PLL 1" >>confdefs.h
32278
32279esac
32280
32281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32282$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32283if ${ntp_cv_size_returned_in_buffer+:} false; then :
32284  $as_echo_n "(cached) " >&6
32285else
32286
32287	ans=no
32288	case "$host" in
32289	 *-fujitsu-uxp*)
32290	    ans=yes
32291	    ;;
32292	 *-ncr-sysv4*)
32293	    ans=yes
32294	    ;;
32295	 *-univel-sysv*)
32296	    ans=yes
32297	    ;;
32298	esac
32299	ntp_cv_size_returned_in_buffer=$ans
32300
32301
32302fi
32303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32304$as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32305case "$ntp_cv_size_returned_in_buffer" in
32306 yes)
32307
32308$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32309
32310esac
32311
32312# Check for ioctls TIOCGPPSEV
32313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32314$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32315case "$ac_cv_header_termios_h" in
32316 yes)
32317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32318/* end confdefs.h.  */
32319
32320	    #include <termios.h>
32321	    #ifndef TIOCGPPSEV
32322	    # error
32323	    #endif
32324
32325_ACEOF
32326if ac_fn_c_try_cpp "$LINENO"; then :
32327  ntp_ok=yes
32328else
32329  ntp_ok=no
32330
32331fi
32332rm -f conftest.err conftest.i conftest.$ac_ext
32333    ;;
32334 *)
32335    ntp_ok=no
32336    ;;
32337esac
32338case "$ntp_ok" in
32339 yes)
32340
32341$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32342
32343esac
32344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32345$as_echo "$ntp_ok" >&6; }
32346
32347# Check for ioctls TIOCSPPS
32348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32349$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32350case "$ac_cv_header_termios_h" in
32351 yes)
32352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32353/* end confdefs.h.  */
32354
32355	    #include <termios.h>
32356	    #ifndef TIOCSPPS
32357	    # error
32358	    #endif
32359
32360_ACEOF
32361if ac_fn_c_try_cpp "$LINENO"; then :
32362  ntp_ok=yes
32363else
32364  ntp_ok=no
32365
32366fi
32367rm -f conftest.err conftest.i conftest.$ac_ext
32368    ;;
32369 *)
32370    ntp_ok=no
32371    ;;
32372esac
32373case "$ntp_ok" in
32374 yes)
32375
32376$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32377
32378esac
32379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32380$as_echo "$ntp_ok" >&6; }
32381
32382# Check for ioctls CIOGETEV
32383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32384$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32385case "$ac_cv_header_sys_ppsclock_h" in
32386 yes)
32387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388/* end confdefs.h.  */
32389
32390	    #include <sys/ppsclock.h>
32391	    #ifndef CIOGETEV
32392	    # error
32393	    #endif
32394
32395_ACEOF
32396if ac_fn_c_try_cpp "$LINENO"; then :
32397  ntp_ok=yes
32398else
32399  ntp_ok=no
32400
32401fi
32402rm -f conftest.err conftest.i conftest.$ac_ext
32403    ;;
32404 *)
32405    ntp_ok=no
32406    ;;
32407esac
32408case "$ntp_ok" in
32409 yes)
32410
32411$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32412
32413esac
32414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32415$as_echo "$ntp_ok" >&6; }
32416
32417# ATOM/PPSAPI stuff.
32418
32419ntp_atom_ok=yes
32420
32421# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32422
32423# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32424# The PPSAPI needs struct timespec.
32425# The PPSAPI also needs a timepps header.
32426
32427case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32428 inlineyes)
32429    case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32430     *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32431
32432$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32433
32434	ntp_jupiter_ok=yes
32435	ntp_oncore_ok=yes
32436	ntp_parse_ok=yes
32437	ntp_ripe_ncc_ok=yes
32438	;;
32439    esac
32440    ;;
32441esac
32442
32443# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32444ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32445if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32446
32447fi
32448
32449
32450case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32451  yesyes)
32452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32453$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32455/* end confdefs.h.  */
32456
32457	    #include <sys/time.h>
32458	    typedef int u_int;
32459	    #include <sys/ppsclock.h>
32460	    #include <linux/serial.h>
32461
32462	    #ifndef TIOCGSERIAL
32463	    # error
32464	    #endif
32465	    #ifndef TIOCSSERIAL
32466	    # error
32467	    #endif
32468	    #ifndef ASYNC_PPS_CD_POS
32469	    # error
32470	    #endif
32471	    #ifndef ASYNC_PPS_CD_NEG
32472	    # error
32473	    #endif
32474	    #ifndef CIOGETEV
32475	    # error
32476	    #endif
32477
32478_ACEOF
32479if ac_fn_c_try_cpp "$LINENO"; then :
32480  ntp_ok=yes
32481else
32482  ntp_ok=no
32483
32484fi
32485rm -f conftest.err conftest.i conftest.$ac_ext
32486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32487$as_echo "$ntp_ok" >&6; }
32488    ;;
32489  *)
32490    ntp_ok=no
32491    ;;
32492esac
32493case "$ntp_ok" in
32494 yes)
32495
32496$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32497
32498esac
32499
32500# Check for SHMEM_STATUS support
32501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32502$as_echo_n "checking SHMEM_STATUS support... " >&6; }
32503case "$ac_cv_header_sys_mman_h" in
32504 yes)
32505    ntp_ok=yes
32506    ;;
32507 *)
32508    ntp_ok=no
32509    ;;
32510esac
32511case "$ntp_ok" in
32512 yes)
32513
32514$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32515
32516esac
32517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32518$as_echo "$ntp_ok" >&6; }
32519
32520ntp_refclock=no
32521
32522# HPUX only, and by explicit request
32523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32524$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32525# Check whether --enable-BANCOMM was given.
32526if test "${enable_BANCOMM+set}" = set; then :
32527  enableval=$enable_BANCOMM; ntp_ok=$enableval
32528else
32529  ntp_ok=no
32530
32531fi
32532
32533case "$ntp_ok" in
32534 yes)
32535    ntp_refclock=yes
32536
32537$as_echo "#define CLOCK_BANC 1" >>confdefs.h
32538
32539    ;;
32540esac
32541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32542$as_echo "$ntp_ok" >&6; }
32543case "$ntp_ok$host" in
32544 yes*-*-hpux*) ;;
32545 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32546$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32547esac
32548
32549#HPUX only, and only by explicit request
32550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32551$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32552# Check whether --enable-GPSVME was given.
32553if test "${enable_GPSVME+set}" = set; then :
32554  enableval=$enable_GPSVME; ntp_ok=$enableval
32555else
32556  ntp_ok=no
32557
32558fi
32559
32560case "$ntp_ok" in
32561 yes)
32562    ntp_refclock=yes
32563
32564$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32565
32566    ;;
32567esac
32568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32569$as_echo "$ntp_ok" >&6; }
32570case "$ntp_ok$host" in
32571 yes*-*-hpux*) ;;
32572 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32573$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32574esac
32575
32576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32577$as_echo_n "checking for PCL720 clock support... " >&6; }
32578case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32579 yesyesyes)
32580
32581$as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32582
32583    ans=yes
32584    ;;
32585 *)
32586    ans=no
32587    ;;
32588esac
32589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32590$as_echo "$ans" >&6; }
32591
32592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32593$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32594# Check whether --enable-all-clocks was given.
32595if test "${enable_all_clocks+set}" = set; then :
32596  enableval=$enable_all_clocks; ntp_eac=$enableval
32597else
32598  ntp_eac=yes
32599
32600fi
32601
32602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32603$as_echo "$ntp_eac" >&6; }
32604
32605# HMS: Should we also require ntp_parse_ok?
32606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32607$as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32608case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32609 yes*yes*)
32610    ntp_canparse=yes
32611    ;;
32612 *) ntp_canparse=no
32613    ;;
32614esac
32615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32616$as_echo "$ntp_canparse" >&6; }
32617
32618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32619$as_echo_n "checking if we have support for audio clocks... " >&6; }
32620case "$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
32621 *yes*)
32622    ntp_canaudio=yes
32623
32624$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32625
32626    ;;
32627 *) ntp_canaudio=no ;;
32628esac
32629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32630$as_echo "$ntp_canaudio" >&6; }
32631
32632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32633$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32634case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32635 yesyes)
32636    ntp_canshm=yes
32637    ;;
32638 *) ntp_canshm=no ;;
32639esac
32640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32641$as_echo "$ntp_canshm" >&6; }
32642
32643# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32645$as_echo_n "checking for termios modem control... " >&6; }
32646if ${ntp_cv_modem_control+:} false; then :
32647  $as_echo_n "(cached) " >&6
32648else
32649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32650/* end confdefs.h.  */
32651
32652		#ifdef HAVE_UNISTD_H
32653		# include <unistd.h>
32654		#endif
32655		#ifdef HAVE_TERMIOS_H
32656		# include <termios.h>
32657		#endif
32658		#ifdef HAVE_SYS_IOCTL_H
32659		# include <sys/ioctl.h>
32660		#endif
32661
32662int
32663main ()
32664{
32665
32666		int	dtr = TIOCM_DTR;
32667
32668		ioctl(1, TIOCMBIS, (char *)&dtr);
32669
32670
32671  ;
32672  return 0;
32673}
32674_ACEOF
32675if ac_fn_c_try_compile "$LINENO"; then :
32676  ntp_cv_modem_control=yes
32677else
32678  ntp_cv_modem_control=no
32679
32680fi
32681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32682
32683fi
32684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32685$as_echo "$ntp_cv_modem_control" >&6; }
32686case "$ntp_eac::$ntp_cv_modem_control" in
32687 yes::yes)
32688    ntp_enable_all_modem_control_clocks=yes
32689    ;;
32690 *)
32691    ntp_enable_all_modem_control_clocks=no
32692    ;;
32693esac
32694
32695# Requires modem control
32696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32697$as_echo_n "checking ACTS modem service... " >&6; }
32698# Check whether --enable-ACTS was given.
32699if test "${enable_ACTS+set}" = set; then :
32700  enableval=$enable_ACTS; ntp_ok=$enableval
32701else
32702  ntp_ok=$ntp_enable_all_modem_control_clocks
32703
32704fi
32705
32706case "$ntp_ok" in
32707 yes)
32708    ntp_refclock=yes
32709
32710$as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32711
32712    ;;
32713esac
32714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32715$as_echo "$ntp_ok" >&6; }
32716
32717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32718$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32719# Check whether --enable-ARBITER was given.
32720if test "${enable_ARBITER+set}" = set; then :
32721  enableval=$enable_ARBITER; ntp_ok=$enableval
32722else
32723  ntp_ok=$ntp_eac
32724
32725fi
32726
32727case "$ntp_ok" in
32728 yes)
32729    ntp_refclock=yes
32730
32731$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32732
32733    ;;
32734esac
32735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32736$as_echo "$ntp_ok" >&6; }
32737
32738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32739$as_echo_n "checking Arcron MSF receiver... " >&6; }
32740# Check whether --enable-ARCRON_MSF was given.
32741if test "${enable_ARCRON_MSF+set}" = set; then :
32742  enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32743else
32744  ntp_ok=$ntp_eac
32745
32746fi
32747
32748case "$ntp_ok" in
32749 yes)
32750    ntp_refclock=yes
32751
32752$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32753
32754    ;;
32755esac
32756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32757$as_echo "$ntp_ok" >&6; }
32758
32759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32760$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32761# Check whether --enable-AS2201 was given.
32762if test "${enable_AS2201+set}" = set; then :
32763  enableval=$enable_AS2201; ntp_ok=$enableval
32764else
32765  ntp_ok=$ntp_eac
32766
32767fi
32768
32769case "$ntp_ok" in
32770 yes)
32771    ntp_refclock=yes
32772
32773$as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32774
32775    ;;
32776esac
32777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32778$as_echo "$ntp_ok" >&6; }
32779
32780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32781$as_echo_n "checking ATOM PPS interface... " >&6; }
32782# Check whether --enable-ATOM was given.
32783if test "${enable_ATOM+set}" = set; then :
32784  enableval=$enable_ATOM; ntp_ok=$enableval
32785else
32786  ntp_ok=$ntp_eac
32787
32788fi
32789
32790case "$ntp_atom_ok" in
32791 no) ntp_ok=no ;;
32792esac
32793case "$ntp_ok" in
32794 yes)
32795    ntp_refclock=yes
32796
32797$as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32798
32799    ;;
32800esac
32801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32802$as_echo "$ntp_ok" >&6; }
32803
32804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32805$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32806# Check whether --enable-CHRONOLOG was given.
32807if test "${enable_CHRONOLOG+set}" = set; then :
32808  enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32809else
32810  ntp_ok=$ntp_eac
32811
32812fi
32813
32814case "$ntp_ok" in
32815 yes)
32816    ntp_refclock=yes
32817
32818$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32819
32820    ;;
32821esac
32822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32823$as_echo "$ntp_ok" >&6; }
32824
32825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32826$as_echo_n "checking CHU modem/decoder... " >&6; }
32827# Check whether --enable-CHU was given.
32828if test "${enable_CHU+set}" = set; then :
32829  enableval=$enable_CHU; ntp_ok=$enableval
32830else
32831  ntp_ok=$ntp_eac
32832
32833fi
32834
32835case "$ntp_ok" in
32836 yes)
32837    ntp_refclock=yes
32838
32839$as_echo "#define CLOCK_CHU 1" >>confdefs.h
32840
32841    ;;
32842esac
32843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32844$as_echo "$ntp_ok" >&6; }
32845ntp_refclock_chu=$ntp_ok
32846
32847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32848$as_echo_n "checking CHU audio/decoder... " >&6; }
32849# Check whether --enable-AUDIO-CHU was given.
32850if test "${enable_AUDIO_CHU+set}" = set; then :
32851  enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32852else
32853
32854	case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32855	 *no*)	ntp_ok=no  ;;
32856	 *)	ntp_ok=yes ;;
32857	esac
32858
32859
32860fi
32861
32862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32863$as_echo "$ntp_ok" >&6; }
32864# We used to check for sunos/solaris target...
32865case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32866 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32867$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
32868esac
32869
32870# Not under HP-UX
32871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
32872$as_echo_n "checking Datum Programmable Time System... " >&6; }
32873# Check whether --enable-DATUM was given.
32874if test "${enable_DATUM+set}" = set; then :
32875  enableval=$enable_DATUM; ntp_ok=$enableval
32876else
32877
32878	case "$ac_cv_header_termios_h" in
32879	 yes)
32880	    ntp_ok=$ntp_eac
32881	    ;;
32882	 *) ntp_ok=no
32883	    ;;
32884	esac
32885
32886
32887fi
32888
32889case "$ntp_ok" in
32890 yes)
32891    ntp_refclock=yes
32892
32893$as_echo "#define CLOCK_DATUM 1" >>confdefs.h
32894
32895    ;;
32896esac
32897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32898$as_echo "$ntp_ok" >&6; }
32899
32900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
32901$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
32902# Check whether --enable-DUMBCLOCK was given.
32903if test "${enable_DUMBCLOCK+set}" = set; then :
32904  enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
32905else
32906  ntp_ok=$ntp_eac
32907
32908fi
32909
32910case "$ntp_ok" in
32911 yes)
32912    ntp_refclock=yes
32913
32914$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
32915
32916    ;;
32917esac
32918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32919$as_echo "$ntp_ok" >&6; }
32920
32921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
32922$as_echo_n "checking Forum Graphic GPS... " >&6; }
32923# Check whether --enable-FG was given.
32924if test "${enable_FG+set}" = set; then :
32925  enableval=$enable_FG; ntp_ok=$enableval
32926else
32927  ntp_ok=$ntp_eac
32928
32929fi
32930
32931case "$ntp_ok" in
32932 yes)
32933    ntp_refclock=yes
32934
32935$as_echo "#define CLOCK_FG 1" >>confdefs.h
32936
32937    ;;
32938esac
32939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32940$as_echo "$ntp_ok" >&6; }
32941
32942# Requires modem control
32943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
32944$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
32945# Check whether --enable-HEATH was given.
32946if test "${enable_HEATH+set}" = set; then :
32947  enableval=$enable_HEATH; ntp_ok=$enableval
32948else
32949  ntp_ok=$ntp_enable_all_modem_control_clocks
32950
32951fi
32952
32953case "$ntp_ok" in
32954 yes)
32955    ntp_refclock=yes
32956
32957$as_echo "#define CLOCK_HEATH 1" >>confdefs.h
32958
32959    ;;
32960esac
32961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32962$as_echo "$ntp_ok" >&6; }
32963
32964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
32965$as_echo_n "checking for hopf serial clock device... " >&6; }
32966# Check whether --enable-HOPFSERIAL was given.
32967if test "${enable_HOPFSERIAL+set}" = set; then :
32968  enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
32969else
32970  ntp_ok=$ntp_eac
32971
32972fi
32973
32974case "$ntp_ok" in
32975 yes)
32976    ntp_refclock=yes
32977
32978$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
32979
32980    ;;
32981esac
32982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32983$as_echo "$ntp_ok" >&6; }
32984
32985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
32986$as_echo_n "checking for hopf PCI clock 6039... " >&6; }
32987# Check whether --enable-HOPFPCI was given.
32988if test "${enable_HOPFPCI+set}" = set; then :
32989  enableval=$enable_HOPFPCI; ntp_ok=$enableval
32990else
32991  ntp_ok=$ntp_eac
32992
32993fi
32994
32995case "$ntp_ok" in
32996 yes)
32997    ntp_refclock=yes
32998
32999$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33000
33001    ;;
33002esac
33003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33004$as_echo "$ntp_ok" >&6; }
33005
33006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33007$as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33008# Check whether --enable-HPGPS was given.
33009if test "${enable_HPGPS+set}" = set; then :
33010  enableval=$enable_HPGPS; ntp_ok=$enableval
33011else
33012  ntp_ok=$ntp_eac
33013
33014fi
33015
33016case "$ntp_ok" in
33017 yes)
33018    ntp_refclock=yes
33019
33020$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33021
33022    ;;
33023esac
33024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33025$as_echo "$ntp_ok" >&6; }
33026
33027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33028$as_echo_n "checking IRIG audio decoder... " >&6; }
33029# Check whether --enable-IRIG was given.
33030if test "${enable_IRIG+set}" = set; then :
33031  enableval=$enable_IRIG; ntp_ok=$enableval
33032else
33033
33034	case "$ntp_eac$ntp_canaudio" in
33035	 *no*)	ntp_ok=no  ;;
33036	 *)	ntp_ok=yes ;;
33037	esac
33038
33039
33040fi
33041
33042case "$ntp_ok" in
33043 yes)
33044    ntp_refclock=yes
33045
33046$as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33047
33048    ;;
33049esac
33050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33051$as_echo "$ntp_ok" >&6; }
33052case "$ntp_ok$ntp_canaudio" in
33053 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33054$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33055esac
33056
33057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33058$as_echo_n "checking for JJY receiver... " >&6; }
33059# Check whether --enable-JJY was given.
33060if test "${enable_JJY+set}" = set; then :
33061  enableval=$enable_JJY; ntp_ok=$enableval
33062else
33063  ntp_ok=$ntp_eac
33064
33065fi
33066
33067case "$ntp_ok" in
33068 yes)
33069    ntp_refclock=yes
33070
33071$as_echo "#define CLOCK_JJY 1" >>confdefs.h
33072
33073    ;;
33074esac
33075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33076$as_echo "$ntp_ok" >&6; }
33077
33078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33079$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33080# Check whether --enable-JUPITER was given.
33081if test "${enable_JUPITER+set}" = set; then :
33082  enableval=$enable_JUPITER; ntp_ok=$enableval
33083else
33084  ntp_ok=$ntp_eac
33085fi
33086
33087case "$ntp_jupiter_ok" in
33088 no) ntp_ok=no ;;
33089esac
33090case "$ntp_ok" in
33091 yes)
33092    ntp_refclock=yes
33093
33094$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33095
33096    ;;
33097esac
33098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33099$as_echo "$ntp_ok" >&6; }
33100
33101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33102$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33103# Check whether --enable-LEITCH was given.
33104if test "${enable_LEITCH+set}" = set; then :
33105  enableval=$enable_LEITCH; ntp_ok=$enableval
33106else
33107  ntp_ok=$ntp_eac
33108
33109fi
33110
33111case "$ntp_ok" in
33112 yes)
33113    ntp_refclock=yes
33114
33115$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33116
33117    ;;
33118esac
33119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33120$as_echo "$ntp_ok" >&6; }
33121
33122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33123$as_echo_n "checking local clock reference... " >&6; }
33124# Check whether --enable-LOCAL-CLOCK was given.
33125if test "${enable_LOCAL_CLOCK+set}" = set; then :
33126  enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33127else
33128  ntp_ok=$ntp_eac
33129
33130fi
33131
33132case "$ntp_ok" in
33133 yes)
33134    ntp_refclock=yes
33135
33136$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33137
33138    ;;
33139esac
33140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33141$as_echo "$ntp_ok" >&6; }
33142
33143
33144# Not Ultrix
33145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33146$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33147# Check whether --enable-MX4200 was given.
33148if test "${enable_MX4200+set}" = set; then :
33149  enableval=$enable_MX4200; ntp_ok=$enableval
33150else
33151
33152	case "$ac_cv_var_ppsclock" in
33153	 yes)
33154	    ntp_ok=$ntp_eac
33155	    ;;
33156	 *)
33157	    ntp_ok=no
33158	    ;;
33159	esac
33160
33161
33162fi
33163
33164case "$ntp_ok" in
33165 yes)
33166    ntp_refclock=yes
33167
33168$as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33169
33170    ;;
33171esac
33172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33173$as_echo "$ntp_ok" >&6; }
33174case "$ntp_ok$host" in
33175 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33176$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33177esac
33178
33179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33180$as_echo_n "checking for NeoClock4X receiver... " >&6; }
33181# Check whether --enable-NEOCLOCK4X was given.
33182if test "${enable_NEOCLOCK4X+set}" = set; then :
33183  enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33184else
33185  ntp_ok=$ntp_eac
33186
33187fi
33188
33189case "$ntp_ok" in
33190 yes)
33191    ntp_refclock=yes
33192
33193$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33194
33195    ;;
33196esac
33197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33198$as_echo "$ntp_ok" >&6; }
33199
33200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33201$as_echo_n "checking NMEA GPS receiver... " >&6; }
33202# Check whether --enable-NMEA was given.
33203if test "${enable_NMEA+set}" = set; then :
33204  enableval=$enable_NMEA; ntp_ok=$enableval
33205else
33206  ntp_ok=$ntp_eac
33207
33208fi
33209
33210case "$ntp_ok" in
33211 yes)
33212    ntp_refclock=yes
33213
33214$as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33215
33216    ;;
33217esac
33218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33219$as_echo "$ntp_ok" >&6; }
33220
33221for ac_func in strtoll
33222do :
33223  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33224if test "x$ac_cv_func_strtoll" = xyes; then :
33225  cat >>confdefs.h <<_ACEOF
33226#define HAVE_STRTOLL 1
33227_ACEOF
33228
33229fi
33230done
33231
33232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33233$as_echo_n "checking for GPSD JSON receiver... " >&6; }
33234# Check whether --enable-GPSD was given.
33235if test "${enable_GPSD+set}" = set; then :
33236  enableval=$enable_GPSD; ntp_ok=$enableval
33237else
33238  case "$ac_cv_func_strtoll" in
33239     yes) ntp_ok=$ntp_eac ;;
33240     *)   ntp_ok="no" ;;
33241    esac
33242
33243fi
33244
33245case "$ntp_ok" in
33246 yes)
33247    ntp_refclock=yes
33248
33249$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33250
33251    ;;
33252esac
33253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33254$as_echo "$ntp_ok" >&6; }
33255
33256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33257$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33258# Check whether --enable-ONCORE was given.
33259if test "${enable_ONCORE+set}" = set; then :
33260  enableval=$enable_ONCORE; ntp_ok=$enableval
33261else
33262  ntp_ok=$ntp_eac
33263
33264fi
33265
33266case "$ntp_oncore_ok" in
33267 no) ntp_ok=no ;;
33268esac
33269case "$ntp_ok" in
33270 yes)
33271    ntp_refclock=yes
33272
33273$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33274
33275    ;;
33276esac
33277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33278$as_echo "$ntp_ok" >&6; }
33279
33280# Requires modem control
33281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33282$as_echo_n "checking for Palisade clock... " >&6; }
33283# Check whether --enable-PALISADE was given.
33284if test "${enable_PALISADE+set}" = set; then :
33285  enableval=$enable_PALISADE; ntp_ok=$enableval
33286else
33287  ntp_ok=$ntp_enable_all_modem_control_clocks
33288
33289fi
33290
33291case "$ntp_ok" in
33292 yes)
33293    ntp_refclock=yes
33294
33295$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33296
33297    ;;
33298esac
33299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33300$as_echo "$ntp_ok" >&6; }
33301
33302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33303$as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33304# Check whether --enable-PCF was given.
33305if test "${enable_PCF+set}" = set; then :
33306  enableval=$enable_PCF; ntp_ok=$enableval
33307else
33308  ntp_ok=$ntp_eac
33309
33310fi
33311
33312case "$ntp_ok" in
33313 yes)
33314    ntp_refclock=yes
33315
33316$as_echo "#define CLOCK_PCF 1" >>confdefs.h
33317
33318    ;;
33319esac
33320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33321$as_echo "$ntp_ok" >&6; }
33322
33323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33324$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33325# Check whether --enable-PST was given.
33326if test "${enable_PST+set}" = set; then :
33327  enableval=$enable_PST; ntp_ok=$enableval
33328else
33329  ntp_ok=$ntp_eac
33330
33331fi
33332
33333case "$ntp_ok" in
33334 yes)
33335    ntp_refclock=yes
33336
33337$as_echo "#define CLOCK_PST 1" >>confdefs.h
33338
33339    ;;
33340esac
33341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33342$as_echo "$ntp_ok" >&6; }
33343
33344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33345$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33346# Check whether --enable-RIPENCC was given.
33347if test "${enable_RIPENCC+set}" = set; then :
33348  enableval=$enable_RIPENCC; ntp_ok=$enableval
33349else
33350  ntp_ok=no
33351
33352fi
33353
33354# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33355case "$ntp_ripe_ncc_ok" in
33356 no) ntp_ok=no ;;
33357esac
33358case "$ntp_ok" in
33359 yes)
33360    ntp_refclock=yes
33361
33362$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33363
33364    ;;
33365esac
33366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33367$as_echo "$ntp_ok" >&6; }
33368
33369# Danny Meyer says SHM compiles (with a few warnings) under Win32.
33370# For *IX, we need sys/ipc.h and sys/shm.h.
33371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33372$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33373# Check whether --enable-SHM was given.
33374if test "${enable_SHM+set}" = set; then :
33375  enableval=$enable_SHM; ntp_ok=$enableval
33376else
33377
33378	case "$ntp_eac$ntp_canshm" in
33379	 *no*)	ntp_ok=no  ;;
33380	 *)	ntp_ok=yes ;;
33381	esac
33382
33383
33384fi
33385
33386case "$ntp_ok" in
33387 yes)
33388    ntp_refclock=yes
33389
33390$as_echo "#define CLOCK_SHM 1" >>confdefs.h
33391
33392    ;;
33393esac
33394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33395$as_echo "$ntp_ok" >&6; }
33396
33397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
33398$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33399# Check whether --enable-SPECTRACOM was given.
33400if test "${enable_SPECTRACOM+set}" = set; then :
33401  enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33402else
33403  ntp_ok=$ntp_eac
33404
33405fi
33406
33407case "$ntp_ok" in
33408 yes)
33409    ntp_refclock=yes
33410
33411$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33412
33413    ;;
33414esac
33415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33416$as_echo "$ntp_ok" >&6; }
33417
33418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33419$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33420# Check whether --enable-TPRO was given.
33421if test "${enable_TPRO+set}" = set; then :
33422  enableval=$enable_TPRO; ntp_ok=$enableval
33423else
33424
33425	case "$ac_cv_header_sys_tpro_h" in
33426	 yes)
33427	    ntp_ok=$ntp_eac
33428	    ;;
33429	 *)
33430	    ntp_ok=no
33431	    ;;
33432	esac
33433
33434
33435fi
33436
33437case "$ntp_ok" in
33438 yes)
33439    ntp_refclock=yes
33440
33441$as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33442
33443    ;;
33444esac
33445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33446$as_echo "$ntp_ok" >&6; }
33447case "$ntp_ok$ac_cv_header_sys_tpro" in
33448 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33449$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33450esac
33451
33452# Not on a vax-dec-bsd
33453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33454$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33455# Check whether --enable-TRUETIME was given.
33456if test "${enable_TRUETIME+set}" = set; then :
33457  enableval=$enable_TRUETIME; ntp_ok=$enableval
33458else
33459
33460	case "$host" in
33461	 vax-dec-bsd)
33462	    ntp_ok=no
33463	    ;;
33464	 *)
33465	    ntp_ok=$ntp_eac
33466	    ;;
33467	esac
33468
33469
33470fi
33471
33472case "$ntp_ok" in
33473 yes)
33474    ntp_refclock=yes
33475
33476$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33477
33478    ;;
33479esac
33480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33481$as_echo "$ntp_ok" >&6; }
33482case "$ntp_ok$host" in
33483 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33484$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33485esac
33486
33487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33488$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33489# Check whether --enable-TT560 was given.
33490if test "${enable_TT560+set}" = set; then :
33491  enableval=$enable_TT560; ntp_ok=$enableval
33492else
33493  ntp_ok=no
33494
33495fi
33496
33497case "$ntp_ok" in
33498 yes)
33499    ntp_refclock=yes
33500
33501$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33502
33503    ;;
33504esac
33505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33506$as_echo "$ntp_ok" >&6; }
33507
33508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33509$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33510# Check whether --enable-ULINK was given.
33511if test "${enable_ULINK+set}" = set; then :
33512  enableval=$enable_ULINK; ntp_ok=$enableval
33513else
33514  ntp_ok=$ntp_eac
33515
33516fi
33517
33518case "$ntp_ok" in
33519 yes)
33520    ntp_refclock=yes
33521
33522$as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33523
33524    ;;
33525esac
33526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33527$as_echo "$ntp_ok" >&6; }
33528
33529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33530$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33531# Check whether --enable-TSYNCPCI was given.
33532if test "${enable_TSYNCPCI+set}" = set; then :
33533  enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33534else
33535
33536	case "$host" in
33537	 *-*-*linux*)
33538	    ntp_ok=$ntp_eac
33539	    ;;
33540	 *)
33541	    ntp_ok=no
33542	esac
33543
33544
33545fi
33546
33547case "$ntp_ok" in
33548 yes)
33549    ntp_refclock=yes
33550
33551$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33552
33553    ;;
33554esac
33555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33556$as_echo "$ntp_ok" >&6; }
33557
33558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33559$as_echo_n "checking WWV receiver... " >&6; }
33560# Check whether --enable-WWV was given.
33561if test "${enable_WWV+set}" = set; then :
33562  enableval=$enable_WWV; ntp_ok=$enableval
33563else
33564
33565	case "$ntp_eac$ntp_canaudio" in
33566	 *no*)	ntp_ok=no  ;;
33567	 *)	ntp_ok=yes ;;
33568	esac
33569
33570
33571fi
33572
33573case "$ntp_ok" in
33574 yes)
33575    ntp_refclock=yes
33576
33577$as_echo "#define CLOCK_WWV 1" >>confdefs.h
33578
33579    ;;
33580esac
33581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33582$as_echo "$ntp_ok" >&6; }
33583case "$ntp_ok$ntp_canaudio" in
33584 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33585$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33586esac
33587
33588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33589$as_echo_n "checking for Zyfer receiver... " >&6; }
33590# Check whether --enable-ZYFER was given.
33591if test "${enable_ZYFER+set}" = set; then :
33592  enableval=$enable_ZYFER; ntp_ok=$enableval
33593else
33594  ntp_ok=$ntp_eac
33595
33596fi
33597
33598case "$ntp_ok" in
33599 yes)
33600    ntp_refclock=yes
33601
33602$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33603
33604    ;;
33605esac
33606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33607$as_echo "$ntp_ok" >&6; }
33608
33609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33610$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33611# Check whether --enable-parse-clocks was given.
33612if test "${enable_parse_clocks+set}" = set; then :
33613  enableval=$enable_parse_clocks; ntp_eapc=$enableval
33614else
33615
33616	case "$ntp_eac" in
33617	 yes)	ntp_eapc=$ntp_canparse ;;
33618	 *)	ntp_eapc=no ;;
33619	esac
33620	# Delete the next line one of these days
33621	ntp_eapc=no
33622
33623
33624fi
33625
33626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33627$as_echo "$ntp_eapc" >&6; }
33628
33629case "$ntp_eac$ntp_eapc$ntp_canparse" in
33630 noyes*)
33631    as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33632    ;;
33633 yesyesno)
33634    as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33635    ;;
33636esac
33637
33638ntp_libparse=no
33639ntp_parseutil=no
33640ntp_rawdcf=no
33641
33642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33643$as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33644# Check whether --enable-COMPUTIME was given.
33645if test "${enable_COMPUTIME+set}" = set; then :
33646  enableval=$enable_COMPUTIME; ntp_ok=$enableval
33647else
33648  ntp_ok=$ntp_eapc
33649
33650fi
33651
33652case "$ntp_ok" in
33653 yes)
33654    ntp_libparse=yes
33655    ntp_refclock=yes
33656
33657$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33658
33659    ;;
33660esac
33661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33662$as_echo "$ntp_ok" >&6; }
33663case "$ntp_ok$ntp_canparse" in
33664 yesno)
33665    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33666esac
33667
33668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33669$as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33670# Check whether --enable-DCF7000 was given.
33671if test "${enable_DCF7000+set}" = set; then :
33672  enableval=$enable_DCF7000; ntp_ok=$enableval
33673else
33674  ntp_ok=$ntp_eapc
33675
33676fi
33677
33678case "$ntp_ok" in
33679 yes)
33680    ntp_libparse=yes
33681    ntp_refclock=yes
33682
33683$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33684
33685    ;;
33686esac
33687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33688$as_echo "$ntp_ok" >&6; }
33689case "$ntp_ok$ntp_canparse" in
33690 yesno)
33691    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33692esac
33693
33694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33695$as_echo_n "checking HOPF 6021 clock... " >&6; }
33696# Check whether --enable-HOPF6021 was given.
33697if test "${enable_HOPF6021+set}" = set; then :
33698  enableval=$enable_HOPF6021; ntp_ok=$enableval
33699else
33700  ntp_ok=$ntp_eapc
33701
33702fi
33703
33704case "$ntp_ok" in
33705 yes)
33706    ntp_libparse=yes
33707    ntp_refclock=yes
33708
33709$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33710
33711    ;;
33712esac
33713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33714$as_echo "$ntp_ok" >&6; }
33715case "$ntp_ok$ntp_canparse" in
33716 yesno)
33717    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33718esac
33719
33720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33721$as_echo_n "checking Meinberg clocks... " >&6; }
33722# Check whether --enable-MEINBERG was given.
33723if test "${enable_MEINBERG+set}" = set; then :
33724  enableval=$enable_MEINBERG; ntp_ok=$enableval
33725else
33726  ntp_ok=$ntp_eapc
33727
33728fi
33729
33730case "$ntp_ok" in
33731 yes)
33732    ntp_libparse=yes
33733    ntp_refclock=yes
33734
33735$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33736
33737    ;;
33738esac
33739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33740$as_echo "$ntp_ok" >&6; }
33741case "$ntp_ok$ntp_canparse" in
33742 yesno)
33743    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33744esac
33745
33746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33747$as_echo_n "checking DCF77 raw time code... " >&6; }
33748# Check whether --enable-RAWDCF was given.
33749if test "${enable_RAWDCF+set}" = set; then :
33750  enableval=$enable_RAWDCF; ntp_ok=$enableval
33751else
33752  ntp_ok=$ntp_eapc
33753
33754fi
33755
33756case "$ntp_ok" in
33757 yes)
33758    ntp_libparse=yes
33759    ntp_parseutil=yes
33760    ntp_refclock=yes
33761    ntp_rawdcf=yes
33762
33763$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33764
33765    ;;
33766esac
33767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33768$as_echo "$ntp_ok" >&6; }
33769case "$ntp_ok$ntp_canparse" in
33770 yesno)
33771    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33772esac
33773
33774case "$ntp_rawdcf" in
33775 yes)
33776    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33777$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33778if ${ntp_cv_rawdcf_parity+:} false; then :
33779  $as_echo_n "(cached) " >&6
33780else
33781
33782	    ans=no
33783	    case "$host" in
33784	     *-*-*linux*)
33785		ans=yes
33786		;;
33787	    esac
33788	    ntp_cv_rawdcf_parity=$ans
33789
33790
33791fi
33792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33793$as_echo "$ntp_cv_rawdcf_parity" >&6; }
33794    case "$ntp_cv_rawdcf_parity" in
33795     yes)
33796
33797$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33798 ;;
33799    esac
33800esac
33801
33802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33803$as_echo_n "checking RCC 8000 clock... " >&6; }
33804# Check whether --enable-RCC8000 was given.
33805if test "${enable_RCC8000+set}" = set; then :
33806  enableval=$enable_RCC8000; ntp_ok=$enableval
33807else
33808  ntp_ok=$ntp_eapc
33809
33810fi
33811
33812case "$ntp_ok" in
33813 yes)
33814    ntp_libparse=yes
33815    ntp_refclock=yes
33816
33817$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33818
33819    ;;
33820esac
33821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33822$as_echo "$ntp_ok" >&6; }
33823case "$ntp_ok$ntp_canparse" in
33824 yesno)
33825    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33826esac
33827
33828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33829$as_echo_n "checking Schmid DCF77 clock... " >&6; }
33830# Check whether --enable-SCHMID was given.
33831if test "${enable_SCHMID+set}" = set; then :
33832  enableval=$enable_SCHMID; ntp_ok=$enableval
33833else
33834  ntp_ok=$ntp_eapc
33835
33836fi
33837
33838case "$ntp_ok" in
33839 yes)
33840    ntp_libparse=yes
33841    ntp_refclock=yes
33842
33843$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33844
33845    ;;
33846esac
33847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33848$as_echo "$ntp_ok" >&6; }
33849case "$ntp_ok$ntp_canparse" in
33850 yesno)
33851    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33852esac
33853
33854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33855$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33856# Check whether --enable-TRIMTAIP was given.
33857if test "${enable_TRIMTAIP+set}" = set; then :
33858  enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33859else
33860  ntp_ok=$ntp_eapc
33861
33862fi
33863
33864case "$ntp_ok" in
33865 yes)
33866    ntp_libparse=yes
33867    ntp_refclock=yes
33868
33869$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
33870
33871    ;;
33872esac
33873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33874$as_echo "$ntp_ok" >&6; }
33875case "$ntp_ok$ntp_canparse" in
33876 yesno)
33877    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33878esac
33879
33880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
33881$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
33882# Check whether --enable-TRIMTSIP was given.
33883if test "${enable_TRIMTSIP+set}" = set; then :
33884  enableval=$enable_TRIMTSIP; ntp_ok=$enableval
33885else
33886  ntp_ok=$ntp_eapc
33887
33888fi
33889
33890case "$ntp_ok" in
33891 yes)
33892    ntp_libparse=yes
33893    ntp_refclock=yes
33894
33895$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
33896
33897    ;;
33898esac
33899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33900$as_echo "$ntp_ok" >&6; }
33901case "$ntp_ok$ntp_canparse" in
33902 yesno)
33903    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33904esac
33905
33906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
33907$as_echo_n "checking WHARTON 400A Series clock... " >&6; }
33908# Check whether --enable-WHARTON was given.
33909if test "${enable_WHARTON+set}" = set; then :
33910  enableval=$enable_WHARTON; ntp_ok=$enableval
33911else
33912  ntp_ok=$ntp_eapc
33913
33914fi
33915
33916case "$ntp_ok" in
33917 yes)
33918    ntp_libparse=yes
33919    ntp_refclock=yes
33920
33921$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
33922
33923    ;;
33924esac
33925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33926$as_echo "$ntp_ok" >&6; }
33927case "$ntp_ok$ntp_canparse" in
33928 yesno)
33929    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33930esac
33931
33932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
33933$as_echo_n "checking VARITEXT clock... " >&6; }
33934# Check whether --enable-VARITEXT was given.
33935if test "${enable_VARITEXT+set}" = set; then :
33936  enableval=$enable_VARITEXT; ntp_ok=$enableval
33937else
33938  ntp_ok=$ntp_eapc
33939
33940fi
33941
33942case "$ntp_ok" in
33943 yes)
33944    ntp_libparse=yes
33945    ntp_refclock=yes
33946
33947$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
33948
33949    ;;
33950esac
33951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33952$as_echo "$ntp_ok" >&6; }
33953case "$ntp_ok$ntp_canparse" in
33954 yesno)
33955    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33956esac
33957
33958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
33959$as_echo_n "checking SEL240X clock... " >&6; }
33960# Check whether --enable-SEL240X was given.
33961if test "${enable_SEL240X+set}" = set; then :
33962  enableval=$enable_SEL240X; ntp_ok=$enableval
33963else
33964  ntp_ok=$ntp_eapc
33965fi
33966
33967if test "$ntp_ok" = "yes"; then
33968    ntp_libparse=yes
33969    ntp_refclock=yes
33970
33971$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
33972
33973fi
33974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33975$as_echo "$ntp_ok" >&6; }
33976case "$ntp_ok$ntp_canparse" in
33977 yesno)
33978    as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33979    ;;
33980esac
33981
33982
33983
33984
33985
33986
33987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
33988$as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
33989ans=no
33990case "$ntp_libparse" in
33991 yes)
33992    ans=yes
33993
33994$as_echo "#define CLOCK_PARSE 1" >>confdefs.h
33995
33996    LIBPARSE=../libparse/libparse.a
33997    MAKE_LIBPARSE=libparse.a
33998    # HMS: check_y2k trips the 34 year problem now...
33999    false && MAKE_CHECK_Y2K=check_y2k
34000esac
34001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34002$as_echo "$ans" >&6; }
34003
34004
34005
34006
34007VER_SUFFIX=
34008
34009
34010
34011
34012# Check whether --with-crypto was given.
34013if test "${with_crypto+set}" = set; then :
34014  withval=$with_crypto;
34015fi
34016
34017
34018# Check whether --with-openssl-libdir was given.
34019if test "${with_openssl_libdir+set}" = set; then :
34020  withval=$with_openssl_libdir;
34021fi
34022
34023
34024# Check whether --with-openssl-incdir was given.
34025if test "${with_openssl_incdir+set}" = set; then :
34026  withval=$with_openssl_incdir;
34027fi
34028
34029
34030# Check whether --with-rpath was given.
34031if test "${with_rpath+set}" = set; then :
34032  withval=$with_rpath;
34033fi
34034
34035ntp_openssl=no
34036ntp_openssl_from_pkg_config=no
34037with_crypto=${with_crypto:-openssl,libcrypto}
34038case "$with_crypto" in
34039 yes)
34040    with_crypto=openssl,libcrypto
34041esac
34042case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34043 no:*) ;;
34044 *:notempty:notgiven:notgiven)
34045    for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34047$as_echo_n "checking pkg-config for $pkg... " >&6; }
34048	if $PKG_CONFIG --exists $pkg ; then
34049	    CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34050	    CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34051	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34052	    LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34053	    LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34054	    VER_SUFFIX=o
34055	    ntp_openssl=yes
34056	    ntp_openssl_from_pkg_config=yes
34057	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34058$as_echo "yes" >&6; }
34059
34060	    break
34061	fi
34062	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34063$as_echo "no" >&6; }
34064    done
34065esac
34066case "$with_crypto:$ntp_openssl" in
34067 no:*) ;;
34068 *:no)
34069    need_dash_r=
34070    need_dash_Wlrpath=
34071    case "${with_rpath-notgiven}" in
34072     yes)
34073	# Lame - what to do if we need -Wl... but not -R?
34074	need_dash_r=1
34075	;;
34076     notgiven)
34077	case "$host" in
34078	 *-*-linux*)
34079	    # This may really only be true for gcc
34080	    need_dash_Wlrpath=1
34081	    ;;
34082	 *-*-netbsd*)
34083	    need_dash_r=1
34084	    ;;
34085	 *-*-solaris*)
34086	    need_dash_r=1
34087	    ;;
34088	esac
34089	;;
34090    esac
34091
34092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34093$as_echo_n "checking for openssl library directory... " >&6; }
34094    with_openssl_libdir=${with_openssl_libdir-notgiven}
34095    case "$with_openssl_libdir" in
34096     notgiven)
34097	case "$build" in
34098	 $host)
34099	    with_openssl_libdir=default
34100	    ;;
34101	 *)
34102	    with_openssl_libdir=no
34103	    ;;
34104	esac
34105    esac
34106    case "$with_openssl_libdir" in
34107     default)
34108	# Look in:
34109	with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34110	with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34111	with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34112    esac
34113    case "$with_openssl_libdir" in
34114     no)
34115	;;
34116     *) # Look for libcrypto.a and libssl.a:
34117	for i in $with_openssl_libdir no
34118	do
34119	    case "$host" in
34120	     *-*-darwin*)
34121		test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34122		;;
34123	     *)
34124		test -f $i/libcrypto.so -a -f $i/libssl.so && break
34125		test -f $i/libcrypto.a -a -f $i/libssl.a && break
34126		;;
34127	    esac
34128	done
34129	openssl_libdir=$i
34130	;;
34131    esac
34132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34133$as_echo "$openssl_libdir" >&6; }
34134    case "$openssl_libdir" in
34135     no)
34136	openssl_libdir=
34137	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34138$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34139    esac
34140
34141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34142$as_echo_n "checking for openssl include directory... " >&6; }
34143    with_openssl_incdir=${with_openssl_incdir-notgiven}
34144    case "$with_openssl_incdir" in
34145     notgiven)
34146	# Look in:
34147	with_openssl_incdir="/usr/include /usr/sfw/include"
34148	with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34149	with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34150    esac
34151    case "$with_openssl_incdir" in
34152     no)
34153	;;
34154     *) # look for openssl/evp.h:
34155	for i in $with_openssl_incdir no
34156	do
34157	    test -f $i/openssl/evp.h && break
34158	done
34159	openssl_incdir=$i
34160	;;
34161    esac
34162    { i=; unset i;}
34163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34164$as_echo "$openssl_incdir" >&6; }
34165    case "$openssl_incdir" in
34166     no)
34167	openssl_incdir=
34168	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34169$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34170    esac
34171    if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34172    then
34173	ntp_openssl=no
34174    else
34175	ntp_openssl=yes
34176	VER_SUFFIX=o
34177    fi
34178    case "$ntp_openssl" in
34179     yes)
34180	# We have OpenSSL inc/lib dirs - use them.
34181	case "$openssl_incdir" in
34182	 /usr/include)
34183	    ;;
34184	 *)
34185	    CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34186	    ;;
34187	esac
34188	case "$openssl_libdir" in
34189	 /usr/lib)
34190	    ;;
34191	 *)
34192	    LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34193	    case "$need_dash_r" in
34194	     1)
34195		LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34196	    esac
34197	    case "$need_dash_Wlrpath" in
34198	     1)
34199		LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34200	    esac
34201	    ;;
34202	esac
34203	LDADD_NTP="$LDADD_NTP -lcrypto"
34204    esac
34205esac
34206
34207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34208$as_echo_n "checking if we will use crypto... " >&6; }
34209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34210$as_echo "$ntp_openssl" >&6; }
34211
34212case "$ntp_openssl" in
34213 yes)
34214
34215$as_echo "#define OPENSSL /**/" >>confdefs.h
34216
34217    case "$VER_SUFFIX" in
34218     *o*) ;;
34219     *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34220    esac
34221    ;;
34222esac
34223
34224NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34225CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34226NTPO_SAVED_LIBS="$LIBS"
34227
34228#
34229# check for linking with -lcrypto failure, and try -lcrypto -lz.
34230# Helps m68k-atari-mint
34231#
34232case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34233 yes:no)
34234    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34236$as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34237if ${ntp_cv_bare_lcrypto+:} false; then :
34238  $as_echo_n "(cached) " >&6
34239else
34240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34241/* end confdefs.h.  */
34242
34243		    #include "openssl/err.h"
34244		    #include "openssl/evp.h"
34245
34246int
34247main ()
34248{
34249
34250		    ERR_load_crypto_strings();
34251		    OpenSSL_add_all_algorithms();
34252
34253
34254  ;
34255  return 0;
34256}
34257_ACEOF
34258if ac_fn_c_try_link "$LINENO"; then :
34259  ntp_cv_bare_lcrypto=yes
34260else
34261  ntp_cv_bare_lcrypto=no
34262
34263fi
34264rm -f core conftest.err conftest.$ac_objext \
34265    conftest$ac_exeext conftest.$ac_ext
34266
34267fi
34268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34269$as_echo "$ntp_cv_bare_lcrypto" >&6; }
34270    case "$ntp_cv_bare_lcrypto" in
34271     no)
34272	LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34274$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34275if ${ntp_cv_lcrypto_lz+:} false; then :
34276  $as_echo_n "(cached) " >&6
34277else
34278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34279/* end confdefs.h.  */
34280
34281			#include "openssl/err.h"
34282			#include "openssl/evp.h"
34283
34284int
34285main ()
34286{
34287
34288			ERR_load_crypto_strings();
34289			OpenSSL_add_all_algorithms();
34290
34291
34292  ;
34293  return 0;
34294}
34295_ACEOF
34296if ac_fn_c_try_link "$LINENO"; then :
34297  ntp_cv_lcrypto_lz=yes
34298else
34299  ntp_cv_lcrypto_lz=no
34300
34301fi
34302rm -f core conftest.err conftest.$ac_objext \
34303    conftest$ac_exeext conftest.$ac_ext
34304
34305fi
34306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34307$as_echo "$ntp_cv_lcrypto_lz" >&6; }
34308	case "$ntp_cv_lcrypto_lz" in
34309	 yes)
34310	     LDADD_NTP="$LDADD_NTP -lz"
34311	esac
34312    esac
34313esac
34314
34315#
34316# Older OpenSSL headers have a number of callback prototypes inside
34317# other function prototypes which trigger copious warnings with gcc's
34318# -Wstrict-prototypes, which is included in -Wall.
34319#
34320# An example:
34321#
34322# int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34323#		  int (*cb)(), int sgckey);
34324#		  ^^^^^^^^^^^
34325#
34326#
34327#
34328openssl_triggers_warnings=unknown
34329NTPO_SAVED_CFLAGS="$CFLAGS"
34330
34331case "$ntp_openssl:$GCC" in
34332 yes:yes)
34333    CFLAGS="$CFLAGS -Werror"
34334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34335/* end confdefs.h.  */
34336
34337
34338int
34339main ()
34340{
34341
34342		/* see if -Werror breaks gcc */
34343
34344
34345  ;
34346  return 0;
34347}
34348_ACEOF
34349if ac_fn_c_try_compile "$LINENO"; then :
34350  gcc_handles_Werror=yes
34351else
34352  gcc_handles_Werror=no
34353
34354fi
34355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34356    case "$gcc_handles_Werror" in
34357     no)
34358	# if this gcc doesn't do -Werror go ahead and use
34359	# -Wstrict-prototypes.
34360	openssl_triggers_warnings=yes
34361	;;
34362     yes)
34363	CFLAGS="$CFLAGS -Wstrict-prototypes"
34364	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365/* end confdefs.h.  */
34366
34367		    #include "openssl/asn1_mac.h"
34368		    #include "openssl/bn.h"
34369		    #include "openssl/err.h"
34370		    #include "openssl/evp.h"
34371		    #include "openssl/pem.h"
34372		    #include "openssl/rand.h"
34373		    #include "openssl/x509v3.h"
34374
34375int
34376main ()
34377{
34378
34379		    /* empty body */
34380
34381
34382  ;
34383  return 0;
34384}
34385_ACEOF
34386if ac_fn_c_try_compile "$LINENO"; then :
34387  openssl_triggers_warnings=no
34388else
34389  openssl_triggers_warnings=yes
34390
34391fi
34392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393    esac
34394    case "$openssl_triggers_warnings" in
34395     yes)
34396	CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34397	;;
34398     *)
34399	CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34400    esac
34401    ;;
34402 no:yes)
34403    # gcc without OpenSSL
34404    CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34405esac
34406
34407# Because we don't want -Werror for the EVP_MD_do_all_sorted check
34408CFLAGS="$NTPO_SAVED_CFLAGS"
34409
34410case "$ntp_openssl" in
34411 yes)
34412    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34413    for ac_func in EVP_MD_do_all_sorted
34414do :
34415  ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34416if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34417  cat >>confdefs.h <<_ACEOF
34418#define HAVE_EVP_MD_DO_ALL_SORTED 1
34419_ACEOF
34420
34421fi
34422done
34423
34424    ;;
34425esac
34426
34427CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34428LIBS="$NTPO_SAVED_LIBS"
34429{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34430{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34431{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34432{ openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34433{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34434
34435
34436
34437
34438
34439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34440$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34441# Check whether --enable-openssl-random was given.
34442if test "${enable_openssl_random+set}" = set; then :
34443  enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34444else
34445  ntp_use_openssl_random=yes
34446
34447fi
34448
34449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34450$as_echo "$ntp_use_openssl_random" >&6; }
34451
34452# The following might need extra libraries
34453NTPO_SAVED_LIBS="$LIBS"
34454LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34455for ac_func in RAND_bytes RAND_poll
34456do :
34457  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34458ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34459if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34460  cat >>confdefs.h <<_ACEOF
34461#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34462_ACEOF
34463
34464fi
34465done
34466
34467LIBS="$NTPO_SAVED_LIBS"
34468case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34469 yesyesyes)
34470
34471$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34472
34473     ;;
34474 *) ntp_use_openssl_random=no ;;
34475esac
34476
34477
34478
34479# if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34481$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34482# Check whether --enable-autokey was given.
34483if test "${enable_autokey+set}" = set; then :
34484  enableval=$enable_autokey; ntp_autokey=$enableval
34485else
34486  ntp_autokey=$ntp_openssl
34487
34488fi
34489
34490case "$ntp_autokey" in
34491 no)
34492    ;;
34493 *)
34494    case "$ntp_openssl" in
34495     no)
34496	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34497$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34498	ntp_autokey=no
34499	;;
34500     *)
34501
34502$as_echo "#define AUTOKEY 1" >>confdefs.h
34503
34504	ntp_autokey=yes
34505	;;
34506    esac
34507    ;;
34508esac
34509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34510$as_echo "$ntp_autokey" >&6; }
34511
34512
34513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34514$as_echo_n "checking if we want to run check-layout... " >&6; }
34515case "$cross_compiling$PATH_PERL" in
34516 no/*)
34517    MAKE_CHECK_LAYOUT=check-layout
34518    ans=yes
34519    ;;
34520 *)
34521    ans=no
34522    ;;
34523esac
34524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34525$as_echo "$ans" >&6; }
34526
34527
34528
34529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34530$as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34531ans=no
34532case "$ntp_parseutil" in
34533 yes)
34534    case "$host" in
34535     *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34536	ans="dcfd testdcf"
34537	DCFD=dcfd
34538	TESTDCF=testdcf
34539    esac
34540    ;;
34541esac
34542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34543$as_echo "$ans" >&6; }
34544
34545
34546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34547$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34548ans=no
34549case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34550 yesyes)
34551    case "$host" in
34552     sparc-*-sunos4*)
34553        case "$ntp_cv_var_kernel_pll" in
34554	yes)
34555
34556$as_echo "#define PPS_SYNC 1" >>confdefs.h
34557
34558	    ;;
34559	esac
34560	ans=parsestreams
34561	MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34562	;;
34563     sparc-*-solaris2*)
34564	ans=parsesolaris
34565	MAKE_PARSEKMODULE=parse
34566	for ac_header in strings.h
34567do :
34568  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34569if test "x$ac_cv_header_strings_h" = xyes; then :
34570  cat >>confdefs.h <<_ACEOF
34571#define HAVE_STRINGS_H 1
34572_ACEOF
34573
34574fi
34575
34576done
34577
34578	;;
34579    esac
34580    ;;
34581esac
34582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34583$as_echo "$ans" >&6; }
34584
34585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34586$as_echo_n "checking if we need basic refclock support... " >&6; }
34587case "$ntp_refclock" in
34588 yes)
34589
34590$as_echo "#define REFCLOCK 1" >>confdefs.h
34591
34592    ;;
34593esac
34594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34595$as_echo "$ntp_refclock" >&6; }
34596
34597PROPDELAY=propdelay
34598
34599
34600
34601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34602$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34603case "$host" in
34604 *-*-hpux[56789]*)
34605    ans=yes
34606    ;;
34607 *) ans=no
34608    ;;
34609esac
34610case "$ans" in
34611 yes)
34612    MAKE_ADJTIMED=adjtimed
34613
34614$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34615
34616    ;;
34617 *) ADJTIMED_DB=
34618    ADJTIMED_DL=
34619    ADJTIMED_DS=
34620    ADJTIMED_MS=
34621    ;;
34622esac
34623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34624$as_echo "$ans" >&6; }
34625
34626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34627$as_echo_n "checking if we want QNX adjtime support... " >&6; }
34628case "$host" in
34629 *-*-qnx*)
34630    ans=yes
34631    ;;
34632 *) ans=no
34633    ;;
34634esac
34635case "$ans" in
34636 yes)
34637
34638$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34639
34640    ;;
34641esac
34642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34643$as_echo "$ans" >&6; }
34644
34645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34646$as_echo_n "checking if we can read kmem... " >&6; }
34647
34648#  the default is to enable it if the system has the capability
34649
34650case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34651 *yes*)
34652    ans=yes
34653    ;;
34654 *) ans=no
34655    ;;
34656esac
34657
34658case "$host" in
34659 *-*-domainos)	# Won't be found...
34660    ans=no
34661    ;;
34662 *-*-hpux*)
34663    #ans=no
34664    ;;
34665 *-*-irix[456]*)
34666    ans=no
34667    ;;
34668 *-*-*linux*)
34669    ans=no
34670    ;;
34671 *-*-winnt3.5)
34672    ans=no
34673    ;;
34674 *-*-unicosmp*)
34675    ans=no
34676    ;;
34677esac
34678
34679# --enable-kmem / --disable-kmem controls if present
34680# Check whether --enable-kmem was given.
34681if test "${enable_kmem+set}" = set; then :
34682  enableval=$enable_kmem; ans=$enableval
34683
34684fi
34685
34686
34687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34688$as_echo "$ans" >&6; }
34689
34690case "$ans" in
34691 yes)
34692    can_kmem=yes
34693    ;;
34694 *)
34695    can_kmem=no
34696
34697$as_echo "#define NOKMEM 1" >>confdefs.h
34698
34699esac
34700
34701
34702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34703$as_echo_n "checking if adjtime is accurate... " >&6; }
34704
34705# target-dependent defaults
34706
34707case "$host" in
34708 i386-sequent-ptx*)
34709    ans=no
34710    ;;
34711 i386-unknown-osf1*)
34712    ans=yes
34713    ;;
34714 mips-sgi-irix[456]*)
34715    ans=yes
34716    ;;
34717 *-fujitsu-uxp*)
34718    ans=yes
34719    ;;
34720 *-ibm-aix[4-9]*)
34721    # XXX only verified thru AIX6.
34722    ans=yes
34723    ;;
34724 *-*-*linux*)
34725    ans=yes
34726    ;;
34727 *-*-solaris2.[01])
34728    ans=no
34729    ;;
34730 *-*-solaris2*)
34731    ans=yes
34732    ;;
34733 *-*-unicosmp*)
34734    ans=yes
34735    ;;
34736 *) ans=no
34737    ;;
34738esac
34739
34740# --enable-accurate-adjtime / --disable-accurate-adjtime
34741# override the default
34742# Check whether --enable-accurate-adjtime was given.
34743if test "${enable_accurate_adjtime+set}" = set; then :
34744  enableval=$enable_accurate_adjtime; ans=$enableval
34745
34746fi
34747
34748
34749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34750$as_echo "$ans" >&6; }
34751
34752case "$ans" in
34753 yes)
34754
34755$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34756
34757    adjtime_is_accurate=yes
34758    ;;
34759 *)
34760    adjtime_is_accurate=no
34761    ;;
34762esac
34763
34764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34765$as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34766if ${ntp_cv_nlist_tick+:} false; then :
34767  $as_echo_n "(cached) " >&6
34768else
34769
34770	ans=_tick
34771	case "$host" in
34772	 m68*-hp-hpux*) # HP9000/300?
34773	    ans=_old_tick
34774	    ;;
34775	 *-apple-aux[23]*)
34776	    ans=tick
34777	    ;;
34778	 *-hp-hpux*)
34779	    ans=old_tick
34780	    ;;
34781	 *-ibm-aix[3-9]*)
34782	    # XXX only verified thru AIX6.
34783	    ans=no
34784	    ;;
34785	 *-*-mpeix*)
34786	    ans=no
34787	    ;;
34788	 *-*-ptx*)
34789	    ans=tick
34790	    ;;
34791	 *-*-sco3.2v[45]*)
34792	    ans=no
34793	    ;;
34794	 *-*-solaris2*)
34795	    ans=nsec_per_tick
34796	    ;;
34797	 *-*-sysv4*)
34798	    ans=tick
34799	    ;;
34800	esac
34801	ntp_cv_nlist_tick=$ans
34802
34803
34804fi
34805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34806$as_echo "$ntp_cv_nlist_tick" >&6; }
34807case "$ntp_cv_nlist_tick" in
34808 ''|no)
34809    ;;	# HMS: I think we can only get 'no' here...
34810 *)
34811
34812cat >>confdefs.h <<_ACEOF
34813#define K_TICK_NAME "$ntp_cv_nlist_tick"
34814_ACEOF
34815
34816esac
34817
34818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34819$as_echo_n "checking for the units of 'tick'... " >&6; }
34820if ${ntp_cv_tick_nano+:} false; then :
34821  $as_echo_n "(cached) " >&6
34822else
34823
34824	ans=usec
34825	case "$host" in
34826	 *-*-solaris2*)
34827	    ans=nsec
34828	    ;;
34829	esac
34830	ntp_cv_tick_nano=$ans
34831
34832
34833fi
34834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34835$as_echo "$ntp_cv_tick_nano" >&6; }
34836case "$ntp_cv_tick_nano" in
34837 nsec)
34838
34839$as_echo "#define TICK_NANO 1" >>confdefs.h
34840
34841esac
34842
34843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34844$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34845if ${ntp_cv_nlist_tickadj+:} false; then :
34846  $as_echo_n "(cached) " >&6
34847else
34848
34849	ans=_tickadj
34850	case "$host" in
34851	 m68*-hp-hpux*) # HP9000/300?
34852	    ans=_tickadj
34853	    ;;
34854	 *-apple-aux[23]*)
34855	    ans=tickadj
34856	    ;;
34857	 *-hp-hpux10*)
34858	    ans=no
34859	    ;;
34860	 *-hp-hpux9*)
34861	    ans=no
34862	    ;;
34863	 *-hp-hpux*)
34864	    ans=tickadj
34865	    ;;
34866	 *-*-aix*)
34867	    ans=tickadj
34868	    ;;
34869	 *-*-mpeix*)
34870	    ans=no
34871	    ;;
34872	 *-*-ptx*)
34873	    ans=tickadj
34874	    ;;
34875	 *-*-sco3.2v4*)
34876	    ans=no
34877	    ;;
34878	 *-*-sco3.2v5.0*)
34879	    ans=clock_drift
34880	    ;;
34881	 *-*-solaris2*)
34882	    ans=no	# hrestime_adj
34883	    ;;
34884	 *-*-sysv4*)
34885	    ans=tickadj
34886	    ;;
34887	esac
34888	ntp_cv_nlist_tickadj=$ans
34889
34890
34891fi
34892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
34893$as_echo "$ntp_cv_nlist_tickadj" >&6; }
34894case "$ntp_cv_nlist_tickadj" in
34895 ''|no)
34896    ;;	# HMS: I think we can only get 'no' here...
34897 *)
34898
34899cat >>confdefs.h <<_ACEOF
34900#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
34901_ACEOF
34902
34903esac
34904
34905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
34906$as_echo_n "checking for the units of 'tickadj'... " >&6; }
34907if ${ntp_cv_tickadj_nano+:} false; then :
34908  $as_echo_n "(cached) " >&6
34909else
34910
34911	ans=usec
34912	case "$host" in
34913	 *-*-solaris2*)
34914	    ans=nsec
34915	    ;;
34916	esac
34917	ntp_cv_tickadj_nano=$ans
34918
34919
34920fi
34921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
34922$as_echo "$ntp_cv_tickadj_nano" >&6; }
34923case "$ntp_cv_tickadj_nano" in
34924 nsec)
34925
34926$as_echo "#define TICKADJ_NANO 1" >>confdefs.h
34927
34928esac
34929
34930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
34931$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
34932if ${ntp_cv_nlist_dosynctodr+:} false; then :
34933  $as_echo_n "(cached) " >&6
34934else
34935
34936	case "$host" in
34937	 *-apple-aux[23]*)
34938	    ans=no
34939	    ;;
34940	 *-sni-sysv*)
34941	    ans=dosynctodr
34942	    ;;
34943	 *-stratus-vos)
34944	    ans=no
34945	    ;;
34946	 *-*-aix*)
34947	    ans=dosynctodr
34948	    ;;
34949	 *-*-hpux*)
34950	    ans=no
34951	    ;;
34952	 *-*-mpeix*)
34953	    ans=no
34954	    ;;
34955	 *-*-nextstep*)
34956	    ans=_dosynctodr
34957	    ;;
34958	 *-*-ptx*)
34959	    ans=doresettodr
34960	    ;;
34961	 *-*-sco3.2v4*)
34962	    ans=no
34963	    ;;
34964	 *-*-sco3.2v5*)
34965	    ans=track_rtc
34966	    ;;
34967	 *-*-solaris2*)
34968	    ans=dosynctodr
34969	    ;;
34970	 *-*-sysv4*)
34971	    ans=doresettodr
34972	    ;;
34973	 *)
34974	    ans=_dosynctodr
34975	    ;;
34976	esac
34977	ntp_cv_nlist_dosynctodr=$ans
34978
34979
34980fi
34981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
34982$as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
34983case "$ntp_cv_nlist_dosynctodr" in
34984 no)
34985    ;;
34986 *)
34987
34988cat >>confdefs.h <<_ACEOF
34989#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
34990_ACEOF
34991
34992    ;;
34993esac
34994
34995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
34996$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
34997if ${ntp_cv_nlist_noprintf+:} false; then :
34998  $as_echo_n "(cached) " >&6
34999else
35000
35001	case "$host" in
35002	 *-apple-aux[23]*)
35003	    ans=no
35004	    ;;
35005	 *-sni-sysv*)
35006	    ans=noprintf
35007	    ;;
35008	 *-stratus-vos)
35009	    ans=no
35010	    ;;
35011	 *-*-aix*)
35012	    ans=noprintf
35013	    ;;
35014	 *-*-hpux*)
35015	    ans=no
35016	    ;;
35017	 *-*-mpeix*)
35018	    ans=no
35019	    ;;
35020	 *-*-ptx*)
35021	    ans=noprintf
35022	    ;;
35023	 *-*-nextstep*)
35024	    ans=_noprintf
35025	    ;;
35026	 *-*-solaris2*)
35027	    ans=noprintf
35028	    ;;
35029	 *-*-sysv4*)
35030	    ans=noprintf
35031	    ;;
35032	 *)
35033	    ans=_noprintf
35034	    ;;
35035	esac
35036	ntp_cv_nlist_noprintf=$ans
35037
35038
35039fi
35040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35041$as_echo "$ntp_cv_nlist_noprintf" >&6; }
35042case "$ntp_cv_nlist_noprintf" in
35043 no)
35044    ;;
35045 *)
35046
35047cat >>confdefs.h <<_ACEOF
35048#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35049_ACEOF
35050
35051    ;;
35052esac
35053
35054
35055
35056
35057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35058$as_echo_n "checking for a default value for 'tick'... " >&6; }
35059
35060# target-dependent default for tick
35061
35062case "$host" in
35063 *-*-pc-cygwin*)
35064    as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35065    ;;
35066 *-univel-sysv*)
35067    ans=10000
35068    ;;
35069 *-*-irix*)
35070    ans=10000
35071    ;;
35072 *-*-*linux*)
35073    ans=txc.tick
35074    ;;
35075 *-*-mpeix*)
35076    ans=no
35077    ;;
35078 *-*-winnt3.5)
35079    ans='(every / 10)'
35080    ;;
35081 *-*-unicosmp*)
35082    ans=10000
35083    ;;
35084 *)
35085    ans='1000000L/hz'
35086    ;;
35087esac
35088
35089# Check whether --enable-tick was given.
35090if test "${enable_tick+set}" = set; then :
35091  enableval=$enable_tick; ans=$enableval
35092
35093fi
35094
35095
35096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35097$as_echo "$ans" >&6; }
35098
35099case "$ans" in
35100 ''|no)
35101    ;;	# HMS: I think we can only get 'no' here...
35102 *)
35103
35104cat >>confdefs.h <<_ACEOF
35105#define PRESET_TICK $ans
35106_ACEOF
35107
35108esac
35109
35110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35111$as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35112
35113# target-specific default
35114ans='500/hz'
35115case "$host" in
35116 *-fujitsu-uxp*)
35117    case "$adjtime_is_accurate" in
35118     yes)
35119	ans='tick/16'
35120    esac
35121    ;;
35122 *-univel-sysv*)
35123    ans=80
35124    ;;
35125 *-*-aix*)
35126    case "$can_kmem" in
35127     no)
35128	ans=1000
35129	;;
35130    esac
35131    ;;
35132 *-*-domainos)	# Skippy: won't be found...
35133    case "$can_kmem" in
35134     no)
35135	ans=668
35136	;;
35137    esac
35138    ;;
35139 *-*-hpux*)
35140    case "$adjtime_is_accurate" in
35141     yes)
35142	ans='tick/16'
35143	;;
35144    esac
35145    ;;
35146 *-*-irix*)
35147    ans=150
35148    ;;
35149 *-*-mpeix*)
35150    ans=no
35151    ;;
35152 *-*-sco3.2v5.0*)
35153    ans=10000L/hz
35154    ;;
35155 *-*-winnt3.5)
35156    ans=50
35157    ;;
35158 *-*-unicosmp*)
35159    ans=150
35160    ;;
35161esac
35162
35163# Check whether --enable-tickadj was given.
35164if test "${enable_tickadj+set}" = set; then :
35165  enableval=$enable_tickadj; ans=$enableval
35166
35167fi
35168
35169
35170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35171$as_echo "$ans" >&6; }
35172
35173default_tickadj=$ans
35174
35175case "$default_tickadj" in
35176 ''|no)
35177    ;;	# HMS: I think we can only get 'no' here...
35178 *)
35179
35180cat >>confdefs.h <<_ACEOF
35181#define PRESET_TICKADJ $default_tickadj
35182_ACEOF
35183 ;;
35184esac
35185
35186# Newer versions of ReliantUNIX round adjtime() values down to
35187# 1/100s (system tick). Sigh ...
35188# Unfortunately, there is no easy way to know if particular release
35189# has this "feature" or any obvious way to test for it.
35190case "$host" in
35191 mips-sni-sysv4*)
35192
35193$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35194
35195esac
35196
35197case "$host" in
35198 *-*-sco3.2v5*)
35199
35200$as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35201
35202esac
35203
35204ntp_cv_make_tickadj=yes
35205case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35206 nonono)	# Don't read KMEM, no presets.  Bogus.
35207    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
35208$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
35209    ntp_cv_make_tickadj=no
35210    ;;
35211 nono*)		# Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35212    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
35213$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
35214    ntp_cv_make_tickadj=no
35215    ;;
35216 no*no)		# Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
35217    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
35218$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
35219    ntp_cv_make_tickadj=no
35220    ;;
35221 no*)		# Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
35222    ;;
35223 yesnono)	# Read KMEM, no presets.  Cool.
35224    ;;
35225 yesno*)	# Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35226    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
35227$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
35228    ;;
35229 yes*no)	# Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
35230    ;;
35231 yes*)		# READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35232    ;;
35233 *)		# Generally bogus.
35234    as_fn_error $? "This shouldn't happen." "$LINENO" 5
35235    ;;
35236esac
35237
35238
35239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35240$as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35241if ${ac_cv_make_ntptime+:} false; then :
35242  $as_echo_n "(cached) " >&6
35243else
35244  case "$host" in
35245 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35246     yesyes)
35247	ans=yes
35248	;;
35249     *)
35250	ans=no
35251	;;
35252    esac
35253    ;;
35254esac
35255ac_cv_make_ntptime=$ans
35256fi
35257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35258$as_echo "$ac_cv_make_ntptime" >&6; }
35259case "$ac_cv_make_ntptime" in
35260 yes)
35261    MAKE_NTPTIME=ntptime
35262    ;;
35263 *)
35264    NTPTIME_DB=
35265    NTPTIME_DL=
35266    NTPTIME_DS=
35267    NTPTIME_MS=
35268    ;;
35269esac
35270
35271
35272case "$host" in
35273 mips-sni-sysv4*)
35274    # tickadj is pretty useless on newer versions of ReliantUNIX
35275    # Do not bother
35276    ntp_cv_make_tickadj=no
35277    ;;
35278 *-*-irix*)
35279    ntp_cv_make_tickadj=no
35280    ;;
35281 *-*-solaris2*)
35282    # DLM says tickadj is a no-no starting with solaris2.5
35283    case "$host" in
35284     *-*-solaris2.1[0-9]*)
35285	ntp_cv_make_tickadj=no
35286	;;
35287     *-*-solaris2.[0-4]*) ;;
35288     *) ntp_cv_make_tickadj=no ;;
35289    esac
35290    ;;
35291 *-*-unicosmp*)
35292    ntp_cv_make_tickadj=no
35293    ;;
35294esac
35295
35296#
35297# Despite all the above, we always make tickadj.  Setting
35298# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35299# report that the configuration variable was cached.  It may
35300# be better to simply remove the hunk above, I did not want
35301# to remove it if there is hope it will be used again.
35302#
35303{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35304
35305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35306$as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35307if ${ntp_cv_make_tickadj+:} false; then :
35308  $as_echo_n "(cached) " >&6
35309else
35310  ntp_cv_make_tickadj=yes
35311
35312fi
35313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35314$as_echo "$ntp_cv_make_tickadj" >&6; }
35315case "$ntp_cv_make_tickadj" in
35316 yes)
35317    MAKE_TICKADJ=tickadj
35318    ;;
35319 *)
35320    CALC_TICKADJ_DB=
35321    CALC_TICKADJ_DL=
35322    CALC_TICKADJ_DS=
35323    CALC_TICKADJ_MS=
35324    TICKADJ_DB=
35325    TICKADJ_DL=
35326    TICKADJ_DS=
35327    TICKADJ_MS=
35328    ;;
35329esac
35330
35331
35332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35333$as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35334if ${ntp_cv_make_timetrim+:} false; then :
35335  $as_echo_n "(cached) " >&6
35336else
35337
35338	case "$host" in
35339	 *-*-irix*)
35340	    ntp_cv_make_timetrim=yes
35341	    ;;
35342	 *-*-unicosmp*)
35343	    ntp_cv_make_timetrim=yes
35344	    ;;
35345	 *)
35346	    ntp_cv_make_timetrim=no
35347	    ;;
35348	esac
35349
35350
35351fi
35352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35353$as_echo "$ntp_cv_make_timetrim" >&6; }
35354case "$ntp_cv_make_timetrim" in
35355 yes)
35356    MAKE_TIMETRIM=timetrim
35357    ;;
35358 *) TIMETRIM_DB=
35359    TIMETRIM_DL=
35360    TIMETRIM_DS=
35361    TIMETRIM_MS=
35362    ;;
35363esac
35364
35365
35366
35367
35368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35369$as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35370# Check whether --enable-simulator was given.
35371if test "${enable_simulator+set}" = set; then :
35372  enableval=$enable_simulator; ans=$enableval
35373else
35374  ans=no
35375
35376fi
35377
35378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35379$as_echo "$ans" >&6; }
35380case "$ans" in
35381 yes)
35382    MAKE_NTPDSIM=ntpdsim
35383    MAKE_LIBNTPSIM=libntpsim.a
35384    ;;
35385 *)
35386    NTPDSIM_DB=
35387    NTPDSIM_DL=
35388    NTPDSIM_DS=
35389    NTPDSIM_MS=
35390    ;;
35391esac
35392
35393case "$build" in
35394 $host)
35395    ;;
35396 *) case "$host" in
35397     *-*-vxworks*)
35398	LDFLAGS="$LDFLAGS -r"
35399	;;
35400    esac
35401    ;;
35402esac
35403
35404
35405
35406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35407$as_echo_n "checking if sntp will be built... " >&6; }
35408
35409# Check whether --with-sntp was given.
35410if test "${with_sntp+set}" = set; then :
35411  withval=$with_sntp;
35412else
35413  with_sntp="${withsntp=yes}"
35414
35415fi
35416
35417case "$with_sntp" in
35418 no)
35419    SNTP=
35420    ;;
35421 *)
35422    SNTP=sntp
35423    ;;
35424esac
35425
35426 if test -n "$SNTP"; then
35427  BUILD_SNTP_TRUE=
35428  BUILD_SNTP_FALSE='#'
35429else
35430  BUILD_SNTP_TRUE='#'
35431  BUILD_SNTP_FALSE=
35432fi
35433
35434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35435$as_echo "$with_sntp" >&6; }
35436
35437
35438
35439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35440$as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35441
35442# Check whether --with-ntpsnmpd was given.
35443if test "${with_ntpsnmpd+set}" = set; then :
35444  withval=$with_ntpsnmpd; ans=$withval
35445else
35446
35447	case "$PATH_NET_SNMP_CONFIG" in
35448	 /*)	ans=yes ;;
35449	 *)	ans=no  ;;
35450	esac
35451
35452
35453fi
35454
35455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35456$as_echo "$ans" >&6; }
35457case "$ans" in
35458 yes)
35459    case "$PATH_NET_SNMP_CONFIG" in
35460     /*)
35461	SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35462	# Bug 2815.  This is a bit of a hack, but it works...
35463	case "$ntp_cv_net_snmp_version" in
35464	 5.3*)	SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35465		;;
35466	esac
35467
35468	# HMS: we really want to separate CPPFLAGS and CFLAGS
35469	foo=`$PATH_NET_SNMP_CONFIG --cflags`
35470	SNMP_CPPFLAGS=
35471	SNMP_CFLAGS=
35472	for i in $foo; do
35473	    case "$i" in
35474	     -D*|-U*|-I*)
35475		SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35476		;;
35477	    *)	SNMP_CFLAGS="$SNMP_CFLAGS $i"
35478		;;
35479	    esac
35480	done
35481
35482
35483
35484	save_CFLAGS=$CFLAGS
35485	save_CPPFLAGS=$CPPFLAGS
35486	save_LIBS=$LIBS
35487	CFLAGS=$SNMP_CFLAGS
35488	CPPFLAGS=$SNMP_CPPFLAGS
35489
35490	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"
35491if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35492  MAKE_NTPSNMPD=ntpsnmpd
35493else
35494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35495$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35496
35497fi
35498
35499
35500
35501	# Do this last, as we're messing up LIBS.
35502	# check -lnetsnmp for netsnmp_daemonize
35503	LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35505$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35506if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35507  $as_echo_n "(cached) " >&6
35508else
35509  ac_check_lib_save_LIBS=$LIBS
35510LIBS="-lnetsnmp  $LIBS"
35511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35512/* end confdefs.h.  */
35513
35514/* Override any GCC internal prototype to avoid an error.
35515   Use char because int might match the return type of a GCC
35516   builtin and then its argument prototype would still apply.  */
35517#ifdef __cplusplus
35518extern "C"
35519#endif
35520char netsnmp_daemonize ();
35521int
35522main ()
35523{
35524return netsnmp_daemonize ();
35525  ;
35526  return 0;
35527}
35528_ACEOF
35529if ac_fn_c_try_link "$LINENO"; then :
35530  ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35531else
35532  ac_cv_lib_netsnmp_netsnmp_daemonize=no
35533fi
35534rm -f core conftest.err conftest.$ac_objext \
35535    conftest$ac_exeext conftest.$ac_ext
35536LIBS=$ac_check_lib_save_LIBS
35537fi
35538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35539$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35540if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35541  ans=yes
35542else
35543  ans=no
35544
35545fi
35546
35547	case "$ans" in
35548	 no)
35549
35550$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35551
35552	esac
35553
35554	CFLAGS=$save_CFLAGS
35555	{ save_CFLAGS=; unset save_CFLAGS;}
35556	CPPFLAGS=$save_CPPFLAGS
35557	{ save_CPPFLAGS=; unset save_CPPFLAGS;}
35558	LIBS=$save_LIBS
35559	{ save_LIBS=; unset save_LIBS;}
35560	;;
35561     *)
35562	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35563$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35564	;;
35565    esac
35566    ;;
35567esac
35568
35569
35570case "$MAKE_NTPSNMPD" in
35571 '')
35572    NTPSNMPD_DB=
35573    NTPSNMPD_DL=
35574    NTPSNMPD_DS=
35575    NTPSNMPD_MS=
35576    ;;
35577esac
35578
35579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35580$as_echo_n "checking if we should always slew the time... " >&6; }
35581
35582# target-specific defaults
35583
35584case "$host" in
35585 *-apple-aux[23]*)
35586    ans=yes
35587    ;;
35588 *-*-bsdi[012]*)
35589    ans=no
35590    ;;
35591 *-*-bsdi*)
35592    ans=yes
35593    ;;
35594 *-*-openvms*)	# HMS: won't be found
35595    ans=yes
35596    ;;
35597 *) ans=no
35598    ;;
35599esac
35600
35601# --enable-slew-always / --disable-slew-always overrides default
35602
35603# Check whether --enable-slew-always was given.
35604if test "${enable_slew_always+set}" = set; then :
35605  enableval=$enable_slew_always; ans=$enableval
35606
35607fi
35608
35609
35610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35611$as_echo "$ans" >&6; }
35612
35613case "$ans" in
35614 yes)
35615
35616$as_echo "#define SLEWALWAYS 1" >>confdefs.h
35617
35618esac
35619
35620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35621$as_echo_n "checking if we should step and slew the time... " >&6; }
35622
35623case "$host" in
35624 *-sni-sysv*)
35625    ans=yes
35626    ;;
35627 *-stratus-vos)
35628    ans=no
35629    ;;
35630 *-univel-sysv*)
35631    ans=no
35632    ;;
35633 *-*-ptx*)
35634    ans=yes
35635    ;;
35636 *-*-solaris2.1[0-9]*)
35637    ans=no
35638    ;;
35639 *-*-solaris2.[012]*)
35640    ans=yes
35641    ;;
35642 *-*-sysv4*)	# HMS: Does this catch Fujitsu UXP?
35643    ans=yes
35644    ;;
35645 *) ans=no
35646    ;;
35647esac
35648
35649# Check whether --enable-step-slew was given.
35650if test "${enable_step_slew+set}" = set; then :
35651  enableval=$enable_step_slew; ans=$enableval
35652
35653fi
35654
35655
35656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35657$as_echo "$ans" >&6; }
35658
35659case "$ans" in
35660 yes)
35661
35662$as_echo "#define STEP_SLEW 1" >>confdefs.h
35663
35664esac
35665
35666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35667$as_echo_n "checking if ntpdate should step the time... " >&6; }
35668
35669case "$host" in
35670 *-apple-aux[23]*)
35671    ans=yes
35672    ;;
35673 *) ans=no
35674    ;;
35675esac
35676
35677# Check whether --enable-ntpdate-step was given.
35678if test "${enable_ntpdate_step+set}" = set; then :
35679  enableval=$enable_ntpdate_step; ans=$enableval
35680
35681fi
35682
35683
35684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35685$as_echo "$ans" >&6; }
35686
35687case "$ans" in
35688 yes)
35689
35690$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35691
35692esac
35693
35694
35695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35696$as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35697
35698case "$host" in
35699 *-*-nextstep*)
35700    ans=yes
35701    ;;
35702 *-*-openvms*)	# HMS: won't be found
35703    ans=yes
35704    ;;
35705 *)
35706    ans=no
35707    ;;
35708esac
35709
35710# Check whether --enable-hourly-todr-sync was given.
35711if test "${enable_hourly_todr_sync+set}" = set; then :
35712  enableval=$enable_hourly_todr_sync; ans=$enableval
35713
35714fi
35715
35716
35717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35718$as_echo "$ans" >&6; }
35719
35720case "$ac_cv_var_sync_todr" in
35721 yes)
35722
35723$as_echo "#define DOSYNCTODR 1" >>confdefs.h
35724 ;;
35725esac
35726
35727
35728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35729$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35730
35731case "$host" in
35732 *-*-solaris2.6)
35733    unamev=`uname -v`
35734    case "$unamev" in
35735     Generic_105181-*)
35736	old_IFS="$IFS"
35737	IFS="-"
35738	set $unamev
35739	IFS="$old_IFS"
35740	if test "$2" -ge 17
35741	then
35742	    # Generic_105181-17 and higher
35743	    ans=no
35744	else
35745	    ans=yes
35746	fi
35747	;;
35748     *)
35749	ans=yes
35750	;;
35751    esac
35752    ;;
35753 *-*-solaris2.7)
35754    unamev=`uname -v`
35755    case "$unamev" in
35756     Generic_106541-*)
35757	old_IFS="$IFS"
35758	IFS="-"
35759	set $unamev
35760	IFS="$old_IFS"
35761	if test "$2" -ge 07
35762	then
35763	    # Generic_106541-07 and higher
35764	    ans=no
35765	else
35766	    ans=yes
35767	fi
35768	;;
35769     *)
35770	ans=yes
35771	;;
35772    esac
35773    ;;
35774 *)
35775    ans=no
35776    ;;
35777esac
35778
35779# Check whether --enable-kernel-fll-bug was given.
35780if test "${enable_kernel_fll_bug+set}" = set; then :
35781  enableval=$enable_kernel_fll_bug; ans=$enableval
35782
35783fi
35784
35785
35786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35787$as_echo "$ans" >&6; }
35788
35789case "$ans" in
35790 yes)
35791
35792$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35793
35794esac
35795
35796
35797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35798$as_echo_n "checking if we want new session key behavior... " >&6; }
35799# Check whether --enable-bug1243-fix was given.
35800if test "${enable_bug1243_fix+set}" = set; then :
35801  enableval=$enable_bug1243_fix; ans=$enableval
35802else
35803  ans=yes
35804
35805fi
35806
35807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35808$as_echo "$ans" >&6; }
35809case "$ans" in
35810 no)
35811
35812$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35813
35814esac
35815
35816
35817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35818$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35819
35820case "$host" in
35821 *-*-solaris2.[89])
35822    ans=yes
35823    ;;
35824 *-*-solaris2.1[0-9]*)
35825    ans=yes
35826    ;;
35827 *) ans=no
35828    ;;
35829esac
35830
35831# Check whether --enable-irig-sawtooth was given.
35832if test "${enable_irig_sawtooth+set}" = set; then :
35833  enableval=$enable_irig_sawtooth; ans=$enableval
35834
35835fi
35836
35837
35838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35839$as_echo "$ans" >&6; }
35840
35841case "$ans" in
35842 yes)
35843
35844$as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35845
35846esac
35847
35848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
35849$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
35850# Check whether --enable-nist was given.
35851if test "${enable_nist+set}" = set; then :
35852  enableval=$enable_nist; ans=$enableval
35853else
35854  ans=no
35855
35856fi
35857
35858
35859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35860$as_echo "$ans" >&6; }
35861
35862case "$ans" in
35863 yes)
35864
35865$as_echo "#define LOCKCLOCK 1" >>confdefs.h
35866 ;;
35867esac
35868
35869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
35870$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
35871# Check whether --enable-ntp-signd was given.
35872if test "${enable_ntp_signd+set}" = set; then :
35873  enableval=$enable_ntp_signd; ans=$enableval
35874else
35875  ans=no
35876
35877fi
35878
35879
35880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35881$as_echo "$ans" >&6; }
35882
35883case "$ans" in
35884 no)
35885    ntp_signd_path=
35886    ;;
35887 yes)
35888    ntp_signd_path=/var/run/ntp_signd
35889    ;;
35890 *)
35891    ntp_signd_path="$ans"
35892esac
35893
35894case "$ntp_signd_path" in
35895 '')
35896    ;;
35897 *)
35898
35899$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
35900
35901
35902cat >>confdefs.h <<_ACEOF
35903#define NTP_SIGND_PATH "$ntp_signd_path"
35904_ACEOF
35905
35906    ;;
35907esac
35908
35909for ac_header in libscf.h
35910do :
35911  ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
35912if test "x$ac_cv_header_libscf_h" = xyes; then :
35913  cat >>confdefs.h <<_ACEOF
35914#define HAVE_LIBSCF_H 1
35915_ACEOF
35916
35917fi
35918
35919done
35920
35921LSCF=
35922case "$ac_cv_header_libscf_h" in
35923 yes)
35924    LSCF='-lscf'
35925esac
35926
35927
35928
35929
35930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
35931$as_echo_n "checking for struct sockaddr_storage... " >&6; }
35932if ${ntp_cv_sockaddr_storage+:} false; then :
35933  $as_echo_n "(cached) " >&6
35934else
35935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35936/* end confdefs.h.  */
35937
35938		#ifdef HAVE_SYS_TYPES_H
35939		# include <sys/types.h>
35940		#endif
35941		#ifdef HAVE_SYS_SOCKET_H
35942		# include <sys/socket.h>
35943		#endif
35944		#ifdef HAVE_NETINET_IN_H
35945		# include <netinet/in.h>
35946		#endif
35947
35948int
35949main ()
35950{
35951
35952		struct sockaddr_storage n;
35953
35954
35955  ;
35956  return 0;
35957}
35958_ACEOF
35959if ac_fn_c_try_compile "$LINENO"; then :
35960  ntp_cv_sockaddr_storage=yes
35961else
35962  ntp_cv_sockaddr_storage=no
35963
35964fi
35965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35966
35967fi
35968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
35969$as_echo "$ntp_cv_sockaddr_storage" >&6; }
35970case "$ntp_cv_sockaddr_storage" in
35971 yes)
35972
35973$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35974
35975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
35976$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
35977if ${ntp_cv_have___ss_family+:} false; then :
35978  $as_echo_n "(cached) " >&6
35979else
35980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981/* end confdefs.h.  */
35982
35983		    #ifdef HAVE_SYS_TYPES_H
35984		    # include <sys/types.h>
35985		    #endif
35986		    #ifdef HAVE_SYS_SOCKET_H
35987		    # include <sys/socket.h>
35988		    #endif
35989		    #ifdef HAVE_NETINET_IN_H
35990		    # include <netinet/in.h>
35991		    #endif
35992
35993int
35994main ()
35995{
35996
35997		    struct sockaddr_storage s;
35998		    s.__ss_family = 1;
35999
36000
36001  ;
36002  return 0;
36003}
36004_ACEOF
36005if ac_fn_c_try_compile "$LINENO"; then :
36006  ntp_cv_have___ss_family=yes
36007else
36008  ntp_cv_have___ss_family=no
36009
36010fi
36011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36012
36013fi
36014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36015$as_echo "$ntp_cv_have___ss_family" >&6; }
36016    case "$ntp_cv_have___ss_family" in
36017     yes)
36018
36019$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36020
36021    esac
36022
36023esac
36024
36025
36026#
36027# Look for in_port_t.
36028#
36029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36030$as_echo_n "checking for in_port_t... " >&6; }
36031if ${isc_cv_have_in_port_t+:} false; then :
36032  $as_echo_n "(cached) " >&6
36033else
36034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36035/* end confdefs.h.  */
36036
36037		#include <sys/types.h>
36038		#include <netinet/in.h>
36039
36040int
36041main ()
36042{
36043
36044		in_port_t port = 25;
36045		return (0);
36046
36047
36048  ;
36049  return 0;
36050}
36051_ACEOF
36052if ac_fn_c_try_compile "$LINENO"; then :
36053  isc_cv_have_in_port_t=yes
36054else
36055  isc_cv_have_in_port_t=no
36056
36057fi
36058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36059
36060fi
36061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36062$as_echo "$isc_cv_have_in_port_t" >&6; }
36063case "$isc_cv_have_in_port_t" in
36064 no)
36065
36066$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36067
36068esac
36069
36070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36071$as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36072if ${ntp_cv_getsockname_socklen_type+:} false; then :
36073  $as_echo_n "(cached) " >&6
36074else
36075
36076    getsockname_socklen_type_found=no
36077    for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36078	for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36079	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36080/* end confdefs.h.  */
36081
36082			#ifdef HAVE_SYS_TYPES_H
36083			# include <sys/types.h>
36084			#endif
36085			#ifdef HAVE_SYS_SOCKET_H
36086			# include <sys/socket.h>
36087			#endif
36088
36089int
36090main ()
36091{
36092
36093			extern
36094			getsockname(int, $getsockname_arg2,
36095				$ntp_cv_getsockname_socklen_type *);
36096
36097
36098  ;
36099  return 0;
36100}
36101_ACEOF
36102if ac_fn_c_try_compile "$LINENO"; then :
36103  getsockname_socklen_type_found=yes ; break 2
36104fi
36105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36106	done
36107    done
36108    case "$getsockname_socklen_type_found" in
36109     no)
36110	ntp_cv_getsockname_socklen_type='socklen_t'
36111    esac
36112    { getsockname_arg2=; unset getsockname_arg2;}
36113    { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36114
36115
36116fi
36117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36118$as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36119
36120cat >>confdefs.h <<_ACEOF
36121#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36122_ACEOF
36123
36124
36125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36126$as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36127if ${isc_cv_platform_havesalen+:} false; then :
36128  $as_echo_n "(cached) " >&6
36129else
36130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36131/* end confdefs.h.  */
36132
36133		#include <sys/types.h>
36134		#include <sys/socket.h>
36135
36136int
36137main ()
36138{
36139
36140		extern struct sockaddr *ps;
36141		return ps->sa_len;
36142
36143
36144  ;
36145  return 0;
36146}
36147_ACEOF
36148if ac_fn_c_try_compile "$LINENO"; then :
36149  isc_cv_platform_havesalen=yes
36150else
36151  isc_cv_platform_havesalen=no
36152
36153fi
36154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36155
36156fi
36157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36158$as_echo "$isc_cv_platform_havesalen" >&6; }
36159case "$isc_cv_platform_havesalen" in
36160 yes)
36161
36162$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36163
36164esac
36165
36166# Check whether --enable-ipv6 was given.
36167if test "${enable_ipv6+set}" = set; then :
36168  enableval=$enable_ipv6;
36169fi
36170
36171
36172case "$enable_ipv6" in
36173 yes|''|autodetect)
36174    case "$host" in
36175     powerpc-ibm-aix4*)
36176	;;
36177     *)
36178
36179$as_echo "#define WANT_IPV6 1" >>confdefs.h
36180
36181	;;
36182    esac
36183    ;;
36184 no)
36185    ;;
36186esac
36187
36188
36189case "$host" in
36190 *-*-darwin*)
36191
36192$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36193
36194esac
36195
36196
36197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36198$as_echo_n "checking for IPv6 structures... " >&6; }
36199if ${isc_cv_found_ipv6+:} false; then :
36200  $as_echo_n "(cached) " >&6
36201else
36202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203/* end confdefs.h.  */
36204
36205		#include <sys/types.h>
36206		#include <sys/socket.h>
36207		#include <netinet/in.h>
36208
36209int
36210main ()
36211{
36212
36213		struct sockaddr_in6 sin6;
36214
36215
36216  ;
36217  return 0;
36218}
36219_ACEOF
36220if ac_fn_c_try_compile "$LINENO"; then :
36221  isc_cv_found_ipv6=yes
36222else
36223  isc_cv_found_ipv6=no
36224
36225fi
36226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36227
36228fi
36229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36230$as_echo "$isc_cv_found_ipv6" >&6; }
36231
36232#
36233# See whether IPv6 support is provided via a Kame add-on.
36234# This is done before other IPv6 linking tests so LIBS is properly set.
36235#
36236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36237$as_echo_n "checking for Kame IPv6 support... " >&6; }
36238
36239# Check whether --with-kame was given.
36240if test "${with_kame+set}" = set; then :
36241  withval=$with_kame; use_kame="$withval"
36242else
36243  use_kame="no"
36244
36245fi
36246
36247case "$use_kame" in
36248 no)
36249    ;;
36250 yes)
36251    kame_path=/usr/local/v6
36252    ;;
36253 *)
36254    kame_path="$use_kame"
36255    ;;
36256esac
36257case "$use_kame" in
36258 no)
36259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36260$as_echo "no" >&6; }
36261    ;;
36262 *)
36263    if test -f $kame_path/lib/libinet6.a; then
36264	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36265$as_echo "$kame_path/lib/libinet6.a" >&6; }
36266	LIBS="-L$kame_path/lib -linet6 $LIBS"
36267    else
36268	as_fn_error $? "$kame_path/lib/libinet6.a not found.
36269
36270Please choose the proper path with the following command:
36271
36272    configure --with-kame=PATH
36273" "$LINENO" 5
36274    fi
36275    ;;
36276esac
36277
36278#
36279# Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36280# Including it on Kame-using platforms is very bad, though, because
36281# Kame uses #error against direct inclusion.   So include it on only
36282# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36283# This is done before the in6_pktinfo check because that's what
36284# netinet6/in6.h is needed for.
36285#
36286case "$host" in
36287 *-bsdi4.[01]*)
36288
36289$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36290
36291    isc_netinet6in6_hack="#include <netinet6/in6.h>"
36292    ;;
36293 *)
36294    isc_netinet6in6_hack=""
36295    ;;
36296esac
36297
36298#
36299# This is similar to the netinet6/in6.h issue.
36300#
36301case "$host" in
36302 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36303
36304$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36305
36306    isc_netinetin6_hack="#include <netinet/in6.h>"
36307    ;;
36308 *)
36309    isc_netinetin6_hack=""
36310    ;;
36311esac
36312
36313
36314case "$isc_cv_found_ipv6" in
36315 yes)
36316
36317$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36318
36319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36320$as_echo_n "checking for in6_pktinfo... " >&6; }
36321if ${isc_cv_have_in6_pktinfo+:} false; then :
36322  $as_echo_n "(cached) " >&6
36323else
36324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36325/* end confdefs.h.  */
36326
36327		    #include <sys/types.h>
36328		    #include <sys/socket.h>
36329		    #include <netinet/in.h>
36330		    $isc_netinetin6_hack
36331		    $isc_netinet6in6_hack
36332
36333int
36334main ()
36335{
36336
36337		    struct in6_pktinfo xyzzy;
36338
36339
36340  ;
36341  return 0;
36342}
36343_ACEOF
36344if ac_fn_c_try_compile "$LINENO"; then :
36345  isc_cv_have_in6_pktinfo=yes
36346else
36347  isc_cv_have_in6_pktinfo=no
36348
36349fi
36350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351
36352fi
36353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36354$as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36355    case "$isc_cv_have_in6_pktinfo" in
36356     yes)
36357
36358$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36359
36360    esac
36361
36362
36363    # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36365$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36366if ${isc_cv_have_sin6_scope_id+:} false; then :
36367  $as_echo_n "(cached) " >&6
36368else
36369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36370/* end confdefs.h.  */
36371
36372		    #include <sys/types.h>
36373		    #include <sys/socket.h>
36374		    #include <netinet/in.h>
36375		    $isc_netinetin6_hack
36376		    $isc_netinet6in6_hack
36377
36378int
36379main ()
36380{
36381
36382		    struct sockaddr_in6 xyzzy;
36383		    xyzzy.sin6_scope_id = 0;
36384
36385
36386  ;
36387  return 0;
36388}
36389_ACEOF
36390if ac_fn_c_try_compile "$LINENO"; then :
36391  isc_cv_have_sin6_scope_id=yes
36392else
36393  isc_cv_have_sin6_scope_id=no
36394
36395fi
36396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36397
36398fi
36399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36400$as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36401
36402    case "$isc_cv_have_sin6_scope_id" in
36403     yes)
36404
36405$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36406
36407    esac
36408esac
36409
36410
36411# We need this check run even without isc_cv_found_ipv6=yes
36412
36413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36414$as_echo_n "checking for in6addr_any... " >&6; }
36415if ${isc_cv_in6addr_any_links+:} false; then :
36416  $as_echo_n "(cached) " >&6
36417else
36418
36419	SAVED_LIBS="$LIBS"
36420	LIBS="$LDADD_LIBNTP $LIBS"
36421	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36422/* end confdefs.h.  */
36423$ac_includes_default
36424		    #include <sys/socket.h>
36425		    #include <netinet/in.h>
36426		    $isc_netinetin6_hack
36427		    $isc_netinet6in6_hack
36428
36429int
36430main ()
36431{
36432
36433		    printf("%x", in6addr_any.s6_addr[15]);
36434
36435
36436  ;
36437  return 0;
36438}
36439_ACEOF
36440if ac_fn_c_try_link "$LINENO"; then :
36441  isc_cv_in6addr_any_links=yes
36442else
36443  isc_cv_in6addr_any_links=no
36444
36445fi
36446rm -f core conftest.err conftest.$ac_objext \
36447    conftest$ac_exeext conftest.$ac_ext
36448	LIBS="$SAVED_LIBS"
36449	{ SAVED_LIBS=; unset SAVED_LIBS;}
36450
36451
36452fi
36453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36454$as_echo "$isc_cv_in6addr_any_links" >&6; }
36455
36456case "$isc_cv_in6addr_any_links" in
36457 no)
36458
36459$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36460
36461esac
36462
36463
36464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36465$as_echo_n "checking for struct if_laddrconf... " >&6; }
36466if ${isc_cv_struct_if_laddrconf+:} false; then :
36467  $as_echo_n "(cached) " >&6
36468else
36469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36470/* end confdefs.h.  */
36471
36472		#include <sys/types.h>
36473		#include <net/if6.h>
36474
36475int
36476main ()
36477{
36478
36479		struct if_laddrconf a;
36480
36481
36482  ;
36483  return 0;
36484}
36485_ACEOF
36486if ac_fn_c_try_compile "$LINENO"; then :
36487  isc_cv_struct_if_laddrconf=yes
36488else
36489  isc_cv_struct_if_laddrconf=no
36490
36491fi
36492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36493
36494fi
36495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36496$as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36497
36498case "$isc_cv_struct_if_laddrconf" in
36499 yes)
36500
36501$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36502
36503esac
36504
36505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36506$as_echo_n "checking for struct if_laddrreq... " >&6; }
36507if ${isc_cv_struct_if_laddrreq+:} false; then :
36508  $as_echo_n "(cached) " >&6
36509else
36510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36511/* end confdefs.h.  */
36512
36513		#include <sys/types.h>
36514		#include <net/if6.h>
36515
36516int
36517main ()
36518{
36519
36520		struct if_laddrreq a;
36521
36522
36523  ;
36524  return 0;
36525}
36526_ACEOF
36527if ac_fn_c_try_compile "$LINENO"; then :
36528  isc_cv_struct_if_laddrreq=yes
36529else
36530  isc_cv_struct_if_laddrreq=no
36531
36532fi
36533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36534
36535fi
36536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36537$as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36538
36539case "$isc_cv_struct_if_laddrreq" in
36540 yes)
36541
36542$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36543
36544esac
36545
36546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36547$as_echo_n "checking for multicast IP support... " >&6; }
36548if ${ntp_cv_multicast+:} false; then :
36549  $as_echo_n "(cached) " >&6
36550else
36551
36552	ntp_cv_multicast=no
36553	case "$host" in
36554	 i386-sequent-sysv4)
36555	    ;;
36556	 *)
36557	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36558/* end confdefs.h.  */
36559
36560			#ifdef HAVE_NETINET_IN_H
36561			# include <netinet/in.h>
36562			#endif
36563
36564int
36565main ()
36566{
36567
36568			struct ip_mreq ipmr;
36569			ipmr.imr_interface.s_addr = 0;
36570
36571
36572  ;
36573  return 0;
36574}
36575_ACEOF
36576if ac_fn_c_try_compile "$LINENO"; then :
36577  ntp_cv_multicast=yes
36578fi
36579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36580	    ;;
36581	esac
36582
36583
36584fi
36585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36586$as_echo "$ntp_cv_multicast" >&6; }
36587case "$ntp_cv_multicast" in
36588 yes)
36589
36590$as_echo "#define MCAST 1" >>confdefs.h
36591
36592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36593$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36594if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36595  $as_echo_n "(cached) " >&6
36596else
36597
36598	    case "$host" in
36599	     *-*-netbsd*|*-*-*linux*)
36600		ntp_cv_typeof_ip_multicast_loop=u_int
36601		;;
36602	     *)
36603		ntp_cv_typeof_ip_multicast_loop=u_char
36604		;;
36605	    esac
36606
36607
36608fi
36609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36610$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36611
36612cat >>confdefs.h <<_ACEOF
36613#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36614_ACEOF
36615
36616esac
36617
36618# Check whether --enable-getifaddrs was given.
36619if test "${enable_getifaddrs+set}" = set; then :
36620  enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36621else
36622  want_getifaddrs="yes"
36623
36624fi
36625
36626
36627case $want_getifaddrs in
36628 glibc)
36629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36630$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36631esac
36632case $want_getifaddrs in
36633 no)
36634    ;;
36635 *)
36636    SAVED_LIBS="$LIBS"
36637    LIBS="$LDADD_LIBNTP $LIBS"
36638    for ac_func in getifaddrs
36639do :
36640  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36641if test "x$ac_cv_func_getifaddrs" = xyes; then :
36642  cat >>confdefs.h <<_ACEOF
36643#define HAVE_GETIFADDRS 1
36644_ACEOF
36645
36646fi
36647done
36648
36649    LIBS="$SAVED_LIBS"
36650    { SAVED_LIBS=; unset SAVED_LIBS;}
36651    ;;
36652esac
36653
36654#
36655# Check for if_nametoindex() for IPv6 scoped addresses support
36656#
36657case "$host" in
36658 *-hp-hpux*)
36659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36660$as_echo_n "checking for library containing if_nametoindex... " >&6; }
36661if ${ac_cv_search_if_nametoindex+:} false; then :
36662  $as_echo_n "(cached) " >&6
36663else
36664  ac_func_search_save_LIBS=$LIBS
36665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36666/* end confdefs.h.  */
36667
36668/* Override any GCC internal prototype to avoid an error.
36669   Use char because int might match the return type of a GCC
36670   builtin and then its argument prototype would still apply.  */
36671#ifdef __cplusplus
36672extern "C"
36673#endif
36674char if_nametoindex ();
36675int
36676main ()
36677{
36678return if_nametoindex ();
36679  ;
36680  return 0;
36681}
36682_ACEOF
36683for ac_lib in '' ipv6; do
36684  if test -z "$ac_lib"; then
36685    ac_res="none required"
36686  else
36687    ac_res=-l$ac_lib
36688    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36689  fi
36690  if ac_fn_c_try_link "$LINENO"; then :
36691  ac_cv_search_if_nametoindex=$ac_res
36692fi
36693rm -f core conftest.err conftest.$ac_objext \
36694    conftest$ac_exeext
36695  if ${ac_cv_search_if_nametoindex+:} false; then :
36696  break
36697fi
36698done
36699if ${ac_cv_search_if_nametoindex+:} false; then :
36700
36701else
36702  ac_cv_search_if_nametoindex=no
36703fi
36704rm conftest.$ac_ext
36705LIBS=$ac_func_search_save_LIBS
36706fi
36707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36708$as_echo "$ac_cv_search_if_nametoindex" >&6; }
36709ac_res=$ac_cv_search_if_nametoindex
36710if test "$ac_res" != no; then :
36711  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36712
36713fi
36714
36715esac
36716SAVED_LIBS="$LIBS"
36717LIBS="$LDADD_LIBNTP $LIBS"
36718for ac_func in if_nametoindex
36719do :
36720  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36721if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36722  cat >>confdefs.h <<_ACEOF
36723#define HAVE_IF_NAMETOINDEX 1
36724_ACEOF
36725
36726fi
36727done
36728
36729LIBS="$SAVED_LIBS"
36730{ SAVED_LIBS=; unset SAVED_LIBS;}
36731case "$ac_cv_func_if_nametoindex" in
36732 yes)
36733
36734$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36735
36736esac
36737
36738
36739
36740
36741#
36742# Look for a sysctl call to get the list of network interfaces.
36743#
36744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36745$as_echo_n "checking for interface list sysctl... " >&6; }
36746if ${ntp_cv_iflist_sysctl+:} false; then :
36747  $as_echo_n "(cached) " >&6
36748else
36749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36750/* end confdefs.h.  */
36751
36752	    #include <sys/param.h>
36753	    #include <sys/sysctl.h>
36754	    #include <sys/socket.h>
36755	    #ifndef NET_RT_IFLIST
36756	    # error
36757	    #endif
36758
36759_ACEOF
36760if ac_fn_c_try_cpp "$LINENO"; then :
36761  ntp_cv_iflist_sysctl=yes
36762else
36763  ntp_cv_iflist_sysctl=no
36764
36765fi
36766rm -f conftest.err conftest.i conftest.$ac_ext
36767
36768fi
36769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36770$as_echo "$ntp_cv_iflist_sysctl" >&6; }
36771case "$ntp_cv_iflist_sysctl" in
36772 yes)
36773
36774$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36775
36776esac
36777
36778###
36779
36780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36781$as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36782# Check whether --enable-saveconfig was given.
36783if test "${enable_saveconfig+set}" = set; then :
36784  enableval=$enable_saveconfig; ntp_ok=$enableval
36785else
36786  ntp_ok=yes
36787
36788fi
36789
36790ntp_saveconfig_enabled=0
36791case "$ntp_ok" in
36792 yes)
36793    ntp_saveconfig_enabled=1
36794
36795$as_echo "#define SAVECONFIG 1" >>confdefs.h
36796
36797    ;;
36798esac
36799 if test x$ntp_saveconfig_enabled = x1; then
36800  SAVECONFIG_ENABLED_TRUE=
36801  SAVECONFIG_ENABLED_FALSE='#'
36802else
36803  SAVECONFIG_ENABLED_TRUE='#'
36804  SAVECONFIG_ENABLED_FALSE=
36805fi
36806
36807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36808$as_echo "$ntp_ok" >&6; }
36809
36810###
36811
36812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36813$as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36814# Check whether --enable-leap-smear was given.
36815if test "${enable_leap_smear+set}" = set; then :
36816  enableval=$enable_leap_smear; ntp_ok=$enableval
36817else
36818  ntp_ok=no
36819
36820fi
36821
36822ntp_leap_smear_enabled=0
36823case "$ntp_ok" in
36824 yes)
36825    ntp_leap_smear_enabled=1
36826
36827$as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36828
36829
36830    HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36831    ;;
36832esac
36833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36834$as_echo "$ntp_ok" >&6; }
36835
36836
36837# We may not need have_unity
36838have_unity=false
36839# Extract the first word of "ruby", so it can be a program name with args.
36840set dummy ruby; ac_word=$2
36841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36842$as_echo_n "checking for $ac_word... " >&6; }
36843if ${ac_cv_path_PATH_RUBY+:} false; then :
36844  $as_echo_n "(cached) " >&6
36845else
36846  case $PATH_RUBY in
36847  [\\/]* | ?:[\\/]*)
36848  ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
36849  ;;
36850  *)
36851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36852for as_dir in $PATH
36853do
36854  IFS=$as_save_IFS
36855  test -z "$as_dir" && as_dir=.
36856    for ac_exec_ext in '' $ac_executable_extensions; do
36857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36858    ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
36859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36860    break 2
36861  fi
36862done
36863  done
36864IFS=$as_save_IFS
36865
36866  ;;
36867esac
36868fi
36869PATH_RUBY=$ac_cv_path_PATH_RUBY
36870if test -n "$PATH_RUBY"; then
36871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
36872$as_echo "$PATH_RUBY" >&6; }
36873else
36874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36875$as_echo "no" >&6; }
36876fi
36877
36878
36879case "$PATH_RUBY" in
36880 /*)
36881    have_unity=true
36882    ;;
36883 *) PATH_RUBY="false"
36884    ;;
36885esac
36886# We may not need UNITYBUILD_AVAILABLE
36887 if $have_unity; then
36888  UNITYBUILD_AVAILABLE_TRUE=
36889  UNITYBUILD_AVAILABLE_FALSE='#'
36890else
36891  UNITYBUILD_AVAILABLE_TRUE='#'
36892  UNITYBUILD_AVAILABLE_FALSE=
36893fi
36894
36895
36896
36897
36898
36899gta=false
36900
36901# Check whether --with-gtest was given.
36902if test "${with_gtest+set}" = set; then :
36903  withval=$with_gtest; try_gtest=$withval
36904else
36905  try_gtest=yes
36906
36907fi
36908
36909case "$try_gtest" in
36910 yes)
36911    # Extract the first word of "gtest-config", so it can be a program name with args.
36912set dummy gtest-config; ac_word=$2
36913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36914$as_echo_n "checking for $ac_word... " >&6; }
36915if ${ac_cv_path_GTEST_CONFIG+:} false; then :
36916  $as_echo_n "(cached) " >&6
36917else
36918  case $GTEST_CONFIG in
36919  [\\/]* | ?:[\\/]*)
36920  ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
36921  ;;
36922  *)
36923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36924for as_dir in $PATH
36925do
36926  IFS=$as_save_IFS
36927  test -z "$as_dir" && as_dir=.
36928    for ac_exec_ext in '' $ac_executable_extensions; do
36929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36930    ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36932    break 2
36933  fi
36934done
36935  done
36936IFS=$as_save_IFS
36937
36938  ;;
36939esac
36940fi
36941GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
36942if test -n "$GTEST_CONFIG"; then
36943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
36944$as_echo "$GTEST_CONFIG" >&6; }
36945else
36946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36947$as_echo "no" >&6; }
36948fi
36949
36950
36951    { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
36952    case x${GTEST_CONFIG} in
36953     x) ;;
36954     *)
36955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
36956$as_echo_n "checking gtest version... " >&6; }
36957	gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
36958	case "$gtest_version_test" in
36959	 toolow*)
36960	    ;;
36961	 *)
36962	    GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
36963	    GTEST_LIBS=`$GTEST_CONFIG --libs`
36964	    GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
36965	    GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
36966
36967
36968
36969
36970	    gta=true
36971	    ;;
36972	esac
36973	gtest_version=`$GTEST_CONFIG --version`
36974	case "$gta" in
36975	 true)
36976	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
36977$as_echo "($gtest_version) ok" >&6; }
36978	    ;;
36979	 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
36980$as_echo "($gtest_version) not ok" >&6; }
36981	    ;;
36982	esac
36983	{ gtest_version_test=; unset gtest_version_test;}
36984	{ gtest_version=; unset gtest_version;}
36985    esac
36986esac
36987 if $gta; then
36988  GTEST_AVAILABLE_TRUE=
36989  GTEST_AVAILABLE_FALSE='#'
36990else
36991  GTEST_AVAILABLE_TRUE='#'
36992  GTEST_AVAILABLE_FALSE=
36993fi
36994
36995
36996
36997
36998###
36999
37000
37001  prefix_NONE=
37002  exec_prefix_NONE=
37003  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37004  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37005  eval ac_define_dir="\"$sysconfdir\""
37006  eval ac_define_dir="\"$ac_define_dir\""
37007  NTP_KEYSDIR="$ac_define_dir"
37008
37009
37010cat >>confdefs.h <<_ACEOF
37011#define NTP_KEYSDIR "$ac_define_dir"
37012_ACEOF
37013
37014  test "$prefix_NONE" && prefix=NONE
37015  test "$exec_prefix_NONE" && exec_prefix=NONE
37016
37017
37018ac_config_files="$ac_config_files Makefile"
37019
37020ac_config_files="$ac_config_files adjtimed/Makefile"
37021
37022ac_config_files="$ac_config_files clockstuff/Makefile"
37023
37024ac_config_files="$ac_config_files include/Makefile"
37025
37026ac_config_files="$ac_config_files include/isc/Makefile"
37027
37028ac_config_files="$ac_config_files kernel/Makefile"
37029
37030ac_config_files="$ac_config_files kernel/sys/Makefile"
37031
37032ac_config_files="$ac_config_files libntp/Makefile"
37033
37034ac_config_files="$ac_config_files libparse/Makefile"
37035
37036ac_config_files="$ac_config_files ntpd/Makefile"
37037
37038ac_config_files="$ac_config_files ntpd/complete.conf"
37039
37040ac_config_files="$ac_config_files ntpdate/Makefile"
37041
37042ac_config_files="$ac_config_files ntpdc/Makefile"
37043
37044ac_config_files="$ac_config_files ntpdc/nl.pl"
37045
37046ac_config_files="$ac_config_files ntpq/Makefile"
37047
37048ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37049
37050ac_config_files="$ac_config_files parseutil/Makefile"
37051
37052ac_config_files="$ac_config_files scripts/Makefile"
37053
37054ac_config_files="$ac_config_files scripts/build/Makefile"
37055
37056ac_config_files="$ac_config_files scripts/build/mkver"
37057
37058ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37059
37060ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37061
37062ac_config_files="$ac_config_files scripts/lib/Makefile"
37063
37064ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37065
37066ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37067
37068ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37069
37070ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37071
37072ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37073
37074ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37075
37076ac_config_files="$ac_config_files scripts/ntpver"
37077
37078ac_config_files="$ac_config_files scripts/plot_summary"
37079
37080ac_config_files="$ac_config_files scripts/summary"
37081
37082ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37083
37084ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37085
37086ac_config_files="$ac_config_files tests/Makefile"
37087
37088ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37089
37090ac_config_files="$ac_config_files tests/libntp/Makefile"
37091
37092ac_config_files="$ac_config_files tests/ntpd/Makefile"
37093
37094ac_config_files="$ac_config_files tests/sandbox/Makefile"
37095
37096ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37097
37098ac_config_files="$ac_config_files util/Makefile"
37099
37100
37101perllibdir="${datadir}/ntp/lib"
37102
37103  prefix_NONE=
37104  exec_prefix_NONE=
37105  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37106  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37107  eval ac_define_dir="\"$perllibdir\""
37108  eval ac_define_dir="\"$ac_define_dir\""
37109  PERLLIBDIR="$ac_define_dir"
37110
37111
37112cat >>confdefs.h <<_ACEOF
37113#define PERLLIBDIR "$ac_define_dir"
37114_ACEOF
37115
37116  test "$prefix_NONE" && prefix=NONE
37117  test "$exec_prefix_NONE" && exec_prefix=NONE
37118
37119
37120calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37121
37122ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37123
37124ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37125
37126ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37127
37128summary_opts="$srcdir/scripts/summary-opts"
37129
37130plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37131
37132
37133
37134
37135subdirs="$subdirs sntp"
37136
37137
37138cat >confcache <<\_ACEOF
37139# This file is a shell script that caches the results of configure
37140# tests run on this system so they can be shared between configure
37141# scripts and configure runs, see configure's option --config-cache.
37142# It is not useful on other systems.  If it contains results you don't
37143# want to keep, you may remove or edit it.
37144#
37145# config.status only pays attention to the cache file if you give it
37146# the --recheck option to rerun configure.
37147#
37148# `ac_cv_env_foo' variables (set or unset) will be overridden when
37149# loading this file, other *unset* `ac_cv_foo' will be assigned the
37150# following values.
37151
37152_ACEOF
37153
37154# The following way of writing the cache mishandles newlines in values,
37155# but we know of no workaround that is simple, portable, and efficient.
37156# So, we kill variables containing newlines.
37157# Ultrix sh set writes to stderr and can't be redirected directly,
37158# and sets the high bit in the cache file unless we assign to the vars.
37159(
37160  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37161    eval ac_val=\$$ac_var
37162    case $ac_val in #(
37163    *${as_nl}*)
37164      case $ac_var in #(
37165      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37167      esac
37168      case $ac_var in #(
37169      _ | IFS | as_nl) ;; #(
37170      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37171      *) { eval $ac_var=; unset $ac_var;} ;;
37172      esac ;;
37173    esac
37174  done
37175
37176  (set) 2>&1 |
37177    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37178    *${as_nl}ac_space=\ *)
37179      # `set' does not quote correctly, so add quotes: double-quote
37180      # substitution turns \\\\ into \\, and sed turns \\ into \.
37181      sed -n \
37182	"s/'/'\\\\''/g;
37183	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37184      ;; #(
37185    *)
37186      # `set' quotes correctly as required by POSIX, so do not add quotes.
37187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37188      ;;
37189    esac |
37190    sort
37191) |
37192  sed '
37193     /^ac_cv_env_/b end
37194     t clear
37195     :clear
37196     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37197     t end
37198     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37199     :end' >>confcache
37200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37201  if test -w "$cache_file"; then
37202    if test "x$cache_file" != "x/dev/null"; then
37203      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37204$as_echo "$as_me: updating cache $cache_file" >&6;}
37205      if test ! -f "$cache_file" || test -h "$cache_file"; then
37206	cat confcache >"$cache_file"
37207      else
37208        case $cache_file in #(
37209        */* | ?:*)
37210	  mv -f confcache "$cache_file"$$ &&
37211	  mv -f "$cache_file"$$ "$cache_file" ;; #(
37212        *)
37213	  mv -f confcache "$cache_file" ;;
37214	esac
37215      fi
37216    fi
37217  else
37218    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37219$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37220  fi
37221fi
37222rm -f confcache
37223
37224test "x$prefix" = xNONE && prefix=$ac_default_prefix
37225# Let make expand exec_prefix.
37226test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37227
37228DEFS=-DHAVE_CONFIG_H
37229
37230ac_libobjs=
37231ac_ltlibobjs=
37232U=
37233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37234  # 1. Remove the extension, and $U if already installed.
37235  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37236  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37237  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37238  #    will be set to the directory where LIBOBJS objects are built.
37239  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37240  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37241done
37242LIBOBJS=$ac_libobjs
37243
37244LTLIBOBJS=$ac_ltlibobjs
37245
37246
37247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37248$as_echo_n "checking that generated files are newer than configure... " >&6; }
37249   if test -n "$am_sleep_pid"; then
37250     # Hide warnings about reused PIDs.
37251     wait $am_sleep_pid 2>/dev/null
37252   fi
37253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37254$as_echo "done" >&6; }
37255 if test -n "$EXEEXT"; then
37256  am__EXEEXT_TRUE=
37257  am__EXEEXT_FALSE='#'
37258else
37259  am__EXEEXT_TRUE='#'
37260  am__EXEEXT_FALSE=
37261fi
37262
37263if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37264  as_fn_error $? "conditional \"AMDEP\" was never defined.
37265Usually this means the macro was only invoked conditionally." "$LINENO" 5
37266fi
37267if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37268  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37269Usually this means the macro was only invoked conditionally." "$LINENO" 5
37270fi
37271if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37272  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37273Usually this means the macro was only invoked conditionally." "$LINENO" 5
37274fi
37275
37276if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37277  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37278Usually this means the macro was only invoked conditionally." "$LINENO" 5
37279fi
37280if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37281  as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37282Usually this means the macro was only invoked conditionally." "$LINENO" 5
37283fi
37284if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37285  as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37286Usually this means the macro was only invoked conditionally." "$LINENO" 5
37287fi
37288if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37289  as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37290Usually this means the macro was only invoked conditionally." "$LINENO" 5
37291fi
37292if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37293  as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37294Usually this means the macro was only invoked conditionally." "$LINENO" 5
37295fi
37296if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37297  as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37298Usually this means the macro was only invoked conditionally." "$LINENO" 5
37299fi
37300if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37301  as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37302Usually this means the macro was only invoked conditionally." "$LINENO" 5
37303fi
37304if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37305  as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37306Usually this means the macro was only invoked conditionally." "$LINENO" 5
37307fi
37308if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37309  as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37310Usually this means the macro was only invoked conditionally." "$LINENO" 5
37311fi
37312if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37313  as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37314Usually this means the macro was only invoked conditionally." "$LINENO" 5
37315fi
37316if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37317  as_fn_error $? "conditional \"PTHREADS\" was never defined.
37318Usually this means the macro was only invoked conditionally." "$LINENO" 5
37319fi
37320if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37321  as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37322Usually this means the macro was only invoked conditionally." "$LINENO" 5
37323fi
37324if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37325  as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37326Usually this means the macro was only invoked conditionally." "$LINENO" 5
37327fi
37328if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37329  as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37330Usually this means the macro was only invoked conditionally." "$LINENO" 5
37331fi
37332if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37333  as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37334Usually this means the macro was only invoked conditionally." "$LINENO" 5
37335fi
37336
37337: "${CONFIG_STATUS=./config.status}"
37338ac_write_fail=0
37339ac_clean_files_save=$ac_clean_files
37340ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37341{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37342$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37343as_write_fail=0
37344cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37345#! $SHELL
37346# Generated by $as_me.
37347# Run this file to recreate the current configuration.
37348# Compiler output produced by configure, useful for debugging
37349# configure, is in config.log if it exists.
37350
37351debug=false
37352ac_cs_recheck=false
37353ac_cs_silent=false
37354
37355SHELL=\${CONFIG_SHELL-$SHELL}
37356export SHELL
37357_ASEOF
37358cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37359## -------------------- ##
37360## M4sh Initialization. ##
37361## -------------------- ##
37362
37363# Be more Bourne compatible
37364DUALCASE=1; export DUALCASE # for MKS sh
37365if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37366  emulate sh
37367  NULLCMD=:
37368  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37369  # is contrary to our usage.  Disable this feature.
37370  alias -g '${1+"$@"}'='"$@"'
37371  setopt NO_GLOB_SUBST
37372else
37373  case `(set -o) 2>/dev/null` in #(
37374  *posix*) :
37375    set -o posix ;; #(
37376  *) :
37377     ;;
37378esac
37379fi
37380
37381
37382as_nl='
37383'
37384export as_nl
37385# Printing a long string crashes Solaris 7 /usr/bin/printf.
37386as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37387as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37388as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37389# Prefer a ksh shell builtin over an external printf program on Solaris,
37390# but without wasting forks for bash or zsh.
37391if test -z "$BASH_VERSION$ZSH_VERSION" \
37392    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37393  as_echo='print -r --'
37394  as_echo_n='print -rn --'
37395elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37396  as_echo='printf %s\n'
37397  as_echo_n='printf %s'
37398else
37399  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37400    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37401    as_echo_n='/usr/ucb/echo -n'
37402  else
37403    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37404    as_echo_n_body='eval
37405      arg=$1;
37406      case $arg in #(
37407      *"$as_nl"*)
37408	expr "X$arg" : "X\\(.*\\)$as_nl";
37409	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37410      esac;
37411      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37412    '
37413    export as_echo_n_body
37414    as_echo_n='sh -c $as_echo_n_body as_echo'
37415  fi
37416  export as_echo_body
37417  as_echo='sh -c $as_echo_body as_echo'
37418fi
37419
37420# The user is always right.
37421if test "${PATH_SEPARATOR+set}" != set; then
37422  PATH_SEPARATOR=:
37423  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37424    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37425      PATH_SEPARATOR=';'
37426  }
37427fi
37428
37429
37430# IFS
37431# We need space, tab and new line, in precisely that order.  Quoting is
37432# there to prevent editors from complaining about space-tab.
37433# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37434# splitting by setting IFS to empty value.)
37435IFS=" ""	$as_nl"
37436
37437# Find who we are.  Look in the path if we contain no directory separator.
37438as_myself=
37439case $0 in #((
37440  *[\\/]* ) as_myself=$0 ;;
37441  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37442for as_dir in $PATH
37443do
37444  IFS=$as_save_IFS
37445  test -z "$as_dir" && as_dir=.
37446    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37447  done
37448IFS=$as_save_IFS
37449
37450     ;;
37451esac
37452# We did not find ourselves, most probably we were run as `sh COMMAND'
37453# in which case we are not to be found in the path.
37454if test "x$as_myself" = x; then
37455  as_myself=$0
37456fi
37457if test ! -f "$as_myself"; then
37458  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37459  exit 1
37460fi
37461
37462# Unset variables that we do not need and which cause bugs (e.g. in
37463# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37464# suppresses any "Segmentation fault" message there.  '((' could
37465# trigger a bug in pdksh 5.2.14.
37466for as_var in BASH_ENV ENV MAIL MAILPATH
37467do eval test x\${$as_var+set} = xset \
37468  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37469done
37470PS1='$ '
37471PS2='> '
37472PS4='+ '
37473
37474# NLS nuisances.
37475LC_ALL=C
37476export LC_ALL
37477LANGUAGE=C
37478export LANGUAGE
37479
37480# CDPATH.
37481(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37482
37483
37484# as_fn_error STATUS ERROR [LINENO LOG_FD]
37485# ----------------------------------------
37486# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37487# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37488# script with STATUS, using 1 if that was 0.
37489as_fn_error ()
37490{
37491  as_status=$1; test $as_status -eq 0 && as_status=1
37492  if test "$4"; then
37493    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37494    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37495  fi
37496  $as_echo "$as_me: error: $2" >&2
37497  as_fn_exit $as_status
37498} # as_fn_error
37499
37500
37501# as_fn_set_status STATUS
37502# -----------------------
37503# Set $? to STATUS, without forking.
37504as_fn_set_status ()
37505{
37506  return $1
37507} # as_fn_set_status
37508
37509# as_fn_exit STATUS
37510# -----------------
37511# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37512as_fn_exit ()
37513{
37514  set +e
37515  as_fn_set_status $1
37516  exit $1
37517} # as_fn_exit
37518
37519# as_fn_unset VAR
37520# ---------------
37521# Portably unset VAR.
37522as_fn_unset ()
37523{
37524  { eval $1=; unset $1;}
37525}
37526as_unset=as_fn_unset
37527# as_fn_append VAR VALUE
37528# ----------------------
37529# Append the text in VALUE to the end of the definition contained in VAR. Take
37530# advantage of any shell optimizations that allow amortized linear growth over
37531# repeated appends, instead of the typical quadratic growth present in naive
37532# implementations.
37533if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37534  eval 'as_fn_append ()
37535  {
37536    eval $1+=\$2
37537  }'
37538else
37539  as_fn_append ()
37540  {
37541    eval $1=\$$1\$2
37542  }
37543fi # as_fn_append
37544
37545# as_fn_arith ARG...
37546# ------------------
37547# Perform arithmetic evaluation on the ARGs, and store the result in the
37548# global $as_val. Take advantage of shells that can avoid forks. The arguments
37549# must be portable across $(()) and expr.
37550if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37551  eval 'as_fn_arith ()
37552  {
37553    as_val=$(( $* ))
37554  }'
37555else
37556  as_fn_arith ()
37557  {
37558    as_val=`expr "$@" || test $? -eq 1`
37559  }
37560fi # as_fn_arith
37561
37562
37563if expr a : '\(a\)' >/dev/null 2>&1 &&
37564   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37565  as_expr=expr
37566else
37567  as_expr=false
37568fi
37569
37570if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37571  as_basename=basename
37572else
37573  as_basename=false
37574fi
37575
37576if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37577  as_dirname=dirname
37578else
37579  as_dirname=false
37580fi
37581
37582as_me=`$as_basename -- "$0" ||
37583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37584	 X"$0" : 'X\(//\)$' \| \
37585	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37586$as_echo X/"$0" |
37587    sed '/^.*\/\([^/][^/]*\)\/*$/{
37588	    s//\1/
37589	    q
37590	  }
37591	  /^X\/\(\/\/\)$/{
37592	    s//\1/
37593	    q
37594	  }
37595	  /^X\/\(\/\).*/{
37596	    s//\1/
37597	    q
37598	  }
37599	  s/.*/./; q'`
37600
37601# Avoid depending upon Character Ranges.
37602as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37603as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37604as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37605as_cr_digits='0123456789'
37606as_cr_alnum=$as_cr_Letters$as_cr_digits
37607
37608ECHO_C= ECHO_N= ECHO_T=
37609case `echo -n x` in #(((((
37610-n*)
37611  case `echo 'xy\c'` in
37612  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37613  xy)  ECHO_C='\c';;
37614  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37615       ECHO_T='	';;
37616  esac;;
37617*)
37618  ECHO_N='-n';;
37619esac
37620
37621rm -f conf$$ conf$$.exe conf$$.file
37622if test -d conf$$.dir; then
37623  rm -f conf$$.dir/conf$$.file
37624else
37625  rm -f conf$$.dir
37626  mkdir conf$$.dir 2>/dev/null
37627fi
37628if (echo >conf$$.file) 2>/dev/null; then
37629  if ln -s conf$$.file conf$$ 2>/dev/null; then
37630    as_ln_s='ln -s'
37631    # ... but there are two gotchas:
37632    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37633    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37634    # In both cases, we have to default to `cp -pR'.
37635    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37636      as_ln_s='cp -pR'
37637  elif ln conf$$.file conf$$ 2>/dev/null; then
37638    as_ln_s=ln
37639  else
37640    as_ln_s='cp -pR'
37641  fi
37642else
37643  as_ln_s='cp -pR'
37644fi
37645rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37646rmdir conf$$.dir 2>/dev/null
37647
37648
37649# as_fn_mkdir_p
37650# -------------
37651# Create "$as_dir" as a directory, including parents if necessary.
37652as_fn_mkdir_p ()
37653{
37654
37655  case $as_dir in #(
37656  -*) as_dir=./$as_dir;;
37657  esac
37658  test -d "$as_dir" || eval $as_mkdir_p || {
37659    as_dirs=
37660    while :; do
37661      case $as_dir in #(
37662      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37663      *) as_qdir=$as_dir;;
37664      esac
37665      as_dirs="'$as_qdir' $as_dirs"
37666      as_dir=`$as_dirname -- "$as_dir" ||
37667$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37668	 X"$as_dir" : 'X\(//\)[^/]' \| \
37669	 X"$as_dir" : 'X\(//\)$' \| \
37670	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37671$as_echo X"$as_dir" |
37672    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37673	    s//\1/
37674	    q
37675	  }
37676	  /^X\(\/\/\)[^/].*/{
37677	    s//\1/
37678	    q
37679	  }
37680	  /^X\(\/\/\)$/{
37681	    s//\1/
37682	    q
37683	  }
37684	  /^X\(\/\).*/{
37685	    s//\1/
37686	    q
37687	  }
37688	  s/.*/./; q'`
37689      test -d "$as_dir" && break
37690    done
37691    test -z "$as_dirs" || eval "mkdir $as_dirs"
37692  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37693
37694
37695} # as_fn_mkdir_p
37696if mkdir -p . 2>/dev/null; then
37697  as_mkdir_p='mkdir -p "$as_dir"'
37698else
37699  test -d ./-p && rmdir ./-p
37700  as_mkdir_p=false
37701fi
37702
37703
37704# as_fn_executable_p FILE
37705# -----------------------
37706# Test if FILE is an executable regular file.
37707as_fn_executable_p ()
37708{
37709  test -f "$1" && test -x "$1"
37710} # as_fn_executable_p
37711as_test_x='test -x'
37712as_executable_p=as_fn_executable_p
37713
37714# Sed expression to map a string onto a valid CPP name.
37715as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37716
37717# Sed expression to map a string onto a valid variable name.
37718as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37719
37720
37721exec 6>&1
37722## ----------------------------------- ##
37723## Main body of $CONFIG_STATUS script. ##
37724## ----------------------------------- ##
37725_ASEOF
37726test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37727
37728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37729# Save the log message, to keep $0 and so on meaningful, and to
37730# report actual input values of CONFIG_FILES etc. instead of their
37731# values after options handling.
37732ac_log="
37733This file was extended by ntp $as_me 4.2.8p3, which was
37734generated by GNU Autoconf 2.69.  Invocation command line was
37735
37736  CONFIG_FILES    = $CONFIG_FILES
37737  CONFIG_HEADERS  = $CONFIG_HEADERS
37738  CONFIG_LINKS    = $CONFIG_LINKS
37739  CONFIG_COMMANDS = $CONFIG_COMMANDS
37740  $ $0 $@
37741
37742on `(hostname || uname -n) 2>/dev/null | sed 1q`
37743"
37744
37745_ACEOF
37746
37747case $ac_config_files in *"
37748"*) set x $ac_config_files; shift; ac_config_files=$*;;
37749esac
37750
37751case $ac_config_headers in *"
37752"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37753esac
37754
37755
37756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37757# Files that config.status was made for.
37758config_files="$ac_config_files"
37759config_headers="$ac_config_headers"
37760config_commands="$ac_config_commands"
37761
37762_ACEOF
37763
37764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37765ac_cs_usage="\
37766\`$as_me' instantiates files and other configuration actions
37767from templates according to the current configuration.  Unless the files
37768and actions are specified as TAGs, all are instantiated by default.
37769
37770Usage: $0 [OPTION]... [TAG]...
37771
37772  -h, --help       print this help, then exit
37773  -V, --version    print version number and configuration settings, then exit
37774      --config     print configuration, then exit
37775  -q, --quiet, --silent
37776                   do not print progress messages
37777  -d, --debug      don't remove temporary files
37778      --recheck    update $as_me by reconfiguring in the same conditions
37779      --file=FILE[:TEMPLATE]
37780                   instantiate the configuration file FILE
37781      --header=FILE[:TEMPLATE]
37782                   instantiate the configuration header FILE
37783
37784Configuration files:
37785$config_files
37786
37787Configuration headers:
37788$config_headers
37789
37790Configuration commands:
37791$config_commands
37792
37793Report bugs to <http://bugs.ntp.org./>.
37794ntp home page: <http://www.ntp.org./>."
37795
37796_ACEOF
37797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37798ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37799ac_cs_version="\\
37800ntp config.status 4.2.8p3
37801configured by $0, generated by GNU Autoconf 2.69,
37802  with options \\"\$ac_cs_config\\"
37803
37804Copyright (C) 2012 Free Software Foundation, Inc.
37805This config.status script is free software; the Free Software Foundation
37806gives unlimited permission to copy, distribute and modify it."
37807
37808ac_pwd='$ac_pwd'
37809srcdir='$srcdir'
37810INSTALL='$INSTALL'
37811MKDIR_P='$MKDIR_P'
37812AWK='$AWK'
37813test -n "\$AWK" || AWK=awk
37814_ACEOF
37815
37816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37817# The default lists apply if the user does not specify any file.
37818ac_need_defaults=:
37819while test $# != 0
37820do
37821  case $1 in
37822  --*=?*)
37823    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37824    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37825    ac_shift=:
37826    ;;
37827  --*=)
37828    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37829    ac_optarg=
37830    ac_shift=:
37831    ;;
37832  *)
37833    ac_option=$1
37834    ac_optarg=$2
37835    ac_shift=shift
37836    ;;
37837  esac
37838
37839  case $ac_option in
37840  # Handling of the options.
37841  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37842    ac_cs_recheck=: ;;
37843  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37844    $as_echo "$ac_cs_version"; exit ;;
37845  --config | --confi | --conf | --con | --co | --c )
37846    $as_echo "$ac_cs_config"; exit ;;
37847  --debug | --debu | --deb | --de | --d | -d )
37848    debug=: ;;
37849  --file | --fil | --fi | --f )
37850    $ac_shift
37851    case $ac_optarg in
37852    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37853    '') as_fn_error $? "missing file argument" ;;
37854    esac
37855    as_fn_append CONFIG_FILES " '$ac_optarg'"
37856    ac_need_defaults=false;;
37857  --header | --heade | --head | --hea )
37858    $ac_shift
37859    case $ac_optarg in
37860    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37861    esac
37862    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37863    ac_need_defaults=false;;
37864  --he | --h)
37865    # Conflict between --help and --header
37866    as_fn_error $? "ambiguous option: \`$1'
37867Try \`$0 --help' for more information.";;
37868  --help | --hel | -h )
37869    $as_echo "$ac_cs_usage"; exit ;;
37870  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37871  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37872    ac_cs_silent=: ;;
37873
37874  # This is an error.
37875  -*) as_fn_error $? "unrecognized option: \`$1'
37876Try \`$0 --help' for more information." ;;
37877
37878  *) as_fn_append ac_config_targets " $1"
37879     ac_need_defaults=false ;;
37880
37881  esac
37882  shift
37883done
37884
37885ac_configure_extra_args=
37886
37887if $ac_cs_silent; then
37888  exec 6>/dev/null
37889  ac_configure_extra_args="$ac_configure_extra_args --silent"
37890fi
37891
37892_ACEOF
37893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37894if \$ac_cs_recheck; then
37895  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37896  shift
37897  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37898  CONFIG_SHELL='$SHELL'
37899  export CONFIG_SHELL
37900  exec "\$@"
37901fi
37902
37903_ACEOF
37904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37905exec 5>>config.log
37906{
37907  echo
37908  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37909## Running $as_me. ##
37910_ASBOX
37911  $as_echo "$ac_log"
37912} >&5
37913
37914_ACEOF
37915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37916#
37917# INIT-COMMANDS
37918#
37919AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37920
37921
37922# The HP-UX ksh and POSIX shell print the target directory to stdout
37923# if CDPATH is set.
37924(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37925
37926sed_quote_subst='$sed_quote_subst'
37927double_quote_subst='$double_quote_subst'
37928delay_variable_subst='$delay_variable_subst'
37929enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37930macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37931macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37932enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37933pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37934enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37935SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37936ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37937host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37938host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37939host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37940build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37941build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37942build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37943SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37944Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37945GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37946EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37947FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37948LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37949NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37950LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37951max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37952ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37953exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37954lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37955lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37956lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37957lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37958lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37961OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37962deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37963file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37964file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37965want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37966DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37967sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37968AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37969AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37970archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37971STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37972RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37973old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37974old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37975old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37976lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37977CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37978CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37979compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37980GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37981lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37982lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37983lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37984lt_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"`'
37985nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37986lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37987objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37988MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37989lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37990lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37991lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37992lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37993lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37994need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37995MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37996DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37997NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37998LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37999OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38000OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38001libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38002shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38003extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38004archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38005enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38006export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38007whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38008compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38009old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38010old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38011archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38012archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38013module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38014module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38015with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38016allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38017no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38018hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38019hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38020hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38021hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38022hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38023hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38024hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38025hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38026inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38027link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38028always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38029export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38030exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38031include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38032prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38033postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38034file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38035variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38036need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38037need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38038version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38039runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38040shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38041shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38042libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38043library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38044soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38045install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38046postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38047postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38048finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38049finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38050hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38051sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38052sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38053hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38054enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38055enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38056enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38057old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38058striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38059compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38060predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38061postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38062predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38063postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38064compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38065LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38066reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38067reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38068old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38069compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38070GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38071lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38072lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38073lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38074lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38075lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38076archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38077enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38078export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38079whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38080compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38081old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38082old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38083archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38084archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38085module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38086module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38087with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38088allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38089no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38090hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38091hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38092hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38093hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38094hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38095hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38096hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38097hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38098inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38099link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38100always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38101export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38102exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38103include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38104prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38105postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38106file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38107hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38108compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38109predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38110postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38111predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38112postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38113compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38114
38115LTCC='$LTCC'
38116LTCFLAGS='$LTCFLAGS'
38117compiler='$compiler_DEFAULT'
38118
38119# A function that is used when there is no print builtin or printf.
38120func_fallback_echo ()
38121{
38122  eval 'cat <<_LTECHO_EOF
38123\$1
38124_LTECHO_EOF'
38125}
38126
38127# Quote evaled strings.
38128for var in SHELL \
38129ECHO \
38130SED \
38131GREP \
38132EGREP \
38133FGREP \
38134LD \
38135NM \
38136LN_S \
38137lt_SP2NL \
38138lt_NL2SP \
38139reload_flag \
38140OBJDUMP \
38141deplibs_check_method \
38142file_magic_cmd \
38143file_magic_glob \
38144want_nocaseglob \
38145DLLTOOL \
38146sharedlib_from_linklib_cmd \
38147AR \
38148AR_FLAGS \
38149archiver_list_spec \
38150STRIP \
38151RANLIB \
38152CC \
38153CFLAGS \
38154compiler \
38155lt_cv_sys_global_symbol_pipe \
38156lt_cv_sys_global_symbol_to_cdecl \
38157lt_cv_sys_global_symbol_to_c_name_address \
38158lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38159nm_file_list_spec \
38160lt_prog_compiler_no_builtin_flag \
38161lt_prog_compiler_pic \
38162lt_prog_compiler_wl \
38163lt_prog_compiler_static \
38164lt_cv_prog_compiler_c_o \
38165need_locks \
38166MANIFEST_TOOL \
38167DSYMUTIL \
38168NMEDIT \
38169LIPO \
38170OTOOL \
38171OTOOL64 \
38172shrext_cmds \
38173export_dynamic_flag_spec \
38174whole_archive_flag_spec \
38175compiler_needs_object \
38176with_gnu_ld \
38177allow_undefined_flag \
38178no_undefined_flag \
38179hardcode_libdir_flag_spec \
38180hardcode_libdir_flag_spec_ld \
38181hardcode_libdir_separator \
38182exclude_expsyms \
38183include_expsyms \
38184file_list_spec \
38185variables_saved_for_relink \
38186libname_spec \
38187library_names_spec \
38188soname_spec \
38189install_override_mode \
38190finish_eval \
38191old_striplib \
38192striplib \
38193compiler_lib_search_dirs \
38194predep_objects \
38195postdep_objects \
38196predeps \
38197postdeps \
38198compiler_lib_search_path \
38199LD_CXX \
38200reload_flag_CXX \
38201compiler_CXX \
38202lt_prog_compiler_no_builtin_flag_CXX \
38203lt_prog_compiler_pic_CXX \
38204lt_prog_compiler_wl_CXX \
38205lt_prog_compiler_static_CXX \
38206lt_cv_prog_compiler_c_o_CXX \
38207export_dynamic_flag_spec_CXX \
38208whole_archive_flag_spec_CXX \
38209compiler_needs_object_CXX \
38210with_gnu_ld_CXX \
38211allow_undefined_flag_CXX \
38212no_undefined_flag_CXX \
38213hardcode_libdir_flag_spec_CXX \
38214hardcode_libdir_flag_spec_ld_CXX \
38215hardcode_libdir_separator_CXX \
38216exclude_expsyms_CXX \
38217include_expsyms_CXX \
38218file_list_spec_CXX \
38219compiler_lib_search_dirs_CXX \
38220predep_objects_CXX \
38221postdep_objects_CXX \
38222predeps_CXX \
38223postdeps_CXX \
38224compiler_lib_search_path_CXX; do
38225    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38226    *[\\\\\\\`\\"\\\$]*)
38227      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38228      ;;
38229    *)
38230      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38231      ;;
38232    esac
38233done
38234
38235# Double-quote double-evaled strings.
38236for var in reload_cmds \
38237old_postinstall_cmds \
38238old_postuninstall_cmds \
38239old_archive_cmds \
38240extract_expsyms_cmds \
38241old_archive_from_new_cmds \
38242old_archive_from_expsyms_cmds \
38243archive_cmds \
38244archive_expsym_cmds \
38245module_cmds \
38246module_expsym_cmds \
38247export_symbols_cmds \
38248prelink_cmds \
38249postlink_cmds \
38250postinstall_cmds \
38251postuninstall_cmds \
38252finish_cmds \
38253sys_lib_search_path_spec \
38254sys_lib_dlsearch_path_spec \
38255reload_cmds_CXX \
38256old_archive_cmds_CXX \
38257old_archive_from_new_cmds_CXX \
38258old_archive_from_expsyms_cmds_CXX \
38259archive_cmds_CXX \
38260archive_expsym_cmds_CXX \
38261module_cmds_CXX \
38262module_expsym_cmds_CXX \
38263export_symbols_cmds_CXX \
38264prelink_cmds_CXX \
38265postlink_cmds_CXX; do
38266    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38267    *[\\\\\\\`\\"\\\$]*)
38268      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38269      ;;
38270    *)
38271      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38272      ;;
38273    esac
38274done
38275
38276ac_aux_dir='$ac_aux_dir'
38277xsi_shell='$xsi_shell'
38278lt_shell_append='$lt_shell_append'
38279
38280# See if we are running on zsh, and set the options which allow our
38281# commands through without removal of \ escapes INIT.
38282if test -n "\${ZSH_VERSION+set}" ; then
38283   setopt NO_GLOB_SUBST
38284fi
38285
38286
38287    PACKAGE='$PACKAGE'
38288    VERSION='$VERSION'
38289    TIMESTAMP='$TIMESTAMP'
38290    RM='$RM'
38291    ofile='$ofile'
38292
38293
38294
38295
38296
38297
38298_ACEOF
38299
38300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38301
38302# Handling of arguments.
38303for ac_config_target in $ac_config_targets
38304do
38305  case $ac_config_target in
38306    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38307    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38308    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38309    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38310    "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38311    "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38312    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38313    "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38314    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38315    "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38316    "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38317    "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38318    "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38319    "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38320    "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38321    "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38322    "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38323    "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38324    "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38325    "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38326    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38327    "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38328    "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38329    "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38330    "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38331    "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38332    "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38333    "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38334    "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38335    "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38336    "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38337    "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38338    "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38339    "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38340    "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38341    "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38342    "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38343    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38344    "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38345    "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38346    "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38347    "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38348    "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38349    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38350
38351  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38352  esac
38353done
38354
38355
38356# If the user did not use the arguments to specify the items to instantiate,
38357# then the envvar interface is used.  Set only those that are not.
38358# We use the long form for the default assignment because of an extremely
38359# bizarre bug on SunOS 4.1.3.
38360if $ac_need_defaults; then
38361  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38362  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38363  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38364fi
38365
38366# Have a temporary directory for convenience.  Make it in the build tree
38367# simply because there is no reason against having it here, and in addition,
38368# creating and moving files from /tmp can sometimes cause problems.
38369# Hook for its removal unless debugging.
38370# Note that there is a small window in which the directory will not be cleaned:
38371# after its creation but before its name has been assigned to `$tmp'.
38372$debug ||
38373{
38374  tmp= ac_tmp=
38375  trap 'exit_status=$?
38376  : "${ac_tmp:=$tmp}"
38377  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38378' 0
38379  trap 'as_fn_exit 1' 1 2 13 15
38380}
38381# Create a (secure) tmp directory for tmp files.
38382
38383{
38384  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38385  test -d "$tmp"
38386}  ||
38387{
38388  tmp=./conf$$-$RANDOM
38389  (umask 077 && mkdir "$tmp")
38390} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38391ac_tmp=$tmp
38392
38393# Set up the scripts for CONFIG_FILES section.
38394# No need to generate them if there are no CONFIG_FILES.
38395# This happens for instance with `./config.status config.h'.
38396if test -n "$CONFIG_FILES"; then
38397
38398if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38399  ac_cs_awk_getline=:
38400  ac_cs_awk_pipe_init=
38401  ac_cs_awk_read_file='
38402      while ((getline aline < (F[key])) > 0)
38403	print(aline)
38404      close(F[key])'
38405  ac_cs_awk_pipe_fini=
38406else
38407  ac_cs_awk_getline=false
38408  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38409  ac_cs_awk_read_file='
38410      print "|#_!!_#|"
38411      print "cat " F[key] " &&"
38412      '$ac_cs_awk_pipe_init
38413  # The final `:' finishes the AND list.
38414  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38415fi
38416ac_cr=`echo X | tr X '\015'`
38417# On cygwin, bash can eat \r inside `` if the user requested igncr.
38418# But we know of no other shell where ac_cr would be empty at this
38419# point, so we can use a bashism as a fallback.
38420if test "x$ac_cr" = x; then
38421  eval ac_cr=\$\'\\r\'
38422fi
38423ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38424if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38425  ac_cs_awk_cr='\\r'
38426else
38427  ac_cs_awk_cr=$ac_cr
38428fi
38429
38430echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38431_ACEOF
38432
38433# Create commands to substitute file output variables.
38434{
38435  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38436  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38437  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38438  echo "_ACAWK" &&
38439  echo "_ACEOF"
38440} >conf$$files.sh &&
38441. ./conf$$files.sh ||
38442  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38443rm -f conf$$files.sh
38444
38445{
38446  echo "cat >conf$$subs.awk <<_ACEOF" &&
38447  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38448  echo "_ACEOF"
38449} >conf$$subs.sh ||
38450  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38451ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38452ac_delim='%!_!# '
38453for ac_last_try in false false false false false :; do
38454  . ./conf$$subs.sh ||
38455    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38456
38457  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38458  if test $ac_delim_n = $ac_delim_num; then
38459    break
38460  elif $ac_last_try; then
38461    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38462  else
38463    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38464  fi
38465done
38466rm -f conf$$subs.sh
38467
38468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38469cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38470_ACEOF
38471sed -n '
38472h
38473s/^/S["/; s/!.*/"]=/
38474p
38475g
38476s/^[^!]*!//
38477:repl
38478t repl
38479s/'"$ac_delim"'$//
38480t delim
38481:nl
38482h
38483s/\(.\{148\}\)..*/\1/
38484t more1
38485s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38486p
38487n
38488b repl
38489:more1
38490s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38491p
38492g
38493s/.\{148\}//
38494t nl
38495:delim
38496h
38497s/\(.\{148\}\)..*/\1/
38498t more2
38499s/["\\]/\\&/g; s/^/"/; s/$/"/
38500p
38501b
38502:more2
38503s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38504p
38505g
38506s/.\{148\}//
38507t delim
38508' <conf$$subs.awk | sed '
38509/^[^""]/{
38510  N
38511  s/\n//
38512}
38513' >>$CONFIG_STATUS || ac_write_fail=1
38514rm -f conf$$subs.awk
38515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38516_ACAWK
38517cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38518  for (key in S) S_is_set[key] = 1
38519  FS = ""
38520  \$ac_cs_awk_pipe_init
38521}
38522{
38523  line = $ 0
38524  nfields = split(line, field, "@")
38525  substed = 0
38526  len = length(field[1])
38527  for (i = 2; i < nfields; i++) {
38528    key = field[i]
38529    keylen = length(key)
38530    if (S_is_set[key]) {
38531      value = S[key]
38532      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38533      len += length(value) + length(field[++i])
38534      substed = 1
38535    } else
38536      len += 1 + keylen
38537  }
38538  if (nfields == 3 && !substed) {
38539    key = field[2]
38540    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
38541      \$ac_cs_awk_read_file
38542      next
38543    }
38544  }
38545  print line
38546}
38547\$ac_cs_awk_pipe_fini
38548_ACAWK
38549_ACEOF
38550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38551if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38552  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38553else
38554  cat
38555fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38556  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38557_ACEOF
38558
38559# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38560# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38561# trailing colons and then remove the whole line if VPATH becomes empty
38562# (actually we leave an empty line to preserve line numbers).
38563if test "x$srcdir" = x.; then
38564  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38565h
38566s///
38567s/^/:/
38568s/[	 ]*$/:/
38569s/:\$(srcdir):/:/g
38570s/:\${srcdir}:/:/g
38571s/:@srcdir@:/:/g
38572s/^:*//
38573s/:*$//
38574x
38575s/\(=[	 ]*\).*/\1/
38576G
38577s/\n//
38578s/^[^=]*=[	 ]*$//
38579}'
38580fi
38581
38582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38583fi # test -n "$CONFIG_FILES"
38584
38585# Set up the scripts for CONFIG_HEADERS section.
38586# No need to generate them if there are no CONFIG_HEADERS.
38587# This happens for instance with `./config.status Makefile'.
38588if test -n "$CONFIG_HEADERS"; then
38589cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38590BEGIN {
38591_ACEOF
38592
38593# Transform confdefs.h into an awk script `defines.awk', embedded as
38594# here-document in config.status, that substitutes the proper values into
38595# config.h.in to produce config.h.
38596
38597# Create a delimiter string that does not exist in confdefs.h, to ease
38598# handling of long lines.
38599ac_delim='%!_!# '
38600for ac_last_try in false false :; do
38601  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38602  if test -z "$ac_tt"; then
38603    break
38604  elif $ac_last_try; then
38605    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38606  else
38607    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38608  fi
38609done
38610
38611# For the awk script, D is an array of macro values keyed by name,
38612# likewise P contains macro parameters if any.  Preserve backslash
38613# newline sequences.
38614
38615ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38616sed -n '
38617s/.\{148\}/&'"$ac_delim"'/g
38618t rset
38619:rset
38620s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38621t def
38622d
38623:def
38624s/\\$//
38625t bsnl
38626s/["\\]/\\&/g
38627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38628D["\1"]=" \3"/p
38629s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38630d
38631:bsnl
38632s/["\\]/\\&/g
38633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38634D["\1"]=" \3\\\\\\n"\\/p
38635t cont
38636s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38637t cont
38638d
38639:cont
38640n
38641s/.\{148\}/&'"$ac_delim"'/g
38642t clear
38643:clear
38644s/\\$//
38645t bsnlc
38646s/["\\]/\\&/g; s/^/"/; s/$/"/p
38647d
38648:bsnlc
38649s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38650b cont
38651' <confdefs.h | sed '
38652s/'"$ac_delim"'/"\\\
38653"/g' >>$CONFIG_STATUS || ac_write_fail=1
38654
38655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38656  for (key in D) D_is_set[key] = 1
38657  FS = ""
38658}
38659/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38660  line = \$ 0
38661  split(line, arg, " ")
38662  if (arg[1] == "#") {
38663    defundef = arg[2]
38664    mac1 = arg[3]
38665  } else {
38666    defundef = substr(arg[1], 2)
38667    mac1 = arg[2]
38668  }
38669  split(mac1, mac2, "(") #)
38670  macro = mac2[1]
38671  prefix = substr(line, 1, index(line, defundef) - 1)
38672  if (D_is_set[macro]) {
38673    # Preserve the white space surrounding the "#".
38674    print prefix "define", macro P[macro] D[macro]
38675    next
38676  } else {
38677    # Replace #undef with comments.  This is necessary, for example,
38678    # in the case of _POSIX_SOURCE, which is predefined and required
38679    # on some systems where configure will not decide to define it.
38680    if (defundef == "undef") {
38681      print "/*", prefix defundef, macro, "*/"
38682      next
38683    }
38684  }
38685}
38686{ print }
38687_ACAWK
38688_ACEOF
38689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38690  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38691fi # test -n "$CONFIG_HEADERS"
38692
38693
38694eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38695shift
38696for ac_tag
38697do
38698  case $ac_tag in
38699  :[FHLC]) ac_mode=$ac_tag; continue;;
38700  esac
38701  case $ac_mode$ac_tag in
38702  :[FHL]*:*);;
38703  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38704  :[FH]-) ac_tag=-:-;;
38705  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38706  esac
38707  ac_save_IFS=$IFS
38708  IFS=:
38709  set x $ac_tag
38710  IFS=$ac_save_IFS
38711  shift
38712  ac_file=$1
38713  shift
38714
38715  case $ac_mode in
38716  :L) ac_source=$1;;
38717  :[FH])
38718    ac_file_inputs=
38719    for ac_f
38720    do
38721      case $ac_f in
38722      -) ac_f="$ac_tmp/stdin";;
38723      *) # Look for the file first in the build tree, then in the source tree
38724	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38725	 # because $ac_f cannot contain `:'.
38726	 test -f "$ac_f" ||
38727	   case $ac_f in
38728	   [\\/$]*) false;;
38729	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38730	   esac ||
38731	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38732      esac
38733      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38734      as_fn_append ac_file_inputs " '$ac_f'"
38735    done
38736
38737    # Let's still pretend it is `configure' which instantiates (i.e., don't
38738    # use $as_me), people would be surprised to read:
38739    #    /* config.h.  Generated by config.status.  */
38740    configure_input='Generated from '`
38741	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38742	`' by configure.'
38743    if test x"$ac_file" != x-; then
38744      configure_input="$ac_file.  $configure_input"
38745      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38746$as_echo "$as_me: creating $ac_file" >&6;}
38747    fi
38748    # Neutralize special characters interpreted by sed in replacement strings.
38749    case $configure_input in #(
38750    *\&* | *\|* | *\\* )
38751       ac_sed_conf_input=`$as_echo "$configure_input" |
38752       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38753    *) ac_sed_conf_input=$configure_input;;
38754    esac
38755
38756    case $ac_tag in
38757    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38758      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38759    esac
38760    ;;
38761  esac
38762
38763  ac_dir=`$as_dirname -- "$ac_file" ||
38764$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38765	 X"$ac_file" : 'X\(//\)[^/]' \| \
38766	 X"$ac_file" : 'X\(//\)$' \| \
38767	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38768$as_echo X"$ac_file" |
38769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38770	    s//\1/
38771	    q
38772	  }
38773	  /^X\(\/\/\)[^/].*/{
38774	    s//\1/
38775	    q
38776	  }
38777	  /^X\(\/\/\)$/{
38778	    s//\1/
38779	    q
38780	  }
38781	  /^X\(\/\).*/{
38782	    s//\1/
38783	    q
38784	  }
38785	  s/.*/./; q'`
38786  as_dir="$ac_dir"; as_fn_mkdir_p
38787  ac_builddir=.
38788
38789case "$ac_dir" in
38790.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38791*)
38792  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38793  # A ".." for each directory in $ac_dir_suffix.
38794  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38795  case $ac_top_builddir_sub in
38796  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38797  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38798  esac ;;
38799esac
38800ac_abs_top_builddir=$ac_pwd
38801ac_abs_builddir=$ac_pwd$ac_dir_suffix
38802# for backward compatibility:
38803ac_top_builddir=$ac_top_build_prefix
38804
38805case $srcdir in
38806  .)  # We are building in place.
38807    ac_srcdir=.
38808    ac_top_srcdir=$ac_top_builddir_sub
38809    ac_abs_top_srcdir=$ac_pwd ;;
38810  [\\/]* | ?:[\\/]* )  # Absolute name.
38811    ac_srcdir=$srcdir$ac_dir_suffix;
38812    ac_top_srcdir=$srcdir
38813    ac_abs_top_srcdir=$srcdir ;;
38814  *) # Relative name.
38815    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38816    ac_top_srcdir=$ac_top_build_prefix$srcdir
38817    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38818esac
38819ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38820
38821
38822  case $ac_mode in
38823  :F)
38824  #
38825  # CONFIG_FILE
38826  #
38827
38828  case $INSTALL in
38829  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38830  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38831  esac
38832  ac_MKDIR_P=$MKDIR_P
38833  case $MKDIR_P in
38834  [\\/$]* | ?:[\\/]* ) ;;
38835  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38836  esac
38837_ACEOF
38838
38839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38840# If the template does not know about datarootdir, expand it.
38841# FIXME: This hack should be removed a few years after 2.60.
38842ac_datarootdir_hack=; ac_datarootdir_seen=
38843ac_sed_dataroot='
38844/datarootdir/ {
38845  p
38846  q
38847}
38848/@datadir@/p
38849/@docdir@/p
38850/@infodir@/p
38851/@localedir@/p
38852/@mandir@/p'
38853case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38854*datarootdir*) ac_datarootdir_seen=yes;;
38855*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38857$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38858_ACEOF
38859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38860  ac_datarootdir_hack='
38861  s&@datadir@&$datadir&g
38862  s&@docdir@&$docdir&g
38863  s&@infodir@&$infodir&g
38864  s&@localedir@&$localedir&g
38865  s&@mandir@&$mandir&g
38866  s&\\\${datarootdir}&$datarootdir&g' ;;
38867esac
38868_ACEOF
38869
38870# Neutralize VPATH when `$srcdir' = `.'.
38871# Shell code in configure.ac might set extrasub.
38872# FIXME: do we really want to maintain this feature?
38873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38874ac_sed_extra="$ac_vpsub
38875$extrasub
38876_ACEOF
38877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38878:t
38879/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38880s|@configure_input@|$ac_sed_conf_input|;t t
38881s&@top_builddir@&$ac_top_builddir_sub&;t t
38882s&@top_build_prefix@&$ac_top_build_prefix&;t t
38883s&@srcdir@&$ac_srcdir&;t t
38884s&@abs_srcdir@&$ac_abs_srcdir&;t t
38885s&@top_srcdir@&$ac_top_srcdir&;t t
38886s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38887s&@builddir@&$ac_builddir&;t t
38888s&@abs_builddir@&$ac_abs_builddir&;t t
38889s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38890s&@INSTALL@&$ac_INSTALL&;t t
38891s&@MKDIR_P@&$ac_MKDIR_P&;t t
38892$ac_datarootdir_hack
38893"
38894eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
38895if $ac_cs_awk_getline; then
38896  $AWK -f "$ac_tmp/subs.awk"
38897else
38898  $AWK -f "$ac_tmp/subs.awk" | $SHELL
38899fi \
38900  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38901
38902test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38903  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38904  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38905      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38906  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38907which seems to be undefined.  Please make sure it is defined" >&5
38908$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38909which seems to be undefined.  Please make sure it is defined" >&2;}
38910
38911  rm -f "$ac_tmp/stdin"
38912  case $ac_file in
38913  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38914  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38915  esac \
38916  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38917 ;;
38918  :H)
38919  #
38920  # CONFIG_HEADER
38921  #
38922  if test x"$ac_file" != x-; then
38923    {
38924      $as_echo "/* $configure_input  */" \
38925      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38926    } >"$ac_tmp/config.h" \
38927      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38928    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38929      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38930$as_echo "$as_me: $ac_file is unchanged" >&6;}
38931    else
38932      rm -f "$ac_file"
38933      mv "$ac_tmp/config.h" "$ac_file" \
38934	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38935    fi
38936  else
38937    $as_echo "/* $configure_input  */" \
38938      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38939      || as_fn_error $? "could not create -" "$LINENO" 5
38940  fi
38941# Compute "$ac_file"'s index in $config_headers.
38942_am_arg="$ac_file"
38943_am_stamp_count=1
38944for _am_header in $config_headers :; do
38945  case $_am_header in
38946    $_am_arg | $_am_arg:* )
38947      break ;;
38948    * )
38949      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38950  esac
38951done
38952echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38953$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38954	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38955	 X"$_am_arg" : 'X\(//\)$' \| \
38956	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38957$as_echo X"$_am_arg" |
38958    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38959	    s//\1/
38960	    q
38961	  }
38962	  /^X\(\/\/\)[^/].*/{
38963	    s//\1/
38964	    q
38965	  }
38966	  /^X\(\/\/\)$/{
38967	    s//\1/
38968	    q
38969	  }
38970	  /^X\(\/\).*/{
38971	    s//\1/
38972	    q
38973	  }
38974	  s/.*/./; q'`/stamp-h$_am_stamp_count
38975 ;;
38976
38977  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38978$as_echo "$as_me: executing $ac_file commands" >&6;}
38979 ;;
38980  esac
38981
38982
38983  case $ac_file$ac_mode in
38984    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38985  # Older Autoconf quotes --file arguments for eval, but not when files
38986  # are listed without --file.  Let's play safe and only enable the eval
38987  # if we detect the quoting.
38988  case $CONFIG_FILES in
38989  *\'*) eval set x "$CONFIG_FILES" ;;
38990  *)   set x $CONFIG_FILES ;;
38991  esac
38992  shift
38993  for mf
38994  do
38995    # Strip MF so we end up with the name of the file.
38996    mf=`echo "$mf" | sed -e 's/:.*$//'`
38997    # Check whether this is an Automake generated Makefile or not.
38998    # We used to match only the files named 'Makefile.in', but
38999    # some people rename them; so instead we look at the file content.
39000    # Grep'ing the first line is not enough: some people post-process
39001    # each Makefile.in and add a new line on top of each file to say so.
39002    # Grep'ing the whole file is not good either: AIX grep has a line
39003    # limit of 2048, but all sed's we know have understand at least 4000.
39004    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39005      dirpart=`$as_dirname -- "$mf" ||
39006$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39007	 X"$mf" : 'X\(//\)[^/]' \| \
39008	 X"$mf" : 'X\(//\)$' \| \
39009	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39010$as_echo X"$mf" |
39011    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39012	    s//\1/
39013	    q
39014	  }
39015	  /^X\(\/\/\)[^/].*/{
39016	    s//\1/
39017	    q
39018	  }
39019	  /^X\(\/\/\)$/{
39020	    s//\1/
39021	    q
39022	  }
39023	  /^X\(\/\).*/{
39024	    s//\1/
39025	    q
39026	  }
39027	  s/.*/./; q'`
39028    else
39029      continue
39030    fi
39031    # Extract the definition of DEPDIR, am__include, and am__quote
39032    # from the Makefile without running 'make'.
39033    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39034    test -z "$DEPDIR" && continue
39035    am__include=`sed -n 's/^am__include = //p' < "$mf"`
39036    test -z "$am__include" && continue
39037    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39038    # Find all dependency output files, they are included files with
39039    # $(DEPDIR) in their names.  We invoke sed twice because it is the
39040    # simplest approach to changing $(DEPDIR) to its actual value in the
39041    # expansion.
39042    for file in `sed -n "
39043      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39044	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39045      # Make sure the directory exists.
39046      test -f "$dirpart/$file" && continue
39047      fdir=`$as_dirname -- "$file" ||
39048$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39049	 X"$file" : 'X\(//\)[^/]' \| \
39050	 X"$file" : 'X\(//\)$' \| \
39051	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39052$as_echo X"$file" |
39053    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39054	    s//\1/
39055	    q
39056	  }
39057	  /^X\(\/\/\)[^/].*/{
39058	    s//\1/
39059	    q
39060	  }
39061	  /^X\(\/\/\)$/{
39062	    s//\1/
39063	    q
39064	  }
39065	  /^X\(\/\).*/{
39066	    s//\1/
39067	    q
39068	  }
39069	  s/.*/./; q'`
39070      as_dir=$dirpart/$fdir; as_fn_mkdir_p
39071      # echo "creating $dirpart/$file"
39072      echo '# dummy' > "$dirpart/$file"
39073    done
39074  done
39075}
39076 ;;
39077    "libtool":C)
39078
39079    # See if we are running on zsh, and set the options which allow our
39080    # commands through without removal of \ escapes.
39081    if test -n "${ZSH_VERSION+set}" ; then
39082      setopt NO_GLOB_SUBST
39083    fi
39084
39085    cfgfile="${ofile}T"
39086    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39087    $RM "$cfgfile"
39088
39089    cat <<_LT_EOF >> "$cfgfile"
39090#! $SHELL
39091
39092# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39093# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39094# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39095# NOTE: Changes made to this file will be lost: look at ltmain.sh.
39096#
39097#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39098#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39099#                 Inc.
39100#   Written by Gordon Matzigkeit, 1996
39101#
39102#   This file is part of GNU Libtool.
39103#
39104# GNU Libtool is free software; you can redistribute it and/or
39105# modify it under the terms of the GNU General Public License as
39106# published by the Free Software Foundation; either version 2 of
39107# the License, or (at your option) any later version.
39108#
39109# As a special exception to the GNU General Public License,
39110# if you distribute this file as part of a program or library that
39111# is built using GNU Libtool, you may include this file under the
39112# same distribution terms that you use for the rest of that program.
39113#
39114# GNU Libtool is distributed in the hope that it will be useful,
39115# but WITHOUT ANY WARRANTY; without even the implied warranty of
39116# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39117# GNU General Public License for more details.
39118#
39119# You should have received a copy of the GNU General Public License
39120# along with GNU Libtool; see the file COPYING.  If not, a copy
39121# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39122# obtained by writing to the Free Software Foundation, Inc.,
39123# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39124
39125
39126# The names of the tagged configurations supported by this script.
39127available_tags="CXX "
39128
39129# ### BEGIN LIBTOOL CONFIG
39130
39131# Whether or not to build shared libraries.
39132build_libtool_libs=$enable_shared
39133
39134# Which release of libtool.m4 was used?
39135macro_version=$macro_version
39136macro_revision=$macro_revision
39137
39138# Whether or not to build static libraries.
39139build_old_libs=$enable_static
39140
39141# What type of objects to build.
39142pic_mode=$pic_mode
39143
39144# Whether or not to optimize for fast installation.
39145fast_install=$enable_fast_install
39146
39147# Shell to use when invoking shell scripts.
39148SHELL=$lt_SHELL
39149
39150# An echo program that protects backslashes.
39151ECHO=$lt_ECHO
39152
39153# The host system.
39154host_alias=$host_alias
39155host=$host
39156host_os=$host_os
39157
39158# The build system.
39159build_alias=$build_alias
39160build=$build
39161build_os=$build_os
39162
39163# A sed program that does not truncate output.
39164SED=$lt_SED
39165
39166# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39167Xsed="\$SED -e 1s/^X//"
39168
39169# A grep program that handles long lines.
39170GREP=$lt_GREP
39171
39172# An ERE matcher.
39173EGREP=$lt_EGREP
39174
39175# A literal string matcher.
39176FGREP=$lt_FGREP
39177
39178# A BSD- or MS-compatible name lister.
39179NM=$lt_NM
39180
39181# Whether we need soft or hard links.
39182LN_S=$lt_LN_S
39183
39184# What is the maximum length of a command?
39185max_cmd_len=$max_cmd_len
39186
39187# Object file suffix (normally "o").
39188objext=$ac_objext
39189
39190# Executable file suffix (normally "").
39191exeext=$exeext
39192
39193# whether the shell understands "unset".
39194lt_unset=$lt_unset
39195
39196# turn spaces into newlines.
39197SP2NL=$lt_lt_SP2NL
39198
39199# turn newlines into spaces.
39200NL2SP=$lt_lt_NL2SP
39201
39202# convert \$build file names to \$host format.
39203to_host_file_cmd=$lt_cv_to_host_file_cmd
39204
39205# convert \$build files to toolchain format.
39206to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39207
39208# An object symbol dumper.
39209OBJDUMP=$lt_OBJDUMP
39210
39211# Method to check whether dependent libraries are shared objects.
39212deplibs_check_method=$lt_deplibs_check_method
39213
39214# Command to use when deplibs_check_method = "file_magic".
39215file_magic_cmd=$lt_file_magic_cmd
39216
39217# How to find potential files when deplibs_check_method = "file_magic".
39218file_magic_glob=$lt_file_magic_glob
39219
39220# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39221want_nocaseglob=$lt_want_nocaseglob
39222
39223# DLL creation program.
39224DLLTOOL=$lt_DLLTOOL
39225
39226# Command to associate shared and link libraries.
39227sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39228
39229# The archiver.
39230AR=$lt_AR
39231
39232# Flags to create an archive.
39233AR_FLAGS=$lt_AR_FLAGS
39234
39235# How to feed a file listing to the archiver.
39236archiver_list_spec=$lt_archiver_list_spec
39237
39238# A symbol stripping program.
39239STRIP=$lt_STRIP
39240
39241# Commands used to install an old-style archive.
39242RANLIB=$lt_RANLIB
39243old_postinstall_cmds=$lt_old_postinstall_cmds
39244old_postuninstall_cmds=$lt_old_postuninstall_cmds
39245
39246# Whether to use a lock for old archive extraction.
39247lock_old_archive_extraction=$lock_old_archive_extraction
39248
39249# A C compiler.
39250LTCC=$lt_CC
39251
39252# LTCC compiler flags.
39253LTCFLAGS=$lt_CFLAGS
39254
39255# Take the output of nm and produce a listing of raw symbols and C names.
39256global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39257
39258# Transform the output of nm in a proper C declaration.
39259global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39260
39261# Transform the output of nm in a C name address pair.
39262global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39263
39264# Transform the output of nm in a C name address pair when lib prefix is needed.
39265global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39266
39267# Specify filename containing input files for \$NM.
39268nm_file_list_spec=$lt_nm_file_list_spec
39269
39270# The root where to search for dependent libraries,and in which our libraries should be installed.
39271lt_sysroot=$lt_sysroot
39272
39273# The name of the directory that contains temporary libtool files.
39274objdir=$objdir
39275
39276# Used to examine libraries when file_magic_cmd begins with "file".
39277MAGIC_CMD=$MAGIC_CMD
39278
39279# Must we lock files when doing compilation?
39280need_locks=$lt_need_locks
39281
39282# Manifest tool.
39283MANIFEST_TOOL=$lt_MANIFEST_TOOL
39284
39285# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39286DSYMUTIL=$lt_DSYMUTIL
39287
39288# Tool to change global to local symbols on Mac OS X.
39289NMEDIT=$lt_NMEDIT
39290
39291# Tool to manipulate fat objects and archives on Mac OS X.
39292LIPO=$lt_LIPO
39293
39294# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39295OTOOL=$lt_OTOOL
39296
39297# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39298OTOOL64=$lt_OTOOL64
39299
39300# Old archive suffix (normally "a").
39301libext=$libext
39302
39303# Shared library suffix (normally ".so").
39304shrext_cmds=$lt_shrext_cmds
39305
39306# The commands to extract the exported symbol list from a shared archive.
39307extract_expsyms_cmds=$lt_extract_expsyms_cmds
39308
39309# Variables whose values should be saved in libtool wrapper scripts and
39310# restored at link time.
39311variables_saved_for_relink=$lt_variables_saved_for_relink
39312
39313# Do we need the "lib" prefix for modules?
39314need_lib_prefix=$need_lib_prefix
39315
39316# Do we need a version for libraries?
39317need_version=$need_version
39318
39319# Library versioning type.
39320version_type=$version_type
39321
39322# Shared library runtime path variable.
39323runpath_var=$runpath_var
39324
39325# Shared library path variable.
39326shlibpath_var=$shlibpath_var
39327
39328# Is shlibpath searched before the hard-coded library search path?
39329shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39330
39331# Format of library name prefix.
39332libname_spec=$lt_libname_spec
39333
39334# List of archive names.  First name is the real one, the rest are links.
39335# The last name is the one that the linker finds with -lNAME
39336library_names_spec=$lt_library_names_spec
39337
39338# The coded name of the library, if different from the real name.
39339soname_spec=$lt_soname_spec
39340
39341# Permission mode override for installation of shared libraries.
39342install_override_mode=$lt_install_override_mode
39343
39344# Command to use after installation of a shared archive.
39345postinstall_cmds=$lt_postinstall_cmds
39346
39347# Command to use after uninstallation of a shared archive.
39348postuninstall_cmds=$lt_postuninstall_cmds
39349
39350# Commands used to finish a libtool library installation in a directory.
39351finish_cmds=$lt_finish_cmds
39352
39353# As "finish_cmds", except a single script fragment to be evaled but
39354# not shown.
39355finish_eval=$lt_finish_eval
39356
39357# Whether we should hardcode library paths into libraries.
39358hardcode_into_libs=$hardcode_into_libs
39359
39360# Compile-time system search path for libraries.
39361sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39362
39363# Run-time system search path for libraries.
39364sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39365
39366# Whether dlopen is supported.
39367dlopen_support=$enable_dlopen
39368
39369# Whether dlopen of programs is supported.
39370dlopen_self=$enable_dlopen_self
39371
39372# Whether dlopen of statically linked programs is supported.
39373dlopen_self_static=$enable_dlopen_self_static
39374
39375# Commands to strip libraries.
39376old_striplib=$lt_old_striplib
39377striplib=$lt_striplib
39378
39379
39380# The linker used to build libraries.
39381LD=$lt_LD
39382
39383# How to create reloadable object files.
39384reload_flag=$lt_reload_flag
39385reload_cmds=$lt_reload_cmds
39386
39387# Commands used to build an old-style archive.
39388old_archive_cmds=$lt_old_archive_cmds
39389
39390# A language specific compiler.
39391CC=$lt_compiler
39392
39393# Is the compiler the GNU compiler?
39394with_gcc=$GCC
39395
39396# Compiler flag to turn off builtin functions.
39397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39398
39399# Additional compiler flags for building library objects.
39400pic_flag=$lt_lt_prog_compiler_pic
39401
39402# How to pass a linker flag through the compiler.
39403wl=$lt_lt_prog_compiler_wl
39404
39405# Compiler flag to prevent dynamic linking.
39406link_static_flag=$lt_lt_prog_compiler_static
39407
39408# Does compiler simultaneously support -c and -o options?
39409compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39410
39411# Whether or not to add -lc for building shared libraries.
39412build_libtool_need_lc=$archive_cmds_need_lc
39413
39414# Whether or not to disallow shared libs when runtime libs are static.
39415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39416
39417# Compiler flag to allow reflexive dlopens.
39418export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39419
39420# Compiler flag to generate shared objects directly from archives.
39421whole_archive_flag_spec=$lt_whole_archive_flag_spec
39422
39423# Whether the compiler copes with passing no objects directly.
39424compiler_needs_object=$lt_compiler_needs_object
39425
39426# Create an old-style archive from a shared archive.
39427old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39428
39429# Create a temporary old-style archive to link instead of a shared archive.
39430old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39431
39432# Commands used to build a shared archive.
39433archive_cmds=$lt_archive_cmds
39434archive_expsym_cmds=$lt_archive_expsym_cmds
39435
39436# Commands used to build a loadable module if different from building
39437# a shared archive.
39438module_cmds=$lt_module_cmds
39439module_expsym_cmds=$lt_module_expsym_cmds
39440
39441# Whether we are building with GNU ld or not.
39442with_gnu_ld=$lt_with_gnu_ld
39443
39444# Flag that allows shared libraries with undefined symbols to be built.
39445allow_undefined_flag=$lt_allow_undefined_flag
39446
39447# Flag that enforces no undefined symbols.
39448no_undefined_flag=$lt_no_undefined_flag
39449
39450# Flag to hardcode \$libdir into a binary during linking.
39451# This must work even if \$libdir does not exist
39452hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39453
39454# If ld is used when linking, flag to hardcode \$libdir into a binary
39455# during linking.  This must work even if \$libdir does not exist.
39456hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39457
39458# Whether we need a single "-rpath" flag with a separated argument.
39459hardcode_libdir_separator=$lt_hardcode_libdir_separator
39460
39461# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39462# DIR into the resulting binary.
39463hardcode_direct=$hardcode_direct
39464
39465# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39466# DIR into the resulting binary and the resulting library dependency is
39467# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39468# library is relocated.
39469hardcode_direct_absolute=$hardcode_direct_absolute
39470
39471# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39472# into the resulting binary.
39473hardcode_minus_L=$hardcode_minus_L
39474
39475# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39476# into the resulting binary.
39477hardcode_shlibpath_var=$hardcode_shlibpath_var
39478
39479# Set to "yes" if building a shared library automatically hardcodes DIR
39480# into the library and all subsequent libraries and executables linked
39481# against it.
39482hardcode_automatic=$hardcode_automatic
39483
39484# Set to yes if linker adds runtime paths of dependent libraries
39485# to runtime path list.
39486inherit_rpath=$inherit_rpath
39487
39488# Whether libtool must link a program against all its dependency libraries.
39489link_all_deplibs=$link_all_deplibs
39490
39491# Set to "yes" if exported symbols are required.
39492always_export_symbols=$always_export_symbols
39493
39494# The commands to list exported symbols.
39495export_symbols_cmds=$lt_export_symbols_cmds
39496
39497# Symbols that should not be listed in the preloaded symbols.
39498exclude_expsyms=$lt_exclude_expsyms
39499
39500# Symbols that must always be exported.
39501include_expsyms=$lt_include_expsyms
39502
39503# Commands necessary for linking programs (against libraries) with templates.
39504prelink_cmds=$lt_prelink_cmds
39505
39506# Commands necessary for finishing linking programs.
39507postlink_cmds=$lt_postlink_cmds
39508
39509# Specify filename containing input files.
39510file_list_spec=$lt_file_list_spec
39511
39512# How to hardcode a shared library path into an executable.
39513hardcode_action=$hardcode_action
39514
39515# The directories searched by this compiler when creating a shared library.
39516compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39517
39518# Dependencies to place before and after the objects being linked to
39519# create a shared library.
39520predep_objects=$lt_predep_objects
39521postdep_objects=$lt_postdep_objects
39522predeps=$lt_predeps
39523postdeps=$lt_postdeps
39524
39525# The library search path used internally by the compiler when linking
39526# a shared library.
39527compiler_lib_search_path=$lt_compiler_lib_search_path
39528
39529# ### END LIBTOOL CONFIG
39530
39531_LT_EOF
39532
39533  case $host_os in
39534  aix3*)
39535    cat <<\_LT_EOF >> "$cfgfile"
39536# AIX sometimes has problems with the GCC collect2 program.  For some
39537# reason, if we set the COLLECT_NAMES environment variable, the problems
39538# vanish in a puff of smoke.
39539if test "X${COLLECT_NAMES+set}" != Xset; then
39540  COLLECT_NAMES=
39541  export COLLECT_NAMES
39542fi
39543_LT_EOF
39544    ;;
39545  esac
39546
39547
39548ltmain="$ac_aux_dir/ltmain.sh"
39549
39550
39551  # We use sed instead of cat because bash on DJGPP gets confused if
39552  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39553  # text mode, it properly converts lines to CR/LF.  This bash problem
39554  # is reportedly fixed, but why not run on old versions too?
39555  sed '$q' "$ltmain" >> "$cfgfile" \
39556     || (rm -f "$cfgfile"; exit 1)
39557
39558  if test x"$xsi_shell" = xyes; then
39559  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39560func_dirname ()\
39561{\
39562\    case ${1} in\
39563\      */*) func_dirname_result="${1%/*}${2}" ;;\
39564\      *  ) func_dirname_result="${3}" ;;\
39565\    esac\
39566} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39567  && mv -f "$cfgfile.tmp" "$cfgfile" \
39568    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39569test 0 -eq $? || _lt_function_replace_fail=:
39570
39571
39572  sed -e '/^func_basename ()$/,/^} # func_basename /c\
39573func_basename ()\
39574{\
39575\    func_basename_result="${1##*/}"\
39576} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39577  && mv -f "$cfgfile.tmp" "$cfgfile" \
39578    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39579test 0 -eq $? || _lt_function_replace_fail=:
39580
39581
39582  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39583func_dirname_and_basename ()\
39584{\
39585\    case ${1} in\
39586\      */*) func_dirname_result="${1%/*}${2}" ;;\
39587\      *  ) func_dirname_result="${3}" ;;\
39588\    esac\
39589\    func_basename_result="${1##*/}"\
39590} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39591  && mv -f "$cfgfile.tmp" "$cfgfile" \
39592    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39593test 0 -eq $? || _lt_function_replace_fail=:
39594
39595
39596  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39597func_stripname ()\
39598{\
39599\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39600\    # positional parameters, so assign one to ordinary parameter first.\
39601\    func_stripname_result=${3}\
39602\    func_stripname_result=${func_stripname_result#"${1}"}\
39603\    func_stripname_result=${func_stripname_result%"${2}"}\
39604} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39605  && mv -f "$cfgfile.tmp" "$cfgfile" \
39606    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39607test 0 -eq $? || _lt_function_replace_fail=:
39608
39609
39610  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39611func_split_long_opt ()\
39612{\
39613\    func_split_long_opt_name=${1%%=*}\
39614\    func_split_long_opt_arg=${1#*=}\
39615} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39616  && mv -f "$cfgfile.tmp" "$cfgfile" \
39617    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39618test 0 -eq $? || _lt_function_replace_fail=:
39619
39620
39621  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39622func_split_short_opt ()\
39623{\
39624\    func_split_short_opt_arg=${1#??}\
39625\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39626} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39627  && mv -f "$cfgfile.tmp" "$cfgfile" \
39628    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39629test 0 -eq $? || _lt_function_replace_fail=:
39630
39631
39632  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39633func_lo2o ()\
39634{\
39635\    case ${1} in\
39636\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39637\      *)    func_lo2o_result=${1} ;;\
39638\    esac\
39639} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39640  && mv -f "$cfgfile.tmp" "$cfgfile" \
39641    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39642test 0 -eq $? || _lt_function_replace_fail=:
39643
39644
39645  sed -e '/^func_xform ()$/,/^} # func_xform /c\
39646func_xform ()\
39647{\
39648    func_xform_result=${1%.*}.lo\
39649} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39650  && mv -f "$cfgfile.tmp" "$cfgfile" \
39651    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39652test 0 -eq $? || _lt_function_replace_fail=:
39653
39654
39655  sed -e '/^func_arith ()$/,/^} # func_arith /c\
39656func_arith ()\
39657{\
39658    func_arith_result=$(( $* ))\
39659} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39660  && mv -f "$cfgfile.tmp" "$cfgfile" \
39661    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39662test 0 -eq $? || _lt_function_replace_fail=:
39663
39664
39665  sed -e '/^func_len ()$/,/^} # func_len /c\
39666func_len ()\
39667{\
39668    func_len_result=${#1}\
39669} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39670  && mv -f "$cfgfile.tmp" "$cfgfile" \
39671    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39672test 0 -eq $? || _lt_function_replace_fail=:
39673
39674fi
39675
39676if test x"$lt_shell_append" = xyes; then
39677  sed -e '/^func_append ()$/,/^} # func_append /c\
39678func_append ()\
39679{\
39680    eval "${1}+=\\${2}"\
39681} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39682  && mv -f "$cfgfile.tmp" "$cfgfile" \
39683    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39684test 0 -eq $? || _lt_function_replace_fail=:
39685
39686
39687  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39688func_append_quoted ()\
39689{\
39690\    func_quote_for_eval "${2}"\
39691\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39692} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39693  && mv -f "$cfgfile.tmp" "$cfgfile" \
39694    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39695test 0 -eq $? || _lt_function_replace_fail=:
39696
39697
39698  # Save a `func_append' function call where possible by direct use of '+='
39699  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39700    && mv -f "$cfgfile.tmp" "$cfgfile" \
39701      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39702  test 0 -eq $? || _lt_function_replace_fail=:
39703else
39704  # Save a `func_append' function call even when '+=' is not available
39705  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39706    && mv -f "$cfgfile.tmp" "$cfgfile" \
39707      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39708  test 0 -eq $? || _lt_function_replace_fail=:
39709fi
39710
39711if test x"$_lt_function_replace_fail" = x":"; then
39712  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39713$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39714fi
39715
39716
39717   mv -f "$cfgfile" "$ofile" ||
39718    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39719  chmod +x "$ofile"
39720
39721
39722    cat <<_LT_EOF >> "$ofile"
39723
39724# ### BEGIN LIBTOOL TAG CONFIG: CXX
39725
39726# The linker used to build libraries.
39727LD=$lt_LD_CXX
39728
39729# How to create reloadable object files.
39730reload_flag=$lt_reload_flag_CXX
39731reload_cmds=$lt_reload_cmds_CXX
39732
39733# Commands used to build an old-style archive.
39734old_archive_cmds=$lt_old_archive_cmds_CXX
39735
39736# A language specific compiler.
39737CC=$lt_compiler_CXX
39738
39739# Is the compiler the GNU compiler?
39740with_gcc=$GCC_CXX
39741
39742# Compiler flag to turn off builtin functions.
39743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39744
39745# Additional compiler flags for building library objects.
39746pic_flag=$lt_lt_prog_compiler_pic_CXX
39747
39748# How to pass a linker flag through the compiler.
39749wl=$lt_lt_prog_compiler_wl_CXX
39750
39751# Compiler flag to prevent dynamic linking.
39752link_static_flag=$lt_lt_prog_compiler_static_CXX
39753
39754# Does compiler simultaneously support -c and -o options?
39755compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39756
39757# Whether or not to add -lc for building shared libraries.
39758build_libtool_need_lc=$archive_cmds_need_lc_CXX
39759
39760# Whether or not to disallow shared libs when runtime libs are static.
39761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39762
39763# Compiler flag to allow reflexive dlopens.
39764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39765
39766# Compiler flag to generate shared objects directly from archives.
39767whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39768
39769# Whether the compiler copes with passing no objects directly.
39770compiler_needs_object=$lt_compiler_needs_object_CXX
39771
39772# Create an old-style archive from a shared archive.
39773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39774
39775# Create a temporary old-style archive to link instead of a shared archive.
39776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39777
39778# Commands used to build a shared archive.
39779archive_cmds=$lt_archive_cmds_CXX
39780archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39781
39782# Commands used to build a loadable module if different from building
39783# a shared archive.
39784module_cmds=$lt_module_cmds_CXX
39785module_expsym_cmds=$lt_module_expsym_cmds_CXX
39786
39787# Whether we are building with GNU ld or not.
39788with_gnu_ld=$lt_with_gnu_ld_CXX
39789
39790# Flag that allows shared libraries with undefined symbols to be built.
39791allow_undefined_flag=$lt_allow_undefined_flag_CXX
39792
39793# Flag that enforces no undefined symbols.
39794no_undefined_flag=$lt_no_undefined_flag_CXX
39795
39796# Flag to hardcode \$libdir into a binary during linking.
39797# This must work even if \$libdir does not exist
39798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39799
39800# If ld is used when linking, flag to hardcode \$libdir into a binary
39801# during linking.  This must work even if \$libdir does not exist.
39802hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
39803
39804# Whether we need a single "-rpath" flag with a separated argument.
39805hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39806
39807# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39808# DIR into the resulting binary.
39809hardcode_direct=$hardcode_direct_CXX
39810
39811# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39812# DIR into the resulting binary and the resulting library dependency is
39813# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39814# library is relocated.
39815hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39816
39817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39818# into the resulting binary.
39819hardcode_minus_L=$hardcode_minus_L_CXX
39820
39821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39822# into the resulting binary.
39823hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39824
39825# Set to "yes" if building a shared library automatically hardcodes DIR
39826# into the library and all subsequent libraries and executables linked
39827# against it.
39828hardcode_automatic=$hardcode_automatic_CXX
39829
39830# Set to yes if linker adds runtime paths of dependent libraries
39831# to runtime path list.
39832inherit_rpath=$inherit_rpath_CXX
39833
39834# Whether libtool must link a program against all its dependency libraries.
39835link_all_deplibs=$link_all_deplibs_CXX
39836
39837# Set to "yes" if exported symbols are required.
39838always_export_symbols=$always_export_symbols_CXX
39839
39840# The commands to list exported symbols.
39841export_symbols_cmds=$lt_export_symbols_cmds_CXX
39842
39843# Symbols that should not be listed in the preloaded symbols.
39844exclude_expsyms=$lt_exclude_expsyms_CXX
39845
39846# Symbols that must always be exported.
39847include_expsyms=$lt_include_expsyms_CXX
39848
39849# Commands necessary for linking programs (against libraries) with templates.
39850prelink_cmds=$lt_prelink_cmds_CXX
39851
39852# Commands necessary for finishing linking programs.
39853postlink_cmds=$lt_postlink_cmds_CXX
39854
39855# Specify filename containing input files.
39856file_list_spec=$lt_file_list_spec_CXX
39857
39858# How to hardcode a shared library path into an executable.
39859hardcode_action=$hardcode_action_CXX
39860
39861# The directories searched by this compiler when creating a shared library.
39862compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39863
39864# Dependencies to place before and after the objects being linked to
39865# create a shared library.
39866predep_objects=$lt_predep_objects_CXX
39867postdep_objects=$lt_postdep_objects_CXX
39868predeps=$lt_predeps_CXX
39869postdeps=$lt_postdeps_CXX
39870
39871# The library search path used internally by the compiler when linking
39872# a shared library.
39873compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39874
39875# ### END LIBTOOL TAG CONFIG: CXX
39876_LT_EOF
39877
39878 ;;
39879    "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
39880    "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
39881    "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
39882    "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
39883    "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
39884    "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
39885    "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
39886    "scripts/ntpver":F) chmod +x scripts/ntpver ;;
39887    "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
39888    "scripts/summary":F) chmod +x scripts/summary ;;
39889    "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
39890
39891  esac
39892done # for ac_tag
39893
39894
39895as_fn_exit 0
39896_ACEOF
39897ac_clean_files=$ac_clean_files_save
39898
39899test $ac_write_fail = 0 ||
39900  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39901
39902
39903# configure is writing to config.log, and then calls config.status.
39904# config.status does its own redirection, appending to config.log.
39905# Unfortunately, on DOS this fails, as config.log is still kept open
39906# by configure, so config.status won't be able to write to it; its
39907# output is simply discarded.  So we exec the FD to /dev/null,
39908# effectively closing config.log, so it can be properly (re)opened and
39909# appended to by config.status.  When coming back to configure, we
39910# need to make the FD available again.
39911if test "$no_create" != yes; then
39912  ac_cs_success=:
39913  ac_config_status_args=
39914  test "$silent" = yes &&
39915    ac_config_status_args="$ac_config_status_args --quiet"
39916  exec 5>/dev/null
39917  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39918  exec 5>>config.log
39919  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39920  # would make configure fail if this is the last instruction.
39921  $ac_cs_success || as_fn_exit 1
39922fi
39923
39924#
39925# CONFIG_SUBDIRS section.
39926#
39927if test "$no_recursion" != yes; then
39928
39929  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
39930  # so they do not pile up.
39931  ac_sub_configure_args=
39932  ac_prev=
39933  eval "set x $ac_configure_args"
39934  shift
39935  for ac_arg
39936  do
39937    if test -n "$ac_prev"; then
39938      ac_prev=
39939      continue
39940    fi
39941    case $ac_arg in
39942    -cache-file | --cache-file | --cache-fil | --cache-fi \
39943    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
39944      ac_prev=cache_file ;;
39945    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
39946    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
39947    | --c=*)
39948      ;;
39949    --config-cache | -C)
39950      ;;
39951    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
39952      ac_prev=srcdir ;;
39953    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
39954      ;;
39955    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
39956      ac_prev=prefix ;;
39957    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
39958      ;;
39959    --disable-option-checking)
39960      ;;
39961    *)
39962      case $ac_arg in
39963      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39964      esac
39965      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
39966    esac
39967  done
39968
39969  # Always prepend --prefix to ensure using the same prefix
39970  # in subdir configurations.
39971  ac_arg="--prefix=$prefix"
39972  case $ac_arg in
39973  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39974  esac
39975  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
39976
39977  # Pass --silent
39978  if test "$silent" = yes; then
39979    ac_sub_configure_args="--silent $ac_sub_configure_args"
39980  fi
39981
39982  # Always prepend --disable-option-checking to silence warnings, since
39983  # different subdirs can have different --enable and --with options.
39984  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
39985
39986  ac_popdir=`pwd`
39987  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
39988
39989    # Do not complain, so a configure script can configure whichever
39990    # parts of a large source tree are present.
39991    test -d "$srcdir/$ac_dir" || continue
39992
39993    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
39994    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
39995    $as_echo "$ac_msg" >&6
39996    as_dir="$ac_dir"; as_fn_mkdir_p
39997    ac_builddir=.
39998
39999case "$ac_dir" in
40000.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40001*)
40002  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40003  # A ".." for each directory in $ac_dir_suffix.
40004  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40005  case $ac_top_builddir_sub in
40006  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40007  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40008  esac ;;
40009esac
40010ac_abs_top_builddir=$ac_pwd
40011ac_abs_builddir=$ac_pwd$ac_dir_suffix
40012# for backward compatibility:
40013ac_top_builddir=$ac_top_build_prefix
40014
40015case $srcdir in
40016  .)  # We are building in place.
40017    ac_srcdir=.
40018    ac_top_srcdir=$ac_top_builddir_sub
40019    ac_abs_top_srcdir=$ac_pwd ;;
40020  [\\/]* | ?:[\\/]* )  # Absolute name.
40021    ac_srcdir=$srcdir$ac_dir_suffix;
40022    ac_top_srcdir=$srcdir
40023    ac_abs_top_srcdir=$srcdir ;;
40024  *) # Relative name.
40025    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40026    ac_top_srcdir=$ac_top_build_prefix$srcdir
40027    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40028esac
40029ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40030
40031
40032    cd "$ac_dir"
40033
40034    # Check for guested configure; otherwise get Cygnus style configure.
40035    if test -f "$ac_srcdir/configure.gnu"; then
40036      ac_sub_configure=$ac_srcdir/configure.gnu
40037    elif test -f "$ac_srcdir/configure"; then
40038      ac_sub_configure=$ac_srcdir/configure
40039    elif test -f "$ac_srcdir/configure.in"; then
40040      # This should be Cygnus configure.
40041      ac_sub_configure=$ac_aux_dir/configure
40042    else
40043      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40044$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40045      ac_sub_configure=
40046    fi
40047
40048    # The recursion is here.
40049    if test -n "$ac_sub_configure"; then
40050      # Make the cache file name correct relative to the subdirectory.
40051      case $cache_file in
40052      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40053      *) # Relative name.
40054	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40055      esac
40056
40057      { $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
40058$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40059      # The eval makes quoting arguments work.
40060      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40061	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40062	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40063    fi
40064
40065    cd "$ac_popdir"
40066  done
40067fi
40068if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40069  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40070$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40071fi
40072
40073