]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/configure
Fix multiple vulnerabilities of ntp.
[FreeBSD/releng/10.2.git] / contrib / ntp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p9.
4 #
5 # Report bugs to <http://bugs.ntp.org./>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='ntp'
592 PACKAGE_TARNAME='ntp'
593 PACKAGE_VERSION='4.2.8p9'
594 PACKAGE_STRING='ntp 4.2.8p9'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 subdirs
640 PERLLIBDIR
641 NTP_KEYSDIR
642 BUILD_TEST_NTP_SIGND_FALSE
643 BUILD_TEST_NTP_SIGND_TRUE
644 BUILD_TEST_NTP_SCANNER_FALSE
645 BUILD_TEST_NTP_SCANNER_TRUE
646 BUILD_TEST_NTP_RESTRICT_FALSE
647 BUILD_TEST_NTP_RESTRICT_TRUE
648 GTEST_AVAILABLE_FALSE
649 GTEST_AVAILABLE_TRUE
650 GTEST_CPPFLAGS
651 GTEST_CXXFLAGS
652 GTEST_LIBS
653 GTEST_LDFLAGS
654 GTEST_CONFIG
655 UNITYBUILD_AVAILABLE_FALSE
656 UNITYBUILD_AVAILABLE_TRUE
657 PATH_RUBY
658 HAVE_LEAPSMEARINTERVAL
659 SAVECONFIG_ENABLED_FALSE
660 SAVECONFIG_ENABLED_TRUE
661 LSCF
662 MAKE_NTPSNMPD
663 SNMP_CFLAGS
664 SNMP_CPPFLAGS
665 SNMP_LIBS
666 BUILD_SNTP_FALSE
667 BUILD_SNTP_TRUE
668 SNTP
669 MAKE_NTPDSIM
670 MAKE_LIBNTPSIM
671 MAKE_TIMETRIM
672 MAKE_TICKADJ
673 MAKE_NTPTIME
674 MAKE_ADJTIMED
675 CHUTEST
676 PROPDELAY
677 MAKE_PARSEKMODULE
678 DCFD
679 TESTDCF
680 MAKE_CHECK_LAYOUT
681 VER_SUFFIX
682 MAKE_CHECK_Y2K
683 MAKE_LIBPARSE_KERNEL
684 MAKE_LIBPARSE
685 LIBPARSE
686 HAVE_RLIMIT_STACK
687 HAVE_RLIMIT_MEMLOCK
688 LDADD_NLIST
689 PATH_NET_SNMP_CONFIG
690 CONFIG_SHELL
691 PATH_TEST
692 PATH_PERL
693 LIBOBJS
694 PTHREADS_FALSE
695 PTHREADS_TRUE
696 LIBISC_PTHREADS_NOTHREADS
697 PTHREAD_LIBS
698 LTHREAD_LIBS
699 BUILD_THREAD
700 HAVE_INLINE
701 LDADD_LIBUTIL
702 ALLOCA
703 LIBM
704 EDITLINE_LIBS
705 LDADD_LIBNTP
706 NTP_CROSSCOMPILE_FALSE
707 NTP_CROSSCOMPILE_TRUE
708 BUILD_LIBEVENT_FALSE
709 BUILD_LIBEVENT_TRUE
710 LDADD_LIBEVENT
711 CPPFLAGS_LIBEVENT
712 CFLAGS_LIBEVENT
713 PKG_CONFIG
714 LIBOPTS_DIR
715 LIBOPTS_CFLAGS
716 LIBOPTS_LDADD
717 NEED_LIBOPTS_FALSE
718 NEED_LIBOPTS_TRUE
719 INSTALL_LIBOPTS_FALSE
720 INSTALL_LIBOPTS_TRUE
721 POSIX_SHELL
722 GL_GENERATE_STDNORETURN_H_FALSE
723 GL_GENERATE_STDNORETURN_H_TRUE
724 STDNORETURN_H
725 LIBTOOL_DEPS
726 CXXCPP
727 OTOOL64
728 OTOOL
729 LIPO
730 NMEDIT
731 DSYMUTIL
732 MANIFEST_TOOL
733 RANLIB
734 DLLTOOL
735 OBJDUMP
736 LN_S
737 NM
738 ac_ct_DUMPBIN
739 DUMPBIN
740 LD
741 FGREP
742 SED
743 LIBTOOL
744 ac_ct_AR
745 AR
746 INSTALL_UPDATE_LEAP_FALSE
747 INSTALL_UPDATE_LEAP_TRUE
748 UPDATE_LEAP_NI
749 UPDATE_LEAP_MS
750 UPDATE_LEAP_DS
751 UPDATE_LEAP_DL
752 UPDATE_LEAP_DB
753 TIMETRIM_NI
754 TIMETRIM_MS
755 TIMETRIM_DS
756 TIMETRIM_DL
757 TIMETRIM_DB
758 TICKADJ_NI
759 TICKADJ_MS
760 TICKADJ_DS
761 TICKADJ_DL
762 TICKADJ_DB
763 SNTP_NI
764 SNTP_MS
765 SNTP_DS
766 SNTP_DL
767 SNTP_DB
768 NTP_WAIT_NI
769 NTP_WAIT_MS
770 NTP_WAIT_DS
771 NTP_WAIT_DL
772 NTP_WAIT_DB
773 NTP_KEYGEN_NI
774 NTP_KEYGEN_MS
775 NTP_KEYGEN_DS
776 NTP_KEYGEN_DL
777 NTP_KEYGEN_DB
778 NTPTRACE_NI
779 NTPTRACE_MS
780 NTPTRACE_DS
781 NTPTRACE_DL
782 NTPTRACE_DB
783 NTPTIME_NI
784 NTPTIME_MS
785 NTPTIME_DS
786 NTPTIME_DL
787 NTPTIME_DB
788 INSTALL_NTPSWEEP_FALSE
789 INSTALL_NTPSWEEP_TRUE
790 NTPSWEEP_NI
791 NTPSWEEP_MS
792 NTPSWEEP_DS
793 NTPSWEEP_DL
794 NTPSWEEP_DB
795 NTPSNMPD_NI
796 NTPSNMPD_MS
797 NTPSNMPD_DS
798 NTPSNMPD_DL
799 NTPSNMPD_DB
800 NTPQ_NI
801 NTPQ_MS
802 NTPQ_DS
803 NTPQ_DL
804 NTPQ_DB
805 NTPD_NI
806 NTPD_MS
807 NTPD_DS
808 NTPD_DL
809 NTPD_DB
810 NTPDSIM_NI
811 NTPDSIM_MS
812 NTPDSIM_DS
813 NTPDSIM_DL
814 NTPDSIM_DB
815 NTPDC_NI
816 NTPDC_MS
817 NTPDC_DS
818 NTPDC_DL
819 NTPDC_DB
820 NTPDATE_NI
821 NTPDATE_MS
822 NTPDATE_DS
823 NTPDATE_DL
824 NTPDATE_DB
825 MANTAGFMT
826 CALC_TICKADJ_NI
827 CALC_TICKADJ_MS
828 CALC_TICKADJ_DS
829 CALC_TICKADJ_DL
830 CALC_TICKADJ_DB
831 WANT_CALC_TICKADJ_MS_FALSE
832 WANT_CALC_TICKADJ_MS_TRUE
833 VPATH_HACK_FALSE
834 VPATH_HACK_TRUE
835 YFLAGS
836 YACC
837 am__fastdepCXX_FALSE
838 am__fastdepCXX_TRUE
839 CXXDEPMODE
840 ac_ct_CXX
841 CXXFLAGS
842 CXX
843 LDFLAGS_NTP
844 LDADD_NTP
845 CPPFLAGS_NTP
846 CFLAGS_NTP
847 EGREP
848 GREP
849 CPP
850 am__fastdepCC_FALSE
851 am__fastdepCC_TRUE
852 CCDEPMODE
853 am__nodep
854 AMDEPBACKSLASH
855 AMDEP_FALSE
856 AMDEP_TRUE
857 am__quote
858 am__include
859 DEPDIR
860 OBJEXT
861 EXEEXT
862 ac_ct_CC
863 CPPFLAGS
864 LDFLAGS
865 CFLAGS
866 CC
867 host_os
868 host_vendor
869 host_cpu
870 host
871 build_os
872 build_vendor
873 build_cpu
874 build
875 AM_BACKSLASH
876 AM_DEFAULT_VERBOSITY
877 AM_DEFAULT_V
878 AM_V
879 am__untar
880 am__tar
881 AMTAR
882 am__leading_dot
883 SET_MAKE
884 AWK
885 mkdir_p
886 MKDIR_P
887 INSTALL_STRIP_PROGRAM
888 STRIP
889 install_sh
890 MAKEINFO
891 AUTOHEADER
892 AUTOMAKE
893 AUTOCONF
894 ACLOCAL
895 VERSION
896 PACKAGE
897 CYGPATH_W
898 am__isrc
899 INSTALL_DATA
900 INSTALL_SCRIPT
901 INSTALL_PROGRAM
902 target_alias
903 host_alias
904 build_alias
905 LIBS
906 ECHO_T
907 ECHO_N
908 ECHO_C
909 DEFS
910 mandir
911 localedir
912 libdir
913 psdir
914 pdfdir
915 dvidir
916 htmldir
917 infodir
918 docdir
919 oldincludedir
920 includedir
921 localstatedir
922 sharedstatedir
923 sysconfdir
924 datadir
925 datarootdir
926 libexecdir
927 sbindir
928 bindir
929 program_transform_name
930 prefix
931 exec_prefix
932 PACKAGE_URL
933 PACKAGE_BUGREPORT
934 PACKAGE_STRING
935 PACKAGE_VERSION
936 PACKAGE_TARNAME
937 PACKAGE_NAME
938 PATH_SEPARATOR
939 SHELL'
940 ac_subst_files='calc_tickadj_opts
941 ntp_wait_opts
942 ntpsweep_opts
943 ntptrace_opts
944 summary_opts
945 plot_summary_opts'
946 ac_user_opts='
947 enable_option_checking
948 enable_silent_rules
949 enable_dependency_tracking
950 with_locfile
951 enable_shared
952 enable_static
953 with_pic
954 enable_fast_install
955 with_gnu_ld
956 with_sysroot
957 enable_libtool_lock
958 enable_nls
959 enable_local_libopts
960 enable_libopts_install
961 with_autoopts_config
962 enable_local_libevent
963 with_lineeditlibs
964 enable_debugging
965 enable_thread_support
966 with_threads
967 with_yielding_select
968 enable_c99_snprintf
969 enable_clockctl
970 enable_linuxcaps
971 enable_solarisprivs
972 with_arlib
973 with_net_snmp_config
974 enable_libseccomp
975 with_stack_limit
976 with_memlock
977 enable_debug_timing
978 enable_dst_minutes
979 enable_ignore_dns_errors
980 enable_BANCOMM
981 enable_GPSVME
982 enable_all_clocks
983 enable_ACTS
984 enable_ARBITER
985 enable_ARCRON_MSF
986 enable_AS2201
987 enable_ATOM
988 enable_CHRONOLOG
989 enable_CHU
990 enable_AUDIO_CHU
991 enable_DATUM
992 enable_DUMBCLOCK
993 enable_FG
994 enable_HEATH
995 enable_HOPFSERIAL
996 enable_HOPFPCI
997 enable_HPGPS
998 enable_IRIG
999 enable_JJY
1000 enable_JUPITER
1001 enable_LEITCH
1002 enable_LOCAL_CLOCK
1003 enable_MX4200
1004 enable_NEOCLOCK4X
1005 enable_NMEA
1006 enable_GPSD
1007 enable_ONCORE
1008 enable_PALISADE
1009 enable_PCF
1010 enable_PST
1011 enable_RIPENCC
1012 enable_SHM
1013 enable_SPECTRACOM
1014 enable_TPRO
1015 enable_TRUETIME
1016 enable_TT560
1017 enable_ULINK
1018 enable_TSYNCPCI
1019 enable_WWV
1020 enable_ZYFER
1021 enable_parse_clocks
1022 enable_COMPUTIME
1023 enable_DCF7000
1024 enable_HOPF6021
1025 enable_MEINBERG
1026 enable_RAWDCF
1027 enable_RCC8000
1028 enable_SCHMID
1029 enable_TRIMTAIP
1030 enable_TRIMTSIP
1031 enable_WHARTON
1032 enable_VARITEXT
1033 enable_SEL240X
1034 with_crypto
1035 with_openssl_libdir
1036 with_openssl_incdir
1037 with_rpath
1038 enable_openssl_random
1039 enable_autokey
1040 enable_kmem
1041 enable_accurate_adjtime
1042 enable_tick
1043 enable_tickadj
1044 enable_simulator
1045 with_sntp
1046 with_ntpsnmpd
1047 enable_slew_always
1048 enable_step_slew
1049 enable_ntpdate_step
1050 enable_hourly_todr_sync
1051 enable_kernel_fll_bug
1052 enable_bug1243_fix
1053 enable_bug3020_fix
1054 enable_irig_sawtooth
1055 enable_nist
1056 enable_ntp_signd
1057 enable_ipv6
1058 with_kame
1059 enable_getifaddrs
1060 enable_saveconfig
1061 enable_leap_smear
1062 enable_dynamic_interleave
1063 with_gtest
1064 enable_problem_tests
1065 '
1066       ac_precious_vars='build_alias
1067 host_alias
1068 target_alias
1069 CC
1070 CFLAGS
1071 LDFLAGS
1072 LIBS
1073 CPPFLAGS
1074 CPP
1075 CXX
1076 CXXFLAGS
1077 CCC
1078 YACC
1079 YFLAGS
1080 CXXCPP'
1081 ac_subdirs_all='sntp'
1082
1083 # Initialize some variables set by options.
1084 ac_init_help=
1085 ac_init_version=false
1086 ac_unrecognized_opts=
1087 ac_unrecognized_sep=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1091 exec_prefix=NONE
1092 no_create=
1093 no_recursion=
1094 prefix=NONE
1095 program_prefix=NONE
1096 program_suffix=NONE
1097 program_transform_name=s,x,x,
1098 silent=
1099 site=
1100 srcdir=
1101 verbose=
1102 x_includes=NONE
1103 x_libraries=NONE
1104
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1122 infodir='${datarootdir}/info'
1123 htmldir='${docdir}'
1124 dvidir='${docdir}'
1125 pdfdir='${docdir}'
1126 psdir='${docdir}'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1130
1131 ac_prev=
1132 ac_dashdash=
1133 for ac_option
1134 do
1135   # If the previous option needs an argument, assign it.
1136   if test -n "$ac_prev"; then
1137     eval $ac_prev=\$ac_option
1138     ac_prev=
1139     continue
1140   fi
1141
1142   case $ac_option in
1143   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144   *=)   ac_optarg= ;;
1145   *)    ac_optarg=yes ;;
1146   esac
1147
1148   # Accept the important Cygnus configure options, so we can diagnose typos.
1149
1150   case $ac_dashdash$ac_option in
1151   --)
1152     ac_dashdash=yes ;;
1153
1154   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155     ac_prev=bindir ;;
1156   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157     bindir=$ac_optarg ;;
1158
1159   -build | --build | --buil | --bui | --bu)
1160     ac_prev=build_alias ;;
1161   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162     build_alias=$ac_optarg ;;
1163
1164   -cache-file | --cache-file | --cache-fil | --cache-fi \
1165   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166     ac_prev=cache_file ;;
1167   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169     cache_file=$ac_optarg ;;
1170
1171   --config-cache | -C)
1172     cache_file=config.cache ;;
1173
1174   -datadir | --datadir | --datadi | --datad)
1175     ac_prev=datadir ;;
1176   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177     datadir=$ac_optarg ;;
1178
1179   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180   | --dataroo | --dataro | --datar)
1181     ac_prev=datarootdir ;;
1182   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184     datarootdir=$ac_optarg ;;
1185
1186   -disable-* | --disable-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid feature name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "enable_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval enable_$ac_useropt=no ;;
1201
1202   -docdir | --docdir | --docdi | --doc | --do)
1203     ac_prev=docdir ;;
1204   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205     docdir=$ac_optarg ;;
1206
1207   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1208     ac_prev=dvidir ;;
1209   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210     dvidir=$ac_optarg ;;
1211
1212   -enable-* | --enable-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid feature name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "enable_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval enable_$ac_useropt=\$ac_optarg ;;
1227
1228   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230   | --exec | --exe | --ex)
1231     ac_prev=exec_prefix ;;
1232   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234   | --exec=* | --exe=* | --ex=*)
1235     exec_prefix=$ac_optarg ;;
1236
1237   -gas | --gas | --ga | --g)
1238     # Obsolete; use --with-gas.
1239     with_gas=yes ;;
1240
1241   -help | --help | --hel | --he | -h)
1242     ac_init_help=long ;;
1243   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244     ac_init_help=recursive ;;
1245   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246     ac_init_help=short ;;
1247
1248   -host | --host | --hos | --ho)
1249     ac_prev=host_alias ;;
1250   -host=* | --host=* | --hos=* | --ho=*)
1251     host_alias=$ac_optarg ;;
1252
1253   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1254     ac_prev=htmldir ;;
1255   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1256   | --ht=*)
1257     htmldir=$ac_optarg ;;
1258
1259   -includedir | --includedir | --includedi | --included | --include \
1260   | --includ | --inclu | --incl | --inc)
1261     ac_prev=includedir ;;
1262   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263   | --includ=* | --inclu=* | --incl=* | --inc=*)
1264     includedir=$ac_optarg ;;
1265
1266   -infodir | --infodir | --infodi | --infod | --info | --inf)
1267     ac_prev=infodir ;;
1268   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269     infodir=$ac_optarg ;;
1270
1271   -libdir | --libdir | --libdi | --libd)
1272     ac_prev=libdir ;;
1273   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274     libdir=$ac_optarg ;;
1275
1276   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277   | --libexe | --libex | --libe)
1278     ac_prev=libexecdir ;;
1279   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280   | --libexe=* | --libex=* | --libe=*)
1281     libexecdir=$ac_optarg ;;
1282
1283   -localedir | --localedir | --localedi | --localed | --locale)
1284     ac_prev=localedir ;;
1285   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286     localedir=$ac_optarg ;;
1287
1288   -localstatedir | --localstatedir | --localstatedi | --localstated \
1289   | --localstate | --localstat | --localsta | --localst | --locals)
1290     ac_prev=localstatedir ;;
1291   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293     localstatedir=$ac_optarg ;;
1294
1295   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1296     ac_prev=mandir ;;
1297   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298     mandir=$ac_optarg ;;
1299
1300   -nfp | --nfp | --nf)
1301     # Obsolete; use --without-fp.
1302     with_fp=no ;;
1303
1304   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305   | --no-cr | --no-c | -n)
1306     no_create=yes ;;
1307
1308   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1310     no_recursion=yes ;;
1311
1312   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314   | --oldin | --oldi | --old | --ol | --o)
1315     ac_prev=oldincludedir ;;
1316   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319     oldincludedir=$ac_optarg ;;
1320
1321   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1322     ac_prev=prefix ;;
1323   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324     prefix=$ac_optarg ;;
1325
1326   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327   | --program-pre | --program-pr | --program-p)
1328     ac_prev=program_prefix ;;
1329   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331     program_prefix=$ac_optarg ;;
1332
1333   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334   | --program-suf | --program-su | --program-s)
1335     ac_prev=program_suffix ;;
1336   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338     program_suffix=$ac_optarg ;;
1339
1340   -program-transform-name | --program-transform-name \
1341   | --program-transform-nam | --program-transform-na \
1342   | --program-transform-n | --program-transform- \
1343   | --program-transform | --program-transfor \
1344   | --program-transfo | --program-transf \
1345   | --program-trans | --program-tran \
1346   | --progr-tra | --program-tr | --program-t)
1347     ac_prev=program_transform_name ;;
1348   -program-transform-name=* | --program-transform-name=* \
1349   | --program-transform-nam=* | --program-transform-na=* \
1350   | --program-transform-n=* | --program-transform-=* \
1351   | --program-transform=* | --program-transfor=* \
1352   | --program-transfo=* | --program-transf=* \
1353   | --program-trans=* | --program-tran=* \
1354   | --progr-tra=* | --program-tr=* | --program-t=*)
1355     program_transform_name=$ac_optarg ;;
1356
1357   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1358     ac_prev=pdfdir ;;
1359   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360     pdfdir=$ac_optarg ;;
1361
1362   -psdir | --psdir | --psdi | --psd | --ps)
1363     ac_prev=psdir ;;
1364   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1365     psdir=$ac_optarg ;;
1366
1367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368   | -silent | --silent | --silen | --sile | --sil)
1369     silent=yes ;;
1370
1371   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372     ac_prev=sbindir ;;
1373   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374   | --sbi=* | --sb=*)
1375     sbindir=$ac_optarg ;;
1376
1377   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379   | --sharedst | --shareds | --shared | --share | --shar \
1380   | --sha | --sh)
1381     ac_prev=sharedstatedir ;;
1382   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385   | --sha=* | --sh=*)
1386     sharedstatedir=$ac_optarg ;;
1387
1388   -site | --site | --sit)
1389     ac_prev=site ;;
1390   -site=* | --site=* | --sit=*)
1391     site=$ac_optarg ;;
1392
1393   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394     ac_prev=srcdir ;;
1395   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396     srcdir=$ac_optarg ;;
1397
1398   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399   | --syscon | --sysco | --sysc | --sys | --sy)
1400     ac_prev=sysconfdir ;;
1401   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403     sysconfdir=$ac_optarg ;;
1404
1405   -target | --target | --targe | --targ | --tar | --ta | --t)
1406     ac_prev=target_alias ;;
1407   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408     target_alias=$ac_optarg ;;
1409
1410   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411     verbose=yes ;;
1412
1413   -version | --version | --versio | --versi | --vers | -V)
1414     ac_init_version=: ;;
1415
1416   -with-* | --with-*)
1417     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420       as_fn_error $? "invalid package name: $ac_useropt"
1421     ac_useropt_orig=$ac_useropt
1422     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423     case $ac_user_opts in
1424       *"
1425 "with_$ac_useropt"
1426 "*) ;;
1427       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428          ac_unrecognized_sep=', ';;
1429     esac
1430     eval with_$ac_useropt=\$ac_optarg ;;
1431
1432   -without-* | --without-*)
1433     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434     # Reject names that are not valid shell variable names.
1435     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436       as_fn_error $? "invalid package name: $ac_useropt"
1437     ac_useropt_orig=$ac_useropt
1438     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439     case $ac_user_opts in
1440       *"
1441 "with_$ac_useropt"
1442 "*) ;;
1443       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444          ac_unrecognized_sep=', ';;
1445     esac
1446     eval with_$ac_useropt=no ;;
1447
1448   --x)
1449     # Obsolete; use --with-x.
1450     with_x=yes ;;
1451
1452   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453   | --x-incl | --x-inc | --x-in | --x-i)
1454     ac_prev=x_includes ;;
1455   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457     x_includes=$ac_optarg ;;
1458
1459   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461     ac_prev=x_libraries ;;
1462   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464     x_libraries=$ac_optarg ;;
1465
1466   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1468     ;;
1469
1470   *=*)
1471     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472     # Reject names that are not valid shell variable names.
1473     case $ac_envvar in #(
1474       '' | [0-9]* | *[!_$as_cr_alnum]* )
1475       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476     esac
1477     eval $ac_envvar=\$ac_optarg
1478     export $ac_envvar ;;
1479
1480   *)
1481     # FIXME: should be removed in autoconf 3.0.
1482     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1486     ;;
1487
1488   esac
1489 done
1490
1491 if test -n "$ac_prev"; then
1492   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493   as_fn_error $? "missing argument to $ac_option"
1494 fi
1495
1496 if test -n "$ac_unrecognized_opts"; then
1497   case $enable_option_checking in
1498     no) ;;
1499     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501   esac
1502 fi
1503
1504 # Check all directory arguments for consistency.
1505 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506                 datadir sysconfdir sharedstatedir localstatedir includedir \
1507                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508                 libdir localedir mandir
1509 do
1510   eval ac_val=\$$ac_var
1511   # Remove trailing slashes.
1512   case $ac_val in
1513     */ )
1514       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515       eval $ac_var=\$ac_val;;
1516   esac
1517   # Be sure to have absolute directory names.
1518   case $ac_val in
1519     [\\/$]* | ?:[\\/]* )  continue;;
1520     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521   esac
1522   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523 done
1524
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1528 build=$build_alias
1529 host=$host_alias
1530 target=$target_alias
1531
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534   if test "x$build_alias" = x; then
1535     cross_compiling=maybe
1536   elif test "x$build_alias" != "x$host_alias"; then
1537     cross_compiling=yes
1538   fi
1539 fi
1540
1541 ac_tool_prefix=
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543
1544 test "$silent" = yes && exec 6>/dev/null
1545
1546
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550   as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552   as_fn_error $? "pwd does not report name of working directory"
1553
1554
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557   ac_srcdir_defaulted=yes
1558   # Try the directory containing this script, then the parent directory.
1559   ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561          X"$as_myself" : 'X\(//\)[^/]' \| \
1562          X"$as_myself" : 'X\(//\)$' \| \
1563          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566             s//\1/
1567             q
1568           }
1569           /^X\(\/\/\)[^/].*/{
1570             s//\1/
1571             q
1572           }
1573           /^X\(\/\/\)$/{
1574             s//\1/
1575             q
1576           }
1577           /^X\(\/\).*/{
1578             s//\1/
1579             q
1580           }
1581           s/.*/./; q'`
1582   srcdir=$ac_confdir
1583   if test ! -r "$srcdir/$ac_unique_file"; then
1584     srcdir=..
1585   fi
1586 else
1587   ac_srcdir_defaulted=no
1588 fi
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592 fi
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594 ac_abs_confdir=`(
1595         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596         pwd)`
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1599   srcdir=.
1600 fi
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1604 case $srcdir in
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606 esac
1607 for ac_var in $ac_precious_vars; do
1608   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609   eval ac_env_${ac_var}_value=\$${ac_var}
1610   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612 done
1613
1614 #
1615 # Report the --help message.
1616 #
1617 if test "$ac_init_help" = "long"; then
1618   # Omit some internal or obsolete options to make the list less imposing.
1619   # This message is too long to be a string in the A/UX 3.1 sh.
1620   cat <<_ACEOF
1621 \`configure' configures ntp 4.2.8p9 to adapt to many kinds of systems.
1622
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE.  See below for descriptions of some of the useful variables.
1627
1628 Defaults for the options are specified in brackets.
1629
1630 Configuration:
1631   -h, --help              display this help and exit
1632       --help=short        display options specific to this package
1633       --help=recursive    display the short help of all the included packages
1634   -V, --version           display version information and exit
1635   -q, --quiet, --silent   do not print \`checking ...' messages
1636       --cache-file=FILE   cache test results in FILE [disabled]
1637   -C, --config-cache      alias for \`--cache-file=config.cache'
1638   -n, --no-create         do not create output files
1639       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1640
1641 Installation directories:
1642   --prefix=PREFIX         install architecture-independent files in PREFIX
1643                           [$ac_default_prefix]
1644   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1645                           [PREFIX]
1646
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1651
1652 For better control, use the options below.
1653
1654 Fine tuning of the installation directories:
1655   --bindir=DIR            user executables [EPREFIX/bin]
1656   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1657   --libexecdir=DIR        program executables [EPREFIX/libexec]
1658   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1659   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1660   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1661   --libdir=DIR            object code libraries [EPREFIX/lib]
1662   --includedir=DIR        C header files [PREFIX/include]
1663   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1664   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1665   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1666   --infodir=DIR           info documentation [DATAROOTDIR/info]
1667   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1668   --mandir=DIR            man documentation [DATAROOTDIR/man]
1669   --docdir=DIR            documentation root [DATAROOTDIR/doc/ntp]
1670   --htmldir=DIR           html documentation [DOCDIR]
1671   --dvidir=DIR            dvi documentation [DOCDIR]
1672   --pdfdir=DIR            pdf documentation [DOCDIR]
1673   --psdir=DIR             ps documentation [DOCDIR]
1674 _ACEOF
1675
1676   cat <<\_ACEOF
1677
1678 Program names:
1679   --program-prefix=PREFIX            prepend PREFIX to installed program names
1680   --program-suffix=SUFFIX            append SUFFIX to installed program names
1681   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1682
1683 System types:
1684   --build=BUILD     configure for building on BUILD [guessed]
1685   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1686 _ACEOF
1687 fi
1688
1689 if test -n "$ac_init_help"; then
1690   case $ac_init_help in
1691      short | recursive ) echo "Configuration of ntp 4.2.8p9:";;
1692    esac
1693   cat <<\_ACEOF
1694
1695 Optional Features and Packages:
1696   --disable-option-checking  ignore unrecognized --enable/--with options
1697   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1698   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1699   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1700   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1701   --enable-silent-rules   less verbose build output (undo: "make V=1")
1702   --disable-silent-rules  verbose build output (undo: "make V=0")
1703   --enable-dependency-tracking
1704                           do not reject slow dependency extractors
1705   --disable-dependency-tracking
1706                           speeds up one-time build
1707   --with-locfile=XXX      os-specific or "legacy"
1708   --enable-shared[=PKGS]  build shared libraries [default=no]
1709   --enable-static[=PKGS]  build static libraries [default=yes]
1710   --with-pic              try to use only PIC/non-PIC objects [default=use
1711                           both]
1712   --enable-fast-install[=PKGS]
1713                           optimize for fast installation [default=yes]
1714   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1715   --with-sysroot=DIR Search for dependent libraries within DIR
1716                         (or the compiler's sysroot if not specified).
1717   --disable-libtool-lock  avoid locking (might break parallel builds)
1718   --disable-nls           disable nls support in libopts
1719   --enable-local-libopts  Use the supplied libopts tearoff code
1720   --enable-libopts-install
1721                           Install libopts with client installation
1722   --with-autoopts-config  specify the config-info script
1723   --enable-local-libevent Force using the supplied libevent tearoff code
1724   --with-lineeditlibs     edit,editline (readline may be specified if desired)
1725   defaults:               + yes, - no, s system-specific
1726   --enable-debugging      + include ntpd debugging code
1727   --enable-thread-support s use threads (+ if available)
1728   --with-threads          with threads [auto]
1729   --with-yielding-select  with yielding select [auto]
1730   --enable-c99-snprintf   s force replacement
1731   --enable-clockctl       s Use /dev/clockctl for non-root clock control
1732   --enable-linuxcaps      + Use Linux capabilities for non-root clock control
1733   --enable-solarisprivs   + Use Solaris privileges for non-root clock control
1734   --with-arlib            - deprecated, arlib not distributed
1735   --with-net-snmp-config  + =net-snmp-config
1736   --enable-libseccomp     EXPERIMENTAL: enable support for libseccomp
1737                           sandboxing (default is no)
1738   --with-stack-limit      ? =50 (200 for openbsd) 4k pages
1739   --with-memlock          ? =32 (-1 on linux) megabytes
1740   --enable-debug-timing   - include processing time debugging code (costs
1741                           performance)
1742   --enable-dst-minutes    =60 minutes per DST adjustment
1743   --enable-ignore-dns-errors
1744                           - retry DNS queries on any error
1745   --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
1746   --enable-GPSVME         - TrueTime GPS receiver/VME interface
1747   --enable-all-clocks     + include all suitable non-PARSE clocks:
1748   --enable-ACTS           s ACTS modem service
1749   --enable-ARBITER        + Arbiter 1088A/B GPS receiver
1750   --enable-ARCRON-MSF     + Arcron MSF receiver
1751   --enable-AS2201         + Austron 2200A/2201A GPS receiver
1752   --enable-ATOM           s ATOM PPS interface
1753   --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
1754   --enable-CHU            + CHU modem/decoder
1755   --enable-AUDIO-CHU      s CHU audio/decoder
1756   --enable-DATUM          s Datum Programmable Time System
1757   --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
1758   --enable-FG             + Forum Graphic GPS
1759   --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
1760   --enable-HOPFSERIAL     + hopf serial clock device
1761   --enable-HOPFPCI        + hopf 6039 PCI board
1762   --enable-HPGPS          + HP 58503A GPS receiver
1763   --enable-IRIG           s IRIG audio decoder
1764   --enable-JJY            + JJY receiver
1765   --enable-JUPITER        s Rockwell Jupiter GPS receiver
1766   --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
1767   --enable-LOCAL-CLOCK    + local clock reference
1768   --enable-MX4200         s Magnavox MX4200 GPS receiver
1769   --enable-NEOCLOCK4X     + NeoClock4X DCF77 / TDF receiver
1770   --enable-NMEA           + NMEA GPS receiver
1771   --enable-GPSD           + GPSD JSON receiver
1772   --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
1773   --enable-PALISADE       s Palisade clock
1774   --enable-PCF            + Conrad parallel port radio clock
1775   --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
1776   --enable-RIPENCC        - RIPENCC specific Trimble driver
1777   --enable-SHM            s SHM clock attached thru shared memory
1778   --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
1779   --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1780   --enable-TRUETIME       s Kinemetrics/TrueTime receivers
1781   --enable-TT560          - TrueTime 560 IRIG-B decoder
1782   --enable-ULINK          + Ultralink WWVB receiver
1783   --enable-TSYNCPCI       s Spectracom TSYNC timing board
1784   --enable-WWV            s WWV Audio receiver
1785   --enable-ZYFER          + Zyfer GPStarplus receiver
1786   --enable-parse-clocks   - include all suitable PARSE clocks:
1787   --enable-COMPUTIME      s Diem Computime Radio Clock
1788   --enable-DCF7000        s ELV/DCF7000 clock
1789   --enable-HOPF6021       s HOPF 6021 clock
1790   --enable-MEINBERG       s Meinberg clocks
1791   --enable-RAWDCF         s DCF77 raw time code
1792   --enable-RCC8000        s RCC 8000 clock
1793   --enable-SCHMID         s Schmid DCF77 clock
1794   --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
1795   --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
1796   --enable-WHARTON        s WHARTON 400A Series clock
1797   --enable-VARITEXT       s VARITEXT clock
1798   --enable-SEL240X        s SEL240X clock
1799   --with-crypto           + =openssl,libcrypto
1800
1801   --with-openssl-libdir   + =/something/reasonable
1802
1803   --with-openssl-incdir   + =/something/reasonable
1804
1805   --without-rpath         s Disable auto-added -R linker paths
1806
1807   --enable-openssl-random Use OpenSSL's crypto random number functions, if
1808                           available (default is yes)
1809   --enable-autokey        + support NTP Autokey protocol
1810   --enable-kmem           s read /dev/kmem for tick and/or tickadj
1811   --enable-accurate-adjtime
1812                           s the adjtime() call is accurate
1813   --enable-tick=VALUE     s force a value for 'tick'
1814   --enable-tickadj=VALUE  s force a value for 'tickadj'
1815   --enable-simulator      - build/install the NTPD simulator?
1816   --without-sntp          - disable building sntp and sntp/tests
1817   --with-ntpsnmpd         s Build ntpsnmpd MIB agent?
1818   --enable-slew-always    s always slew the time
1819   --enable-step-slew      s step and slew the time
1820   --enable-ntpdate-step   s if ntpdate should step the time
1821   --enable-hourly-todr-sync
1822                           s if we should sync TODR hourly
1823   --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1824   --enable-bug1243-fix    + use unmodified autokey session keys
1825   --enable-bug3020-fix    + Provide the explicit 127.0.0.0/8 martian filter
1826   --enable-irig-sawtooth  s if we should enable the IRIG sawtooth filter
1827   --enable-nist           - if we should enable the NIST lockclock scheme
1828   --enable-ntp-signd      - Provide support for Samba's signing daemon,
1829                           =/var/run/ntp_signd
1830   --enable-ipv6           s use IPv6?
1831
1832   --with-kame             - =/usr/local/v6
1833   --enable-getifaddrs     + Enable the use of getifaddrs() [[yes|no]].
1834   --enable-saveconfig     + saveconfig mechanism
1835   --enable-leap-smear     - experimental leap smear code
1836   --enable-dynamic-interleave
1837                           - dynamic interleave support
1838   --with-gtest            Use the gtest framework (Default: if it's available)
1839   --enable-problem-tests  + enable tests with undiagnosed problems
1840
1841 Some influential environment variables:
1842   CC          C compiler command
1843   CFLAGS      C compiler flags
1844   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1845               nonstandard directory <lib dir>
1846   LIBS        libraries to pass to the linker, e.g. -l<library>
1847   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1848               you have headers in a nonstandard directory <include dir>
1849   CPP         C preprocessor
1850   CXX         C++ compiler command
1851   CXXFLAGS    C++ compiler flags
1852   YACC        The `Yet Another Compiler Compiler' implementation to use.
1853               Defaults to the first program found out of: `bison -y', `byacc',
1854               `yacc'.
1855   YFLAGS      The list of arguments that will be passed by default to $YACC.
1856               This script will default YFLAGS to the empty string to avoid a
1857               default value of `-d' given by some make applications.
1858   CXXCPP      C++ preprocessor
1859
1860 Use these variables to override the choices made by `configure' or to help
1861 it to find libraries and programs with nonstandard names/locations.
1862
1863 Report bugs to <http://bugs.ntp.org./>.
1864 ntp home page: <http://www.ntp.org./>.
1865 _ACEOF
1866 ac_status=$?
1867 fi
1868
1869 if test "$ac_init_help" = "recursive"; then
1870   # If there are subdirs, report their specific --help.
1871   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1872     test -d "$ac_dir" ||
1873       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1874       continue
1875     ac_builddir=.
1876
1877 case "$ac_dir" in
1878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879 *)
1880   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1881   # A ".." for each directory in $ac_dir_suffix.
1882   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1883   case $ac_top_builddir_sub in
1884   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1885   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1886   esac ;;
1887 esac
1888 ac_abs_top_builddir=$ac_pwd
1889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1890 # for backward compatibility:
1891 ac_top_builddir=$ac_top_build_prefix
1892
1893 case $srcdir in
1894   .)  # We are building in place.
1895     ac_srcdir=.
1896     ac_top_srcdir=$ac_top_builddir_sub
1897     ac_abs_top_srcdir=$ac_pwd ;;
1898   [\\/]* | ?:[\\/]* )  # Absolute name.
1899     ac_srcdir=$srcdir$ac_dir_suffix;
1900     ac_top_srcdir=$srcdir
1901     ac_abs_top_srcdir=$srcdir ;;
1902   *) # Relative name.
1903     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1904     ac_top_srcdir=$ac_top_build_prefix$srcdir
1905     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1906 esac
1907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1908
1909     cd "$ac_dir" || { ac_status=$?; continue; }
1910     # Check for guested configure.
1911     if test -f "$ac_srcdir/configure.gnu"; then
1912       echo &&
1913       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1914     elif test -f "$ac_srcdir/configure"; then
1915       echo &&
1916       $SHELL "$ac_srcdir/configure" --help=recursive
1917     else
1918       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1919     fi || ac_status=$?
1920     cd "$ac_pwd" || { ac_status=$?; break; }
1921   done
1922 fi
1923
1924 test -n "$ac_init_help" && exit $ac_status
1925 if $ac_init_version; then
1926   cat <<\_ACEOF
1927 ntp configure 4.2.8p9
1928 generated by GNU Autoconf 2.69
1929
1930 Copyright (C) 2012 Free Software Foundation, Inc.
1931 This configure script is free software; the Free Software Foundation
1932 gives unlimited permission to copy, distribute and modify it.
1933 _ACEOF
1934   exit
1935 fi
1936
1937 ## ------------------------ ##
1938 ## Autoconf initialization. ##
1939 ## ------------------------ ##
1940
1941 # ac_fn_c_try_compile LINENO
1942 # --------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_compile ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   rm -f conftest.$ac_objext
1948   if { { ac_try="$ac_compile"
1949 case "(($ac_try" in
1950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951   *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955   (eval "$ac_compile") 2>conftest.err
1956   ac_status=$?
1957   if test -s conftest.err; then
1958     grep -v '^ *+' conftest.err >conftest.er1
1959     cat conftest.er1 >&5
1960     mv -f conftest.er1 conftest.err
1961   fi
1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; } && {
1964          test -z "$ac_c_werror_flag" ||
1965          test ! -s conftest.err
1966        } && test -s conftest.$ac_objext; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972         ac_retval=1
1973 fi
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975   as_fn_set_status $ac_retval
1976
1977 } # ac_fn_c_try_compile
1978
1979 # ac_fn_c_try_cpp LINENO
1980 # ----------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_cpp ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if { { ac_try="$ac_cpp conftest.$ac_ext"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993   ac_status=$?
1994   if test -s conftest.err; then
1995     grep -v '^ *+' conftest.err >conftest.er1
1996     cat conftest.er1 >&5
1997     mv -f conftest.er1 conftest.err
1998   fi
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; } > conftest.i && {
2001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2002          test ! -s conftest.err
2003        }; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009     ac_retval=1
2010 fi
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_cpp
2015
2016 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2019 # the include files in INCLUDES and setting the cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_header_mongrel ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   if eval \${$3+:} false; then :
2025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028   $as_echo_n "(cached) " >&6
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 else
2034   # Is the header compilable?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2036 $as_echo_n "checking $2 usability... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043   ac_header_compiler=yes
2044 else
2045   ac_header_compiler=no
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2049 $as_echo "$ac_header_compiler" >&6; }
2050
2051 # Is the header present?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2053 $as_echo_n "checking $2 presence... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_cpp "$LINENO"; then :
2059   ac_header_preproc=yes
2060 else
2061   ac_header_preproc=no
2062 fi
2063 rm -f conftest.err conftest.i conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2065 $as_echo "$ac_header_preproc" >&6; }
2066
2067 # So?  What about this header?
2068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2069   yes:no: )
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2071 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074     ;;
2075   no:yes:* )
2076     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2077 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2079 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2081 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2082     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2083 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2085 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086 ( $as_echo "## ------------------------------------ ##
2087 ## Report this to http://bugs.ntp.org./ ##
2088 ## ------------------------------------ ##"
2089      ) | sed "s/^/$as_me: WARNING:     /" >&2
2090     ;;
2091 esac
2092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095   $as_echo_n "(cached) " >&6
2096 else
2097   eval "$3=\$ac_header_compiler"
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 fi
2103   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105 } # ac_fn_c_check_header_mongrel
2106
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2111 ac_fn_c_try_run ()
2112 {
2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114   if { { ac_try="$ac_link"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_link") 2>&5
2122   ac_status=$?
2123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125   { { case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131   (eval "$ac_try") 2>&5
2132   ac_status=$?
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; }; }; then :
2135   ac_retval=0
2136 else
2137   $as_echo "$as_me: program exited with status $ac_status" >&5
2138        $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141        ac_retval=$ac_status
2142 fi
2143   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145   as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_try_run
2148
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159   $as_echo_n "(cached) " >&6
2160 else
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   eval "$3=yes"
2168 else
2169   eval "$3=no"
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_check_header_compile
2179
2180 # ac_fn_c_try_link LINENO
2181 # -----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded.
2183 ac_fn_c_try_link ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   rm -f conftest.$ac_objext conftest$ac_exeext
2187   if { { ac_try="$ac_link"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194   (eval "$ac_link") 2>conftest.err
2195   ac_status=$?
2196   if test -s conftest.err; then
2197     grep -v '^ *+' conftest.err >conftest.er1
2198     cat conftest.er1 >&5
2199     mv -f conftest.er1 conftest.err
2200   fi
2201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202   test $ac_status = 0; } && {
2203          test -z "$ac_c_werror_flag" ||
2204          test ! -s conftest.err
2205        } && test -s conftest$ac_exeext && {
2206          test "$cross_compiling" = yes ||
2207          test -x conftest$ac_exeext
2208        }; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214         ac_retval=1
2215 fi
2216   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2217   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2218   # interfere with the next link command; also delete a directory that is
2219   # left behind by Apple's compiler.  We do this before executing the actions.
2220   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222   as_fn_set_status $ac_retval
2223
2224 } # ac_fn_c_try_link
2225
2226 # ac_fn_cxx_try_compile LINENO
2227 # ----------------------------
2228 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2229 ac_fn_cxx_try_compile ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   rm -f conftest.$ac_objext
2233   if { { ac_try="$ac_compile"
2234 case "(($ac_try" in
2235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236   *) ac_try_echo=$ac_try;;
2237 esac
2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240   (eval "$ac_compile") 2>conftest.err
2241   ac_status=$?
2242   if test -s conftest.err; then
2243     grep -v '^ *+' conftest.err >conftest.er1
2244     cat conftest.er1 >&5
2245     mv -f conftest.er1 conftest.err
2246   fi
2247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248   test $ac_status = 0; } && {
2249          test -z "$ac_cxx_werror_flag" ||
2250          test ! -s conftest.err
2251        } && test -s conftest.$ac_objext; then :
2252   ac_retval=0
2253 else
2254   $as_echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257         ac_retval=1
2258 fi
2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260   as_fn_set_status $ac_retval
2261
2262 } # ac_fn_cxx_try_compile
2263
2264 # ac_fn_c_check_func LINENO FUNC VAR
2265 # ----------------------------------
2266 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2267 ac_fn_c_check_func ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273   $as_echo_n "(cached) " >&6
2274 else
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2279 #define $2 innocuous_$2
2280
2281 /* System header to define __stub macros and hopefully few prototypes,
2282     which can conflict with char $2 (); below.
2283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2284     <limits.h> exists even on freestanding compilers.  */
2285
2286 #ifdef __STDC__
2287 # include <limits.h>
2288 #else
2289 # include <assert.h>
2290 #endif
2291
2292 #undef $2
2293
2294 /* Override any GCC internal prototype to avoid an error.
2295    Use char because int might match the return type of a GCC
2296    builtin and then its argument prototype would still apply.  */
2297 #ifdef __cplusplus
2298 extern "C"
2299 #endif
2300 char $2 ();
2301 /* The GNU C library defines this for functions which it implements
2302     to always fail with ENOSYS.  Some functions are actually named
2303     something starting with __ and the normal name is an alias.  */
2304 #if defined __stub_$2 || defined __stub___$2
2305 choke me
2306 #endif
2307
2308 int
2309 main ()
2310 {
2311 return $2 ();
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_link "$LINENO"; then :
2317   eval "$3=yes"
2318 else
2319   eval "$3=no"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext \
2322     conftest$ac_exeext conftest.$ac_ext
2323 fi
2324 eval ac_res=\$$3
2325                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328
2329 } # ac_fn_c_check_func
2330
2331 # ac_fn_cxx_try_cpp LINENO
2332 # ------------------------
2333 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_cxx_try_cpp ()
2335 {
2336   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337   if { { ac_try="$ac_cpp conftest.$ac_ext"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345   ac_status=$?
2346   if test -s conftest.err; then
2347     grep -v '^ *+' conftest.err >conftest.er1
2348     cat conftest.er1 >&5
2349     mv -f conftest.er1 conftest.err
2350   fi
2351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352   test $ac_status = 0; } > conftest.i && {
2353          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2354          test ! -s conftest.err
2355        }; then :
2356   ac_retval=0
2357 else
2358   $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361     ac_retval=1
2362 fi
2363   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364   as_fn_set_status $ac_retval
2365
2366 } # ac_fn_cxx_try_cpp
2367
2368 # ac_fn_cxx_try_link LINENO
2369 # -------------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_cxx_try_link ()
2372 {
2373   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374   rm -f conftest.$ac_objext conftest$ac_exeext
2375   if { { ac_try="$ac_link"
2376 case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382   (eval "$ac_link") 2>conftest.err
2383   ac_status=$?
2384   if test -s conftest.err; then
2385     grep -v '^ *+' conftest.err >conftest.er1
2386     cat conftest.er1 >&5
2387     mv -f conftest.er1 conftest.err
2388   fi
2389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390   test $ac_status = 0; } && {
2391          test -z "$ac_cxx_werror_flag" ||
2392          test ! -s conftest.err
2393        } && test -s conftest$ac_exeext && {
2394          test "$cross_compiling" = yes ||
2395          test -x conftest$ac_exeext
2396        }; then :
2397   ac_retval=0
2398 else
2399   $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402         ac_retval=1
2403 fi
2404   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406   # interfere with the next link command; also delete a directory that is
2407   # left behind by Apple's compiler.  We do this before executing the actions.
2408   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410   as_fn_set_status $ac_retval
2411
2412 } # ac_fn_cxx_try_link
2413
2414 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2415 # -------------------------------------------
2416 # Tests whether TYPE exists after having included INCLUDES, setting cache
2417 # variable VAR accordingly.
2418 ac_fn_c_check_type ()
2419 {
2420   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if eval \${$3+:} false; then :
2424   $as_echo_n "(cached) " >&6
2425 else
2426   eval "$3=no"
2427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $4
2430 int
2431 main ()
2432 {
2433 if (sizeof ($2))
2434          return 0;
2435   ;
2436   return 0;
2437 }
2438 _ACEOF
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h.  */
2442 $4
2443 int
2444 main ()
2445 {
2446 if (sizeof (($2)))
2447             return 0;
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453
2454 else
2455   eval "$3=yes"
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 fi
2461 eval ac_res=\$$3
2462                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463 $as_echo "$ac_res" >&6; }
2464   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2465
2466 } # ac_fn_c_check_type
2467
2468 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2469 # --------------------------------------------
2470 # Tries to find the compile-time value of EXPR in a program that includes
2471 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2472 # computed
2473 ac_fn_c_compute_int ()
2474 {
2475   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476   if test "$cross_compiling" = yes; then
2477     # Depending upon the size, compute the lo and hi bounds.
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 $4
2481 int
2482 main ()
2483 {
2484 static int test_array [1 - 2 * !(($2) >= 0)];
2485 test_array [0] = 0;
2486 return test_array [0];
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 if ac_fn_c_try_compile "$LINENO"; then :
2493   ac_lo=0 ac_mid=0
2494   while :; do
2495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h.  */
2497 $4
2498 int
2499 main ()
2500 {
2501 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2502 test_array [0] = 0;
2503 return test_array [0];
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   ac_hi=$ac_mid; break
2511 else
2512   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2513                         if test $ac_lo -le $ac_mid; then
2514                           ac_lo= ac_hi=
2515                           break
2516                         fi
2517                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520   done
2521 else
2522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h.  */
2524 $4
2525 int
2526 main ()
2527 {
2528 static int test_array [1 - 2 * !(($2) < 0)];
2529 test_array [0] = 0;
2530 return test_array [0];
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537   ac_hi=-1 ac_mid=-1
2538   while :; do
2539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h.  */
2541 $4
2542 int
2543 main ()
2544 {
2545 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2546 test_array [0] = 0;
2547 return test_array [0];
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554   ac_lo=$ac_mid; break
2555 else
2556   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2557                         if test $ac_mid -le $ac_hi; then
2558                           ac_lo= ac_hi=
2559                           break
2560                         fi
2561                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2562 fi
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564   done
2565 else
2566   ac_lo= ac_hi=
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 # Binary search between lo and hi bounds.
2572 while test "x$ac_lo" != "x$ac_hi"; do
2573   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h.  */
2576 $4
2577 int
2578 main ()
2579 {
2580 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2581 test_array [0] = 0;
2582 return test_array [0];
2583
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589   ac_hi=$ac_mid
2590 else
2591   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 done
2595 case $ac_lo in #((
2596 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2597 '') ac_retval=1 ;;
2598 esac
2599   else
2600     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h.  */
2602 $4
2603 static long int longval () { return $2; }
2604 static unsigned long int ulongval () { return $2; }
2605 #include <stdio.h>
2606 #include <stdlib.h>
2607 int
2608 main ()
2609 {
2610
2611   FILE *f = fopen ("conftest.val", "w");
2612   if (! f)
2613     return 1;
2614   if (($2) < 0)
2615     {
2616       long int i = longval ();
2617       if (i != ($2))
2618         return 1;
2619       fprintf (f, "%ld", i);
2620     }
2621   else
2622     {
2623       unsigned long int i = ulongval ();
2624       if (i != ($2))
2625         return 1;
2626       fprintf (f, "%lu", i);
2627     }
2628   /* Do not output a trailing newline, as this causes \r\n confusion
2629      on some platforms.  */
2630   return ferror (f) || fclose (f) != 0;
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_run "$LINENO"; then :
2637   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2638 else
2639   ac_retval=1
2640 fi
2641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2642   conftest.$ac_objext conftest.beam conftest.$ac_ext
2643 rm -f conftest.val
2644
2645   fi
2646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2647   as_fn_set_status $ac_retval
2648
2649 } # ac_fn_c_compute_int
2650
2651 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2652 # ---------------------------------------------
2653 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2654 # accordingly.
2655 ac_fn_c_check_decl ()
2656 {
2657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658   as_decl_name=`echo $2|sed 's/ *(.*//'`
2659   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2661 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2662 if eval \${$3+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $4
2668 int
2669 main ()
2670 {
2671 #ifndef $as_decl_name
2672 #ifdef __cplusplus
2673   (void) $as_decl_use;
2674 #else
2675   (void) $as_decl_name;
2676 #endif
2677 #endif
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2684   eval "$3=yes"
2685 else
2686   eval "$3=no"
2687 fi
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 eval ac_res=\$$3
2691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695 } # ac_fn_c_check_decl
2696
2697 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2698 # ----------------------------------------------------
2699 # Tries to find if the field MEMBER exists in type AGGR, after including
2700 # INCLUDES, setting cache variable VAR accordingly.
2701 ac_fn_c_check_member ()
2702 {
2703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2705 $as_echo_n "checking for $2.$3... " >&6; }
2706 if eval \${$4+:} false; then :
2707   $as_echo_n "(cached) " >&6
2708 else
2709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h.  */
2711 $5
2712 int
2713 main ()
2714 {
2715 static $2 ac_aggr;
2716 if (ac_aggr.$3)
2717 return 0;
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 if ac_fn_c_try_compile "$LINENO"; then :
2723   eval "$4=yes"
2724 else
2725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h.  */
2727 $5
2728 int
2729 main ()
2730 {
2731 static $2 ac_aggr;
2732 if (sizeof ac_aggr.$3)
2733 return 0;
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739   eval "$4=yes"
2740 else
2741   eval "$4=no"
2742 fi
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 fi
2747 eval ac_res=\$$4
2748                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751
2752 } # ac_fn_c_check_member
2753 cat >config.log <<_ACEOF
2754 This file contains any messages produced by compilers while
2755 running configure, to aid debugging if configure makes a mistake.
2756
2757 It was created by ntp $as_me 4.2.8p9, which was
2758 generated by GNU Autoconf 2.69.  Invocation command line was
2759
2760   $ $0 $@
2761
2762 _ACEOF
2763 exec 5>>config.log
2764 {
2765 cat <<_ASUNAME
2766 ## --------- ##
2767 ## Platform. ##
2768 ## --------- ##
2769
2770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2775
2776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2777 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2778
2779 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2780 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2782 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2783 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2784 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2785 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2786
2787 _ASUNAME
2788
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     $as_echo "PATH: $as_dir"
2795   done
2796 IFS=$as_save_IFS
2797
2798 } >&5
2799
2800 cat >&5 <<_ACEOF
2801
2802
2803 ## ----------- ##
2804 ## Core tests. ##
2805 ## ----------- ##
2806
2807 _ACEOF
2808
2809
2810 # Keep a trace of the command line.
2811 # Strip out --no-create and --no-recursion so they do not pile up.
2812 # Strip out --silent because we don't want to record it for future runs.
2813 # Also quote any args containing shell meta-characters.
2814 # Make two passes to allow for proper duplicate-argument suppression.
2815 ac_configure_args=
2816 ac_configure_args0=
2817 ac_configure_args1=
2818 ac_must_keep_next=false
2819 for ac_pass in 1 2
2820 do
2821   for ac_arg
2822   do
2823     case $ac_arg in
2824     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2825     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2826     | -silent | --silent | --silen | --sile | --sil)
2827       continue ;;
2828     *\'*)
2829       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2830     esac
2831     case $ac_pass in
2832     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2833     2)
2834       as_fn_append ac_configure_args1 " '$ac_arg'"
2835       if test $ac_must_keep_next = true; then
2836         ac_must_keep_next=false # Got value, back to normal.
2837       else
2838         case $ac_arg in
2839           *=* | --config-cache | -C | -disable-* | --disable-* \
2840           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2841           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2842           | -with-* | --with-* | -without-* | --without-* | --x)
2843             case "$ac_configure_args0 " in
2844               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2845             esac
2846             ;;
2847           -* ) ac_must_keep_next=true ;;
2848         esac
2849       fi
2850       as_fn_append ac_configure_args " '$ac_arg'"
2851       ;;
2852     esac
2853   done
2854 done
2855 { ac_configure_args0=; unset ac_configure_args0;}
2856 { ac_configure_args1=; unset ac_configure_args1;}
2857
2858 # When interrupted or exit'd, cleanup temporary files, and complete
2859 # config.log.  We remove comments because anyway the quotes in there
2860 # would cause problems or look ugly.
2861 # WARNING: Use '\'' to represent an apostrophe within the trap.
2862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2863 trap 'exit_status=$?
2864   # Save into config.log some information that might help in debugging.
2865   {
2866     echo
2867
2868     $as_echo "## ---------------- ##
2869 ## Cache variables. ##
2870 ## ---------------- ##"
2871     echo
2872     # The following way of writing the cache mishandles newlines in values,
2873 (
2874   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2875     eval ac_val=\$$ac_var
2876     case $ac_val in #(
2877     *${as_nl}*)
2878       case $ac_var in #(
2879       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2881       esac
2882       case $ac_var in #(
2883       _ | IFS | as_nl) ;; #(
2884       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2885       *) { eval $ac_var=; unset $ac_var;} ;;
2886       esac ;;
2887     esac
2888   done
2889   (set) 2>&1 |
2890     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2891     *${as_nl}ac_space=\ *)
2892       sed -n \
2893         "s/'\''/'\''\\\\'\'''\''/g;
2894           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2895       ;; #(
2896     *)
2897       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2898       ;;
2899     esac |
2900     sort
2901 )
2902     echo
2903
2904     $as_echo "## ----------------- ##
2905 ## Output variables. ##
2906 ## ----------------- ##"
2907     echo
2908     for ac_var in $ac_subst_vars
2909     do
2910       eval ac_val=\$$ac_var
2911       case $ac_val in
2912       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913       esac
2914       $as_echo "$ac_var='\''$ac_val'\''"
2915     done | sort
2916     echo
2917
2918     if test -n "$ac_subst_files"; then
2919       $as_echo "## ------------------- ##
2920 ## File substitutions. ##
2921 ## ------------------- ##"
2922       echo
2923       for ac_var in $ac_subst_files
2924       do
2925         eval ac_val=\$$ac_var
2926         case $ac_val in
2927         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2928         esac
2929         $as_echo "$ac_var='\''$ac_val'\''"
2930       done | sort
2931       echo
2932     fi
2933
2934     if test -s confdefs.h; then
2935       $as_echo "## ----------- ##
2936 ## confdefs.h. ##
2937 ## ----------- ##"
2938       echo
2939       cat confdefs.h
2940       echo
2941     fi
2942     test "$ac_signal" != 0 &&
2943       $as_echo "$as_me: caught signal $ac_signal"
2944     $as_echo "$as_me: exit $exit_status"
2945   } >&5
2946   rm -f core *.core core.conftest.* &&
2947     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2948     exit $exit_status
2949 ' 0
2950 for ac_signal in 1 2 13 15; do
2951   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952 done
2953 ac_signal=0
2954
2955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2956 rm -f -r conftest* confdefs.h
2957
2958 $as_echo "/* confdefs.h */" > confdefs.h
2959
2960 # Predefined preprocessor variables.
2961
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_NAME "$PACKAGE_NAME"
2964 _ACEOF
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2968 _ACEOF
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2972 _ACEOF
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_STRING "$PACKAGE_STRING"
2976 _ACEOF
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2980 _ACEOF
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_URL "$PACKAGE_URL"
2984 _ACEOF
2985
2986
2987 # Let the site file select an alternate cache file if it wants to.
2988 # Prefer an explicitly selected file to automatically selected ones.
2989 ac_site_file1=NONE
2990 ac_site_file2=NONE
2991 if test -n "$CONFIG_SITE"; then
2992   # We do not want a PATH search for config.site.
2993   case $CONFIG_SITE in #((
2994     -*)  ac_site_file1=./$CONFIG_SITE;;
2995     */*) ac_site_file1=$CONFIG_SITE;;
2996     *)   ac_site_file1=./$CONFIG_SITE;;
2997   esac
2998 elif test "x$prefix" != xNONE; then
2999   ac_site_file1=$prefix/share/config.site
3000   ac_site_file2=$prefix/etc/config.site
3001 else
3002   ac_site_file1=$ac_default_prefix/share/config.site
3003   ac_site_file2=$ac_default_prefix/etc/config.site
3004 fi
3005 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3006 do
3007   test "x$ac_site_file" = xNONE && continue
3008   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3009     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3010 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3011     sed 's/^/| /' "$ac_site_file" >&5
3012     . "$ac_site_file" \
3013       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "failed to load site script $ac_site_file
3016 See \`config.log' for more details" "$LINENO" 5; }
3017   fi
3018 done
3019
3020 if test -r "$cache_file"; then
3021   # Some versions of bash will fail to source /dev/null (special files
3022   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3023   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3024     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3025 $as_echo "$as_me: loading cache $cache_file" >&6;}
3026     case $cache_file in
3027       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3028       *)                      . "./$cache_file";;
3029     esac
3030   fi
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3033 $as_echo "$as_me: creating cache $cache_file" >&6;}
3034   >$cache_file
3035 fi
3036
3037 as_fn_append ac_header_list " stdarg.h"
3038 # Check that the precious variables saved in the cache have kept the same
3039 # value.
3040 ac_cache_corrupted=false
3041 for ac_var in $ac_precious_vars; do
3042   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3043   eval ac_new_set=\$ac_env_${ac_var}_set
3044   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3045   eval ac_new_val=\$ac_env_${ac_var}_value
3046   case $ac_old_set,$ac_new_set in
3047     set,)
3048       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3049 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3050       ac_cache_corrupted=: ;;
3051     ,set)
3052       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3053 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3054       ac_cache_corrupted=: ;;
3055     ,);;
3056     *)
3057       if test "x$ac_old_val" != "x$ac_new_val"; then
3058         # differences in whitespace do not lead to failure.
3059         ac_old_val_w=`echo x $ac_old_val`
3060         ac_new_val_w=`echo x $ac_new_val`
3061         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3062           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3063 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3064           ac_cache_corrupted=:
3065         else
3066           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3067 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3068           eval $ac_var=\$ac_old_val
3069         fi
3070         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3071 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3072         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3073 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3074       fi;;
3075   esac
3076   # Pass precious variables to config.status.
3077   if test "$ac_new_set" = set; then
3078     case $ac_new_val in
3079     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3080     *) ac_arg=$ac_var=$ac_new_val ;;
3081     esac
3082     case " $ac_configure_args " in
3083       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3084       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3085     esac
3086   fi
3087 done
3088 if $ac_cache_corrupted; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3092 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3093   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3094 fi
3095 ## -------------------- ##
3096 ## Main body of script. ##
3097 ## -------------------- ##
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104
3105
3106
3107 ac_aux_dir=
3108 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
3109   if test -f "$ac_dir/install-sh"; then
3110     ac_aux_dir=$ac_dir
3111     ac_install_sh="$ac_aux_dir/install-sh -c"
3112     break
3113   elif test -f "$ac_dir/install.sh"; then
3114     ac_aux_dir=$ac_dir
3115     ac_install_sh="$ac_aux_dir/install.sh -c"
3116     break
3117   elif test -f "$ac_dir/shtool"; then
3118     ac_aux_dir=$ac_dir
3119     ac_install_sh="$ac_aux_dir/shtool install -c"
3120     break
3121   fi
3122 done
3123 if test -z "$ac_aux_dir"; then
3124   as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3125 fi
3126
3127 # These three variables are undocumented and unsupported,
3128 # and are intended to be withdrawn in a future Autoconf release.
3129 # They can cause serious problems if a builder's source tree is in a directory
3130 # whose full name contains unusual characters.
3131 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3132 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3133 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3134
3135
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143
3144
3145
3146
3147 # Bump ntp_configure_cache_version for each change to configure.ac or
3148 # .m4 files which invalidates cached values from previous configure
3149 # runs.
3150 #
3151 # If the change affects cache variables used only by the main NTP
3152 # configure.ac, then only its version number should be bumped, while
3153 # the subdir configure.ac version numbers should be unchanged.  The
3154 # same is true for a test/variable that is used only by one subdir
3155 # being changed incompatibly; only that subdir's cache version needs
3156 # bumping.
3157 #
3158 # If a change affects variables shared by all NTP configure scripts,
3159 # please bump the version numbers of each.  If you are not sure, the
3160 # safe choice is to bump all on any cache-invalidating change.
3161 #
3162 # In order to avoid the risk of version stamp collision between -stable
3163 # and -dev branches, do not simply increment the version, instead use
3164 # the date YYYYMMDD optionally with -HHMM if there is more than one
3165 # bump in a day.
3166
3167 ntp_configure_cache_version=20120806
3168
3169 # When the cache version of config.cache and configure do not
3170 # match, NTP_CACHEVERSION will flush the cache.
3171
3172
3173
3174     ntp_cache_flush=1
3175
3176     case "$ntp_cv_main_cache_version" in
3177      $ntp_configure_cache_version)
3178         # same version, good
3179         ntp_cache_flush=0
3180         ;;
3181      '')
3182         # No cache, predates ntp_cv_main_cache_version, or is empty.
3183         case "$cache_file" in
3184          /dev/null)
3185             ntp_cache_flush=0
3186             ;;
3187          *)
3188             case "$NTP_CACHEVERSION_PARENT" in
3189              '')
3190                 # Do not clear the cache immediately after it is created
3191                 # empty as it is noisy.  Differentiate a newly-created
3192                 # config.cache from one predating the cache version
3193                 # mechanism by looking for the first cached variable set
3194                 # by Autoconf
3195                 case "$ac_cv_path_install" in
3196                  '')
3197                     # empty config.cache file
3198                     ntp_cache_flush=0
3199                 esac
3200                 ;;
3201              *)
3202                 # Parent configure just created cache from empty,
3203                 # flushing would be counterproductive.
3204                 ntp_cache_flush=0;
3205                 ;;
3206             esac
3207         esac
3208         ;;
3209      *)
3210         # configure cache version mismatches config.cache version
3211         ;;
3212     esac
3213
3214     case "$ntp_cache_flush" in
3215      1)
3216         c_version="${ntp_cv_main_cache_version:-(no version found)}"
3217
3218         # Do we flush all variables or exclude others' version stamps?
3219
3220         case "$NTP_CACHEVERSION_PARENT" in
3221          '')
3222             # Clear all *_cv_* variables including our child subdirs'
3223             # ntp_cv_*_cache_version variables.  This prevents subdir
3224             # configure scripts from noticing a version mismatch just
3225             # after the top configure in the invocation cleared and
3226             # recreated the cache.
3227
3228             c_varname_list=`set |
3229                             sed -n -e 's/=.*$//' \
3230                                    -e '/_cv_/p'
3231                            `
3232             ;;
3233          *)
3234             # This is not the top configure this particular invocation.
3235             # Clear all *_cv_* variables sparing the version stamps
3236             # of other configure scripts, so we don't trigger
3237             # useless repeated clearings.
3238
3239             c_varname_list=`set |
3240                             sed -n -e 's/=.*$//' \
3241                                    -e '/ntp_cv_.*_cache_version/d' \
3242                                    -e '/_cv_/p'
3243                            `
3244         esac
3245
3246         for c_varname in $c_varname_list
3247         do
3248                                                     { eval $c_varname=; unset $c_varname; }
3249         done
3250
3251         { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3252 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3253         { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3254 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3255         { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3256 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3257         { c_varname=; unset c_varname;}
3258         { c_varname_list=; unset c_varname_list;}
3259         { c_version=; unset c_version;}
3260     esac
3261
3262     { ntp_cache_flush=; unset ntp_cache_flush;}
3263
3264     # save configure version in config.cache for next time
3265     ntp_cv_main_cache_version="$ntp_configure_cache_version"
3266
3267     # let any subdir configure.ac NTP_CACHEVERSION invocations
3268     # know they are not the top level.
3269     NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3270
3271
3272 am__api_version='1.15'
3273
3274 # Find a good install program.  We prefer a C program (faster),
3275 # so one script is as good as another.  But avoid the broken or
3276 # incompatible versions:
3277 # SysV /etc/install, /usr/sbin/install
3278 # SunOS /usr/etc/install
3279 # IRIX /sbin/install
3280 # AIX /bin/install
3281 # AmigaOS /C/install, which installs bootblocks on floppy discs
3282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3285 # OS/2's system install, which has a completely different semantic
3286 # ./install, which can be erroneously created by make from ./install.sh.
3287 # Reject install programs that cannot install multiple files.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3289 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3290 if test -z "$INSTALL"; then
3291 if ${ac_cv_path_install+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     # Account for people who put trailing slashes in PATH elements.
3300 case $as_dir/ in #((
3301   ./ | .// | /[cC]/* | \
3302   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3303   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3304   /usr/ucb/* ) ;;
3305   *)
3306     # OSF1 and SCO ODT 3.0 have their own names for install.
3307     # Don't use installbsd from OSF since it installs stuff as root
3308     # by default.
3309     for ac_prog in ginstall scoinst install; do
3310       for ac_exec_ext in '' $ac_executable_extensions; do
3311         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3312           if test $ac_prog = install &&
3313             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314             # AIX install.  It has an incompatible calling convention.
3315             :
3316           elif test $ac_prog = install &&
3317             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318             # program-specific install script used by HP pwplus--don't use.
3319             :
3320           else
3321             rm -rf conftest.one conftest.two conftest.dir
3322             echo one > conftest.one
3323             echo two > conftest.two
3324             mkdir conftest.dir
3325             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3326               test -s conftest.one && test -s conftest.two &&
3327               test -s conftest.dir/conftest.one &&
3328               test -s conftest.dir/conftest.two
3329             then
3330               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3331               break 3
3332             fi
3333           fi
3334         fi
3335       done
3336     done
3337     ;;
3338 esac
3339
3340   done
3341 IFS=$as_save_IFS
3342
3343 rm -rf conftest.one conftest.two conftest.dir
3344
3345 fi
3346   if test "${ac_cv_path_install+set}" = set; then
3347     INSTALL=$ac_cv_path_install
3348   else
3349     # As a last resort, use the slow shell script.  Don't cache a
3350     # value for INSTALL within a source directory, because that will
3351     # break other packages using the cache if that directory is
3352     # removed, or if the value is a relative name.
3353     INSTALL=$ac_install_sh
3354   fi
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3357 $as_echo "$INSTALL" >&6; }
3358
3359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3360 # It thinks the first close brace ends the variable substitution.
3361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3362
3363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3364
3365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3366
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3368 $as_echo_n "checking whether build environment is sane... " >&6; }
3369 # Reject unsafe characters in $srcdir or the absolute working directory
3370 # name.  Accept space and tab only in the latter.
3371 am_lf='
3372 '
3373 case `pwd` in
3374   *[\\\"\#\$\&\'\`$am_lf]*)
3375     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3376 esac
3377 case $srcdir in
3378   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3379     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3380 esac
3381
3382 # Do 'set' in a subshell so we don't clobber the current shell's
3383 # arguments.  Must try -L first in case configure is actually a
3384 # symlink; some systems play weird games with the mod time of symlinks
3385 # (eg FreeBSD returns the mod time of the symlink's containing
3386 # directory).
3387 if (
3388    am_has_slept=no
3389    for am_try in 1 2; do
3390      echo "timestamp, slept: $am_has_slept" > conftest.file
3391      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3392      if test "$*" = "X"; then
3393         # -L didn't work.
3394         set X `ls -t "$srcdir/configure" conftest.file`
3395      fi
3396      if test "$*" != "X $srcdir/configure conftest.file" \
3397         && test "$*" != "X conftest.file $srcdir/configure"; then
3398
3399         # If neither matched, then we have a broken ls.  This can happen
3400         # if, for instance, CONFIG_SHELL is bash and it inherits a
3401         # broken ls alias from the environment.  This has actually
3402         # happened.  Such a system could not be considered "sane".
3403         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3404   alias in your environment" "$LINENO" 5
3405      fi
3406      if test "$2" = conftest.file || test $am_try -eq 2; then
3407        break
3408      fi
3409      # Just in case.
3410      sleep 1
3411      am_has_slept=yes
3412    done
3413    test "$2" = conftest.file
3414    )
3415 then
3416    # Ok.
3417    :
3418 else
3419    as_fn_error $? "newly created file is older than distributed files!
3420 Check your system clock" "$LINENO" 5
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423 $as_echo "yes" >&6; }
3424 # If we didn't sleep, we still need to ensure time stamps of config.status and
3425 # generated files are strictly newer.
3426 am_sleep_pid=
3427 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3428   ( sleep 1 ) &
3429   am_sleep_pid=$!
3430 fi
3431
3432 rm -f conftest.file
3433
3434 test "$program_prefix" != NONE &&
3435   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3436 # Use a double $ so make ignores it.
3437 test "$program_suffix" != NONE &&
3438   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3439 # Double any \ or $.
3440 # By default was `s,x,x', remove it if useless.
3441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3443
3444 # Expand $ac_aux_dir to an absolute path.
3445 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3446
3447 if test x"${MISSING+set}" != xset; then
3448   case $am_aux_dir in
3449   *\ * | *\     *)
3450     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3451   *)
3452     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3453   esac
3454 fi
3455 # Use eval to expand $SHELL
3456 if eval "$MISSING --is-lightweight"; then
3457   am_missing_run="$MISSING "
3458 else
3459   am_missing_run=
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3461 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3462 fi
3463
3464 if test x"${install_sh+set}" != xset; then
3465   case $am_aux_dir in
3466   *\ * | *\     *)
3467     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3468   *)
3469     install_sh="\${SHELL} $am_aux_dir/install-sh"
3470   esac
3471 fi
3472
3473 # Installed binaries are usually stripped using 'strip' when the user
3474 # run "make install-strip".  However 'strip' might not be the right
3475 # tool to use in cross-compilation environments, therefore Automake
3476 # will honor the 'STRIP' environment variable to overrule this program.
3477 if test "$cross_compiling" != no; then
3478   if test -n "$ac_tool_prefix"; then
3479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}strip; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_STRIP+:} false; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   if test -n "$STRIP"; then
3487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501   done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 STRIP=$ac_cv_prog_STRIP
3507 if test -n "$STRIP"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3509 $as_echo "$STRIP" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$ac_cv_prog_STRIP"; then
3518   ac_ct_STRIP=$STRIP
3519   # Extract the first word of "strip", so it can be a program name with args.
3520 set dummy strip; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$ac_ct_STRIP"; then
3527   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     for ac_exec_ext in '' $ac_executable_extensions; do
3535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536     ac_cv_prog_ac_ct_STRIP="strip"
3537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541   done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3547 if test -n "$ac_ct_STRIP"; then
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3549 $as_echo "$ac_ct_STRIP" >&6; }
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555   if test "x$ac_ct_STRIP" = x; then
3556     STRIP=":"
3557   else
3558     case $cross_compiling:$ac_tool_warned in
3559 yes:)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3562 ac_tool_warned=yes ;;
3563 esac
3564     STRIP=$ac_ct_STRIP
3565   fi
3566 else
3567   STRIP="$ac_cv_prog_STRIP"
3568 fi
3569
3570 fi
3571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3575 if test -z "$MKDIR_P"; then
3576   if ${ac_cv_path_mkdir+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3581 do
3582   IFS=$as_save_IFS
3583   test -z "$as_dir" && as_dir=.
3584     for ac_prog in mkdir gmkdir; do
3585          for ac_exec_ext in '' $ac_executable_extensions; do
3586            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3587            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3588              'mkdir (GNU coreutils) '* | \
3589              'mkdir (coreutils) '* | \
3590              'mkdir (fileutils) '4.1*)
3591                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3592                break 3;;
3593            esac
3594          done
3595        done
3596   done
3597 IFS=$as_save_IFS
3598
3599 fi
3600
3601   test -d ./--version && rmdir ./--version
3602   if test "${ac_cv_path_mkdir+set}" = set; then
3603     MKDIR_P="$ac_cv_path_mkdir -p"
3604   else
3605     # As a last resort, use the slow shell script.  Don't cache a
3606     # value for MKDIR_P within a source directory, because that will
3607     # break other packages using the cache if that directory is
3608     # removed, or if the value is a relative name.
3609     MKDIR_P="$ac_install_sh -d"
3610   fi
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3613 $as_echo "$MKDIR_P" >&6; }
3614
3615 for ac_prog in gawk mawk nawk awk
3616 do
3617   # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if ${ac_cv_prog_AWK+:} false; then :
3622   $as_echo_n "(cached) " >&6
3623 else
3624   if test -n "$AWK"; then
3625   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632     for ac_exec_ext in '' $ac_executable_extensions; do
3633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634     ac_cv_prog_AWK="$ac_prog"
3635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636     break 2
3637   fi
3638 done
3639   done
3640 IFS=$as_save_IFS
3641
3642 fi
3643 fi
3644 AWK=$ac_cv_prog_AWK
3645 if test -n "$AWK"; then
3646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3647 $as_echo "$AWK" >&6; }
3648 else
3649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3651 fi
3652
3653
3654   test -n "$AWK" && break
3655 done
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3658 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3659 set x ${MAKE-make}
3660 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3661 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   cat >conftest.make <<\_ACEOF
3665 SHELL = /bin/sh
3666 all:
3667         @echo '@@@%%%=$(MAKE)=@@@%%%'
3668 _ACEOF
3669 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3670 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3671   *@@@%%%=?*=@@@%%%*)
3672     eval ac_cv_prog_make_${ac_make}_set=yes;;
3673   *)
3674     eval ac_cv_prog_make_${ac_make}_set=no;;
3675 esac
3676 rm -f conftest.make
3677 fi
3678 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680 $as_echo "yes" >&6; }
3681   SET_MAKE=
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685   SET_MAKE="MAKE=${MAKE-make}"
3686 fi
3687
3688 rm -rf .tst 2>/dev/null
3689 mkdir .tst 2>/dev/null
3690 if test -d .tst; then
3691   am__leading_dot=.
3692 else
3693   am__leading_dot=_
3694 fi
3695 rmdir .tst 2>/dev/null
3696
3697 # Check whether --enable-silent-rules was given.
3698 if test "${enable_silent_rules+set}" = set; then :
3699   enableval=$enable_silent_rules;
3700 fi
3701
3702 case $enable_silent_rules in # (((
3703   yes) AM_DEFAULT_VERBOSITY=0;;
3704    no) AM_DEFAULT_VERBOSITY=1;;
3705     *) AM_DEFAULT_VERBOSITY=1;;
3706 esac
3707 am_make=${MAKE-make}
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3709 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3710 if ${am_cv_make_support_nested_variables+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   if $as_echo 'TRUE=$(BAR$(V))
3714 BAR0=false
3715 BAR1=true
3716 V=1
3717 am__doit:
3718         @$(TRUE)
3719 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3720   am_cv_make_support_nested_variables=yes
3721 else
3722   am_cv_make_support_nested_variables=no
3723 fi
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3726 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3727 if test $am_cv_make_support_nested_variables = yes; then
3728     AM_V='$(V)'
3729   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3730 else
3731   AM_V=$AM_DEFAULT_VERBOSITY
3732   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3733 fi
3734 AM_BACKSLASH='\'
3735
3736 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3737   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3738   # is not polluted with repeated "-I."
3739   am__isrc=' -I$(srcdir)'
3740   # test to see if srcdir already configured
3741   if test -f $srcdir/config.status; then
3742     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3743   fi
3744 fi
3745
3746 # test whether we have cygpath
3747 if test -z "$CYGPATH_W"; then
3748   if (cygpath --version) >/dev/null 2>/dev/null; then
3749     CYGPATH_W='cygpath -w'
3750   else
3751     CYGPATH_W=echo
3752   fi
3753 fi
3754
3755
3756 # Define the identity of the package.
3757  PACKAGE='ntp'
3758  VERSION='4.2.8p9'
3759
3760
3761 cat >>confdefs.h <<_ACEOF
3762 #define PACKAGE "$PACKAGE"
3763 _ACEOF
3764
3765
3766 cat >>confdefs.h <<_ACEOF
3767 #define VERSION "$VERSION"
3768 _ACEOF
3769
3770 # Some tools Automake needs.
3771
3772 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3773
3774
3775 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3776
3777
3778 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3779
3780
3781 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3782
3783
3784 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3785
3786 # For better backward compatibility.  To be removed once Automake 1.9.x
3787 # dies out for good.  For more background, see:
3788 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3789 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3790 mkdir_p='$(MKDIR_P)'
3791
3792 # We need awk for the "check" target (and possibly the TAP driver).  The
3793 # system "awk" is bad on some platforms.
3794 # Always define AMTAR for backward compatibility.  Yes, it's still used
3795 # in the wild :-(  We should find a proper way to deprecate it ...
3796 AMTAR='$${TAR-tar}'
3797
3798
3799 # We'll loop over all known methods to create a tar archive until one works.
3800 _am_tools='gnutar  pax cpio none'
3801
3802 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3803
3804
3805
3806
3807
3808
3809 # POSIX will say in a future version that running "rm -f" with no argument
3810 # is OK; and we want to be able to make that assumption in our Makefile
3811 # recipes.  So use an aggressive probe to check that the usage we want is
3812 # actually supported "in the wild" to an acceptable degree.
3813 # See automake bug#10828.
3814 # To make any issue more visible, cause the running configure to be aborted
3815 # by default if the 'rm' program in use doesn't match our expectations; the
3816 # user can still override this though.
3817 if rm -f && rm -fr && rm -rf; then : OK; else
3818   cat >&2 <<'END'
3819 Oops!
3820
3821 Your 'rm' program seems unable to run without file operands specified
3822 on the command line, even when the '-f' option is present.  This is contrary
3823 to the behaviour of most rm programs out there, and not conforming with
3824 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3825
3826 Please tell bug-automake@gnu.org about your system, including the value
3827 of your $PATH and any error possibly output before this message.  This
3828 can help us improve future automake versions.
3829
3830 END
3831   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3832     echo 'Configuration will proceed anyway, since you have set the' >&2
3833     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3834     echo >&2
3835   else
3836     cat >&2 <<'END'
3837 Aborting the configuration process, to ensure you take notice of the issue.
3838
3839 You can download and install GNU coreutils to get an 'rm' implementation
3840 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3841
3842 If you want to complete the configuration process using your problematic
3843 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3844 to "yes", and re-run configure.
3845
3846 END
3847     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3848   fi
3849 fi
3850
3851
3852 # Check whether --enable-silent-rules was given.
3853 if test "${enable_silent_rules+set}" = set; then :
3854   enableval=$enable_silent_rules;
3855 fi
3856
3857 case $enable_silent_rules in # (((
3858   yes) AM_DEFAULT_VERBOSITY=0;;
3859    no) AM_DEFAULT_VERBOSITY=1;;
3860     *) AM_DEFAULT_VERBOSITY=0;;
3861 esac
3862 am_make=${MAKE-make}
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3864 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3865 if ${am_cv_make_support_nested_variables+:} false; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   if $as_echo 'TRUE=$(BAR$(V))
3869 BAR0=false
3870 BAR1=true
3871 V=1
3872 am__doit:
3873         @$(TRUE)
3874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3875   am_cv_make_support_nested_variables=yes
3876 else
3877   am_cv_make_support_nested_variables=no
3878 fi
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3881 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3882 if test $am_cv_make_support_nested_variables = yes; then
3883     AM_V='$(V)'
3884   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3885 else
3886   AM_V=$AM_DEFAULT_VERBOSITY
3887   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3888 fi
3889 AM_BACKSLASH='\'
3890
3891
3892 # Make sure we can run config.sub.
3893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3894   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3897 $as_echo_n "checking build system type... " >&6; }
3898 if ${ac_cv_build+:} false; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   ac_build_alias=$build_alias
3902 test "x$ac_build_alias" = x &&
3903   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3904 test "x$ac_build_alias" = x &&
3905   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3908
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3911 $as_echo "$ac_cv_build" >&6; }
3912 case $ac_cv_build in
3913 *-*-*) ;;
3914 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3915 esac
3916 build=$ac_cv_build
3917 ac_save_IFS=$IFS; IFS='-'
3918 set x $ac_cv_build
3919 shift
3920 build_cpu=$1
3921 build_vendor=$2
3922 shift; shift
3923 # Remember, the first character of IFS is used to create $*,
3924 # except with old shells:
3925 build_os=$*
3926 IFS=$ac_save_IFS
3927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3928
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3931 $as_echo_n "checking host system type... " >&6; }
3932 if ${ac_cv_host+:} false; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   if test "x$host_alias" = x; then
3936   ac_cv_host=$ac_cv_build
3937 else
3938   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3939     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3940 fi
3941
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3944 $as_echo "$ac_cv_host" >&6; }
3945 case $ac_cv_host in
3946 *-*-*) ;;
3947 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3948 esac
3949 host=$ac_cv_host
3950 ac_save_IFS=$IFS; IFS='-'
3951 set x $ac_cv_host
3952 shift
3953 host_cpu=$1
3954 host_vendor=$2
3955 shift; shift
3956 # Remember, the first character of IFS is used to create $*,
3957 # except with old shells:
3958 host_os=$*
3959 IFS=$ac_save_IFS
3960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3961
3962
3963
3964 cat >>confdefs.h <<_ACEOF
3965 #define STR_SYSTEM "$host"
3966 _ACEOF
3967
3968 ac_config_headers="$ac_config_headers config.h"
3969
3970
3971 ntp_atom_ok=${ntp_atom_ok=no}
3972 ntp_oncore_ok=${ntp_oncore_ok=no}
3973 ntp_parse_ok=${ntp_parse_ok=no}
3974 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3975 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3976
3977 DEPDIR="${am__leading_dot}deps"
3978
3979 ac_config_commands="$ac_config_commands depfiles"
3980
3981
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3984 am__doit:
3985         @echo this is the am__doit target
3986 .PHONY: am__doit
3987 END
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3991 am__include="#"
3992 am__quote=
3993 _am_result=none
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from 'make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
3999   am__include=include
4000   am__quote=
4001   _am_result=GNU
4002   ;;
4003 esac
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006    echo '.include "confinc"' > confmf
4007    case `$am_make -s -f confmf 2> /dev/null` in #(
4008    *the\ am__doit\ target*)
4009      am__include=.include
4010      am__quote="\""
4011      _am_result=BSD
4012      ;;
4013    esac
4014 fi
4015
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4020
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then :
4023   enableval=$enable_dependency_tracking;
4024 fi
4025
4026 if test "x$enable_dependency_tracking" != xno; then
4027   am_depcomp="$ac_aux_dir/depcomp"
4028   AMDEPBACKSLASH='\'
4029   am__nodep='_no'
4030 fi
4031  if test "x$enable_dependency_tracking" != xno; then
4032   AMDEP_TRUE=
4033   AMDEP_FALSE='#'
4034 else
4035   AMDEP_TRUE='#'
4036   AMDEP_FALSE=
4037 fi
4038
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test -n "$ac_tool_prefix"; then
4046   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   if test -n "$CC"; then
4054   ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083 fi
4084 if test -z "$ac_cv_prog_CC"; then
4085   ac_ct_CC=$CC
4086   # Extract the first word of "gcc", so it can be a program name with args.
4087 set dummy gcc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -n "$ac_ct_CC"; then
4094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101     for ac_exec_ext in '' $ac_executable_extensions; do
4102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103     ac_cv_prog_ac_ct_CC="gcc"
4104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108   done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4114 if test -n "$ac_ct_CC"; then
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116 $as_echo "$ac_ct_CC" >&6; }
4117 else
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122   if test "x$ac_ct_CC" = x; then
4123     CC=""
4124   else
4125     case $cross_compiling:$ac_tool_warned in
4126 yes:)
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129 ac_tool_warned=yes ;;
4130 esac
4131     CC=$ac_ct_CC
4132   fi
4133 else
4134   CC="$ac_cv_prog_CC"
4135 fi
4136
4137 if test -z "$CC"; then
4138           if test -n "$ac_tool_prefix"; then
4139     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$CC"; then
4147   ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156     ac_cv_prog_CC="${ac_tool_prefix}cc"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176   fi
4177 fi
4178 if test -z "$CC"; then
4179   # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if test -n "$CC"; then
4187   ac_cv_prog_CC="$CC" # Let the user override the test.
4188 else
4189   ac_prog_rejected=no
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_exec_ext in '' $ac_executable_extensions; do
4196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198        ac_prog_rejected=yes
4199        continue
4200      fi
4201     ac_cv_prog_CC="cc"
4202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206   done
4207 IFS=$as_save_IFS
4208
4209 if test $ac_prog_rejected = yes; then
4210   # We found a bogon in the path, so make sure we never use it.
4211   set dummy $ac_cv_prog_CC
4212   shift
4213   if test $# != 0; then
4214     # We chose a different compiler from the bogus one.
4215     # However, it has the same basename, so the bogon will be chosen
4216     # first if we set CC to just the basename; use the full file name.
4217     shift
4218     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4219   fi
4220 fi
4221 fi
4222 fi
4223 CC=$ac_cv_prog_CC
4224 if test -n "$CC"; then
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4227 else
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$CC"; then
4235   if test -n "$ac_tool_prefix"; then
4236   for ac_prog in cl.exe
4237   do
4238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_CC+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if test -n "$CC"; then
4246   ac_cv_prog_CC="$CC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253     for ac_exec_ext in '' $ac_executable_extensions; do
4254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257     break 2
4258   fi
4259 done
4260   done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 CC=$ac_cv_prog_CC
4266 if test -n "$CC"; then
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 $as_echo "$CC" >&6; }
4269 else
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275     test -n "$CC" && break
4276   done
4277 fi
4278 if test -z "$CC"; then
4279   ac_ct_CC=$CC
4280   for ac_prog in cl.exe
4281 do
4282   # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if test -n "$ac_ct_CC"; then
4290   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299     ac_cv_prog_ac_ct_CC="$ac_prog"
4300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304   done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319   test -n "$ac_ct_CC" && break
4320 done
4321
4322   if test "x$ac_ct_CC" = x; then
4323     CC=""
4324   else
4325     case $cross_compiling:$ac_tool_warned in
4326 yes:)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4330 esac
4331     CC=$ac_ct_CC
4332   fi
4333 fi
4334
4335 fi
4336
4337
4338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340 as_fn_error $? "no acceptable C compiler found in \$PATH
4341 See \`config.log' for more details" "$LINENO" 5; }
4342
4343 # Provide some information about the compiler.
4344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4345 set X $ac_compile
4346 ac_compiler=$2
4347 for ac_option in --version -v -V -qversion; do
4348   { { ac_try="$ac_compiler $ac_option >&5"
4349 case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354 $as_echo "$ac_try_echo"; } >&5
4355   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4356   ac_status=$?
4357   if test -s conftest.err; then
4358     sed '10a\
4359 ... rest of stderr output deleted ...
4360          10q' conftest.err >conftest.er1
4361     cat conftest.er1 >&5
4362   fi
4363   rm -f conftest.er1 conftest.err
4364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365   test $ac_status = 0; }
4366 done
4367
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370
4371 int
4372 main ()
4373 {
4374
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 ac_clean_files_save=$ac_clean_files
4380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4381 # Try to create an executable without -o first, disregard a.out.
4382 # It will help us diagnose broken compilers, and finding out an intuition
4383 # of exeext.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385 $as_echo_n "checking whether the C compiler works... " >&6; }
4386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4387
4388 # The possible output files:
4389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4390
4391 ac_rmfiles=
4392 for ac_file in $ac_files
4393 do
4394   case $ac_file in
4395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4397   esac
4398 done
4399 rm -f $ac_rmfiles
4400
4401 if { { ac_try="$ac_link_default"
4402 case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408   (eval "$ac_link_default") 2>&5
4409   ac_status=$?
4410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411   test $ac_status = 0; }; then :
4412   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4416 # Autoconf.
4417 for ac_file in $ac_files ''
4418 do
4419   test -f "$ac_file" || continue
4420   case $ac_file in
4421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4422         ;;
4423     [ab].out )
4424         # We found the default executable, but exeext='' is most
4425         # certainly right.
4426         break;;
4427     *.* )
4428         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4429         then :; else
4430            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431         fi
4432         # We set ac_cv_exeext here because the later test for it is not
4433         # safe: cross compilers may not add the suffix if given an `-o'
4434         # argument, so we may need to know it at that point already.
4435         # Even if this section looks crufty: it has the advantage of
4436         # actually working.
4437         break;;
4438     * )
4439         break;;
4440   esac
4441 done
4442 test "$ac_cv_exeext" = no && ac_cv_exeext=
4443
4444 else
4445   ac_file=''
4446 fi
4447 if test -z "$ac_file"; then :
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error 77 "C compiler cannot create executables
4456 See \`config.log' for more details" "$LINENO" 5; }
4457 else
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 $as_echo "yes" >&6; }
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462 $as_echo_n "checking for C compiler default output file name... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464 $as_echo "$ac_file" >&6; }
4465 ac_exeext=$ac_cv_exeext
4466
4467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4468 ac_clean_files=$ac_clean_files_save
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470 $as_echo_n "checking for suffix of executables... " >&6; }
4471 if { { ac_try="$ac_link"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478   (eval "$ac_link") 2>&5
4479   ac_status=$?
4480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481   test $ac_status = 0; }; then :
4482   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4483 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4484 # work properly (i.e., refer to `conftest.exe'), while it won't with
4485 # `rm'.
4486 for ac_file in conftest.exe conftest conftest.*; do
4487   test -f "$ac_file" || continue
4488   case $ac_file in
4489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491           break;;
4492     * ) break;;
4493   esac
4494 done
4495 else
4496   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4499 See \`config.log' for more details" "$LINENO" 5; }
4500 fi
4501 rm -f conftest conftest$ac_cv_exeext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503 $as_echo "$ac_cv_exeext" >&6; }
4504
4505 rm -f conftest.$ac_ext
4506 EXEEXT=$ac_cv_exeext
4507 ac_exeext=$EXEEXT
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #include <stdio.h>
4511 int
4512 main ()
4513 {
4514 FILE *f = fopen ("conftest.out", "w");
4515  return ferror (f) || fclose (f) != 0;
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 ac_clean_files="$ac_clean_files conftest.out"
4522 # Check that the compiler produces executables we can run.  If not, either
4523 # the compiler is broken, or we cross compile.
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525 $as_echo_n "checking whether we are cross compiling... " >&6; }
4526 if test "$cross_compiling" != yes; then
4527   { { ac_try="$ac_link"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534   (eval "$ac_link") 2>&5
4535   ac_status=$?
4536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537   test $ac_status = 0; }
4538   if { ac_try='./conftest$ac_cv_exeext'
4539   { { case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545   (eval "$ac_try") 2>&5
4546   ac_status=$?
4547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548   test $ac_status = 0; }; }; then
4549     cross_compiling=no
4550   else
4551     if test "$cross_compiling" = maybe; then
4552         cross_compiling=yes
4553     else
4554         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot run C compiled programs.
4557 If you meant to cross compile, use \`--host'.
4558 See \`config.log' for more details" "$LINENO" 5; }
4559     fi
4560   fi
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563 $as_echo "$cross_compiling" >&6; }
4564
4565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4566 ac_clean_files=$ac_clean_files_save
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568 $as_echo_n "checking for suffix of object files... " >&6; }
4569 if ${ac_cv_objext+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.o conftest.obj
4584 if { { ac_try="$ac_compile"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591   (eval "$ac_compile") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594   test $ac_status = 0; }; then :
4595   for ac_file in conftest.o conftest.obj conftest.*; do
4596   test -f "$ac_file" || continue;
4597   case $ac_file in
4598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4600        break;;
4601   esac
4602 done
4603 else
4604   $as_echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot compute suffix of object files: cannot compile
4610 See \`config.log' for more details" "$LINENO" 5; }
4611 fi
4612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615 $as_echo "$ac_cv_objext" >&6; }
4616 OBJEXT=$ac_cv_objext
4617 ac_objext=$OBJEXT
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620 if ${ac_cv_c_compiler_gnu+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625
4626 int
4627 main ()
4628 {
4629 #ifndef __GNUC__
4630        choke me
4631 #endif
4632
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638   ac_compiler_gnu=yes
4639 else
4640   ac_compiler_gnu=no
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4644
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4649   GCC=yes
4650 else
4651   GCC=
4652 fi
4653 ac_test_CFLAGS=${CFLAGS+set}
4654 ac_save_CFLAGS=$CFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4657 if ${ac_cv_prog_cc_g+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   ac_save_c_werror_flag=$ac_c_werror_flag
4661    ac_c_werror_flag=yes
4662    ac_cv_prog_cc_g=no
4663    CFLAGS="-g"
4664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676   ac_cv_prog_cc_g=yes
4677 else
4678   CFLAGS=""
4679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691
4692 else
4693   ac_c_werror_flag=$ac_save_c_werror_flag
4694          CFLAGS="-g"
4695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707   ac_cv_prog_cc_g=yes
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714    ac_c_werror_flag=$ac_save_c_werror_flag
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717 $as_echo "$ac_cv_prog_cc_g" >&6; }
4718 if test "$ac_test_CFLAGS" = set; then
4719   CFLAGS=$ac_save_CFLAGS
4720 elif test $ac_cv_prog_cc_g = yes; then
4721   if test "$GCC" = yes; then
4722     CFLAGS="-g -O2"
4723   else
4724     CFLAGS="-g"
4725   fi
4726 else
4727   if test "$GCC" = yes; then
4728     CFLAGS="-O2"
4729   else
4730     CFLAGS=
4731   fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735 if ${ac_cv_prog_cc_c89+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   ac_cv_prog_cc_c89=no
4739 ac_save_CC=$CC
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #include <stdarg.h>
4743 #include <stdio.h>
4744 struct stat;
4745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4746 struct buf { int x; };
4747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748 static char *e (p, i)
4749      char **p;
4750      int i;
4751 {
4752   return p[i];
4753 }
4754 static char *f (char * (*g) (char **, int), char **p, ...)
4755 {
4756   char *s;
4757   va_list v;
4758   va_start (v,p);
4759   s = g (p, va_arg (v,int));
4760   va_end (v);
4761   return s;
4762 }
4763
4764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4765    function prototypes and stuff, but not '\xHH' hex character constants.
4766    These don't provoke an error unfortunately, instead are silently treated
4767    as 'x'.  The following induces an error, until -std is added to get
4768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4769    array size at least.  It's necessary to write '\x00'==0 to get something
4770    that's true only with -std.  */
4771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4772
4773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774    inside strings and character constants.  */
4775 #define FOO(x) 'x'
4776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4777
4778 int test (int i, double x);
4779 struct s1 {int (*f) (int a);};
4780 struct s2 {int (*f) (double a);};
4781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782 int argc;
4783 char **argv;
4784 int
4785 main ()
4786 {
4787 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4794 do
4795   CC="$ac_save_CC $ac_arg"
4796   if ac_fn_c_try_compile "$LINENO"; then :
4797   ac_cv_prog_cc_c89=$ac_arg
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext
4800   test "x$ac_cv_prog_cc_c89" != "xno" && break
4801 done
4802 rm -f conftest.$ac_ext
4803 CC=$ac_save_CC
4804
4805 fi
4806 # AC_CACHE_VAL
4807 case "x$ac_cv_prog_cc_c89" in
4808   x)
4809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 $as_echo "none needed" >&6; } ;;
4811   xno)
4812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813 $as_echo "unsupported" >&6; } ;;
4814   *)
4815     CC="$CC $ac_cv_prog_cc_c89"
4816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4818 esac
4819 if test "x$ac_cv_prog_cc_c89" != xno; then :
4820
4821 fi
4822
4823 ac_ext=c
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829 ac_ext=c
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4835 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4836 if ${am_cv_prog_cc_c_o+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h.  */
4841
4842 int
4843 main ()
4844 {
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850   # Make sure it works both with $CC and with simple cc.
4851   # Following AC_PROG_CC_C_O, we do the test twice because some
4852   # compilers refuse to overwrite an existing .o file with -o,
4853   # though they will create one.
4854   am_cv_prog_cc_c_o=yes
4855   for am_i in 1 2; do
4856     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4857    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4858    ac_status=$?
4859    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860    (exit $ac_status); } \
4861          && test -f conftest2.$ac_objext; then
4862       : OK
4863     else
4864       am_cv_prog_cc_c_o=no
4865       break
4866     fi
4867   done
4868   rm -f core conftest*
4869   unset am_i
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4872 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4873 if test "$am_cv_prog_cc_c_o" != yes; then
4874    # Losing compiler, so override with the script.
4875    # FIXME: It is wrong to rewrite CC.
4876    # But if we don't then we get into trouble of one sort or another.
4877    # A longer-term fix would be to have automake use am__CC in this case,
4878    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4879    CC="$am_aux_dir/compile $CC"
4880 fi
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887
4888 depcc="$CC"   am_compiler_list=
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896   # We make a subdir and do the tests there.  Otherwise we can end up
4897   # making bogus files that we don't know about and never remove.  For
4898   # instance it was reported that on HP-UX the gcc test will end up
4899   # making a dummy file named 'D' -- because '-MD' means "put the output
4900   # in D".
4901   rm -rf conftest.dir
4902   mkdir conftest.dir
4903   # Copy depcomp to subdir because otherwise we won't find it if we're
4904   # using a relative directory.
4905   cp "$am_depcomp" conftest.dir
4906   cd conftest.dir
4907   # We will build objects and dependencies in a subdirectory because
4908   # it helps to detect inapplicable dependency modes.  For instance
4909   # both Tru64's cc and ICC support -MD to output dependencies as a
4910   # side effect of compilation, but ICC will put the dependencies in
4911   # the current directory while Tru64 will put them in the object
4912   # directory.
4913   mkdir sub
4914
4915   am_cv_CC_dependencies_compiler_type=none
4916   if test "$am_compiler_list" = ""; then
4917      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4918   fi
4919   am__universal=false
4920   case " $depcc " in #(
4921      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4922      esac
4923
4924   for depmode in $am_compiler_list; do
4925     # Setup a source with many dependencies, because some compilers
4926     # like to wrap large dependency lists on column 80 (with \), and
4927     # we should not choose a depcomp mode which is confused by this.
4928     #
4929     # We need to recreate these files for each test, as the compiler may
4930     # overwrite some of them when testing with obscure command lines.
4931     # This happens at least with the AIX C compiler.
4932     : > sub/conftest.c
4933     for i in 1 2 3 4 5 6; do
4934       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936       # Solaris 10 /bin/sh.
4937       echo '/* dummy */' > sub/conftst$i.h
4938     done
4939     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4940
4941     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942     # mode.  It turns out that the SunPro C++ compiler does not properly
4943     # handle '-M -o', and we need to detect this.  Also, some Intel
4944     # versions had trouble with output in subdirs.
4945     am__obj=sub/conftest.${OBJEXT-o}
4946     am__minus_obj="-o $am__obj"
4947     case $depmode in
4948     gcc)
4949       # This depmode causes a compiler race in universal mode.
4950       test "$am__universal" = false || continue
4951       ;;
4952     nosideeffect)
4953       # After this tag, mechanisms are not by side-effect, so they'll
4954       # only be used when explicitly requested.
4955       if test "x$enable_dependency_tracking" = xyes; then
4956         continue
4957       else
4958         break
4959       fi
4960       ;;
4961     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962       # This compiler won't grok '-c -o', but also, the minuso test has
4963       # not run yet.  These depmodes are late enough in the game, and
4964       # so weak that their functioning should not be impacted.
4965       am__obj=conftest.${OBJEXT-o}
4966       am__minus_obj=
4967       ;;
4968     none) break ;;
4969     esac
4970     if depmode=$depmode \
4971        source=sub/conftest.c object=$am__obj \
4972        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974          >/dev/null 2>conftest.err &&
4975        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979       # icc doesn't choke on unknown options, it will just issue warnings
4980       # or remarks (even with -Werror).  So we grep stderr for any message
4981       # that says an option was ignored or not supported.
4982       # When given -MP, icc 7.0 and 7.1 complain thusly:
4983       #   icc: Command line warning: ignoring option '-M'; no argument required
4984       # The diagnosis changed in icc 8.0:
4985       #   icc: Command line remark: option '-MP' not supported
4986       if (grep 'ignoring option' conftest.err ||
4987           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988         am_cv_CC_dependencies_compiler_type=$depmode
4989         break
4990       fi
4991     fi
4992   done
4993
4994   cd ..
4995   rm -rf conftest.dir
4996 else
4997   am_cv_CC_dependencies_compiler_type=none
4998 fi
4999
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5004
5005  if
5006   test "x$enable_dependency_tracking" != xno \
5007   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5008   am__fastdepCC_TRUE=
5009   am__fastdepCC_FALSE='#'
5010 else
5011   am__fastdepCC_TRUE='#'
5012   am__fastdepCC_FALSE=
5013 fi
5014
5015
5016
5017 ac_ext=c
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5024 # On Suns, sometimes $CPP names a directory.
5025 if test -n "$CPP" && test -d "$CPP"; then
5026   CPP=
5027 fi
5028 if test -z "$CPP"; then
5029   if ${ac_cv_prog_CPP+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032       # Double quotes because CPP needs to be expanded
5033     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5034     do
5035       ac_preproc_ok=false
5036 for ac_c_preproc_warn_flag in '' yes
5037 do
5038   # Use a header file that comes with gcc, so configuring glibc
5039   # with a fresh cross-compiler works.
5040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041   # <limits.h> exists even on freestanding compilers.
5042   # On the NeXT, cc -E runs the code through the compiler's parser,
5043   # not just through cpp. "Syntax error" is here to catch this case.
5044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h.  */
5046 #ifdef __STDC__
5047 # include <limits.h>
5048 #else
5049 # include <assert.h>
5050 #endif
5051                      Syntax error
5052 _ACEOF
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5054
5055 else
5056   # Broken: fails on valid input.
5057 continue
5058 fi
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5060
5061   # OK, works on sane cases.  Now check whether nonexistent headers
5062   # can be detected and how.
5063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h.  */
5065 #include <ac_nonexistent.h>
5066 _ACEOF
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068   # Broken: success on invalid input.
5069 continue
5070 else
5071   # Passes both tests.
5072 ac_preproc_ok=:
5073 break
5074 fi
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5076
5077 done
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.i conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then :
5081   break
5082 fi
5083
5084     done
5085     ac_cv_prog_CPP=$CPP
5086
5087 fi
5088   CPP=$ac_cv_prog_CPP
5089 else
5090   ac_cv_prog_CPP=$CPP
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093 $as_echo "$CPP" >&6; }
5094 ac_preproc_ok=false
5095 for ac_c_preproc_warn_flag in '' yes
5096 do
5097   # Use a header file that comes with gcc, so configuring glibc
5098   # with a fresh cross-compiler works.
5099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100   # <limits.h> exists even on freestanding compilers.
5101   # On the NeXT, cc -E runs the code through the compiler's parser,
5102   # not just through cpp. "Syntax error" is here to catch this case.
5103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105 #ifdef __STDC__
5106 # include <limits.h>
5107 #else
5108 # include <assert.h>
5109 #endif
5110                      Syntax error
5111 _ACEOF
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5113
5114 else
5115   # Broken: fails on valid input.
5116 continue
5117 fi
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5119
5120   # OK, works on sane cases.  Now check whether nonexistent headers
5121   # can be detected and how.
5122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124 #include <ac_nonexistent.h>
5125 _ACEOF
5126 if ac_fn_c_try_cpp "$LINENO"; then :
5127   # Broken: success on invalid input.
5128 continue
5129 else
5130   # Passes both tests.
5131 ac_preproc_ok=:
5132 break
5133 fi
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5135
5136 done
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.i conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then :
5140
5141 else
5142   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5145 See \`config.log' for more details" "$LINENO" 5; }
5146 fi
5147
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5157 if ${ac_cv_path_GREP+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   if test -z "$GREP"; then
5161   ac_path_GREP_found=false
5162   # Loop through the user's path and test for each of PROGNAME-LIST
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168     for ac_prog in grep ggrep; do
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171       as_fn_executable_p "$ac_path_GREP" || continue
5172 # Check for GNU ac_path_GREP and select it if it is found.
5173   # Check for GNU $ac_path_GREP
5174 case `"$ac_path_GREP" --version 2>&1` in
5175 *GNU*)
5176   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5177 *)
5178   ac_count=0
5179   $as_echo_n 0123456789 >"conftest.in"
5180   while :
5181   do
5182     cat "conftest.in" "conftest.in" >"conftest.tmp"
5183     mv "conftest.tmp" "conftest.in"
5184     cp "conftest.in" "conftest.nl"
5185     $as_echo 'GREP' >> "conftest.nl"
5186     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188     as_fn_arith $ac_count + 1 && ac_count=$as_val
5189     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190       # Best one so far, save it but keep looking for a better one
5191       ac_cv_path_GREP="$ac_path_GREP"
5192       ac_path_GREP_max=$ac_count
5193     fi
5194     # 10*(2^10) chars as input seems more than enough
5195     test $ac_count -gt 10 && break
5196   done
5197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5199
5200       $ac_path_GREP_found && break 3
5201     done
5202   done
5203   done
5204 IFS=$as_save_IFS
5205   if test -z "$ac_cv_path_GREP"; then
5206     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207   fi
5208 else
5209   ac_cv_path_GREP=$GREP
5210 fi
5211
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5214 $as_echo "$ac_cv_path_GREP" >&6; }
5215  GREP="$ac_cv_path_GREP"
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5219 $as_echo_n "checking for egrep... " >&6; }
5220 if ${ac_cv_path_EGREP+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224    then ac_cv_path_EGREP="$GREP -E"
5225    else
5226      if test -z "$EGREP"; then
5227   ac_path_EGREP_found=false
5228   # Loop through the user's path and test for each of PROGNAME-LIST
5229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_prog in egrep; do
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5237       as_fn_executable_p "$ac_path_EGREP" || continue
5238 # Check for GNU ac_path_EGREP and select it if it is found.
5239   # Check for GNU $ac_path_EGREP
5240 case `"$ac_path_EGREP" --version 2>&1` in
5241 *GNU*)
5242   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5243 *)
5244   ac_count=0
5245   $as_echo_n 0123456789 >"conftest.in"
5246   while :
5247   do
5248     cat "conftest.in" "conftest.in" >"conftest.tmp"
5249     mv "conftest.tmp" "conftest.in"
5250     cp "conftest.in" "conftest.nl"
5251     $as_echo 'EGREP' >> "conftest.nl"
5252     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254     as_fn_arith $ac_count + 1 && ac_count=$as_val
5255     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5256       # Best one so far, save it but keep looking for a better one
5257       ac_cv_path_EGREP="$ac_path_EGREP"
5258       ac_path_EGREP_max=$ac_count
5259     fi
5260     # 10*(2^10) chars as input seems more than enough
5261     test $ac_count -gt 10 && break
5262   done
5263   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 esac
5265
5266       $ac_path_EGREP_found && break 3
5267     done
5268   done
5269   done
5270 IFS=$as_save_IFS
5271   if test -z "$ac_cv_path_EGREP"; then
5272     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273   fi
5274 else
5275   ac_cv_path_EGREP=$EGREP
5276 fi
5277
5278    fi
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5281 $as_echo "$ac_cv_path_EGREP" >&6; }
5282  EGREP="$ac_cv_path_EGREP"
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5286 $as_echo_n "checking for ANSI C header files... " >&6; }
5287 if ${ac_cv_header_stdc+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292 #include <stdlib.h>
5293 #include <stdarg.h>
5294 #include <string.h>
5295 #include <float.h>
5296
5297 int
5298 main ()
5299 {
5300
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306   ac_cv_header_stdc=yes
5307 else
5308   ac_cv_header_stdc=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311
5312 if test $ac_cv_header_stdc = yes; then
5313   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h.  */
5316 #include <string.h>
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320   $EGREP "memchr" >/dev/null 2>&1; then :
5321
5322 else
5323   ac_cv_header_stdc=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 if test $ac_cv_header_stdc = yes; then
5330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #include <stdlib.h>
5334
5335 _ACEOF
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337   $EGREP "free" >/dev/null 2>&1; then :
5338
5339 else
5340   ac_cv_header_stdc=no
5341 fi
5342 rm -f conftest*
5343
5344 fi
5345
5346 if test $ac_cv_header_stdc = yes; then
5347   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5348   if test "$cross_compiling" = yes; then :
5349   :
5350 else
5351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h.  */
5353 #include <ctype.h>
5354 #include <stdlib.h>
5355 #if ((' ' & 0x0FF) == 0x020)
5356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5358 #else
5359 # define ISLOWER(c) \
5360                    (('a' <= (c) && (c) <= 'i') \
5361                      || ('j' <= (c) && (c) <= 'r') \
5362                      || ('s' <= (c) && (c) <= 'z'))
5363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5364 #endif
5365
5366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5367 int
5368 main ()
5369 {
5370   int i;
5371   for (i = 0; i < 256; i++)
5372     if (XOR (islower (i), ISLOWER (i))
5373         || toupper (i) != TOUPPER (i))
5374       return 2;
5375   return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_run "$LINENO"; then :
5379
5380 else
5381   ac_cv_header_stdc=no
5382 fi
5383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5384   conftest.$ac_objext conftest.beam conftest.$ac_ext
5385 fi
5386
5387 fi
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5390 $as_echo "$ac_cv_header_stdc" >&6; }
5391 if test $ac_cv_header_stdc = yes; then
5392
5393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5394
5395 fi
5396
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5399                   inttypes.h stdint.h unistd.h
5400 do :
5401   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5403 "
5404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5405   cat >>confdefs.h <<_ACEOF
5406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 _ACEOF
5408
5409 fi
5410
5411 done
5412
5413
5414
5415
5416
5417   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5418 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5419   MINIX=yes
5420 else
5421   MINIX=
5422 fi
5423
5424
5425   if test "$MINIX" = yes; then
5426
5427 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5428
5429
5430 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5431
5432
5433 $as_echo "#define _MINIX 1" >>confdefs.h
5434
5435   fi
5436
5437         case "$host_os" in
5438     hpux*)
5439
5440 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5441
5442       ;;
5443   esac
5444
5445
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5447 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5448 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h.  */
5453
5454 #         define __EXTENSIONS__ 1
5455           $ac_includes_default
5456 int
5457 main ()
5458 {
5459
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465   ac_cv_safe_to_define___extensions__=yes
5466 else
5467   ac_cv_safe_to_define___extensions__=no
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5472 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5473   test $ac_cv_safe_to_define___extensions__ = yes &&
5474     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5475
5476   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5477
5478   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5479
5480   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5481
5482   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5483
5484
5485
5486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5488 if ${ac_cv_prog_cc_c89+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491   ac_cv_prog_cc_c89=no
5492 ac_save_CC=$CC
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h.  */
5495 #include <stdarg.h>
5496 #include <stdio.h>
5497 struct stat;
5498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5499 struct buf { int x; };
5500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5501 static char *e (p, i)
5502      char **p;
5503      int i;
5504 {
5505   return p[i];
5506 }
5507 static char *f (char * (*g) (char **, int), char **p, ...)
5508 {
5509   char *s;
5510   va_list v;
5511   va_start (v,p);
5512   s = g (p, va_arg (v,int));
5513   va_end (v);
5514   return s;
5515 }
5516
5517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5518    function prototypes and stuff, but not '\xHH' hex character constants.
5519    These don't provoke an error unfortunately, instead are silently treated
5520    as 'x'.  The following induces an error, until -std is added to get
5521    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5522    array size at least.  It's necessary to write '\x00'==0 to get something
5523    that's true only with -std.  */
5524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5525
5526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5527    inside strings and character constants.  */
5528 #define FOO(x) 'x'
5529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5530
5531 int test (int i, double x);
5532 struct s1 {int (*f) (int a);};
5533 struct s2 {int (*f) (double a);};
5534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5535 int argc;
5536 char **argv;
5537 int
5538 main ()
5539 {
5540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5546         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5547 do
5548   CC="$ac_save_CC $ac_arg"
5549   if ac_fn_c_try_compile "$LINENO"; then :
5550   ac_cv_prog_cc_c89=$ac_arg
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext
5553   test "x$ac_cv_prog_cc_c89" != "xno" && break
5554 done
5555 rm -f conftest.$ac_ext
5556 CC=$ac_save_CC
5557
5558 fi
5559 # AC_CACHE_VAL
5560 case "x$ac_cv_prog_cc_c89" in
5561   x)
5562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5563 $as_echo "none needed" >&6; } ;;
5564   xno)
5565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5566 $as_echo "unsupported" >&6; } ;;
5567   *)
5568     CC="$CC $ac_cv_prog_cc_c89"
5569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5571 esac
5572 if test "x$ac_cv_prog_cc_c89" != xno; then :
5573
5574 fi
5575
5576
5577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5578 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5579 if ${ac_cv_prog_cc_c99+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   ac_cv_prog_cc_c99=no
5583 ac_save_CC=$CC
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h.  */
5586 #include <stdarg.h>
5587 #include <stdbool.h>
5588 #include <stdlib.h>
5589 #include <wchar.h>
5590 #include <stdio.h>
5591
5592 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5593 #define debug(...) fprintf (stderr, __VA_ARGS__)
5594 #define showlist(...) puts (#__VA_ARGS__)
5595 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5596 static void
5597 test_varargs_macros (void)
5598 {
5599   int x = 1234;
5600   int y = 5678;
5601   debug ("Flag");
5602   debug ("X = %d\n", x);
5603   showlist (The first, second, and third items.);
5604   report (x>y, "x is %d but y is %d", x, y);
5605 }
5606
5607 // Check long long types.
5608 #define BIG64 18446744073709551615ull
5609 #define BIG32 4294967295ul
5610 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5611 #if !BIG_OK
5612   your preprocessor is broken;
5613 #endif
5614 #if BIG_OK
5615 #else
5616   your preprocessor is broken;
5617 #endif
5618 static long long int bignum = -9223372036854775807LL;
5619 static unsigned long long int ubignum = BIG64;
5620
5621 struct incomplete_array
5622 {
5623   int datasize;
5624   double data[];
5625 };
5626
5627 struct named_init {
5628   int number;
5629   const wchar_t *name;
5630   double average;
5631 };
5632
5633 typedef const char *ccp;
5634
5635 static inline int
5636 test_restrict (ccp restrict text)
5637 {
5638   // See if C++-style comments work.
5639   // Iterate through items via the restricted pointer.
5640   // Also check for declarations in for loops.
5641   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5642     continue;
5643   return 0;
5644 }
5645
5646 // Check varargs and va_copy.
5647 static void
5648 test_varargs (const char *format, ...)
5649 {
5650   va_list args;
5651   va_start (args, format);
5652   va_list args_copy;
5653   va_copy (args_copy, args);
5654
5655   const char *str;
5656   int number;
5657   float fnumber;
5658
5659   while (*format)
5660     {
5661       switch (*format++)
5662         {
5663         case 's': // string
5664           str = va_arg (args_copy, const char *);
5665           break;
5666         case 'd': // int
5667           number = va_arg (args_copy, int);
5668           break;
5669         case 'f': // float
5670           fnumber = va_arg (args_copy, double);
5671           break;
5672         default:
5673           break;
5674         }
5675     }
5676   va_end (args_copy);
5677   va_end (args);
5678 }
5679
5680 int
5681 main ()
5682 {
5683
5684   // Check bool.
5685   _Bool success = false;
5686
5687   // Check restrict.
5688   if (test_restrict ("String literal") == 0)
5689     success = true;
5690   char *restrict newvar = "Another string";
5691
5692   // Check varargs.
5693   test_varargs ("s, d' f .", "string", 65, 34.234);
5694   test_varargs_macros ();
5695
5696   // Check flexible array members.
5697   struct incomplete_array *ia =
5698     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5699   ia->datasize = 10;
5700   for (int i = 0; i < ia->datasize; ++i)
5701     ia->data[i] = i * 1.234;
5702
5703   // Check named initializers.
5704   struct named_init ni = {
5705     .number = 34,
5706     .name = L"Test wide string",
5707     .average = 543.34343,
5708   };
5709
5710   ni.number = 58;
5711
5712   int dynamic_array[ni.number];
5713   dynamic_array[ni.number - 1] = 543;
5714
5715   // work around unused variable warnings
5716   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5717           || dynamic_array[ni.number - 1] != 543);
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5724 do
5725   CC="$ac_save_CC $ac_arg"
5726   if ac_fn_c_try_compile "$LINENO"; then :
5727   ac_cv_prog_cc_c99=$ac_arg
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext
5730   test "x$ac_cv_prog_cc_c99" != "xno" && break
5731 done
5732 rm -f conftest.$ac_ext
5733 CC=$ac_save_CC
5734
5735 fi
5736 # AC_CACHE_VAL
5737 case "x$ac_cv_prog_cc_c99" in
5738   x)
5739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5740 $as_echo "none needed" >&6; } ;;
5741   xno)
5742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5743 $as_echo "unsupported" >&6; } ;;
5744   *)
5745     CC="$CC $ac_cv_prog_cc_c99"
5746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5747 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5748 esac
5749 if test "x$ac_cv_prog_cc_c99" != xno; then :
5750
5751 fi
5752
5753
5754
5755
5756
5757
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763 if test -n "$ac_tool_prefix"; then
5764   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_CC+:} false; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   if test -n "$CC"; then
5772   ac_cv_prog_CC="$CC" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 CC=$ac_cv_prog_CC
5792 if test -n "$CC"; then
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5794 $as_echo "$CC" >&6; }
5795 else
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801 fi
5802 if test -z "$ac_cv_prog_CC"; then
5803   ac_ct_CC=$CC
5804   # Extract the first word of "gcc", so it can be a program name with args.
5805 set dummy gcc; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   if test -n "$ac_ct_CC"; then
5812   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819     for ac_exec_ext in '' $ac_executable_extensions; do
5820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821     ac_cv_prog_ac_ct_CC="gcc"
5822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826   done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5832 if test -n "$ac_ct_CC"; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5834 $as_echo "$ac_ct_CC" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840   if test "x$ac_ct_CC" = x; then
5841     CC=""
5842   else
5843     case $cross_compiling:$ac_tool_warned in
5844 yes:)
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847 ac_tool_warned=yes ;;
5848 esac
5849     CC=$ac_ct_CC
5850   fi
5851 else
5852   CC="$ac_cv_prog_CC"
5853 fi
5854
5855 if test -z "$CC"; then
5856           if test -n "$ac_tool_prefix"; then
5857     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}cc; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_CC+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   if test -n "$CC"; then
5865   ac_cv_prog_CC="$CC" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874     ac_cv_prog_CC="${ac_tool_prefix}cc"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 CC=$ac_cv_prog_CC
5885 if test -n "$CC"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5887 $as_echo "$CC" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894   fi
5895 fi
5896 if test -z "$CC"; then
5897   # Extract the first word of "cc", so it can be a program name with args.
5898 set dummy cc; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_CC+:} false; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   if test -n "$CC"; then
5905   ac_cv_prog_CC="$CC" # Let the user override the test.
5906 else
5907   ac_prog_rejected=no
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5916        ac_prog_rejected=yes
5917        continue
5918      fi
5919     ac_cv_prog_CC="cc"
5920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924   done
5925 IFS=$as_save_IFS
5926
5927 if test $ac_prog_rejected = yes; then
5928   # We found a bogon in the path, so make sure we never use it.
5929   set dummy $ac_cv_prog_CC
5930   shift
5931   if test $# != 0; then
5932     # We chose a different compiler from the bogus one.
5933     # However, it has the same basename, so the bogon will be chosen
5934     # first if we set CC to just the basename; use the full file name.
5935     shift
5936     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5937   fi
5938 fi
5939 fi
5940 fi
5941 CC=$ac_cv_prog_CC
5942 if test -n "$CC"; then
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5944 $as_echo "$CC" >&6; }
5945 else
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 fi
5952 if test -z "$CC"; then
5953   if test -n "$ac_tool_prefix"; then
5954   for ac_prog in cl.exe
5955   do
5956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_CC+:} false; then :
5961   $as_echo_n "(cached) " >&6
5962 else
5963   if test -n "$CC"; then
5964   ac_cv_prog_CC="$CC" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971     for ac_exec_ext in '' $ac_executable_extensions; do
5972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978   done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 CC=$ac_cv_prog_CC
5984 if test -n "$CC"; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5986 $as_echo "$CC" >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993     test -n "$CC" && break
5994   done
5995 fi
5996 if test -z "$CC"; then
5997   ac_ct_CC=$CC
5998   for ac_prog in cl.exe
5999 do
6000   # Extract the first word of "$ac_prog", so it can be a program name with args.
6001 set dummy $ac_prog; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if test -n "$ac_ct_CC"; then
6008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015     for ac_exec_ext in '' $ac_executable_extensions; do
6016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017     ac_cv_prog_ac_ct_CC="$ac_prog"
6018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022   done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6028 if test -n "$ac_ct_CC"; then
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6030 $as_echo "$ac_ct_CC" >&6; }
6031 else
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036
6037   test -n "$ac_ct_CC" && break
6038 done
6039
6040   if test "x$ac_ct_CC" = x; then
6041     CC=""
6042   else
6043     case $cross_compiling:$ac_tool_warned in
6044 yes:)
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047 ac_tool_warned=yes ;;
6048 esac
6049     CC=$ac_ct_CC
6050   fi
6051 fi
6052
6053 fi
6054
6055
6056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "no acceptable C compiler found in \$PATH
6059 See \`config.log' for more details" "$LINENO" 5; }
6060
6061 # Provide some information about the compiler.
6062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6063 set X $ac_compile
6064 ac_compiler=$2
6065 for ac_option in --version -v -V -qversion; do
6066   { { ac_try="$ac_compiler $ac_option >&5"
6067 case "(($ac_try" in
6068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069   *) ac_try_echo=$ac_try;;
6070 esac
6071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6072 $as_echo "$ac_try_echo"; } >&5
6073   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6074   ac_status=$?
6075   if test -s conftest.err; then
6076     sed '10a\
6077 ... rest of stderr output deleted ...
6078          10q' conftest.err >conftest.er1
6079     cat conftest.er1 >&5
6080   fi
6081   rm -f conftest.er1 conftest.err
6082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083   test $ac_status = 0; }
6084 done
6085
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6088 if ${ac_cv_c_compiler_gnu+:} false; then :
6089   $as_echo_n "(cached) " >&6
6090 else
6091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h.  */
6093
6094 int
6095 main ()
6096 {
6097 #ifndef __GNUC__
6098        choke me
6099 #endif
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106   ac_compiler_gnu=yes
6107 else
6108   ac_compiler_gnu=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6112
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6116 if test $ac_compiler_gnu = yes; then
6117   GCC=yes
6118 else
6119   GCC=
6120 fi
6121 ac_test_CFLAGS=${CFLAGS+set}
6122 ac_save_CFLAGS=$CFLAGS
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6125 if ${ac_cv_prog_cc_g+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   ac_save_c_werror_flag=$ac_c_werror_flag
6129    ac_c_werror_flag=yes
6130    ac_cv_prog_cc_g=no
6131    CFLAGS="-g"
6132    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h.  */
6134
6135 int
6136 main ()
6137 {
6138
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_compile "$LINENO"; then :
6144   ac_cv_prog_cc_g=yes
6145 else
6146   CFLAGS=""
6147       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h.  */
6149
6150 int
6151 main ()
6152 {
6153
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159
6160 else
6161   ac_c_werror_flag=$ac_save_c_werror_flag
6162          CFLAGS="-g"
6163          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h.  */
6165
6166 int
6167 main ()
6168 {
6169
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175   ac_cv_prog_cc_g=yes
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182    ac_c_werror_flag=$ac_save_c_werror_flag
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6185 $as_echo "$ac_cv_prog_cc_g" >&6; }
6186 if test "$ac_test_CFLAGS" = set; then
6187   CFLAGS=$ac_save_CFLAGS
6188 elif test $ac_cv_prog_cc_g = yes; then
6189   if test "$GCC" = yes; then
6190     CFLAGS="-g -O2"
6191   else
6192     CFLAGS="-g"
6193   fi
6194 else
6195   if test "$GCC" = yes; then
6196     CFLAGS="-O2"
6197   else
6198     CFLAGS=
6199   fi
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6203 if ${ac_cv_prog_cc_c89+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   ac_cv_prog_cc_c89=no
6207 ac_save_CC=$CC
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h.  */
6210 #include <stdarg.h>
6211 #include <stdio.h>
6212 struct stat;
6213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6214 struct buf { int x; };
6215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6216 static char *e (p, i)
6217      char **p;
6218      int i;
6219 {
6220   return p[i];
6221 }
6222 static char *f (char * (*g) (char **, int), char **p, ...)
6223 {
6224   char *s;
6225   va_list v;
6226   va_start (v,p);
6227   s = g (p, va_arg (v,int));
6228   va_end (v);
6229   return s;
6230 }
6231
6232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6233    function prototypes and stuff, but not '\xHH' hex character constants.
6234    These don't provoke an error unfortunately, instead are silently treated
6235    as 'x'.  The following induces an error, until -std is added to get
6236    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6237    array size at least.  It's necessary to write '\x00'==0 to get something
6238    that's true only with -std.  */
6239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6240
6241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6242    inside strings and character constants.  */
6243 #define FOO(x) 'x'
6244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6245
6246 int test (int i, double x);
6247 struct s1 {int (*f) (int a);};
6248 struct s2 {int (*f) (double a);};
6249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6250 int argc;
6251 char **argv;
6252 int
6253 main ()
6254 {
6255 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6261         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6262 do
6263   CC="$ac_save_CC $ac_arg"
6264   if ac_fn_c_try_compile "$LINENO"; then :
6265   ac_cv_prog_cc_c89=$ac_arg
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext
6268   test "x$ac_cv_prog_cc_c89" != "xno" && break
6269 done
6270 rm -f conftest.$ac_ext
6271 CC=$ac_save_CC
6272
6273 fi
6274 # AC_CACHE_VAL
6275 case "x$ac_cv_prog_cc_c89" in
6276   x)
6277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6278 $as_echo "none needed" >&6; } ;;
6279   xno)
6280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6281 $as_echo "unsupported" >&6; } ;;
6282   *)
6283     CC="$CC $ac_cv_prog_cc_c89"
6284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6285 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6286 esac
6287 if test "x$ac_cv_prog_cc_c89" != xno; then :
6288
6289 fi
6290
6291 ac_ext=c
6292 ac_cpp='$CPP $CPPFLAGS'
6293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296
6297 ac_ext=c
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6303 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6304 if ${am_cv_prog_cc_c_o+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h.  */
6309
6310 int
6311 main ()
6312 {
6313
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318   # Make sure it works both with $CC and with simple cc.
6319   # Following AC_PROG_CC_C_O, we do the test twice because some
6320   # compilers refuse to overwrite an existing .o file with -o,
6321   # though they will create one.
6322   am_cv_prog_cc_c_o=yes
6323   for am_i in 1 2; do
6324     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6325    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6326    ac_status=$?
6327    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328    (exit $ac_status); } \
6329          && test -f conftest2.$ac_objext; then
6330       : OK
6331     else
6332       am_cv_prog_cc_c_o=no
6333       break
6334     fi
6335   done
6336   rm -f core conftest*
6337   unset am_i
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6340 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6341 if test "$am_cv_prog_cc_c_o" != yes; then
6342    # Losing compiler, so override with the script.
6343    # FIXME: It is wrong to rewrite CC.
6344    # But if we don't then we get into trouble of one sort or another.
6345    # A longer-term fix would be to have automake use am__CC in this case,
6346    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6347    CC="$am_aux_dir/compile $CC"
6348 fi
6349 ac_ext=c
6350 ac_cpp='$CPP $CPPFLAGS'
6351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354
6355
6356 depcc="$CC"   am_compiler_list=
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6359 $as_echo_n "checking dependency style of $depcc... " >&6; }
6360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6364   # We make a subdir and do the tests there.  Otherwise we can end up
6365   # making bogus files that we don't know about and never remove.  For
6366   # instance it was reported that on HP-UX the gcc test will end up
6367   # making a dummy file named 'D' -- because '-MD' means "put the output
6368   # in D".
6369   rm -rf conftest.dir
6370   mkdir conftest.dir
6371   # Copy depcomp to subdir because otherwise we won't find it if we're
6372   # using a relative directory.
6373   cp "$am_depcomp" conftest.dir
6374   cd conftest.dir
6375   # We will build objects and dependencies in a subdirectory because
6376   # it helps to detect inapplicable dependency modes.  For instance
6377   # both Tru64's cc and ICC support -MD to output dependencies as a
6378   # side effect of compilation, but ICC will put the dependencies in
6379   # the current directory while Tru64 will put them in the object
6380   # directory.
6381   mkdir sub
6382
6383   am_cv_CC_dependencies_compiler_type=none
6384   if test "$am_compiler_list" = ""; then
6385      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6386   fi
6387   am__universal=false
6388   case " $depcc " in #(
6389      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6390      esac
6391
6392   for depmode in $am_compiler_list; do
6393     # Setup a source with many dependencies, because some compilers
6394     # like to wrap large dependency lists on column 80 (with \), and
6395     # we should not choose a depcomp mode which is confused by this.
6396     #
6397     # We need to recreate these files for each test, as the compiler may
6398     # overwrite some of them when testing with obscure command lines.
6399     # This happens at least with the AIX C compiler.
6400     : > sub/conftest.c
6401     for i in 1 2 3 4 5 6; do
6402       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6403       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6404       # Solaris 10 /bin/sh.
6405       echo '/* dummy */' > sub/conftst$i.h
6406     done
6407     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6408
6409     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6410     # mode.  It turns out that the SunPro C++ compiler does not properly
6411     # handle '-M -o', and we need to detect this.  Also, some Intel
6412     # versions had trouble with output in subdirs.
6413     am__obj=sub/conftest.${OBJEXT-o}
6414     am__minus_obj="-o $am__obj"
6415     case $depmode in
6416     gcc)
6417       # This depmode causes a compiler race in universal mode.
6418       test "$am__universal" = false || continue
6419       ;;
6420     nosideeffect)
6421       # After this tag, mechanisms are not by side-effect, so they'll
6422       # only be used when explicitly requested.
6423       if test "x$enable_dependency_tracking" = xyes; then
6424         continue
6425       else
6426         break
6427       fi
6428       ;;
6429     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6430       # This compiler won't grok '-c -o', but also, the minuso test has
6431       # not run yet.  These depmodes are late enough in the game, and
6432       # so weak that their functioning should not be impacted.
6433       am__obj=conftest.${OBJEXT-o}
6434       am__minus_obj=
6435       ;;
6436     none) break ;;
6437     esac
6438     if depmode=$depmode \
6439        source=sub/conftest.c object=$am__obj \
6440        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6441        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6442          >/dev/null 2>conftest.err &&
6443        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6444        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6445        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6446        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6447       # icc doesn't choke on unknown options, it will just issue warnings
6448       # or remarks (even with -Werror).  So we grep stderr for any message
6449       # that says an option was ignored or not supported.
6450       # When given -MP, icc 7.0 and 7.1 complain thusly:
6451       #   icc: Command line warning: ignoring option '-M'; no argument required
6452       # The diagnosis changed in icc 8.0:
6453       #   icc: Command line remark: option '-MP' not supported
6454       if (grep 'ignoring option' conftest.err ||
6455           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6456         am_cv_CC_dependencies_compiler_type=$depmode
6457         break
6458       fi
6459     fi
6460   done
6461
6462   cd ..
6463   rm -rf conftest.dir
6464 else
6465   am_cv_CC_dependencies_compiler_type=none
6466 fi
6467
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6472
6473  if
6474   test "x$enable_dependency_tracking" != xno \
6475   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6476   am__fastdepCC_TRUE=
6477   am__fastdepCC_FALSE='#'
6478 else
6479   am__fastdepCC_TRUE='#'
6480   am__fastdepCC_FALSE=
6481 fi
6482
6483
6484 # Ralf Wildenhues: With per-target flags we need CC_C_O
6485 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
6486
6487 if test $ac_cv_c_compiler_gnu = yes; then
6488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6489 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6490 if ${ac_cv_prog_gcc_traditional+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493     ac_pattern="Autoconf.*'x'"
6494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h.  */
6496 #include <sgtty.h>
6497 Autoconf TIOCGETP
6498 _ACEOF
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6501   ac_cv_prog_gcc_traditional=yes
6502 else
6503   ac_cv_prog_gcc_traditional=no
6504 fi
6505 rm -f conftest*
6506
6507
6508   if test $ac_cv_prog_gcc_traditional = no; then
6509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h.  */
6511 #include <termio.h>
6512 Autoconf TCGETA
6513 _ACEOF
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6516   ac_cv_prog_gcc_traditional=yes
6517 fi
6518 rm -f conftest*
6519
6520   fi
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6523 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6524   if test $ac_cv_prog_gcc_traditional = yes; then
6525     CC="$CC -traditional"
6526   fi
6527 fi
6528
6529
6530
6531
6532
6533 CFLAGS_NTP=
6534 CPPFLAGS_NTP=
6535 LDADD_NTP=
6536 LDFLAGS_NTP=
6537
6538
6539
6540
6541
6542 case "$ac_cv_prog_cc_c89" in
6543  no)
6544     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6545                  version 4.2.5 and higher." >&5
6546 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
6547                  version 4.2.5 and higher." >&2;}
6548     ;;
6549 esac
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
6552 $as_echo_n "checking if $CC can handle #warning... " >&6; }
6553 if ${ntp_cv_cpp_warning+:} false; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h.  */
6558
6559 int
6560 main ()
6561 {
6562 #warning foo
6563   ;
6564   return 0;
6565 }
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568   ntp_cv_cpp_warning=yes
6569 else
6570   ntp_cv_cpp_warning=no
6571
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
6577 $as_echo "$ntp_cv_cpp_warning" >&6; }
6578 case "$ntp_cv_cpp_warning" in
6579  no)
6580
6581 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
6582
6583 esac
6584
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
6586 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
6587 if ${ntp_cv_cc_attribute+:} false; then :
6588   $as_echo_n "(cached) " >&6
6589 else
6590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h.  */
6592
6593 int
6594 main ()
6595 {
6596 void foo(void) __attribute__((__noreturn__));
6597
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603   ntp_cv_cc_attribute=yes
6604 else
6605   ntp_cv_cc_attribute=no
6606
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
6612 $as_echo "$ntp_cv_cc_attribute" >&6; }
6613 case "$ntp_cv_cc_attribute" in
6614  yes)
6615
6616 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
6617
6618 esac
6619
6620
6621 case "$GCC" in
6622  yes)
6623     SAVED_CFLAGS="$CFLAGS"
6624     CFLAGS="$CFLAGS -Wstrict-overflow"
6625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
6626 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
6627 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h.  */
6632
6633 int
6634 main ()
6635 {
6636
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_compile "$LINENO"; then :
6642   ntp_cv_gcc_Wstrict_overflow=yes
6643 else
6644   ntp_cv_gcc_Wstrict_overflow=no
6645
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
6651 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
6652     #
6653     # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
6654     # flag to CFLAGS.
6655     #
6656     CFLAGS="$SAVED_CFLAGS -Winit-self"
6657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
6658 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
6659 if ${ntp_cv_gcc_Winit_self+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662
6663             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h.  */
6665
6666 int
6667 main ()
6668 {
6669
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675   ntp_cv_gcc_Winit_self=yes
6676 else
6677   ntp_cv_gcc_Winit_self=no
6678
6679 fi
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681
6682
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
6685 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
6686     CFLAGS="$SAVED_CFLAGS"
6687     { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
6688     #
6689     # $ntp_cv_gcc_Winit_self is tested later to add the
6690     # flag to CFLAGS_NTP.
6691     #
6692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
6693 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
6694 if ${ntp_cv_gc_sections_runs+:} false; then :
6695   $as_echo_n "(cached) " >&6
6696 else
6697
6698                                                                                             origCFLAGS="$CFLAGS"
6699             CFLAGS="$CFLAGS -Wl,--gc-sections"
6700             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h.  */
6702
6703                         #include <stdlib.h>
6704                         #include <stdio.h>
6705
6706 int
6707 main ()
6708 {
6709
6710                         FILE *  fpC;
6711                         char    buf[32];
6712                         size_t  cch;
6713                         int     read_success_once;
6714
6715                         fpC = fopen("conftest.c", "r");
6716                         if (NULL == fpC)
6717                                 exit(1);
6718                         do {
6719                                 cch = fread(buf, sizeof(buf), 1, fpC);
6720                                 read_success_once |= (0 != cch);
6721                         } while (0 != cch);
6722                         if (!read_success_once)
6723                                 exit(2);
6724                         if (!feof(fpC))
6725                                 exit(3);
6726                         if (0 != fclose(fpC))
6727                                 exit(4);
6728
6729                         exit(EXIT_SUCCESS);
6730
6731
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 if ac_fn_c_try_link "$LINENO"; then :
6737
6738                     if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
6739                         ntp_cv_gc_sections_runs=no
6740                     else
6741                         ntp_cv_gc_sections_runs=no
6742                         ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
6743                     fi
6744
6745 else
6746   ntp_cv_gc_sections_runs=no
6747
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext \
6750     conftest$ac_exeext conftest.$ac_ext
6751             CFLAGS="$origCFLAGS"
6752             { origCFLAGS=; unset origCFLAGS;}
6753
6754
6755 fi
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6757 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
6758     case "$ntp_cv_gc_sections_runs" in
6759      yes)
6760         LDADD_LIBNTP="-Wl,--gc-sections"
6761         CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6762         ;;
6763      no)
6764         LDADD_LIBNTP=
6765         ;;
6766     esac
6767     CFLAGS_NTP="$CFLAGS_NTP -Wall"
6768     CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6769     CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6770     # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6771     # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6772     # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6773     # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6774     CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6775     CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6776     CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6777     # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6778     # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6779     case "$ntp_cv_gcc_Winit_self" in
6780      yes)
6781         CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6782     esac
6783     case "$ntp_cv_gcc_Wstrict_overflow" in
6784      yes)
6785         CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6786     esac
6787     # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6788 esac
6789
6790
6791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6792 $as_echo_n "checking additional compiler flags... " >&6; }
6793     # allow ntp_os_cflags to be preset to skip this stuff
6794     case "${ntp_os_cflags+set}" in
6795      set)
6796         ;;
6797      *)
6798         ntp_os_cflags=
6799         case "$host_os" in
6800          aix[1-3]*)
6801             ;;
6802          aix4.[0-2]*)
6803             # turn on additional headers
6804             ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6805             ;;
6806          aix5.3*)
6807             # avoid circular dependencies in yp headers, and more
6808             ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6809             ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6810             ;;
6811          aix*)
6812             # XXX Only verified thru AIX6.
6813             # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6814             # avoid circular dependencies in yp headers
6815             # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6816             # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6817             # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6818             ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6819             ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6820             ;;
6821          amigaos)
6822             ntp_os_cflags="-DSYS_AMIGA"
6823             ;;
6824          darwin*|macosx*|rhapsody*)
6825             ntp_os_cflags="-D_P1003_1B_VISIBLE"
6826             ;;
6827          hpux10.*)              # at least for hppa2.0-hp-hpux10.20
6828             case "$GCC" in
6829              yes)
6830                 ;;
6831              *)
6832                 # use Ansi compiler on HPUX, and some -Wp magic
6833                 ntp_os_cflags="-Ae -Wp,-H18816"
6834                 ;;
6835             esac
6836             ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6837             ;;
6838          hpux*)
6839             case "$GCC" in
6840              yes)
6841                 ;;
6842              *)
6843                 # use Ansi compiler on HPUX
6844                 ntp_os_cflags="-Ae"
6845             esac
6846             ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6847             ;;
6848          irix6*)
6849             case "$CC" in
6850              cc)
6851                 # do not use 64-bit compiler
6852                 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6853             esac
6854             ;;
6855          nextstep3)
6856             ntp_os_cflags="-posix"
6857             ;;
6858          solaris1*|solaris2.[0-5]|solaris2.5.*)
6859             ;;
6860          sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6861             ;;
6862          solaris2*|sunos5*)
6863             # turn on 64-bit file offset interface
6864             ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6865             ;;
6866          vxworks*)
6867             case "$build" in
6868              $host)
6869                 ;;
6870              *)
6871                 # Quick and dirty sanity check
6872                 case "$VX_KERNEL" in
6873                  '')
6874                     as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6875                 esac
6876                 ntp_os_cflags="-DSYS_VXWORKS"
6877             esac
6878             ;;
6879         esac
6880     esac
6881     case "$ntp_os_cflags" in
6882      '')
6883         ntp_os_cflags_msg="none needed"
6884         ;;
6885      *)
6886         ntp_os_cflags_msg="$ntp_os_cflags"
6887     esac
6888     CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6890 $as_echo "$ntp_os_cflags_msg" >&6; }
6891     { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6892     ###
6893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6894 $as_echo_n "checking additional linker flags... " >&6; }
6895     # HMS: The following might still need tweaking
6896     # allow ntp_os_ldflags to be preset to skip this stuff
6897     case "${ntp_os_ldflags+set}" in
6898      set)
6899         ;;
6900      *)
6901         ntp_os_ldflags=
6902         case "$host_os" in
6903          hpux*)
6904             case "$GCC" in
6905              yes)
6906                 ntp_os_ldflags="-Wl,+allowdups"
6907                 ;;
6908             esac
6909             ;;
6910         esac
6911         ;;
6912     esac
6913     case "$ntp_os_ldflags" in
6914      '')
6915         ntp_os_ldflags_msg="none needed"
6916         ;;
6917      *)
6918         ntp_os_ldflags_msg="$ntp_os_ldflags"
6919     esac
6920     LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6922 $as_echo "$ntp_os_ldflags_msg" >&6; }
6923     { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6924
6925
6926
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6928 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6929 if ${ac_cv_c_bigendian+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   ac_cv_c_bigendian=unknown
6933     # See if we're dealing with a universal compiler.
6934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h.  */
6936 #ifndef __APPLE_CC__
6937                not a universal capable compiler
6938              #endif
6939              typedef int dummy;
6940
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943
6944         # Check for potential -arch flags.  It is not universal unless
6945         # there are at least two -arch flags with different values.
6946         ac_arch=
6947         ac_prev=
6948         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6949          if test -n "$ac_prev"; then
6950            case $ac_word in
6951              i?86 | x86_64 | ppc | ppc64)
6952                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6953                  ac_arch=$ac_word
6954                else
6955                  ac_cv_c_bigendian=universal
6956                  break
6957                fi
6958                ;;
6959            esac
6960            ac_prev=
6961          elif test "x$ac_word" = "x-arch"; then
6962            ac_prev=arch
6963          fi
6964        done
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967     if test $ac_cv_c_bigendian = unknown; then
6968       # See if sys/param.h defines the BYTE_ORDER macro.
6969       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 #include <sys/types.h>
6972              #include <sys/param.h>
6973
6974 int
6975 main ()
6976 {
6977 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6978                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6979                      && LITTLE_ENDIAN)
6980               bogus endian macros
6981              #endif
6982
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 if ac_fn_c_try_compile "$LINENO"; then :
6988   # It does; now see whether it defined to BIG_ENDIAN or not.
6989          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991 #include <sys/types.h>
6992                 #include <sys/param.h>
6993
6994 int
6995 main ()
6996 {
6997 #if BYTE_ORDER != BIG_ENDIAN
6998                  not big endian
6999                 #endif
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006   ac_cv_c_bigendian=yes
7007 else
7008   ac_cv_c_bigendian=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013     fi
7014     if test $ac_cv_c_bigendian = unknown; then
7015       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018 #include <limits.h>
7019
7020 int
7021 main ()
7022 {
7023 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7024               bogus endian macros
7025              #endif
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 if ac_fn_c_try_compile "$LINENO"; then :
7032   # It does; now see whether it defined to _BIG_ENDIAN or not.
7033          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035 #include <limits.h>
7036
7037 int
7038 main ()
7039 {
7040 #ifndef _BIG_ENDIAN
7041                  not big endian
7042                 #endif
7043
7044   ;
7045   return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049   ac_cv_c_bigendian=yes
7050 else
7051   ac_cv_c_bigendian=no
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056     fi
7057     if test $ac_cv_c_bigendian = unknown; then
7058       # Compile a test program.
7059       if test "$cross_compiling" = yes; then :
7060   # Try to guess by grepping values from an object file.
7061          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h.  */
7063 short int ascii_mm[] =
7064                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7065                 short int ascii_ii[] =
7066                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7067                 int use_ascii (int i) {
7068                   return ascii_mm[i] + ascii_ii[i];
7069                 }
7070                 short int ebcdic_ii[] =
7071                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7072                 short int ebcdic_mm[] =
7073                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7074                 int use_ebcdic (int i) {
7075                   return ebcdic_mm[i] + ebcdic_ii[i];
7076                 }
7077                 extern int foo;
7078
7079 int
7080 main ()
7081 {
7082 return use_ascii (foo) == use_ebcdic (foo);
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 if ac_fn_c_try_compile "$LINENO"; then :
7088   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7089               ac_cv_c_bigendian=yes
7090             fi
7091             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7092               if test "$ac_cv_c_bigendian" = unknown; then
7093                 ac_cv_c_bigendian=no
7094               else
7095                 # finding both strings is unlikely to happen, but who knows?
7096                 ac_cv_c_bigendian=unknown
7097               fi
7098             fi
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 else
7102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h.  */
7104 $ac_includes_default
7105 int
7106 main ()
7107 {
7108
7109              /* Are we little or big endian?  From Harbison&Steele.  */
7110              union
7111              {
7112                long int l;
7113                char c[sizeof (long int)];
7114              } u;
7115              u.l = 1;
7116              return u.c[sizeof (long int) - 1] == 1;
7117
7118   ;
7119   return 0;
7120 }
7121 _ACEOF
7122 if ac_fn_c_try_run "$LINENO"; then :
7123   ac_cv_c_bigendian=no
7124 else
7125   ac_cv_c_bigendian=yes
7126 fi
7127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7128   conftest.$ac_objext conftest.beam conftest.$ac_ext
7129 fi
7130
7131     fi
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7134 $as_echo "$ac_cv_c_bigendian" >&6; }
7135  case $ac_cv_c_bigendian in #(
7136    yes)
7137      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7138 ;; #(
7139    no)
7140       ;; #(
7141    universal)
7142
7143 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7144
7145      ;; #(
7146    *)
7147      as_fn_error $? "unknown endianness
7148  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7149  esac
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7152 $as_echo_n "checking for working volatile... " >&6; }
7153 if ${ac_cv_c_volatile+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h.  */
7158
7159 int
7160 main ()
7161 {
7162
7163 volatile int x;
7164 int * volatile y = (int *) 0;
7165 return !x && !y;
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171   ac_cv_c_volatile=yes
7172 else
7173   ac_cv_c_volatile=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7178 $as_echo "$ac_cv_c_volatile" >&6; }
7179 if test $ac_cv_c_volatile = no; then
7180
7181 $as_echo "#define volatile /**/" >>confdefs.h
7182
7183 fi
7184
7185 ac_ext=c
7186 ac_cpp='$CPP $CPPFLAGS'
7187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7191 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7192 # On Suns, sometimes $CPP names a directory.
7193 if test -n "$CPP" && test -d "$CPP"; then
7194   CPP=
7195 fi
7196 if test -z "$CPP"; then
7197   if ${ac_cv_prog_CPP+:} false; then :
7198   $as_echo_n "(cached) " >&6
7199 else
7200       # Double quotes because CPP needs to be expanded
7201     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7202     do
7203       ac_preproc_ok=false
7204 for ac_c_preproc_warn_flag in '' yes
7205 do
7206   # Use a header file that comes with gcc, so configuring glibc
7207   # with a fresh cross-compiler works.
7208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7209   # <limits.h> exists even on freestanding compilers.
7210   # On the NeXT, cc -E runs the code through the compiler's parser,
7211   # not just through cpp. "Syntax error" is here to catch this case.
7212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h.  */
7214 #ifdef __STDC__
7215 # include <limits.h>
7216 #else
7217 # include <assert.h>
7218 #endif
7219                      Syntax error
7220 _ACEOF
7221 if ac_fn_c_try_cpp "$LINENO"; then :
7222
7223 else
7224   # Broken: fails on valid input.
7225 continue
7226 fi
7227 rm -f conftest.err conftest.i conftest.$ac_ext
7228
7229   # OK, works on sane cases.  Now check whether nonexistent headers
7230   # can be detected and how.
7231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h.  */
7233 #include <ac_nonexistent.h>
7234 _ACEOF
7235 if ac_fn_c_try_cpp "$LINENO"; then :
7236   # Broken: success on invalid input.
7237 continue
7238 else
7239   # Passes both tests.
7240 ac_preproc_ok=:
7241 break
7242 fi
7243 rm -f conftest.err conftest.i conftest.$ac_ext
7244
7245 done
7246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7247 rm -f conftest.i conftest.err conftest.$ac_ext
7248 if $ac_preproc_ok; then :
7249   break
7250 fi
7251
7252     done
7253     ac_cv_prog_CPP=$CPP
7254
7255 fi
7256   CPP=$ac_cv_prog_CPP
7257 else
7258   ac_cv_prog_CPP=$CPP
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7261 $as_echo "$CPP" >&6; }
7262 ac_preproc_ok=false
7263 for ac_c_preproc_warn_flag in '' yes
7264 do
7265   # Use a header file that comes with gcc, so configuring glibc
7266   # with a fresh cross-compiler works.
7267   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7268   # <limits.h> exists even on freestanding compilers.
7269   # On the NeXT, cc -E runs the code through the compiler's parser,
7270   # not just through cpp. "Syntax error" is here to catch this case.
7271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h.  */
7273 #ifdef __STDC__
7274 # include <limits.h>
7275 #else
7276 # include <assert.h>
7277 #endif
7278                      Syntax error
7279 _ACEOF
7280 if ac_fn_c_try_cpp "$LINENO"; then :
7281
7282 else
7283   # Broken: fails on valid input.
7284 continue
7285 fi
7286 rm -f conftest.err conftest.i conftest.$ac_ext
7287
7288   # OK, works on sane cases.  Now check whether nonexistent headers
7289   # can be detected and how.
7290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h.  */
7292 #include <ac_nonexistent.h>
7293 _ACEOF
7294 if ac_fn_c_try_cpp "$LINENO"; then :
7295   # Broken: success on invalid input.
7296 continue
7297 else
7298   # Passes both tests.
7299 ac_preproc_ok=:
7300 break
7301 fi
7302 rm -f conftest.err conftest.i conftest.$ac_ext
7303
7304 done
7305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7306 rm -f conftest.i conftest.err conftest.$ac_ext
7307 if $ac_preproc_ok; then :
7308
7309 else
7310   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7312 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7313 See \`config.log' for more details" "$LINENO" 5; }
7314 fi
7315
7316 ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322
7323
7324 ac_ext=c
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7330 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7331 # On Suns, sometimes $CPP names a directory.
7332 if test -n "$CPP" && test -d "$CPP"; then
7333   CPP=
7334 fi
7335 if test -z "$CPP"; then
7336   if ${ac_cv_prog_CPP+:} false; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339       # Double quotes because CPP needs to be expanded
7340     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7341     do
7342       ac_preproc_ok=false
7343 for ac_c_preproc_warn_flag in '' yes
7344 do
7345   # Use a header file that comes with gcc, so configuring glibc
7346   # with a fresh cross-compiler works.
7347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7348   # <limits.h> exists even on freestanding compilers.
7349   # On the NeXT, cc -E runs the code through the compiler's parser,
7350   # not just through cpp. "Syntax error" is here to catch this case.
7351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h.  */
7353 #ifdef __STDC__
7354 # include <limits.h>
7355 #else
7356 # include <assert.h>
7357 #endif
7358                      Syntax error
7359 _ACEOF
7360 if ac_fn_c_try_cpp "$LINENO"; then :
7361
7362 else
7363   # Broken: fails on valid input.
7364 continue
7365 fi
7366 rm -f conftest.err conftest.i conftest.$ac_ext
7367
7368   # OK, works on sane cases.  Now check whether nonexistent headers
7369   # can be detected and how.
7370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h.  */
7372 #include <ac_nonexistent.h>
7373 _ACEOF
7374 if ac_fn_c_try_cpp "$LINENO"; then :
7375   # Broken: success on invalid input.
7376 continue
7377 else
7378   # Passes both tests.
7379 ac_preproc_ok=:
7380 break
7381 fi
7382 rm -f conftest.err conftest.i conftest.$ac_ext
7383
7384 done
7385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7386 rm -f conftest.i conftest.err conftest.$ac_ext
7387 if $ac_preproc_ok; then :
7388   break
7389 fi
7390
7391     done
7392     ac_cv_prog_CPP=$CPP
7393
7394 fi
7395   CPP=$ac_cv_prog_CPP
7396 else
7397   ac_cv_prog_CPP=$CPP
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7400 $as_echo "$CPP" >&6; }
7401 ac_preproc_ok=false
7402 for ac_c_preproc_warn_flag in '' yes
7403 do
7404   # Use a header file that comes with gcc, so configuring glibc
7405   # with a fresh cross-compiler works.
7406   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7407   # <limits.h> exists even on freestanding compilers.
7408   # On the NeXT, cc -E runs the code through the compiler's parser,
7409   # not just through cpp. "Syntax error" is here to catch this case.
7410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h.  */
7412 #ifdef __STDC__
7413 # include <limits.h>
7414 #else
7415 # include <assert.h>
7416 #endif
7417                      Syntax error
7418 _ACEOF
7419 if ac_fn_c_try_cpp "$LINENO"; then :
7420
7421 else
7422   # Broken: fails on valid input.
7423 continue
7424 fi
7425 rm -f conftest.err conftest.i conftest.$ac_ext
7426
7427   # OK, works on sane cases.  Now check whether nonexistent headers
7428   # can be detected and how.
7429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h.  */
7431 #include <ac_nonexistent.h>
7432 _ACEOF
7433 if ac_fn_c_try_cpp "$LINENO"; then :
7434   # Broken: success on invalid input.
7435 continue
7436 else
7437   # Passes both tests.
7438 ac_preproc_ok=:
7439 break
7440 fi
7441 rm -f conftest.err conftest.i conftest.$ac_ext
7442
7443 done
7444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7445 rm -f conftest.i conftest.err conftest.$ac_ext
7446 if $ac_preproc_ok; then :
7447
7448 else
7449   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7451 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7452 See \`config.log' for more details" "$LINENO" 5; }
7453 fi
7454
7455 ac_ext=c
7456 ac_cpp='$CPP $CPPFLAGS'
7457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7460
7461 # Do we need CXX for anything besides google test?
7462 ac_ext=cpp
7463 ac_cpp='$CXXCPP $CPPFLAGS'
7464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7467 if test -z "$CXX"; then
7468   if test -n "$CCC"; then
7469     CXX=$CCC
7470   else
7471     if test -n "$ac_tool_prefix"; then
7472   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7473   do
7474     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_CXX+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$CXX"; then
7482   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 CXX=$ac_cv_prog_CXX
7502 if test -n "$CXX"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7504 $as_echo "$CXX" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511     test -n "$CXX" && break
7512   done
7513 fi
7514 if test -z "$CXX"; then
7515   ac_ct_CXX=$CXX
7516   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7517 do
7518   # Extract the first word of "$ac_prog", so it can be a program name with args.
7519 set dummy $ac_prog; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   if test -n "$ac_ct_CXX"; then
7526   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533     for ac_exec_ext in '' $ac_executable_extensions; do
7534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_prog_ac_ct_CXX="$ac_prog"
7536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540   done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7546 if test -n "$ac_ct_CXX"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7548 $as_echo "$ac_ct_CXX" >&6; }
7549 else
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554
7555   test -n "$ac_ct_CXX" && break
7556 done
7557
7558   if test "x$ac_ct_CXX" = x; then
7559     CXX="g++"
7560   else
7561     case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567     CXX=$ac_ct_CXX
7568   fi
7569 fi
7570
7571   fi
7572 fi
7573 # Provide some information about the compiler.
7574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7575 set X $ac_compile
7576 ac_compiler=$2
7577 for ac_option in --version -v -V -qversion; do
7578   { { ac_try="$ac_compiler $ac_option >&5"
7579 case "(($ac_try" in
7580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581   *) ac_try_echo=$ac_try;;
7582 esac
7583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7584 $as_echo "$ac_try_echo"; } >&5
7585   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7586   ac_status=$?
7587   if test -s conftest.err; then
7588     sed '10a\
7589 ... rest of stderr output deleted ...
7590          10q' conftest.err >conftest.er1
7591     cat conftest.er1 >&5
7592   fi
7593   rm -f conftest.er1 conftest.err
7594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595   test $ac_status = 0; }
7596 done
7597
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7599 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7600 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h.  */
7605
7606 int
7607 main ()
7608 {
7609 #ifndef __GNUC__
7610        choke me
7611 #endif
7612
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_cxx_try_compile "$LINENO"; then :
7618   ac_compiler_gnu=yes
7619 else
7620   ac_compiler_gnu=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7624
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7627 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7628 if test $ac_compiler_gnu = yes; then
7629   GXX=yes
7630 else
7631   GXX=
7632 fi
7633 ac_test_CXXFLAGS=${CXXFLAGS+set}
7634 ac_save_CXXFLAGS=$CXXFLAGS
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7636 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7637 if ${ac_cv_prog_cxx_g+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7641    ac_cxx_werror_flag=yes
7642    ac_cv_prog_cxx_g=no
7643    CXXFLAGS="-g"
7644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h.  */
7646
7647 int
7648 main ()
7649 {
7650
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_cxx_try_compile "$LINENO"; then :
7656   ac_cv_prog_cxx_g=yes
7657 else
7658   CXXFLAGS=""
7659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h.  */
7661
7662 int
7663 main ()
7664 {
7665
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_cxx_try_compile "$LINENO"; then :
7671
7672 else
7673   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7674          CXXFLAGS="-g"
7675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h.  */
7677
7678 int
7679 main ()
7680 {
7681
7682   ;
7683   return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_cxx_try_compile "$LINENO"; then :
7687   ac_cv_prog_cxx_g=yes
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7697 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7698 if test "$ac_test_CXXFLAGS" = set; then
7699   CXXFLAGS=$ac_save_CXXFLAGS
7700 elif test $ac_cv_prog_cxx_g = yes; then
7701   if test "$GXX" = yes; then
7702     CXXFLAGS="-g -O2"
7703   else
7704     CXXFLAGS="-g"
7705   fi
7706 else
7707   if test "$GXX" = yes; then
7708     CXXFLAGS="-O2"
7709   else
7710     CXXFLAGS=
7711   fi
7712 fi
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719 depcc="$CXX"  am_compiler_list=
7720
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7722 $as_echo_n "checking dependency style of $depcc... " >&6; }
7723 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7727   # We make a subdir and do the tests there.  Otherwise we can end up
7728   # making bogus files that we don't know about and never remove.  For
7729   # instance it was reported that on HP-UX the gcc test will end up
7730   # making a dummy file named 'D' -- because '-MD' means "put the output
7731   # in D".
7732   rm -rf conftest.dir
7733   mkdir conftest.dir
7734   # Copy depcomp to subdir because otherwise we won't find it if we're
7735   # using a relative directory.
7736   cp "$am_depcomp" conftest.dir
7737   cd conftest.dir
7738   # We will build objects and dependencies in a subdirectory because
7739   # it helps to detect inapplicable dependency modes.  For instance
7740   # both Tru64's cc and ICC support -MD to output dependencies as a
7741   # side effect of compilation, but ICC will put the dependencies in
7742   # the current directory while Tru64 will put them in the object
7743   # directory.
7744   mkdir sub
7745
7746   am_cv_CXX_dependencies_compiler_type=none
7747   if test "$am_compiler_list" = ""; then
7748      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7749   fi
7750   am__universal=false
7751   case " $depcc " in #(
7752      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7753      esac
7754
7755   for depmode in $am_compiler_list; do
7756     # Setup a source with many dependencies, because some compilers
7757     # like to wrap large dependency lists on column 80 (with \), and
7758     # we should not choose a depcomp mode which is confused by this.
7759     #
7760     # We need to recreate these files for each test, as the compiler may
7761     # overwrite some of them when testing with obscure command lines.
7762     # This happens at least with the AIX C compiler.
7763     : > sub/conftest.c
7764     for i in 1 2 3 4 5 6; do
7765       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7766       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7767       # Solaris 10 /bin/sh.
7768       echo '/* dummy */' > sub/conftst$i.h
7769     done
7770     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7771
7772     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7773     # mode.  It turns out that the SunPro C++ compiler does not properly
7774     # handle '-M -o', and we need to detect this.  Also, some Intel
7775     # versions had trouble with output in subdirs.
7776     am__obj=sub/conftest.${OBJEXT-o}
7777     am__minus_obj="-o $am__obj"
7778     case $depmode in
7779     gcc)
7780       # This depmode causes a compiler race in universal mode.
7781       test "$am__universal" = false || continue
7782       ;;
7783     nosideeffect)
7784       # After this tag, mechanisms are not by side-effect, so they'll
7785       # only be used when explicitly requested.
7786       if test "x$enable_dependency_tracking" = xyes; then
7787         continue
7788       else
7789         break
7790       fi
7791       ;;
7792     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7793       # This compiler won't grok '-c -o', but also, the minuso test has
7794       # not run yet.  These depmodes are late enough in the game, and
7795       # so weak that their functioning should not be impacted.
7796       am__obj=conftest.${OBJEXT-o}
7797       am__minus_obj=
7798       ;;
7799     none) break ;;
7800     esac
7801     if depmode=$depmode \
7802        source=sub/conftest.c object=$am__obj \
7803        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7804        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7805          >/dev/null 2>conftest.err &&
7806        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7807        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7808        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7809        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7810       # icc doesn't choke on unknown options, it will just issue warnings
7811       # or remarks (even with -Werror).  So we grep stderr for any message
7812       # that says an option was ignored or not supported.
7813       # When given -MP, icc 7.0 and 7.1 complain thusly:
7814       #   icc: Command line warning: ignoring option '-M'; no argument required
7815       # The diagnosis changed in icc 8.0:
7816       #   icc: Command line remark: option '-MP' not supported
7817       if (grep 'ignoring option' conftest.err ||
7818           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7819         am_cv_CXX_dependencies_compiler_type=$depmode
7820         break
7821       fi
7822     fi
7823   done
7824
7825   cd ..
7826   rm -rf conftest.dir
7827 else
7828   am_cv_CXX_dependencies_compiler_type=none
7829 fi
7830
7831 fi
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7833 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7835
7836  if
7837   test "x$enable_dependency_tracking" != xno \
7838   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7839   am__fastdepCXX_TRUE=
7840   am__fastdepCXX_FALSE='#'
7841 else
7842   am__fastdepCXX_TRUE='#'
7843   am__fastdepCXX_FALSE=
7844 fi
7845
7846
7847 for ac_prog in 'bison -y' byacc
7848 do
7849   # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_YACC+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   if test -n "$YACC"; then
7857   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864     for ac_exec_ext in '' $ac_executable_extensions; do
7865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866     ac_cv_prog_YACC="$ac_prog"
7867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871   done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 YACC=$ac_cv_prog_YACC
7877 if test -n "$YACC"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7879 $as_echo "$YACC" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886   test -n "$YACC" && break
7887 done
7888 test -n "$YACC" || YACC="yacc"
7889
7890 if test "x$CC" != xcc; then
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7892 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7893 else
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7895 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7896 fi
7897 set dummy $CC; ac_cc=`$as_echo "$2" |
7898                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7899 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904
7905 int
7906 main ()
7907 {
7908
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 # Make sure it works both with $CC and with simple cc.
7914 # We do the test twice because some compilers refuse to overwrite an
7915 # existing .o file with -o, though they will create one.
7916 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7917 rm -f conftest2.*
7918 if { { case "(($ac_try" in
7919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920   *) ac_try_echo=$ac_try;;
7921 esac
7922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7923 $as_echo "$ac_try_echo"; } >&5
7924   (eval "$ac_try") 2>&5
7925   ac_status=$?
7926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7927   test $ac_status = 0; } &&
7928    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930   *) ac_try_echo=$ac_try;;
7931 esac
7932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7933 $as_echo "$ac_try_echo"; } >&5
7934   (eval "$ac_try") 2>&5
7935   ac_status=$?
7936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937   test $ac_status = 0; };
7938 then
7939   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7940   if test "x$CC" != xcc; then
7941     # Test first that cc exists at all.
7942     if { ac_try='cc -c conftest.$ac_ext >&5'
7943   { { case "(($ac_try" in
7944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945   *) ac_try_echo=$ac_try;;
7946 esac
7947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7948 $as_echo "$ac_try_echo"; } >&5
7949   (eval "$ac_try") 2>&5
7950   ac_status=$?
7951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952   test $ac_status = 0; }; }; then
7953       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7954       rm -f conftest2.*
7955       if { { case "(($ac_try" in
7956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957   *) ac_try_echo=$ac_try;;
7958 esac
7959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7960 $as_echo "$ac_try_echo"; } >&5
7961   (eval "$ac_try") 2>&5
7962   ac_status=$?
7963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964   test $ac_status = 0; } &&
7965          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7970 $as_echo "$ac_try_echo"; } >&5
7971   (eval "$ac_try") 2>&5
7972   ac_status=$?
7973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974   test $ac_status = 0; };
7975       then
7976         # cc works too.
7977         :
7978       else
7979         # cc exists but doesn't like -o.
7980         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7981       fi
7982     fi
7983   fi
7984 else
7985   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7986 fi
7987 rm -f core conftest*
7988
7989 fi
7990 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7993 else
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996
7997 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7998
7999 fi
8000
8001
8002         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
8003 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
8004
8005
8006         ac_ext=c
8007 ac_cpp='$CPP $CPPFLAGS'
8008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012
8013                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h.  */
8015
8016                         struct foo_s {int i1; int i2;};
8017                         int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
8018
8019 _ACEOF
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022 $as_echo "yes" >&6; }
8023 else
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026
8027 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
8028
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031
8032         ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037
8038
8039
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
8042 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
8043 ntp_vpath_hack="no"
8044 case "$srcdir::${force_ntp_vpath_hack-no}" in
8045  .::*)
8046     ;; # VPATH_HACK path is for VPATH builds only.
8047  *::yes)
8048     ntp_vpath_hack="yes"
8049     ;;
8050  *::*)
8051     case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8052      '')
8053         ntp_vpath_hack="yes"
8054     esac
8055 esac
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
8057 $as_echo "$ntp_vpath_hack" >&6; }
8058  if test x$ntp_vpath_hack = xyes; then
8059   VPATH_HACK_TRUE=
8060   VPATH_HACK_FALSE='#'
8061 else
8062   VPATH_HACK_TRUE='#'
8063   VPATH_HACK_FALSE=
8064 fi
8065
8066
8067
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
8070 $as_echo_n "checking for install dir and man conventions... " >&6; }
8071
8072
8073 # Check whether --with-locfile was given.
8074 if test "${with_locfile+set}" = set; then :
8075   withval=$with_locfile;
8076 else
8077   with_locfile=no
8078
8079 fi
8080
8081
8082 (                                                                       \
8083     SENTINEL_DIR="$PWD" &&                                              \
8084     cd $srcdir/sntp &&                                                  \
8085     case "$with_locfile" in                                             \
8086      yes|no|'')                                                         \
8087         scripts/genLocInfo -d "$SENTINEL_DIR"                           \
8088         ;;                                                              \
8089      *)                                                                 \
8090         scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile"        \
8091         ;;                                                              \
8092     esac                                                                \
8093 ) > genLocInfo.i 2> genLocInfo.err
8094 . ./genLocInfo.i
8095
8096 case "$GENLOCINFO" in
8097  OK)
8098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
8099 $as_echo "in file $GENLOCINFOFILE" >&6; }
8100     rm genLocInfo.err genLocInfo.i
8101     ;;
8102  *)
8103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
8104 $as_echo "failed." >&6; }
8105     as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
8106     ;;
8107 esac
8108
8109  if test "$CALC_TICKADJ_MS" ; then
8110   WANT_CALC_TICKADJ_MS_TRUE=
8111   WANT_CALC_TICKADJ_MS_FALSE='#'
8112 else
8113   WANT_CALC_TICKADJ_MS_TRUE='#'
8114   WANT_CALC_TICKADJ_MS_FALSE=
8115 fi
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
8154
8155
8156
8157
8158
8159  if test -z "$NTPSWEEP_NI" ; then
8160   INSTALL_NTPSWEEP_TRUE=
8161   INSTALL_NTPSWEEP_FALSE='#'
8162 else
8163   INSTALL_NTPSWEEP_TRUE='#'
8164   INSTALL_NTPSWEEP_FALSE=
8165 fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207  if test -z "$UPDATE_LEAP_NI" ; then
8208   INSTALL_UPDATE_LEAP_TRUE=
8209   INSTALL_UPDATE_LEAP_FALSE='#'
8210 else
8211   INSTALL_UPDATE_LEAP_TRUE='#'
8212   INSTALL_UPDATE_LEAP_FALSE=
8213 fi
8214
8215
8216
8217 if test -n "$ac_tool_prefix"; then
8218   for ac_prog in ar lib "link -lib"
8219   do
8220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if ${ac_cv_prog_AR+:} false; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   if test -n "$AR"; then
8228   ac_cv_prog_AR="$AR" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233   IFS=$as_save_IFS
8234   test -z "$as_dir" && as_dir=.
8235     for ac_exec_ext in '' $ac_executable_extensions; do
8236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239     break 2
8240   fi
8241 done
8242   done
8243 IFS=$as_save_IFS
8244
8245 fi
8246 fi
8247 AR=$ac_cv_prog_AR
8248 if test -n "$AR"; then
8249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8250 $as_echo "$AR" >&6; }
8251 else
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8254 fi
8255
8256
8257     test -n "$AR" && break
8258   done
8259 fi
8260 if test -z "$AR"; then
8261   ac_ct_AR=$AR
8262   for ac_prog in ar lib "link -lib"
8263 do
8264   # Extract the first word of "$ac_prog", so it can be a program name with args.
8265 set dummy $ac_prog; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   if test -n "$ac_ct_AR"; then
8272   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277   IFS=$as_save_IFS
8278   test -z "$as_dir" && as_dir=.
8279     for ac_exec_ext in '' $ac_executable_extensions; do
8280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281     ac_cv_prog_ac_ct_AR="$ac_prog"
8282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283     break 2
8284   fi
8285 done
8286   done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8292 if test -n "$ac_ct_AR"; then
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8294 $as_echo "$ac_ct_AR" >&6; }
8295 else
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300
8301   test -n "$ac_ct_AR" && break
8302 done
8303
8304   if test "x$ac_ct_AR" = x; then
8305     AR="false"
8306   else
8307     case $cross_compiling:$ac_tool_warned in
8308 yes:)
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8312 esac
8313     AR=$ac_ct_AR
8314   fi
8315 fi
8316
8317 : ${AR=ar}
8318
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8320 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8321 if ${am_cv_ar_interface+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   ac_ext=c
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8329
8330    am_cv_ar_interface=ar
8331    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h.  */
8333 int some_variable = 0;
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8337       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8338   (eval $am_ar_try) 2>&5
8339   ac_status=$?
8340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8341   test $ac_status = 0; }
8342       if test "$ac_status" -eq 0; then
8343         am_cv_ar_interface=ar
8344       else
8345         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8346         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8347   (eval $am_ar_try) 2>&5
8348   ac_status=$?
8349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8350   test $ac_status = 0; }
8351         if test "$ac_status" -eq 0; then
8352           am_cv_ar_interface=lib
8353         else
8354           am_cv_ar_interface=unknown
8355         fi
8356       fi
8357       rm -f conftest.lib libconftest.a
8358
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361    ac_ext=c
8362 ac_cpp='$CPP $CPPFLAGS'
8363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366
8367 fi
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8369 $as_echo "$am_cv_ar_interface" >&6; }
8370
8371 case $am_cv_ar_interface in
8372 ar)
8373   ;;
8374 lib)
8375   # Microsoft lib, so override with the ar-lib wrapper script.
8376   # FIXME: It is wrong to rewrite AR.
8377   # But if we don't then we get into trouble of one sort or another.
8378   # A longer-term fix would be to have automake use am__AR in this case,
8379   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8380   # similar.
8381   AR="$am_aux_dir/ar-lib $AR"
8382   ;;
8383 unknown)
8384   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8385   ;;
8386 esac
8387
8388
8389
8390 # So far, the only shared library we might use is libopts.
8391 # It's a small library - we might as well use a static version of it.
8392 # Check whether --enable-shared was given.
8393 if test "${enable_shared+set}" = set; then :
8394   enableval=$enable_shared; p=${PACKAGE-default}
8395     case $enableval in
8396     yes) enable_shared=yes ;;
8397     no) enable_shared=no ;;
8398     *)
8399       enable_shared=no
8400       # Look at the argument we got.  We use all the common list separators.
8401       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8402       for pkg in $enableval; do
8403         IFS="$lt_save_ifs"
8404         if test "X$pkg" = "X$p"; then
8405           enable_shared=yes
8406         fi
8407       done
8408       IFS="$lt_save_ifs"
8409       ;;
8410     esac
8411 else
8412   enable_shared=no
8413 fi
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423 case `pwd` in
8424   *\ * | *\     *)
8425     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8426 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8427 esac
8428
8429
8430
8431 macro_version='2.4.2'
8432 macro_revision='1.3337'
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 ltmain="$ac_aux_dir/ltmain.sh"
8447
8448 # Backslashify metacharacters that are still active within
8449 # double-quoted strings.
8450 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8451
8452 # Same as above, but do not quote variable references.
8453 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8454
8455 # Sed substitution to delay expansion of an escaped shell variable in a
8456 # double_quote_subst'ed string.
8457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8458
8459 # Sed substitution to delay expansion of an escaped single quote.
8460 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8461
8462 # Sed substitution to avoid accidental globbing in evaled expressions
8463 no_glob_subst='s/\*/\\\*/g'
8464
8465 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8467 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8468
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8470 $as_echo_n "checking how to print strings... " >&6; }
8471 # Test print first, because it will be a builtin if present.
8472 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8473    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8474   ECHO='print -r --'
8475 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8476   ECHO='printf %s\n'
8477 else
8478   # Use this function as a fallback that always works.
8479   func_fallback_echo ()
8480   {
8481     eval 'cat <<_LTECHO_EOF
8482 $1
8483 _LTECHO_EOF'
8484   }
8485   ECHO='func_fallback_echo'
8486 fi
8487
8488 # func_echo_all arg...
8489 # Invoke $ECHO with all args, space-separated.
8490 func_echo_all ()
8491 {
8492     $ECHO ""
8493 }
8494
8495 case "$ECHO" in
8496   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8497 $as_echo "printf" >&6; } ;;
8498   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8499 $as_echo "print -r" >&6; } ;;
8500   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8501 $as_echo "cat" >&6; } ;;
8502 esac
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8518 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8519 if ${ac_cv_path_SED+:} false; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8523      for ac_i in 1 2 3 4 5 6 7; do
8524        ac_script="$ac_script$as_nl$ac_script"
8525      done
8526      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8527      { ac_script=; unset ac_script;}
8528      if test -z "$SED"; then
8529   ac_path_SED_found=false
8530   # Loop through the user's path and test for each of PROGNAME-LIST
8531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534   IFS=$as_save_IFS
8535   test -z "$as_dir" && as_dir=.
8536     for ac_prog in sed gsed; do
8537     for ac_exec_ext in '' $ac_executable_extensions; do
8538       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8539       as_fn_executable_p "$ac_path_SED" || continue
8540 # Check for GNU ac_path_SED and select it if it is found.
8541   # Check for GNU $ac_path_SED
8542 case `"$ac_path_SED" --version 2>&1` in
8543 *GNU*)
8544   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8545 *)
8546   ac_count=0
8547   $as_echo_n 0123456789 >"conftest.in"
8548   while :
8549   do
8550     cat "conftest.in" "conftest.in" >"conftest.tmp"
8551     mv "conftest.tmp" "conftest.in"
8552     cp "conftest.in" "conftest.nl"
8553     $as_echo '' >> "conftest.nl"
8554     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8555     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8556     as_fn_arith $ac_count + 1 && ac_count=$as_val
8557     if test $ac_count -gt ${ac_path_SED_max-0}; then
8558       # Best one so far, save it but keep looking for a better one
8559       ac_cv_path_SED="$ac_path_SED"
8560       ac_path_SED_max=$ac_count
8561     fi
8562     # 10*(2^10) chars as input seems more than enough
8563     test $ac_count -gt 10 && break
8564   done
8565   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8566 esac
8567
8568       $ac_path_SED_found && break 3
8569     done
8570   done
8571   done
8572 IFS=$as_save_IFS
8573   if test -z "$ac_cv_path_SED"; then
8574     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8575   fi
8576 else
8577   ac_cv_path_SED=$SED
8578 fi
8579
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8582 $as_echo "$ac_cv_path_SED" >&6; }
8583  SED="$ac_cv_path_SED"
8584   rm -f conftest.sed
8585
8586 test -z "$SED" && SED=sed
8587 Xsed="$SED -e 1s/^X//"
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8600 $as_echo_n "checking for fgrep... " >&6; }
8601 if ${ac_cv_path_FGREP+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8605    then ac_cv_path_FGREP="$GREP -F"
8606    else
8607      if test -z "$FGREP"; then
8608   ac_path_FGREP_found=false
8609   # Loop through the user's path and test for each of PROGNAME-LIST
8610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8612 do
8613   IFS=$as_save_IFS
8614   test -z "$as_dir" && as_dir=.
8615     for ac_prog in fgrep; do
8616     for ac_exec_ext in '' $ac_executable_extensions; do
8617       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8618       as_fn_executable_p "$ac_path_FGREP" || continue
8619 # Check for GNU ac_path_FGREP and select it if it is found.
8620   # Check for GNU $ac_path_FGREP
8621 case `"$ac_path_FGREP" --version 2>&1` in
8622 *GNU*)
8623   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8624 *)
8625   ac_count=0
8626   $as_echo_n 0123456789 >"conftest.in"
8627   while :
8628   do
8629     cat "conftest.in" "conftest.in" >"conftest.tmp"
8630     mv "conftest.tmp" "conftest.in"
8631     cp "conftest.in" "conftest.nl"
8632     $as_echo 'FGREP' >> "conftest.nl"
8633     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8634     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8635     as_fn_arith $ac_count + 1 && ac_count=$as_val
8636     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8637       # Best one so far, save it but keep looking for a better one
8638       ac_cv_path_FGREP="$ac_path_FGREP"
8639       ac_path_FGREP_max=$ac_count
8640     fi
8641     # 10*(2^10) chars as input seems more than enough
8642     test $ac_count -gt 10 && break
8643   done
8644   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8645 esac
8646
8647       $ac_path_FGREP_found && break 3
8648     done
8649   done
8650   done
8651 IFS=$as_save_IFS
8652   if test -z "$ac_cv_path_FGREP"; then
8653     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8654   fi
8655 else
8656   ac_cv_path_FGREP=$FGREP
8657 fi
8658
8659    fi
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8662 $as_echo "$ac_cv_path_FGREP" >&6; }
8663  FGREP="$ac_cv_path_FGREP"
8664
8665
8666 test -z "$GREP" && GREP=grep
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686 # Check whether --with-gnu-ld was given.
8687 if test "${with_gnu_ld+set}" = set; then :
8688   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8689 else
8690   with_gnu_ld=no
8691 fi
8692
8693 ac_prog=ld
8694 if test "$GCC" = yes; then
8695   # Check if gcc -print-prog-name=ld gives a path.
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8697 $as_echo_n "checking for ld used by $CC... " >&6; }
8698   case $host in
8699   *-*-mingw*)
8700     # gcc leaves a trailing carriage return which upsets mingw
8701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8702   *)
8703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8704   esac
8705   case $ac_prog in
8706     # Accept absolute paths.
8707     [\\/]* | ?:[\\/]*)
8708       re_direlt='/[^/][^/]*/\.\./'
8709       # Canonicalize the pathname of ld
8710       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8711       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8712         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8713       done
8714       test -z "$LD" && LD="$ac_prog"
8715       ;;
8716   "")
8717     # If it fails, then pretend we aren't using GCC.
8718     ac_prog=ld
8719     ;;
8720   *)
8721     # If it is relative, then search for the first ld in PATH.
8722     with_gnu_ld=unknown
8723     ;;
8724   esac
8725 elif test "$with_gnu_ld" = yes; then
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8727 $as_echo_n "checking for GNU ld... " >&6; }
8728 else
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8730 $as_echo_n "checking for non-GNU ld... " >&6; }
8731 fi
8732 if ${lt_cv_path_LD+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   if test -z "$LD"; then
8736   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8737   for ac_dir in $PATH; do
8738     IFS="$lt_save_ifs"
8739     test -z "$ac_dir" && ac_dir=.
8740     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8741       lt_cv_path_LD="$ac_dir/$ac_prog"
8742       # Check to see if the program is GNU ld.  I'd rather use --version,
8743       # but apparently some variants of GNU ld only accept -v.
8744       # Break only if it was the GNU/non-GNU ld that we prefer.
8745       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8746       *GNU* | *'with BFD'*)
8747         test "$with_gnu_ld" != no && break
8748         ;;
8749       *)
8750         test "$with_gnu_ld" != yes && break
8751         ;;
8752       esac
8753     fi
8754   done
8755   IFS="$lt_save_ifs"
8756 else
8757   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8758 fi
8759 fi
8760
8761 LD="$lt_cv_path_LD"
8762 if test -n "$LD"; then
8763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8764 $as_echo "$LD" >&6; }
8765 else
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8768 fi
8769 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8772 if ${lt_cv_prog_gnu_ld+:} false; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8776 case `$LD -v 2>&1 </dev/null` in
8777 *GNU* | *'with BFD'*)
8778   lt_cv_prog_gnu_ld=yes
8779   ;;
8780 *)
8781   lt_cv_prog_gnu_ld=no
8782   ;;
8783 esac
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8787 with_gnu_ld=$lt_cv_prog_gnu_ld
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8798 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8799 if ${lt_cv_path_NM+:} false; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   if test -n "$NM"; then
8803   # Let the user override the test.
8804   lt_cv_path_NM="$NM"
8805 else
8806   lt_nm_to_check="${ac_tool_prefix}nm"
8807   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8808     lt_nm_to_check="$lt_nm_to_check nm"
8809   fi
8810   for lt_tmp_nm in $lt_nm_to_check; do
8811     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8812     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8813       IFS="$lt_save_ifs"
8814       test -z "$ac_dir" && ac_dir=.
8815       tmp_nm="$ac_dir/$lt_tmp_nm"
8816       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8817         # Check to see if the nm accepts a BSD-compat flag.
8818         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8819         #   nm: unknown option "B" ignored
8820         # Tru64's nm complains that /dev/null is an invalid object file
8821         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8822         */dev/null* | *'Invalid file or object type'*)
8823           lt_cv_path_NM="$tmp_nm -B"
8824           break
8825           ;;
8826         *)
8827           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8828           */dev/null*)
8829             lt_cv_path_NM="$tmp_nm -p"
8830             break
8831             ;;
8832           *)
8833             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8834             continue # so that we can try to find one that supports BSD flags
8835             ;;
8836           esac
8837           ;;
8838         esac
8839       fi
8840     done
8841     IFS="$lt_save_ifs"
8842   done
8843   : ${lt_cv_path_NM=no}
8844 fi
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8847 $as_echo "$lt_cv_path_NM" >&6; }
8848 if test "$lt_cv_path_NM" != "no"; then
8849   NM="$lt_cv_path_NM"
8850 else
8851   # Didn't find any BSD compatible name lister, look for dumpbin.
8852   if test -n "$DUMPBIN"; then :
8853     # Let the user override the test.
8854   else
8855     if test -n "$ac_tool_prefix"; then
8856   for ac_prog in dumpbin "link -dump"
8857   do
8858     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_DUMPBIN+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   if test -n "$DUMPBIN"; then
8866   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871   IFS=$as_save_IFS
8872   test -z "$as_dir" && as_dir=.
8873     for ac_exec_ext in '' $ac_executable_extensions; do
8874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877     break 2
8878   fi
8879 done
8880   done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 DUMPBIN=$ac_cv_prog_DUMPBIN
8886 if test -n "$DUMPBIN"; then
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8888 $as_echo "$DUMPBIN" >&6; }
8889 else
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894
8895     test -n "$DUMPBIN" && break
8896   done
8897 fi
8898 if test -z "$DUMPBIN"; then
8899   ac_ct_DUMPBIN=$DUMPBIN
8900   for ac_prog in dumpbin "link -dump"
8901 do
8902   # Extract the first word of "$ac_prog", so it can be a program name with args.
8903 set dummy $ac_prog; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   if test -n "$ac_ct_DUMPBIN"; then
8910   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8911 else
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8914 do
8915   IFS=$as_save_IFS
8916   test -z "$as_dir" && as_dir=.
8917     for ac_exec_ext in '' $ac_executable_extensions; do
8918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8919     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921     break 2
8922   fi
8923 done
8924   done
8925 IFS=$as_save_IFS
8926
8927 fi
8928 fi
8929 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8930 if test -n "$ac_ct_DUMPBIN"; then
8931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8932 $as_echo "$ac_ct_DUMPBIN" >&6; }
8933 else
8934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939   test -n "$ac_ct_DUMPBIN" && break
8940 done
8941
8942   if test "x$ac_ct_DUMPBIN" = x; then
8943     DUMPBIN=":"
8944   else
8945     case $cross_compiling:$ac_tool_warned in
8946 yes:)
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8949 ac_tool_warned=yes ;;
8950 esac
8951     DUMPBIN=$ac_ct_DUMPBIN
8952   fi
8953 fi
8954
8955     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8956     *COFF*)
8957       DUMPBIN="$DUMPBIN -symbols"
8958       ;;
8959     *)
8960       DUMPBIN=:
8961       ;;
8962     esac
8963   fi
8964
8965   if test "$DUMPBIN" != ":"; then
8966     NM="$DUMPBIN"
8967   fi
8968 fi
8969 test -z "$NM" && NM=nm
8970
8971
8972
8973
8974
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8977 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8978 if ${lt_cv_nm_interface+:} false; then :
8979   $as_echo_n "(cached) " >&6
8980 else
8981   lt_cv_nm_interface="BSD nm"
8982   echo "int some_variable = 0;" > conftest.$ac_ext
8983   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8984   (eval "$ac_compile" 2>conftest.err)
8985   cat conftest.err >&5
8986   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8987   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8988   cat conftest.err >&5
8989   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8990   cat conftest.out >&5
8991   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8992     lt_cv_nm_interface="MS dumpbin"
8993   fi
8994   rm -f conftest*
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8997 $as_echo "$lt_cv_nm_interface" >&6; }
8998
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9000 $as_echo_n "checking whether ln -s works... " >&6; }
9001 LN_S=$as_ln_s
9002 if test "$LN_S" = "ln -s"; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9004 $as_echo "yes" >&6; }
9005 else
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9007 $as_echo "no, using $LN_S" >&6; }
9008 fi
9009
9010 # find the maximum length of command line arguments
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9012 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9013 if ${lt_cv_sys_max_cmd_len+:} false; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016     i=0
9017   teststring="ABCD"
9018
9019   case $build_os in
9020   msdosdjgpp*)
9021     # On DJGPP, this test can blow up pretty badly due to problems in libc
9022     # (any single argument exceeding 2000 bytes causes a buffer overrun
9023     # during glob expansion).  Even if it were fixed, the result of this
9024     # check would be larger than it should be.
9025     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9026     ;;
9027
9028   gnu*)
9029     # Under GNU Hurd, this test is not required because there is
9030     # no limit to the length of command line arguments.
9031     # Libtool will interpret -1 as no limit whatsoever
9032     lt_cv_sys_max_cmd_len=-1;
9033     ;;
9034
9035   cygwin* | mingw* | cegcc*)
9036     # On Win9x/ME, this test blows up -- it succeeds, but takes
9037     # about 5 minutes as the teststring grows exponentially.
9038     # Worse, since 9x/ME are not pre-emptively multitasking,
9039     # you end up with a "frozen" computer, even though with patience
9040     # the test eventually succeeds (with a max line length of 256k).
9041     # Instead, let's just punt: use the minimum linelength reported by
9042     # all of the supported platforms: 8192 (on NT/2K/XP).
9043     lt_cv_sys_max_cmd_len=8192;
9044     ;;
9045
9046   mint*)
9047     # On MiNT this can take a long time and run out of memory.
9048     lt_cv_sys_max_cmd_len=8192;
9049     ;;
9050
9051   amigaos*)
9052     # On AmigaOS with pdksh, this test takes hours, literally.
9053     # So we just punt and use a minimum line length of 8192.
9054     lt_cv_sys_max_cmd_len=8192;
9055     ;;
9056
9057   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9058     # This has been around since 386BSD, at least.  Likely further.
9059     if test -x /sbin/sysctl; then
9060       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9061     elif test -x /usr/sbin/sysctl; then
9062       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9063     else
9064       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9065     fi
9066     # And add a safety zone
9067     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9068     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9069     ;;
9070
9071   interix*)
9072     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9073     lt_cv_sys_max_cmd_len=196608
9074     ;;
9075
9076   osf*)
9077     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9078     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9079     # nice to cause kernel panics so lets avoid the loop below.
9080     # First set a reasonable default.
9081     lt_cv_sys_max_cmd_len=16384
9082     #
9083     if test -x /sbin/sysconfig; then
9084       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9085         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9086       esac
9087     fi
9088     ;;
9089   sco3.2v5*)
9090     lt_cv_sys_max_cmd_len=102400
9091     ;;
9092   sysv5* | sco5v6* | sysv4.2uw2*)
9093     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9094     if test -n "$kargmax"; then
9095       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9096     else
9097       lt_cv_sys_max_cmd_len=32768
9098     fi
9099     ;;
9100   *)
9101     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9102     if test -n "$lt_cv_sys_max_cmd_len"; then
9103       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9104       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9105     else
9106       # Make teststring a little bigger before we do anything with it.
9107       # a 1K string should be a reasonable start.
9108       for i in 1 2 3 4 5 6 7 8 ; do
9109         teststring=$teststring$teststring
9110       done
9111       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9112       # If test is not a shell built-in, we'll probably end up computing a
9113       # maximum length that is only half of the actual maximum length, but
9114       # we can't tell.
9115       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9116                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9117               test $i != 17 # 1/2 MB should be enough
9118       do
9119         i=`expr $i + 1`
9120         teststring=$teststring$teststring
9121       done
9122       # Only check the string length outside the loop.
9123       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9124       teststring=
9125       # Add a significant safety factor because C++ compilers can tack on
9126       # massive amounts of additional arguments before passing them to the
9127       # linker.  It appears as though 1/2 is a usable value.
9128       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9129     fi
9130     ;;
9131   esac
9132
9133 fi
9134
9135 if test -n $lt_cv_sys_max_cmd_len ; then
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9137 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9138 else
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9140 $as_echo "none" >&6; }
9141 fi
9142 max_cmd_len=$lt_cv_sys_max_cmd_len
9143
9144
9145
9146
9147
9148
9149 : ${CP="cp -f"}
9150 : ${MV="mv -f"}
9151 : ${RM="rm -f"}
9152
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9154 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9155 # Try some XSI features
9156 xsi_shell=no
9157 ( _lt_dummy="a/b/c"
9158   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9159       = c,a/b,b/c, \
9160     && eval 'test $(( 1 + 1 )) -eq 2 \
9161     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9162   && xsi_shell=yes
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9164 $as_echo "$xsi_shell" >&6; }
9165
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9168 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9169 lt_shell_append=no
9170 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9171     >/dev/null 2>&1 \
9172   && lt_shell_append=yes
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9174 $as_echo "$lt_shell_append" >&6; }
9175
9176
9177 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9178   lt_unset=unset
9179 else
9180   lt_unset=false
9181 fi
9182
9183
9184
9185
9186
9187 # test EBCDIC or ASCII
9188 case `echo X|tr X '\101'` in
9189  A) # ASCII based system
9190     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9191   lt_SP2NL='tr \040 \012'
9192   lt_NL2SP='tr \015\012 \040\040'
9193   ;;
9194  *) # EBCDIC based system
9195   lt_SP2NL='tr \100 \n'
9196   lt_NL2SP='tr \r\n \100\100'
9197   ;;
9198 esac
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9209 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9210 if ${lt_cv_to_host_file_cmd+:} false; then :
9211   $as_echo_n "(cached) " >&6
9212 else
9213   case $host in
9214   *-*-mingw* )
9215     case $build in
9216       *-*-mingw* ) # actually msys
9217         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9218         ;;
9219       *-*-cygwin* )
9220         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9221         ;;
9222       * ) # otherwise, assume *nix
9223         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9224         ;;
9225     esac
9226     ;;
9227   *-*-cygwin* )
9228     case $build in
9229       *-*-mingw* ) # actually msys
9230         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9231         ;;
9232       *-*-cygwin* )
9233         lt_cv_to_host_file_cmd=func_convert_file_noop
9234         ;;
9235       * ) # otherwise, assume *nix
9236         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9237         ;;
9238     esac
9239     ;;
9240   * ) # unhandled hosts (and "normal" native builds)
9241     lt_cv_to_host_file_cmd=func_convert_file_noop
9242     ;;
9243 esac
9244
9245 fi
9246
9247 to_host_file_cmd=$lt_cv_to_host_file_cmd
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9249 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9250
9251
9252
9253
9254
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9256 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9257 if ${lt_cv_to_tool_file_cmd+:} false; then :
9258   $as_echo_n "(cached) " >&6
9259 else
9260   #assume ordinary cross tools, or native build.
9261 lt_cv_to_tool_file_cmd=func_convert_file_noop
9262 case $host in
9263   *-*-mingw* )
9264     case $build in
9265       *-*-mingw* ) # actually msys
9266         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9267         ;;
9268     esac
9269     ;;
9270 esac
9271
9272 fi
9273
9274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9276 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9277
9278
9279
9280
9281
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9283 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9284 if ${lt_cv_ld_reload_flag+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   lt_cv_ld_reload_flag='-r'
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9290 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9291 reload_flag=$lt_cv_ld_reload_flag
9292 case $reload_flag in
9293 "" | " "*) ;;
9294 *) reload_flag=" $reload_flag" ;;
9295 esac
9296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9297 case $host_os in
9298   cygwin* | mingw* | pw32* | cegcc*)
9299     if test "$GCC" != yes; then
9300       reload_cmds=false
9301     fi
9302     ;;
9303   darwin*)
9304     if test "$GCC" = yes; then
9305       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9306     else
9307       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9308     fi
9309     ;;
9310 esac
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320 if test -n "$ac_tool_prefix"; then
9321   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9322 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_prog_OBJDUMP+:} false; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   if test -n "$OBJDUMP"; then
9329   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9330 else
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9333 do
9334   IFS=$as_save_IFS
9335   test -z "$as_dir" && as_dir=.
9336     for ac_exec_ext in '' $ac_executable_extensions; do
9337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340     break 2
9341   fi
9342 done
9343   done
9344 IFS=$as_save_IFS
9345
9346 fi
9347 fi
9348 OBJDUMP=$ac_cv_prog_OBJDUMP
9349 if test -n "$OBJDUMP"; then
9350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9351 $as_echo "$OBJDUMP" >&6; }
9352 else
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 fi
9356
9357
9358 fi
9359 if test -z "$ac_cv_prog_OBJDUMP"; then
9360   ac_ct_OBJDUMP=$OBJDUMP
9361   # Extract the first word of "objdump", so it can be a program name with args.
9362 set dummy objdump; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9366   $as_echo_n "(cached) " >&6
9367 else
9368   if test -n "$ac_ct_OBJDUMP"; then
9369   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9370 else
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9373 do
9374   IFS=$as_save_IFS
9375   test -z "$as_dir" && as_dir=.
9376     for ac_exec_ext in '' $ac_executable_extensions; do
9377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9378     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380     break 2
9381   fi
9382 done
9383   done
9384 IFS=$as_save_IFS
9385
9386 fi
9387 fi
9388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9389 if test -n "$ac_ct_OBJDUMP"; then
9390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9391 $as_echo "$ac_ct_OBJDUMP" >&6; }
9392 else
9393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9395 fi
9396
9397   if test "x$ac_ct_OBJDUMP" = x; then
9398     OBJDUMP="false"
9399   else
9400     case $cross_compiling:$ac_tool_warned in
9401 yes:)
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9404 ac_tool_warned=yes ;;
9405 esac
9406     OBJDUMP=$ac_ct_OBJDUMP
9407   fi
9408 else
9409   OBJDUMP="$ac_cv_prog_OBJDUMP"
9410 fi
9411
9412 test -z "$OBJDUMP" && OBJDUMP=objdump
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9423 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9424 if ${lt_cv_deplibs_check_method+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   lt_cv_file_magic_cmd='$MAGIC_CMD'
9428 lt_cv_file_magic_test_file=
9429 lt_cv_deplibs_check_method='unknown'
9430 # Need to set the preceding variable on all platforms that support
9431 # interlibrary dependencies.
9432 # 'none' -- dependencies not supported.
9433 # `unknown' -- same as none, but documents that we really don't know.
9434 # 'pass_all' -- all dependencies passed with no checks.
9435 # 'test_compile' -- check by making test program.
9436 # 'file_magic [[regex]]' -- check by looking for files in library path
9437 # which responds to the $file_magic_cmd with a given extended regex.
9438 # If you have `file' or equivalent on your system and you're not sure
9439 # whether `pass_all' will *always* work, you probably want this one.
9440
9441 case $host_os in
9442 aix[4-9]*)
9443   lt_cv_deplibs_check_method=pass_all
9444   ;;
9445
9446 beos*)
9447   lt_cv_deplibs_check_method=pass_all
9448   ;;
9449
9450 bsdi[45]*)
9451   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9452   lt_cv_file_magic_cmd='/usr/bin/file -L'
9453   lt_cv_file_magic_test_file=/shlib/libc.so
9454   ;;
9455
9456 cygwin*)
9457   # func_win32_libid is a shell function defined in ltmain.sh
9458   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9459   lt_cv_file_magic_cmd='func_win32_libid'
9460   ;;
9461
9462 mingw* | pw32*)
9463   # Base MSYS/MinGW do not provide the 'file' command needed by
9464   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9465   # unless we find 'file', for example because we are cross-compiling.
9466   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9467   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9468     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9469     lt_cv_file_magic_cmd='func_win32_libid'
9470   else
9471     # Keep this pattern in sync with the one in func_win32_libid.
9472     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9473     lt_cv_file_magic_cmd='$OBJDUMP -f'
9474   fi
9475   ;;
9476
9477 cegcc*)
9478   # use the weaker test based on 'objdump'. See mingw*.
9479   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9480   lt_cv_file_magic_cmd='$OBJDUMP -f'
9481   ;;
9482
9483 darwin* | rhapsody*)
9484   lt_cv_deplibs_check_method=pass_all
9485   ;;
9486
9487 freebsd* | dragonfly*)
9488   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9489     case $host_cpu in
9490     i*86 )
9491       # Not sure whether the presence of OpenBSD here was a mistake.
9492       # Let's accept both of them until this is cleared up.
9493       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9494       lt_cv_file_magic_cmd=/usr/bin/file
9495       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9496       ;;
9497     esac
9498   else
9499     lt_cv_deplibs_check_method=pass_all
9500   fi
9501   ;;
9502
9503 gnu*)
9504   lt_cv_deplibs_check_method=pass_all
9505   ;;
9506
9507 haiku*)
9508   lt_cv_deplibs_check_method=pass_all
9509   ;;
9510
9511 hpux10.20* | hpux11*)
9512   lt_cv_file_magic_cmd=/usr/bin/file
9513   case $host_cpu in
9514   ia64*)
9515     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9516     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9517     ;;
9518   hppa*64*)
9519     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]'
9520     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9521     ;;
9522   *)
9523     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9524     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9525     ;;
9526   esac
9527   ;;
9528
9529 interix[3-9]*)
9530   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9531   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9532   ;;
9533
9534 irix5* | irix6* | nonstopux*)
9535   case $LD in
9536   *-32|*"-32 ") libmagic=32-bit;;
9537   *-n32|*"-n32 ") libmagic=N32;;
9538   *-64|*"-64 ") libmagic=64-bit;;
9539   *) libmagic=never-match;;
9540   esac
9541   lt_cv_deplibs_check_method=pass_all
9542   ;;
9543
9544 # This must be Linux ELF.
9545 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9546   lt_cv_deplibs_check_method=pass_all
9547   ;;
9548
9549 netbsd*)
9550   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9552   else
9553     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9554   fi
9555   ;;
9556
9557 newos6*)
9558   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9559   lt_cv_file_magic_cmd=/usr/bin/file
9560   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9561   ;;
9562
9563 *nto* | *qnx*)
9564   lt_cv_deplibs_check_method=pass_all
9565   ;;
9566
9567 openbsd*)
9568   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9570   else
9571     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9572   fi
9573   ;;
9574
9575 osf3* | osf4* | osf5*)
9576   lt_cv_deplibs_check_method=pass_all
9577   ;;
9578
9579 rdos*)
9580   lt_cv_deplibs_check_method=pass_all
9581   ;;
9582
9583 solaris*)
9584   lt_cv_deplibs_check_method=pass_all
9585   ;;
9586
9587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9588   lt_cv_deplibs_check_method=pass_all
9589   ;;
9590
9591 sysv4 | sysv4.3*)
9592   case $host_vendor in
9593   motorola)
9594     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]'
9595     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9596     ;;
9597   ncr)
9598     lt_cv_deplibs_check_method=pass_all
9599     ;;
9600   sequent)
9601     lt_cv_file_magic_cmd='/bin/file'
9602     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9603     ;;
9604   sni)
9605     lt_cv_file_magic_cmd='/bin/file'
9606     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9607     lt_cv_file_magic_test_file=/lib/libc.so
9608     ;;
9609   siemens)
9610     lt_cv_deplibs_check_method=pass_all
9611     ;;
9612   pc)
9613     lt_cv_deplibs_check_method=pass_all
9614     ;;
9615   esac
9616   ;;
9617
9618 tpf*)
9619   lt_cv_deplibs_check_method=pass_all
9620   ;;
9621 esac
9622
9623 fi
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9625 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9626
9627 file_magic_glob=
9628 want_nocaseglob=no
9629 if test "$build" = "$host"; then
9630   case $host_os in
9631   mingw* | pw32*)
9632     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9633       want_nocaseglob=yes
9634     else
9635       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9636     fi
9637     ;;
9638   esac
9639 fi
9640
9641 file_magic_cmd=$lt_cv_file_magic_cmd
9642 deplibs_check_method=$lt_cv_deplibs_check_method
9643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666 if test -n "$ac_tool_prefix"; then
9667   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9668 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_prog_DLLTOOL+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   if test -n "$DLLTOOL"; then
9675   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9676 else
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9679 do
9680   IFS=$as_save_IFS
9681   test -z "$as_dir" && as_dir=.
9682     for ac_exec_ext in '' $ac_executable_extensions; do
9683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686     break 2
9687   fi
9688 done
9689   done
9690 IFS=$as_save_IFS
9691
9692 fi
9693 fi
9694 DLLTOOL=$ac_cv_prog_DLLTOOL
9695 if test -n "$DLLTOOL"; then
9696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9697 $as_echo "$DLLTOOL" >&6; }
9698 else
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9701 fi
9702
9703
9704 fi
9705 if test -z "$ac_cv_prog_DLLTOOL"; then
9706   ac_ct_DLLTOOL=$DLLTOOL
9707   # Extract the first word of "dlltool", so it can be a program name with args.
9708 set dummy dlltool; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9712   $as_echo_n "(cached) " >&6
9713 else
9714   if test -n "$ac_ct_DLLTOOL"; then
9715   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9716 else
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720   IFS=$as_save_IFS
9721   test -z "$as_dir" && as_dir=.
9722     for ac_exec_ext in '' $ac_executable_extensions; do
9723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726     break 2
9727   fi
9728 done
9729   done
9730 IFS=$as_save_IFS
9731
9732 fi
9733 fi
9734 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9735 if test -n "$ac_ct_DLLTOOL"; then
9736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9737 $as_echo "$ac_ct_DLLTOOL" >&6; }
9738 else
9739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9741 fi
9742
9743   if test "x$ac_ct_DLLTOOL" = x; then
9744     DLLTOOL="false"
9745   else
9746     case $cross_compiling:$ac_tool_warned in
9747 yes:)
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9750 ac_tool_warned=yes ;;
9751 esac
9752     DLLTOOL=$ac_ct_DLLTOOL
9753   fi
9754 else
9755   DLLTOOL="$ac_cv_prog_DLLTOOL"
9756 fi
9757
9758 test -z "$DLLTOOL" && DLLTOOL=dlltool
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9770 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9771 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   lt_cv_sharedlib_from_linklib_cmd='unknown'
9775
9776 case $host_os in
9777 cygwin* | mingw* | pw32* | cegcc*)
9778   # two different shell functions defined in ltmain.sh
9779   # decide which to use based on capabilities of $DLLTOOL
9780   case `$DLLTOOL --help 2>&1` in
9781   *--identify-strict*)
9782     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9783     ;;
9784   *)
9785     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9786     ;;
9787   esac
9788   ;;
9789 *)
9790   # fallback: assume linklib IS sharedlib
9791   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9792   ;;
9793 esac
9794
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9797 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9798 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9799 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9800
9801
9802
9803
9804
9805
9806
9807 if test -n "$ac_tool_prefix"; then
9808   for ac_prog in ar
9809   do
9810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_prog_AR+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   if test -n "$AR"; then
9818   ac_cv_prog_AR="$AR" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9822 do
9823   IFS=$as_save_IFS
9824   test -z "$as_dir" && as_dir=.
9825     for ac_exec_ext in '' $ac_executable_extensions; do
9826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829     break 2
9830   fi
9831 done
9832   done
9833 IFS=$as_save_IFS
9834
9835 fi
9836 fi
9837 AR=$ac_cv_prog_AR
9838 if test -n "$AR"; then
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9840 $as_echo "$AR" >&6; }
9841 else
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9844 fi
9845
9846
9847     test -n "$AR" && break
9848   done
9849 fi
9850 if test -z "$AR"; then
9851   ac_ct_AR=$AR
9852   for ac_prog in ar
9853 do
9854   # Extract the first word of "$ac_prog", so it can be a program name with args.
9855 set dummy $ac_prog; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9859   $as_echo_n "(cached) " >&6
9860 else
9861   if test -n "$ac_ct_AR"; then
9862   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9866 do
9867   IFS=$as_save_IFS
9868   test -z "$as_dir" && as_dir=.
9869     for ac_exec_ext in '' $ac_executable_extensions; do
9870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871     ac_cv_prog_ac_ct_AR="$ac_prog"
9872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873     break 2
9874   fi
9875 done
9876   done
9877 IFS=$as_save_IFS
9878
9879 fi
9880 fi
9881 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9882 if test -n "$ac_ct_AR"; then
9883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9884 $as_echo "$ac_ct_AR" >&6; }
9885 else
9886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9888 fi
9889
9890
9891   test -n "$ac_ct_AR" && break
9892 done
9893
9894   if test "x$ac_ct_AR" = x; then
9895     AR="false"
9896   else
9897     case $cross_compiling:$ac_tool_warned in
9898 yes:)
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9901 ac_tool_warned=yes ;;
9902 esac
9903     AR=$ac_ct_AR
9904   fi
9905 fi
9906
9907 : ${AR=ar}
9908 : ${AR_FLAGS=cru}
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9921 $as_echo_n "checking for archiver @FILE support... " >&6; }
9922 if ${lt_cv_ar_at_file+:} false; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   lt_cv_ar_at_file=no
9926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h.  */
9928
9929 int
9930 main ()
9931 {
9932
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"; then :
9938   echo conftest.$ac_objext > conftest.lst
9939       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9940       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9941   (eval $lt_ar_try) 2>&5
9942   ac_status=$?
9943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9944   test $ac_status = 0; }
9945       if test "$ac_status" -eq 0; then
9946         # Ensure the archiver fails upon bogus file names.
9947         rm -f conftest.$ac_objext libconftest.a
9948         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9949   (eval $lt_ar_try) 2>&5
9950   ac_status=$?
9951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9952   test $ac_status = 0; }
9953         if test "$ac_status" -ne 0; then
9954           lt_cv_ar_at_file=@
9955         fi
9956       fi
9957       rm -f conftest.* libconftest.a
9958
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961
9962 fi
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9964 $as_echo "$lt_cv_ar_at_file" >&6; }
9965
9966 if test "x$lt_cv_ar_at_file" = xno; then
9967   archiver_list_spec=
9968 else
9969   archiver_list_spec=$lt_cv_ar_at_file
9970 fi
9971
9972
9973
9974
9975
9976
9977
9978 if test -n "$ac_tool_prefix"; then
9979   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9980 set dummy ${ac_tool_prefix}strip; ac_word=$2
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982 $as_echo_n "checking for $ac_word... " >&6; }
9983 if ${ac_cv_prog_STRIP+:} false; then :
9984   $as_echo_n "(cached) " >&6
9985 else
9986   if test -n "$STRIP"; then
9987   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9988 else
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9991 do
9992   IFS=$as_save_IFS
9993   test -z "$as_dir" && as_dir=.
9994     for ac_exec_ext in '' $ac_executable_extensions; do
9995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998     break 2
9999   fi
10000 done
10001   done
10002 IFS=$as_save_IFS
10003
10004 fi
10005 fi
10006 STRIP=$ac_cv_prog_STRIP
10007 if test -n "$STRIP"; then
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10009 $as_echo "$STRIP" >&6; }
10010 else
10011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10013 fi
10014
10015
10016 fi
10017 if test -z "$ac_cv_prog_STRIP"; then
10018   ac_ct_STRIP=$STRIP
10019   # Extract the first word of "strip", so it can be a program name with args.
10020 set dummy strip; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10024   $as_echo_n "(cached) " >&6
10025 else
10026   if test -n "$ac_ct_STRIP"; then
10027   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10028 else
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10031 do
10032   IFS=$as_save_IFS
10033   test -z "$as_dir" && as_dir=.
10034     for ac_exec_ext in '' $ac_executable_extensions; do
10035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036     ac_cv_prog_ac_ct_STRIP="strip"
10037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038     break 2
10039   fi
10040 done
10041   done
10042 IFS=$as_save_IFS
10043
10044 fi
10045 fi
10046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10047 if test -n "$ac_ct_STRIP"; then
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10049 $as_echo "$ac_ct_STRIP" >&6; }
10050 else
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10053 fi
10054
10055   if test "x$ac_ct_STRIP" = x; then
10056     STRIP=":"
10057   else
10058     case $cross_compiling:$ac_tool_warned in
10059 yes:)
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10062 ac_tool_warned=yes ;;
10063 esac
10064     STRIP=$ac_ct_STRIP
10065   fi
10066 else
10067   STRIP="$ac_cv_prog_STRIP"
10068 fi
10069
10070 test -z "$STRIP" && STRIP=:
10071
10072
10073
10074
10075
10076
10077 if test -n "$ac_tool_prefix"; then
10078   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_RANLIB+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   if test -n "$RANLIB"; then
10086   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091   IFS=$as_save_IFS
10092   test -z "$as_dir" && as_dir=.
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102
10103 fi
10104 fi
10105 RANLIB=$ac_cv_prog_RANLIB
10106 if test -n "$RANLIB"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10108 $as_echo "$RANLIB" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113
10114
10115 fi
10116 if test -z "$ac_cv_prog_RANLIB"; then
10117   ac_ct_RANLIB=$RANLIB
10118   # Extract the first word of "ranlib", so it can be a program name with args.
10119 set dummy ranlib; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   if test -n "$ac_ct_RANLIB"; then
10126   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10127 else
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10130 do
10131   IFS=$as_save_IFS
10132   test -z "$as_dir" && as_dir=.
10133     for ac_exec_ext in '' $ac_executable_extensions; do
10134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135     ac_cv_prog_ac_ct_RANLIB="ranlib"
10136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137     break 2
10138   fi
10139 done
10140   done
10141 IFS=$as_save_IFS
10142
10143 fi
10144 fi
10145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10146 if test -n "$ac_ct_RANLIB"; then
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10148 $as_echo "$ac_ct_RANLIB" >&6; }
10149 else
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154   if test "x$ac_ct_RANLIB" = x; then
10155     RANLIB=":"
10156   else
10157     case $cross_compiling:$ac_tool_warned in
10158 yes:)
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10161 ac_tool_warned=yes ;;
10162 esac
10163     RANLIB=$ac_ct_RANLIB
10164   fi
10165 else
10166   RANLIB="$ac_cv_prog_RANLIB"
10167 fi
10168
10169 test -z "$RANLIB" && RANLIB=:
10170
10171
10172
10173
10174
10175
10176 # Determine commands to create old-style static archives.
10177 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10178 old_postinstall_cmds='chmod 644 $oldlib'
10179 old_postuninstall_cmds=
10180
10181 if test -n "$RANLIB"; then
10182   case $host_os in
10183   openbsd*)
10184     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10185     ;;
10186   *)
10187     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10188     ;;
10189   esac
10190   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10191 fi
10192
10193 case $host_os in
10194   darwin*)
10195     lock_old_archive_extraction=yes ;;
10196   *)
10197     lock_old_archive_extraction=no ;;
10198 esac
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238 # If no C compiler was specified, use CC.
10239 LTCC=${LTCC-"$CC"}
10240
10241 # If no C compiler flags were specified, use CFLAGS.
10242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10243
10244 # Allow CC to be a program name with arguments.
10245 compiler=$CC
10246
10247
10248 # Check for command to grab the raw symbol name followed by C symbol from nm.
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10250 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10251 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254
10255 # These are sane defaults that work on at least a few old systems.
10256 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10257
10258 # Character class describing NM global symbol codes.
10259 symcode='[BCDEGRST]'
10260
10261 # Regexp to match symbols that can be accessed directly from C.
10262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10263
10264 # Define system-specific variables.
10265 case $host_os in
10266 aix*)
10267   symcode='[BCDT]'
10268   ;;
10269 cygwin* | mingw* | pw32* | cegcc*)
10270   symcode='[ABCDGISTW]'
10271   ;;
10272 hpux*)
10273   if test "$host_cpu" = ia64; then
10274     symcode='[ABCDEGRST]'
10275   fi
10276   ;;
10277 irix* | nonstopux*)
10278   symcode='[BCDEGRST]'
10279   ;;
10280 osf*)
10281   symcode='[BCDEGQRST]'
10282   ;;
10283 solaris*)
10284   symcode='[BDRT]'
10285   ;;
10286 sco3.2v5*)
10287   symcode='[DT]'
10288   ;;
10289 sysv4.2uw2*)
10290   symcode='[DT]'
10291   ;;
10292 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10293   symcode='[ABDT]'
10294   ;;
10295 sysv4)
10296   symcode='[DFNSTU]'
10297   ;;
10298 esac
10299
10300 # If we're using GNU nm, then use its standard symbol codes.
10301 case `$NM -V 2>&1` in
10302 *GNU* | *'with BFD'*)
10303   symcode='[ABCDGIRSTW]' ;;
10304 esac
10305
10306 # Transform an extracted symbol line into a proper C declaration.
10307 # Some systems (esp. on ia64) link data and code symbols differently,
10308 # so use this general approach.
10309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10310
10311 # Transform an extracted symbol line into symbol name and symbol address
10312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10313 lt_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'"
10314
10315 # Handle CRLF in mingw tool chain
10316 opt_cr=
10317 case $build_os in
10318 mingw*)
10319   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10320   ;;
10321 esac
10322
10323 # Try without a prefix underscore, then with it.
10324 for ac_symprfx in "" "_"; do
10325
10326   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10327   symxfrm="\\1 $ac_symprfx\\2 \\2"
10328
10329   # Write the raw and C identifiers.
10330   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10331     # Fake it for dumpbin and say T for any non-static function
10332     # and D for any global variable.
10333     # Also find C++ and __fastcall symbols from MSVC++,
10334     # which start with @ or ?.
10335     lt_cv_sys_global_symbol_pipe="$AWK '"\
10336 "     {last_section=section; section=\$ 3};"\
10337 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10338 "     \$ 0!~/External *\|/{next};"\
10339 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10340 "     {if(hide[section]) next};"\
10341 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10342 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10343 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10344 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10345 "     ' prfx=^$ac_symprfx"
10346   else
10347     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10348   fi
10349   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10350
10351   # Check to see that the pipe works correctly.
10352   pipe_works=no
10353
10354   rm -f conftest*
10355   cat > conftest.$ac_ext <<_LT_EOF
10356 #ifdef __cplusplus
10357 extern "C" {
10358 #endif
10359 char nm_test_var;
10360 void nm_test_func(void);
10361 void nm_test_func(void){}
10362 #ifdef __cplusplus
10363 }
10364 #endif
10365 int main(){nm_test_var='a';nm_test_func();return(0);}
10366 _LT_EOF
10367
10368   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10369   (eval $ac_compile) 2>&5
10370   ac_status=$?
10371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10372   test $ac_status = 0; }; then
10373     # Now try to grab the symbols.
10374     nlist=conftest.nm
10375     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10376   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10377   ac_status=$?
10378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379   test $ac_status = 0; } && test -s "$nlist"; then
10380       # Try sorting and uniquifying the output.
10381       if sort "$nlist" | uniq > "$nlist"T; then
10382         mv -f "$nlist"T "$nlist"
10383       else
10384         rm -f "$nlist"T
10385       fi
10386
10387       # Make sure that we snagged all the symbols we need.
10388       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10389         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10390           cat <<_LT_EOF > conftest.$ac_ext
10391 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10392 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10393 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10394    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10395 # define LT_DLSYM_CONST
10396 #elif defined(__osf__)
10397 /* This system does not cope well with relocations in const data.  */
10398 # define LT_DLSYM_CONST
10399 #else
10400 # define LT_DLSYM_CONST const
10401 #endif
10402
10403 #ifdef __cplusplus
10404 extern "C" {
10405 #endif
10406
10407 _LT_EOF
10408           # Now generate the symbol file.
10409           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10410
10411           cat <<_LT_EOF >> conftest.$ac_ext
10412
10413 /* The mapping between symbol names and symbols.  */
10414 LT_DLSYM_CONST struct {
10415   const char *name;
10416   void       *address;
10417 }
10418 lt__PROGRAM__LTX_preloaded_symbols[] =
10419 {
10420   { "@PROGRAM@", (void *) 0 },
10421 _LT_EOF
10422           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10423           cat <<\_LT_EOF >> conftest.$ac_ext
10424   {0, (void *) 0}
10425 };
10426
10427 /* This works around a problem in FreeBSD linker */
10428 #ifdef FREEBSD_WORKAROUND
10429 static const void *lt_preloaded_setup() {
10430   return lt__PROGRAM__LTX_preloaded_symbols;
10431 }
10432 #endif
10433
10434 #ifdef __cplusplus
10435 }
10436 #endif
10437 _LT_EOF
10438           # Now try linking the two files.
10439           mv conftest.$ac_objext conftstm.$ac_objext
10440           lt_globsym_save_LIBS=$LIBS
10441           lt_globsym_save_CFLAGS=$CFLAGS
10442           LIBS="conftstm.$ac_objext"
10443           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10444           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10445   (eval $ac_link) 2>&5
10446   ac_status=$?
10447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10449             pipe_works=yes
10450           fi
10451           LIBS=$lt_globsym_save_LIBS
10452           CFLAGS=$lt_globsym_save_CFLAGS
10453         else
10454           echo "cannot find nm_test_func in $nlist" >&5
10455         fi
10456       else
10457         echo "cannot find nm_test_var in $nlist" >&5
10458       fi
10459     else
10460       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10461     fi
10462   else
10463     echo "$progname: failed program was:" >&5
10464     cat conftest.$ac_ext >&5
10465   fi
10466   rm -rf conftest* conftst*
10467
10468   # Do not use the global_symbol_pipe unless it works.
10469   if test "$pipe_works" = yes; then
10470     break
10471   else
10472     lt_cv_sys_global_symbol_pipe=
10473   fi
10474 done
10475
10476 fi
10477
10478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10479   lt_cv_sys_global_symbol_to_cdecl=
10480 fi
10481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10483 $as_echo "failed" >&6; }
10484 else
10485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10486 $as_echo "ok" >&6; }
10487 fi
10488
10489 # Response file support.
10490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10491   nm_file_list_spec='@'
10492 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10493   nm_file_list_spec='@'
10494 fi
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10523 $as_echo_n "checking for sysroot... " >&6; }
10524
10525 # Check whether --with-sysroot was given.
10526 if test "${with_sysroot+set}" = set; then :
10527   withval=$with_sysroot;
10528 else
10529   with_sysroot=no
10530 fi
10531
10532
10533 lt_sysroot=
10534 case ${with_sysroot} in #(
10535  yes)
10536    if test "$GCC" = yes; then
10537      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10538    fi
10539    ;; #(
10540  /*)
10541    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10542    ;; #(
10543  no|'')
10544    ;; #(
10545  *)
10546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10547 $as_echo "${with_sysroot}" >&6; }
10548    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10549    ;;
10550 esac
10551
10552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10553 $as_echo "${lt_sysroot:-no}" >&6; }
10554
10555
10556
10557
10558
10559 # Check whether --enable-libtool-lock was given.
10560 if test "${enable_libtool_lock+set}" = set; then :
10561   enableval=$enable_libtool_lock;
10562 fi
10563
10564 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10565
10566 # Some flags need to be propagated to the compiler or linker for good
10567 # libtool support.
10568 case $host in
10569 ia64-*-hpux*)
10570   # Find out which ABI we are using.
10571   echo 'int i;' > conftest.$ac_ext
10572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10573   (eval $ac_compile) 2>&5
10574   ac_status=$?
10575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576   test $ac_status = 0; }; then
10577     case `/usr/bin/file conftest.$ac_objext` in
10578       *ELF-32*)
10579         HPUX_IA64_MODE="32"
10580         ;;
10581       *ELF-64*)
10582         HPUX_IA64_MODE="64"
10583         ;;
10584     esac
10585   fi
10586   rm -rf conftest*
10587   ;;
10588 *-*-irix6*)
10589   # Find out which ABI we are using.
10590   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10591   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10592   (eval $ac_compile) 2>&5
10593   ac_status=$?
10594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10595   test $ac_status = 0; }; then
10596     if test "$lt_cv_prog_gnu_ld" = yes; then
10597       case `/usr/bin/file conftest.$ac_objext` in
10598         *32-bit*)
10599           LD="${LD-ld} -melf32bsmip"
10600           ;;
10601         *N32*)
10602           LD="${LD-ld} -melf32bmipn32"
10603           ;;
10604         *64-bit*)
10605           LD="${LD-ld} -melf64bmip"
10606         ;;
10607       esac
10608     else
10609       case `/usr/bin/file conftest.$ac_objext` in
10610         *32-bit*)
10611           LD="${LD-ld} -32"
10612           ;;
10613         *N32*)
10614           LD="${LD-ld} -n32"
10615           ;;
10616         *64-bit*)
10617           LD="${LD-ld} -64"
10618           ;;
10619       esac
10620     fi
10621   fi
10622   rm -rf conftest*
10623   ;;
10624
10625 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10626 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10627   # Find out which ABI we are using.
10628   echo 'int i;' > conftest.$ac_ext
10629   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10630   (eval $ac_compile) 2>&5
10631   ac_status=$?
10632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10633   test $ac_status = 0; }; then
10634     case `/usr/bin/file conftest.o` in
10635       *32-bit*)
10636         case $host in
10637           x86_64-*kfreebsd*-gnu)
10638             LD="${LD-ld} -m elf_i386_fbsd"
10639             ;;
10640           x86_64-*linux*)
10641             LD="${LD-ld} -m elf_i386"
10642             ;;
10643           ppc64-*linux*|powerpc64-*linux*)
10644             LD="${LD-ld} -m elf32ppclinux"
10645             ;;
10646           s390x-*linux*)
10647             LD="${LD-ld} -m elf_s390"
10648             ;;
10649           sparc64-*linux*)
10650             LD="${LD-ld} -m elf32_sparc"
10651             ;;
10652         esac
10653         ;;
10654       *64-bit*)
10655         case $host in
10656           x86_64-*kfreebsd*-gnu)
10657             LD="${LD-ld} -m elf_x86_64_fbsd"
10658             ;;
10659           x86_64-*linux*)
10660             LD="${LD-ld} -m elf_x86_64"
10661             ;;
10662           ppc*-*linux*|powerpc*-*linux*)
10663             LD="${LD-ld} -m elf64ppc"
10664             ;;
10665           s390*-*linux*|s390*-*tpf*)
10666             LD="${LD-ld} -m elf64_s390"
10667             ;;
10668           sparc*-*linux*)
10669             LD="${LD-ld} -m elf64_sparc"
10670             ;;
10671         esac
10672         ;;
10673     esac
10674   fi
10675   rm -rf conftest*
10676   ;;
10677
10678 *-*-sco3.2v5*)
10679   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10680   SAVE_CFLAGS="$CFLAGS"
10681   CFLAGS="$CFLAGS -belf"
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10683 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10684 if ${lt_cv_cc_needs_belf+:} false; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   ac_ext=c
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10692
10693      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696 int
10697 main ()
10698 {
10699
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705   lt_cv_cc_needs_belf=yes
10706 else
10707   lt_cv_cc_needs_belf=no
10708 fi
10709 rm -f core conftest.err conftest.$ac_objext \
10710     conftest$ac_exeext conftest.$ac_ext
10711      ac_ext=c
10712 ac_cpp='$CPP $CPPFLAGS'
10713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10716
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10719 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10720   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10721     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10722     CFLAGS="$SAVE_CFLAGS"
10723   fi
10724   ;;
10725 sparc*-*solaris*)
10726   # Find out which ABI we are using.
10727   echo 'int i;' > conftest.$ac_ext
10728   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10729   (eval $ac_compile) 2>&5
10730   ac_status=$?
10731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732   test $ac_status = 0; }; then
10733     case `/usr/bin/file conftest.o` in
10734     *64-bit*)
10735       case $lt_cv_prog_gnu_ld in
10736       yes*) LD="${LD-ld} -m elf64_sparc" ;;
10737       *)
10738         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10739           LD="${LD-ld} -64"
10740         fi
10741         ;;
10742       esac
10743       ;;
10744     esac
10745   fi
10746   rm -rf conftest*
10747   ;;
10748 esac
10749
10750 need_locks="$enable_libtool_lock"
10751
10752 if test -n "$ac_tool_prefix"; then
10753   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10754 set dummy ${ac_tool_prefix}mt; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   if test -n "$MANIFEST_TOOL"; then
10761   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10762 else
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10765 do
10766   IFS=$as_save_IFS
10767   test -z "$as_dir" && as_dir=.
10768     for ac_exec_ext in '' $ac_executable_extensions; do
10769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772     break 2
10773   fi
10774 done
10775   done
10776 IFS=$as_save_IFS
10777
10778 fi
10779 fi
10780 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10781 if test -n "$MANIFEST_TOOL"; then
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10783 $as_echo "$MANIFEST_TOOL" >&6; }
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788
10789
10790 fi
10791 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10792   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10793   # Extract the first word of "mt", so it can be a program name with args.
10794 set dummy mt; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10798   $as_echo_n "(cached) " >&6
10799 else
10800   if test -n "$ac_ct_MANIFEST_TOOL"; then
10801   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10802 else
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10805 do
10806   IFS=$as_save_IFS
10807   test -z "$as_dir" && as_dir=.
10808     for ac_exec_ext in '' $ac_executable_extensions; do
10809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812     break 2
10813   fi
10814 done
10815   done
10816 IFS=$as_save_IFS
10817
10818 fi
10819 fi
10820 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10821 if test -n "$ac_ct_MANIFEST_TOOL"; then
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10823 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10824 else
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10827 fi
10828
10829   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10830     MANIFEST_TOOL=":"
10831   else
10832     case $cross_compiling:$ac_tool_warned in
10833 yes:)
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10836 ac_tool_warned=yes ;;
10837 esac
10838     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10839   fi
10840 else
10841   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10842 fi
10843
10844 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10846 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10847 if ${lt_cv_path_mainfest_tool+:} false; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   lt_cv_path_mainfest_tool=no
10851   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10852   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10853   cat conftest.err >&5
10854   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10855     lt_cv_path_mainfest_tool=yes
10856   fi
10857   rm -f conftest*
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10860 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10861 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10862   MANIFEST_TOOL=:
10863 fi
10864
10865
10866
10867
10868
10869
10870   case $host_os in
10871     rhapsody* | darwin*)
10872     if test -n "$ac_tool_prefix"; then
10873   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10874 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10878   $as_echo_n "(cached) " >&6
10879 else
10880   if test -n "$DSYMUTIL"; then
10881   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10882 else
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10885 do
10886   IFS=$as_save_IFS
10887   test -z "$as_dir" && as_dir=.
10888     for ac_exec_ext in '' $ac_executable_extensions; do
10889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892     break 2
10893   fi
10894 done
10895   done
10896 IFS=$as_save_IFS
10897
10898 fi
10899 fi
10900 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10901 if test -n "$DSYMUTIL"; then
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10903 $as_echo "$DSYMUTIL" >&6; }
10904 else
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10907 fi
10908
10909
10910 fi
10911 if test -z "$ac_cv_prog_DSYMUTIL"; then
10912   ac_ct_DSYMUTIL=$DSYMUTIL
10913   # Extract the first word of "dsymutil", so it can be a program name with args.
10914 set dummy dsymutil; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10918   $as_echo_n "(cached) " >&6
10919 else
10920   if test -n "$ac_ct_DSYMUTIL"; then
10921   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10922 else
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924 for as_dir in $PATH
10925 do
10926   IFS=$as_save_IFS
10927   test -z "$as_dir" && as_dir=.
10928     for ac_exec_ext in '' $ac_executable_extensions; do
10929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932     break 2
10933   fi
10934 done
10935   done
10936 IFS=$as_save_IFS
10937
10938 fi
10939 fi
10940 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10941 if test -n "$ac_ct_DSYMUTIL"; then
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10943 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10944 else
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 fi
10948
10949   if test "x$ac_ct_DSYMUTIL" = x; then
10950     DSYMUTIL=":"
10951   else
10952     case $cross_compiling:$ac_tool_warned in
10953 yes:)
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10956 ac_tool_warned=yes ;;
10957 esac
10958     DSYMUTIL=$ac_ct_DSYMUTIL
10959   fi
10960 else
10961   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10962 fi
10963
10964     if test -n "$ac_tool_prefix"; then
10965   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10966 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if ${ac_cv_prog_NMEDIT+:} false; then :
10970   $as_echo_n "(cached) " >&6
10971 else
10972   if test -n "$NMEDIT"; then
10973   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10974 else
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10977 do
10978   IFS=$as_save_IFS
10979   test -z "$as_dir" && as_dir=.
10980     for ac_exec_ext in '' $ac_executable_extensions; do
10981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984     break 2
10985   fi
10986 done
10987   done
10988 IFS=$as_save_IFS
10989
10990 fi
10991 fi
10992 NMEDIT=$ac_cv_prog_NMEDIT
10993 if test -n "$NMEDIT"; then
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10995 $as_echo "$NMEDIT" >&6; }
10996 else
10997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
10999 fi
11000
11001
11002 fi
11003 if test -z "$ac_cv_prog_NMEDIT"; then
11004   ac_ct_NMEDIT=$NMEDIT
11005   # Extract the first word of "nmedit", so it can be a program name with args.
11006 set dummy nmedit; ac_word=$2
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 $as_echo_n "checking for $ac_word... " >&6; }
11009 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11010   $as_echo_n "(cached) " >&6
11011 else
11012   if test -n "$ac_ct_NMEDIT"; then
11013   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11014 else
11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11017 do
11018   IFS=$as_save_IFS
11019   test -z "$as_dir" && as_dir=.
11020     for ac_exec_ext in '' $ac_executable_extensions; do
11021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024     break 2
11025   fi
11026 done
11027   done
11028 IFS=$as_save_IFS
11029
11030 fi
11031 fi
11032 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11033 if test -n "$ac_ct_NMEDIT"; then
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11035 $as_echo "$ac_ct_NMEDIT" >&6; }
11036 else
11037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 fi
11040
11041   if test "x$ac_ct_NMEDIT" = x; then
11042     NMEDIT=":"
11043   else
11044     case $cross_compiling:$ac_tool_warned in
11045 yes:)
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11048 ac_tool_warned=yes ;;
11049 esac
11050     NMEDIT=$ac_ct_NMEDIT
11051   fi
11052 else
11053   NMEDIT="$ac_cv_prog_NMEDIT"
11054 fi
11055
11056     if test -n "$ac_tool_prefix"; then
11057   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11058 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_prog_LIPO+:} false; then :
11062   $as_echo_n "(cached) " >&6
11063 else
11064   if test -n "$LIPO"; then
11065   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11066 else
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11069 do
11070   IFS=$as_save_IFS
11071   test -z "$as_dir" && as_dir=.
11072     for ac_exec_ext in '' $ac_executable_extensions; do
11073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076     break 2
11077   fi
11078 done
11079   done
11080 IFS=$as_save_IFS
11081
11082 fi
11083 fi
11084 LIPO=$ac_cv_prog_LIPO
11085 if test -n "$LIPO"; then
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11087 $as_echo "$LIPO" >&6; }
11088 else
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091 fi
11092
11093
11094 fi
11095 if test -z "$ac_cv_prog_LIPO"; then
11096   ac_ct_LIPO=$LIPO
11097   # Extract the first word of "lipo", so it can be a program name with args.
11098 set dummy lipo; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11102   $as_echo_n "(cached) " >&6
11103 else
11104   if test -n "$ac_ct_LIPO"; then
11105   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11106 else
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110   IFS=$as_save_IFS
11111   test -z "$as_dir" && as_dir=.
11112     for ac_exec_ext in '' $ac_executable_extensions; do
11113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114     ac_cv_prog_ac_ct_LIPO="lipo"
11115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116     break 2
11117   fi
11118 done
11119   done
11120 IFS=$as_save_IFS
11121
11122 fi
11123 fi
11124 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11125 if test -n "$ac_ct_LIPO"; then
11126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11127 $as_echo "$ac_ct_LIPO" >&6; }
11128 else
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11131 fi
11132
11133   if test "x$ac_ct_LIPO" = x; then
11134     LIPO=":"
11135   else
11136     case $cross_compiling:$ac_tool_warned in
11137 yes:)
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11140 ac_tool_warned=yes ;;
11141 esac
11142     LIPO=$ac_ct_LIPO
11143   fi
11144 else
11145   LIPO="$ac_cv_prog_LIPO"
11146 fi
11147
11148     if test -n "$ac_tool_prefix"; then
11149   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11150 set dummy ${ac_tool_prefix}otool; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if ${ac_cv_prog_OTOOL+:} false; then :
11154   $as_echo_n "(cached) " >&6
11155 else
11156   if test -n "$OTOOL"; then
11157   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11158 else
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11161 do
11162   IFS=$as_save_IFS
11163   test -z "$as_dir" && as_dir=.
11164     for ac_exec_ext in '' $ac_executable_extensions; do
11165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168     break 2
11169   fi
11170 done
11171   done
11172 IFS=$as_save_IFS
11173
11174 fi
11175 fi
11176 OTOOL=$ac_cv_prog_OTOOL
11177 if test -n "$OTOOL"; then
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11179 $as_echo "$OTOOL" >&6; }
11180 else
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184
11185
11186 fi
11187 if test -z "$ac_cv_prog_OTOOL"; then
11188   ac_ct_OTOOL=$OTOOL
11189   # Extract the first word of "otool", so it can be a program name with args.
11190 set dummy otool; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11194   $as_echo_n "(cached) " >&6
11195 else
11196   if test -n "$ac_ct_OTOOL"; then
11197   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11198 else
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11201 do
11202   IFS=$as_save_IFS
11203   test -z "$as_dir" && as_dir=.
11204     for ac_exec_ext in '' $ac_executable_extensions; do
11205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11206     ac_cv_prog_ac_ct_OTOOL="otool"
11207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208     break 2
11209   fi
11210 done
11211   done
11212 IFS=$as_save_IFS
11213
11214 fi
11215 fi
11216 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11217 if test -n "$ac_ct_OTOOL"; then
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11219 $as_echo "$ac_ct_OTOOL" >&6; }
11220 else
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11223 fi
11224
11225   if test "x$ac_ct_OTOOL" = x; then
11226     OTOOL=":"
11227   else
11228     case $cross_compiling:$ac_tool_warned in
11229 yes:)
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11232 ac_tool_warned=yes ;;
11233 esac
11234     OTOOL=$ac_ct_OTOOL
11235   fi
11236 else
11237   OTOOL="$ac_cv_prog_OTOOL"
11238 fi
11239
11240     if test -n "$ac_tool_prefix"; then
11241   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11242 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_prog_OTOOL64+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   if test -n "$OTOOL64"; then
11249   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254   IFS=$as_save_IFS
11255   test -z "$as_dir" && as_dir=.
11256     for ac_exec_ext in '' $ac_executable_extensions; do
11257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260     break 2
11261   fi
11262 done
11263   done
11264 IFS=$as_save_IFS
11265
11266 fi
11267 fi
11268 OTOOL64=$ac_cv_prog_OTOOL64
11269 if test -n "$OTOOL64"; then
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11271 $as_echo "$OTOOL64" >&6; }
11272 else
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276
11277
11278 fi
11279 if test -z "$ac_cv_prog_OTOOL64"; then
11280   ac_ct_OTOOL64=$OTOOL64
11281   # Extract the first word of "otool64", so it can be a program name with args.
11282 set dummy otool64; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11286   $as_echo_n "(cached) " >&6
11287 else
11288   if test -n "$ac_ct_OTOOL64"; then
11289   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11290 else
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11293 do
11294   IFS=$as_save_IFS
11295   test -z "$as_dir" && as_dir=.
11296     for ac_exec_ext in '' $ac_executable_extensions; do
11297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11298     ac_cv_prog_ac_ct_OTOOL64="otool64"
11299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300     break 2
11301   fi
11302 done
11303   done
11304 IFS=$as_save_IFS
11305
11306 fi
11307 fi
11308 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11309 if test -n "$ac_ct_OTOOL64"; then
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11311 $as_echo "$ac_ct_OTOOL64" >&6; }
11312 else
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11315 fi
11316
11317   if test "x$ac_ct_OTOOL64" = x; then
11318     OTOOL64=":"
11319   else
11320     case $cross_compiling:$ac_tool_warned in
11321 yes:)
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11324 ac_tool_warned=yes ;;
11325 esac
11326     OTOOL64=$ac_ct_OTOOL64
11327   fi
11328 else
11329   OTOOL64="$ac_cv_prog_OTOOL64"
11330 fi
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11359 $as_echo_n "checking for -single_module linker flag... " >&6; }
11360 if ${lt_cv_apple_cc_single_mod+:} false; then :
11361   $as_echo_n "(cached) " >&6
11362 else
11363   lt_cv_apple_cc_single_mod=no
11364       if test -z "${LT_MULTI_MODULE}"; then
11365         # By default we will add the -single_module flag. You can override
11366         # by either setting the environment variable LT_MULTI_MODULE
11367         # non-empty at configure time, or by adding -multi_module to the
11368         # link flags.
11369         rm -rf libconftest.dylib*
11370         echo "int foo(void){return 1;}" > conftest.c
11371         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11372 -dynamiclib -Wl,-single_module conftest.c" >&5
11373         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11374           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11375         _lt_result=$?
11376         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11377           lt_cv_apple_cc_single_mod=yes
11378         else
11379           cat conftest.err >&5
11380         fi
11381         rm -rf libconftest.dylib*
11382         rm -f conftest.*
11383       fi
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11386 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11388 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11389 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   lt_cv_ld_exported_symbols_list=no
11393       save_LDFLAGS=$LDFLAGS
11394       echo "_main" > conftest.sym
11395       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11396       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h.  */
11398
11399 int
11400 main ()
11401 {
11402
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408   lt_cv_ld_exported_symbols_list=yes
11409 else
11410   lt_cv_ld_exported_symbols_list=no
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413     conftest$ac_exeext conftest.$ac_ext
11414         LDFLAGS="$save_LDFLAGS"
11415
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11418 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11420 $as_echo_n "checking for -force_load linker flag... " >&6; }
11421 if ${lt_cv_ld_force_load+:} false; then :
11422   $as_echo_n "(cached) " >&6
11423 else
11424   lt_cv_ld_force_load=no
11425       cat > conftest.c << _LT_EOF
11426 int forced_loaded() { return 2;}
11427 _LT_EOF
11428       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11429       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11430       echo "$AR cru libconftest.a conftest.o" >&5
11431       $AR cru libconftest.a conftest.o 2>&5
11432       echo "$RANLIB libconftest.a" >&5
11433       $RANLIB libconftest.a 2>&5
11434       cat > conftest.c << _LT_EOF
11435 int main() { return 0;}
11436 _LT_EOF
11437       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11438       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11439       _lt_result=$?
11440       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11441         lt_cv_ld_force_load=yes
11442       else
11443         cat conftest.err >&5
11444       fi
11445         rm -f conftest.err libconftest.a conftest conftest.c
11446         rm -rf conftest.dSYM
11447
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11450 $as_echo "$lt_cv_ld_force_load" >&6; }
11451     case $host_os in
11452     rhapsody* | darwin1.[012])
11453       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11454     darwin1.*)
11455       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11456     darwin*) # darwin 5.x on
11457       # if running on 10.5 or later, the deployment target defaults
11458       # to the OS version, if on x86, and 10.4, the deployment
11459       # target defaults to 10.4. Don't you love it?
11460       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11461         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11462           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11463         10.[012]*)
11464           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11465         10.*)
11466           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11467       esac
11468     ;;
11469   esac
11470     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11471       _lt_dar_single_mod='$single_module'
11472     fi
11473     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11474       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11475     else
11476       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11477     fi
11478     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11479       _lt_dsymutil='~$DSYMUTIL $lib || :'
11480     else
11481       _lt_dsymutil=
11482     fi
11483     ;;
11484   esac
11485
11486 for ac_header in dlfcn.h
11487 do :
11488   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11489 "
11490 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11491   cat >>confdefs.h <<_ACEOF
11492 #define HAVE_DLFCN_H 1
11493 _ACEOF
11494
11495 fi
11496
11497 done
11498
11499
11500
11501
11502 func_stripname_cnf ()
11503 {
11504   case ${2} in
11505   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11506   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11507   esac
11508 } # func_stripname_cnf
11509
11510
11511
11512
11513
11514 # Set options
11515
11516
11517
11518         enable_dlopen=no
11519
11520
11521   enable_win32_dll=no
11522
11523
11524
11525   # Check whether --enable-static was given.
11526 if test "${enable_static+set}" = set; then :
11527   enableval=$enable_static; p=${PACKAGE-default}
11528     case $enableval in
11529     yes) enable_static=yes ;;
11530     no) enable_static=no ;;
11531     *)
11532      enable_static=no
11533       # Look at the argument we got.  We use all the common list separators.
11534       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11535       for pkg in $enableval; do
11536         IFS="$lt_save_ifs"
11537         if test "X$pkg" = "X$p"; then
11538           enable_static=yes
11539         fi
11540       done
11541       IFS="$lt_save_ifs"
11542       ;;
11543     esac
11544 else
11545   enable_static=yes
11546 fi
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557 # Check whether --with-pic was given.
11558 if test "${with_pic+set}" = set; then :
11559   withval=$with_pic; pic_mode="$withval"
11560 else
11561   pic_mode=default
11562 fi
11563
11564
11565 test -z "$pic_mode" && pic_mode=default
11566
11567
11568
11569
11570
11571
11572
11573   # Check whether --enable-fast-install was given.
11574 if test "${enable_fast_install+set}" = set; then :
11575   enableval=$enable_fast_install; p=${PACKAGE-default}
11576     case $enableval in
11577     yes) enable_fast_install=yes ;;
11578     no) enable_fast_install=no ;;
11579     *)
11580       enable_fast_install=no
11581       # Look at the argument we got.  We use all the common list separators.
11582       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11583       for pkg in $enableval; do
11584         IFS="$lt_save_ifs"
11585         if test "X$pkg" = "X$p"; then
11586           enable_fast_install=yes
11587         fi
11588       done
11589       IFS="$lt_save_ifs"
11590       ;;
11591     esac
11592 else
11593   enable_fast_install=yes
11594 fi
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 # This can be used to rebuild libtool when needed
11607 LIBTOOL_DEPS="$ltmain"
11608
11609 # Always use our own libtool.
11610 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637 test -z "$LN_S" && LN_S="ln -s"
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652 if test -n "${ZSH_VERSION+set}" ; then
11653    setopt NO_GLOB_SUBST
11654 fi
11655
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11657 $as_echo_n "checking for objdir... " >&6; }
11658 if ${lt_cv_objdir+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   rm -f .libs 2>/dev/null
11662 mkdir .libs 2>/dev/null
11663 if test -d .libs; then
11664   lt_cv_objdir=.libs
11665 else
11666   # MS-DOS does not allow filenames that begin with a dot.
11667   lt_cv_objdir=_libs
11668 fi
11669 rmdir .libs 2>/dev/null
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11672 $as_echo "$lt_cv_objdir" >&6; }
11673 objdir=$lt_cv_objdir
11674
11675
11676
11677
11678
11679 cat >>confdefs.h <<_ACEOF
11680 #define LT_OBJDIR "$lt_cv_objdir/"
11681 _ACEOF
11682
11683
11684
11685
11686 case $host_os in
11687 aix3*)
11688   # AIX sometimes has problems with the GCC collect2 program.  For some
11689   # reason, if we set the COLLECT_NAMES environment variable, the problems
11690   # vanish in a puff of smoke.
11691   if test "X${COLLECT_NAMES+set}" != Xset; then
11692     COLLECT_NAMES=
11693     export COLLECT_NAMES
11694   fi
11695   ;;
11696 esac
11697
11698 # Global variables:
11699 ofile=libtool
11700 can_build_shared=yes
11701
11702 # All known linkers require a `.a' archive for static linking (except MSVC,
11703 # which needs '.lib').
11704 libext=a
11705
11706 with_gnu_ld="$lt_cv_prog_gnu_ld"
11707
11708 old_CC="$CC"
11709 old_CFLAGS="$CFLAGS"
11710
11711 # Set sane defaults for various variables
11712 test -z "$CC" && CC=cc
11713 test -z "$LTCC" && LTCC=$CC
11714 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11715 test -z "$LD" && LD=ld
11716 test -z "$ac_objext" && ac_objext=o
11717
11718 for cc_temp in $compiler""; do
11719   case $cc_temp in
11720     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11721     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11722     \-*) ;;
11723     *) break;;
11724   esac
11725 done
11726 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11727
11728
11729 # Only perform the check for file, if the check method requires it
11730 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11731 case $deplibs_check_method in
11732 file_magic*)
11733   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11735 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11736 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   case $MAGIC_CMD in
11740 [\\/*] |  ?:[\\/]*)
11741   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11742   ;;
11743 *)
11744   lt_save_MAGIC_CMD="$MAGIC_CMD"
11745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11746   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11747   for ac_dir in $ac_dummy; do
11748     IFS="$lt_save_ifs"
11749     test -z "$ac_dir" && ac_dir=.
11750     if test -f $ac_dir/${ac_tool_prefix}file; then
11751       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11752       if test -n "$file_magic_test_file"; then
11753         case $deplibs_check_method in
11754         "file_magic "*)
11755           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11756           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11757           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11758             $EGREP "$file_magic_regex" > /dev/null; then
11759             :
11760           else
11761             cat <<_LT_EOF 1>&2
11762
11763 *** Warning: the command libtool uses to detect shared libraries,
11764 *** $file_magic_cmd, produces output that libtool cannot recognize.
11765 *** The result is that libtool may fail to recognize shared libraries
11766 *** as such.  This will affect the creation of libtool libraries that
11767 *** depend on shared libraries, but programs linked with such libtool
11768 *** libraries will work regardless of this problem.  Nevertheless, you
11769 *** may want to report the problem to your system manager and/or to
11770 *** bug-libtool@gnu.org
11771
11772 _LT_EOF
11773           fi ;;
11774         esac
11775       fi
11776       break
11777     fi
11778   done
11779   IFS="$lt_save_ifs"
11780   MAGIC_CMD="$lt_save_MAGIC_CMD"
11781   ;;
11782 esac
11783 fi
11784
11785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11786 if test -n "$MAGIC_CMD"; then
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11788 $as_echo "$MAGIC_CMD" >&6; }
11789 else
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11792 fi
11793
11794
11795
11796
11797
11798 if test -z "$lt_cv_path_MAGIC_CMD"; then
11799   if test -n "$ac_tool_prefix"; then
11800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11801 $as_echo_n "checking for file... " >&6; }
11802 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11803   $as_echo_n "(cached) " >&6
11804 else
11805   case $MAGIC_CMD in
11806 [\\/*] |  ?:[\\/]*)
11807   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11808   ;;
11809 *)
11810   lt_save_MAGIC_CMD="$MAGIC_CMD"
11811   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11812   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11813   for ac_dir in $ac_dummy; do
11814     IFS="$lt_save_ifs"
11815     test -z "$ac_dir" && ac_dir=.
11816     if test -f $ac_dir/file; then
11817       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11818       if test -n "$file_magic_test_file"; then
11819         case $deplibs_check_method in
11820         "file_magic "*)
11821           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11822           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11823           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11824             $EGREP "$file_magic_regex" > /dev/null; then
11825             :
11826           else
11827             cat <<_LT_EOF 1>&2
11828
11829 *** Warning: the command libtool uses to detect shared libraries,
11830 *** $file_magic_cmd, produces output that libtool cannot recognize.
11831 *** The result is that libtool may fail to recognize shared libraries
11832 *** as such.  This will affect the creation of libtool libraries that
11833 *** depend on shared libraries, but programs linked with such libtool
11834 *** libraries will work regardless of this problem.  Nevertheless, you
11835 *** may want to report the problem to your system manager and/or to
11836 *** bug-libtool@gnu.org
11837
11838 _LT_EOF
11839           fi ;;
11840         esac
11841       fi
11842       break
11843     fi
11844   done
11845   IFS="$lt_save_ifs"
11846   MAGIC_CMD="$lt_save_MAGIC_CMD"
11847   ;;
11848 esac
11849 fi
11850
11851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11852 if test -n "$MAGIC_CMD"; then
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11854 $as_echo "$MAGIC_CMD" >&6; }
11855 else
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 fi
11859
11860
11861   else
11862     MAGIC_CMD=:
11863   fi
11864 fi
11865
11866   fi
11867   ;;
11868 esac
11869
11870 # Use C for the default configuration in the libtool script
11871
11872 lt_save_CC="$CC"
11873 ac_ext=c
11874 ac_cpp='$CPP $CPPFLAGS'
11875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11878
11879
11880 # Source file extension for C test sources.
11881 ac_ext=c
11882
11883 # Object file extension for compiled C test sources.
11884 objext=o
11885 objext=$objext
11886
11887 # Code to be used in simple compile tests
11888 lt_simple_compile_test_code="int some_variable = 0;"
11889
11890 # Code to be used in simple link tests
11891 lt_simple_link_test_code='int main(){return(0);}'
11892
11893
11894
11895
11896
11897
11898
11899 # If no C compiler was specified, use CC.
11900 LTCC=${LTCC-"$CC"}
11901
11902 # If no C compiler flags were specified, use CFLAGS.
11903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11904
11905 # Allow CC to be a program name with arguments.
11906 compiler=$CC
11907
11908 # Save the default compiler, since it gets overwritten when the other
11909 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11910 compiler_DEFAULT=$CC
11911
11912 # save warnings/boilerplate of simple test code
11913 ac_outfile=conftest.$ac_objext
11914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11916 _lt_compiler_boilerplate=`cat conftest.err`
11917 $RM conftest*
11918
11919 ac_outfile=conftest.$ac_objext
11920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922 _lt_linker_boilerplate=`cat conftest.err`
11923 $RM -r conftest*
11924
11925
11926 ## CAVEAT EMPTOR:
11927 ## There is no encapsulation within the following macros, do not change
11928 ## the running order or otherwise move them around unless you know exactly
11929 ## what you are doing...
11930 if test -n "$compiler"; then
11931
11932 lt_prog_compiler_no_builtin_flag=
11933
11934 if test "$GCC" = yes; then
11935   case $cc_basename in
11936   nvcc*)
11937     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11938   *)
11939     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11940   esac
11941
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11943 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11944 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11945   $as_echo_n "(cached) " >&6
11946 else
11947   lt_cv_prog_compiler_rtti_exceptions=no
11948    ac_outfile=conftest.$ac_objext
11949    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11950    lt_compiler_flag="-fno-rtti -fno-exceptions"
11951    # Insert the option either (1) after the last *FLAGS variable, or
11952    # (2) before a word containing "conftest.", or (3) at the end.
11953    # Note that $ac_compile itself does not contain backslashes and begins
11954    # with a dollar sign (not a hyphen), so the echo should work correctly.
11955    # The option is referenced via a variable to avoid confusing sed.
11956    lt_compile=`echo "$ac_compile" | $SED \
11957    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11959    -e 's:$: $lt_compiler_flag:'`
11960    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11961    (eval "$lt_compile" 2>conftest.err)
11962    ac_status=$?
11963    cat conftest.err >&5
11964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965    if (exit $ac_status) && test -s "$ac_outfile"; then
11966      # The compiler can only warn and ignore the option if not recognized
11967      # So say no if there are warnings other than the usual output.
11968      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11969      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11970      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11971        lt_cv_prog_compiler_rtti_exceptions=yes
11972      fi
11973    fi
11974    $RM conftest*
11975
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11978 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11979
11980 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11981     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11982 else
11983     :
11984 fi
11985
11986 fi
11987
11988
11989
11990
11991
11992
11993   lt_prog_compiler_wl=
11994 lt_prog_compiler_pic=
11995 lt_prog_compiler_static=
11996
11997
11998   if test "$GCC" = yes; then
11999     lt_prog_compiler_wl='-Wl,'
12000     lt_prog_compiler_static='-static'
12001
12002     case $host_os in
12003       aix*)
12004       # All AIX code is PIC.
12005       if test "$host_cpu" = ia64; then
12006         # AIX 5 now supports IA64 processor
12007         lt_prog_compiler_static='-Bstatic'
12008       fi
12009       ;;
12010
12011     amigaos*)
12012       case $host_cpu in
12013       powerpc)
12014             # see comment about AmigaOS4 .so support
12015             lt_prog_compiler_pic='-fPIC'
12016         ;;
12017       m68k)
12018             # FIXME: we need at least 68020 code to build shared libraries, but
12019             # adding the `-m68020' flag to GCC prevents building anything better,
12020             # like `-m68040'.
12021             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12022         ;;
12023       esac
12024       ;;
12025
12026     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027       # PIC is the default for these OSes.
12028       ;;
12029
12030     mingw* | cygwin* | pw32* | os2* | cegcc*)
12031       # This hack is so that the source file can tell whether it is being
12032       # built for inclusion in a dll (and should export symbols for example).
12033       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12034       # (--disable-auto-import) libraries
12035       lt_prog_compiler_pic='-DDLL_EXPORT'
12036       ;;
12037
12038     darwin* | rhapsody*)
12039       # PIC is the default on this platform
12040       # Common symbols not allowed in MH_DYLIB files
12041       lt_prog_compiler_pic='-fno-common'
12042       ;;
12043
12044     haiku*)
12045       # PIC is the default for Haiku.
12046       # The "-static" flag exists, but is broken.
12047       lt_prog_compiler_static=
12048       ;;
12049
12050     hpux*)
12051       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12052       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12053       # sets the default TLS model and affects inlining.
12054       case $host_cpu in
12055       hppa*64*)
12056         # +Z the default
12057         ;;
12058       *)
12059         lt_prog_compiler_pic='-fPIC'
12060         ;;
12061       esac
12062       ;;
12063
12064     interix[3-9]*)
12065       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12066       # Instead, we relocate shared libraries at runtime.
12067       ;;
12068
12069     msdosdjgpp*)
12070       # Just because we use GCC doesn't mean we suddenly get shared libraries
12071       # on systems that don't support them.
12072       lt_prog_compiler_can_build_shared=no
12073       enable_shared=no
12074       ;;
12075
12076     *nto* | *qnx*)
12077       # QNX uses GNU C++, but need to define -shared option too, otherwise
12078       # it will coredump.
12079       lt_prog_compiler_pic='-fPIC -shared'
12080       ;;
12081
12082     sysv4*MP*)
12083       if test -d /usr/nec; then
12084         lt_prog_compiler_pic=-Kconform_pic
12085       fi
12086       ;;
12087
12088     *)
12089       lt_prog_compiler_pic='-fPIC'
12090       ;;
12091     esac
12092
12093     case $cc_basename in
12094     nvcc*) # Cuda Compiler Driver 2.2
12095       lt_prog_compiler_wl='-Xlinker '
12096       lt_prog_compiler_pic='-Xcompiler -fPIC'
12097       ;;
12098     esac
12099   else
12100     # PORTME Check for flag to pass linker flags through the system compiler.
12101     case $host_os in
12102     aix*)
12103       lt_prog_compiler_wl='-Wl,'
12104       if test "$host_cpu" = ia64; then
12105         # AIX 5 now supports IA64 processor
12106         lt_prog_compiler_static='-Bstatic'
12107       else
12108         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12109       fi
12110       ;;
12111
12112     mingw* | cygwin* | pw32* | os2* | cegcc*)
12113       # This hack is so that the source file can tell whether it is being
12114       # built for inclusion in a dll (and should export symbols for example).
12115       lt_prog_compiler_pic='-DDLL_EXPORT'
12116       ;;
12117
12118     hpux9* | hpux10* | hpux11*)
12119       lt_prog_compiler_wl='-Wl,'
12120       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12121       # not for PA HP-UX.
12122       case $host_cpu in
12123       hppa*64*|ia64*)
12124         # +Z the default
12125         ;;
12126       *)
12127         lt_prog_compiler_pic='+Z'
12128         ;;
12129       esac
12130       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12131       lt_prog_compiler_static='${wl}-a ${wl}archive'
12132       ;;
12133
12134     irix5* | irix6* | nonstopux*)
12135       lt_prog_compiler_wl='-Wl,'
12136       # PIC (with -KPIC) is the default.
12137       lt_prog_compiler_static='-non_shared'
12138       ;;
12139
12140     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12141       case $cc_basename in
12142       # old Intel for x86_64 which still supported -KPIC.
12143       ecc*)
12144         lt_prog_compiler_wl='-Wl,'
12145         lt_prog_compiler_pic='-KPIC'
12146         lt_prog_compiler_static='-static'
12147         ;;
12148       # icc used to be incompatible with GCC.
12149       # ICC 10 doesn't accept -KPIC any more.
12150       icc* | ifort*)
12151         lt_prog_compiler_wl='-Wl,'
12152         lt_prog_compiler_pic='-fPIC'
12153         lt_prog_compiler_static='-static'
12154         ;;
12155       # Lahey Fortran 8.1.
12156       lf95*)
12157         lt_prog_compiler_wl='-Wl,'
12158         lt_prog_compiler_pic='--shared'
12159         lt_prog_compiler_static='--static'
12160         ;;
12161       nagfor*)
12162         # NAG Fortran compiler
12163         lt_prog_compiler_wl='-Wl,-Wl,,'
12164         lt_prog_compiler_pic='-PIC'
12165         lt_prog_compiler_static='-Bstatic'
12166         ;;
12167       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12168         # Portland Group compilers (*not* the Pentium gcc compiler,
12169         # which looks to be a dead project)
12170         lt_prog_compiler_wl='-Wl,'
12171         lt_prog_compiler_pic='-fpic'
12172         lt_prog_compiler_static='-Bstatic'
12173         ;;
12174       ccc*)
12175         lt_prog_compiler_wl='-Wl,'
12176         # All Alpha code is PIC.
12177         lt_prog_compiler_static='-non_shared'
12178         ;;
12179       xl* | bgxl* | bgf* | mpixl*)
12180         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12181         lt_prog_compiler_wl='-Wl,'
12182         lt_prog_compiler_pic='-qpic'
12183         lt_prog_compiler_static='-qstaticlink'
12184         ;;
12185       *)
12186         case `$CC -V 2>&1 | sed 5q` in
12187         *Sun\ F* | *Sun*Fortran*)
12188           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12189           lt_prog_compiler_pic='-KPIC'
12190           lt_prog_compiler_static='-Bstatic'
12191           lt_prog_compiler_wl=''
12192           ;;
12193         *Sun\ C*)
12194           # Sun C 5.9
12195           lt_prog_compiler_pic='-KPIC'
12196           lt_prog_compiler_static='-Bstatic'
12197           lt_prog_compiler_wl='-Wl,'
12198           ;;
12199         esac
12200         ;;
12201       esac
12202       ;;
12203
12204     newsos6)
12205       lt_prog_compiler_pic='-KPIC'
12206       lt_prog_compiler_static='-Bstatic'
12207       ;;
12208
12209     *nto* | *qnx*)
12210       # QNX uses GNU C++, but need to define -shared option too, otherwise
12211       # it will coredump.
12212       lt_prog_compiler_pic='-fPIC -shared'
12213       ;;
12214
12215     osf3* | osf4* | osf5*)
12216       lt_prog_compiler_wl='-Wl,'
12217       # All OSF/1 code is PIC.
12218       lt_prog_compiler_static='-non_shared'
12219       ;;
12220
12221     rdos*)
12222       lt_prog_compiler_static='-non_shared'
12223       ;;
12224
12225     solaris*)
12226       lt_prog_compiler_pic='-KPIC'
12227       lt_prog_compiler_static='-Bstatic'
12228       case $cc_basename in
12229       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12230         lt_prog_compiler_wl='-Qoption ld ';;
12231       *)
12232         lt_prog_compiler_wl='-Wl,';;
12233       esac
12234       ;;
12235
12236     sunos4*)
12237       lt_prog_compiler_wl='-Qoption ld '
12238       lt_prog_compiler_pic='-PIC'
12239       lt_prog_compiler_static='-Bstatic'
12240       ;;
12241
12242     sysv4 | sysv4.2uw2* | sysv4.3*)
12243       lt_prog_compiler_wl='-Wl,'
12244       lt_prog_compiler_pic='-KPIC'
12245       lt_prog_compiler_static='-Bstatic'
12246       ;;
12247
12248     sysv4*MP*)
12249       if test -d /usr/nec ;then
12250         lt_prog_compiler_pic='-Kconform_pic'
12251         lt_prog_compiler_static='-Bstatic'
12252       fi
12253       ;;
12254
12255     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12256       lt_prog_compiler_wl='-Wl,'
12257       lt_prog_compiler_pic='-KPIC'
12258       lt_prog_compiler_static='-Bstatic'
12259       ;;
12260
12261     unicos*)
12262       lt_prog_compiler_wl='-Wl,'
12263       lt_prog_compiler_can_build_shared=no
12264       ;;
12265
12266     uts4*)
12267       lt_prog_compiler_pic='-pic'
12268       lt_prog_compiler_static='-Bstatic'
12269       ;;
12270
12271     *)
12272       lt_prog_compiler_can_build_shared=no
12273       ;;
12274     esac
12275   fi
12276
12277 case $host_os in
12278   # For platforms which do not support PIC, -DPIC is meaningless:
12279   *djgpp*)
12280     lt_prog_compiler_pic=
12281     ;;
12282   *)
12283     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12284     ;;
12285 esac
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12288 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12289 if ${lt_cv_prog_compiler_pic+:} false; then :
12290   $as_echo_n "(cached) " >&6
12291 else
12292   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12295 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12296 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12297
12298 #
12299 # Check to make sure the PIC flag actually works.
12300 #
12301 if test -n "$lt_prog_compiler_pic"; then
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12303 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12304 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   lt_cv_prog_compiler_pic_works=no
12308    ac_outfile=conftest.$ac_objext
12309    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12310    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12311    # Insert the option either (1) after the last *FLAGS variable, or
12312    # (2) before a word containing "conftest.", or (3) at the end.
12313    # Note that $ac_compile itself does not contain backslashes and begins
12314    # with a dollar sign (not a hyphen), so the echo should work correctly.
12315    # The option is referenced via a variable to avoid confusing sed.
12316    lt_compile=`echo "$ac_compile" | $SED \
12317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12319    -e 's:$: $lt_compiler_flag:'`
12320    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12321    (eval "$lt_compile" 2>conftest.err)
12322    ac_status=$?
12323    cat conftest.err >&5
12324    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325    if (exit $ac_status) && test -s "$ac_outfile"; then
12326      # The compiler can only warn and ignore the option if not recognized
12327      # So say no if there are warnings other than the usual output.
12328      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12329      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12330      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12331        lt_cv_prog_compiler_pic_works=yes
12332      fi
12333    fi
12334    $RM conftest*
12335
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12338 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12339
12340 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12341     case $lt_prog_compiler_pic in
12342      "" | " "*) ;;
12343      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12344      esac
12345 else
12346     lt_prog_compiler_pic=
12347      lt_prog_compiler_can_build_shared=no
12348 fi
12349
12350 fi
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362 #
12363 # Check to make sure the static flag actually works.
12364 #
12365 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12367 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12368 if ${lt_cv_prog_compiler_static_works+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   lt_cv_prog_compiler_static_works=no
12372    save_LDFLAGS="$LDFLAGS"
12373    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12374    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12375    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12376      # The linker can only warn and ignore the option if not recognized
12377      # So say no if there are warnings
12378      if test -s conftest.err; then
12379        # Append any errors to the config.log.
12380        cat conftest.err 1>&5
12381        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12382        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12383        if diff conftest.exp conftest.er2 >/dev/null; then
12384          lt_cv_prog_compiler_static_works=yes
12385        fi
12386      else
12387        lt_cv_prog_compiler_static_works=yes
12388      fi
12389    fi
12390    $RM -r conftest*
12391    LDFLAGS="$save_LDFLAGS"
12392
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12395 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12396
12397 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12398     :
12399 else
12400     lt_prog_compiler_static=
12401 fi
12402
12403
12404
12405
12406
12407
12408
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411 if ${lt_cv_prog_compiler_c_o+:} false; then :
12412   $as_echo_n "(cached) " >&6
12413 else
12414   lt_cv_prog_compiler_c_o=no
12415    $RM -r conftest 2>/dev/null
12416    mkdir conftest
12417    cd conftest
12418    mkdir out
12419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421    lt_compiler_flag="-o out/conftest2.$ac_objext"
12422    # Insert the option either (1) after the last *FLAGS variable, or
12423    # (2) before a word containing "conftest.", or (3) at the end.
12424    # Note that $ac_compile itself does not contain backslashes and begins
12425    # with a dollar sign (not a hyphen), so the echo should work correctly.
12426    lt_compile=`echo "$ac_compile" | $SED \
12427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429    -e 's:$: $lt_compiler_flag:'`
12430    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12431    (eval "$lt_compile" 2>out/conftest.err)
12432    ac_status=$?
12433    cat out/conftest.err >&5
12434    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12436    then
12437      # The compiler can only warn and ignore the option if not recognized
12438      # So say no if there are warnings
12439      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12440      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442        lt_cv_prog_compiler_c_o=yes
12443      fi
12444    fi
12445    chmod u+w . 2>&5
12446    $RM conftest*
12447    # SGI C++ compiler will create directory out/ii_files/ for
12448    # template instantiation
12449    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12450    $RM out/* && rmdir out
12451    cd ..
12452    $RM -r conftest
12453    $RM conftest*
12454
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12457 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12458
12459
12460
12461
12462
12463
12464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12466 if ${lt_cv_prog_compiler_c_o+:} false; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   lt_cv_prog_compiler_c_o=no
12470    $RM -r conftest 2>/dev/null
12471    mkdir conftest
12472    cd conftest
12473    mkdir out
12474    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12475
12476    lt_compiler_flag="-o out/conftest2.$ac_objext"
12477    # Insert the option either (1) after the last *FLAGS variable, or
12478    # (2) before a word containing "conftest.", or (3) at the end.
12479    # Note that $ac_compile itself does not contain backslashes and begins
12480    # with a dollar sign (not a hyphen), so the echo should work correctly.
12481    lt_compile=`echo "$ac_compile" | $SED \
12482    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12484    -e 's:$: $lt_compiler_flag:'`
12485    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12486    (eval "$lt_compile" 2>out/conftest.err)
12487    ac_status=$?
12488    cat out/conftest.err >&5
12489    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12491    then
12492      # The compiler can only warn and ignore the option if not recognized
12493      # So say no if there are warnings
12494      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12495      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12496      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12497        lt_cv_prog_compiler_c_o=yes
12498      fi
12499    fi
12500    chmod u+w . 2>&5
12501    $RM conftest*
12502    # SGI C++ compiler will create directory out/ii_files/ for
12503    # template instantiation
12504    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12505    $RM out/* && rmdir out
12506    cd ..
12507    $RM -r conftest
12508    $RM conftest*
12509
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12512 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12513
12514
12515
12516
12517 hard_links="nottested"
12518 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12519   # do not overwrite the value of need_locks provided by the user
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12521 $as_echo_n "checking if we can lock with hard links... " >&6; }
12522   hard_links=yes
12523   $RM conftest*
12524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12525   touch conftest.a
12526   ln conftest.a conftest.b 2>&5 || hard_links=no
12527   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12529 $as_echo "$hard_links" >&6; }
12530   if test "$hard_links" = no; then
12531     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12533     need_locks=warn
12534   fi
12535 else
12536   need_locks=no
12537 fi
12538
12539
12540
12541
12542
12543
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12545 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12546
12547   runpath_var=
12548   allow_undefined_flag=
12549   always_export_symbols=no
12550   archive_cmds=
12551   archive_expsym_cmds=
12552   compiler_needs_object=no
12553   enable_shared_with_static_runtimes=no
12554   export_dynamic_flag_spec=
12555   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12556   hardcode_automatic=no
12557   hardcode_direct=no
12558   hardcode_direct_absolute=no
12559   hardcode_libdir_flag_spec=
12560   hardcode_libdir_flag_spec_ld=
12561   hardcode_libdir_separator=
12562   hardcode_minus_L=no
12563   hardcode_shlibpath_var=unsupported
12564   inherit_rpath=no
12565   link_all_deplibs=unknown
12566   module_cmds=
12567   module_expsym_cmds=
12568   old_archive_from_new_cmds=
12569   old_archive_from_expsyms_cmds=
12570   thread_safe_flag_spec=
12571   whole_archive_flag_spec=
12572   # include_expsyms should be a list of space-separated symbols to be *always*
12573   # included in the symbol list
12574   include_expsyms=
12575   # exclude_expsyms can be an extended regexp of symbols to exclude
12576   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12577   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12578   # as well as any symbol that contains `d'.
12579   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12581   # platforms (ab)use it in PIC code, but their linkers get confused if
12582   # the symbol is explicitly referenced.  Since portable code cannot
12583   # rely on this symbol name, it's probably fine to never include it in
12584   # preloaded symbol tables.
12585   # Exclude shared library initialization/finalization symbols.
12586   extract_expsyms_cmds=
12587
12588   case $host_os in
12589   cygwin* | mingw* | pw32* | cegcc*)
12590     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12591     # When not using gcc, we currently assume that we are using
12592     # Microsoft Visual C++.
12593     if test "$GCC" != yes; then
12594       with_gnu_ld=no
12595     fi
12596     ;;
12597   interix*)
12598     # we just hope/assume this is gcc and not c89 (= MSVC++)
12599     with_gnu_ld=yes
12600     ;;
12601   openbsd*)
12602     with_gnu_ld=no
12603     ;;
12604   esac
12605
12606   ld_shlibs=yes
12607
12608   # On some targets, GNU ld is compatible enough with the native linker
12609   # that we're better off using the native interface for both.
12610   lt_use_gnu_ld_interface=no
12611   if test "$with_gnu_ld" = yes; then
12612     case $host_os in
12613       aix*)
12614         # The AIX port of GNU ld has always aspired to compatibility
12615         # with the native linker.  However, as the warning in the GNU ld
12616         # block says, versions before 2.19.5* couldn't really create working
12617         # shared libraries, regardless of the interface used.
12618         case `$LD -v 2>&1` in
12619           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12620           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12621           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12622           *)
12623             lt_use_gnu_ld_interface=yes
12624             ;;
12625         esac
12626         ;;
12627       *)
12628         lt_use_gnu_ld_interface=yes
12629         ;;
12630     esac
12631   fi
12632
12633   if test "$lt_use_gnu_ld_interface" = yes; then
12634     # If archive_cmds runs LD, not CC, wlarc should be empty
12635     wlarc='${wl}'
12636
12637     # Set some defaults for GNU ld with shared library support. These
12638     # are reset later if shared libraries are not supported. Putting them
12639     # here allows them to be overridden if necessary.
12640     runpath_var=LD_RUN_PATH
12641     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12642     export_dynamic_flag_spec='${wl}--export-dynamic'
12643     # ancient GNU ld didn't support --whole-archive et. al.
12644     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12645       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12646     else
12647       whole_archive_flag_spec=
12648     fi
12649     supports_anon_versioning=no
12650     case `$LD -v 2>&1` in
12651       *GNU\ gold*) supports_anon_versioning=yes ;;
12652       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12653       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12654       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12655       *\ 2.11.*) ;; # other 2.11 versions
12656       *) supports_anon_versioning=yes ;;
12657     esac
12658
12659     # See if GNU ld supports shared libraries.
12660     case $host_os in
12661     aix[3-9]*)
12662       # On AIX/PPC, the GNU linker is very broken
12663       if test "$host_cpu" != ia64; then
12664         ld_shlibs=no
12665         cat <<_LT_EOF 1>&2
12666
12667 *** Warning: the GNU linker, at least up to release 2.19, is reported
12668 *** to be unable to reliably create shared libraries on AIX.
12669 *** Therefore, libtool is disabling shared libraries support.  If you
12670 *** really care for shared libraries, you may want to install binutils
12671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12672 *** You will then need to restart the configuration process.
12673
12674 _LT_EOF
12675       fi
12676       ;;
12677
12678     amigaos*)
12679       case $host_cpu in
12680       powerpc)
12681             # see comment about AmigaOS4 .so support
12682             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12683             archive_expsym_cmds=''
12684         ;;
12685       m68k)
12686             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)'
12687             hardcode_libdir_flag_spec='-L$libdir'
12688             hardcode_minus_L=yes
12689         ;;
12690       esac
12691       ;;
12692
12693     beos*)
12694       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695         allow_undefined_flag=unsupported
12696         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12697         # support --undefined.  This deserves some investigation.  FIXME
12698         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699       else
12700         ld_shlibs=no
12701       fi
12702       ;;
12703
12704     cygwin* | mingw* | pw32* | cegcc*)
12705       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12706       # as there is no search path for DLLs.
12707       hardcode_libdir_flag_spec='-L$libdir'
12708       export_dynamic_flag_spec='${wl}--export-all-symbols'
12709       allow_undefined_flag=unsupported
12710       always_export_symbols=no
12711       enable_shared_with_static_runtimes=yes
12712       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'
12713       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12714
12715       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12716         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12717         # If the export-symbols file already is a .def file (1st line
12718         # is EXPORTS), use it as is; otherwise, prepend...
12719         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12720           cp $export_symbols $output_objdir/$soname.def;
12721         else
12722           echo EXPORTS > $output_objdir/$soname.def;
12723           cat $export_symbols >> $output_objdir/$soname.def;
12724         fi~
12725         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12726       else
12727         ld_shlibs=no
12728       fi
12729       ;;
12730
12731     haiku*)
12732       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733       link_all_deplibs=yes
12734       ;;
12735
12736     interix[3-9]*)
12737       hardcode_direct=no
12738       hardcode_shlibpath_var=no
12739       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12740       export_dynamic_flag_spec='${wl}-E'
12741       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12742       # Instead, shared libraries are loaded at an image base (0x10000000 by
12743       # default) and relocated if they conflict, which is a slow very memory
12744       # consuming and fragmenting process.  To avoid this, we pick a random,
12745       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12746       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12747       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12748       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'
12749       ;;
12750
12751     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12752       tmp_diet=no
12753       if test "$host_os" = linux-dietlibc; then
12754         case $cc_basename in
12755           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12756         esac
12757       fi
12758       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12759          && test "$tmp_diet" = no
12760       then
12761         tmp_addflag=' $pic_flag'
12762         tmp_sharedflag='-shared'
12763         case $cc_basename,$host_cpu in
12764         pgcc*)                          # Portland Group C compiler
12765           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'
12766           tmp_addflag=' $pic_flag'
12767           ;;
12768         pgf77* | pgf90* | pgf95* | pgfortran*)
12769                                         # Portland Group f77 and f90 compilers
12770           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'
12771           tmp_addflag=' $pic_flag -Mnomain' ;;
12772         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12773           tmp_addflag=' -i_dynamic' ;;
12774         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12775           tmp_addflag=' -i_dynamic -nofor_main' ;;
12776         ifc* | ifort*)                  # Intel Fortran compiler
12777           tmp_addflag=' -nofor_main' ;;
12778         lf95*)                          # Lahey Fortran 8.1
12779           whole_archive_flag_spec=
12780           tmp_sharedflag='--shared' ;;
12781         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12782           tmp_sharedflag='-qmkshrobj'
12783           tmp_addflag= ;;
12784         nvcc*)  # Cuda Compiler Driver 2.2
12785           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'
12786           compiler_needs_object=yes
12787           ;;
12788         esac
12789         case `$CC -V 2>&1 | sed 5q` in
12790         *Sun\ C*)                       # Sun C 5.9
12791           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'
12792           compiler_needs_object=yes
12793           tmp_sharedflag='-G' ;;
12794         *Sun\ F*)                       # Sun Fortran 8.3
12795           tmp_sharedflag='-G' ;;
12796         esac
12797         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798
12799         if test "x$supports_anon_versioning" = xyes; then
12800           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12801             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12802             echo "local: *; };" >> $output_objdir/$libname.ver~
12803             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12804         fi
12805
12806         case $cc_basename in
12807         xlf* | bgf* | bgxlf* | mpixlf*)
12808           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12809           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12810           hardcode_libdir_flag_spec=
12811           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12812           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12813           if test "x$supports_anon_versioning" = xyes; then
12814             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12815               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12816               echo "local: *; };" >> $output_objdir/$libname.ver~
12817               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12818           fi
12819           ;;
12820         esac
12821       else
12822         ld_shlibs=no
12823       fi
12824       ;;
12825
12826     netbsd*)
12827       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12828         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12829         wlarc=
12830       else
12831         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12833       fi
12834       ;;
12835
12836     solaris*)
12837       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12838         ld_shlibs=no
12839         cat <<_LT_EOF 1>&2
12840
12841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12842 *** create shared libraries on Solaris systems.  Therefore, libtool
12843 *** is disabling shared libraries support.  We urge you to upgrade GNU
12844 *** binutils to release 2.9.1 or newer.  Another option is to modify
12845 *** your PATH or compiler configuration so that the native linker is
12846 *** used, and then restart.
12847
12848 _LT_EOF
12849       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12850         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12852       else
12853         ld_shlibs=no
12854       fi
12855       ;;
12856
12857     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12858       case `$LD -v 2>&1` in
12859         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12860         ld_shlibs=no
12861         cat <<_LT_EOF 1>&2
12862
12863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12864 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12865 *** is disabling shared libraries support.  We urge you to upgrade GNU
12866 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12867 *** your PATH or compiler configuration so that the native linker is
12868 *** used, and then restart.
12869
12870 _LT_EOF
12871         ;;
12872         *)
12873           # For security reasons, it is highly recommended that you always
12874           # use absolute paths for naming shared libraries, and exclude the
12875           # DT_RUNPATH tag from executables and libraries.  But doing so
12876           # requires that you compile everything twice, which is a pain.
12877           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12878             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12879             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12881           else
12882             ld_shlibs=no
12883           fi
12884         ;;
12885       esac
12886       ;;
12887
12888     sunos4*)
12889       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12890       wlarc=
12891       hardcode_direct=yes
12892       hardcode_shlibpath_var=no
12893       ;;
12894
12895     *)
12896       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12897         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12899       else
12900         ld_shlibs=no
12901       fi
12902       ;;
12903     esac
12904
12905     if test "$ld_shlibs" = no; then
12906       runpath_var=
12907       hardcode_libdir_flag_spec=
12908       export_dynamic_flag_spec=
12909       whole_archive_flag_spec=
12910     fi
12911   else
12912     # PORTME fill in a description of your system's linker (not GNU ld)
12913     case $host_os in
12914     aix3*)
12915       allow_undefined_flag=unsupported
12916       always_export_symbols=yes
12917       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'
12918       # Note: this linker hardcodes the directories in LIBPATH if there
12919       # are no directories specified by -L.
12920       hardcode_minus_L=yes
12921       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12922         # Neither direct hardcoding nor static linking is supported with a
12923         # broken collect2.
12924         hardcode_direct=unsupported
12925       fi
12926       ;;
12927
12928     aix[4-9]*)
12929       if test "$host_cpu" = ia64; then
12930         # On IA64, the linker does run time linking by default, so we don't
12931         # have to do anything special.
12932         aix_use_runtimelinking=no
12933         exp_sym_flag='-Bexport'
12934         no_entry_flag=""
12935       else
12936         # If we're using GNU nm, then we don't want the "-C" option.
12937         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12938         # Also, AIX nm treats weak defined symbols like other global
12939         # defined symbols, whereas GNU nm marks them as "W".
12940         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12941           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'
12942         else
12943           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'
12944         fi
12945         aix_use_runtimelinking=no
12946
12947         # Test if we are trying to use run time linking or normal
12948         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12949         # need to do runtime linking.
12950         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12951           for ld_flag in $LDFLAGS; do
12952           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12953             aix_use_runtimelinking=yes
12954             break
12955           fi
12956           done
12957           ;;
12958         esac
12959
12960         exp_sym_flag='-bexport'
12961         no_entry_flag='-bnoentry'
12962       fi
12963
12964       # When large executables or shared objects are built, AIX ld can
12965       # have problems creating the table of contents.  If linking a library
12966       # or program results in "error TOC overflow" add -mminimal-toc to
12967       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12968       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12969
12970       archive_cmds=''
12971       hardcode_direct=yes
12972       hardcode_direct_absolute=yes
12973       hardcode_libdir_separator=':'
12974       link_all_deplibs=yes
12975       file_list_spec='${wl}-f,'
12976
12977       if test "$GCC" = yes; then
12978         case $host_os in aix4.[012]|aix4.[012].*)
12979         # We only want to do this on AIX 4.2 and lower, the check
12980         # below for broken collect2 doesn't work under 4.3+
12981           collect2name=`${CC} -print-prog-name=collect2`
12982           if test -f "$collect2name" &&
12983            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12984           then
12985           # We have reworked collect2
12986           :
12987           else
12988           # We have old collect2
12989           hardcode_direct=unsupported
12990           # It fails to find uninstalled libraries when the uninstalled
12991           # path is not listed in the libpath.  Setting hardcode_minus_L
12992           # to unsupported forces relinking
12993           hardcode_minus_L=yes
12994           hardcode_libdir_flag_spec='-L$libdir'
12995           hardcode_libdir_separator=
12996           fi
12997           ;;
12998         esac
12999         shared_flag='-shared'
13000         if test "$aix_use_runtimelinking" = yes; then
13001           shared_flag="$shared_flag "'${wl}-G'
13002         fi
13003       else
13004         # not using gcc
13005         if test "$host_cpu" = ia64; then
13006         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13007         # chokes on -Wl,-G. The following line is correct:
13008           shared_flag='-G'
13009         else
13010           if test "$aix_use_runtimelinking" = yes; then
13011             shared_flag='${wl}-G'
13012           else
13013             shared_flag='${wl}-bM:SRE'
13014           fi
13015         fi
13016       fi
13017
13018       export_dynamic_flag_spec='${wl}-bexpall'
13019       # It seems that -bexpall does not export symbols beginning with
13020       # underscore (_), so it is better to generate a list of symbols to export.
13021       always_export_symbols=yes
13022       if test "$aix_use_runtimelinking" = yes; then
13023         # Warning - without using the other runtime loading flags (-brtl),
13024         # -berok will link without error, but may produce a broken library.
13025         allow_undefined_flag='-berok'
13026         # Determine the default libpath from the value encoded in an
13027         # empty executable.
13028         if test "${lt_cv_aix_libpath+set}" = set; then
13029   aix_libpath=$lt_cv_aix_libpath
13030 else
13031   if ${lt_cv_aix_libpath_+:} false; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h.  */
13036
13037 int
13038 main ()
13039 {
13040
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046
13047   lt_aix_libpath_sed='
13048       /Import File Strings/,/^$/ {
13049           /^0/ {
13050               s/^0  *\([^ ]*\) *$/\1/
13051               p
13052           }
13053       }'
13054   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055   # Check for a 64-bit object if we didn't find anything.
13056   if test -z "$lt_cv_aix_libpath_"; then
13057     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13058   fi
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061     conftest$ac_exeext conftest.$ac_ext
13062   if test -z "$lt_cv_aix_libpath_"; then
13063     lt_cv_aix_libpath_="/usr/lib:/lib"
13064   fi
13065
13066 fi
13067
13068   aix_libpath=$lt_cv_aix_libpath_
13069 fi
13070
13071         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13072         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"
13073       else
13074         if test "$host_cpu" = ia64; then
13075           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13076           allow_undefined_flag="-z nodefs"
13077           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"
13078         else
13079          # Determine the default libpath from the value encoded in an
13080          # empty executable.
13081          if test "${lt_cv_aix_libpath+set}" = set; then
13082   aix_libpath=$lt_cv_aix_libpath
13083 else
13084   if ${lt_cv_aix_libpath_+:} false; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h.  */
13089
13090 int
13091 main ()
13092 {
13093
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 if ac_fn_c_try_link "$LINENO"; then :
13099
13100   lt_aix_libpath_sed='
13101       /Import File Strings/,/^$/ {
13102           /^0/ {
13103               s/^0  *\([^ ]*\) *$/\1/
13104               p
13105           }
13106       }'
13107   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108   # Check for a 64-bit object if we didn't find anything.
13109   if test -z "$lt_cv_aix_libpath_"; then
13110     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111   fi
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext \
13114     conftest$ac_exeext conftest.$ac_ext
13115   if test -z "$lt_cv_aix_libpath_"; then
13116     lt_cv_aix_libpath_="/usr/lib:/lib"
13117   fi
13118
13119 fi
13120
13121   aix_libpath=$lt_cv_aix_libpath_
13122 fi
13123
13124          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13125           # Warning - without using the other run time loading flags,
13126           # -berok will link without error, but may produce a broken library.
13127           no_undefined_flag=' ${wl}-bernotok'
13128           allow_undefined_flag=' ${wl}-berok'
13129           if test "$with_gnu_ld" = yes; then
13130             # We only use this code for GNU lds that support --whole-archive.
13131             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13132           else
13133             # Exported symbols can be pulled into shared objects from archives
13134             whole_archive_flag_spec='$convenience'
13135           fi
13136           archive_cmds_need_lc=yes
13137           # This is similar to how AIX traditionally builds its shared libraries.
13138           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'
13139         fi
13140       fi
13141       ;;
13142
13143     amigaos*)
13144       case $host_cpu in
13145       powerpc)
13146             # see comment about AmigaOS4 .so support
13147             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13148             archive_expsym_cmds=''
13149         ;;
13150       m68k)
13151             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)'
13152             hardcode_libdir_flag_spec='-L$libdir'
13153             hardcode_minus_L=yes
13154         ;;
13155       esac
13156       ;;
13157
13158     bsdi[45]*)
13159       export_dynamic_flag_spec=-rdynamic
13160       ;;
13161
13162     cygwin* | mingw* | pw32* | cegcc*)
13163       # When not using gcc, we currently assume that we are using
13164       # Microsoft Visual C++.
13165       # hardcode_libdir_flag_spec is actually meaningless, as there is
13166       # no search path for DLLs.
13167       case $cc_basename in
13168       cl*)
13169         # Native MSVC
13170         hardcode_libdir_flag_spec=' '
13171         allow_undefined_flag=unsupported
13172         always_export_symbols=yes
13173         file_list_spec='@'
13174         # Tell ltmain to make .lib files, not .a files.
13175         libext=lib
13176         # Tell ltmain to make .dll files, not .so files.
13177         shrext_cmds=".dll"
13178         # FIXME: Setting linknames here is a bad hack.
13179         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13180         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13181             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13182           else
13183             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13184           fi~
13185           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13186           linknames='
13187         # The linker will not automatically build a static lib if we build a DLL.
13188         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13189         enable_shared_with_static_runtimes=yes
13190         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13191         # Don't use ranlib
13192         old_postinstall_cmds='chmod 644 $oldlib'
13193         postlink_cmds='lt_outputfile="@OUTPUT@"~
13194           lt_tool_outputfile="@TOOL_OUTPUT@"~
13195           case $lt_outputfile in
13196             *.exe|*.EXE) ;;
13197             *)
13198               lt_outputfile="$lt_outputfile.exe"
13199               lt_tool_outputfile="$lt_tool_outputfile.exe"
13200               ;;
13201           esac~
13202           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13203             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13204             $RM "$lt_outputfile.manifest";
13205           fi'
13206         ;;
13207       *)
13208         # Assume MSVC wrapper
13209         hardcode_libdir_flag_spec=' '
13210         allow_undefined_flag=unsupported
13211         # Tell ltmain to make .lib files, not .a files.
13212         libext=lib
13213         # Tell ltmain to make .dll files, not .so files.
13214         shrext_cmds=".dll"
13215         # FIXME: Setting linknames here is a bad hack.
13216         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13217         # The linker will automatically build a .lib file if we build a DLL.
13218         old_archive_from_new_cmds='true'
13219         # FIXME: Should let the user specify the lib program.
13220         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13221         enable_shared_with_static_runtimes=yes
13222         ;;
13223       esac
13224       ;;
13225
13226     darwin* | rhapsody*)
13227
13228
13229   archive_cmds_need_lc=no
13230   hardcode_direct=no
13231   hardcode_automatic=yes
13232   hardcode_shlibpath_var=unsupported
13233   if test "$lt_cv_ld_force_load" = "yes"; then
13234     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\"`'
13235   else
13236     whole_archive_flag_spec=''
13237   fi
13238   link_all_deplibs=yes
13239   allow_undefined_flag="$_lt_dar_allow_undefined"
13240   case $cc_basename in
13241      ifort*) _lt_dar_can_shared=yes ;;
13242      *) _lt_dar_can_shared=$GCC ;;
13243   esac
13244   if test "$_lt_dar_can_shared" = "yes"; then
13245     output_verbose_link_cmd=func_echo_all
13246     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13247     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13248     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}"
13249     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}"
13250
13251   else
13252   ld_shlibs=no
13253   fi
13254
13255       ;;
13256
13257     dgux*)
13258       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13259       hardcode_libdir_flag_spec='-L$libdir'
13260       hardcode_shlibpath_var=no
13261       ;;
13262
13263     freebsd1*)
13264       ld_shlibs=no
13265       ;;
13266
13267     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13268     # support.  Future versions do this automatically, but an explicit c++rt0.o
13269     # does not break anything, and helps significantly (at the cost of a little
13270     # extra space).
13271     freebsd2.2*)
13272       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13273       hardcode_libdir_flag_spec='-R$libdir'
13274       hardcode_direct=yes
13275       hardcode_shlibpath_var=no
13276       ;;
13277
13278     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13279     freebsd2*)
13280       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13281       hardcode_direct=yes
13282       hardcode_minus_L=yes
13283       hardcode_shlibpath_var=no
13284       ;;
13285
13286     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13287     freebsd* | dragonfly*)
13288       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13289       hardcode_libdir_flag_spec='-R$libdir'
13290       hardcode_direct=yes
13291       hardcode_shlibpath_var=no
13292       ;;
13293
13294     hpux9*)
13295       if test "$GCC" = yes; then
13296         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'
13297       else
13298         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'
13299       fi
13300       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13301       hardcode_libdir_separator=:
13302       hardcode_direct=yes
13303
13304       # hardcode_minus_L: Not really in the search PATH,
13305       # but as the default location of the library.
13306       hardcode_minus_L=yes
13307       export_dynamic_flag_spec='${wl}-E'
13308       ;;
13309
13310     hpux10*)
13311       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13312         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13313       else
13314         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13315       fi
13316       if test "$with_gnu_ld" = no; then
13317         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13318         hardcode_libdir_flag_spec_ld='+b $libdir'
13319         hardcode_libdir_separator=:
13320         hardcode_direct=yes
13321         hardcode_direct_absolute=yes
13322         export_dynamic_flag_spec='${wl}-E'
13323         # hardcode_minus_L: Not really in the search PATH,
13324         # but as the default location of the library.
13325         hardcode_minus_L=yes
13326       fi
13327       ;;
13328
13329     hpux11*)
13330       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13331         case $host_cpu in
13332         hppa*64*)
13333           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13334           ;;
13335         ia64*)
13336           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13337           ;;
13338         *)
13339           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13340           ;;
13341         esac
13342       else
13343         case $host_cpu in
13344         hppa*64*)
13345           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13346           ;;
13347         ia64*)
13348           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13349           ;;
13350         *)
13351
13352           # Older versions of the 11.00 compiler do not understand -b yet
13353           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13354           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13355 $as_echo_n "checking if $CC understands -b... " >&6; }
13356 if ${lt_cv_prog_compiler__b+:} false; then :
13357   $as_echo_n "(cached) " >&6
13358 else
13359   lt_cv_prog_compiler__b=no
13360    save_LDFLAGS="$LDFLAGS"
13361    LDFLAGS="$LDFLAGS -b"
13362    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13363    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13364      # The linker can only warn and ignore the option if not recognized
13365      # So say no if there are warnings
13366      if test -s conftest.err; then
13367        # Append any errors to the config.log.
13368        cat conftest.err 1>&5
13369        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13370        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13371        if diff conftest.exp conftest.er2 >/dev/null; then
13372          lt_cv_prog_compiler__b=yes
13373        fi
13374      else
13375        lt_cv_prog_compiler__b=yes
13376      fi
13377    fi
13378    $RM -r conftest*
13379    LDFLAGS="$save_LDFLAGS"
13380
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13383 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13384
13385 if test x"$lt_cv_prog_compiler__b" = xyes; then
13386     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13387 else
13388     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13389 fi
13390
13391           ;;
13392         esac
13393       fi
13394       if test "$with_gnu_ld" = no; then
13395         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13396         hardcode_libdir_separator=:
13397
13398         case $host_cpu in
13399         hppa*64*|ia64*)
13400           hardcode_direct=no
13401           hardcode_shlibpath_var=no
13402           ;;
13403         *)
13404           hardcode_direct=yes
13405           hardcode_direct_absolute=yes
13406           export_dynamic_flag_spec='${wl}-E'
13407
13408           # hardcode_minus_L: Not really in the search PATH,
13409           # but as the default location of the library.
13410           hardcode_minus_L=yes
13411           ;;
13412         esac
13413       fi
13414       ;;
13415
13416     irix5* | irix6* | nonstopux*)
13417       if test "$GCC" = yes; then
13418         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'
13419         # Try to use the -exported_symbol ld option, if it does not
13420         # work, assume that -exports_file does not work either and
13421         # implicitly export all symbols.
13422         # This should be the same for all languages, so no per-tag cache variable.
13423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13424 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13425 if ${lt_cv_irix_exported_symbol+:} false; then :
13426   $as_echo_n "(cached) " >&6
13427 else
13428   save_LDFLAGS="$LDFLAGS"
13429            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13430            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h.  */
13432 int foo (void) { return 0; }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435   lt_cv_irix_exported_symbol=yes
13436 else
13437   lt_cv_irix_exported_symbol=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440     conftest$ac_exeext conftest.$ac_ext
13441            LDFLAGS="$save_LDFLAGS"
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13444 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13445         if test "$lt_cv_irix_exported_symbol" = yes; then
13446           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'
13447         fi
13448       else
13449         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'
13450         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'
13451       fi
13452       archive_cmds_need_lc='no'
13453       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13454       hardcode_libdir_separator=:
13455       inherit_rpath=yes
13456       link_all_deplibs=yes
13457       ;;
13458
13459     netbsd*)
13460       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13461         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13462       else
13463         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13464       fi
13465       hardcode_libdir_flag_spec='-R$libdir'
13466       hardcode_direct=yes
13467       hardcode_shlibpath_var=no
13468       ;;
13469
13470     newsos6)
13471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472       hardcode_direct=yes
13473       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13474       hardcode_libdir_separator=:
13475       hardcode_shlibpath_var=no
13476       ;;
13477
13478     *nto* | *qnx*)
13479       ;;
13480
13481     openbsd*)
13482       if test -f /usr/libexec/ld.so; then
13483         hardcode_direct=yes
13484         hardcode_shlibpath_var=no
13485         hardcode_direct_absolute=yes
13486         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13487           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13488           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13489           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13490           export_dynamic_flag_spec='${wl}-E'
13491         else
13492           case $host_os in
13493            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13494              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13495              hardcode_libdir_flag_spec='-R$libdir'
13496              ;;
13497            *)
13498              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13499              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13500              ;;
13501           esac
13502         fi
13503       else
13504         ld_shlibs=no
13505       fi
13506       ;;
13507
13508     os2*)
13509       hardcode_libdir_flag_spec='-L$libdir'
13510       hardcode_minus_L=yes
13511       allow_undefined_flag=unsupported
13512       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'
13513       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13514       ;;
13515
13516     osf3*)
13517       if test "$GCC" = yes; then
13518         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13519         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'
13520       else
13521         allow_undefined_flag=' -expect_unresolved \*'
13522         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'
13523       fi
13524       archive_cmds_need_lc='no'
13525       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13526       hardcode_libdir_separator=:
13527       ;;
13528
13529     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13530       if test "$GCC" = yes; then
13531         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13532         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'
13533         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13534       else
13535         allow_undefined_flag=' -expect_unresolved \*'
13536         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'
13537         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~
13538         $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'
13539
13540         # Both c and cxx compiler support -rpath directly
13541         hardcode_libdir_flag_spec='-rpath $libdir'
13542       fi
13543       archive_cmds_need_lc='no'
13544       hardcode_libdir_separator=:
13545       ;;
13546
13547     solaris*)
13548       no_undefined_flag=' -z defs'
13549       if test "$GCC" = yes; then
13550         wlarc='${wl}'
13551         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13552         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553           $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'
13554       else
13555         case `$CC -V 2>&1` in
13556         *"Compilers 5.0"*)
13557           wlarc=''
13558           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13561           ;;
13562         *)
13563           wlarc='${wl}'
13564           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13565           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13567           ;;
13568         esac
13569       fi
13570       hardcode_libdir_flag_spec='-R$libdir'
13571       hardcode_shlibpath_var=no
13572       case $host_os in
13573       solaris2.[0-5] | solaris2.[0-5].*) ;;
13574       *)
13575         # The compiler driver will combine and reorder linker options,
13576         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13577         # but is careful enough not to reorder.
13578         # Supported since Solaris 2.6 (maybe 2.5.1?)
13579         if test "$GCC" = yes; then
13580           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13581         else
13582           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13583         fi
13584         ;;
13585       esac
13586       link_all_deplibs=yes
13587       ;;
13588
13589     sunos4*)
13590       if test "x$host_vendor" = xsequent; then
13591         # Use $CC to link under sequent, because it throws in some extra .o
13592         # files that make .init and .fini sections work.
13593         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13594       else
13595         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13596       fi
13597       hardcode_libdir_flag_spec='-L$libdir'
13598       hardcode_direct=yes
13599       hardcode_minus_L=yes
13600       hardcode_shlibpath_var=no
13601       ;;
13602
13603     sysv4)
13604       case $host_vendor in
13605         sni)
13606           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607           hardcode_direct=yes # is this really true???
13608         ;;
13609         siemens)
13610           ## LD is ld it makes a PLAMLIB
13611           ## CC just makes a GrossModule.
13612           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13613           reload_cmds='$CC -r -o $output$reload_objs'
13614           hardcode_direct=no
13615         ;;
13616         motorola)
13617           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13619         ;;
13620       esac
13621       runpath_var='LD_RUN_PATH'
13622       hardcode_shlibpath_var=no
13623       ;;
13624
13625     sysv4.3*)
13626       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627       hardcode_shlibpath_var=no
13628       export_dynamic_flag_spec='-Bexport'
13629       ;;
13630
13631     sysv4*MP*)
13632       if test -d /usr/nec; then
13633         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634         hardcode_shlibpath_var=no
13635         runpath_var=LD_RUN_PATH
13636         hardcode_runpath_var=yes
13637         ld_shlibs=yes
13638       fi
13639       ;;
13640
13641     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13642       no_undefined_flag='${wl}-z,text'
13643       archive_cmds_need_lc=no
13644       hardcode_shlibpath_var=no
13645       runpath_var='LD_RUN_PATH'
13646
13647       if test "$GCC" = yes; then
13648         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650       else
13651         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653       fi
13654       ;;
13655
13656     sysv5* | sco3.2v5* | sco5v6*)
13657       # Note: We can NOT use -z defs as we might desire, because we do not
13658       # link with -lc, and that would cause any symbols used from libc to
13659       # always be unresolved, which means just about no library would
13660       # ever link correctly.  If we're not using GNU ld we use -z text
13661       # though, which does catch some bad symbols but isn't as heavy-handed
13662       # as -z defs.
13663       no_undefined_flag='${wl}-z,text'
13664       allow_undefined_flag='${wl}-z,nodefs'
13665       archive_cmds_need_lc=no
13666       hardcode_shlibpath_var=no
13667       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13668       hardcode_libdir_separator=':'
13669       link_all_deplibs=yes
13670       export_dynamic_flag_spec='${wl}-Bexport'
13671       runpath_var='LD_RUN_PATH'
13672
13673       if test "$GCC" = yes; then
13674         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676       else
13677         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679       fi
13680       ;;
13681
13682     uts4*)
13683       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684       hardcode_libdir_flag_spec='-L$libdir'
13685       hardcode_shlibpath_var=no
13686       ;;
13687
13688     *)
13689       ld_shlibs=no
13690       ;;
13691     esac
13692
13693     if test x$host_vendor = xsni; then
13694       case $host in
13695       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13696         export_dynamic_flag_spec='${wl}-Blargedynsym'
13697         ;;
13698       esac
13699     fi
13700   fi
13701
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13703 $as_echo "$ld_shlibs" >&6; }
13704 test "$ld_shlibs" = no && can_build_shared=no
13705
13706 with_gnu_ld=$with_gnu_ld
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 #
13723 # Do we need to explicitly link libc?
13724 #
13725 case "x$archive_cmds_need_lc" in
13726 x|xyes)
13727   # Assume -lc should be added
13728   archive_cmds_need_lc=yes
13729
13730   if test "$enable_shared" = yes && test "$GCC" = yes; then
13731     case $archive_cmds in
13732     *'~'*)
13733       # FIXME: we may have to deal with multi-command sequences.
13734       ;;
13735     '$CC '*)
13736       # Test whether the compiler implicitly links with -lc since on some
13737       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13738       # to ld, don't add -lc before -lgcc.
13739       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13740 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13741 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13742   $as_echo_n "(cached) " >&6
13743 else
13744   $RM conftest*
13745         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13746
13747         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748   (eval $ac_compile) 2>&5
13749   ac_status=$?
13750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751   test $ac_status = 0; } 2>conftest.err; then
13752           soname=conftest
13753           lib=conftest
13754           libobjs=conftest.$ac_objext
13755           deplibs=
13756           wl=$lt_prog_compiler_wl
13757           pic_flag=$lt_prog_compiler_pic
13758           compiler_flags=-v
13759           linker_flags=-v
13760           verstring=
13761           output_objdir=.
13762           libname=conftest
13763           lt_save_allow_undefined_flag=$allow_undefined_flag
13764           allow_undefined_flag=
13765           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13766   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13767   ac_status=$?
13768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769   test $ac_status = 0; }
13770           then
13771             lt_cv_archive_cmds_need_lc=no
13772           else
13773             lt_cv_archive_cmds_need_lc=yes
13774           fi
13775           allow_undefined_flag=$lt_save_allow_undefined_flag
13776         else
13777           cat conftest.err 1>&5
13778         fi
13779         $RM conftest*
13780
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13783 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13784       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13785       ;;
13786     esac
13787   fi
13788   ;;
13789 esac
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
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13948 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13949
13950 if test "$GCC" = yes; then
13951   case $host_os in
13952     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13953     *) lt_awk_arg="/^libraries:/" ;;
13954   esac
13955   case $host_os in
13956     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13957     *) lt_sed_strip_eq="s,=/,/,g" ;;
13958   esac
13959   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13960   case $lt_search_path_spec in
13961   *\;*)
13962     # if the path contains ";" then we assume it to be the separator
13963     # otherwise default to the standard path separator (i.e. ":") - it is
13964     # assumed that no part of a normal pathname contains ";" but that should
13965     # okay in the real world where ";" in dirpaths is itself problematic.
13966     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13967     ;;
13968   *)
13969     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13970     ;;
13971   esac
13972   # Ok, now we have the path, separated by spaces, we can step through it
13973   # and add multilib dir if necessary.
13974   lt_tmp_lt_search_path_spec=
13975   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13976   for lt_sys_path in $lt_search_path_spec; do
13977     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13978       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13979     else
13980       test -d "$lt_sys_path" && \
13981         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13982     fi
13983   done
13984   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13985 BEGIN {RS=" "; FS="/|\n";} {
13986   lt_foo="";
13987   lt_count=0;
13988   for (lt_i = NF; lt_i > 0; lt_i--) {
13989     if ($lt_i != "" && $lt_i != ".") {
13990       if ($lt_i == "..") {
13991         lt_count++;
13992       } else {
13993         if (lt_count == 0) {
13994           lt_foo="/" $lt_i lt_foo;
13995         } else {
13996           lt_count--;
13997         }
13998       }
13999     }
14000   }
14001   if (lt_foo != "") { lt_freq[lt_foo]++; }
14002   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14003 }'`
14004   # AWK program above erroneously prepends '/' to C:/dos/paths
14005   # for these hosts.
14006   case $host_os in
14007     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14008       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14009   esac
14010   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14011 else
14012   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14013 fi
14014 library_names_spec=
14015 libname_spec='lib$name'
14016 soname_spec=
14017 shrext_cmds=".so"
14018 postinstall_cmds=
14019 postuninstall_cmds=
14020 finish_cmds=
14021 finish_eval=
14022 shlibpath_var=
14023 shlibpath_overrides_runpath=unknown
14024 version_type=none
14025 dynamic_linker="$host_os ld.so"
14026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14027 need_lib_prefix=unknown
14028 hardcode_into_libs=no
14029
14030 # when you set need_version to no, make sure it does not cause -set_version
14031 # flags to be left without arguments
14032 need_version=unknown
14033
14034 case $host_os in
14035 aix3*)
14036   version_type=linux
14037   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14038   shlibpath_var=LIBPATH
14039
14040   # AIX 3 has no versioning support, so we append a major version to the name.
14041   soname_spec='${libname}${release}${shared_ext}$major'
14042   ;;
14043
14044 aix[4-9]*)
14045   version_type=linux
14046   need_lib_prefix=no
14047   need_version=no
14048   hardcode_into_libs=yes
14049   if test "$host_cpu" = ia64; then
14050     # AIX 5 supports IA64
14051     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14052     shlibpath_var=LD_LIBRARY_PATH
14053   else
14054     # With GCC up to 2.95.x, collect2 would create an import file
14055     # for dependence libraries.  The import file would start with
14056     # the line `#! .'.  This would cause the generated library to
14057     # depend on `.', always an invalid library.  This was fixed in
14058     # development snapshots of GCC prior to 3.0.
14059     case $host_os in
14060       aix4 | aix4.[01] | aix4.[01].*)
14061       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14062            echo ' yes '
14063            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14064         :
14065       else
14066         can_build_shared=no
14067       fi
14068       ;;
14069     esac
14070     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14071     # soname into executable. Probably we can add versioning support to
14072     # collect2, so additional links can be useful in future.
14073     if test "$aix_use_runtimelinking" = yes; then
14074       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14075       # instead of lib<name>.a to let people know that these are not
14076       # typical AIX shared libraries.
14077       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078     else
14079       # We preserve .a as extension for shared libraries through AIX4.2
14080       # and later when we are not doing run time linking.
14081       library_names_spec='${libname}${release}.a $libname.a'
14082       soname_spec='${libname}${release}${shared_ext}$major'
14083     fi
14084     shlibpath_var=LIBPATH
14085   fi
14086   ;;
14087
14088 amigaos*)
14089   case $host_cpu in
14090   powerpc)
14091     # Since July 2007 AmigaOS4 officially supports .so libraries.
14092     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094     ;;
14095   m68k)
14096     library_names_spec='$libname.ixlibrary $libname.a'
14097     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14098     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'
14099     ;;
14100   esac
14101   ;;
14102
14103 beos*)
14104   library_names_spec='${libname}${shared_ext}'
14105   dynamic_linker="$host_os ld.so"
14106   shlibpath_var=LIBRARY_PATH
14107   ;;
14108
14109 bsdi[45]*)
14110   version_type=linux
14111   need_version=no
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113   soname_spec='${libname}${release}${shared_ext}$major'
14114   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14115   shlibpath_var=LD_LIBRARY_PATH
14116   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14117   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14118   # the default ld.so.conf also contains /usr/contrib/lib and
14119   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14120   # libtool to hard-code these into programs
14121   ;;
14122
14123 cygwin* | mingw* | pw32* | cegcc*)
14124   version_type=windows
14125   shrext_cmds=".dll"
14126   need_version=no
14127   need_lib_prefix=no
14128
14129   case $GCC,$cc_basename in
14130   yes,*)
14131     # gcc
14132     library_names_spec='$libname.dll.a'
14133     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14134     postinstall_cmds='base_file=`basename \${file}`~
14135       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14136       dldir=$destdir/`dirname \$dlpath`~
14137       test -d \$dldir || mkdir -p \$dldir~
14138       $install_prog $dir/$dlname \$dldir/$dlname~
14139       chmod a+x \$dldir/$dlname~
14140       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14141         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14142       fi'
14143     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14144       dlpath=$dir/\$dldll~
14145        $RM \$dlpath'
14146     shlibpath_overrides_runpath=yes
14147
14148     case $host_os in
14149     cygwin*)
14150       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14151       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152
14153       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14154       ;;
14155     mingw* | cegcc*)
14156       # MinGW DLLs use traditional 'lib' prefix
14157       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14158       ;;
14159     pw32*)
14160       # pw32 DLLs use 'pw' prefix rather than 'lib'
14161       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162       ;;
14163     esac
14164     dynamic_linker='Win32 ld.exe'
14165     ;;
14166
14167   *,cl*)
14168     # Native MSVC
14169     libname_spec='$name'
14170     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14171     library_names_spec='${libname}.dll.lib'
14172
14173     case $build_os in
14174     mingw*)
14175       sys_lib_search_path_spec=
14176       lt_save_ifs=$IFS
14177       IFS=';'
14178       for lt_path in $LIB
14179       do
14180         IFS=$lt_save_ifs
14181         # Let DOS variable expansion print the short 8.3 style file name.
14182         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14183         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14184       done
14185       IFS=$lt_save_ifs
14186       # Convert to MSYS style.
14187       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14188       ;;
14189     cygwin*)
14190       # Convert to unix form, then to dos form, then back to unix form
14191       # but this time dos style (no spaces!) so that the unix form looks
14192       # like /cygdrive/c/PROGRA~1:/cygdr...
14193       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14194       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14195       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14196       ;;
14197     *)
14198       sys_lib_search_path_spec="$LIB"
14199       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14200         # It is most probably a Windows format PATH.
14201         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14202       else
14203         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14204       fi
14205       # FIXME: find the short name or the path components, as spaces are
14206       # common. (e.g. "Program Files" -> "PROGRA~1")
14207       ;;
14208     esac
14209
14210     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14211     postinstall_cmds='base_file=`basename \${file}`~
14212       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14213       dldir=$destdir/`dirname \$dlpath`~
14214       test -d \$dldir || mkdir -p \$dldir~
14215       $install_prog $dir/$dlname \$dldir/$dlname'
14216     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14217       dlpath=$dir/\$dldll~
14218        $RM \$dlpath'
14219     shlibpath_overrides_runpath=yes
14220     dynamic_linker='Win32 link.exe'
14221     ;;
14222
14223   *)
14224     # Assume MSVC wrapper
14225     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14226     dynamic_linker='Win32 ld.exe'
14227     ;;
14228   esac
14229   # FIXME: first we should search . and the directory the executable is in
14230   shlibpath_var=PATH
14231   ;;
14232
14233 darwin* | rhapsody*)
14234   dynamic_linker="$host_os dyld"
14235   version_type=darwin
14236   need_lib_prefix=no
14237   need_version=no
14238   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14239   soname_spec='${libname}${release}${major}$shared_ext'
14240   shlibpath_overrides_runpath=yes
14241   shlibpath_var=DYLD_LIBRARY_PATH
14242   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14243
14244   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14245   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14246   ;;
14247
14248 dgux*)
14249   version_type=linux
14250   need_lib_prefix=no
14251   need_version=no
14252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14253   soname_spec='${libname}${release}${shared_ext}$major'
14254   shlibpath_var=LD_LIBRARY_PATH
14255   ;;
14256
14257 freebsd1*)
14258   dynamic_linker=no
14259   ;;
14260
14261 freebsd* | dragonfly*)
14262   # DragonFly does not have aout.  When/if they implement a new
14263   # versioning mechanism, adjust this.
14264   if test -x /usr/bin/objformat; then
14265     objformat=`/usr/bin/objformat`
14266   else
14267     case $host_os in
14268     freebsd[123]*) objformat=aout ;;
14269     *) objformat=elf ;;
14270     esac
14271   fi
14272   version_type=freebsd-$objformat
14273   case $version_type in
14274     freebsd-elf*)
14275       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14276       need_version=no
14277       need_lib_prefix=no
14278       ;;
14279     freebsd-*)
14280       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14281       need_version=yes
14282       ;;
14283   esac
14284   shlibpath_var=LD_LIBRARY_PATH
14285   case $host_os in
14286   freebsd2*)
14287     shlibpath_overrides_runpath=yes
14288     ;;
14289   freebsd3.[01]* | freebsdelf3.[01]*)
14290     shlibpath_overrides_runpath=yes
14291     hardcode_into_libs=yes
14292     ;;
14293   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14294   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14295     shlibpath_overrides_runpath=no
14296     hardcode_into_libs=yes
14297     ;;
14298   *) # from 4.6 on, and DragonFly
14299     shlibpath_overrides_runpath=yes
14300     hardcode_into_libs=yes
14301     ;;
14302   esac
14303   ;;
14304
14305 gnu*)
14306   version_type=linux
14307   need_lib_prefix=no
14308   need_version=no
14309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14310   soname_spec='${libname}${release}${shared_ext}$major'
14311   shlibpath_var=LD_LIBRARY_PATH
14312   hardcode_into_libs=yes
14313   ;;
14314
14315 haiku*)
14316   version_type=linux
14317   need_lib_prefix=no
14318   need_version=no
14319   dynamic_linker="$host_os runtime_loader"
14320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14321   soname_spec='${libname}${release}${shared_ext}$major'
14322   shlibpath_var=LIBRARY_PATH
14323   shlibpath_overrides_runpath=yes
14324   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14325   hardcode_into_libs=yes
14326   ;;
14327
14328 hpux9* | hpux10* | hpux11*)
14329   # Give a soname corresponding to the major version so that dld.sl refuses to
14330   # link against other versions.
14331   version_type=sunos
14332   need_lib_prefix=no
14333   need_version=no
14334   case $host_cpu in
14335   ia64*)
14336     shrext_cmds='.so'
14337     hardcode_into_libs=yes
14338     dynamic_linker="$host_os dld.so"
14339     shlibpath_var=LD_LIBRARY_PATH
14340     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342     soname_spec='${libname}${release}${shared_ext}$major'
14343     if test "X$HPUX_IA64_MODE" = X32; then
14344       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14345     else
14346       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14347     fi
14348     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14349     ;;
14350   hppa*64*)
14351     shrext_cmds='.sl'
14352     hardcode_into_libs=yes
14353     dynamic_linker="$host_os dld.sl"
14354     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14355     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357     soname_spec='${libname}${release}${shared_ext}$major'
14358     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14359     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14360     ;;
14361   *)
14362     shrext_cmds='.sl'
14363     dynamic_linker="$host_os dld.sl"
14364     shlibpath_var=SHLIB_PATH
14365     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367     soname_spec='${libname}${release}${shared_ext}$major'
14368     ;;
14369   esac
14370   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14371   postinstall_cmds='chmod 555 $lib'
14372   # or fails outright, so override atomically:
14373   install_override_mode=555
14374   ;;
14375
14376 interix[3-9]*)
14377   version_type=linux
14378   need_lib_prefix=no
14379   need_version=no
14380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381   soname_spec='${libname}${release}${shared_ext}$major'
14382   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14383   shlibpath_var=LD_LIBRARY_PATH
14384   shlibpath_overrides_runpath=no
14385   hardcode_into_libs=yes
14386   ;;
14387
14388 irix5* | irix6* | nonstopux*)
14389   case $host_os in
14390     nonstopux*) version_type=nonstopux ;;
14391     *)
14392         if test "$lt_cv_prog_gnu_ld" = yes; then
14393                 version_type=linux
14394         else
14395                 version_type=irix
14396         fi ;;
14397   esac
14398   need_lib_prefix=no
14399   need_version=no
14400   soname_spec='${libname}${release}${shared_ext}$major'
14401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14402   case $host_os in
14403   irix5* | nonstopux*)
14404     libsuff= shlibsuff=
14405     ;;
14406   *)
14407     case $LD in # libtool.m4 will add one of these switches to LD
14408     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14409       libsuff= shlibsuff= libmagic=32-bit;;
14410     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14411       libsuff=32 shlibsuff=N32 libmagic=N32;;
14412     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14413       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14414     *) libsuff= shlibsuff= libmagic=never-match;;
14415     esac
14416     ;;
14417   esac
14418   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14419   shlibpath_overrides_runpath=no
14420   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14421   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14422   hardcode_into_libs=yes
14423   ;;
14424
14425 # No shared lib support for Linux oldld, aout, or coff.
14426 linux*oldld* | linux*aout* | linux*coff*)
14427   dynamic_linker=no
14428   ;;
14429
14430 # This must be Linux ELF.
14431 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14432   version_type=linux
14433   need_lib_prefix=no
14434   need_version=no
14435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436   soname_spec='${libname}${release}${shared_ext}$major'
14437   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14438   shlibpath_var=LD_LIBRARY_PATH
14439   shlibpath_overrides_runpath=no
14440
14441   # Some binutils ld are patched to set DT_RUNPATH
14442   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14443   $as_echo_n "(cached) " >&6
14444 else
14445   lt_cv_shlibpath_overrides_runpath=no
14446     save_LDFLAGS=$LDFLAGS
14447     save_libdir=$libdir
14448     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14449          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h.  */
14452
14453 int
14454 main ()
14455 {
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 if ac_fn_c_try_link "$LINENO"; then :
14462   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14463   lt_cv_shlibpath_overrides_runpath=yes
14464 fi
14465 fi
14466 rm -f core conftest.err conftest.$ac_objext \
14467     conftest$ac_exeext conftest.$ac_ext
14468     LDFLAGS=$save_LDFLAGS
14469     libdir=$save_libdir
14470
14471 fi
14472
14473   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14474
14475   # This implies no fast_install, which is unacceptable.
14476   # Some rework will be needed to allow for fast_install
14477   # before this can be enabled.
14478   hardcode_into_libs=yes
14479
14480   # Append ld.so.conf contents to the search path
14481   if test -f /etc/ld.so.conf; then
14482     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' ' '`
14483     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14484   fi
14485
14486   # We used to test for /lib/ld.so.1 and disable shared libraries on
14487   # powerpc, because MkLinux only supported shared libraries with the
14488   # GNU dynamic linker.  Since this was broken with cross compilers,
14489   # most powerpc-linux boxes support dynamic linking these days and
14490   # people can always --disable-shared, the test was removed, and we
14491   # assume the GNU/Linux dynamic linker is in use.
14492   dynamic_linker='GNU/Linux ld.so'
14493   ;;
14494
14495 netbsd*)
14496   version_type=sunos
14497   need_lib_prefix=no
14498   need_version=no
14499   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502     dynamic_linker='NetBSD (a.out) ld.so'
14503   else
14504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505     soname_spec='${libname}${release}${shared_ext}$major'
14506     dynamic_linker='NetBSD ld.elf_so'
14507   fi
14508   shlibpath_var=LD_LIBRARY_PATH
14509   shlibpath_overrides_runpath=yes
14510   hardcode_into_libs=yes
14511   ;;
14512
14513 newsos6)
14514   version_type=linux
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516   shlibpath_var=LD_LIBRARY_PATH
14517   shlibpath_overrides_runpath=yes
14518   ;;
14519
14520 *nto* | *qnx*)
14521   version_type=qnx
14522   need_lib_prefix=no
14523   need_version=no
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525   soname_spec='${libname}${release}${shared_ext}$major'
14526   shlibpath_var=LD_LIBRARY_PATH
14527   shlibpath_overrides_runpath=no
14528   hardcode_into_libs=yes
14529   dynamic_linker='ldqnx.so'
14530   ;;
14531
14532 openbsd*)
14533   version_type=sunos
14534   sys_lib_dlsearch_path_spec="/usr/lib"
14535   need_lib_prefix=no
14536   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14537   case $host_os in
14538     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14539     *)                          need_version=no  ;;
14540   esac
14541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14545     case $host_os in
14546       openbsd2.[89] | openbsd2.[89].*)
14547         shlibpath_overrides_runpath=no
14548         ;;
14549       *)
14550         shlibpath_overrides_runpath=yes
14551         ;;
14552       esac
14553   else
14554     shlibpath_overrides_runpath=yes
14555   fi
14556   ;;
14557
14558 os2*)
14559   libname_spec='$name'
14560   shrext_cmds=".dll"
14561   need_lib_prefix=no
14562   library_names_spec='$libname${shared_ext} $libname.a'
14563   dynamic_linker='OS/2 ld.exe'
14564   shlibpath_var=LIBPATH
14565   ;;
14566
14567 osf3* | osf4* | osf5*)
14568   version_type=osf
14569   need_lib_prefix=no
14570   need_version=no
14571   soname_spec='${libname}${release}${shared_ext}$major'
14572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14575   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14576   ;;
14577
14578 rdos*)
14579   dynamic_linker=no
14580   ;;
14581
14582 solaris*)
14583   version_type=linux
14584   need_lib_prefix=no
14585   need_version=no
14586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587   soname_spec='${libname}${release}${shared_ext}$major'
14588   shlibpath_var=LD_LIBRARY_PATH
14589   shlibpath_overrides_runpath=yes
14590   hardcode_into_libs=yes
14591   # ldd complains unless libraries are executable
14592   postinstall_cmds='chmod +x $lib'
14593   ;;
14594
14595 sunos4*)
14596   version_type=sunos
14597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14598   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14599   shlibpath_var=LD_LIBRARY_PATH
14600   shlibpath_overrides_runpath=yes
14601   if test "$with_gnu_ld" = yes; then
14602     need_lib_prefix=no
14603   fi
14604   need_version=yes
14605   ;;
14606
14607 sysv4 | sysv4.3*)
14608   version_type=linux
14609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610   soname_spec='${libname}${release}${shared_ext}$major'
14611   shlibpath_var=LD_LIBRARY_PATH
14612   case $host_vendor in
14613     sni)
14614       shlibpath_overrides_runpath=no
14615       need_lib_prefix=no
14616       runpath_var=LD_RUN_PATH
14617       ;;
14618     siemens)
14619       need_lib_prefix=no
14620       ;;
14621     motorola)
14622       need_lib_prefix=no
14623       need_version=no
14624       shlibpath_overrides_runpath=no
14625       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14626       ;;
14627   esac
14628   ;;
14629
14630 sysv4*MP*)
14631   if test -d /usr/nec ;then
14632     version_type=linux
14633     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14634     soname_spec='$libname${shared_ext}.$major'
14635     shlibpath_var=LD_LIBRARY_PATH
14636   fi
14637   ;;
14638
14639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14640   version_type=freebsd-elf
14641   need_lib_prefix=no
14642   need_version=no
14643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14644   soname_spec='${libname}${release}${shared_ext}$major'
14645   shlibpath_var=LD_LIBRARY_PATH
14646   shlibpath_overrides_runpath=yes
14647   hardcode_into_libs=yes
14648   if test "$with_gnu_ld" = yes; then
14649     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14650   else
14651     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14652     case $host_os in
14653       sco3.2v5*)
14654         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14655         ;;
14656     esac
14657   fi
14658   sys_lib_dlsearch_path_spec='/usr/lib'
14659   ;;
14660
14661 tpf*)
14662   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14663   version_type=linux
14664   need_lib_prefix=no
14665   need_version=no
14666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667   shlibpath_var=LD_LIBRARY_PATH
14668   shlibpath_overrides_runpath=no
14669   hardcode_into_libs=yes
14670   ;;
14671
14672 uts4*)
14673   version_type=linux
14674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675   soname_spec='${libname}${release}${shared_ext}$major'
14676   shlibpath_var=LD_LIBRARY_PATH
14677   ;;
14678
14679 *)
14680   dynamic_linker=no
14681   ;;
14682 esac
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14684 $as_echo "$dynamic_linker" >&6; }
14685 test "$dynamic_linker" = no && can_build_shared=no
14686
14687 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14688 if test "$GCC" = yes; then
14689   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14690 fi
14691
14692 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14693   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14694 fi
14695 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14696   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14697 fi
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
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14791 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14792 hardcode_action=
14793 if test -n "$hardcode_libdir_flag_spec" ||
14794    test -n "$runpath_var" ||
14795    test "X$hardcode_automatic" = "Xyes" ; then
14796
14797   # We can hardcode non-existent directories.
14798   if test "$hardcode_direct" != no &&
14799      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14800      # have to relink, otherwise we might link with an installed library
14801      # when we should be linking with a yet-to-be-installed one
14802      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14803      test "$hardcode_minus_L" != no; then
14804     # Linking always hardcodes the temporary library directory.
14805     hardcode_action=relink
14806   else
14807     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14808     hardcode_action=immediate
14809   fi
14810 else
14811   # We cannot hardcode anything, or else we can only hardcode existing
14812   # directories.
14813   hardcode_action=unsupported
14814 fi
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14816 $as_echo "$hardcode_action" >&6; }
14817
14818 if test "$hardcode_action" = relink ||
14819    test "$inherit_rpath" = yes; then
14820   # Fast installation is not supported
14821   enable_fast_install=no
14822 elif test "$shlibpath_overrides_runpath" = yes ||
14823      test "$enable_shared" = no; then
14824   # Fast installation is not necessary
14825   enable_fast_install=needless
14826 fi
14827
14828
14829
14830
14831
14832
14833   if test "x$enable_dlopen" != xyes; then
14834   enable_dlopen=unknown
14835   enable_dlopen_self=unknown
14836   enable_dlopen_self_static=unknown
14837 else
14838   lt_cv_dlopen=no
14839   lt_cv_dlopen_libs=
14840
14841   case $host_os in
14842   beos*)
14843     lt_cv_dlopen="load_add_on"
14844     lt_cv_dlopen_libs=
14845     lt_cv_dlopen_self=yes
14846     ;;
14847
14848   mingw* | pw32* | cegcc*)
14849     lt_cv_dlopen="LoadLibrary"
14850     lt_cv_dlopen_libs=
14851     ;;
14852
14853   cygwin*)
14854     lt_cv_dlopen="dlopen"
14855     lt_cv_dlopen_libs=
14856     ;;
14857
14858   darwin*)
14859   # if libdl is installed we need to link against it
14860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14862 if ${ac_cv_lib_dl_dlopen+:} false; then :
14863   $as_echo_n "(cached) " >&6
14864 else
14865   ac_check_lib_save_LIBS=$LIBS
14866 LIBS="-ldl  $LIBS"
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h.  */
14869
14870 /* Override any GCC internal prototype to avoid an error.
14871    Use char because int might match the return type of a GCC
14872    builtin and then its argument prototype would still apply.  */
14873 #ifdef __cplusplus
14874 extern "C"
14875 #endif
14876 char dlopen ();
14877 int
14878 main ()
14879 {
14880 return dlopen ();
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 if ac_fn_c_try_link "$LINENO"; then :
14886   ac_cv_lib_dl_dlopen=yes
14887 else
14888   ac_cv_lib_dl_dlopen=no
14889 fi
14890 rm -f core conftest.err conftest.$ac_objext \
14891     conftest$ac_exeext conftest.$ac_ext
14892 LIBS=$ac_check_lib_save_LIBS
14893 fi
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14897   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14898 else
14899
14900     lt_cv_dlopen="dyld"
14901     lt_cv_dlopen_libs=
14902     lt_cv_dlopen_self=yes
14903
14904 fi
14905
14906     ;;
14907
14908   *)
14909     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14910 if test "x$ac_cv_func_shl_load" = xyes; then :
14911   lt_cv_dlopen="shl_load"
14912 else
14913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14914 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14915 if ${ac_cv_lib_dld_shl_load+:} false; then :
14916   $as_echo_n "(cached) " >&6
14917 else
14918   ac_check_lib_save_LIBS=$LIBS
14919 LIBS="-ldld  $LIBS"
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h.  */
14922
14923 /* Override any GCC internal prototype to avoid an error.
14924    Use char because int might match the return type of a GCC
14925    builtin and then its argument prototype would still apply.  */
14926 #ifdef __cplusplus
14927 extern "C"
14928 #endif
14929 char shl_load ();
14930 int
14931 main ()
14932 {
14933 return shl_load ();
14934   ;
14935   return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_link "$LINENO"; then :
14939   ac_cv_lib_dld_shl_load=yes
14940 else
14941   ac_cv_lib_dld_shl_load=no
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext \
14944     conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14948 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14949 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14950   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14951 else
14952   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14953 if test "x$ac_cv_func_dlopen" = xyes; then :
14954   lt_cv_dlopen="dlopen"
14955 else
14956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14958 if ${ac_cv_lib_dl_dlopen+:} false; then :
14959   $as_echo_n "(cached) " >&6
14960 else
14961   ac_check_lib_save_LIBS=$LIBS
14962 LIBS="-ldl  $LIBS"
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h.  */
14965
14966 /* Override any GCC internal prototype to avoid an error.
14967    Use char because int might match the return type of a GCC
14968    builtin and then its argument prototype would still apply.  */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 char dlopen ();
14973 int
14974 main ()
14975 {
14976 return dlopen ();
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 if ac_fn_c_try_link "$LINENO"; then :
14982   ac_cv_lib_dl_dlopen=yes
14983 else
14984   ac_cv_lib_dl_dlopen=no
14985 fi
14986 rm -f core conftest.err conftest.$ac_objext \
14987     conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14992 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14993   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14994 else
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14996 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14997 if ${ac_cv_lib_svld_dlopen+:} false; then :
14998   $as_echo_n "(cached) " >&6
14999 else
15000   ac_check_lib_save_LIBS=$LIBS
15001 LIBS="-lsvld  $LIBS"
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h.  */
15004
15005 /* Override any GCC internal prototype to avoid an error.
15006    Use char because int might match the return type of a GCC
15007    builtin and then its argument prototype would still apply.  */
15008 #ifdef __cplusplus
15009 extern "C"
15010 #endif
15011 char dlopen ();
15012 int
15013 main ()
15014 {
15015 return dlopen ();
15016   ;
15017   return 0;
15018 }
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"; then :
15021   ac_cv_lib_svld_dlopen=yes
15022 else
15023   ac_cv_lib_svld_dlopen=no
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext \
15026     conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_check_lib_save_LIBS
15028 fi
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15030 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15031 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15032   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15033 else
15034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15035 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15036 if ${ac_cv_lib_dld_dld_link+:} false; then :
15037   $as_echo_n "(cached) " >&6
15038 else
15039   ac_check_lib_save_LIBS=$LIBS
15040 LIBS="-ldld  $LIBS"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h.  */
15043
15044 /* Override any GCC internal prototype to avoid an error.
15045    Use char because int might match the return type of a GCC
15046    builtin and then its argument prototype would still apply.  */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char dld_link ();
15051 int
15052 main ()
15053 {
15054 return dld_link ();
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 if ac_fn_c_try_link "$LINENO"; then :
15060   ac_cv_lib_dld_dld_link=yes
15061 else
15062   ac_cv_lib_dld_dld_link=no
15063 fi
15064 rm -f core conftest.err conftest.$ac_objext \
15065     conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15067 fi
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15069 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15070 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15071   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15072 fi
15073
15074
15075 fi
15076
15077
15078 fi
15079
15080
15081 fi
15082
15083
15084 fi
15085
15086
15087 fi
15088
15089     ;;
15090   esac
15091
15092   if test "x$lt_cv_dlopen" != xno; then
15093     enable_dlopen=yes
15094   else
15095     enable_dlopen=no
15096   fi
15097
15098   case $lt_cv_dlopen in
15099   dlopen)
15100     save_CPPFLAGS="$CPPFLAGS"
15101     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15102
15103     save_LDFLAGS="$LDFLAGS"
15104     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15105
15106     save_LIBS="$LIBS"
15107     LIBS="$lt_cv_dlopen_libs $LIBS"
15108
15109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15110 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15111 if ${lt_cv_dlopen_self+:} false; then :
15112   $as_echo_n "(cached) " >&6
15113 else
15114           if test "$cross_compiling" = yes; then :
15115   lt_cv_dlopen_self=cross
15116 else
15117   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15118   lt_status=$lt_dlunknown
15119   cat > conftest.$ac_ext <<_LT_EOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15122
15123 #if HAVE_DLFCN_H
15124 #include <dlfcn.h>
15125 #endif
15126
15127 #include <stdio.h>
15128
15129 #ifdef RTLD_GLOBAL
15130 #  define LT_DLGLOBAL           RTLD_GLOBAL
15131 #else
15132 #  ifdef DL_GLOBAL
15133 #    define LT_DLGLOBAL         DL_GLOBAL
15134 #  else
15135 #    define LT_DLGLOBAL         0
15136 #  endif
15137 #endif
15138
15139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15140    find out it does not work in some platform. */
15141 #ifndef LT_DLLAZY_OR_NOW
15142 #  ifdef RTLD_LAZY
15143 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15144 #  else
15145 #    ifdef DL_LAZY
15146 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15147 #    else
15148 #      ifdef RTLD_NOW
15149 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15150 #      else
15151 #        ifdef DL_NOW
15152 #          define LT_DLLAZY_OR_NOW      DL_NOW
15153 #        else
15154 #          define LT_DLLAZY_OR_NOW      0
15155 #        endif
15156 #      endif
15157 #    endif
15158 #  endif
15159 #endif
15160
15161 /* When -fvisbility=hidden is used, assume the code has been annotated
15162    correspondingly for the symbols needed.  */
15163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15164 int fnord () __attribute__((visibility("default")));
15165 #endif
15166
15167 int fnord () { return 42; }
15168 int main ()
15169 {
15170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15171   int status = $lt_dlunknown;
15172
15173   if (self)
15174     {
15175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15176       else
15177         {
15178           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15179           else puts (dlerror ());
15180         }
15181       /* dlclose (self); */
15182     }
15183   else
15184     puts (dlerror ());
15185
15186   return status;
15187 }
15188 _LT_EOF
15189   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15190   (eval $ac_link) 2>&5
15191   ac_status=$?
15192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15194     (./conftest; exit; ) >&5 2>/dev/null
15195     lt_status=$?
15196     case x$lt_status in
15197       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15198       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15199       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15200     esac
15201   else :
15202     # compilation failed
15203     lt_cv_dlopen_self=no
15204   fi
15205 fi
15206 rm -fr conftest*
15207
15208
15209 fi
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15211 $as_echo "$lt_cv_dlopen_self" >&6; }
15212
15213     if test "x$lt_cv_dlopen_self" = xyes; then
15214       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15215       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15216 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15217 if ${lt_cv_dlopen_self_static+:} false; then :
15218   $as_echo_n "(cached) " >&6
15219 else
15220           if test "$cross_compiling" = yes; then :
15221   lt_cv_dlopen_self_static=cross
15222 else
15223   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15224   lt_status=$lt_dlunknown
15225   cat > conftest.$ac_ext <<_LT_EOF
15226 #line $LINENO "configure"
15227 #include "confdefs.h"
15228
15229 #if HAVE_DLFCN_H
15230 #include <dlfcn.h>
15231 #endif
15232
15233 #include <stdio.h>
15234
15235 #ifdef RTLD_GLOBAL
15236 #  define LT_DLGLOBAL           RTLD_GLOBAL
15237 #else
15238 #  ifdef DL_GLOBAL
15239 #    define LT_DLGLOBAL         DL_GLOBAL
15240 #  else
15241 #    define LT_DLGLOBAL         0
15242 #  endif
15243 #endif
15244
15245 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15246    find out it does not work in some platform. */
15247 #ifndef LT_DLLAZY_OR_NOW
15248 #  ifdef RTLD_LAZY
15249 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15250 #  else
15251 #    ifdef DL_LAZY
15252 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15253 #    else
15254 #      ifdef RTLD_NOW
15255 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15256 #      else
15257 #        ifdef DL_NOW
15258 #          define LT_DLLAZY_OR_NOW      DL_NOW
15259 #        else
15260 #          define LT_DLLAZY_OR_NOW      0
15261 #        endif
15262 #      endif
15263 #    endif
15264 #  endif
15265 #endif
15266
15267 /* When -fvisbility=hidden is used, assume the code has been annotated
15268    correspondingly for the symbols needed.  */
15269 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15270 int fnord () __attribute__((visibility("default")));
15271 #endif
15272
15273 int fnord () { return 42; }
15274 int main ()
15275 {
15276   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15277   int status = $lt_dlunknown;
15278
15279   if (self)
15280     {
15281       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15282       else
15283         {
15284           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15285           else puts (dlerror ());
15286         }
15287       /* dlclose (self); */
15288     }
15289   else
15290     puts (dlerror ());
15291
15292   return status;
15293 }
15294 _LT_EOF
15295   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15296   (eval $ac_link) 2>&5
15297   ac_status=$?
15298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15300     (./conftest; exit; ) >&5 2>/dev/null
15301     lt_status=$?
15302     case x$lt_status in
15303       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15304       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15305       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15306     esac
15307   else :
15308     # compilation failed
15309     lt_cv_dlopen_self_static=no
15310   fi
15311 fi
15312 rm -fr conftest*
15313
15314
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15317 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15318     fi
15319
15320     CPPFLAGS="$save_CPPFLAGS"
15321     LDFLAGS="$save_LDFLAGS"
15322     LIBS="$save_LIBS"
15323     ;;
15324   esac
15325
15326   case $lt_cv_dlopen_self in
15327   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15328   *) enable_dlopen_self=unknown ;;
15329   esac
15330
15331   case $lt_cv_dlopen_self_static in
15332   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15333   *) enable_dlopen_self_static=unknown ;;
15334   esac
15335 fi
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353 striplib=
15354 old_striplib=
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15356 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15357 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15358   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15359   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361 $as_echo "yes" >&6; }
15362 else
15363 # FIXME - insert some real tests, host_os isn't really good enough
15364   case $host_os in
15365   darwin*)
15366     if test -n "$STRIP" ; then
15367       striplib="$STRIP -x"
15368       old_striplib="$STRIP -S"
15369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15370 $as_echo "yes" >&6; }
15371     else
15372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15374     fi
15375     ;;
15376   *)
15377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378 $as_echo "no" >&6; }
15379     ;;
15380   esac
15381 fi
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394   # Report which library types will actually be built
15395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15396 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15398 $as_echo "$can_build_shared" >&6; }
15399
15400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15401 $as_echo_n "checking whether to build shared libraries... " >&6; }
15402   test "$can_build_shared" = "no" && enable_shared=no
15403
15404   # On AIX, shared libraries and static libraries use the same namespace, and
15405   # are all built from PIC.
15406   case $host_os in
15407   aix3*)
15408     test "$enable_shared" = yes && enable_static=no
15409     if test -n "$RANLIB"; then
15410       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15411       postinstall_cmds='$RANLIB $lib'
15412     fi
15413     ;;
15414
15415   aix[4-9]*)
15416     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15417       test "$enable_shared" = yes && enable_static=no
15418     fi
15419     ;;
15420   esac
15421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15422 $as_echo "$enable_shared" >&6; }
15423
15424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15425 $as_echo_n "checking whether to build static libraries... " >&6; }
15426   # Make sure either enable_shared or enable_static is yes.
15427   test "$enable_shared" = yes || enable_static=yes
15428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15429 $as_echo "$enable_static" >&6; }
15430
15431
15432
15433
15434 fi
15435 ac_ext=c
15436 ac_cpp='$CPP $CPPFLAGS'
15437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15440
15441 CC="$lt_save_CC"
15442
15443       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15444     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15445     (test "X$CXX" != "Xg++"))) ; then
15446   ac_ext=cpp
15447 ac_cpp='$CXXCPP $CPPFLAGS'
15448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15452 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15453 if test -z "$CXXCPP"; then
15454   if ${ac_cv_prog_CXXCPP+:} false; then :
15455   $as_echo_n "(cached) " >&6
15456 else
15457       # Double quotes because CXXCPP needs to be expanded
15458     for CXXCPP in "$CXX -E" "/lib/cpp"
15459     do
15460       ac_preproc_ok=false
15461 for ac_cxx_preproc_warn_flag in '' yes
15462 do
15463   # Use a header file that comes with gcc, so configuring glibc
15464   # with a fresh cross-compiler works.
15465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15466   # <limits.h> exists even on freestanding compilers.
15467   # On the NeXT, cc -E runs the code through the compiler's parser,
15468   # not just through cpp. "Syntax error" is here to catch this case.
15469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h.  */
15471 #ifdef __STDC__
15472 # include <limits.h>
15473 #else
15474 # include <assert.h>
15475 #endif
15476                      Syntax error
15477 _ACEOF
15478 if ac_fn_cxx_try_cpp "$LINENO"; then :
15479
15480 else
15481   # Broken: fails on valid input.
15482 continue
15483 fi
15484 rm -f conftest.err conftest.i conftest.$ac_ext
15485
15486   # OK, works on sane cases.  Now check whether nonexistent headers
15487   # can be detected and how.
15488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h.  */
15490 #include <ac_nonexistent.h>
15491 _ACEOF
15492 if ac_fn_cxx_try_cpp "$LINENO"; then :
15493   # Broken: success on invalid input.
15494 continue
15495 else
15496   # Passes both tests.
15497 ac_preproc_ok=:
15498 break
15499 fi
15500 rm -f conftest.err conftest.i conftest.$ac_ext
15501
15502 done
15503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15504 rm -f conftest.i conftest.err conftest.$ac_ext
15505 if $ac_preproc_ok; then :
15506   break
15507 fi
15508
15509     done
15510     ac_cv_prog_CXXCPP=$CXXCPP
15511
15512 fi
15513   CXXCPP=$ac_cv_prog_CXXCPP
15514 else
15515   ac_cv_prog_CXXCPP=$CXXCPP
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15518 $as_echo "$CXXCPP" >&6; }
15519 ac_preproc_ok=false
15520 for ac_cxx_preproc_warn_flag in '' yes
15521 do
15522   # Use a header file that comes with gcc, so configuring glibc
15523   # with a fresh cross-compiler works.
15524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15525   # <limits.h> exists even on freestanding compilers.
15526   # On the NeXT, cc -E runs the code through the compiler's parser,
15527   # not just through cpp. "Syntax error" is here to catch this case.
15528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h.  */
15530 #ifdef __STDC__
15531 # include <limits.h>
15532 #else
15533 # include <assert.h>
15534 #endif
15535                      Syntax error
15536 _ACEOF
15537 if ac_fn_cxx_try_cpp "$LINENO"; then :
15538
15539 else
15540   # Broken: fails on valid input.
15541 continue
15542 fi
15543 rm -f conftest.err conftest.i conftest.$ac_ext
15544
15545   # OK, works on sane cases.  Now check whether nonexistent headers
15546   # can be detected and how.
15547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h.  */
15549 #include <ac_nonexistent.h>
15550 _ACEOF
15551 if ac_fn_cxx_try_cpp "$LINENO"; then :
15552   # Broken: success on invalid input.
15553 continue
15554 else
15555   # Passes both tests.
15556 ac_preproc_ok=:
15557 break
15558 fi
15559 rm -f conftest.err conftest.i conftest.$ac_ext
15560
15561 done
15562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15563 rm -f conftest.i conftest.err conftest.$ac_ext
15564 if $ac_preproc_ok; then :
15565
15566 else
15567   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15569 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15570 See \`config.log' for more details" "$LINENO" 5; }
15571 fi
15572
15573 ac_ext=c
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15578
15579 else
15580   _lt_caught_CXX_error=yes
15581 fi
15582
15583 ac_ext=cpp
15584 ac_cpp='$CXXCPP $CPPFLAGS'
15585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15588
15589 archive_cmds_need_lc_CXX=no
15590 allow_undefined_flag_CXX=
15591 always_export_symbols_CXX=no
15592 archive_expsym_cmds_CXX=
15593 compiler_needs_object_CXX=no
15594 export_dynamic_flag_spec_CXX=
15595 hardcode_direct_CXX=no
15596 hardcode_direct_absolute_CXX=no
15597 hardcode_libdir_flag_spec_CXX=
15598 hardcode_libdir_flag_spec_ld_CXX=
15599 hardcode_libdir_separator_CXX=
15600 hardcode_minus_L_CXX=no
15601 hardcode_shlibpath_var_CXX=unsupported
15602 hardcode_automatic_CXX=no
15603 inherit_rpath_CXX=no
15604 module_cmds_CXX=
15605 module_expsym_cmds_CXX=
15606 link_all_deplibs_CXX=unknown
15607 old_archive_cmds_CXX=$old_archive_cmds
15608 reload_flag_CXX=$reload_flag
15609 reload_cmds_CXX=$reload_cmds
15610 no_undefined_flag_CXX=
15611 whole_archive_flag_spec_CXX=
15612 enable_shared_with_static_runtimes_CXX=no
15613
15614 # Source file extension for C++ test sources.
15615 ac_ext=cpp
15616
15617 # Object file extension for compiled C++ test sources.
15618 objext=o
15619 objext_CXX=$objext
15620
15621 # No sense in running all these tests if we already determined that
15622 # the CXX compiler isn't working.  Some variables (like enable_shared)
15623 # are currently assumed to apply to all compilers on this platform,
15624 # and will be corrupted by setting them based on a non-working compiler.
15625 if test "$_lt_caught_CXX_error" != yes; then
15626   # Code to be used in simple compile tests
15627   lt_simple_compile_test_code="int some_variable = 0;"
15628
15629   # Code to be used in simple link tests
15630   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15631
15632   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15633
15634
15635
15636
15637
15638
15639 # If no C compiler was specified, use CC.
15640 LTCC=${LTCC-"$CC"}
15641
15642 # If no C compiler flags were specified, use CFLAGS.
15643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15644
15645 # Allow CC to be a program name with arguments.
15646 compiler=$CC
15647
15648
15649   # save warnings/boilerplate of simple test code
15650   ac_outfile=conftest.$ac_objext
15651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15653 _lt_compiler_boilerplate=`cat conftest.err`
15654 $RM conftest*
15655
15656   ac_outfile=conftest.$ac_objext
15657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15659 _lt_linker_boilerplate=`cat conftest.err`
15660 $RM -r conftest*
15661
15662
15663   # Allow CC to be a program name with arguments.
15664   lt_save_CC=$CC
15665   lt_save_CFLAGS=$CFLAGS
15666   lt_save_LD=$LD
15667   lt_save_GCC=$GCC
15668   GCC=$GXX
15669   lt_save_with_gnu_ld=$with_gnu_ld
15670   lt_save_path_LD=$lt_cv_path_LD
15671   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15672     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15673   else
15674     $as_unset lt_cv_prog_gnu_ld
15675   fi
15676   if test -n "${lt_cv_path_LDCXX+set}"; then
15677     lt_cv_path_LD=$lt_cv_path_LDCXX
15678   else
15679     $as_unset lt_cv_path_LD
15680   fi
15681   test -z "${LDCXX+set}" || LD=$LDCXX
15682   CC=${CXX-"c++"}
15683   CFLAGS=$CXXFLAGS
15684   compiler=$CC
15685   compiler_CXX=$CC
15686   for cc_temp in $compiler""; do
15687   case $cc_temp in
15688     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15689     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15690     \-*) ;;
15691     *) break;;
15692   esac
15693 done
15694 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15695
15696
15697   if test -n "$compiler"; then
15698     # We don't want -fno-exception when compiling C++ code, so set the
15699     # no_builtin_flag separately
15700     if test "$GXX" = yes; then
15701       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15702     else
15703       lt_prog_compiler_no_builtin_flag_CXX=
15704     fi
15705
15706     if test "$GXX" = yes; then
15707       # Set up default GNU C++ configuration
15708
15709
15710
15711 # Check whether --with-gnu-ld was given.
15712 if test "${with_gnu_ld+set}" = set; then :
15713   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15714 else
15715   with_gnu_ld=no
15716 fi
15717
15718 ac_prog=ld
15719 if test "$GCC" = yes; then
15720   # Check if gcc -print-prog-name=ld gives a path.
15721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15722 $as_echo_n "checking for ld used by $CC... " >&6; }
15723   case $host in
15724   *-*-mingw*)
15725     # gcc leaves a trailing carriage return which upsets mingw
15726     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15727   *)
15728     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15729   esac
15730   case $ac_prog in
15731     # Accept absolute paths.
15732     [\\/]* | ?:[\\/]*)
15733       re_direlt='/[^/][^/]*/\.\./'
15734       # Canonicalize the pathname of ld
15735       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15736       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15737         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15738       done
15739       test -z "$LD" && LD="$ac_prog"
15740       ;;
15741   "")
15742     # If it fails, then pretend we aren't using GCC.
15743     ac_prog=ld
15744     ;;
15745   *)
15746     # If it is relative, then search for the first ld in PATH.
15747     with_gnu_ld=unknown
15748     ;;
15749   esac
15750 elif test "$with_gnu_ld" = yes; then
15751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15752 $as_echo_n "checking for GNU ld... " >&6; }
15753 else
15754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15755 $as_echo_n "checking for non-GNU ld... " >&6; }
15756 fi
15757 if ${lt_cv_path_LD+:} false; then :
15758   $as_echo_n "(cached) " >&6
15759 else
15760   if test -z "$LD"; then
15761   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15762   for ac_dir in $PATH; do
15763     IFS="$lt_save_ifs"
15764     test -z "$ac_dir" && ac_dir=.
15765     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15766       lt_cv_path_LD="$ac_dir/$ac_prog"
15767       # Check to see if the program is GNU ld.  I'd rather use --version,
15768       # but apparently some variants of GNU ld only accept -v.
15769       # Break only if it was the GNU/non-GNU ld that we prefer.
15770       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15771       *GNU* | *'with BFD'*)
15772         test "$with_gnu_ld" != no && break
15773         ;;
15774       *)
15775         test "$with_gnu_ld" != yes && break
15776         ;;
15777       esac
15778     fi
15779   done
15780   IFS="$lt_save_ifs"
15781 else
15782   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15783 fi
15784 fi
15785
15786 LD="$lt_cv_path_LD"
15787 if test -n "$LD"; then
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15789 $as_echo "$LD" >&6; }
15790 else
15791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15792 $as_echo "no" >&6; }
15793 fi
15794 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15797 if ${lt_cv_prog_gnu_ld+:} false; then :
15798   $as_echo_n "(cached) " >&6
15799 else
15800   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15801 case `$LD -v 2>&1 </dev/null` in
15802 *GNU* | *'with BFD'*)
15803   lt_cv_prog_gnu_ld=yes
15804   ;;
15805 *)
15806   lt_cv_prog_gnu_ld=no
15807   ;;
15808 esac
15809 fi
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15811 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15812 with_gnu_ld=$lt_cv_prog_gnu_ld
15813
15814
15815
15816
15817
15818
15819
15820       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15821       # archiving commands below assume that GNU ld is being used.
15822       if test "$with_gnu_ld" = yes; then
15823         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824         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'
15825
15826         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15827         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15828
15829         # If archive_cmds runs LD, not CC, wlarc should be empty
15830         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15831         #     investigate it a little bit more. (MM)
15832         wlarc='${wl}'
15833
15834         # ancient GNU ld didn't support --whole-archive et. al.
15835         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15836           $GREP 'no-whole-archive' > /dev/null; then
15837           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15838         else
15839           whole_archive_flag_spec_CXX=
15840         fi
15841       else
15842         with_gnu_ld=no
15843         wlarc=
15844
15845         # A generic and very simple default shared library creation
15846         # command for GNU C++ for the case where it uses the native
15847         # linker, instead of GNU ld.  If possible, this setting should
15848         # overridden to take advantage of the native linker features on
15849         # the platform it is being used on.
15850         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15851       fi
15852
15853       # Commands to make compiler produce verbose output that lists
15854       # what "hidden" libraries, object files and flags are used when
15855       # linking a shared library.
15856       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15857
15858     else
15859       GXX=no
15860       with_gnu_ld=no
15861       wlarc=
15862     fi
15863
15864     # PORTME: fill in a description of your system's C++ link characteristics
15865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15867     ld_shlibs_CXX=yes
15868     case $host_os in
15869       aix3*)
15870         # FIXME: insert proper C++ library support
15871         ld_shlibs_CXX=no
15872         ;;
15873       aix[4-9]*)
15874         if test "$host_cpu" = ia64; then
15875           # On IA64, the linker does run time linking by default, so we don't
15876           # have to do anything special.
15877           aix_use_runtimelinking=no
15878           exp_sym_flag='-Bexport'
15879           no_entry_flag=""
15880         else
15881           aix_use_runtimelinking=no
15882
15883           # Test if we are trying to use run time linking or normal
15884           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15885           # need to do runtime linking.
15886           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15887             for ld_flag in $LDFLAGS; do
15888               case $ld_flag in
15889               *-brtl*)
15890                 aix_use_runtimelinking=yes
15891                 break
15892                 ;;
15893               esac
15894             done
15895             ;;
15896           esac
15897
15898           exp_sym_flag='-bexport'
15899           no_entry_flag='-bnoentry'
15900         fi
15901
15902         # When large executables or shared objects are built, AIX ld can
15903         # have problems creating the table of contents.  If linking a library
15904         # or program results in "error TOC overflow" add -mminimal-toc to
15905         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15906         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15907
15908         archive_cmds_CXX=''
15909         hardcode_direct_CXX=yes
15910         hardcode_direct_absolute_CXX=yes
15911         hardcode_libdir_separator_CXX=':'
15912         link_all_deplibs_CXX=yes
15913         file_list_spec_CXX='${wl}-f,'
15914
15915         if test "$GXX" = yes; then
15916           case $host_os in aix4.[012]|aix4.[012].*)
15917           # We only want to do this on AIX 4.2 and lower, the check
15918           # below for broken collect2 doesn't work under 4.3+
15919           collect2name=`${CC} -print-prog-name=collect2`
15920           if test -f "$collect2name" &&
15921              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15922           then
15923             # We have reworked collect2
15924             :
15925           else
15926             # We have old collect2
15927             hardcode_direct_CXX=unsupported
15928             # It fails to find uninstalled libraries when the uninstalled
15929             # path is not listed in the libpath.  Setting hardcode_minus_L
15930             # to unsupported forces relinking
15931             hardcode_minus_L_CXX=yes
15932             hardcode_libdir_flag_spec_CXX='-L$libdir'
15933             hardcode_libdir_separator_CXX=
15934           fi
15935           esac
15936           shared_flag='-shared'
15937           if test "$aix_use_runtimelinking" = yes; then
15938             shared_flag="$shared_flag "'${wl}-G'
15939           fi
15940         else
15941           # not using gcc
15942           if test "$host_cpu" = ia64; then
15943           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15944           # chokes on -Wl,-G. The following line is correct:
15945           shared_flag='-G'
15946           else
15947             if test "$aix_use_runtimelinking" = yes; then
15948               shared_flag='${wl}-G'
15949             else
15950               shared_flag='${wl}-bM:SRE'
15951             fi
15952           fi
15953         fi
15954
15955         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15956         # It seems that -bexpall does not export symbols beginning with
15957         # underscore (_), so it is better to generate a list of symbols to
15958         # export.
15959         always_export_symbols_CXX=yes
15960         if test "$aix_use_runtimelinking" = yes; then
15961           # Warning - without using the other runtime loading flags (-brtl),
15962           # -berok will link without error, but may produce a broken library.
15963           allow_undefined_flag_CXX='-berok'
15964           # Determine the default libpath from the value encoded in an empty
15965           # executable.
15966           if test "${lt_cv_aix_libpath+set}" = set; then
15967   aix_libpath=$lt_cv_aix_libpath
15968 else
15969   if ${lt_cv_aix_libpath__CXX+:} false; then :
15970   $as_echo_n "(cached) " >&6
15971 else
15972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h.  */
15974
15975 int
15976 main ()
15977 {
15978
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 if 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
15997 fi
15998 rm -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
16004 fi
16005
16006   aix_libpath=$lt_cv_aix_libpath__CXX
16007 fi
16008
16009           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16010
16011           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"
16012         else
16013           if test "$host_cpu" = ia64; then
16014             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16015             allow_undefined_flag_CXX="-z nodefs"
16016             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"
16017           else
16018             # Determine the default libpath from the value encoded in an
16019             # empty executable.
16020             if test "${lt_cv_aix_libpath+set}" = set; then
16021   aix_libpath=$lt_cv_aix_libpath
16022 else
16023   if ${lt_cv_aix_libpath__CXX+:} false; then :
16024   $as_echo_n "(cached) " >&6
16025 else
16026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h.  */
16028
16029 int
16030 main ()
16031 {
16032
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 if ac_fn_cxx_try_link "$LINENO"; then :
16038
16039   lt_aix_libpath_sed='
16040       /Import File Strings/,/^$/ {
16041           /^0/ {
16042               s/^0  *\([^ ]*\) *$/\1/
16043               p
16044           }
16045       }'
16046   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047   # Check for a 64-bit object if we didn't find anything.
16048   if test -z "$lt_cv_aix_libpath__CXX"; then
16049     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16050   fi
16051 fi
16052 rm -f core conftest.err conftest.$ac_objext \
16053     conftest$ac_exeext conftest.$ac_ext
16054   if test -z "$lt_cv_aix_libpath__CXX"; then
16055     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16056   fi
16057
16058 fi
16059
16060   aix_libpath=$lt_cv_aix_libpath__CXX
16061 fi
16062
16063             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16064             # Warning - without using the other run time loading flags,
16065             # -berok will link without error, but may produce a broken library.
16066             no_undefined_flag_CXX=' ${wl}-bernotok'
16067             allow_undefined_flag_CXX=' ${wl}-berok'
16068             if test "$with_gnu_ld" = yes; then
16069               # We only use this code for GNU lds that support --whole-archive.
16070               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16071             else
16072               # Exported symbols can be pulled into shared objects from archives
16073               whole_archive_flag_spec_CXX='$convenience'
16074             fi
16075             archive_cmds_need_lc_CXX=yes
16076             # This is similar to how AIX traditionally builds its shared
16077             # libraries.
16078             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'
16079           fi
16080         fi
16081         ;;
16082
16083       beos*)
16084         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16085           allow_undefined_flag_CXX=unsupported
16086           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16087           # support --undefined.  This deserves some investigation.  FIXME
16088           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089         else
16090           ld_shlibs_CXX=no
16091         fi
16092         ;;
16093
16094       chorus*)
16095         case $cc_basename in
16096           *)
16097           # FIXME: insert proper C++ library support
16098           ld_shlibs_CXX=no
16099           ;;
16100         esac
16101         ;;
16102
16103       cygwin* | mingw* | pw32* | cegcc*)
16104         case $GXX,$cc_basename in
16105         ,cl* | no,cl*)
16106           # Native MSVC
16107           # hardcode_libdir_flag_spec is actually meaningless, as there is
16108           # no search path for DLLs.
16109           hardcode_libdir_flag_spec_CXX=' '
16110           allow_undefined_flag_CXX=unsupported
16111           always_export_symbols_CXX=yes
16112           file_list_spec_CXX='@'
16113           # Tell ltmain to make .lib files, not .a files.
16114           libext=lib
16115           # Tell ltmain to make .dll files, not .so files.
16116           shrext_cmds=".dll"
16117           # FIXME: Setting linknames here is a bad hack.
16118           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16119           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16120               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16121             else
16122               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16123             fi~
16124             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16125             linknames='
16126           # The linker will not automatically build a static lib if we build a DLL.
16127           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16128           enable_shared_with_static_runtimes_CXX=yes
16129           # Don't use ranlib
16130           old_postinstall_cmds_CXX='chmod 644 $oldlib'
16131           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16132             lt_tool_outputfile="@TOOL_OUTPUT@"~
16133             case $lt_outputfile in
16134               *.exe|*.EXE) ;;
16135               *)
16136                 lt_outputfile="$lt_outputfile.exe"
16137                 lt_tool_outputfile="$lt_tool_outputfile.exe"
16138                 ;;
16139             esac~
16140             func_to_tool_file "$lt_outputfile"~
16141             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16142               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16143               $RM "$lt_outputfile.manifest";
16144             fi'
16145           ;;
16146         *)
16147           # g++
16148           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16149           # as there is no search path for DLLs.
16150           hardcode_libdir_flag_spec_CXX='-L$libdir'
16151           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16152           allow_undefined_flag_CXX=unsupported
16153           always_export_symbols_CXX=no
16154           enable_shared_with_static_runtimes_CXX=yes
16155
16156           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16157             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'
16158             # If the export-symbols file already is a .def file (1st line
16159             # is EXPORTS), use it as is; otherwise, prepend...
16160             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16161               cp $export_symbols $output_objdir/$soname.def;
16162             else
16163               echo EXPORTS > $output_objdir/$soname.def;
16164               cat $export_symbols >> $output_objdir/$soname.def;
16165             fi~
16166             $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'
16167           else
16168             ld_shlibs_CXX=no
16169           fi
16170           ;;
16171         esac
16172         ;;
16173       darwin* | rhapsody*)
16174
16175
16176   archive_cmds_need_lc_CXX=no
16177   hardcode_direct_CXX=no
16178   hardcode_automatic_CXX=yes
16179   hardcode_shlibpath_var_CXX=unsupported
16180   if test "$lt_cv_ld_force_load" = "yes"; then
16181     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\"`'
16182   else
16183     whole_archive_flag_spec_CXX=''
16184   fi
16185   link_all_deplibs_CXX=yes
16186   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16187   case $cc_basename in
16188      ifort*) _lt_dar_can_shared=yes ;;
16189      *) _lt_dar_can_shared=$GCC ;;
16190   esac
16191   if test "$_lt_dar_can_shared" = "yes"; then
16192     output_verbose_link_cmd=func_echo_all
16193     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}"
16194     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16195     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}"
16196     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}"
16197        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16198       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}"
16199       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}"
16200     fi
16201
16202   else
16203   ld_shlibs_CXX=no
16204   fi
16205
16206         ;;
16207
16208       dgux*)
16209         case $cc_basename in
16210           ec++*)
16211             # FIXME: insert proper C++ library support
16212             ld_shlibs_CXX=no
16213             ;;
16214           ghcx*)
16215             # Green Hills C++ Compiler
16216             # FIXME: insert proper C++ library support
16217             ld_shlibs_CXX=no
16218             ;;
16219           *)
16220             # FIXME: insert proper C++ library support
16221             ld_shlibs_CXX=no
16222             ;;
16223         esac
16224         ;;
16225
16226       freebsd[12]*)
16227         # C++ shared libraries reported to be fairly broken before
16228         # switch to ELF
16229         ld_shlibs_CXX=no
16230         ;;
16231
16232       freebsd-elf*)
16233         archive_cmds_need_lc_CXX=no
16234         ;;
16235
16236       freebsd* | dragonfly*)
16237         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16238         # conventions
16239         ld_shlibs_CXX=yes
16240         ;;
16241
16242       gnu*)
16243         ;;
16244
16245       haiku*)
16246         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16247         link_all_deplibs_CXX=yes
16248         ;;
16249
16250       hpux9*)
16251         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16252         hardcode_libdir_separator_CXX=:
16253         export_dynamic_flag_spec_CXX='${wl}-E'
16254         hardcode_direct_CXX=yes
16255         hardcode_minus_L_CXX=yes # Not in the search PATH,
16256                                              # but as the default
16257                                              # location of the library.
16258
16259         case $cc_basename in
16260           CC*)
16261             # FIXME: insert proper C++ library support
16262             ld_shlibs_CXX=no
16263             ;;
16264           aCC*)
16265             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'
16266             # Commands to make compiler produce verbose output that lists
16267             # what "hidden" libraries, object files and flags are used when
16268             # linking a shared library.
16269             #
16270             # There doesn't appear to be a way to prevent this compiler from
16271             # explicitly linking system object files so we need to strip them
16272             # from the output so that they don't get included in the library
16273             # dependencies.
16274             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"'
16275             ;;
16276           *)
16277             if test "$GXX" = yes; then
16278               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'
16279             else
16280               # FIXME: insert proper C++ library support
16281               ld_shlibs_CXX=no
16282             fi
16283             ;;
16284         esac
16285         ;;
16286
16287       hpux10*|hpux11*)
16288         if test $with_gnu_ld = no; then
16289           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16290           hardcode_libdir_separator_CXX=:
16291
16292           case $host_cpu in
16293             hppa*64*|ia64*)
16294               ;;
16295             *)
16296               export_dynamic_flag_spec_CXX='${wl}-E'
16297               ;;
16298           esac
16299         fi
16300         case $host_cpu in
16301           hppa*64*|ia64*)
16302             hardcode_direct_CXX=no
16303             hardcode_shlibpath_var_CXX=no
16304             ;;
16305           *)
16306             hardcode_direct_CXX=yes
16307             hardcode_direct_absolute_CXX=yes
16308             hardcode_minus_L_CXX=yes # Not in the search PATH,
16309                                                  # but as the default
16310                                                  # location of the library.
16311             ;;
16312         esac
16313
16314         case $cc_basename in
16315           CC*)
16316             # FIXME: insert proper C++ library support
16317             ld_shlibs_CXX=no
16318             ;;
16319           aCC*)
16320             case $host_cpu in
16321               hppa*64*)
16322                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16323                 ;;
16324               ia64*)
16325                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16326                 ;;
16327               *)
16328                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16329                 ;;
16330             esac
16331             # Commands to make compiler produce verbose output that lists
16332             # what "hidden" libraries, object files and flags are used when
16333             # linking a shared library.
16334             #
16335             # There doesn't appear to be a way to prevent this compiler from
16336             # explicitly linking system object files so we need to strip them
16337             # from the output so that they don't get included in the library
16338             # dependencies.
16339             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"'
16340             ;;
16341           *)
16342             if test "$GXX" = yes; then
16343               if test $with_gnu_ld = no; then
16344                 case $host_cpu in
16345                   hppa*64*)
16346                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16347                     ;;
16348                   ia64*)
16349                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16350                     ;;
16351                   *)
16352                     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'
16353                     ;;
16354                 esac
16355               fi
16356             else
16357               # FIXME: insert proper C++ library support
16358               ld_shlibs_CXX=no
16359             fi
16360             ;;
16361         esac
16362         ;;
16363
16364       interix[3-9]*)
16365         hardcode_direct_CXX=no
16366         hardcode_shlibpath_var_CXX=no
16367         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16368         export_dynamic_flag_spec_CXX='${wl}-E'
16369         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16370         # Instead, shared libraries are loaded at an image base (0x10000000 by
16371         # default) and relocated if they conflict, which is a slow very memory
16372         # consuming and fragmenting process.  To avoid this, we pick a random,
16373         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16374         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16375         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'
16376         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'
16377         ;;
16378       irix5* | irix6*)
16379         case $cc_basename in
16380           CC*)
16381             # SGI C++
16382             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'
16383
16384             # Archives containing C++ object files must be created using
16385             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16386             # necessary to make sure instantiated templates are included
16387             # in the archive.
16388             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16389             ;;
16390           *)
16391             if test "$GXX" = yes; then
16392               if test "$with_gnu_ld" = no; then
16393                 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'
16394               else
16395                 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'
16396               fi
16397             fi
16398             link_all_deplibs_CXX=yes
16399             ;;
16400         esac
16401         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16402         hardcode_libdir_separator_CXX=:
16403         inherit_rpath_CXX=yes
16404         ;;
16405
16406       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16407         case $cc_basename in
16408           KCC*)
16409             # Kuck and Associates, Inc. (KAI) C++ Compiler
16410
16411             # KCC will only create a shared library if the output file
16412             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16413             # to its proper name (with version) after linking.
16414             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'
16415             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'
16416             # Commands to make compiler produce verbose output that lists
16417             # what "hidden" libraries, object files and flags are used when
16418             # linking a shared library.
16419             #
16420             # There doesn't appear to be a way to prevent this compiler from
16421             # explicitly linking system object files so we need to strip them
16422             # from the output so that they don't get included in the library
16423             # dependencies.
16424             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"'
16425
16426             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16427             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16428
16429             # Archives containing C++ object files must be created using
16430             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16431             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16432             ;;
16433           icpc* | ecpc* )
16434             # Intel C++
16435             with_gnu_ld=yes
16436             # version 8.0 and above of icpc choke on multiply defined symbols
16437             # if we add $predep_objects and $postdep_objects, however 7.1 and
16438             # earlier do not add the objects themselves.
16439             case `$CC -V 2>&1` in
16440               *"Version 7."*)
16441                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442                 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'
16443                 ;;
16444               *)  # Version 8.0 or newer
16445                 tmp_idyn=
16446                 case $host_cpu in
16447                   ia64*) tmp_idyn=' -i_dynamic';;
16448                 esac
16449                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16450                 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'
16451                 ;;
16452             esac
16453             archive_cmds_need_lc_CXX=no
16454             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16455             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16456             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16457             ;;
16458           pgCC* | pgcpp*)
16459             # Portland Group C++ compiler
16460             case `$CC -V` in
16461             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16462               prelink_cmds_CXX='tpldir=Template.dir~
16463                 rm -rf $tpldir~
16464                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16465                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16466               old_archive_cmds_CXX='tpldir=Template.dir~
16467                 rm -rf $tpldir~
16468                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16469                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16470                 $RANLIB $oldlib'
16471               archive_cmds_CXX='tpldir=Template.dir~
16472                 rm -rf $tpldir~
16473                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16474                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16475               archive_expsym_cmds_CXX='tpldir=Template.dir~
16476                 rm -rf $tpldir~
16477                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16478                 $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'
16479               ;;
16480             *) # Version 6 and above use weak symbols
16481               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16482               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'
16483               ;;
16484             esac
16485
16486             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16487             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16488             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'
16489             ;;
16490           cxx*)
16491             # Compaq C++
16492             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16493             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'
16494
16495             runpath_var=LD_RUN_PATH
16496             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16497             hardcode_libdir_separator_CXX=:
16498
16499             # Commands to make compiler produce verbose output that lists
16500             # what "hidden" libraries, object files and flags are used when
16501             # linking a shared library.
16502             #
16503             # There doesn't appear to be a way to prevent this compiler from
16504             # explicitly linking system object files so we need to strip them
16505             # from the output so that they don't get included in the library
16506             # dependencies.
16507             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'
16508             ;;
16509           xl* | mpixl* | bgxl*)
16510             # IBM XL 8.0 on PPC, with GNU ld
16511             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16512             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16513             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16514             if test "x$supports_anon_versioning" = xyes; then
16515               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16516                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16517                 echo "local: *; };" >> $output_objdir/$libname.ver~
16518                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16519             fi
16520             ;;
16521           *)
16522             case `$CC -V 2>&1 | sed 5q` in
16523             *Sun\ C*)
16524               # Sun C++ 5.9
16525               no_undefined_flag_CXX=' -zdefs'
16526               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16527               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'
16528               hardcode_libdir_flag_spec_CXX='-R$libdir'
16529               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'
16530               compiler_needs_object_CXX=yes
16531
16532               # Not sure whether something based on
16533               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16534               # would be better.
16535               output_verbose_link_cmd='func_echo_all'
16536
16537               # Archives containing C++ object files must be created using
16538               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16539               # necessary to make sure instantiated templates are included
16540               # in the archive.
16541               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16542               ;;
16543             esac
16544             ;;
16545         esac
16546         ;;
16547
16548       lynxos*)
16549         # FIXME: insert proper C++ library support
16550         ld_shlibs_CXX=no
16551         ;;
16552
16553       m88k*)
16554         # FIXME: insert proper C++ library support
16555         ld_shlibs_CXX=no
16556         ;;
16557
16558       mvs*)
16559         case $cc_basename in
16560           cxx*)
16561             # FIXME: insert proper C++ library support
16562             ld_shlibs_CXX=no
16563             ;;
16564           *)
16565             # FIXME: insert proper C++ library support
16566             ld_shlibs_CXX=no
16567             ;;
16568         esac
16569         ;;
16570
16571       netbsd*)
16572         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16573           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16574           wlarc=
16575           hardcode_libdir_flag_spec_CXX='-R$libdir'
16576           hardcode_direct_CXX=yes
16577           hardcode_shlibpath_var_CXX=no
16578         fi
16579         # Workaround some broken pre-1.5 toolchains
16580         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16581         ;;
16582
16583       *nto* | *qnx*)
16584         ld_shlibs_CXX=yes
16585         ;;
16586
16587       openbsd2*)
16588         # C++ shared libraries are fairly broken
16589         ld_shlibs_CXX=no
16590         ;;
16591
16592       openbsd*)
16593         if test -f /usr/libexec/ld.so; then
16594           hardcode_direct_CXX=yes
16595           hardcode_shlibpath_var_CXX=no
16596           hardcode_direct_absolute_CXX=yes
16597           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16598           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16599           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16600             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16601             export_dynamic_flag_spec_CXX='${wl}-E'
16602             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16603           fi
16604           output_verbose_link_cmd=func_echo_all
16605         else
16606           ld_shlibs_CXX=no
16607         fi
16608         ;;
16609
16610       osf3* | osf4* | osf5*)
16611         case $cc_basename in
16612           KCC*)
16613             # Kuck and Associates, Inc. (KAI) C++ Compiler
16614
16615             # KCC will only create a shared library if the output file
16616             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16617             # to its proper name (with version) after linking.
16618             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'
16619
16620             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16621             hardcode_libdir_separator_CXX=:
16622
16623             # Archives containing C++ object files must be created using
16624             # the KAI C++ compiler.
16625             case $host in
16626               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16627               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16628             esac
16629             ;;
16630           RCC*)
16631             # Rational C++ 2.4.1
16632             # FIXME: insert proper C++ library support
16633             ld_shlibs_CXX=no
16634             ;;
16635           cxx*)
16636             case $host in
16637               osf3*)
16638                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16639                 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'
16640                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16641                 ;;
16642               *)
16643                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16644                 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'
16645                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16646                   echo "-hidden">> $lib.exp~
16647                   $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~
16648                   $RM $lib.exp'
16649                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16650                 ;;
16651             esac
16652
16653             hardcode_libdir_separator_CXX=:
16654
16655             # Commands to make compiler produce verbose output that lists
16656             # what "hidden" libraries, object files and flags are used when
16657             # linking a shared library.
16658             #
16659             # There doesn't appear to be a way to prevent this compiler from
16660             # explicitly linking system object files so we need to strip them
16661             # from the output so that they don't get included in the library
16662             # dependencies.
16663             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"'
16664             ;;
16665           *)
16666             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16667               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16668               case $host in
16669                 osf3*)
16670                   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'
16671                   ;;
16672                 *)
16673                   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'
16674                   ;;
16675               esac
16676
16677               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16678               hardcode_libdir_separator_CXX=:
16679
16680               # Commands to make compiler produce verbose output that lists
16681               # what "hidden" libraries, object files and flags are used when
16682               # linking a shared library.
16683               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16684
16685             else
16686               # FIXME: insert proper C++ library support
16687               ld_shlibs_CXX=no
16688             fi
16689             ;;
16690         esac
16691         ;;
16692
16693       psos*)
16694         # FIXME: insert proper C++ library support
16695         ld_shlibs_CXX=no
16696         ;;
16697
16698       sunos4*)
16699         case $cc_basename in
16700           CC*)
16701             # Sun C++ 4.x
16702             # FIXME: insert proper C++ library support
16703             ld_shlibs_CXX=no
16704             ;;
16705           lcc*)
16706             # Lucid
16707             # FIXME: insert proper C++ library support
16708             ld_shlibs_CXX=no
16709             ;;
16710           *)
16711             # FIXME: insert proper C++ library support
16712             ld_shlibs_CXX=no
16713             ;;
16714         esac
16715         ;;
16716
16717       solaris*)
16718         case $cc_basename in
16719           CC* | sunCC*)
16720             # Sun C++ 4.2, 5.x and Centerline C++
16721             archive_cmds_need_lc_CXX=yes
16722             no_undefined_flag_CXX=' -zdefs'
16723             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16724             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16725               $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'
16726
16727             hardcode_libdir_flag_spec_CXX='-R$libdir'
16728             hardcode_shlibpath_var_CXX=no
16729             case $host_os in
16730               solaris2.[0-5] | solaris2.[0-5].*) ;;
16731               *)
16732                 # The compiler driver will combine and reorder linker options,
16733                 # but understands `-z linker_flag'.
16734                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16735                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16736                 ;;
16737             esac
16738             link_all_deplibs_CXX=yes
16739
16740             output_verbose_link_cmd='func_echo_all'
16741
16742             # Archives containing C++ object files must be created using
16743             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16744             # necessary to make sure instantiated templates are included
16745             # in the archive.
16746             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16747             ;;
16748           gcx*)
16749             # Green Hills C++ Compiler
16750             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16751
16752             # The C++ compiler must be used to create the archive.
16753             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16754             ;;
16755           *)
16756             # GNU C++ compiler with Solaris linker
16757             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16758               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16759               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16760                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16761                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16762                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16763
16764                 # Commands to make compiler produce verbose output that lists
16765                 # what "hidden" libraries, object files and flags are used when
16766                 # linking a shared library.
16767                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16768               else
16769                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16770                 # platform.
16771                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16772                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16773                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16774
16775                 # Commands to make compiler produce verbose output that lists
16776                 # what "hidden" libraries, object files and flags are used when
16777                 # linking a shared library.
16778                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16779               fi
16780
16781               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16782               case $host_os in
16783                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16784                 *)
16785                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16786                   ;;
16787               esac
16788             fi
16789             ;;
16790         esac
16791         ;;
16792
16793     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16794       no_undefined_flag_CXX='${wl}-z,text'
16795       archive_cmds_need_lc_CXX=no
16796       hardcode_shlibpath_var_CXX=no
16797       runpath_var='LD_RUN_PATH'
16798
16799       case $cc_basename in
16800         CC*)
16801           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16802           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16803           ;;
16804         *)
16805           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16806           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16807           ;;
16808       esac
16809       ;;
16810
16811       sysv5* | sco3.2v5* | sco5v6*)
16812         # Note: We can NOT use -z defs as we might desire, because we do not
16813         # link with -lc, and that would cause any symbols used from libc to
16814         # always be unresolved, which means just about no library would
16815         # ever link correctly.  If we're not using GNU ld we use -z text
16816         # though, which does catch some bad symbols but isn't as heavy-handed
16817         # as -z defs.
16818         no_undefined_flag_CXX='${wl}-z,text'
16819         allow_undefined_flag_CXX='${wl}-z,nodefs'
16820         archive_cmds_need_lc_CXX=no
16821         hardcode_shlibpath_var_CXX=no
16822         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16823         hardcode_libdir_separator_CXX=':'
16824         link_all_deplibs_CXX=yes
16825         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16826         runpath_var='LD_RUN_PATH'
16827
16828         case $cc_basename in
16829           CC*)
16830             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16831             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16832             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16833               '"$old_archive_cmds_CXX"
16834             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16835               '"$reload_cmds_CXX"
16836             ;;
16837           *)
16838             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16839             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16840             ;;
16841         esac
16842       ;;
16843
16844       tandem*)
16845         case $cc_basename in
16846           NCC*)
16847             # NonStop-UX NCC 3.20
16848             # FIXME: insert proper C++ library support
16849             ld_shlibs_CXX=no
16850             ;;
16851           *)
16852             # FIXME: insert proper C++ library support
16853             ld_shlibs_CXX=no
16854             ;;
16855         esac
16856         ;;
16857
16858       vxworks*)
16859         # FIXME: insert proper C++ library support
16860         ld_shlibs_CXX=no
16861         ;;
16862
16863       *)
16864         # FIXME: insert proper C++ library support
16865         ld_shlibs_CXX=no
16866         ;;
16867     esac
16868
16869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16870 $as_echo "$ld_shlibs_CXX" >&6; }
16871     test "$ld_shlibs_CXX" = no && can_build_shared=no
16872
16873     GCC_CXX="$GXX"
16874     LD_CXX="$LD"
16875
16876     ## CAVEAT EMPTOR:
16877     ## There is no encapsulation within the following macros, do not change
16878     ## the running order or otherwise move them around unless you know exactly
16879     ## what you are doing...
16880     # Dependencies to place before and after the object being linked:
16881 predep_objects_CXX=
16882 postdep_objects_CXX=
16883 predeps_CXX=
16884 postdeps_CXX=
16885 compiler_lib_search_path_CXX=
16886
16887 cat > conftest.$ac_ext <<_LT_EOF
16888 class Foo
16889 {
16890 public:
16891   Foo (void) { a = 0; }
16892 private:
16893   int a;
16894 };
16895 _LT_EOF
16896
16897
16898 _lt_libdeps_save_CFLAGS=$CFLAGS
16899 case "$CC $CFLAGS " in #(
16900 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16901 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16902 esac
16903
16904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16905   (eval $ac_compile) 2>&5
16906   ac_status=$?
16907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908   test $ac_status = 0; }; then
16909   # Parse the compiler output and extract the necessary
16910   # objects, libraries and library flags.
16911
16912   # Sentinel used to keep track of whether or not we are before
16913   # the conftest object file.
16914   pre_test_object_deps_done=no
16915
16916   for p in `eval "$output_verbose_link_cmd"`; do
16917     case ${prev}${p} in
16918
16919     -L* | -R* | -l*)
16920        # Some compilers place space between "-{L,R}" and the path.
16921        # Remove the space.
16922        if test $p = "-L" ||
16923           test $p = "-R"; then
16924          prev=$p
16925          continue
16926        fi
16927
16928        # Expand the sysroot to ease extracting the directories later.
16929        if test -z "$prev"; then
16930          case $p in
16931          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16932          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16933          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16934          esac
16935        fi
16936        case $p in
16937        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16938        esac
16939        if test "$pre_test_object_deps_done" = no; then
16940          case ${prev} in
16941          -L | -R)
16942            # Internal compiler library paths should come after those
16943            # provided the user.  The postdeps already come after the
16944            # user supplied libs so there is no need to process them.
16945            if test -z "$compiler_lib_search_path_CXX"; then
16946              compiler_lib_search_path_CXX="${prev}${p}"
16947            else
16948              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16949            fi
16950            ;;
16951          # The "-l" case would never come before the object being
16952          # linked, so don't bother handling this case.
16953          esac
16954        else
16955          if test -z "$postdeps_CXX"; then
16956            postdeps_CXX="${prev}${p}"
16957          else
16958            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16959          fi
16960        fi
16961        prev=
16962        ;;
16963
16964     *.lto.$objext) ;; # Ignore GCC LTO objects
16965     *.$objext)
16966        # This assumes that the test object file only shows up
16967        # once in the compiler output.
16968        if test "$p" = "conftest.$objext"; then
16969          pre_test_object_deps_done=yes
16970          continue
16971        fi
16972
16973        if test "$pre_test_object_deps_done" = no; then
16974          if test -z "$predep_objects_CXX"; then
16975            predep_objects_CXX="$p"
16976          else
16977            predep_objects_CXX="$predep_objects_CXX $p"
16978          fi
16979        else
16980          if test -z "$postdep_objects_CXX"; then
16981            postdep_objects_CXX="$p"
16982          else
16983            postdep_objects_CXX="$postdep_objects_CXX $p"
16984          fi
16985        fi
16986        ;;
16987
16988     *) ;; # Ignore the rest.
16989
16990     esac
16991   done
16992
16993   # Clean up.
16994   rm -f a.out a.exe
16995 else
16996   echo "libtool.m4: error: problem compiling CXX test program"
16997 fi
16998
16999 $RM -f confest.$objext
17000 CFLAGS=$_lt_libdeps_save_CFLAGS
17001
17002 # PORTME: override above test on systems where it is broken
17003 case $host_os in
17004 interix[3-9]*)
17005   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17006   # hack all around it, let's just trust "g++" to DTRT.
17007   predep_objects_CXX=
17008   postdep_objects_CXX=
17009   postdeps_CXX=
17010   ;;
17011
17012 linux*)
17013   case `$CC -V 2>&1 | sed 5q` in
17014   *Sun\ C*)
17015     # Sun C++ 5.9
17016
17017     # The more standards-conforming stlport4 library is
17018     # incompatible with the Cstd library. Avoid specifying
17019     # it if it's in CXXFLAGS. Ignore libCrun as
17020     # -library=stlport4 depends on it.
17021     case " $CXX $CXXFLAGS " in
17022     *" -library=stlport4 "*)
17023       solaris_use_stlport4=yes
17024       ;;
17025     esac
17026
17027     if test "$solaris_use_stlport4" != yes; then
17028       postdeps_CXX='-library=Cstd -library=Crun'
17029     fi
17030     ;;
17031   esac
17032   ;;
17033
17034 solaris*)
17035   case $cc_basename in
17036   CC* | sunCC*)
17037     # The more standards-conforming stlport4 library is
17038     # incompatible with the Cstd library. Avoid specifying
17039     # it if it's in CXXFLAGS. Ignore libCrun as
17040     # -library=stlport4 depends on it.
17041     case " $CXX $CXXFLAGS " in
17042     *" -library=stlport4 "*)
17043       solaris_use_stlport4=yes
17044       ;;
17045     esac
17046
17047     # Adding this requires a known-good setup of shared libraries for
17048     # Sun compiler versions before 5.6, else PIC objects from an old
17049     # archive will be linked into the output, leading to subtle bugs.
17050     if test "$solaris_use_stlport4" != yes; then
17051       postdeps_CXX='-library=Cstd -library=Crun'
17052     fi
17053     ;;
17054   esac
17055   ;;
17056 esac
17057
17058
17059 case " $postdeps_CXX " in
17060 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17061 esac
17062  compiler_lib_search_dirs_CXX=
17063 if test -n "${compiler_lib_search_path_CXX}"; then
17064  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17065 fi
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097     lt_prog_compiler_wl_CXX=
17098 lt_prog_compiler_pic_CXX=
17099 lt_prog_compiler_static_CXX=
17100
17101
17102   # C++ specific cases for pic, static, wl, etc.
17103   if test "$GXX" = yes; then
17104     lt_prog_compiler_wl_CXX='-Wl,'
17105     lt_prog_compiler_static_CXX='-static'
17106
17107     case $host_os in
17108     aix*)
17109       # All AIX code is PIC.
17110       if test "$host_cpu" = ia64; then
17111         # AIX 5 now supports IA64 processor
17112         lt_prog_compiler_static_CXX='-Bstatic'
17113       fi
17114       ;;
17115
17116     amigaos*)
17117       case $host_cpu in
17118       powerpc)
17119             # see comment about AmigaOS4 .so support
17120             lt_prog_compiler_pic_CXX='-fPIC'
17121         ;;
17122       m68k)
17123             # FIXME: we need at least 68020 code to build shared libraries, but
17124             # adding the `-m68020' flag to GCC prevents building anything better,
17125             # like `-m68040'.
17126             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17127         ;;
17128       esac
17129       ;;
17130
17131     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17132       # PIC is the default for these OSes.
17133       ;;
17134     mingw* | cygwin* | os2* | pw32* | cegcc*)
17135       # This hack is so that the source file can tell whether it is being
17136       # built for inclusion in a dll (and should export symbols for example).
17137       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17138       # (--disable-auto-import) libraries
17139       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17140       ;;
17141     darwin* | rhapsody*)
17142       # PIC is the default on this platform
17143       # Common symbols not allowed in MH_DYLIB files
17144       lt_prog_compiler_pic_CXX='-fno-common'
17145       ;;
17146     *djgpp*)
17147       # DJGPP does not support shared libraries at all
17148       lt_prog_compiler_pic_CXX=
17149       ;;
17150     haiku*)
17151       # PIC is the default for Haiku.
17152       # The "-static" flag exists, but is broken.
17153       lt_prog_compiler_static_CXX=
17154       ;;
17155     interix[3-9]*)
17156       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17157       # Instead, we relocate shared libraries at runtime.
17158       ;;
17159     sysv4*MP*)
17160       if test -d /usr/nec; then
17161         lt_prog_compiler_pic_CXX=-Kconform_pic
17162       fi
17163       ;;
17164     hpux*)
17165       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17166       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17167       # sets the default TLS model and affects inlining.
17168       case $host_cpu in
17169       hppa*64*)
17170         ;;
17171       *)
17172         lt_prog_compiler_pic_CXX='-fPIC'
17173         ;;
17174       esac
17175       ;;
17176     *qnx* | *nto*)
17177       # QNX uses GNU C++, but need to define -shared option too, otherwise
17178       # it will coredump.
17179       lt_prog_compiler_pic_CXX='-fPIC -shared'
17180       ;;
17181     *)
17182       lt_prog_compiler_pic_CXX='-fPIC'
17183       ;;
17184     esac
17185   else
17186     case $host_os in
17187       aix[4-9]*)
17188         # All AIX code is PIC.
17189         if test "$host_cpu" = ia64; then
17190           # AIX 5 now supports IA64 processor
17191           lt_prog_compiler_static_CXX='-Bstatic'
17192         else
17193           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17194         fi
17195         ;;
17196       chorus*)
17197         case $cc_basename in
17198         cxch68*)
17199           # Green Hills C++ Compiler
17200           # _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"
17201           ;;
17202         esac
17203         ;;
17204       mingw* | cygwin* | os2* | pw32* | cegcc*)
17205         # This hack is so that the source file can tell whether it is being
17206         # built for inclusion in a dll (and should export symbols for example).
17207         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17208         ;;
17209       dgux*)
17210         case $cc_basename in
17211           ec++*)
17212             lt_prog_compiler_pic_CXX='-KPIC'
17213             ;;
17214           ghcx*)
17215             # Green Hills C++ Compiler
17216             lt_prog_compiler_pic_CXX='-pic'
17217             ;;
17218           *)
17219             ;;
17220         esac
17221         ;;
17222       freebsd* | dragonfly*)
17223         # FreeBSD uses GNU C++
17224         ;;
17225       hpux9* | hpux10* | hpux11*)
17226         case $cc_basename in
17227           CC*)
17228             lt_prog_compiler_wl_CXX='-Wl,'
17229             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17230             if test "$host_cpu" != ia64; then
17231               lt_prog_compiler_pic_CXX='+Z'
17232             fi
17233             ;;
17234           aCC*)
17235             lt_prog_compiler_wl_CXX='-Wl,'
17236             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17237             case $host_cpu in
17238             hppa*64*|ia64*)
17239               # +Z the default
17240               ;;
17241             *)
17242               lt_prog_compiler_pic_CXX='+Z'
17243               ;;
17244             esac
17245             ;;
17246           *)
17247             ;;
17248         esac
17249         ;;
17250       interix*)
17251         # This is c89, which is MS Visual C++ (no shared libs)
17252         # Anyone wants to do a port?
17253         ;;
17254       irix5* | irix6* | nonstopux*)
17255         case $cc_basename in
17256           CC*)
17257             lt_prog_compiler_wl_CXX='-Wl,'
17258             lt_prog_compiler_static_CXX='-non_shared'
17259             # CC pic flag -KPIC is the default.
17260             ;;
17261           *)
17262             ;;
17263         esac
17264         ;;
17265       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17266         case $cc_basename in
17267           KCC*)
17268             # KAI C++ Compiler
17269             lt_prog_compiler_wl_CXX='--backend -Wl,'
17270             lt_prog_compiler_pic_CXX='-fPIC'
17271             ;;
17272           ecpc* )
17273             # old Intel C++ for x86_64 which still supported -KPIC.
17274             lt_prog_compiler_wl_CXX='-Wl,'
17275             lt_prog_compiler_pic_CXX='-KPIC'
17276             lt_prog_compiler_static_CXX='-static'
17277             ;;
17278           icpc* )
17279             # Intel C++, used to be incompatible with GCC.
17280             # ICC 10 doesn't accept -KPIC any more.
17281             lt_prog_compiler_wl_CXX='-Wl,'
17282             lt_prog_compiler_pic_CXX='-fPIC'
17283             lt_prog_compiler_static_CXX='-static'
17284             ;;
17285           pgCC* | pgcpp*)
17286             # Portland Group C++ compiler
17287             lt_prog_compiler_wl_CXX='-Wl,'
17288             lt_prog_compiler_pic_CXX='-fpic'
17289             lt_prog_compiler_static_CXX='-Bstatic'
17290             ;;
17291           cxx*)
17292             # Compaq C++
17293             # Make sure the PIC flag is empty.  It appears that all Alpha
17294             # Linux and Compaq Tru64 Unix objects are PIC.
17295             lt_prog_compiler_pic_CXX=
17296             lt_prog_compiler_static_CXX='-non_shared'
17297             ;;
17298           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17299             # IBM XL 8.0, 9.0 on PPC and BlueGene
17300             lt_prog_compiler_wl_CXX='-Wl,'
17301             lt_prog_compiler_pic_CXX='-qpic'
17302             lt_prog_compiler_static_CXX='-qstaticlink'
17303             ;;
17304           *)
17305             case `$CC -V 2>&1 | sed 5q` in
17306             *Sun\ C*)
17307               # Sun C++ 5.9
17308               lt_prog_compiler_pic_CXX='-KPIC'
17309               lt_prog_compiler_static_CXX='-Bstatic'
17310               lt_prog_compiler_wl_CXX='-Qoption ld '
17311               ;;
17312             esac
17313             ;;
17314         esac
17315         ;;
17316       lynxos*)
17317         ;;
17318       m88k*)
17319         ;;
17320       mvs*)
17321         case $cc_basename in
17322           cxx*)
17323             lt_prog_compiler_pic_CXX='-W c,exportall'
17324             ;;
17325           *)
17326             ;;
17327         esac
17328         ;;
17329       netbsd*)
17330         ;;
17331       *qnx* | *nto*)
17332         # QNX uses GNU C++, but need to define -shared option too, otherwise
17333         # it will coredump.
17334         lt_prog_compiler_pic_CXX='-fPIC -shared'
17335         ;;
17336       osf3* | osf4* | osf5*)
17337         case $cc_basename in
17338           KCC*)
17339             lt_prog_compiler_wl_CXX='--backend -Wl,'
17340             ;;
17341           RCC*)
17342             # Rational C++ 2.4.1
17343             lt_prog_compiler_pic_CXX='-pic'
17344             ;;
17345           cxx*)
17346             # Digital/Compaq C++
17347             lt_prog_compiler_wl_CXX='-Wl,'
17348             # Make sure the PIC flag is empty.  It appears that all Alpha
17349             # Linux and Compaq Tru64 Unix objects are PIC.
17350             lt_prog_compiler_pic_CXX=
17351             lt_prog_compiler_static_CXX='-non_shared'
17352             ;;
17353           *)
17354             ;;
17355         esac
17356         ;;
17357       psos*)
17358         ;;
17359       solaris*)
17360         case $cc_basename in
17361           CC* | sunCC*)
17362             # Sun C++ 4.2, 5.x and Centerline C++
17363             lt_prog_compiler_pic_CXX='-KPIC'
17364             lt_prog_compiler_static_CXX='-Bstatic'
17365             lt_prog_compiler_wl_CXX='-Qoption ld '
17366             ;;
17367           gcx*)
17368             # Green Hills C++ Compiler
17369             lt_prog_compiler_pic_CXX='-PIC'
17370             ;;
17371           *)
17372             ;;
17373         esac
17374         ;;
17375       sunos4*)
17376         case $cc_basename in
17377           CC*)
17378             # Sun C++ 4.x
17379             lt_prog_compiler_pic_CXX='-pic'
17380             lt_prog_compiler_static_CXX='-Bstatic'
17381             ;;
17382           lcc*)
17383             # Lucid
17384             lt_prog_compiler_pic_CXX='-pic'
17385             ;;
17386           *)
17387             ;;
17388         esac
17389         ;;
17390       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17391         case $cc_basename in
17392           CC*)
17393             lt_prog_compiler_wl_CXX='-Wl,'
17394             lt_prog_compiler_pic_CXX='-KPIC'
17395             lt_prog_compiler_static_CXX='-Bstatic'
17396             ;;
17397         esac
17398         ;;
17399       tandem*)
17400         case $cc_basename in
17401           NCC*)
17402             # NonStop-UX NCC 3.20
17403             lt_prog_compiler_pic_CXX='-KPIC'
17404             ;;
17405           *)
17406             ;;
17407         esac
17408         ;;
17409       vxworks*)
17410         ;;
17411       *)
17412         lt_prog_compiler_can_build_shared_CXX=no
17413         ;;
17414     esac
17415   fi
17416
17417 case $host_os in
17418   # For platforms which do not support PIC, -DPIC is meaningless:
17419   *djgpp*)
17420     lt_prog_compiler_pic_CXX=
17421     ;;
17422   *)
17423     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17424     ;;
17425 esac
17426
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17428 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17429 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17430   $as_echo_n "(cached) " >&6
17431 else
17432   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17433 fi
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17435 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17436 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17437
17438 #
17439 # Check to make sure the PIC flag actually works.
17440 #
17441 if test -n "$lt_prog_compiler_pic_CXX"; then
17442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17443 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17444 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17445   $as_echo_n "(cached) " >&6
17446 else
17447   lt_cv_prog_compiler_pic_works_CXX=no
17448    ac_outfile=conftest.$ac_objext
17449    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17450    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17451    # Insert the option either (1) after the last *FLAGS variable, or
17452    # (2) before a word containing "conftest.", or (3) at the end.
17453    # Note that $ac_compile itself does not contain backslashes and begins
17454    # with a dollar sign (not a hyphen), so the echo should work correctly.
17455    # The option is referenced via a variable to avoid confusing sed.
17456    lt_compile=`echo "$ac_compile" | $SED \
17457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17459    -e 's:$: $lt_compiler_flag:'`
17460    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17461    (eval "$lt_compile" 2>conftest.err)
17462    ac_status=$?
17463    cat conftest.err >&5
17464    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465    if (exit $ac_status) && test -s "$ac_outfile"; then
17466      # The compiler can only warn and ignore the option if not recognized
17467      # So say no if there are warnings other than the usual output.
17468      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17469      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17470      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17471        lt_cv_prog_compiler_pic_works_CXX=yes
17472      fi
17473    fi
17474    $RM conftest*
17475
17476 fi
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17478 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17479
17480 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17481     case $lt_prog_compiler_pic_CXX in
17482      "" | " "*) ;;
17483      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17484      esac
17485 else
17486     lt_prog_compiler_pic_CXX=
17487      lt_prog_compiler_can_build_shared_CXX=no
17488 fi
17489
17490 fi
17491
17492
17493
17494
17495
17496 #
17497 # Check to make sure the static flag actually works.
17498 #
17499 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17502 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17503   $as_echo_n "(cached) " >&6
17504 else
17505   lt_cv_prog_compiler_static_works_CXX=no
17506    save_LDFLAGS="$LDFLAGS"
17507    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17508    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17509    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17510      # The linker can only warn and ignore the option if not recognized
17511      # So say no if there are warnings
17512      if test -s conftest.err; then
17513        # Append any errors to the config.log.
17514        cat conftest.err 1>&5
17515        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17516        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17517        if diff conftest.exp conftest.er2 >/dev/null; then
17518          lt_cv_prog_compiler_static_works_CXX=yes
17519        fi
17520      else
17521        lt_cv_prog_compiler_static_works_CXX=yes
17522      fi
17523    fi
17524    $RM -r conftest*
17525    LDFLAGS="$save_LDFLAGS"
17526
17527 fi
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17529 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17530
17531 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17532     :
17533 else
17534     lt_prog_compiler_static_CXX=
17535 fi
17536
17537
17538
17539
17540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17542 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17543   $as_echo_n "(cached) " >&6
17544 else
17545   lt_cv_prog_compiler_c_o_CXX=no
17546    $RM -r conftest 2>/dev/null
17547    mkdir conftest
17548    cd conftest
17549    mkdir out
17550    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17551
17552    lt_compiler_flag="-o out/conftest2.$ac_objext"
17553    # Insert the option either (1) after the last *FLAGS variable, or
17554    # (2) before a word containing "conftest.", or (3) at the end.
17555    # Note that $ac_compile itself does not contain backslashes and begins
17556    # with a dollar sign (not a hyphen), so the echo should work correctly.
17557    lt_compile=`echo "$ac_compile" | $SED \
17558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17560    -e 's:$: $lt_compiler_flag:'`
17561    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17562    (eval "$lt_compile" 2>out/conftest.err)
17563    ac_status=$?
17564    cat out/conftest.err >&5
17565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17567    then
17568      # The compiler can only warn and ignore the option if not recognized
17569      # So say no if there are warnings
17570      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17571      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17572      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17573        lt_cv_prog_compiler_c_o_CXX=yes
17574      fi
17575    fi
17576    chmod u+w . 2>&5
17577    $RM conftest*
17578    # SGI C++ compiler will create directory out/ii_files/ for
17579    # template instantiation
17580    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17581    $RM out/* && rmdir out
17582    cd ..
17583    $RM -r conftest
17584    $RM conftest*
17585
17586 fi
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17588 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17589
17590
17591
17592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17594 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17595   $as_echo_n "(cached) " >&6
17596 else
17597   lt_cv_prog_compiler_c_o_CXX=no
17598    $RM -r conftest 2>/dev/null
17599    mkdir conftest
17600    cd conftest
17601    mkdir out
17602    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17603
17604    lt_compiler_flag="-o out/conftest2.$ac_objext"
17605    # Insert the option either (1) after the last *FLAGS variable, or
17606    # (2) before a word containing "conftest.", or (3) at the end.
17607    # Note that $ac_compile itself does not contain backslashes and begins
17608    # with a dollar sign (not a hyphen), so the echo should work correctly.
17609    lt_compile=`echo "$ac_compile" | $SED \
17610    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17611    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17612    -e 's:$: $lt_compiler_flag:'`
17613    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17614    (eval "$lt_compile" 2>out/conftest.err)
17615    ac_status=$?
17616    cat out/conftest.err >&5
17617    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17619    then
17620      # The compiler can only warn and ignore the option if not recognized
17621      # So say no if there are warnings
17622      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17623      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17624      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17625        lt_cv_prog_compiler_c_o_CXX=yes
17626      fi
17627    fi
17628    chmod u+w . 2>&5
17629    $RM conftest*
17630    # SGI C++ compiler will create directory out/ii_files/ for
17631    # template instantiation
17632    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17633    $RM out/* && rmdir out
17634    cd ..
17635    $RM -r conftest
17636    $RM conftest*
17637
17638 fi
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17640 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17641
17642
17643
17644
17645 hard_links="nottested"
17646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17647   # do not overwrite the value of need_locks provided by the user
17648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17649 $as_echo_n "checking if we can lock with hard links... " >&6; }
17650   hard_links=yes
17651   $RM conftest*
17652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17653   touch conftest.a
17654   ln conftest.a conftest.b 2>&5 || hard_links=no
17655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17657 $as_echo "$hard_links" >&6; }
17658   if test "$hard_links" = no; then
17659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17660 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17661     need_locks=warn
17662   fi
17663 else
17664   need_locks=no
17665 fi
17666
17667
17668
17669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17671
17672   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17673   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17674   case $host_os in
17675   aix[4-9]*)
17676     # If we're using GNU nm, then we don't want the "-C" option.
17677     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17678     # Also, AIX nm treats weak defined symbols like other global defined
17679     # symbols, whereas GNU nm marks them as "W".
17680     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17681       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'
17682     else
17683       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'
17684     fi
17685     ;;
17686   pw32*)
17687     export_symbols_cmds_CXX="$ltdll_cmds"
17688     ;;
17689   cygwin* | mingw* | cegcc*)
17690     case $cc_basename in
17691     cl*) ;;
17692     *)
17693       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'
17694       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17695       ;;
17696     esac
17697     ;;
17698   *)
17699     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17700     ;;
17701   esac
17702
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17704 $as_echo "$ld_shlibs_CXX" >&6; }
17705 test "$ld_shlibs_CXX" = no && can_build_shared=no
17706
17707 with_gnu_ld_CXX=$with_gnu_ld
17708
17709
17710
17711
17712
17713
17714 #
17715 # Do we need to explicitly link libc?
17716 #
17717 case "x$archive_cmds_need_lc_CXX" in
17718 x|xyes)
17719   # Assume -lc should be added
17720   archive_cmds_need_lc_CXX=yes
17721
17722   if test "$enable_shared" = yes && test "$GCC" = yes; then
17723     case $archive_cmds_CXX in
17724     *'~'*)
17725       # FIXME: we may have to deal with multi-command sequences.
17726       ;;
17727     '$CC '*)
17728       # Test whether the compiler implicitly links with -lc since on some
17729       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730       # to ld, don't add -lc before -lgcc.
17731       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17733 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17734   $as_echo_n "(cached) " >&6
17735 else
17736   $RM conftest*
17737         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17738
17739         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17740   (eval $ac_compile) 2>&5
17741   ac_status=$?
17742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743   test $ac_status = 0; } 2>conftest.err; then
17744           soname=conftest
17745           lib=conftest
17746           libobjs=conftest.$ac_objext
17747           deplibs=
17748           wl=$lt_prog_compiler_wl_CXX
17749           pic_flag=$lt_prog_compiler_pic_CXX
17750           compiler_flags=-v
17751           linker_flags=-v
17752           verstring=
17753           output_objdir=.
17754           libname=conftest
17755           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17756           allow_undefined_flag_CXX=
17757           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17758   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17759   ac_status=$?
17760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17761   test $ac_status = 0; }
17762           then
17763             lt_cv_archive_cmds_need_lc_CXX=no
17764           else
17765             lt_cv_archive_cmds_need_lc_CXX=yes
17766           fi
17767           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17768         else
17769           cat conftest.err 1>&5
17770         fi
17771         $RM conftest*
17772
17773 fi
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17775 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17776       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17777       ;;
17778     esac
17779   fi
17780   ;;
17781 esac
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17847 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17848
17849 library_names_spec=
17850 libname_spec='lib$name'
17851 soname_spec=
17852 shrext_cmds=".so"
17853 postinstall_cmds=
17854 postuninstall_cmds=
17855 finish_cmds=
17856 finish_eval=
17857 shlibpath_var=
17858 shlibpath_overrides_runpath=unknown
17859 version_type=none
17860 dynamic_linker="$host_os ld.so"
17861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17862 need_lib_prefix=unknown
17863 hardcode_into_libs=no
17864
17865 # when you set need_version to no, make sure it does not cause -set_version
17866 # flags to be left without arguments
17867 need_version=unknown
17868
17869 case $host_os in
17870 aix3*)
17871   version_type=linux
17872   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17873   shlibpath_var=LIBPATH
17874
17875   # AIX 3 has no versioning support, so we append a major version to the name.
17876   soname_spec='${libname}${release}${shared_ext}$major'
17877   ;;
17878
17879 aix[4-9]*)
17880   version_type=linux
17881   need_lib_prefix=no
17882   need_version=no
17883   hardcode_into_libs=yes
17884   if test "$host_cpu" = ia64; then
17885     # AIX 5 supports IA64
17886     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17887     shlibpath_var=LD_LIBRARY_PATH
17888   else
17889     # With GCC up to 2.95.x, collect2 would create an import file
17890     # for dependence libraries.  The import file would start with
17891     # the line `#! .'.  This would cause the generated library to
17892     # depend on `.', always an invalid library.  This was fixed in
17893     # development snapshots of GCC prior to 3.0.
17894     case $host_os in
17895       aix4 | aix4.[01] | aix4.[01].*)
17896       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17897            echo ' yes '
17898            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17899         :
17900       else
17901         can_build_shared=no
17902       fi
17903       ;;
17904     esac
17905     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17906     # soname into executable. Probably we can add versioning support to
17907     # collect2, so additional links can be useful in future.
17908     if test "$aix_use_runtimelinking" = yes; then
17909       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17910       # instead of lib<name>.a to let people know that these are not
17911       # typical AIX shared libraries.
17912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913     else
17914       # We preserve .a as extension for shared libraries through AIX4.2
17915       # and later when we are not doing run time linking.
17916       library_names_spec='${libname}${release}.a $libname.a'
17917       soname_spec='${libname}${release}${shared_ext}$major'
17918     fi
17919     shlibpath_var=LIBPATH
17920   fi
17921   ;;
17922
17923 amigaos*)
17924   case $host_cpu in
17925   powerpc)
17926     # Since July 2007 AmigaOS4 officially supports .so libraries.
17927     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929     ;;
17930   m68k)
17931     library_names_spec='$libname.ixlibrary $libname.a'
17932     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17933     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'
17934     ;;
17935   esac
17936   ;;
17937
17938 beos*)
17939   library_names_spec='${libname}${shared_ext}'
17940   dynamic_linker="$host_os ld.so"
17941   shlibpath_var=LIBRARY_PATH
17942   ;;
17943
17944 bsdi[45]*)
17945   version_type=linux
17946   need_version=no
17947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948   soname_spec='${libname}${release}${shared_ext}$major'
17949   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17950   shlibpath_var=LD_LIBRARY_PATH
17951   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17952   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17953   # the default ld.so.conf also contains /usr/contrib/lib and
17954   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17955   # libtool to hard-code these into programs
17956   ;;
17957
17958 cygwin* | mingw* | pw32* | cegcc*)
17959   version_type=windows
17960   shrext_cmds=".dll"
17961   need_version=no
17962   need_lib_prefix=no
17963
17964   case $GCC,$cc_basename in
17965   yes,*)
17966     # gcc
17967     library_names_spec='$libname.dll.a'
17968     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17969     postinstall_cmds='base_file=`basename \${file}`~
17970       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17971       dldir=$destdir/`dirname \$dlpath`~
17972       test -d \$dldir || mkdir -p \$dldir~
17973       $install_prog $dir/$dlname \$dldir/$dlname~
17974       chmod a+x \$dldir/$dlname~
17975       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17976         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17977       fi'
17978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17979       dlpath=$dir/\$dldll~
17980        $RM \$dlpath'
17981     shlibpath_overrides_runpath=yes
17982
17983     case $host_os in
17984     cygwin*)
17985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17987
17988       ;;
17989     mingw* | cegcc*)
17990       # MinGW DLLs use traditional 'lib' prefix
17991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17992       ;;
17993     pw32*)
17994       # pw32 DLLs use 'pw' prefix rather than 'lib'
17995       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17996       ;;
17997     esac
17998     dynamic_linker='Win32 ld.exe'
17999     ;;
18000
18001   *,cl*)
18002     # Native MSVC
18003     libname_spec='$name'
18004     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18005     library_names_spec='${libname}.dll.lib'
18006
18007     case $build_os in
18008     mingw*)
18009       sys_lib_search_path_spec=
18010       lt_save_ifs=$IFS
18011       IFS=';'
18012       for lt_path in $LIB
18013       do
18014         IFS=$lt_save_ifs
18015         # Let DOS variable expansion print the short 8.3 style file name.
18016         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18017         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18018       done
18019       IFS=$lt_save_ifs
18020       # Convert to MSYS style.
18021       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18022       ;;
18023     cygwin*)
18024       # Convert to unix form, then to dos form, then back to unix form
18025       # but this time dos style (no spaces!) so that the unix form looks
18026       # like /cygdrive/c/PROGRA~1:/cygdr...
18027       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18028       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18029       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18030       ;;
18031     *)
18032       sys_lib_search_path_spec="$LIB"
18033       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18034         # It is most probably a Windows format PATH.
18035         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18036       else
18037         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18038       fi
18039       # FIXME: find the short name or the path components, as spaces are
18040       # common. (e.g. "Program Files" -> "PROGRA~1")
18041       ;;
18042     esac
18043
18044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18045     postinstall_cmds='base_file=`basename \${file}`~
18046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18047       dldir=$destdir/`dirname \$dlpath`~
18048       test -d \$dldir || mkdir -p \$dldir~
18049       $install_prog $dir/$dlname \$dldir/$dlname'
18050     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18051       dlpath=$dir/\$dldll~
18052        $RM \$dlpath'
18053     shlibpath_overrides_runpath=yes
18054     dynamic_linker='Win32 link.exe'
18055     ;;
18056
18057   *)
18058     # Assume MSVC wrapper
18059     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18060     dynamic_linker='Win32 ld.exe'
18061     ;;
18062   esac
18063   # FIXME: first we should search . and the directory the executable is in
18064   shlibpath_var=PATH
18065   ;;
18066
18067 darwin* | rhapsody*)
18068   dynamic_linker="$host_os dyld"
18069   version_type=darwin
18070   need_lib_prefix=no
18071   need_version=no
18072   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18073   soname_spec='${libname}${release}${major}$shared_ext'
18074   shlibpath_overrides_runpath=yes
18075   shlibpath_var=DYLD_LIBRARY_PATH
18076   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18077
18078   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18079   ;;
18080
18081 dgux*)
18082   version_type=linux
18083   need_lib_prefix=no
18084   need_version=no
18085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18086   soname_spec='${libname}${release}${shared_ext}$major'
18087   shlibpath_var=LD_LIBRARY_PATH
18088   ;;
18089
18090 freebsd1*)
18091   dynamic_linker=no
18092   ;;
18093
18094 freebsd* | dragonfly*)
18095   # DragonFly does not have aout.  When/if they implement a new
18096   # versioning mechanism, adjust this.
18097   if test -x /usr/bin/objformat; then
18098     objformat=`/usr/bin/objformat`
18099   else
18100     case $host_os in
18101     freebsd[123]*) objformat=aout ;;
18102     *) objformat=elf ;;
18103     esac
18104   fi
18105   version_type=freebsd-$objformat
18106   case $version_type in
18107     freebsd-elf*)
18108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109       need_version=no
18110       need_lib_prefix=no
18111       ;;
18112     freebsd-*)
18113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18114       need_version=yes
18115       ;;
18116   esac
18117   shlibpath_var=LD_LIBRARY_PATH
18118   case $host_os in
18119   freebsd2*)
18120     shlibpath_overrides_runpath=yes
18121     ;;
18122   freebsd3.[01]* | freebsdelf3.[01]*)
18123     shlibpath_overrides_runpath=yes
18124     hardcode_into_libs=yes
18125     ;;
18126   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18127   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18128     shlibpath_overrides_runpath=no
18129     hardcode_into_libs=yes
18130     ;;
18131   *) # from 4.6 on, and DragonFly
18132     shlibpath_overrides_runpath=yes
18133     hardcode_into_libs=yes
18134     ;;
18135   esac
18136   ;;
18137
18138 gnu*)
18139   version_type=linux
18140   need_lib_prefix=no
18141   need_version=no
18142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18143   soname_spec='${libname}${release}${shared_ext}$major'
18144   shlibpath_var=LD_LIBRARY_PATH
18145   hardcode_into_libs=yes
18146   ;;
18147
18148 haiku*)
18149   version_type=linux
18150   need_lib_prefix=no
18151   need_version=no
18152   dynamic_linker="$host_os runtime_loader"
18153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18154   soname_spec='${libname}${release}${shared_ext}$major'
18155   shlibpath_var=LIBRARY_PATH
18156   shlibpath_overrides_runpath=yes
18157   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18158   hardcode_into_libs=yes
18159   ;;
18160
18161 hpux9* | hpux10* | hpux11*)
18162   # Give a soname corresponding to the major version so that dld.sl refuses to
18163   # link against other versions.
18164   version_type=sunos
18165   need_lib_prefix=no
18166   need_version=no
18167   case $host_cpu in
18168   ia64*)
18169     shrext_cmds='.so'
18170     hardcode_into_libs=yes
18171     dynamic_linker="$host_os dld.so"
18172     shlibpath_var=LD_LIBRARY_PATH
18173     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175     soname_spec='${libname}${release}${shared_ext}$major'
18176     if test "X$HPUX_IA64_MODE" = X32; then
18177       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18178     else
18179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18180     fi
18181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18182     ;;
18183   hppa*64*)
18184     shrext_cmds='.sl'
18185     hardcode_into_libs=yes
18186     dynamic_linker="$host_os dld.sl"
18187     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190     soname_spec='${libname}${release}${shared_ext}$major'
18191     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18192     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18193     ;;
18194   *)
18195     shrext_cmds='.sl'
18196     dynamic_linker="$host_os dld.sl"
18197     shlibpath_var=SHLIB_PATH
18198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200     soname_spec='${libname}${release}${shared_ext}$major'
18201     ;;
18202   esac
18203   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18204   postinstall_cmds='chmod 555 $lib'
18205   # or fails outright, so override atomically:
18206   install_override_mode=555
18207   ;;
18208
18209 interix[3-9]*)
18210   version_type=linux
18211   need_lib_prefix=no
18212   need_version=no
18213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18214   soname_spec='${libname}${release}${shared_ext}$major'
18215   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18216   shlibpath_var=LD_LIBRARY_PATH
18217   shlibpath_overrides_runpath=no
18218   hardcode_into_libs=yes
18219   ;;
18220
18221 irix5* | irix6* | nonstopux*)
18222   case $host_os in
18223     nonstopux*) version_type=nonstopux ;;
18224     *)
18225         if test "$lt_cv_prog_gnu_ld" = yes; then
18226                 version_type=linux
18227         else
18228                 version_type=irix
18229         fi ;;
18230   esac
18231   need_lib_prefix=no
18232   need_version=no
18233   soname_spec='${libname}${release}${shared_ext}$major'
18234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18235   case $host_os in
18236   irix5* | nonstopux*)
18237     libsuff= shlibsuff=
18238     ;;
18239   *)
18240     case $LD in # libtool.m4 will add one of these switches to LD
18241     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18242       libsuff= shlibsuff= libmagic=32-bit;;
18243     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18244       libsuff=32 shlibsuff=N32 libmagic=N32;;
18245     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18246       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18247     *) libsuff= shlibsuff= libmagic=never-match;;
18248     esac
18249     ;;
18250   esac
18251   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18252   shlibpath_overrides_runpath=no
18253   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18254   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18255   hardcode_into_libs=yes
18256   ;;
18257
18258 # No shared lib support for Linux oldld, aout, or coff.
18259 linux*oldld* | linux*aout* | linux*coff*)
18260   dynamic_linker=no
18261   ;;
18262
18263 # This must be Linux ELF.
18264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18265   version_type=linux
18266   need_lib_prefix=no
18267   need_version=no
18268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269   soname_spec='${libname}${release}${shared_ext}$major'
18270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18271   shlibpath_var=LD_LIBRARY_PATH
18272   shlibpath_overrides_runpath=no
18273
18274   # Some binutils ld are patched to set DT_RUNPATH
18275   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278   lt_cv_shlibpath_overrides_runpath=no
18279     save_LDFLAGS=$LDFLAGS
18280     save_libdir=$libdir
18281     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18282          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h.  */
18285
18286 int
18287 main ()
18288 {
18289
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 if ac_fn_cxx_try_link "$LINENO"; then :
18295   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18296   lt_cv_shlibpath_overrides_runpath=yes
18297 fi
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext \
18300     conftest$ac_exeext conftest.$ac_ext
18301     LDFLAGS=$save_LDFLAGS
18302     libdir=$save_libdir
18303
18304 fi
18305
18306   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18307
18308   # This implies no fast_install, which is unacceptable.
18309   # Some rework will be needed to allow for fast_install
18310   # before this can be enabled.
18311   hardcode_into_libs=yes
18312
18313   # Append ld.so.conf contents to the search path
18314   if test -f /etc/ld.so.conf; then
18315     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' ' '`
18316     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18317   fi
18318
18319   # We used to test for /lib/ld.so.1 and disable shared libraries on
18320   # powerpc, because MkLinux only supported shared libraries with the
18321   # GNU dynamic linker.  Since this was broken with cross compilers,
18322   # most powerpc-linux boxes support dynamic linking these days and
18323   # people can always --disable-shared, the test was removed, and we
18324   # assume the GNU/Linux dynamic linker is in use.
18325   dynamic_linker='GNU/Linux ld.so'
18326   ;;
18327
18328 netbsd*)
18329   version_type=sunos
18330   need_lib_prefix=no
18331   need_version=no
18332   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18334     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18335     dynamic_linker='NetBSD (a.out) ld.so'
18336   else
18337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18338     soname_spec='${libname}${release}${shared_ext}$major'
18339     dynamic_linker='NetBSD ld.elf_so'
18340   fi
18341   shlibpath_var=LD_LIBRARY_PATH
18342   shlibpath_overrides_runpath=yes
18343   hardcode_into_libs=yes
18344   ;;
18345
18346 newsos6)
18347   version_type=linux
18348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349   shlibpath_var=LD_LIBRARY_PATH
18350   shlibpath_overrides_runpath=yes
18351   ;;
18352
18353 *nto* | *qnx*)
18354   version_type=qnx
18355   need_lib_prefix=no
18356   need_version=no
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358   soname_spec='${libname}${release}${shared_ext}$major'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   shlibpath_overrides_runpath=no
18361   hardcode_into_libs=yes
18362   dynamic_linker='ldqnx.so'
18363   ;;
18364
18365 openbsd*)
18366   version_type=sunos
18367   sys_lib_dlsearch_path_spec="/usr/lib"
18368   need_lib_prefix=no
18369   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18370   case $host_os in
18371     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18372     *)                          need_version=no  ;;
18373   esac
18374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18376   shlibpath_var=LD_LIBRARY_PATH
18377   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18378     case $host_os in
18379       openbsd2.[89] | openbsd2.[89].*)
18380         shlibpath_overrides_runpath=no
18381         ;;
18382       *)
18383         shlibpath_overrides_runpath=yes
18384         ;;
18385       esac
18386   else
18387     shlibpath_overrides_runpath=yes
18388   fi
18389   ;;
18390
18391 os2*)
18392   libname_spec='$name'
18393   shrext_cmds=".dll"
18394   need_lib_prefix=no
18395   library_names_spec='$libname${shared_ext} $libname.a'
18396   dynamic_linker='OS/2 ld.exe'
18397   shlibpath_var=LIBPATH
18398   ;;
18399
18400 osf3* | osf4* | osf5*)
18401   version_type=osf
18402   need_lib_prefix=no
18403   need_version=no
18404   soname_spec='${libname}${release}${shared_ext}$major'
18405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406   shlibpath_var=LD_LIBRARY_PATH
18407   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18408   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18409   ;;
18410
18411 rdos*)
18412   dynamic_linker=no
18413   ;;
18414
18415 solaris*)
18416   version_type=linux
18417   need_lib_prefix=no
18418   need_version=no
18419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420   soname_spec='${libname}${release}${shared_ext}$major'
18421   shlibpath_var=LD_LIBRARY_PATH
18422   shlibpath_overrides_runpath=yes
18423   hardcode_into_libs=yes
18424   # ldd complains unless libraries are executable
18425   postinstall_cmds='chmod +x $lib'
18426   ;;
18427
18428 sunos4*)
18429   version_type=sunos
18430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18431   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18432   shlibpath_var=LD_LIBRARY_PATH
18433   shlibpath_overrides_runpath=yes
18434   if test "$with_gnu_ld" = yes; then
18435     need_lib_prefix=no
18436   fi
18437   need_version=yes
18438   ;;
18439
18440 sysv4 | sysv4.3*)
18441   version_type=linux
18442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443   soname_spec='${libname}${release}${shared_ext}$major'
18444   shlibpath_var=LD_LIBRARY_PATH
18445   case $host_vendor in
18446     sni)
18447       shlibpath_overrides_runpath=no
18448       need_lib_prefix=no
18449       runpath_var=LD_RUN_PATH
18450       ;;
18451     siemens)
18452       need_lib_prefix=no
18453       ;;
18454     motorola)
18455       need_lib_prefix=no
18456       need_version=no
18457       shlibpath_overrides_runpath=no
18458       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18459       ;;
18460   esac
18461   ;;
18462
18463 sysv4*MP*)
18464   if test -d /usr/nec ;then
18465     version_type=linux
18466     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18467     soname_spec='$libname${shared_ext}.$major'
18468     shlibpath_var=LD_LIBRARY_PATH
18469   fi
18470   ;;
18471
18472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18473   version_type=freebsd-elf
18474   need_lib_prefix=no
18475   need_version=no
18476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18477   soname_spec='${libname}${release}${shared_ext}$major'
18478   shlibpath_var=LD_LIBRARY_PATH
18479   shlibpath_overrides_runpath=yes
18480   hardcode_into_libs=yes
18481   if test "$with_gnu_ld" = yes; then
18482     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18483   else
18484     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18485     case $host_os in
18486       sco3.2v5*)
18487         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18488         ;;
18489     esac
18490   fi
18491   sys_lib_dlsearch_path_spec='/usr/lib'
18492   ;;
18493
18494 tpf*)
18495   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18496   version_type=linux
18497   need_lib_prefix=no
18498   need_version=no
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500   shlibpath_var=LD_LIBRARY_PATH
18501   shlibpath_overrides_runpath=no
18502   hardcode_into_libs=yes
18503   ;;
18504
18505 uts4*)
18506   version_type=linux
18507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508   soname_spec='${libname}${release}${shared_ext}$major'
18509   shlibpath_var=LD_LIBRARY_PATH
18510   ;;
18511
18512 *)
18513   dynamic_linker=no
18514   ;;
18515 esac
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18517 $as_echo "$dynamic_linker" >&6; }
18518 test "$dynamic_linker" = no && can_build_shared=no
18519
18520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18521 if test "$GCC" = yes; then
18522   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18523 fi
18524
18525 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18526   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18527 fi
18528 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18529   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18530 fi
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18570 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18571 hardcode_action_CXX=
18572 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18573    test -n "$runpath_var_CXX" ||
18574    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18575
18576   # We can hardcode non-existent directories.
18577   if test "$hardcode_direct_CXX" != no &&
18578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18579      # have to relink, otherwise we might link with an installed library
18580      # when we should be linking with a yet-to-be-installed one
18581      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18582      test "$hardcode_minus_L_CXX" != no; then
18583     # Linking always hardcodes the temporary library directory.
18584     hardcode_action_CXX=relink
18585   else
18586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18587     hardcode_action_CXX=immediate
18588   fi
18589 else
18590   # We cannot hardcode anything, or else we can only hardcode existing
18591   # directories.
18592   hardcode_action_CXX=unsupported
18593 fi
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18595 $as_echo "$hardcode_action_CXX" >&6; }
18596
18597 if test "$hardcode_action_CXX" = relink ||
18598    test "$inherit_rpath_CXX" = yes; then
18599   # Fast installation is not supported
18600   enable_fast_install=no
18601 elif test "$shlibpath_overrides_runpath" = yes ||
18602      test "$enable_shared" = no; then
18603   # Fast installation is not necessary
18604   enable_fast_install=needless
18605 fi
18606
18607
18608
18609
18610
18611
18612
18613   fi # test -n "$compiler"
18614
18615   CC=$lt_save_CC
18616   CFLAGS=$lt_save_CFLAGS
18617   LDCXX=$LD
18618   LD=$lt_save_LD
18619   GCC=$lt_save_GCC
18620   with_gnu_ld=$lt_save_with_gnu_ld
18621   lt_cv_path_LDCXX=$lt_cv_path_LD
18622   lt_cv_path_LD=$lt_save_path_LD
18623   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18624   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18625 fi # test "$_lt_caught_CXX_error" != yes
18626
18627 ac_ext=c
18628 ac_cpp='$CPP $CPPFLAGS'
18629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645         ac_config_commands="$ac_config_commands libtool"
18646
18647
18648
18649
18650 # Only expand once:
18651
18652
18653
18654
18655 # NTP has (so far) been relying on leading-edge autogen, which
18656 # means we need the appropriate corresponding libopts as well.
18657 # Therefore, by default:
18658 # - use the version of libopts we ship with
18659 # - do not install it
18660 # - build a static copy (AC_DISABLE_SHARED - done earlier)
18661 case "${enable_local_libopts+set}" in
18662  set) ;;
18663  *) enable_local_libopts=yes ;;
18664 esac
18665 case "${enable_libopts_install+set}" in
18666  set) ;;
18667  *) enable_libopts_install=no ;;
18668 esac
18669 enable_nls=no
18670 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18671 if test "x$ac_cv_type_pid_t" = xyes; then :
18672
18673 else
18674
18675 cat >>confdefs.h <<_ACEOF
18676 #define pid_t int
18677 _ACEOF
18678
18679 fi
18680
18681
18682
18683   ac_header_dirent=no
18684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18685   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18687 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18688 if eval \${$as_ac_Header+:} false; then :
18689   $as_echo_n "(cached) " >&6
18690 else
18691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h.  */
18693 #include <sys/types.h>
18694 #include <$ac_hdr>
18695
18696 int
18697 main ()
18698 {
18699 if ((DIR *) 0)
18700 return 0;
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 if ac_fn_c_try_compile "$LINENO"; then :
18706   eval "$as_ac_Header=yes"
18707 else
18708   eval "$as_ac_Header=no"
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 fi
18712 eval ac_res=\$$as_ac_Header
18713                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18714 $as_echo "$ac_res" >&6; }
18715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18716   cat >>confdefs.h <<_ACEOF
18717 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18718 _ACEOF
18719
18720 ac_header_dirent=$ac_hdr; break
18721 fi
18722
18723 done
18724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18725 if test $ac_header_dirent = dirent.h; then
18726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18727 $as_echo_n "checking for library containing opendir... " >&6; }
18728 if ${ac_cv_search_opendir+:} false; then :
18729   $as_echo_n "(cached) " >&6
18730 else
18731   ac_func_search_save_LIBS=$LIBS
18732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733 /* end confdefs.h.  */
18734
18735 /* Override any GCC internal prototype to avoid an error.
18736    Use char because int might match the return type of a GCC
18737    builtin and then its argument prototype would still apply.  */
18738 #ifdef __cplusplus
18739 extern "C"
18740 #endif
18741 char opendir ();
18742 int
18743 main ()
18744 {
18745 return opendir ();
18746   ;
18747   return 0;
18748 }
18749 _ACEOF
18750 for ac_lib in '' dir; do
18751   if test -z "$ac_lib"; then
18752     ac_res="none required"
18753   else
18754     ac_res=-l$ac_lib
18755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18756   fi
18757   if ac_fn_c_try_link "$LINENO"; then :
18758   ac_cv_search_opendir=$ac_res
18759 fi
18760 rm -f core conftest.err conftest.$ac_objext \
18761     conftest$ac_exeext
18762   if ${ac_cv_search_opendir+:} false; then :
18763   break
18764 fi
18765 done
18766 if ${ac_cv_search_opendir+:} false; then :
18767
18768 else
18769   ac_cv_search_opendir=no
18770 fi
18771 rm conftest.$ac_ext
18772 LIBS=$ac_func_search_save_LIBS
18773 fi
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18775 $as_echo "$ac_cv_search_opendir" >&6; }
18776 ac_res=$ac_cv_search_opendir
18777 if test "$ac_res" != no; then :
18778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18779
18780 fi
18781
18782 else
18783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18784 $as_echo_n "checking for library containing opendir... " >&6; }
18785 if ${ac_cv_search_opendir+:} false; then :
18786   $as_echo_n "(cached) " >&6
18787 else
18788   ac_func_search_save_LIBS=$LIBS
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h.  */
18791
18792 /* Override any GCC internal prototype to avoid an error.
18793    Use char because int might match the return type of a GCC
18794    builtin and then its argument prototype would still apply.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 char opendir ();
18799 int
18800 main ()
18801 {
18802 return opendir ();
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 for ac_lib in '' x; do
18808   if test -z "$ac_lib"; then
18809     ac_res="none required"
18810   else
18811     ac_res=-l$ac_lib
18812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18813   fi
18814   if ac_fn_c_try_link "$LINENO"; then :
18815   ac_cv_search_opendir=$ac_res
18816 fi
18817 rm -f core conftest.err conftest.$ac_objext \
18818     conftest$ac_exeext
18819   if ${ac_cv_search_opendir+:} false; then :
18820   break
18821 fi
18822 done
18823 if ${ac_cv_search_opendir+:} false; then :
18824
18825 else
18826   ac_cv_search_opendir=no
18827 fi
18828 rm conftest.$ac_ext
18829 LIBS=$ac_func_search_save_LIBS
18830 fi
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18832 $as_echo "$ac_cv_search_opendir" >&6; }
18833 ac_res=$ac_cv_search_opendir
18834 if test "$ac_res" != no; then :
18835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18836
18837 fi
18838
18839 fi
18840
18841
18842   # =================
18843   # AC_CHECK_HEADERS
18844   # =================
18845   for ac_header in  \
18846       sys/mman.h    sys/param.h   sys/poll.h    sys/procset.h \
18847       sys/select.h  sys/socket.h  sys/stropts.h sys/time.h \
18848       sys/un.h      sys/wait.h    dlfcn.h       errno.h \
18849       fcntl.h       libgen.h      libintl.h     memory.h \
18850       netinet/in.h  setjmp.h      stdbool.h     sysexits.h \
18851       unistd.h      utime.h
18852 do :
18853   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18854 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18856   cat >>confdefs.h <<_ACEOF
18857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18858 _ACEOF
18859
18860 fi
18861
18862 done
18863
18864
18865   for ac_header in stdarg.h     varargs.h
18866 do :
18867   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18868 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18870   cat >>confdefs.h <<_ACEOF
18871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18872 _ACEOF
18873  lo_have_arg_hdr=true;break
18874 else
18875   lo_have_arg_hdr=false
18876 fi
18877
18878 done
18879
18880
18881   for ac_header in string.h     strings.h
18882 do :
18883   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18884 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18886   cat >>confdefs.h <<_ACEOF
18887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18888 _ACEOF
18889  lo_have_str_hdr=true;break
18890 else
18891   lo_have_str_hdr=false
18892 fi
18893
18894 done
18895
18896
18897   for ac_header in limits.h     sys/limits.h  values.h
18898 do :
18899   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18902   cat >>confdefs.h <<_ACEOF
18903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18904 _ACEOF
18905  lo_have_lim_hdr=true;break
18906 else
18907   lo_have_lim_hdr=false
18908 fi
18909
18910 done
18911
18912
18913   for ac_header in inttypes.h   stdint.h
18914 do :
18915   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18916 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18917 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18918   cat >>confdefs.h <<_ACEOF
18919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18920 _ACEOF
18921  lo_have_typ_hdr=true;break
18922 else
18923   lo_have_typ_hdr=false
18924 fi
18925
18926 done
18927
18928
18929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
18930 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
18931 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
18932   $as_echo_n "(cached) " >&6
18933 else
18934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h.  */
18936 #include <stdlib.h>
18937             #include <stdnoreturn.h>
18938             /* Do not check for 'noreturn' after the return type.
18939                C11 allows it, but it's rarely done that way
18940                and circa-2012 bleeding-edge GCC rejects it when given
18941                -Werror=old-style-declaration.  */
18942             noreturn void foo1 (void) { exit (0); }
18943             _Noreturn void foo2 (void) { exit (0); }
18944             int testit (int argc, char **argv) {
18945               if (argc & 1)
18946                 return 0;
18947               (argv[0][0] ? foo1 : foo2) ();
18948             }
18949
18950 int
18951 main ()
18952 {
18953
18954   ;
18955   return 0;
18956 }
18957 _ACEOF
18958 if ac_fn_c_try_compile "$LINENO"; then :
18959   gl_cv_header_working_stdnoreturn_h=yes
18960 else
18961   gl_cv_header_working_stdnoreturn_h=no
18962 fi
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964 fi
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
18966 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
18967
18968   if test $gl_cv_header_working_stdnoreturn_h = yes; then
18969     STDNORETURN_H=''
18970   else
18971     STDNORETURN_H='stdnoreturn.h'
18972   fi
18973
18974
18975    if test -n "$STDNORETURN_H"; then
18976   GL_GENERATE_STDNORETURN_H_TRUE=
18977   GL_GENERATE_STDNORETURN_H_FALSE='#'
18978 else
18979   GL_GENERATE_STDNORETURN_H_TRUE='#'
18980   GL_GENERATE_STDNORETURN_H_FALSE=
18981 fi
18982
18983
18984
18985   # ----------------------------------------------------------------------
18986   # check for various programs used during the build.
18987   # On OS/X, "wchar.h" needs "runetype.h" to work properly.
18988   # ----------------------------------------------------------------------
18989   for ac_header in runetype.h wchar.h
18990 do :
18991   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18992 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18993   $ac_includes_default
18994   #if HAVE_RUNETYPE_H
18995   # include <runetype.h>
18996   #endif
18997
18998 "
18999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19000   cat >>confdefs.h <<_ACEOF
19001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19002 _ACEOF
19003
19004 fi
19005
19006 done
19007
19008
19009   # Check whether --enable-nls was given.
19010 if test "${enable_nls+set}" = set; then :
19011   enableval=$enable_nls;
19012 fi
19013
19014   if test "x$enable_nls" != "xno" && \
19015   test "X${ac_cv_header_libintl_h}" = Xyes; then :
19016
19017
19018 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19019
19020 fi
19021
19022   # --------------------------------------------
19023   # Verify certain entries from AC_CHECK_HEADERS
19024   # --------------------------------------------
19025   ${lo_have_arg_hdr} || \
19026     as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
19027
19028   ${lo_have_str_hdr} || \
19029     as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
19030
19031   ${lo_have_lim_hdr} || \
19032     as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
19033
19034   ${lo_have_typ_hdr} || \
19035     as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
19036
19037   for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
19038   do eval as_ac_var=\${ac_cv_header_${f}_h}
19039      test "X${as_ac_var}" = Xyes || {
19040        as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
19041      }
19042   done
19043   test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
19044     echo '#include <stdint.h>' > inttypes.h
19045
19046   # ----------------------------------------------------------------------
19047   # Checks for typedefs
19048   # ----------------------------------------------------------------------
19049   ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
19050 if test "x$ac_cv_type_wchar_t" = xyes; then :
19051
19052 cat >>confdefs.h <<_ACEOF
19053 #define HAVE_WCHAR_T 1
19054 _ACEOF
19055
19056
19057 fi
19058
19059   ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
19060     $ac_includes_default
19061     #if HAVE_RUNETYPE_H
19062     # include <runetype.h>
19063     #endif
19064     #if HAVE_WCHAR_H
19065     # include <wchar.h>
19066     #endif
19067
19068 "
19069 if test "x$ac_cv_type_wint_t" = xyes; then :
19070
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_WINT_T 1
19073 _ACEOF
19074
19075
19076 fi
19077
19078   ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
19079 if test "x$ac_cv_type_int8_t" = xyes; then :
19080
19081 cat >>confdefs.h <<_ACEOF
19082 #define HAVE_INT8_T 1
19083 _ACEOF
19084
19085
19086 fi
19087 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
19088 if test "x$ac_cv_type_uint8_t" = xyes; then :
19089
19090 cat >>confdefs.h <<_ACEOF
19091 #define HAVE_UINT8_T 1
19092 _ACEOF
19093
19094
19095 fi
19096 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
19097 if test "x$ac_cv_type_int16_t" = xyes; then :
19098
19099 cat >>confdefs.h <<_ACEOF
19100 #define HAVE_INT16_T 1
19101 _ACEOF
19102
19103
19104 fi
19105 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
19106 if test "x$ac_cv_type_uint16_t" = xyes; then :
19107
19108 cat >>confdefs.h <<_ACEOF
19109 #define HAVE_UINT16_T 1
19110 _ACEOF
19111
19112
19113 fi
19114 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
19115 if test "x$ac_cv_type_int32_t" = xyes; then :
19116
19117 cat >>confdefs.h <<_ACEOF
19118 #define HAVE_INT32_T 1
19119 _ACEOF
19120
19121
19122 fi
19123 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
19124 if test "x$ac_cv_type_uint32_t" = xyes; then :
19125
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_UINT32_T 1
19128 _ACEOF
19129
19130
19131 fi
19132 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
19133 if test "x$ac_cv_type_intptr_t" = xyes; then :
19134
19135 cat >>confdefs.h <<_ACEOF
19136 #define HAVE_INTPTR_T 1
19137 _ACEOF
19138
19139
19140 fi
19141 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19142 if test "x$ac_cv_type_uintptr_t" = xyes; then :
19143
19144 cat >>confdefs.h <<_ACEOF
19145 #define HAVE_UINTPTR_T 1
19146 _ACEOF
19147
19148
19149 fi
19150 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
19151 if test "x$ac_cv_type_uint_t" = xyes; then :
19152
19153 cat >>confdefs.h <<_ACEOF
19154 #define HAVE_UINT_T 1
19155 _ACEOF
19156
19157
19158 fi
19159 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19160 if test "x$ac_cv_type_pid_t" = xyes; then :
19161
19162 cat >>confdefs.h <<_ACEOF
19163 #define HAVE_PID_T 1
19164 _ACEOF
19165
19166
19167 fi
19168 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19169 if test "x$ac_cv_type_size_t" = xyes; then :
19170
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_SIZE_T 1
19173 _ACEOF
19174
19175
19176 fi
19177 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19178 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19179
19180 cat >>confdefs.h <<_ACEOF
19181 #define HAVE_PTRDIFF_T 1
19182 _ACEOF
19183
19184
19185 fi
19186
19187   # The cast to long int works around a bug in the HP C Compiler
19188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19190 # This bug is HP SR number 8606223364.
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
19192 $as_echo_n "checking size of char *... " >&6; }
19193 if ${ac_cv_sizeof_char_p+:} false; then :
19194   $as_echo_n "(cached) " >&6
19195 else
19196   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p"        "$ac_includes_default"; then :
19197
19198 else
19199   if test "$ac_cv_type_char_p" = yes; then
19200      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19202 as_fn_error 77 "cannot compute sizeof (char *)
19203 See \`config.log' for more details" "$LINENO" 5; }
19204    else
19205      ac_cv_sizeof_char_p=0
19206    fi
19207 fi
19208
19209 fi
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
19211 $as_echo "$ac_cv_sizeof_char_p" >&6; }
19212
19213
19214
19215 cat >>confdefs.h <<_ACEOF
19216 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19217 _ACEOF
19218
19219
19220   # The cast to long int works around a bug in the HP C Compiler
19221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19223 # This bug is HP SR number 8606223364.
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19225 $as_echo_n "checking size of int... " >&6; }
19226 if ${ac_cv_sizeof_int+:} false; then :
19227   $as_echo_n "(cached) " >&6
19228 else
19229   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
19230
19231 else
19232   if test "$ac_cv_type_int" = yes; then
19233      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19235 as_fn_error 77 "cannot compute sizeof (int)
19236 See \`config.log' for more details" "$LINENO" 5; }
19237    else
19238      ac_cv_sizeof_int=0
19239    fi
19240 fi
19241
19242 fi
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19244 $as_echo "$ac_cv_sizeof_int" >&6; }
19245
19246
19247
19248 cat >>confdefs.h <<_ACEOF
19249 #define SIZEOF_INT $ac_cv_sizeof_int
19250 _ACEOF
19251
19252
19253   # The cast to long int works around a bug in the HP C Compiler
19254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19256 # This bug is HP SR number 8606223364.
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19258 $as_echo_n "checking size of long... " >&6; }
19259 if ${ac_cv_sizeof_long+:} false; then :
19260   $as_echo_n "(cached) " >&6
19261 else
19262   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
19263
19264 else
19265   if test "$ac_cv_type_long" = yes; then
19266      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19268 as_fn_error 77 "cannot compute sizeof (long)
19269 See \`config.log' for more details" "$LINENO" 5; }
19270    else
19271      ac_cv_sizeof_long=0
19272    fi
19273 fi
19274
19275 fi
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19277 $as_echo "$ac_cv_sizeof_long" >&6; }
19278
19279
19280
19281 cat >>confdefs.h <<_ACEOF
19282 #define SIZEOF_LONG $ac_cv_sizeof_long
19283 _ACEOF
19284
19285
19286   # The cast to long int works around a bug in the HP C Compiler
19287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19289 # This bug is HP SR number 8606223364.
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19291 $as_echo_n "checking size of short... " >&6; }
19292 if ${ac_cv_sizeof_short+:} false; then :
19293   $as_echo_n "(cached) " >&6
19294 else
19295   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
19296
19297 else
19298   if test "$ac_cv_type_short" = yes; then
19299      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19301 as_fn_error 77 "cannot compute sizeof (short)
19302 See \`config.log' for more details" "$LINENO" 5; }
19303    else
19304      ac_cv_sizeof_short=0
19305    fi
19306 fi
19307
19308 fi
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19310 $as_echo "$ac_cv_sizeof_short" >&6; }
19311
19312
19313
19314 cat >>confdefs.h <<_ACEOF
19315 #define SIZEOF_SHORT $ac_cv_sizeof_short
19316 _ACEOF
19317
19318
19319
19320   # ------------
19321   # AC_CHECK_LIB
19322   # ------------
19323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
19324 $as_echo_n "checking for pathfind in -lgen... " >&6; }
19325 if ${ac_cv_lib_gen_pathfind+:} false; then :
19326   $as_echo_n "(cached) " >&6
19327 else
19328   ac_check_lib_save_LIBS=$LIBS
19329 LIBS="-lgen  $LIBS"
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332
19333 /* Override any GCC internal prototype to avoid an error.
19334    Use char because int might match the return type of a GCC
19335    builtin and then its argument prototype would still apply.  */
19336 #ifdef __cplusplus
19337 extern "C"
19338 #endif
19339 char pathfind ();
19340 int
19341 main ()
19342 {
19343 return pathfind ();
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 if ac_fn_c_try_link "$LINENO"; then :
19349   ac_cv_lib_gen_pathfind=yes
19350 else
19351   ac_cv_lib_gen_pathfind=no
19352 fi
19353 rm -f core conftest.err conftest.$ac_objext \
19354     conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19356 fi
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
19358 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
19359 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
19360   cat >>confdefs.h <<_ACEOF
19361 #define HAVE_LIBGEN 1
19362 _ACEOF
19363
19364   LIBS="-lgen $LIBS"
19365
19366 fi
19367
19368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19369 $as_echo_n "checking for gettext in -lintl... " >&6; }
19370 if ${ac_cv_lib_intl_gettext+:} false; then :
19371   $as_echo_n "(cached) " >&6
19372 else
19373   ac_check_lib_save_LIBS=$LIBS
19374 LIBS="-lintl  $LIBS"
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h.  */
19377
19378 /* Override any GCC internal prototype to avoid an error.
19379    Use char because int might match the return type of a GCC
19380    builtin and then its argument prototype would still apply.  */
19381 #ifdef __cplusplus
19382 extern "C"
19383 #endif
19384 char gettext ();
19385 int
19386 main ()
19387 {
19388 return gettext ();
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 if ac_fn_c_try_link "$LINENO"; then :
19394   ac_cv_lib_intl_gettext=yes
19395 else
19396   ac_cv_lib_intl_gettext=no
19397 fi
19398 rm -f core conftest.err conftest.$ac_objext \
19399     conftest$ac_exeext conftest.$ac_ext
19400 LIBS=$ac_check_lib_save_LIBS
19401 fi
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19403 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
19404 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19405   cat >>confdefs.h <<_ACEOF
19406 #define HAVE_LIBINTL 1
19407 _ACEOF
19408
19409   LIBS="-lintl $LIBS"
19410
19411 fi
19412
19413   for ac_func in vprintf
19414 do :
19415   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19416 if test "x$ac_cv_func_vprintf" = xyes; then :
19417   cat >>confdefs.h <<_ACEOF
19418 #define HAVE_VPRINTF 1
19419 _ACEOF
19420
19421 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19422 if test "x$ac_cv_func__doprnt" = xyes; then :
19423
19424 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19425
19426 fi
19427
19428 fi
19429 done
19430
19431
19432   for ac_header in vfork.h
19433 do :
19434   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19435 if test "x$ac_cv_header_vfork_h" = xyes; then :
19436   cat >>confdefs.h <<_ACEOF
19437 #define HAVE_VFORK_H 1
19438 _ACEOF
19439
19440 fi
19441
19442 done
19443
19444 for ac_func in fork vfork
19445 do :
19446   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19449   cat >>confdefs.h <<_ACEOF
19450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19451 _ACEOF
19452
19453 fi
19454 done
19455
19456 if test "x$ac_cv_func_fork" = xyes; then
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19458 $as_echo_n "checking for working fork... " >&6; }
19459 if ${ac_cv_func_fork_works+:} false; then :
19460   $as_echo_n "(cached) " >&6
19461 else
19462   if test "$cross_compiling" = yes; then :
19463   ac_cv_func_fork_works=cross
19464 else
19465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h.  */
19467 $ac_includes_default
19468 int
19469 main ()
19470 {
19471
19472           /* By Ruediger Kuhlmann. */
19473           return fork () < 0;
19474
19475   ;
19476   return 0;
19477 }
19478 _ACEOF
19479 if ac_fn_c_try_run "$LINENO"; then :
19480   ac_cv_func_fork_works=yes
19481 else
19482   ac_cv_func_fork_works=no
19483 fi
19484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19485   conftest.$ac_objext conftest.beam conftest.$ac_ext
19486 fi
19487
19488 fi
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19490 $as_echo "$ac_cv_func_fork_works" >&6; }
19491
19492 else
19493   ac_cv_func_fork_works=$ac_cv_func_fork
19494 fi
19495 if test "x$ac_cv_func_fork_works" = xcross; then
19496   case $host in
19497     *-*-amigaos* | *-*-msdosdjgpp*)
19498       # Override, as these systems have only a dummy fork() stub
19499       ac_cv_func_fork_works=no
19500       ;;
19501     *)
19502       ac_cv_func_fork_works=yes
19503       ;;
19504   esac
19505   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19506 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19507 fi
19508 ac_cv_func_vfork_works=$ac_cv_func_vfork
19509 if test "x$ac_cv_func_vfork" = xyes; then
19510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19511 $as_echo_n "checking for working vfork... " >&6; }
19512 if ${ac_cv_func_vfork_works+:} false; then :
19513   $as_echo_n "(cached) " >&6
19514 else
19515   if test "$cross_compiling" = yes; then :
19516   ac_cv_func_vfork_works=cross
19517 else
19518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h.  */
19520 /* Thanks to Paul Eggert for this test.  */
19521 $ac_includes_default
19522 #include <sys/wait.h>
19523 #ifdef HAVE_VFORK_H
19524 # include <vfork.h>
19525 #endif
19526 /* On some sparc systems, changes by the child to local and incoming
19527    argument registers are propagated back to the parent.  The compiler
19528    is told about this with #include <vfork.h>, but some compilers
19529    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19530    static variable whose address is put into a register that is
19531    clobbered by the vfork.  */
19532 static void
19533 #ifdef __cplusplus
19534 sparc_address_test (int arg)
19535 # else
19536 sparc_address_test (arg) int arg;
19537 #endif
19538 {
19539   static pid_t child;
19540   if (!child) {
19541     child = vfork ();
19542     if (child < 0) {
19543       perror ("vfork");
19544       _exit(2);
19545     }
19546     if (!child) {
19547       arg = getpid();
19548       write(-1, "", 0);
19549       _exit (arg);
19550     }
19551   }
19552 }
19553
19554 int
19555 main ()
19556 {
19557   pid_t parent = getpid ();
19558   pid_t child;
19559
19560   sparc_address_test (0);
19561
19562   child = vfork ();
19563
19564   if (child == 0) {
19565     /* Here is another test for sparc vfork register problems.  This
19566        test uses lots of local variables, at least as many local
19567        variables as main has allocated so far including compiler
19568        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19569        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19570        reuse the register of parent for one of the local variables,
19571        since it will think that parent can't possibly be used any more
19572        in this routine.  Assigning to the local variable will thus
19573        munge parent in the parent process.  */
19574     pid_t
19575       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19576       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19577     /* Convince the compiler that p..p7 are live; otherwise, it might
19578        use the same hardware register for all 8 local variables.  */
19579     if (p != p1 || p != p2 || p != p3 || p != p4
19580         || p != p5 || p != p6 || p != p7)
19581       _exit(1);
19582
19583     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19584        from child file descriptors.  If the child closes a descriptor
19585        before it execs or exits, this munges the parent's descriptor
19586        as well.  Test for this by closing stdout in the child.  */
19587     _exit(close(fileno(stdout)) != 0);
19588   } else {
19589     int status;
19590     struct stat st;
19591
19592     while (wait(&status) != child)
19593       ;
19594     return (
19595          /* Was there some problem with vforking?  */
19596          child < 0
19597
19598          /* Did the child fail?  (This shouldn't happen.)  */
19599          || status
19600
19601          /* Did the vfork/compiler bug occur?  */
19602          || parent != getpid()
19603
19604          /* Did the file descriptor bug occur?  */
19605          || fstat(fileno(stdout), &st) != 0
19606          );
19607   }
19608 }
19609 _ACEOF
19610 if ac_fn_c_try_run "$LINENO"; then :
19611   ac_cv_func_vfork_works=yes
19612 else
19613   ac_cv_func_vfork_works=no
19614 fi
19615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19616   conftest.$ac_objext conftest.beam conftest.$ac_ext
19617 fi
19618
19619 fi
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19621 $as_echo "$ac_cv_func_vfork_works" >&6; }
19622
19623 fi;
19624 if test "x$ac_cv_func_fork_works" = xcross; then
19625   ac_cv_func_vfork_works=$ac_cv_func_vfork
19626   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19627 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19628 fi
19629
19630 if test "x$ac_cv_func_vfork_works" = xyes; then
19631
19632 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19633
19634 else
19635
19636 $as_echo "#define vfork fork" >>confdefs.h
19637
19638 fi
19639 if test "x$ac_cv_func_fork_works" = xyes; then
19640
19641 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19642
19643 fi
19644
19645   for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
19646                  strrchr strsignal fchmod fstat chmod
19647 do :
19648   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19651   cat >>confdefs.h <<_ACEOF
19652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19653 _ACEOF
19654
19655 fi
19656 done
19657
19658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19659 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19660 if ${ac_cv_path_SED+:} false; then :
19661   $as_echo_n "(cached) " >&6
19662 else
19663             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19664      for ac_i in 1 2 3 4 5 6 7; do
19665        ac_script="$ac_script$as_nl$ac_script"
19666      done
19667      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19668      { ac_script=; unset ac_script;}
19669      if test -z "$SED"; then
19670   ac_path_SED_found=false
19671   # Loop through the user's path and test for each of PROGNAME-LIST
19672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19673 for as_dir in $PATH
19674 do
19675   IFS=$as_save_IFS
19676   test -z "$as_dir" && as_dir=.
19677     for ac_prog in sed gsed; do
19678     for ac_exec_ext in '' $ac_executable_extensions; do
19679       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19680       as_fn_executable_p "$ac_path_SED" || continue
19681 # Check for GNU ac_path_SED and select it if it is found.
19682   # Check for GNU $ac_path_SED
19683 case `"$ac_path_SED" --version 2>&1` in
19684 *GNU*)
19685   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19686 *)
19687   ac_count=0
19688   $as_echo_n 0123456789 >"conftest.in"
19689   while :
19690   do
19691     cat "conftest.in" "conftest.in" >"conftest.tmp"
19692     mv "conftest.tmp" "conftest.in"
19693     cp "conftest.in" "conftest.nl"
19694     $as_echo '' >> "conftest.nl"
19695     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19696     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19697     as_fn_arith $ac_count + 1 && ac_count=$as_val
19698     if test $ac_count -gt ${ac_path_SED_max-0}; then
19699       # Best one so far, save it but keep looking for a better one
19700       ac_cv_path_SED="$ac_path_SED"
19701       ac_path_SED_max=$ac_count
19702     fi
19703     # 10*(2^10) chars as input seems more than enough
19704     test $ac_count -gt 10 && break
19705   done
19706   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19707 esac
19708
19709       $ac_path_SED_found && break 3
19710     done
19711   done
19712   done
19713 IFS=$as_save_IFS
19714   if test -z "$ac_cv_path_SED"; then
19715     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19716   fi
19717 else
19718   ac_cv_path_SED=$SED
19719 fi
19720
19721 fi
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19723 $as_echo "$ac_cv_path_SED" >&6; }
19724  SED="$ac_cv_path_SED"
19725   rm -f conftest.sed
19726
19727   while :
19728   do
19729       POSIX_SHELL=`which bash`
19730       test -x "$POSIX_SHELL" && break
19731       POSIX_SHELL=`which dash`
19732       test -x "$POSIX_SHELL" && break
19733       POSIX_SHELL=/usr/xpg4/bin/sh
19734       test -x "$POSIX_SHELL" && break
19735       POSIX_SHELL=`/bin/sh -c '
19736           exec 2>/dev/null
19737           if ! true ; then exit 1 ; fi
19738           echo /bin/sh'`
19739       test -x "$POSIX_SHELL" && break
19740       as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
19741   done
19742
19743 cat >>confdefs.h <<_ACEOF
19744 #define POSIX_SHELL "${POSIX_SHELL}"
19745 _ACEOF
19746
19747
19748
19749
19750
19751   LIBOPTS_BUILD_BLOCKED=true
19752
19753
19754   NEED_LIBOPTS_DIR=''
19755
19756   # Check whether --enable-local-libopts was given.
19757 if test "${enable_local_libopts+set}" = set; then :
19758   enableval=$enable_local_libopts;
19759     if test x$enableval = xyes ; then
19760        { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
19761 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
19762        LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19763        NEED_LIBOPTS_DIR=true
19764        LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19765     fi
19766 fi
19767
19768
19769   # Check whether --enable-libopts-install was given.
19770 if test "${enable_libopts_install+set}" = set; then :
19771   enableval=$enable_libopts_install;
19772 fi
19773
19774    if test "X${enable_libopts_install}" = Xyes; then
19775   INSTALL_LIBOPTS_TRUE=
19776   INSTALL_LIBOPTS_FALSE='#'
19777 else
19778   INSTALL_LIBOPTS_TRUE='#'
19779   INSTALL_LIBOPTS_FALSE=
19780 fi
19781
19782
19783   if test -z "${NEED_LIBOPTS_DIR}" ; then
19784      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
19785 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
19786
19787 # Check whether --with-autoopts-config was given.
19788 if test "${with_autoopts_config+set}" = set; then :
19789   withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
19790 else
19791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
19792 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
19793 if ${lo_cv_with_autoopts_config+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   if autoopts-config --help 2>/dev/null 1>&2
19797         then lo_cv_with_autoopts_config=autoopts-config
19798         elif libopts-config --help 2>/dev/null 1>&2
19799         then lo_cv_with_autoopts_config=libopts-config
19800         else lo_cv_with_autoopts_config=no ; fi
19801 fi
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
19803 $as_echo "$lo_cv_with_autoopts_config" >&6; }
19804
19805 fi
19806  # end of AC_ARG_WITH
19807
19808      if ${lo_cv_test_autoopts+:} false; then :
19809   $as_echo_n "(cached) " >&6
19810 else
19811
19812         if test -z "${lo_cv_with_autoopts_config}" \
19813                 -o X"${lo_cv_with_autoopts_config}" = Xno
19814         then
19815            if autoopts-config --help 2>/dev/null 1>&2
19816            then lo_cv_with_autoopts_config=autoopts-config
19817            elif libopts-config --help 2>/dev/null 1>&2
19818            then lo_cv_with_autoopts_config=libopts-config
19819            else lo_cv_with_autoopts_config=false ; fi
19820         fi
19821         lo_cv_test_autoopts=`
19822             ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19823         if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19824         then lo_cv_test_autoopts=no ; fi
19825
19826 fi
19827  # end of CACHE_VAL
19828      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
19829 $as_echo "${lo_cv_test_autoopts}" >&6; }
19830
19831      if test "X${lo_cv_test_autoopts}" != Xno
19832      then
19833         LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19834         LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19835      else
19836         LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
19837         LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
19838         NEED_LIBOPTS_DIR=true
19839      fi
19840   fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19841   if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
19842     NEED_LIBOPTS_DIR=''
19843   fi
19844    if test -n "${NEED_LIBOPTS_DIR}"; then
19845   NEED_LIBOPTS_TRUE=
19846   NEED_LIBOPTS_FALSE='#'
19847 else
19848   NEED_LIBOPTS_TRUE='#'
19849   NEED_LIBOPTS_FALSE=
19850 fi
19851
19852
19853
19854   LIBOPTS_DIR=sntp/libopts
19855
19856
19857 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
19858
19859   # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
19860
19861
19862
19863
19864 ntp_pkgconfig_min_version='0.15.0'
19865 if test -n "$ac_tool_prefix"; then
19866   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19867 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19869 $as_echo_n "checking for $ac_word... " >&6; }
19870 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19871   $as_echo_n "(cached) " >&6
19872 else
19873   case $PKG_CONFIG in
19874   [\\/]* | ?:[\\/]*)
19875   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19876   ;;
19877   *)
19878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in $PATH
19880 do
19881   IFS=$as_save_IFS
19882   test -z "$as_dir" && as_dir=.
19883     for ac_exec_ext in '' $ac_executable_extensions; do
19884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19885     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19887     break 2
19888   fi
19889 done
19890   done
19891 IFS=$as_save_IFS
19892
19893   ;;
19894 esac
19895 fi
19896 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19897 if test -n "$PKG_CONFIG"; then
19898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19899 $as_echo "$PKG_CONFIG" >&6; }
19900 else
19901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19902 $as_echo "no" >&6; }
19903 fi
19904
19905
19906 fi
19907 if test -z "$ac_cv_path_PKG_CONFIG"; then
19908   ac_pt_PKG_CONFIG=$PKG_CONFIG
19909   # Extract the first word of "pkg-config", so it can be a program name with args.
19910 set dummy pkg-config; ac_word=$2
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19912 $as_echo_n "checking for $ac_word... " >&6; }
19913 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19914   $as_echo_n "(cached) " >&6
19915 else
19916   case $ac_pt_PKG_CONFIG in
19917   [\\/]* | ?:[\\/]*)
19918   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19919   ;;
19920   *)
19921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19922 for as_dir in $PATH
19923 do
19924   IFS=$as_save_IFS
19925   test -z "$as_dir" && as_dir=.
19926     for ac_exec_ext in '' $ac_executable_extensions; do
19927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19928     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19930     break 2
19931   fi
19932 done
19933   done
19934 IFS=$as_save_IFS
19935
19936   ;;
19937 esac
19938 fi
19939 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19940 if test -n "$ac_pt_PKG_CONFIG"; then
19941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19942 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19943 else
19944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19946 fi
19947
19948   if test "x$ac_pt_PKG_CONFIG" = x; then
19949     PKG_CONFIG=""
19950   else
19951     case $cross_compiling:$ac_tool_warned in
19952 yes:)
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19955 ac_tool_warned=yes ;;
19956 esac
19957     PKG_CONFIG=$ac_pt_PKG_CONFIG
19958   fi
19959 else
19960   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19961 fi
19962
19963 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
19964 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
19965
19966 case "$PKG_CONFIG" in
19967  /*)
19968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
19969 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
19970     if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
19971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19972 $as_echo "yes" >&6; }
19973     else
19974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19975 $as_echo "no" >&6; }
19976         PKG_CONFIG=""
19977     fi
19978     ;;
19979 esac
19980
19981
19982
19983
19984 # Check whether --enable-local-libevent was given.
19985 if test "${enable_local_libevent+set}" = set; then :
19986   enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
19987 else
19988   ntp_use_local_libevent=${ntp_use_local_libevent-detect}
19989
19990 fi
19991
19992
19993
19994
19995
19996 ntp_libevent_min_version=2
19997 ntp_libevent_tearoff=sntp/libevent
19998
19999
20000
20001
20002
20003 case "$ntp_use_local_libevent" in
20004  yes)
20005     ;;
20006  *) # If we have (a good enough) pkg-config, see if it can find libevent
20007     case "$PKG_CONFIG" in
20008      /*)
20009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
20010 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
20011         if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
20012         then
20013             ntp_use_local_libevent=no
20014             { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5
20015 $as_echo "$as_me: Using the installed libevent" >&6;}
20016             CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20017             CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
20018             # HMS: I hope the following is accurate.
20019             # We don't need -levent, we only need  -levent_core.
20020             # While we could grab only the -L stuff, there *might* be
20021             # other flags there we want.  Originally we just removed -levent
20022             # but then somebody decided to install -levent-2.0
20023             # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
20024             # So now we dance...
20025             LDADD_LIBEVENT=
20026             for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
20027             do
20028                 case "$i" in
20029                  -D*) ;;
20030                  -levent*) ;;
20031                  *) case "$LDADD_LIBEVENT" in
20032                      '') LDADD_LIBEVENT="$i" ;;
20033                      *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
20034                     esac
20035                     ;;
20036                 esac
20037             done
20038             case "$LIBISC_PTHREADS_NOTHREADS" in
20039              pthreads)
20040                 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
20041             esac
20042             LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
20043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20045         else
20046             ntp_use_local_libevent=yes
20047             # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
20048             # is "pthreads"?
20049             CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
20050             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20051 $as_echo "no" >&6; }
20052         fi
20053         ;;
20054      *)
20055         ntp_use_local_libevent=yes
20056         ;;
20057     esac
20058     ;;
20059 esac
20060
20061 case "$ntp_use_local_libevent" in
20062  yes)
20063     { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
20064 $as_echo "$as_me: Using libevent tearoff" >&6;}
20065     CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
20066     case "$LIBISC_PTHREADS_NOTHREADS" in
20067      pthreads)
20068         LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20069         ;;
20070      *)
20071         LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
20072     esac
20073 esac
20074
20075
20076  if test "x$ntp_use_local_libevent" = "xyes"; then
20077   BUILD_LIBEVENT_TRUE=
20078   BUILD_LIBEVENT_FALSE='#'
20079 else
20080   BUILD_LIBEVENT_TRUE='#'
20081   BUILD_LIBEVENT_FALSE=
20082 fi
20083
20084
20085
20086
20087
20088
20089 # Expose a cross-compilation indicator to makefiles
20090  if test $build != $host; then
20091   NTP_CROSSCOMPILE_TRUE=
20092   NTP_CROSSCOMPILE_FALSE='#'
20093 else
20094   NTP_CROSSCOMPILE_TRUE='#'
20095   NTP_CROSSCOMPILE_FALSE=
20096 fi
20097
20098
20099
20100 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20101 if test "x$ac_cv_type_size_t" = xyes; then :
20102
20103 else
20104
20105 cat >>confdefs.h <<_ACEOF
20106 #define size_t unsigned int
20107 _ACEOF
20108
20109 fi
20110
20111
20112             # Check whether --enable-c99-snprintf was given.
20113 if test "${enable_c99_snprintf+set}" = set; then :
20114   enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
20115 else
20116   force_c99_snprintf=no
20117
20118 fi
20119
20120     case "$force_c99_snprintf" in
20121      yes)
20122         hw_force_rpl_snprintf=yes
20123         hw_force_rpl_vsnprintf=yes
20124     esac
20125
20126
20127
20128
20129
20130
20131   for ac_header in $ac_header_list
20132 do :
20133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20135 "
20136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20137   cat >>confdefs.h <<_ACEOF
20138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20139 _ACEOF
20140
20141 fi
20142
20143 done
20144
20145
20146
20147
20148
20149
20150
20151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20152 $as_echo_n "checking for unsigned long long int... " >&6; }
20153 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20154   $as_echo_n "(cached) " >&6
20155 else
20156   ac_cv_type_unsigned_long_long_int=yes
20157      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20158        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h.  */
20160
20161   /* For now, do not test the preprocessor; as of 2007 there are too many
20162          implementations with broken preprocessors.  Perhaps this can
20163          be revisited in 2012.  In the meantime, code should not expect
20164          #if to work with literals wider than 32 bits.  */
20165       /* Test literals.  */
20166       long long int ll = 9223372036854775807ll;
20167       long long int nll = -9223372036854775807LL;
20168       unsigned long long int ull = 18446744073709551615ULL;
20169       /* Test constant expressions.   */
20170       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20171                      ? 1 : -1)];
20172       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20173                      ? 1 : -1)];
20174       int i = 63;
20175 int
20176 main ()
20177 {
20178 /* Test availability of runtime routines for shift and division.  */
20179       long long int llmax = 9223372036854775807ll;
20180       unsigned long long int ullmax = 18446744073709551615ull;
20181       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20182               | (llmax / ll) | (llmax % ll)
20183               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20184               | (ullmax / ull) | (ullmax % ull));
20185   ;
20186   return 0;
20187 }
20188
20189 _ACEOF
20190 if ac_fn_c_try_link "$LINENO"; then :
20191
20192 else
20193   ac_cv_type_unsigned_long_long_int=no
20194 fi
20195 rm -f core conftest.err conftest.$ac_objext \
20196     conftest$ac_exeext conftest.$ac_ext
20197      fi
20198 fi
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20200 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20201   if test $ac_cv_type_unsigned_long_long_int = yes; then
20202
20203 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20204
20205   fi
20206
20207
20208       ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
20209 if test "x$ac_cv_func_vsnprintf" = xyes; then :
20210   hw_cv_func_vsnprintf=yes
20211 else
20212   hw_cv_func_vsnprintf=no
20213 fi
20214
20215   if test "$hw_cv_func_vsnprintf" = yes; then :
20216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
20217 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
20218 if ${hw_cv_func_vsnprintf_c99+:} false; then :
20219   $as_echo_n "(cached) " >&6
20220 else
20221   if test "$cross_compiling" = yes; then :
20222   hw_cv_func_vsnprintf_c99=no
20223 else
20224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h.  */
20226 #if HAVE_STDARG_H
20227           #include <stdarg.h>
20228           #endif
20229           #include <stdio.h>
20230           static int testprintf(char *buf, size_t size, const char *format, ...)
20231           {
20232             int result;
20233             va_list ap;
20234             va_start(ap, format);
20235             result = vsnprintf(buf, size, format, ap);
20236             va_end(ap);
20237             return result;
20238           }
20239 int
20240 main ()
20241 {
20242 char buf[43];
20243           if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20244               testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20245               buf[0] != 'T' || buf[3] != '\0')
20246             return 1;
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 if ac_fn_c_try_run "$LINENO"; then :
20252   hw_cv_func_vsnprintf_c99=yes
20253 else
20254   hw_cv_func_vsnprintf_c99=no
20255 fi
20256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20257   conftest.$ac_objext conftest.beam conftest.$ac_ext
20258 fi
20259
20260 fi
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
20262 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
20263 else
20264   hw_cv_func_vsnprintf_c99=no
20265 fi
20266
20267 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
20268
20269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
20270 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
20271   if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
20272   hw_use_rpl_vsnprintf=yes
20273 else
20274   hw_use_rpl_vsnprintf=no
20275 fi
20276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
20277 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
20278   if test "$hw_use_rpl_vsnprintf" = yes; then :
20279
20280 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
20281
20282     if test ${hw_nodef_vsnprintf=no} = no; then :
20283
20284 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
20285
20286 fi
20287     for ac_header in inttypes.h locale.h stddef.h stdint.h
20288 do :
20289   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20292   cat >>confdefs.h <<_ACEOF
20293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20294 _ACEOF
20295
20296 fi
20297
20298 done
20299
20300     ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
20301 "
20302 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
20303
20304 cat >>confdefs.h <<_ACEOF
20305 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
20306 _ACEOF
20307
20308
20309 fi
20310 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
20311 "
20312 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
20313
20314 cat >>confdefs.h <<_ACEOF
20315 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
20316 _ACEOF
20317
20318
20319 fi
20320
20321
20322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
20323 $as_echo_n "checking for long double... " >&6; }
20324 if ${ac_cv_type_long_double+:} false; then :
20325   $as_echo_n "(cached) " >&6
20326 else
20327   if test "$GCC" = yes; then
20328        ac_cv_type_long_double=yes
20329      else
20330        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h.  */
20332 /* The Stardent Vistra knows sizeof (long double), but does
20333                  not support it.  */
20334               long double foo = 0.0L;
20335 int
20336 main ()
20337 {
20338 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20339               sizeof (double) <= sizeof (long double))];
20340 test_array [0] = 0;
20341 return test_array [0];
20342
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 if ac_fn_c_try_compile "$LINENO"; then :
20348   ac_cv_type_long_double=yes
20349 else
20350   ac_cv_type_long_double=no
20351 fi
20352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353      fi
20354 fi
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
20356 $as_echo "$ac_cv_type_long_double" >&6; }
20357   if test $ac_cv_type_long_double = yes; then
20358
20359 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
20360
20361   fi
20362
20363
20364
20365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20366 $as_echo_n "checking for long long int... " >&6; }
20367 if ${ac_cv_type_long_long_int+:} false; then :
20368   $as_echo_n "(cached) " >&6
20369 else
20370   ac_cv_type_long_long_int=yes
20371       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20372         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20373         if test $ac_cv_type_long_long_int = yes; then
20374                                   if test "$cross_compiling" = yes; then :
20375   :
20376 else
20377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379 #include <limits.h>
20380                  #ifndef LLONG_MAX
20381                  # define HALF \
20382                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20383                  # define LLONG_MAX (HALF - 1 + HALF)
20384                  #endif
20385 int
20386 main ()
20387 {
20388 long long int n = 1;
20389                  int i;
20390                  for (i = 0; ; i++)
20391                    {
20392                      long long int m = n << i;
20393                      if (m >> i != n)
20394                        return 1;
20395                      if (LLONG_MAX / 2 < m)
20396                        break;
20397                    }
20398                  return 0;
20399   ;
20400   return 0;
20401 }
20402 _ACEOF
20403 if ac_fn_c_try_run "$LINENO"; then :
20404
20405 else
20406   ac_cv_type_long_long_int=no
20407 fi
20408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20409   conftest.$ac_objext conftest.beam conftest.$ac_ext
20410 fi
20411
20412         fi
20413       fi
20414 fi
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20416 $as_echo "$ac_cv_type_long_long_int" >&6; }
20417   if test $ac_cv_type_long_long_int = yes; then
20418
20419 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20420
20421   fi
20422
20423
20424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20425 $as_echo_n "checking for unsigned long long int... " >&6; }
20426 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   ac_cv_type_unsigned_long_long_int=yes
20430      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20431        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432 /* end confdefs.h.  */
20433
20434   /* For now, do not test the preprocessor; as of 2007 there are too many
20435          implementations with broken preprocessors.  Perhaps this can
20436          be revisited in 2012.  In the meantime, code should not expect
20437          #if to work with literals wider than 32 bits.  */
20438       /* Test literals.  */
20439       long long int ll = 9223372036854775807ll;
20440       long long int nll = -9223372036854775807LL;
20441       unsigned long long int ull = 18446744073709551615ULL;
20442       /* Test constant expressions.   */
20443       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20444                      ? 1 : -1)];
20445       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20446                      ? 1 : -1)];
20447       int i = 63;
20448 int
20449 main ()
20450 {
20451 /* Test availability of runtime routines for shift and division.  */
20452       long long int llmax = 9223372036854775807ll;
20453       unsigned long long int ullmax = 18446744073709551615ull;
20454       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20455               | (llmax / ll) | (llmax % ll)
20456               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20457               | (ullmax / ull) | (ullmax % ull));
20458   ;
20459   return 0;
20460 }
20461
20462 _ACEOF
20463 if ac_fn_c_try_link "$LINENO"; then :
20464
20465 else
20466   ac_cv_type_unsigned_long_long_int=no
20467 fi
20468 rm -f core conftest.err conftest.$ac_objext \
20469     conftest$ac_exeext conftest.$ac_ext
20470      fi
20471 fi
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20473 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20474   if test $ac_cv_type_unsigned_long_long_int = yes; then
20475
20476 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20477
20478   fi
20479
20480     ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20481 if test "x$ac_cv_type_size_t" = xyes; then :
20482
20483 else
20484
20485 cat >>confdefs.h <<_ACEOF
20486 #define size_t unsigned int
20487 _ACEOF
20488
20489 fi
20490
20491
20492
20493   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
20494 if test "x$ac_cv_type_intmax_t" = xyes; then :
20495
20496 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20497
20498 else
20499   test $ac_cv_type_long_long_int = yes \
20500        && ac_type='long long int' \
20501        || ac_type='long int'
20502
20503 cat >>confdefs.h <<_ACEOF
20504 #define intmax_t $ac_type
20505 _ACEOF
20506
20507 fi
20508
20509
20510
20511
20512   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
20513 if test "x$ac_cv_type_uintmax_t" = xyes; then :
20514
20515 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20516
20517 else
20518   test $ac_cv_type_unsigned_long_long_int = yes \
20519        && ac_type='unsigned long long int' \
20520        || ac_type='unsigned long int'
20521
20522 cat >>confdefs.h <<_ACEOF
20523 #define uintmax_t $ac_type
20524 _ACEOF
20525
20526 fi
20527
20528
20529
20530   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20531 if test "x$ac_cv_type_uintptr_t" = xyes; then :
20532
20533 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
20534
20535 else
20536   for ac_type in 'unsigned int' 'unsigned long int' \
20537         'unsigned long long int'; do
20538        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539 /* end confdefs.h.  */
20540 $ac_includes_default
20541 int
20542 main ()
20543 {
20544 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20545 test_array [0] = 0;
20546 return test_array [0];
20547
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 if ac_fn_c_try_compile "$LINENO"; then :
20553
20554 cat >>confdefs.h <<_ACEOF
20555 #define uintptr_t $ac_type
20556 _ACEOF
20557
20558           ac_type=
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20561        test -z "$ac_type" && break
20562      done
20563 fi
20564
20565
20566     ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20567 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20568
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_PTRDIFF_T 1
20571 _ACEOF
20572
20573
20574 fi
20575
20576     for ac_func in localeconv
20577 do :
20578   ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
20579 if test "x$ac_cv_func_localeconv" = xyes; then :
20580   cat >>confdefs.h <<_ACEOF
20581 #define HAVE_LOCALECONV 1
20582 _ACEOF
20583
20584 fi
20585 done
20586
20587
20588   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20590 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20591 if ${ac_cv_c_const+:} false; then :
20592   $as_echo_n "(cached) " >&6
20593 else
20594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h.  */
20596
20597 int
20598 main ()
20599 {
20600
20601 #ifndef __cplusplus
20602   /* Ultrix mips cc rejects this sort of thing.  */
20603   typedef int charset[2];
20604   const charset cs = { 0, 0 };
20605   /* SunOS 4.1.1 cc rejects this.  */
20606   char const *const *pcpcc;
20607   char **ppc;
20608   /* NEC SVR4.0.2 mips cc rejects this.  */
20609   struct point {int x, y;};
20610   static struct point const zero = {0,0};
20611   /* AIX XL C 1.02.0.0 rejects this.
20612      It does not let you subtract one const X* pointer from another in
20613      an arm of an if-expression whose if-part is not a constant
20614      expression */
20615   const char *g = "string";
20616   pcpcc = &g + (g ? g-g : 0);
20617   /* HPUX 7.0 cc rejects these. */
20618   ++pcpcc;
20619   ppc = (char**) pcpcc;
20620   pcpcc = (char const *const *) ppc;
20621   { /* SCO 3.2v4 cc rejects this sort of thing.  */
20622     char tx;
20623     char *t = &tx;
20624     char const *s = 0 ? (char *) 0 : (char const *) 0;
20625
20626     *t++ = 0;
20627     if (s) return 0;
20628   }
20629   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20630     int x[] = {25, 17};
20631     const int *foo = &x[0];
20632     ++foo;
20633   }
20634   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20635     typedef const int *iptr;
20636     iptr p = 0;
20637     ++p;
20638   }
20639   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20640        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20641     struct s { int j; const int *ap[3]; } bx;
20642     struct s *b = &bx; b->j = 5;
20643   }
20644   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20645     const int foo = 10;
20646     if (!foo) return 0;
20647   }
20648   return !cs[0] && !zero.x;
20649 #endif
20650
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_compile "$LINENO"; then :
20656   ac_cv_c_const=yes
20657 else
20658   ac_cv_c_const=no
20659 fi
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20663 $as_echo "$ac_cv_c_const" >&6; }
20664 if test $ac_cv_c_const = no; then
20665
20666 $as_echo "#define const /**/" >>confdefs.h
20667
20668 fi
20669
20670
20671
20672
20673     case " $LIBOBJS " in
20674   *" snprintf.$ac_objext "* ) ;;
20675   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20676  ;;
20677 esac
20678
20679     _hw_cv_func_xprintf_replace_done=yes
20680 fi
20681
20682 fi
20683
20684
20685     ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20686 if test "x$ac_cv_func_snprintf" = xyes; then :
20687   hw_cv_func_snprintf=yes
20688 else
20689   hw_cv_func_snprintf=no
20690 fi
20691
20692   if test "$hw_cv_func_snprintf" = yes; then :
20693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
20694 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
20695 if ${hw_cv_func_snprintf_c99+:} false; then :
20696   $as_echo_n "(cached) " >&6
20697 else
20698   if test "$cross_compiling" = yes; then :
20699   hw_cv_func_snprintf_c99=no
20700 else
20701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702 /* end confdefs.h.  */
20703 #include <stdio.h>
20704 int
20705 main ()
20706 {
20707 char buf[43];
20708           if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
20709               snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
20710               buf[0] != 'T' || buf[3] != '\0')
20711             return 1;
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 if ac_fn_c_try_run "$LINENO"; then :
20717   hw_cv_func_snprintf_c99=yes
20718 else
20719   hw_cv_func_snprintf_c99=no
20720 fi
20721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20722   conftest.$ac_objext conftest.beam conftest.$ac_ext
20723 fi
20724
20725 fi
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
20727 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
20728 else
20729   hw_cv_func_snprintf_c99=no
20730 fi
20731
20732 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20733
20734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
20735 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
20736   if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
20737   hw_use_rpl_snprintf=yes
20738 else
20739   hw_use_rpl_snprintf=no
20740 fi
20741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
20742 $as_echo "$hw_use_rpl_snprintf" >&6; }
20743   if test "$hw_use_rpl_snprintf" = yes; then :
20744
20745 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
20746
20747     if test ${hw_nodef_snprintf=no} = no; then :
20748
20749 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
20750
20751 fi
20752
20753   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
20754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20756 if ${ac_cv_c_const+:} false; then :
20757   $as_echo_n "(cached) " >&6
20758 else
20759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h.  */
20761
20762 int
20763 main ()
20764 {
20765
20766 #ifndef __cplusplus
20767   /* Ultrix mips cc rejects this sort of thing.  */
20768   typedef int charset[2];
20769   const charset cs = { 0, 0 };
20770   /* SunOS 4.1.1 cc rejects this.  */
20771   char const *const *pcpcc;
20772   char **ppc;
20773   /* NEC SVR4.0.2 mips cc rejects this.  */
20774   struct point {int x, y;};
20775   static struct point const zero = {0,0};
20776   /* AIX XL C 1.02.0.0 rejects this.
20777      It does not let you subtract one const X* pointer from another in
20778      an arm of an if-expression whose if-part is not a constant
20779      expression */
20780   const char *g = "string";
20781   pcpcc = &g + (g ? g-g : 0);
20782   /* HPUX 7.0 cc rejects these. */
20783   ++pcpcc;
20784   ppc = (char**) pcpcc;
20785   pcpcc = (char const *const *) ppc;
20786   { /* SCO 3.2v4 cc rejects this sort of thing.  */
20787     char tx;
20788     char *t = &tx;
20789     char const *s = 0 ? (char *) 0 : (char const *) 0;
20790
20791     *t++ = 0;
20792     if (s) return 0;
20793   }
20794   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20795     int x[] = {25, 17};
20796     const int *foo = &x[0];
20797     ++foo;
20798   }
20799   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20800     typedef const int *iptr;
20801     iptr p = 0;
20802     ++p;
20803   }
20804   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20805        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20806     struct s { int j; const int *ap[3]; } bx;
20807     struct s *b = &bx; b->j = 5;
20808   }
20809   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20810     const int foo = 10;
20811     if (!foo) return 0;
20812   }
20813   return !cs[0] && !zero.x;
20814 #endif
20815
20816   ;
20817   return 0;
20818 }
20819 _ACEOF
20820 if ac_fn_c_try_compile "$LINENO"; then :
20821   ac_cv_c_const=yes
20822 else
20823   ac_cv_c_const=no
20824 fi
20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20828 $as_echo "$ac_cv_c_const" >&6; }
20829 if test $ac_cv_c_const = no; then
20830
20831 $as_echo "#define const /**/" >>confdefs.h
20832
20833 fi
20834
20835
20836
20837
20838     case " $LIBOBJS " in
20839   *" snprintf.$ac_objext "* ) ;;
20840   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20841  ;;
20842 esac
20843
20844     _hw_cv_func_xprintf_replace_done=yes
20845 fi
20846
20847 fi
20848
20849
20850
20851
20852
20853 # HMS: Save $LIBS and empty it.
20854 # any LIBS we add here should go in to LDADD_LIBNTP
20855
20856 __LIBS=$LIBS
20857 LIBS=
20858
20859
20860
20861 # [Bug 2332] because we need to know if we are using GNU ld...
20862
20863
20864 # Check whether --with-gnu-ld was given.
20865 if test "${with_gnu_ld+set}" = set; then :
20866   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20867 else
20868   with_gnu_ld=no
20869 fi
20870
20871 ac_prog=ld
20872 if test "$GCC" = yes; then
20873   # Check if gcc -print-prog-name=ld gives a path.
20874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20875 $as_echo_n "checking for ld used by $CC... " >&6; }
20876   case $host in
20877   *-*-mingw*)
20878     # gcc leaves a trailing carriage return which upsets mingw
20879     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20880   *)
20881     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20882   esac
20883   case $ac_prog in
20884     # Accept absolute paths.
20885     [\\/]* | ?:[\\/]*)
20886       re_direlt='/[^/][^/]*/\.\./'
20887       # Canonicalize the pathname of ld
20888       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20889       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20890         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20891       done
20892       test -z "$LD" && LD="$ac_prog"
20893       ;;
20894   "")
20895     # If it fails, then pretend we aren't using GCC.
20896     ac_prog=ld
20897     ;;
20898   *)
20899     # If it is relative, then search for the first ld in PATH.
20900     with_gnu_ld=unknown
20901     ;;
20902   esac
20903 elif test "$with_gnu_ld" = yes; then
20904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20905 $as_echo_n "checking for GNU ld... " >&6; }
20906 else
20907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20908 $as_echo_n "checking for non-GNU ld... " >&6; }
20909 fi
20910 if ${lt_cv_path_LD+:} false; then :
20911   $as_echo_n "(cached) " >&6
20912 else
20913   if test -z "$LD"; then
20914   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20915   for ac_dir in $PATH; do
20916     IFS="$lt_save_ifs"
20917     test -z "$ac_dir" && ac_dir=.
20918     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20919       lt_cv_path_LD="$ac_dir/$ac_prog"
20920       # Check to see if the program is GNU ld.  I'd rather use --version,
20921       # but apparently some variants of GNU ld only accept -v.
20922       # Break only if it was the GNU/non-GNU ld that we prefer.
20923       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20924       *GNU* | *'with BFD'*)
20925         test "$with_gnu_ld" != no && break
20926         ;;
20927       *)
20928         test "$with_gnu_ld" != yes && break
20929         ;;
20930       esac
20931     fi
20932   done
20933   IFS="$lt_save_ifs"
20934 else
20935   lt_cv_path_LD="$LD" # Let the user override the test with a path.
20936 fi
20937 fi
20938
20939 LD="$lt_cv_path_LD"
20940 if test -n "$LD"; then
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20942 $as_echo "$LD" >&6; }
20943 else
20944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20946 fi
20947 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20949 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20950 if ${lt_cv_prog_gnu_ld+:} false; then :
20951   $as_echo_n "(cached) " >&6
20952 else
20953   # I'd rather use --version here, but apparently some GNU lds only accept -v.
20954 case `$LD -v 2>&1 </dev/null` in
20955 *GNU* | *'with BFD'*)
20956   lt_cv_prog_gnu_ld=yes
20957   ;;
20958 *)
20959   lt_cv_prog_gnu_ld=no
20960   ;;
20961 esac
20962 fi
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20964 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20965 with_gnu_ld=$lt_cv_prog_gnu_ld
20966
20967
20968
20969
20970
20971
20972
20973
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
20975 $as_echo_n "checking for directory path separator... " >&6; }
20976 if ${ntp_cv_dir_sep+:} false; then :
20977   $as_echo_n "(cached) " >&6
20978 else
20979
20980         case "$ntp_cv_dir_sep" in
20981          '')
20982             case "$host_os" in
20983              *djgpp | *mingw32* | *emx*)
20984                 ntp_cv_dir_sep="'\\'"
20985                 ;;
20986              *)
20987                 ntp_cv_dir_sep="'/'"
20988                 ;;
20989             esac
20990         esac
20991
20992
20993 fi
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
20995 $as_echo "$ntp_cv_dir_sep" >&6; }
20996
20997 cat >>confdefs.h <<_ACEOF
20998 #define DIR_SEP $ntp_cv_dir_sep
20999 _ACEOF
21000
21001
21002
21003     NTP_ORIG_LIBS="$LIBS"
21004
21005 # Check whether --with-lineeditlibs was given.
21006 if test "${with_lineeditlibs+set}" = set; then :
21007   withval=$with_lineeditlibs; use_lineeditlibs="$withval"
21008 else
21009   use_lineeditlibs="edit,editline"
21010
21011 fi
21012
21013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
21014 $as_echo_n "checking line editing libraries... " >&6; }
21015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
21016 $as_echo "$use_lineeditlibs" >&6; }
21017     case "$use_lineeditlibs" in
21018      no)
21019         ntp_lib_lineedit=no
21020         ;;
21021      *)
21022         for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
21023             for term_lib in "" termcap curses ncurses; do
21024                 case "$term_lib" in
21025                  '')
21026                     TRY_LIB="-l$lineedit_lib"
21027                     ;;
21028                  *)
21029                     TRY_LIB="-l$lineedit_lib -l$term_lib"
21030                     ;;
21031                 esac
21032                 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
21033                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
21034 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
21035                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h.  */
21037
21038 /* Override any GCC internal prototype to avoid an error.
21039    Use char because int might match the return type of a GCC
21040    builtin and then its argument prototype would still apply.  */
21041 #ifdef __cplusplus
21042 extern "C"
21043 #endif
21044 char readline ();
21045 int
21046 main ()
21047 {
21048 return readline ();
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 if ac_fn_c_try_link "$LINENO"; then :
21054   ntp_lib_lineedit="$TRY_LIB"
21055 fi
21056 rm -f core conftest.err conftest.$ac_objext \
21057     conftest$ac_exeext conftest.$ac_ext
21058                 case "$ntp_lib_lineedit" in
21059                  '')
21060                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21062                     ;;
21063                  *)
21064                     # Use readline()
21065                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21066 $as_echo "yes" >&6; }
21067                     break
21068                 esac
21069                 case "$term_lib" in
21070                  '')
21071                     # do not try el_gets without a terminal library
21072                     ;;
21073                  *)
21074                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
21075 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
21076                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h.  */
21078
21079 /* Override any GCC internal prototype to avoid an error.
21080    Use char because int might match the return type of a GCC
21081    builtin and then its argument prototype would still apply.  */
21082 #ifdef __cplusplus
21083 extern "C"
21084 #endif
21085 char el_gets ();
21086 int
21087 main ()
21088 {
21089 return el_gets ();
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 if ac_fn_c_try_link "$LINENO"; then :
21095   ntp_lib_lineedit="$TRY_LIB"
21096 fi
21097 rm -f core conftest.err conftest.$ac_objext \
21098     conftest$ac_exeext conftest.$ac_ext
21099                     case "$ntp_lib_lineedit" in
21100                      '')
21101                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21102 $as_echo "no" >&6; }
21103                         ;;
21104                      *) # Use el_gets()
21105                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21106 $as_echo "yes" >&6; }
21107                         break
21108                         ;;
21109                     esac        # $ntp_lib_lineedit
21110                 esac            # $term_lib
21111             done
21112             case "$ntp_lib_lineedit" in
21113              '')
21114                 ;;
21115              *)
21116                 break
21117                 ;;
21118             esac
21119         done
21120         LIBS="$NTP_ORIG_LIBS"
21121         ;;
21122     esac        # $use_lineeditlibs
21123
21124     case "$ntp_lib_lineedit" in
21125      '')
21126         ntp_lib_lineedit="no"
21127         ;;
21128      no)
21129         ;;
21130      *)
21131         EDITLINE_LIBS="$ntp_lib_lineedit"
21132
21133         ;;
21134     esac        # $ntp_lib_lineedit
21135
21136     case "$ntp_lib_lineedit" in
21137      no)
21138         ;;
21139      *)
21140         for ac_header in readline.h readline/readline.h histedit.h
21141 do :
21142   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21143 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21145   cat >>confdefs.h <<_ACEOF
21146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21147 _ACEOF
21148
21149 fi
21150
21151 done
21152
21153         for ac_header in history.h readline/history.h
21154 do :
21155   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21158   cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 fi
21163
21164 done
21165
21166
21167         case "$ac_cv_header_histedit_h" in
21168          yes)
21169             { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
21170 $as_echo_n "checking number of arguments to el_init()... " >&6; }
21171 if ${ntp_cv_el_init_args+:} false; then :
21172   $as_echo_n "(cached) " >&6
21173 else
21174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h.  */
21176
21177                             #include <stdio.h>
21178                             #include <histedit.h>
21179
21180 int
21181 main ()
21182 {
21183
21184                             el_init("conftest", stdin, stdout, stderr);
21185
21186
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192   ntp_cv_el_init_args=4
21193 else
21194   ntp_cv_el_init_args=3
21195
21196 fi
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198
21199 fi
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
21201 $as_echo "$ntp_cv_el_init_args" >&6; }
21202
21203 cat >>confdefs.h <<_ACEOF
21204 #define EL_INIT_ARGS $ntp_cv_el_init_args
21205 _ACEOF
21206
21207         esac
21208
21209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21210 $as_echo_n "checking whether readline supports history... " >&6; }
21211
21212         ntp_lib_lineedit_history="no"
21213         ORIG_LIBS="$LIBS"
21214         LIBS="$ORIG_LIBS $ntp_lib_lineedit"
21215         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h.  */
21217
21218 /* Override any GCC internal prototype to avoid an error.
21219    Use char because int might match the return type of a GCC
21220    builtin and then its argument prototype would still apply.  */
21221 #ifdef __cplusplus
21222 extern "C"
21223 #endif
21224 char add_history ();
21225 int
21226 main ()
21227 {
21228 return add_history ();
21229   ;
21230   return 0;
21231 }
21232 _ACEOF
21233 if ac_fn_c_try_link "$LINENO"; then :
21234   ntp_lib_lineedit_history="yes"
21235 fi
21236 rm -f core conftest.err conftest.$ac_objext \
21237     conftest$ac_exeext conftest.$ac_ext
21238         LIBS="$ORIG_LIBS"
21239
21240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
21241 $as_echo "$ntp_lib_lineedit_history" >&6; }
21242
21243         case "$ntp_lib_lineedit_history" in
21244          yes)
21245
21246 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21247
21248         esac
21249     esac        # $ntp_lib_lineedit
21250     { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
21251     { ORIG_LIBS=; unset ORIG_LIBS;}
21252     { TRY_LIB=; unset TRY_LIB;}
21253     { use_lineeditlibs=; unset use_lineeditlibs;}
21254
21255
21256 LIBM=
21257 case "$host" in
21258  *-*-darwin*)
21259     ;;
21260  *)
21261     _libs=$LIBS
21262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
21263 $as_echo_n "checking for library containing cos... " >&6; }
21264 if ${ac_cv_search_cos+:} false; then :
21265   $as_echo_n "(cached) " >&6
21266 else
21267   ac_func_search_save_LIBS=$LIBS
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h.  */
21270
21271 /* Override any GCC internal prototype to avoid an error.
21272    Use char because int might match the return type of a GCC
21273    builtin and then its argument prototype would still apply.  */
21274 #ifdef __cplusplus
21275 extern "C"
21276 #endif
21277 char cos ();
21278 int
21279 main ()
21280 {
21281 return cos ();
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 for ac_lib in '' m; do
21287   if test -z "$ac_lib"; then
21288     ac_res="none required"
21289   else
21290     ac_res=-l$ac_lib
21291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21292   fi
21293   if ac_fn_c_try_link "$LINENO"; then :
21294   ac_cv_search_cos=$ac_res
21295 fi
21296 rm -f core conftest.err conftest.$ac_objext \
21297     conftest$ac_exeext
21298   if ${ac_cv_search_cos+:} false; then :
21299   break
21300 fi
21301 done
21302 if ${ac_cv_search_cos+:} false; then :
21303
21304 else
21305   ac_cv_search_cos=no
21306 fi
21307 rm conftest.$ac_ext
21308 LIBS=$ac_func_search_save_LIBS
21309 fi
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
21311 $as_echo "$ac_cv_search_cos" >&6; }
21312 ac_res=$ac_cv_search_cos
21313 if test "$ac_res" != no; then :
21314   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21315   LIBM="-lm"
21316 fi
21317
21318     LIBS=$_libs
21319     ;;
21320 esac
21321
21322 { _libs=; unset _libs;}
21323
21324
21325 for ac_header in vfork.h
21326 do :
21327   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21328 if test "x$ac_cv_header_vfork_h" = xyes; then :
21329   cat >>confdefs.h <<_ACEOF
21330 #define HAVE_VFORK_H 1
21331 _ACEOF
21332
21333 fi
21334
21335 done
21336
21337 for ac_func in fork vfork
21338 do :
21339   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21342   cat >>confdefs.h <<_ACEOF
21343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21344 _ACEOF
21345
21346 fi
21347 done
21348
21349 if test "x$ac_cv_func_fork" = xyes; then
21350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21351 $as_echo_n "checking for working fork... " >&6; }
21352 if ${ac_cv_func_fork_works+:} false; then :
21353   $as_echo_n "(cached) " >&6
21354 else
21355   if test "$cross_compiling" = yes; then :
21356   ac_cv_func_fork_works=cross
21357 else
21358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h.  */
21360 $ac_includes_default
21361 int
21362 main ()
21363 {
21364
21365           /* By Ruediger Kuhlmann. */
21366           return fork () < 0;
21367
21368   ;
21369   return 0;
21370 }
21371 _ACEOF
21372 if ac_fn_c_try_run "$LINENO"; then :
21373   ac_cv_func_fork_works=yes
21374 else
21375   ac_cv_func_fork_works=no
21376 fi
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21378   conftest.$ac_objext conftest.beam conftest.$ac_ext
21379 fi
21380
21381 fi
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21383 $as_echo "$ac_cv_func_fork_works" >&6; }
21384
21385 else
21386   ac_cv_func_fork_works=$ac_cv_func_fork
21387 fi
21388 if test "x$ac_cv_func_fork_works" = xcross; then
21389   case $host in
21390     *-*-amigaos* | *-*-msdosdjgpp*)
21391       # Override, as these systems have only a dummy fork() stub
21392       ac_cv_func_fork_works=no
21393       ;;
21394     *)
21395       ac_cv_func_fork_works=yes
21396       ;;
21397   esac
21398   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21399 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21400 fi
21401 ac_cv_func_vfork_works=$ac_cv_func_vfork
21402 if test "x$ac_cv_func_vfork" = xyes; then
21403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21404 $as_echo_n "checking for working vfork... " >&6; }
21405 if ${ac_cv_func_vfork_works+:} false; then :
21406   $as_echo_n "(cached) " >&6
21407 else
21408   if test "$cross_compiling" = yes; then :
21409   ac_cv_func_vfork_works=cross
21410 else
21411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412 /* end confdefs.h.  */
21413 /* Thanks to Paul Eggert for this test.  */
21414 $ac_includes_default
21415 #include <sys/wait.h>
21416 #ifdef HAVE_VFORK_H
21417 # include <vfork.h>
21418 #endif
21419 /* On some sparc systems, changes by the child to local and incoming
21420    argument registers are propagated back to the parent.  The compiler
21421    is told about this with #include <vfork.h>, but some compilers
21422    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21423    static variable whose address is put into a register that is
21424    clobbered by the vfork.  */
21425 static void
21426 #ifdef __cplusplus
21427 sparc_address_test (int arg)
21428 # else
21429 sparc_address_test (arg) int arg;
21430 #endif
21431 {
21432   static pid_t child;
21433   if (!child) {
21434     child = vfork ();
21435     if (child < 0) {
21436       perror ("vfork");
21437       _exit(2);
21438     }
21439     if (!child) {
21440       arg = getpid();
21441       write(-1, "", 0);
21442       _exit (arg);
21443     }
21444   }
21445 }
21446
21447 int
21448 main ()
21449 {
21450   pid_t parent = getpid ();
21451   pid_t child;
21452
21453   sparc_address_test (0);
21454
21455   child = vfork ();
21456
21457   if (child == 0) {
21458     /* Here is another test for sparc vfork register problems.  This
21459        test uses lots of local variables, at least as many local
21460        variables as main has allocated so far including compiler
21461        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21462        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21463        reuse the register of parent for one of the local variables,
21464        since it will think that parent can't possibly be used any more
21465        in this routine.  Assigning to the local variable will thus
21466        munge parent in the parent process.  */
21467     pid_t
21468       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21469       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21470     /* Convince the compiler that p..p7 are live; otherwise, it might
21471        use the same hardware register for all 8 local variables.  */
21472     if (p != p1 || p != p2 || p != p3 || p != p4
21473         || p != p5 || p != p6 || p != p7)
21474       _exit(1);
21475
21476     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21477        from child file descriptors.  If the child closes a descriptor
21478        before it execs or exits, this munges the parent's descriptor
21479        as well.  Test for this by closing stdout in the child.  */
21480     _exit(close(fileno(stdout)) != 0);
21481   } else {
21482     int status;
21483     struct stat st;
21484
21485     while (wait(&status) != child)
21486       ;
21487     return (
21488          /* Was there some problem with vforking?  */
21489          child < 0
21490
21491          /* Did the child fail?  (This shouldn't happen.)  */
21492          || status
21493
21494          /* Did the vfork/compiler bug occur?  */
21495          || parent != getpid()
21496
21497          /* Did the file descriptor bug occur?  */
21498          || fstat(fileno(stdout), &st) != 0
21499          );
21500   }
21501 }
21502 _ACEOF
21503 if ac_fn_c_try_run "$LINENO"; then :
21504   ac_cv_func_vfork_works=yes
21505 else
21506   ac_cv_func_vfork_works=no
21507 fi
21508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21509   conftest.$ac_objext conftest.beam conftest.$ac_ext
21510 fi
21511
21512 fi
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21514 $as_echo "$ac_cv_func_vfork_works" >&6; }
21515
21516 fi;
21517 if test "x$ac_cv_func_fork_works" = xcross; then
21518   ac_cv_func_vfork_works=$ac_cv_func_vfork
21519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21520 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21521 fi
21522
21523 if test "x$ac_cv_func_vfork_works" = xyes; then
21524
21525 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21526
21527 else
21528
21529 $as_echo "#define vfork fork" >>confdefs.h
21530
21531 fi
21532 if test "x$ac_cv_func_fork_works" = xyes; then
21533
21534 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21535
21536 fi
21537
21538 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21539 # for constant arguments.  Useless!
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21541 $as_echo_n "checking for working alloca.h... " >&6; }
21542 if ${ac_cv_working_alloca_h+:} false; then :
21543   $as_echo_n "(cached) " >&6
21544 else
21545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21546 /* end confdefs.h.  */
21547 #include <alloca.h>
21548 int
21549 main ()
21550 {
21551 char *p = (char *) alloca (2 * sizeof (int));
21552                           if (p) return 0;
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 if ac_fn_c_try_link "$LINENO"; then :
21558   ac_cv_working_alloca_h=yes
21559 else
21560   ac_cv_working_alloca_h=no
21561 fi
21562 rm -f core conftest.err conftest.$ac_objext \
21563     conftest$ac_exeext conftest.$ac_ext
21564 fi
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21566 $as_echo "$ac_cv_working_alloca_h" >&6; }
21567 if test $ac_cv_working_alloca_h = yes; then
21568
21569 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21570
21571 fi
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21574 $as_echo_n "checking for alloca... " >&6; }
21575 if ${ac_cv_func_alloca_works+:} false; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21579 /* end confdefs.h.  */
21580 #ifdef __GNUC__
21581 # define alloca __builtin_alloca
21582 #else
21583 # ifdef _MSC_VER
21584 #  include <malloc.h>
21585 #  define alloca _alloca
21586 # else
21587 #  ifdef HAVE_ALLOCA_H
21588 #   include <alloca.h>
21589 #  else
21590 #   ifdef _AIX
21591  #pragma alloca
21592 #   else
21593 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21594 void *alloca (size_t);
21595 #    endif
21596 #   endif
21597 #  endif
21598 # endif
21599 #endif
21600
21601 int
21602 main ()
21603 {
21604 char *p = (char *) alloca (1);
21605                                     if (p) return 0;
21606   ;
21607   return 0;
21608 }
21609 _ACEOF
21610 if ac_fn_c_try_link "$LINENO"; then :
21611   ac_cv_func_alloca_works=yes
21612 else
21613   ac_cv_func_alloca_works=no
21614 fi
21615 rm -f core conftest.err conftest.$ac_objext \
21616     conftest$ac_exeext conftest.$ac_ext
21617 fi
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21619 $as_echo "$ac_cv_func_alloca_works" >&6; }
21620
21621 if test $ac_cv_func_alloca_works = yes; then
21622
21623 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21624
21625 else
21626   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21627 # that cause trouble.  Some versions do not even contain alloca or
21628 # contain a buggy version.  If you still want to use their alloca,
21629 # use ar to extract alloca.o from them instead of compiling alloca.c.
21630
21631 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21632
21633 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21634
21635
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21637 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21638 if ${ac_cv_os_cray+:} false; then :
21639   $as_echo_n "(cached) " >&6
21640 else
21641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h.  */
21643 #if defined CRAY && ! defined CRAY2
21644 webecray
21645 #else
21646 wenotbecray
21647 #endif
21648
21649 _ACEOF
21650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21651   $EGREP "webecray" >/dev/null 2>&1; then :
21652   ac_cv_os_cray=yes
21653 else
21654   ac_cv_os_cray=no
21655 fi
21656 rm -f conftest*
21657
21658 fi
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21660 $as_echo "$ac_cv_os_cray" >&6; }
21661 if test $ac_cv_os_cray = yes; then
21662   for ac_func in _getb67 GETB67 getb67; do
21663     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21665 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21666
21667 cat >>confdefs.h <<_ACEOF
21668 #define CRAY_STACKSEG_END $ac_func
21669 _ACEOF
21670
21671     break
21672 fi
21673
21674   done
21675 fi
21676
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21678 $as_echo_n "checking stack direction for C alloca... " >&6; }
21679 if ${ac_cv_c_stack_direction+:} false; then :
21680   $as_echo_n "(cached) " >&6
21681 else
21682   if test "$cross_compiling" = yes; then :
21683   ac_cv_c_stack_direction=0
21684 else
21685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h.  */
21687 $ac_includes_default
21688 int
21689 find_stack_direction (int *addr, int depth)
21690 {
21691   int dir, dummy = 0;
21692   if (! addr)
21693     addr = &dummy;
21694   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21695   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21696   return dir + dummy;
21697 }
21698
21699 int
21700 main (int argc, char **argv)
21701 {
21702   return find_stack_direction (0, argc + !argv + 20) < 0;
21703 }
21704 _ACEOF
21705 if ac_fn_c_try_run "$LINENO"; then :
21706   ac_cv_c_stack_direction=1
21707 else
21708   ac_cv_c_stack_direction=-1
21709 fi
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21711   conftest.$ac_objext conftest.beam conftest.$ac_ext
21712 fi
21713
21714 fi
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21716 $as_echo "$ac_cv_c_stack_direction" >&6; }
21717 cat >>confdefs.h <<_ACEOF
21718 #define STACK_DIRECTION $ac_cv_c_stack_direction
21719 _ACEOF
21720
21721
21722 fi
21723
21724 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21725 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21726   ac_have_decl=1
21727 else
21728   ac_have_decl=0
21729 fi
21730
21731 cat >>confdefs.h <<_ACEOF
21732 #define HAVE_DECL_STRERROR_R $ac_have_decl
21733 _ACEOF
21734
21735 for ac_func in strerror_r
21736 do :
21737   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21738 if test "x$ac_cv_func_strerror_r" = xyes; then :
21739   cat >>confdefs.h <<_ACEOF
21740 #define HAVE_STRERROR_R 1
21741 _ACEOF
21742
21743 fi
21744 done
21745
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21747 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21748 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21749   $as_echo_n "(cached) " >&6
21750 else
21751
21752     ac_cv_func_strerror_r_char_p=no
21753     if test $ac_cv_have_decl_strerror_r = yes; then
21754       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h.  */
21756 $ac_includes_default
21757 int
21758 main ()
21759 {
21760
21761           char buf[100];
21762           char x = *strerror_r (0, buf, sizeof buf);
21763           char *p = strerror_r (0, buf, sizeof buf);
21764           return !p || x;
21765
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 if ac_fn_c_try_compile "$LINENO"; then :
21771   ac_cv_func_strerror_r_char_p=yes
21772 fi
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774     else
21775       # strerror_r is not declared.  Choose between
21776       # systems that have relatively inaccessible declarations for the
21777       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21778       # former has a strerror_r that returns char*, while the latter
21779       # has a strerror_r that returns `int'.
21780       # This test should segfault on the DEC system.
21781       if test "$cross_compiling" = yes; then :
21782   :
21783 else
21784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h.  */
21786 $ac_includes_default
21787         extern char *strerror_r ();
21788 int
21789 main ()
21790 {
21791 char buf[100];
21792           char x = *strerror_r (0, buf, sizeof buf);
21793           return ! isalpha (x);
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 if ac_fn_c_try_run "$LINENO"; then :
21799   ac_cv_func_strerror_r_char_p=yes
21800 fi
21801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21802   conftest.$ac_objext conftest.beam conftest.$ac_ext
21803 fi
21804
21805     fi
21806
21807 fi
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21809 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21810 if test $ac_cv_func_strerror_r_char_p = yes; then
21811
21812 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21813
21814 fi
21815
21816
21817 ac_busted_vpath_in_make=no
21818 case "$build" in
21819  *-*-irix6.1*)  # 64 bit only
21820     # busted vpath?
21821     ;;
21822  *-*-irix6*)    # 6.2 (and later?)
21823     ac_busted_vpath_in_make=yes
21824     ;;
21825  *-*-solaris2.5.1)
21826     ac_busted_vpath_in_make=yes
21827     ;;
21828  *-*-unicosmp*)
21829     ac_busted_vpath_in_make=yes
21830     ;;
21831 esac
21832
21833 case "$ac_busted_vpath_in_make$srcdir" in
21834  yes.|no*)
21835     ;;
21836  *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
21837      '')
21838         as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
21839     esac
21840     ;;
21841 esac
21842
21843 case "$host" in
21844  *-*-aix4*)
21845         # Bug 2516:
21846         # Was *-*-aix[[4-9]]*
21847         # XXX only verified thru AIX6.  But...
21848         # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
21849         # that this support would be in 5.3, removed in 6, and added back.
21850         #
21851         # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
21852         # (returning ENOSYS).  I didn't check 4.2.  If, in the future,
21853         # IBM pulls its thumbs out long enough to implement clock_settime,
21854         # this conditional will need to change.  Maybe use AC_TRY_RUN
21855         # instead to try to set the time to itself and check errno.
21856     ;;
21857  *)
21858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21859 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21860 if ${ac_cv_search_clock_gettime+:} false; then :
21861   $as_echo_n "(cached) " >&6
21862 else
21863   ac_func_search_save_LIBS=$LIBS
21864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h.  */
21866
21867 /* Override any GCC internal prototype to avoid an error.
21868    Use char because int might match the return type of a GCC
21869    builtin and then its argument prototype would still apply.  */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char clock_gettime ();
21874 int
21875 main ()
21876 {
21877 return clock_gettime ();
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 for ac_lib in '' rt; do
21883   if test -z "$ac_lib"; then
21884     ac_res="none required"
21885   else
21886     ac_res=-l$ac_lib
21887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21888   fi
21889   if ac_fn_c_try_link "$LINENO"; then :
21890   ac_cv_search_clock_gettime=$ac_res
21891 fi
21892 rm -f core conftest.err conftest.$ac_objext \
21893     conftest$ac_exeext
21894   if ${ac_cv_search_clock_gettime+:} false; then :
21895   break
21896 fi
21897 done
21898 if ${ac_cv_search_clock_gettime+:} false; then :
21899
21900 else
21901   ac_cv_search_clock_gettime=no
21902 fi
21903 rm conftest.$ac_ext
21904 LIBS=$ac_func_search_save_LIBS
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21907 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21908 ac_res=$ac_cv_search_clock_gettime
21909 if test "$ac_res" != no; then :
21910   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21911   case "$ac_cv_search_clock_gettime" in
21912  'none required') ;;
21913  no) ;;
21914  *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
21915  esac
21916
21917 fi
21918
21919     for ac_func in clock_getres clock_gettime clock_settime
21920 do :
21921   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21924   cat >>confdefs.h <<_ACEOF
21925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21926 _ACEOF
21927
21928 fi
21929 done
21930
21931     ;;
21932 esac
21933
21934 for ac_func in getclock stime timegm strlcpy strlcat
21935 do :
21936   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21938 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21939   cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941 _ACEOF
21942
21943 fi
21944 done
21945
21946
21947 # Bug 2713
21948 LDADD_LIBUTIL=
21949
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
21951 $as_echo_n "checking for library containing snprintb... " >&6; }
21952 if ${ac_cv_search_snprintb+:} false; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955   ac_func_search_save_LIBS=$LIBS
21956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h.  */
21958
21959 /* Override any GCC internal prototype to avoid an error.
21960    Use char because int might match the return type of a GCC
21961    builtin and then its argument prototype would still apply.  */
21962 #ifdef __cplusplus
21963 extern "C"
21964 #endif
21965 char snprintb ();
21966 int
21967 main ()
21968 {
21969 return snprintb ();
21970   ;
21971   return 0;
21972 }
21973 _ACEOF
21974 for ac_lib in '' util; do
21975   if test -z "$ac_lib"; then
21976     ac_res="none required"
21977   else
21978     ac_res=-l$ac_lib
21979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21980   fi
21981   if ac_fn_c_try_link "$LINENO"; then :
21982   ac_cv_search_snprintb=$ac_res
21983 fi
21984 rm -f core conftest.err conftest.$ac_objext \
21985     conftest$ac_exeext
21986   if ${ac_cv_search_snprintb+:} false; then :
21987   break
21988 fi
21989 done
21990 if ${ac_cv_search_snprintb+:} false; then :
21991
21992 else
21993   ac_cv_search_snprintb=no
21994 fi
21995 rm conftest.$ac_ext
21996 LIBS=$ac_func_search_save_LIBS
21997 fi
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
21999 $as_echo "$ac_cv_search_snprintb" >&6; }
22000 ac_res=$ac_cv_search_snprintb
22001 if test "$ac_res" != no; then :
22002   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22003   case "$ac_cv_search_snprintb" in
22004  'none required') ;;
22005  no) ;;
22006  *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
22007  esac
22008
22009 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
22010
22011 fi
22012
22013
22014 #
22015 for ac_header in errno.h sys/socket.h sys/types.h time.h
22016 do :
22017   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22018 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22019 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22020   cat >>confdefs.h <<_ACEOF
22021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22022 _ACEOF
22023
22024 fi
22025
22026 done
22027
22028 for ac_header in net/if.h
22029 do :
22030   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
22031     #ifdef HAVE_SYS_SOCKET_H
22032     # include <sys/socket.h>
22033     #endif
22034
22035 "
22036 if test "x$ac_cv_header_net_if_h" = xyes; then :
22037   cat >>confdefs.h <<_ACEOF
22038 #define HAVE_NET_IF_H 1
22039 _ACEOF
22040
22041 fi
22042
22043 done
22044
22045 case "$host" in
22046  *-hp-hpux*)
22047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
22048 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
22049 if ${ntp_cv_predecl_mpinfou+:} false; then :
22050   $as_echo_n "(cached) " >&6
22051 else
22052
22053             np_cv_predecl_mpinfou=no
22054             case "$ac_cv_header_net_if_h" in
22055              no)
22056                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22057 /* end confdefs.h.  */
22058
22059                             typedef union mpinfou {
22060                                     struct pdk_mpinfo *pdkptr;
22061                                     struct mpinfo *pikptr;
22062                             } mpinfou_t;
22063                             #ifdef HAVE_SYS_SOCKET_H
22064                             # include <sys/socket.h>
22065                             #endif
22066                             #include <net/if.h>
22067
22068 int
22069 main ()
22070 {
22071
22072
22073
22074   ;
22075   return 0;
22076 }
22077 _ACEOF
22078 if ac_fn_c_try_compile "$LINENO"; then :
22079
22080                         ntp_cv_predecl_mpinfou=yes
22081                         ac_cv_header_net_if_h=yes
22082
22083
22084 fi
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086             esac
22087
22088
22089 fi
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
22091 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
22092     case "$ntp_cv_predecl_mpinfou" in
22093      yes)
22094         cat >>confdefs.h <<_ACEOF
22095 #ifndef MPINFOU_PREDECLARED
22096 # define MPINFOU_PREDECLARED
22097 typedef union mpinfou {
22098         struct pdk_mpinfo *pdkptr;
22099         struct mpinfo *pikptr;
22100 } mpinfou_t;
22101 #endif
22102 _ACEOF
22103
22104     esac
22105 esac
22106
22107 case "$host" in
22108  *-linux*)
22109     for ac_header in linux/if_addr.h
22110 do :
22111   ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
22112         #ifdef HAVE_SYS_SOCKET_H
22113         # include <sys/socket.h>
22114         #endif
22115
22116 "
22117 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
22118   cat >>confdefs.h <<_ACEOF
22119 #define HAVE_LINUX_IF_ADDR_H 1
22120 _ACEOF
22121
22122 fi
22123
22124 done
22125
22126
22127 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
22128
22129 esac
22130
22131 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
22132 do :
22133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22136   cat >>confdefs.h <<_ACEOF
22137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22138 _ACEOF
22139
22140 fi
22141
22142 done
22143
22144 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
22145 for ac_header in sys/sysctl.h
22146 do :
22147   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
22148     #if defined HAVE_SYS_PARAM_H
22149     # include <sys/param.h>
22150     #endif
22151
22152 "
22153 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
22154   cat >>confdefs.h <<_ACEOF
22155 #define HAVE_SYS_SYSCTL_H 1
22156 _ACEOF
22157
22158 fi
22159
22160 done
22161
22162 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
22163 do :
22164   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22165 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22167   cat >>confdefs.h <<_ACEOF
22168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22169 _ACEOF
22170
22171 fi
22172
22173 done
22174
22175
22176 for ac_header in resolv.h
22177 do :
22178   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
22179     #ifdef HAVE_SYS_TYPES_H
22180     # include <sys/types.h>
22181     #endif
22182     #ifdef HAVE_NETINET_IN_H
22183     # include <netinet/in.h>
22184     #endif
22185     #ifdef HAVE_ARPA_NAMESER_H
22186     # include <arpa/nameser.h>
22187     #endif
22188
22189 "
22190 if test "x$ac_cv_header_resolv_h" = xyes; then :
22191   cat >>confdefs.h <<_ACEOF
22192 #define HAVE_RESOLV_H 1
22193 _ACEOF
22194
22195 fi
22196
22197 done
22198
22199
22200 for ac_header in net/if_var.h
22201 do :
22202   ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
22203     #if HAVE_SYS_TYPES_H
22204     # include <sys/types.h>
22205     #endif
22206     #ifdef HAVE_SYS_SOCKET_H
22207     # include <sys/socket.h>
22208     #endif
22209     #ifdef HAVE_NETINET_IN_H
22210     # include <netinet/in.h>
22211     #endif
22212     #ifdef HAVE_NET_IF_H
22213     # include <net/if.h>
22214     #endif
22215
22216 "
22217 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
22218   cat >>confdefs.h <<_ACEOF
22219 #define HAVE_NET_IF_VAR_H 1
22220 _ACEOF
22221
22222 fi
22223
22224 done
22225
22226
22227 for ac_header in netinet/ip.h netinet/in_var.h
22228 do :
22229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22231     #ifdef HAVE_SYS_TYPES_H
22232     # include <sys/types.h>
22233     #endif
22234     #ifdef HAVE_SYS_SOCKET_H
22235     # include <sys/socket.h>
22236     #endif
22237     #ifdef HAVE_NET_IF_H
22238     # include <net/if.h>
22239     #endif
22240     #ifdef HAVE_NETINET_IN_H
22241     # include <netinet/in.h>
22242     #endif
22243     #ifdef HAVE_NET_IF_VAR_H
22244     # include <net/if_var.h>
22245     #endif
22246     #ifdef HAVE_NETINET_IN_SYSTM_H
22247     # include <netinet/in_systm.h>
22248     #endif
22249
22250 "
22251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22252   cat >>confdefs.h <<_ACEOF
22253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22254 _ACEOF
22255
22256 fi
22257
22258 done
22259
22260
22261 # HMS: Do we need to check for -lsocket before or after these tests?
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
22263 $as_echo_n "checking for library containing inet_pton... " >&6; }
22264 if ${ac_cv_search_inet_pton+:} false; then :
22265   $as_echo_n "(cached) " >&6
22266 else
22267   ac_func_search_save_LIBS=$LIBS
22268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h.  */
22270
22271 /* Override any GCC internal prototype to avoid an error.
22272    Use char because int might match the return type of a GCC
22273    builtin and then its argument prototype would still apply.  */
22274 #ifdef __cplusplus
22275 extern "C"
22276 #endif
22277 char inet_pton ();
22278 int
22279 main ()
22280 {
22281 return inet_pton ();
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 for ac_lib in '' nsl; do
22287   if test -z "$ac_lib"; then
22288     ac_res="none required"
22289   else
22290     ac_res=-l$ac_lib
22291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22292   fi
22293   if ac_fn_c_try_link "$LINENO"; then :
22294   ac_cv_search_inet_pton=$ac_res
22295 fi
22296 rm -f core conftest.err conftest.$ac_objext \
22297     conftest$ac_exeext
22298   if ${ac_cv_search_inet_pton+:} false; then :
22299   break
22300 fi
22301 done
22302 if ${ac_cv_search_inet_pton+:} false; then :
22303
22304 else
22305   ac_cv_search_inet_pton=no
22306 fi
22307 rm conftest.$ac_ext
22308 LIBS=$ac_func_search_save_LIBS
22309 fi
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
22311 $as_echo "$ac_cv_search_inet_pton" >&6; }
22312 ac_res=$ac_cv_search_inet_pton
22313 if test "$ac_res" != no; then :
22314   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315   case "$ac_cv_search_inet_pton" in
22316  'none required') ;;
22317  no) ;;
22318  *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
22319  esac
22320
22321 fi
22322
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22324 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22325 if ${ac_cv_search_inet_ntop+:} false; then :
22326   $as_echo_n "(cached) " >&6
22327 else
22328   ac_func_search_save_LIBS=$LIBS
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h.  */
22331
22332 /* Override any GCC internal prototype to avoid an error.
22333    Use char because int might match the return type of a GCC
22334    builtin and then its argument prototype would still apply.  */
22335 #ifdef __cplusplus
22336 extern "C"
22337 #endif
22338 char inet_ntop ();
22339 int
22340 main ()
22341 {
22342 return inet_ntop ();
22343   ;
22344   return 0;
22345 }
22346 _ACEOF
22347 for ac_lib in '' resolv; do
22348   if test -z "$ac_lib"; then
22349     ac_res="none required"
22350   else
22351     ac_res=-l$ac_lib
22352     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
22353   fi
22354   if ac_fn_c_try_link "$LINENO"; then :
22355   ac_cv_search_inet_ntop=$ac_res
22356 fi
22357 rm -f core conftest.err conftest.$ac_objext \
22358     conftest$ac_exeext
22359   if ${ac_cv_search_inet_ntop+:} false; then :
22360   break
22361 fi
22362 done
22363 if ${ac_cv_search_inet_ntop+:} false; then :
22364
22365 else
22366   ac_cv_search_inet_ntop=no
22367 fi
22368 rm conftest.$ac_ext
22369 LIBS=$ac_func_search_save_LIBS
22370 fi
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22372 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22373 ac_res=$ac_cv_search_inet_ntop
22374 if test "$ac_res" != no; then :
22375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22376   case "$ac_cv_search_inet_ntop" in
22377  'none required') ;;
22378  no) ;;
22379  *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
22380  esac
22381
22382 fi
22383
22384
22385 # [Bug 1628] On Solaris, we need -lxnet -lsocket.  Generalize this to
22386 # avoid keying on the OS name:  If we find socket functions in
22387 # libsocket, next try for them in libxnet without libsocket, if found,
22388 # list both.  If we simply tested libxnet first, we would find the
22389 # functions there and never add libsocket.  See also [Bug 660]
22390 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
22391 saved_LIBS=$LIBS
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22393 $as_echo_n "checking for library containing setsockopt... " >&6; }
22394 if ${ac_cv_search_setsockopt+:} false; then :
22395   $as_echo_n "(cached) " >&6
22396 else
22397   ac_func_search_save_LIBS=$LIBS
22398 cat 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
22405 extern "C"
22406 #endif
22407 char setsockopt ();
22408 int
22409 main ()
22410 {
22411 return setsockopt ();
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 for ac_lib in '' socket; 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_setsockopt=$ac_res
22425 fi
22426 rm -f core conftest.err conftest.$ac_objext \
22427     conftest$ac_exeext
22428   if ${ac_cv_search_setsockopt+:} false; then :
22429   break
22430 fi
22431 done
22432 if ${ac_cv_search_setsockopt+:} false; then :
22433
22434 else
22435   ac_cv_search_setsockopt=no
22436 fi
22437 rm conftest.$ac_ext
22438 LIBS=$ac_func_search_save_LIBS
22439 fi
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
22441 $as_echo "$ac_cv_search_setsockopt" >&6; }
22442 ac_res=$ac_cv_search_setsockopt
22443 if test "$ac_res" != no; then :
22444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22445   case "$ac_cv_search_setsockopt" in
22446  'none required') ;;
22447  no) ;;
22448  *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
22449  esac
22450
22451 fi
22452
22453 case "$ac_cv_search_setsockopt" in
22454  -lsocket)
22455     LIBS="$saved_LIBS"
22456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
22457 $as_echo_n "checking for library containing getsockopt... " >&6; }
22458 if ${ac_cv_search_getsockopt+:} false; then :
22459   $as_echo_n "(cached) " >&6
22460 else
22461   ac_func_search_save_LIBS=$LIBS
22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h.  */
22464
22465 /* Override any GCC internal prototype to avoid an error.
22466    Use char because int might match the return type of a GCC
22467    builtin and then its argument prototype would still apply.  */
22468 #ifdef __cplusplus
22469 extern "C"
22470 #endif
22471 char getsockopt ();
22472 int
22473 main ()
22474 {
22475 return getsockopt ();
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 for ac_lib in '' xnet; do
22481   if test -z "$ac_lib"; then
22482     ac_res="none required"
22483   else
22484     ac_res=-l$ac_lib
22485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22486   fi
22487   if ac_fn_c_try_link "$LINENO"; then :
22488   ac_cv_search_getsockopt=$ac_res
22489 fi
22490 rm -f core conftest.err conftest.$ac_objext \
22491     conftest$ac_exeext
22492   if ${ac_cv_search_getsockopt+:} false; then :
22493   break
22494 fi
22495 done
22496 if ${ac_cv_search_getsockopt+:} false; then :
22497
22498 else
22499   ac_cv_search_getsockopt=no
22500 fi
22501 rm conftest.$ac_ext
22502 LIBS=$ac_func_search_save_LIBS
22503 fi
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
22505 $as_echo "$ac_cv_search_getsockopt" >&6; }
22506 ac_res=$ac_cv_search_getsockopt
22507 if test "$ac_res" != no; then :
22508   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22509   case "$ac_cv_search_getsockopt" in
22510  'none required') ;;
22511  no) ;;
22512  *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
22513  esac
22514
22515 fi
22516
22517     # XXX Possible trouble here - reading the comments above and looking at the
22518     # code below I wonder if we'll add -lxnet when we don't need it.
22519     # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
22520     # there when it is not needed?
22521     case "$ac_cv_search_getsockopt" in
22522      -lxnet)
22523         LIBS="-lxnet -lsocket $saved_LIBS"
22524         ;;
22525      *) LIBS="-lsocket $saved_LIBS"
22526         ;;
22527     esac
22528     ;;
22529 esac
22530 { saved_LIBS=; unset saved_LIBS;}
22531
22532 # Bug 2427 - look for recvmsg here.
22533 for ac_func in recvmsg
22534 do :
22535   ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22536 if test "x$ac_cv_func_recvmsg" = xyes; then :
22537   cat >>confdefs.h <<_ACEOF
22538 #define HAVE_RECVMSG 1
22539 _ACEOF
22540
22541 fi
22542 done
22543
22544
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22546 $as_echo_n "checking for inline... " >&6; }
22547 if ${ac_cv_c_inline+:} false; then :
22548   $as_echo_n "(cached) " >&6
22549 else
22550   ac_cv_c_inline=no
22551 for ac_kw in inline __inline__ __inline; do
22552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h.  */
22554 #ifndef __cplusplus
22555 typedef int foo_t;
22556 static $ac_kw foo_t static_foo () {return 0; }
22557 $ac_kw foo_t foo () {return 0; }
22558 #endif
22559
22560 _ACEOF
22561 if ac_fn_c_try_compile "$LINENO"; then :
22562   ac_cv_c_inline=$ac_kw
22563 fi
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565   test "$ac_cv_c_inline" != no && break
22566 done
22567
22568 fi
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22570 $as_echo "$ac_cv_c_inline" >&6; }
22571
22572 case $ac_cv_c_inline in
22573   inline | yes) ;;
22574   *)
22575     case $ac_cv_c_inline in
22576       no) ac_val=;;
22577       *) ac_val=$ac_cv_c_inline;;
22578     esac
22579     cat >>confdefs.h <<_ACEOF
22580 #ifndef __cplusplus
22581 #define inline $ac_val
22582 #endif
22583 _ACEOF
22584     ;;
22585 esac
22586
22587
22588 case "$ac_cv_c_inline" in
22589  '')
22590     ;;
22591  *)
22592
22593 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
22594
22595
22596 esac
22597
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22599 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22600 if ${ac_cv_header_time+:} false; then :
22601   $as_echo_n "(cached) " >&6
22602 else
22603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h.  */
22605 #include <sys/types.h>
22606 #include <sys/time.h>
22607 #include <time.h>
22608
22609 int
22610 main ()
22611 {
22612 if ((struct tm *) 0)
22613 return 0;
22614   ;
22615   return 0;
22616 }
22617 _ACEOF
22618 if ac_fn_c_try_compile "$LINENO"; then :
22619   ac_cv_header_time=yes
22620 else
22621   ac_cv_header_time=no
22622 fi
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22626 $as_echo "$ac_cv_header_time" >&6; }
22627 if test $ac_cv_header_time = yes; then
22628
22629 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22630
22631 fi
22632
22633 # The cast to long int works around a bug in the HP C Compiler
22634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22636 # This bug is HP SR number 8606223364.
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22638 $as_echo_n "checking size of time_t... " >&6; }
22639 if ${ac_cv_sizeof_time_t+:} false; then :
22640   $as_echo_n "(cached) " >&6
22641 else
22642   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
22643
22644 else
22645   if test "$ac_cv_type_time_t" = yes; then
22646      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22648 as_fn_error 77 "cannot compute sizeof (time_t)
22649 See \`config.log' for more details" "$LINENO" 5; }
22650    else
22651      ac_cv_sizeof_time_t=0
22652    fi
22653 fi
22654
22655 fi
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22657 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22658
22659
22660
22661 cat >>confdefs.h <<_ACEOF
22662 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22663 _ACEOF
22664
22665
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22667 $as_echo_n "checking whether char is unsigned... " >&6; }
22668 if ${ac_cv_c_char_unsigned+:} false; then :
22669   $as_echo_n "(cached) " >&6
22670 else
22671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h.  */
22673 $ac_includes_default
22674 int
22675 main ()
22676 {
22677 static int test_array [1 - 2 * !(((char) -1) < 0)];
22678 test_array [0] = 0;
22679 return test_array [0];
22680
22681   ;
22682   return 0;
22683 }
22684 _ACEOF
22685 if ac_fn_c_try_compile "$LINENO"; then :
22686   ac_cv_c_char_unsigned=no
22687 else
22688   ac_cv_c_char_unsigned=yes
22689 fi
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 fi
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22693 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22694 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22695   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22696
22697 fi
22698                 # The cast to long int works around a bug in the HP C Compiler
22699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22701 # This bug is HP SR number 8606223364.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
22703 $as_echo_n "checking size of signed char... " >&6; }
22704 if ${ac_cv_sizeof_signed_char+:} false; then :
22705   $as_echo_n "(cached) " >&6
22706 else
22707   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char"        "$ac_includes_default"; then :
22708
22709 else
22710   if test "$ac_cv_type_signed_char" = yes; then
22711      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22713 as_fn_error 77 "cannot compute sizeof (signed char)
22714 See \`config.log' for more details" "$LINENO" 5; }
22715    else
22716      ac_cv_sizeof_signed_char=0
22717    fi
22718 fi
22719
22720 fi
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
22722 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
22723
22724
22725
22726 cat >>confdefs.h <<_ACEOF
22727 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
22728 _ACEOF
22729
22730
22731 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
22732 if test "x$ac_cv_type_s_char" = xyes; then :
22733
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_S_CHAR 1
22736 _ACEOF
22737
22738
22739 fi
22740 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22741 if test "x$ac_cv_type_long_long" = xyes; then :
22742
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_LONG_LONG 1
22745 _ACEOF
22746
22747
22748 fi
22749
22750 # The cast to long int works around a bug in the HP C Compiler
22751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22753 # This bug is HP SR number 8606223364.
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22755 $as_echo_n "checking size of short... " >&6; }
22756 if ${ac_cv_sizeof_short+:} false; then :
22757   $as_echo_n "(cached) " >&6
22758 else
22759   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
22760
22761 else
22762   if test "$ac_cv_type_short" = yes; then
22763      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22765 as_fn_error 77 "cannot compute sizeof (short)
22766 See \`config.log' for more details" "$LINENO" 5; }
22767    else
22768      ac_cv_sizeof_short=0
22769    fi
22770 fi
22771
22772 fi
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22774 $as_echo "$ac_cv_sizeof_short" >&6; }
22775
22776
22777
22778 cat >>confdefs.h <<_ACEOF
22779 #define SIZEOF_SHORT $ac_cv_sizeof_short
22780 _ACEOF
22781
22782
22783 # The cast to long int works around a bug in the HP C Compiler
22784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22786 # This bug is HP SR number 8606223364.
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22788 $as_echo_n "checking size of int... " >&6; }
22789 if ${ac_cv_sizeof_int+:} false; then :
22790   $as_echo_n "(cached) " >&6
22791 else
22792   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
22793
22794 else
22795   if test "$ac_cv_type_int" = yes; then
22796      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22798 as_fn_error 77 "cannot compute sizeof (int)
22799 See \`config.log' for more details" "$LINENO" 5; }
22800    else
22801      ac_cv_sizeof_int=0
22802    fi
22803 fi
22804
22805 fi
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22807 $as_echo "$ac_cv_sizeof_int" >&6; }
22808
22809
22810
22811 cat >>confdefs.h <<_ACEOF
22812 #define SIZEOF_INT $ac_cv_sizeof_int
22813 _ACEOF
22814
22815
22816 # The cast to long int works around a bug in the HP C Compiler
22817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22819 # This bug is HP SR number 8606223364.
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22821 $as_echo_n "checking size of long... " >&6; }
22822 if ${ac_cv_sizeof_long+:} false; then :
22823   $as_echo_n "(cached) " >&6
22824 else
22825   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
22826
22827 else
22828   if test "$ac_cv_type_long" = yes; then
22829      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22831 as_fn_error 77 "cannot compute sizeof (long)
22832 See \`config.log' for more details" "$LINENO" 5; }
22833    else
22834      ac_cv_sizeof_long=0
22835    fi
22836 fi
22837
22838 fi
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22840 $as_echo "$ac_cv_sizeof_long" >&6; }
22841
22842
22843
22844 cat >>confdefs.h <<_ACEOF
22845 #define SIZEOF_LONG $ac_cv_sizeof_long
22846 _ACEOF
22847
22848
22849
22850 case "$ac_cv_type_long_long" in
22851  no)
22852     ;;
22853  *)
22854     # The cast to long int works around a bug in the HP C Compiler
22855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22857 # This bug is HP SR number 8606223364.
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
22859 $as_echo_n "checking size of long long... " >&6; }
22860 if ${ac_cv_sizeof_long_long+:} false; then :
22861   $as_echo_n "(cached) " >&6
22862 else
22863   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
22864
22865 else
22866   if test "$ac_cv_type_long_long" = yes; then
22867      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22869 as_fn_error 77 "cannot compute sizeof (long long)
22870 See \`config.log' for more details" "$LINENO" 5; }
22871    else
22872      ac_cv_sizeof_long_long=0
22873    fi
22874 fi
22875
22876 fi
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
22878 $as_echo "$ac_cv_sizeof_long_long" >&6; }
22879
22880
22881
22882 cat >>confdefs.h <<_ACEOF
22883 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22884 _ACEOF
22885
22886
22887     ;;
22888 esac
22889
22890 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
22891  *yes)
22892     # We have a typedef for s_char.  Might as well believe it...
22893     ;;
22894  no0no)
22895     # We have signed chars, can't say 'signed char', no s_char typedef.
22896
22897 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22898
22899     ;;
22900  no1no)
22901     # We have signed chars, can say 'signed char', no s_char typedef.
22902
22903 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22904
22905     ;;
22906  yes0no)
22907     # We have unsigned chars, can't say 'signed char', no s_char typedef.
22908     as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
22909     ;;
22910  yes1no)
22911     # We have unsigned chars, can say 'signed char', no s_char typedef.
22912
22913 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
22914
22915     ;;
22916 esac
22917
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22919 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22920 if ${ac_cv_type_uid_t+:} false; then :
22921   $as_echo_n "(cached) " >&6
22922 else
22923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h.  */
22925 #include <sys/types.h>
22926
22927 _ACEOF
22928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22929   $EGREP "uid_t" >/dev/null 2>&1; then :
22930   ac_cv_type_uid_t=yes
22931 else
22932   ac_cv_type_uid_t=no
22933 fi
22934 rm -f conftest*
22935
22936 fi
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22938 $as_echo "$ac_cv_type_uid_t" >&6; }
22939 if test $ac_cv_type_uid_t = no; then
22940
22941 $as_echo "#define uid_t int" >>confdefs.h
22942
22943
22944 $as_echo "#define gid_t int" >>confdefs.h
22945
22946 fi
22947
22948
22949
22950
22951
22952
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22954 $as_echo_n "checking if we're including debugging code... " >&6; }
22955 # Check whether --enable-debugging was given.
22956 if test "${enable_debugging+set}" = set; then :
22957   enableval=$enable_debugging; ntp_ok=$enableval
22958 else
22959   ntp_ok=yes
22960
22961 fi
22962
22963 case "$ntp_ok" in
22964  yes)
22965
22966 $as_echo "#define DEBUG 1" >>confdefs.h
22967
22968 esac
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22970 $as_echo "$ntp_ok" >&6; }
22971
22972
22973
22974 # check if we can compile with pthreads
22975 for ac_header in semaphore.h
22976 do :
22977   ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
22978 if test "x$ac_cv_header_semaphore_h" = xyes; then :
22979   cat >>confdefs.h <<_ACEOF
22980 #define HAVE_SEMAPHORE_H 1
22981 _ACEOF
22982
22983 fi
22984
22985 done
22986
22987 for ac_func in socketpair
22988 do :
22989   ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22990 if test "x$ac_cv_func_socketpair" = xyes; then :
22991   cat >>confdefs.h <<_ACEOF
22992 #define HAVE_SOCKETPAIR 1
22993 _ACEOF
22994
22995 fi
22996 done
22997
22998 # Check whether --enable-thread-support was given.
22999 if test "${enable_thread_support+set}" = set; then :
23000   enableval=$enable_thread_support;
23001 else
23002   enable_thread_support=yes
23003
23004 fi
23005
23006 have_pthreads=no
23007 case "$enable_thread_support" in
23008  no) ;;
23009  *)
23010     ol_found_pthreads=no
23011
23012
23013
23014 ac_ext=c
23015 ac_cpp='$CPP $CPPFLAGS'
23016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23019
23020 # OpenLDAP --with-threads
23021
23022 # Check whether --with-threads was given.
23023 if test "${with_threads+set}" = set; then :
23024   withval=$with_threads;
23025         ol_arg=invalid
23026         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
23027                 if test "$withval" = "$ol_val" ; then
23028                         ol_arg="$ol_val"
23029                 fi
23030         done
23031         if test "$ol_arg" = "invalid" ; then
23032                 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
23033         fi
23034         ol_with_threads="$ol_arg"
23035
23036 else
23037         ol_with_threads="auto"
23038 fi
23039 # end --with-threads
23040
23041
23042 case "$ol_with_threads$host" in
23043  auto*-*-solaris2.[0-6])
23044         ol_with_threads=no
23045     ;;
23046 esac
23047
23048
23049 ol_aix_threads=no
23050 case "$host" in
23051 *-*-aix*)       if test -z "$CC" ; then
23052                 case "$ol_with_threads" in
23053                 auto | yes |  posix) ol_aix_threads=yes ;;
23054                 esac
23055         fi
23056 ;;
23057 esac
23058
23059 if test $ol_aix_threads = yes ; then
23060         if test -z "${CC}" ; then
23061                 for ac_prog in cc_r xlc_r cc
23062 do
23063   # Extract the first word of "$ac_prog", so it can be a program name with args.
23064 set dummy $ac_prog; ac_word=$2
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23066 $as_echo_n "checking for $ac_word... " >&6; }
23067 if ${ac_cv_prog_CC+:} false; then :
23068   $as_echo_n "(cached) " >&6
23069 else
23070   if test -n "$CC"; then
23071   ac_cv_prog_CC="$CC" # Let the user override the test.
23072 else
23073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23074 for as_dir in $PATH
23075 do
23076   IFS=$as_save_IFS
23077   test -z "$as_dir" && as_dir=.
23078     for ac_exec_ext in '' $ac_executable_extensions; do
23079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23080     ac_cv_prog_CC="$ac_prog"
23081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23082     break 2
23083   fi
23084 done
23085   done
23086 IFS=$as_save_IFS
23087
23088 fi
23089 fi
23090 CC=$ac_cv_prog_CC
23091 if test -n "$CC"; then
23092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
23093 $as_echo "$CC" >&6; }
23094 else
23095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096 $as_echo "no" >&6; }
23097 fi
23098
23099
23100   test -n "$CC" && break
23101 done
23102
23103
23104                 if test "$CC" = cc ; then
23105                                                 if test $ol_with_threads != auto ; then
23106                                 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
23107                         else
23108                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
23109 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
23110                         fi
23111                         ol_with_threads=no
23112                 fi
23113         fi
23114
23115         case ${CC} in cc_r | xlc_r)
23116                 ol_with_threads=posix
23117                 ol_cv_pthread_create=yes
23118                 ;;
23119         esac
23120 fi
23121
23122 ol_link_threads=no
23123 # OpenLDAP --with-yielding_select
23124
23125 # Check whether --with-yielding_select was given.
23126 if test "${with_yielding_select+set}" = set; then :
23127   withval=$with_yielding_select;
23128         ol_arg=invalid
23129         for ol_val in auto yes no manual  ; do
23130                 if test "$withval" = "$ol_val" ; then
23131                         ol_arg="$ol_val"
23132                 fi
23133         done
23134         if test "$ol_arg" = "invalid" ; then
23135                 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
23136         fi
23137         ol_with_yielding_select="$ol_arg"
23138
23139 else
23140         ol_with_yielding_select="auto"
23141 fi
23142 # end --with-yielding_select
23143
23144
23145 case $ol_with_threads in auto | yes | nt)
23146
23147
23148         ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
23149 if test "x$ac_cv_func__beginthread" = xyes; then :
23150
23151 fi
23152
23153
23154         if test $ac_cv_func__beginthread = yes ; then
23155
23156 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
23157
23158                 ol_cv_nt_threads=yes
23159         fi
23160
23161
23162         if test "$ol_cv_nt_threads" = yes ; then
23163                 ol_link_threads=nt
23164                 ol_with_threads=found
23165                 ol_with_yielding_select=yes
23166
23167
23168 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
23169
23170
23171 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
23172
23173         fi
23174
23175         if test $ol_with_threads = nt ; then
23176                 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
23177         fi
23178         ;;
23179 esac
23180
23181 case $ol_with_threads in auto | yes | posix)
23182
23183         for ac_header in pthread.h
23184 do :
23185   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23186 if test "x$ac_cv_header_pthread_h" = xyes; then :
23187   cat >>confdefs.h <<_ACEOF
23188 #define HAVE_PTHREAD_H 1
23189 _ACEOF
23190
23191 fi
23192
23193 done
23194
23195
23196         if test $ac_cv_header_pthread_h = yes ; then
23197                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
23198 $as_echo_n "checking POSIX thread version... " >&6; }
23199 if ${ol_cv_pthread_version+:} false; then :
23200   $as_echo_n "(cached) " >&6
23201 else
23202
23203         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h.  */
23205
23206 #               include <pthread.h>
23207
23208 int
23209 main ()
23210 {
23211
23212                 int i = PTHREAD_CREATE_JOINABLE;
23213
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 if ac_fn_c_try_compile "$LINENO"; then :
23219
23220         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h.  */
23222 #include <pthread.h>
23223
23224 _ACEOF
23225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23226   $EGREP "pthread_detach" >/dev/null 2>&1; then :
23227   ol_cv_pthread_version=10
23228 else
23229   ol_cv_pthread_version=8
23230 fi
23231 rm -f conftest*
23232
23233 else
23234
23235         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h.  */
23237
23238 #               include <pthread.h>
23239 #               ifdef PTHREAD_CREATE_UNDETACHED
23240                 draft7
23241 #               endif
23242
23243 _ACEOF
23244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23245   $EGREP "draft7" >/dev/null 2>&1; then :
23246   ol_cv_pthread_version=7
23247 else
23248
23249         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23250 /* end confdefs.h.  */
23251 #include <pthread.h>
23252
23253 _ACEOF
23254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23255   $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
23256   ol_cv_pthread_version=6
23257 else
23258
23259         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h.  */
23261
23262 #               include <pthread.h>
23263 #ifdef          PTHREAD_MUTEX_INITIALIZER
23264                 draft5
23265 #endif
23266
23267 _ACEOF
23268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23269   $EGREP "draft5" >/dev/null 2>&1; then :
23270   ol_cv_pthread_version=5
23271 else
23272   ol_cv_pthread_version=4
23273 fi
23274 rm -f conftest*
23275
23276 fi
23277 rm -f conftest*
23278
23279 fi
23280 rm -f conftest*
23281
23282 fi
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284
23285 fi
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
23287 $as_echo "$ol_cv_pthread_version" >&6; }
23288
23289
23290                 if test $ol_cv_pthread_version != 0 ; then
23291
23292 cat >>confdefs.h <<_ACEOF
23293 #define HAVE_PTHREADS $ol_cv_pthread_version
23294 _ACEOF
23295
23296                 else
23297                         as_fn_error $? "unknown pthread version" "$LINENO" 5
23298                 fi
23299
23300                 # consider threads found
23301                 ol_with_threads=found
23302
23303
23304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23305 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23306 if ${ol_cv_header_linux_threads+:} false; then :
23307   $as_echo_n "(cached) " >&6
23308 else
23309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23310 /* end confdefs.h.  */
23311 #include <pthread.h>
23312 _ACEOF
23313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23314   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23315   ol_cv_header_linux_threads=yes
23316 else
23317   ol_cv_header_linux_threads=no
23318 fi
23319 rm -f conftest*
23320
23321
23322 fi
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23324 $as_echo "$ol_cv_header_linux_threads" >&6; }
23325         if test $ol_cv_header_linux_threads = yes; then
23326
23327 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23328
23329         fi
23330
23331
23332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
23333 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
23334 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
23335   $as_echo_n "(cached) " >&6
23336 else
23337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h.  */
23339 #include <pthread.h>
23340 #ifdef _POSIX_THREAD_IS_GNU_PTH
23341         __gnu_pth__;
23342 #endif
23343
23344 _ACEOF
23345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23346   $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
23347   ol_cv_header_gnu_pth_pthread_h=yes
23348 else
23349   ol_cv_header_gnu_pth_pthread_h=no
23350 fi
23351 rm -f conftest*
23352
23353
23354 fi
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
23356 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
23357
23358
23359                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
23360                         for ac_header in sched.h
23361 do :
23362   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23363 if test "x$ac_cv_header_sched_h" = xyes; then :
23364   cat >>confdefs.h <<_ACEOF
23365 #define HAVE_SCHED_H 1
23366 _ACEOF
23367
23368 fi
23369
23370 done
23371
23372                 fi
23373
23374
23375                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
23376 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
23377 if ${ol_cv_pthread_create+:} false; then :
23378   $as_echo_n "(cached) " >&6
23379 else
23380
23381                         if test "$cross_compiling" = yes; then :
23382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383 /* end confdefs.h.  */
23384
23385 /* pthread test headers */
23386 #include <pthread.h>
23387 #if HAVE_PTHREADS < 7
23388 #include <errno.h>
23389 #endif
23390 #ifndef NULL
23391 #define NULL (void*)0
23392 #endif
23393
23394 static void *task(p)
23395         void *p;
23396 {
23397         return (void *) (p == NULL);
23398 }
23399
23400 int
23401 main ()
23402 {
23403
23404         /* pthread test function */
23405 #ifndef PTHREAD_CREATE_DETACHED
23406 #define PTHREAD_CREATE_DETACHED 1
23407 #endif
23408         pthread_t t;
23409         int status;
23410         int detach = PTHREAD_CREATE_DETACHED;
23411
23412 #if HAVE_PTHREADS > 4
23413         /* Final pthreads */
23414         pthread_attr_t attr;
23415
23416         status = pthread_attr_init(&attr);
23417         if( status ) return status;
23418
23419 #if HAVE_PTHREADS < 7
23420         status = pthread_attr_setdetachstate(&attr, &detach);
23421         if( status < 0 ) status = errno;
23422 #else
23423         status = pthread_attr_setdetachstate(&attr, detach);
23424 #endif
23425         if( status ) return status;
23426         status = pthread_create( &t, &attr, task, NULL );
23427 #if HAVE_PTHREADS < 7
23428         if( status < 0 ) status = errno;
23429 #endif
23430         if( status ) return status;
23431 #else
23432         /* Draft 4 pthreads */
23433         status = pthread_create( &t, pthread_attr_default, task, NULL );
23434         if( status ) return errno;
23435
23436         /* give thread a chance to complete */
23437         /* it should remain joinable and hence detachable */
23438         sleep( 1 );
23439
23440         status = pthread_detach( &t );
23441         if( status ) return errno;
23442 #endif
23443
23444 #ifdef HAVE_LINUX_THREADS
23445         pthread_kill_other_threads_np();
23446 #endif
23447
23448         return 0;
23449
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 if ac_fn_c_try_link "$LINENO"; then :
23455   ol_cv_pthread_create=yes
23456 else
23457   ol_cv_pthread_create=no
23458 fi
23459 rm -f core conftest.err conftest.$ac_objext \
23460     conftest$ac_exeext conftest.$ac_ext
23461 else
23462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h.  */
23464
23465
23466 /* pthread test headers */
23467 #include <pthread.h>
23468 #if HAVE_PTHREADS < 7
23469 #include <errno.h>
23470 #endif
23471 #ifndef NULL
23472 #define NULL (void*)0
23473 #endif
23474
23475 static void *task(p)
23476         void *p;
23477 {
23478         return (void *) (p == NULL);
23479 }
23480
23481
23482 int main(argc, argv)
23483         int argc;
23484         char **argv;
23485 {
23486
23487         /* pthread test function */
23488 #ifndef PTHREAD_CREATE_DETACHED
23489 #define PTHREAD_CREATE_DETACHED 1
23490 #endif
23491         pthread_t t;
23492         int status;
23493         int detach = PTHREAD_CREATE_DETACHED;
23494
23495 #if HAVE_PTHREADS > 4
23496         /* Final pthreads */
23497         pthread_attr_t attr;
23498
23499         status = pthread_attr_init(&attr);
23500         if( status ) return status;
23501
23502 #if HAVE_PTHREADS < 7
23503         status = pthread_attr_setdetachstate(&attr, &detach);
23504         if( status < 0 ) status = errno;
23505 #else
23506         status = pthread_attr_setdetachstate(&attr, detach);
23507 #endif
23508         if( status ) return status;
23509         status = pthread_create( &t, &attr, task, NULL );
23510 #if HAVE_PTHREADS < 7
23511         if( status < 0 ) status = errno;
23512 #endif
23513         if( status ) return status;
23514 #else
23515         /* Draft 4 pthreads */
23516         status = pthread_create( &t, pthread_attr_default, task, NULL );
23517         if( status ) return errno;
23518
23519         /* give thread a chance to complete */
23520         /* it should remain joinable and hence detachable */
23521         sleep( 1 );
23522
23523         status = pthread_detach( &t );
23524         if( status ) return errno;
23525 #endif
23526
23527 #ifdef HAVE_LINUX_THREADS
23528         pthread_kill_other_threads_np();
23529 #endif
23530
23531         return 0;
23532
23533 }
23534
23535 _ACEOF
23536 if ac_fn_c_try_run "$LINENO"; then :
23537   ol_cv_pthread_create=yes
23538 else
23539   ol_cv_pthread_create=no
23540 fi
23541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23542   conftest.$ac_objext conftest.beam conftest.$ac_ext
23543 fi
23544
23545 fi
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
23547 $as_echo "$ol_cv_pthread_create" >&6; }
23548
23549                 if test $ol_cv_pthread_create != no ; then
23550                         ol_link_threads=posix
23551                         ol_link_pthreads=""
23552                 fi
23553
23554                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
23555 if test "$ol_link_threads" = no ; then
23556         # try -kthread
23557         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
23558 $as_echo_n "checking for pthread link with -kthread... " >&6; }
23559 if ${ol_cv_pthread_kthread+:} false; then :
23560   $as_echo_n "(cached) " >&6
23561 else
23562
23563                 # save the flags
23564                 ol_LIBS="$LIBS"
23565                 LIBS="-kthread $LIBS"
23566
23567                 if test "$cross_compiling" = yes; then :
23568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h.  */
23570
23571 /* pthread test headers */
23572 #include <pthread.h>
23573 #if HAVE_PTHREADS < 7
23574 #include <errno.h>
23575 #endif
23576 #ifndef NULL
23577 #define NULL (void*)0
23578 #endif
23579
23580 static void *task(p)
23581         void *p;
23582 {
23583         return (void *) (p == NULL);
23584 }
23585
23586 int
23587 main ()
23588 {
23589
23590         /* pthread test function */
23591 #ifndef PTHREAD_CREATE_DETACHED
23592 #define PTHREAD_CREATE_DETACHED 1
23593 #endif
23594         pthread_t t;
23595         int status;
23596         int detach = PTHREAD_CREATE_DETACHED;
23597
23598 #if HAVE_PTHREADS > 4
23599         /* Final pthreads */
23600         pthread_attr_t attr;
23601
23602         status = pthread_attr_init(&attr);
23603         if( status ) return status;
23604
23605 #if HAVE_PTHREADS < 7
23606         status = pthread_attr_setdetachstate(&attr, &detach);
23607         if( status < 0 ) status = errno;
23608 #else
23609         status = pthread_attr_setdetachstate(&attr, detach);
23610 #endif
23611         if( status ) return status;
23612         status = pthread_create( &t, &attr, task, NULL );
23613 #if HAVE_PTHREADS < 7
23614         if( status < 0 ) status = errno;
23615 #endif
23616         if( status ) return status;
23617 #else
23618         /* Draft 4 pthreads */
23619         status = pthread_create( &t, pthread_attr_default, task, NULL );
23620         if( status ) return errno;
23621
23622         /* give thread a chance to complete */
23623         /* it should remain joinable and hence detachable */
23624         sleep( 1 );
23625
23626         status = pthread_detach( &t );
23627         if( status ) return errno;
23628 #endif
23629
23630 #ifdef HAVE_LINUX_THREADS
23631         pthread_kill_other_threads_np();
23632 #endif
23633
23634         return 0;
23635
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 if ac_fn_c_try_link "$LINENO"; then :
23641   ol_cv_pthread_kthread=yes
23642 else
23643   ol_cv_pthread_kthread=no
23644 fi
23645 rm -f core conftest.err conftest.$ac_objext \
23646     conftest$ac_exeext conftest.$ac_ext
23647 else
23648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649 /* end confdefs.h.  */
23650
23651
23652 /* pthread test headers */
23653 #include <pthread.h>
23654 #if HAVE_PTHREADS < 7
23655 #include <errno.h>
23656 #endif
23657 #ifndef NULL
23658 #define NULL (void*)0
23659 #endif
23660
23661 static void *task(p)
23662         void *p;
23663 {
23664         return (void *) (p == NULL);
23665 }
23666
23667
23668 int main(argc, argv)
23669         int argc;
23670         char **argv;
23671 {
23672
23673         /* pthread test function */
23674 #ifndef PTHREAD_CREATE_DETACHED
23675 #define PTHREAD_CREATE_DETACHED 1
23676 #endif
23677         pthread_t t;
23678         int status;
23679         int detach = PTHREAD_CREATE_DETACHED;
23680
23681 #if HAVE_PTHREADS > 4
23682         /* Final pthreads */
23683         pthread_attr_t attr;
23684
23685         status = pthread_attr_init(&attr);
23686         if( status ) return status;
23687
23688 #if HAVE_PTHREADS < 7
23689         status = pthread_attr_setdetachstate(&attr, &detach);
23690         if( status < 0 ) status = errno;
23691 #else
23692         status = pthread_attr_setdetachstate(&attr, detach);
23693 #endif
23694         if( status ) return status;
23695         status = pthread_create( &t, &attr, task, NULL );
23696 #if HAVE_PTHREADS < 7
23697         if( status < 0 ) status = errno;
23698 #endif
23699         if( status ) return status;
23700 #else
23701         /* Draft 4 pthreads */
23702         status = pthread_create( &t, pthread_attr_default, task, NULL );
23703         if( status ) return errno;
23704
23705         /* give thread a chance to complete */
23706         /* it should remain joinable and hence detachable */
23707         sleep( 1 );
23708
23709         status = pthread_detach( &t );
23710         if( status ) return errno;
23711 #endif
23712
23713 #ifdef HAVE_LINUX_THREADS
23714         pthread_kill_other_threads_np();
23715 #endif
23716
23717         return 0;
23718
23719 }
23720
23721 _ACEOF
23722 if ac_fn_c_try_run "$LINENO"; then :
23723   ol_cv_pthread_kthread=yes
23724 else
23725   ol_cv_pthread_kthread=no
23726 fi
23727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23728   conftest.$ac_objext conftest.beam conftest.$ac_ext
23729 fi
23730
23731
23732                 # restore the LIBS
23733                 LIBS="$ol_LIBS"
23734
23735 fi
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
23737 $as_echo "$ol_cv_pthread_kthread" >&6; }
23738
23739         if test $ol_cv_pthread_kthread = yes ; then
23740                 ol_link_pthreads="-kthread"
23741                 ol_link_threads=posix
23742         fi
23743 fi
23744
23745                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
23746 if test "$ol_link_threads" = no ; then
23747         # try -pthread
23748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
23749 $as_echo_n "checking for pthread link with -pthread... " >&6; }
23750 if ${ol_cv_pthread_pthread+:} false; then :
23751   $as_echo_n "(cached) " >&6
23752 else
23753
23754                 # save the flags
23755                 ol_LIBS="$LIBS"
23756                 LIBS="-pthread $LIBS"
23757
23758                 if test "$cross_compiling" = yes; then :
23759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23760 /* end confdefs.h.  */
23761
23762 /* pthread test headers */
23763 #include <pthread.h>
23764 #if HAVE_PTHREADS < 7
23765 #include <errno.h>
23766 #endif
23767 #ifndef NULL
23768 #define NULL (void*)0
23769 #endif
23770
23771 static void *task(p)
23772         void *p;
23773 {
23774         return (void *) (p == NULL);
23775 }
23776
23777 int
23778 main ()
23779 {
23780
23781         /* pthread test function */
23782 #ifndef PTHREAD_CREATE_DETACHED
23783 #define PTHREAD_CREATE_DETACHED 1
23784 #endif
23785         pthread_t t;
23786         int status;
23787         int detach = PTHREAD_CREATE_DETACHED;
23788
23789 #if HAVE_PTHREADS > 4
23790         /* Final pthreads */
23791         pthread_attr_t attr;
23792
23793         status = pthread_attr_init(&attr);
23794         if( status ) return status;
23795
23796 #if HAVE_PTHREADS < 7
23797         status = pthread_attr_setdetachstate(&attr, &detach);
23798         if( status < 0 ) status = errno;
23799 #else
23800         status = pthread_attr_setdetachstate(&attr, detach);
23801 #endif
23802         if( status ) return status;
23803         status = pthread_create( &t, &attr, task, NULL );
23804 #if HAVE_PTHREADS < 7
23805         if( status < 0 ) status = errno;
23806 #endif
23807         if( status ) return status;
23808 #else
23809         /* Draft 4 pthreads */
23810         status = pthread_create( &t, pthread_attr_default, task, NULL );
23811         if( status ) return errno;
23812
23813         /* give thread a chance to complete */
23814         /* it should remain joinable and hence detachable */
23815         sleep( 1 );
23816
23817         status = pthread_detach( &t );
23818         if( status ) return errno;
23819 #endif
23820
23821 #ifdef HAVE_LINUX_THREADS
23822         pthread_kill_other_threads_np();
23823 #endif
23824
23825         return 0;
23826
23827   ;
23828   return 0;
23829 }
23830 _ACEOF
23831 if ac_fn_c_try_link "$LINENO"; then :
23832   ol_cv_pthread_pthread=yes
23833 else
23834   ol_cv_pthread_pthread=no
23835 fi
23836 rm -f core conftest.err conftest.$ac_objext \
23837     conftest$ac_exeext conftest.$ac_ext
23838 else
23839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h.  */
23841
23842
23843 /* pthread test headers */
23844 #include <pthread.h>
23845 #if HAVE_PTHREADS < 7
23846 #include <errno.h>
23847 #endif
23848 #ifndef NULL
23849 #define NULL (void*)0
23850 #endif
23851
23852 static void *task(p)
23853         void *p;
23854 {
23855         return (void *) (p == NULL);
23856 }
23857
23858
23859 int main(argc, argv)
23860         int argc;
23861         char **argv;
23862 {
23863
23864         /* pthread test function */
23865 #ifndef PTHREAD_CREATE_DETACHED
23866 #define PTHREAD_CREATE_DETACHED 1
23867 #endif
23868         pthread_t t;
23869         int status;
23870         int detach = PTHREAD_CREATE_DETACHED;
23871
23872 #if HAVE_PTHREADS > 4
23873         /* Final pthreads */
23874         pthread_attr_t attr;
23875
23876         status = pthread_attr_init(&attr);
23877         if( status ) return status;
23878
23879 #if HAVE_PTHREADS < 7
23880         status = pthread_attr_setdetachstate(&attr, &detach);
23881         if( status < 0 ) status = errno;
23882 #else
23883         status = pthread_attr_setdetachstate(&attr, detach);
23884 #endif
23885         if( status ) return status;
23886         status = pthread_create( &t, &attr, task, NULL );
23887 #if HAVE_PTHREADS < 7
23888         if( status < 0 ) status = errno;
23889 #endif
23890         if( status ) return status;
23891 #else
23892         /* Draft 4 pthreads */
23893         status = pthread_create( &t, pthread_attr_default, task, NULL );
23894         if( status ) return errno;
23895
23896         /* give thread a chance to complete */
23897         /* it should remain joinable and hence detachable */
23898         sleep( 1 );
23899
23900         status = pthread_detach( &t );
23901         if( status ) return errno;
23902 #endif
23903
23904 #ifdef HAVE_LINUX_THREADS
23905         pthread_kill_other_threads_np();
23906 #endif
23907
23908         return 0;
23909
23910 }
23911
23912 _ACEOF
23913 if ac_fn_c_try_run "$LINENO"; then :
23914   ol_cv_pthread_pthread=yes
23915 else
23916   ol_cv_pthread_pthread=no
23917 fi
23918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23919   conftest.$ac_objext conftest.beam conftest.$ac_ext
23920 fi
23921
23922
23923                 # restore the LIBS
23924                 LIBS="$ol_LIBS"
23925
23926 fi
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
23928 $as_echo "$ol_cv_pthread_pthread" >&6; }
23929
23930         if test $ol_cv_pthread_pthread = yes ; then
23931                 ol_link_pthreads="-pthread"
23932                 ol_link_threads=posix
23933         fi
23934 fi
23935
23936                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
23937 if test "$ol_link_threads" = no ; then
23938         # try -pthreads
23939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
23940 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
23941 if ${ol_cv_pthread_pthreads+:} false; then :
23942   $as_echo_n "(cached) " >&6
23943 else
23944
23945                 # save the flags
23946                 ol_LIBS="$LIBS"
23947                 LIBS="-pthreads $LIBS"
23948
23949                 if test "$cross_compiling" = yes; then :
23950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h.  */
23952
23953 /* pthread test headers */
23954 #include <pthread.h>
23955 #if HAVE_PTHREADS < 7
23956 #include <errno.h>
23957 #endif
23958 #ifndef NULL
23959 #define NULL (void*)0
23960 #endif
23961
23962 static void *task(p)
23963         void *p;
23964 {
23965         return (void *) (p == NULL);
23966 }
23967
23968 int
23969 main ()
23970 {
23971
23972         /* pthread test function */
23973 #ifndef PTHREAD_CREATE_DETACHED
23974 #define PTHREAD_CREATE_DETACHED 1
23975 #endif
23976         pthread_t t;
23977         int status;
23978         int detach = PTHREAD_CREATE_DETACHED;
23979
23980 #if HAVE_PTHREADS > 4
23981         /* Final pthreads */
23982         pthread_attr_t attr;
23983
23984         status = pthread_attr_init(&attr);
23985         if( status ) return status;
23986
23987 #if HAVE_PTHREADS < 7
23988         status = pthread_attr_setdetachstate(&attr, &detach);
23989         if( status < 0 ) status = errno;
23990 #else
23991         status = pthread_attr_setdetachstate(&attr, detach);
23992 #endif
23993         if( status ) return status;
23994         status = pthread_create( &t, &attr, task, NULL );
23995 #if HAVE_PTHREADS < 7
23996         if( status < 0 ) status = errno;
23997 #endif
23998         if( status ) return status;
23999 #else
24000         /* Draft 4 pthreads */
24001         status = pthread_create( &t, pthread_attr_default, task, NULL );
24002         if( status ) return errno;
24003
24004         /* give thread a chance to complete */
24005         /* it should remain joinable and hence detachable */
24006         sleep( 1 );
24007
24008         status = pthread_detach( &t );
24009         if( status ) return errno;
24010 #endif
24011
24012 #ifdef HAVE_LINUX_THREADS
24013         pthread_kill_other_threads_np();
24014 #endif
24015
24016         return 0;
24017
24018   ;
24019   return 0;
24020 }
24021 _ACEOF
24022 if ac_fn_c_try_link "$LINENO"; then :
24023   ol_cv_pthread_pthreads=yes
24024 else
24025   ol_cv_pthread_pthreads=no
24026 fi
24027 rm -f core conftest.err conftest.$ac_objext \
24028     conftest$ac_exeext conftest.$ac_ext
24029 else
24030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h.  */
24032
24033
24034 /* pthread test headers */
24035 #include <pthread.h>
24036 #if HAVE_PTHREADS < 7
24037 #include <errno.h>
24038 #endif
24039 #ifndef NULL
24040 #define NULL (void*)0
24041 #endif
24042
24043 static void *task(p)
24044         void *p;
24045 {
24046         return (void *) (p == NULL);
24047 }
24048
24049
24050 int main(argc, argv)
24051         int argc;
24052         char **argv;
24053 {
24054
24055         /* pthread test function */
24056 #ifndef PTHREAD_CREATE_DETACHED
24057 #define PTHREAD_CREATE_DETACHED 1
24058 #endif
24059         pthread_t t;
24060         int status;
24061         int detach = PTHREAD_CREATE_DETACHED;
24062
24063 #if HAVE_PTHREADS > 4
24064         /* Final pthreads */
24065         pthread_attr_t attr;
24066
24067         status = pthread_attr_init(&attr);
24068         if( status ) return status;
24069
24070 #if HAVE_PTHREADS < 7
24071         status = pthread_attr_setdetachstate(&attr, &detach);
24072         if( status < 0 ) status = errno;
24073 #else
24074         status = pthread_attr_setdetachstate(&attr, detach);
24075 #endif
24076         if( status ) return status;
24077         status = pthread_create( &t, &attr, task, NULL );
24078 #if HAVE_PTHREADS < 7
24079         if( status < 0 ) status = errno;
24080 #endif
24081         if( status ) return status;
24082 #else
24083         /* Draft 4 pthreads */
24084         status = pthread_create( &t, pthread_attr_default, task, NULL );
24085         if( status ) return errno;
24086
24087         /* give thread a chance to complete */
24088         /* it should remain joinable and hence detachable */
24089         sleep( 1 );
24090
24091         status = pthread_detach( &t );
24092         if( status ) return errno;
24093 #endif
24094
24095 #ifdef HAVE_LINUX_THREADS
24096         pthread_kill_other_threads_np();
24097 #endif
24098
24099         return 0;
24100
24101 }
24102
24103 _ACEOF
24104 if ac_fn_c_try_run "$LINENO"; then :
24105   ol_cv_pthread_pthreads=yes
24106 else
24107   ol_cv_pthread_pthreads=no
24108 fi
24109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24110   conftest.$ac_objext conftest.beam conftest.$ac_ext
24111 fi
24112
24113
24114                 # restore the LIBS
24115                 LIBS="$ol_LIBS"
24116
24117 fi
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
24119 $as_echo "$ol_cv_pthread_pthreads" >&6; }
24120
24121         if test $ol_cv_pthread_pthreads = yes ; then
24122                 ol_link_pthreads="-pthreads"
24123                 ol_link_threads=posix
24124         fi
24125 fi
24126
24127                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
24128 if test "$ol_link_threads" = no ; then
24129         # try -mthreads
24130         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
24131 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
24132 if ${ol_cv_pthread_mthreads+:} false; then :
24133   $as_echo_n "(cached) " >&6
24134 else
24135
24136                 # save the flags
24137                 ol_LIBS="$LIBS"
24138                 LIBS="-mthreads $LIBS"
24139
24140                 if test "$cross_compiling" = yes; then :
24141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142 /* end confdefs.h.  */
24143
24144 /* pthread test headers */
24145 #include <pthread.h>
24146 #if HAVE_PTHREADS < 7
24147 #include <errno.h>
24148 #endif
24149 #ifndef NULL
24150 #define NULL (void*)0
24151 #endif
24152
24153 static void *task(p)
24154         void *p;
24155 {
24156         return (void *) (p == NULL);
24157 }
24158
24159 int
24160 main ()
24161 {
24162
24163         /* pthread test function */
24164 #ifndef PTHREAD_CREATE_DETACHED
24165 #define PTHREAD_CREATE_DETACHED 1
24166 #endif
24167         pthread_t t;
24168         int status;
24169         int detach = PTHREAD_CREATE_DETACHED;
24170
24171 #if HAVE_PTHREADS > 4
24172         /* Final pthreads */
24173         pthread_attr_t attr;
24174
24175         status = pthread_attr_init(&attr);
24176         if( status ) return status;
24177
24178 #if HAVE_PTHREADS < 7
24179         status = pthread_attr_setdetachstate(&attr, &detach);
24180         if( status < 0 ) status = errno;
24181 #else
24182         status = pthread_attr_setdetachstate(&attr, detach);
24183 #endif
24184         if( status ) return status;
24185         status = pthread_create( &t, &attr, task, NULL );
24186 #if HAVE_PTHREADS < 7
24187         if( status < 0 ) status = errno;
24188 #endif
24189         if( status ) return status;
24190 #else
24191         /* Draft 4 pthreads */
24192         status = pthread_create( &t, pthread_attr_default, task, NULL );
24193         if( status ) return errno;
24194
24195         /* give thread a chance to complete */
24196         /* it should remain joinable and hence detachable */
24197         sleep( 1 );
24198
24199         status = pthread_detach( &t );
24200         if( status ) return errno;
24201 #endif
24202
24203 #ifdef HAVE_LINUX_THREADS
24204         pthread_kill_other_threads_np();
24205 #endif
24206
24207         return 0;
24208
24209   ;
24210   return 0;
24211 }
24212 _ACEOF
24213 if ac_fn_c_try_link "$LINENO"; then :
24214   ol_cv_pthread_mthreads=yes
24215 else
24216   ol_cv_pthread_mthreads=no
24217 fi
24218 rm -f core conftest.err conftest.$ac_objext \
24219     conftest$ac_exeext conftest.$ac_ext
24220 else
24221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24222 /* end confdefs.h.  */
24223
24224
24225 /* pthread test headers */
24226 #include <pthread.h>
24227 #if HAVE_PTHREADS < 7
24228 #include <errno.h>
24229 #endif
24230 #ifndef NULL
24231 #define NULL (void*)0
24232 #endif
24233
24234 static void *task(p)
24235         void *p;
24236 {
24237         return (void *) (p == NULL);
24238 }
24239
24240
24241 int main(argc, argv)
24242         int argc;
24243         char **argv;
24244 {
24245
24246         /* pthread test function */
24247 #ifndef PTHREAD_CREATE_DETACHED
24248 #define PTHREAD_CREATE_DETACHED 1
24249 #endif
24250         pthread_t t;
24251         int status;
24252         int detach = PTHREAD_CREATE_DETACHED;
24253
24254 #if HAVE_PTHREADS > 4
24255         /* Final pthreads */
24256         pthread_attr_t attr;
24257
24258         status = pthread_attr_init(&attr);
24259         if( status ) return status;
24260
24261 #if HAVE_PTHREADS < 7
24262         status = pthread_attr_setdetachstate(&attr, &detach);
24263         if( status < 0 ) status = errno;
24264 #else
24265         status = pthread_attr_setdetachstate(&attr, detach);
24266 #endif
24267         if( status ) return status;
24268         status = pthread_create( &t, &attr, task, NULL );
24269 #if HAVE_PTHREADS < 7
24270         if( status < 0 ) status = errno;
24271 #endif
24272         if( status ) return status;
24273 #else
24274         /* Draft 4 pthreads */
24275         status = pthread_create( &t, pthread_attr_default, task, NULL );
24276         if( status ) return errno;
24277
24278         /* give thread a chance to complete */
24279         /* it should remain joinable and hence detachable */
24280         sleep( 1 );
24281
24282         status = pthread_detach( &t );
24283         if( status ) return errno;
24284 #endif
24285
24286 #ifdef HAVE_LINUX_THREADS
24287         pthread_kill_other_threads_np();
24288 #endif
24289
24290         return 0;
24291
24292 }
24293
24294 _ACEOF
24295 if ac_fn_c_try_run "$LINENO"; then :
24296   ol_cv_pthread_mthreads=yes
24297 else
24298   ol_cv_pthread_mthreads=no
24299 fi
24300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24301   conftest.$ac_objext conftest.beam conftest.$ac_ext
24302 fi
24303
24304
24305                 # restore the LIBS
24306                 LIBS="$ol_LIBS"
24307
24308 fi
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
24310 $as_echo "$ol_cv_pthread_mthreads" >&6; }
24311
24312         if test $ol_cv_pthread_mthreads = yes ; then
24313                 ol_link_pthreads="-mthreads"
24314                 ol_link_threads=posix
24315         fi
24316 fi
24317
24318                 # Pthread try link: -thread (ol_cv_pthread_thread)
24319 if test "$ol_link_threads" = no ; then
24320         # try -thread
24321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
24322 $as_echo_n "checking for pthread link with -thread... " >&6; }
24323 if ${ol_cv_pthread_thread+:} false; then :
24324   $as_echo_n "(cached) " >&6
24325 else
24326
24327                 # save the flags
24328                 ol_LIBS="$LIBS"
24329                 LIBS="-thread $LIBS"
24330
24331                 if test "$cross_compiling" = yes; then :
24332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h.  */
24334
24335 /* pthread test headers */
24336 #include <pthread.h>
24337 #if HAVE_PTHREADS < 7
24338 #include <errno.h>
24339 #endif
24340 #ifndef NULL
24341 #define NULL (void*)0
24342 #endif
24343
24344 static void *task(p)
24345         void *p;
24346 {
24347         return (void *) (p == NULL);
24348 }
24349
24350 int
24351 main ()
24352 {
24353
24354         /* pthread test function */
24355 #ifndef PTHREAD_CREATE_DETACHED
24356 #define PTHREAD_CREATE_DETACHED 1
24357 #endif
24358         pthread_t t;
24359         int status;
24360         int detach = PTHREAD_CREATE_DETACHED;
24361
24362 #if HAVE_PTHREADS > 4
24363         /* Final pthreads */
24364         pthread_attr_t attr;
24365
24366         status = pthread_attr_init(&attr);
24367         if( status ) return status;
24368
24369 #if HAVE_PTHREADS < 7
24370         status = pthread_attr_setdetachstate(&attr, &detach);
24371         if( status < 0 ) status = errno;
24372 #else
24373         status = pthread_attr_setdetachstate(&attr, detach);
24374 #endif
24375         if( status ) return status;
24376         status = pthread_create( &t, &attr, task, NULL );
24377 #if HAVE_PTHREADS < 7
24378         if( status < 0 ) status = errno;
24379 #endif
24380         if( status ) return status;
24381 #else
24382         /* Draft 4 pthreads */
24383         status = pthread_create( &t, pthread_attr_default, task, NULL );
24384         if( status ) return errno;
24385
24386         /* give thread a chance to complete */
24387         /* it should remain joinable and hence detachable */
24388         sleep( 1 );
24389
24390         status = pthread_detach( &t );
24391         if( status ) return errno;
24392 #endif
24393
24394 #ifdef HAVE_LINUX_THREADS
24395         pthread_kill_other_threads_np();
24396 #endif
24397
24398         return 0;
24399
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 if ac_fn_c_try_link "$LINENO"; then :
24405   ol_cv_pthread_thread=yes
24406 else
24407   ol_cv_pthread_thread=no
24408 fi
24409 rm -f core conftest.err conftest.$ac_objext \
24410     conftest$ac_exeext conftest.$ac_ext
24411 else
24412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413 /* end confdefs.h.  */
24414
24415
24416 /* pthread test headers */
24417 #include <pthread.h>
24418 #if HAVE_PTHREADS < 7
24419 #include <errno.h>
24420 #endif
24421 #ifndef NULL
24422 #define NULL (void*)0
24423 #endif
24424
24425 static void *task(p)
24426         void *p;
24427 {
24428         return (void *) (p == NULL);
24429 }
24430
24431
24432 int main(argc, argv)
24433         int argc;
24434         char **argv;
24435 {
24436
24437         /* pthread test function */
24438 #ifndef PTHREAD_CREATE_DETACHED
24439 #define PTHREAD_CREATE_DETACHED 1
24440 #endif
24441         pthread_t t;
24442         int status;
24443         int detach = PTHREAD_CREATE_DETACHED;
24444
24445 #if HAVE_PTHREADS > 4
24446         /* Final pthreads */
24447         pthread_attr_t attr;
24448
24449         status = pthread_attr_init(&attr);
24450         if( status ) return status;
24451
24452 #if HAVE_PTHREADS < 7
24453         status = pthread_attr_setdetachstate(&attr, &detach);
24454         if( status < 0 ) status = errno;
24455 #else
24456         status = pthread_attr_setdetachstate(&attr, detach);
24457 #endif
24458         if( status ) return status;
24459         status = pthread_create( &t, &attr, task, NULL );
24460 #if HAVE_PTHREADS < 7
24461         if( status < 0 ) status = errno;
24462 #endif
24463         if( status ) return status;
24464 #else
24465         /* Draft 4 pthreads */
24466         status = pthread_create( &t, pthread_attr_default, task, NULL );
24467         if( status ) return errno;
24468
24469         /* give thread a chance to complete */
24470         /* it should remain joinable and hence detachable */
24471         sleep( 1 );
24472
24473         status = pthread_detach( &t );
24474         if( status ) return errno;
24475 #endif
24476
24477 #ifdef HAVE_LINUX_THREADS
24478         pthread_kill_other_threads_np();
24479 #endif
24480
24481         return 0;
24482
24483 }
24484
24485 _ACEOF
24486 if ac_fn_c_try_run "$LINENO"; then :
24487   ol_cv_pthread_thread=yes
24488 else
24489   ol_cv_pthread_thread=no
24490 fi
24491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24492   conftest.$ac_objext conftest.beam conftest.$ac_ext
24493 fi
24494
24495
24496                 # restore the LIBS
24497                 LIBS="$ol_LIBS"
24498
24499 fi
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
24501 $as_echo "$ol_cv_pthread_thread" >&6; }
24502
24503         if test $ol_cv_pthread_thread = yes ; then
24504                 ol_link_pthreads="-thread"
24505                 ol_link_threads=posix
24506         fi
24507 fi
24508
24509
24510                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
24511 if test "$ol_link_threads" = no ; then
24512         # try -lpthread -lmach -lexc -lc_r
24513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
24514 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
24515 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
24516   $as_echo_n "(cached) " >&6
24517 else
24518
24519                 # save the flags
24520                 ol_LIBS="$LIBS"
24521                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
24522
24523                 if test "$cross_compiling" = yes; then :
24524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h.  */
24526
24527 /* pthread test headers */
24528 #include <pthread.h>
24529 #if HAVE_PTHREADS < 7
24530 #include <errno.h>
24531 #endif
24532 #ifndef NULL
24533 #define NULL (void*)0
24534 #endif
24535
24536 static void *task(p)
24537         void *p;
24538 {
24539         return (void *) (p == NULL);
24540 }
24541
24542 int
24543 main ()
24544 {
24545
24546         /* pthread test function */
24547 #ifndef PTHREAD_CREATE_DETACHED
24548 #define PTHREAD_CREATE_DETACHED 1
24549 #endif
24550         pthread_t t;
24551         int status;
24552         int detach = PTHREAD_CREATE_DETACHED;
24553
24554 #if HAVE_PTHREADS > 4
24555         /* Final pthreads */
24556         pthread_attr_t attr;
24557
24558         status = pthread_attr_init(&attr);
24559         if( status ) return status;
24560
24561 #if HAVE_PTHREADS < 7
24562         status = pthread_attr_setdetachstate(&attr, &detach);
24563         if( status < 0 ) status = errno;
24564 #else
24565         status = pthread_attr_setdetachstate(&attr, detach);
24566 #endif
24567         if( status ) return status;
24568         status = pthread_create( &t, &attr, task, NULL );
24569 #if HAVE_PTHREADS < 7
24570         if( status < 0 ) status = errno;
24571 #endif
24572         if( status ) return status;
24573 #else
24574         /* Draft 4 pthreads */
24575         status = pthread_create( &t, pthread_attr_default, task, NULL );
24576         if( status ) return errno;
24577
24578         /* give thread a chance to complete */
24579         /* it should remain joinable and hence detachable */
24580         sleep( 1 );
24581
24582         status = pthread_detach( &t );
24583         if( status ) return errno;
24584 #endif
24585
24586 #ifdef HAVE_LINUX_THREADS
24587         pthread_kill_other_threads_np();
24588 #endif
24589
24590         return 0;
24591
24592   ;
24593   return 0;
24594 }
24595 _ACEOF
24596 if ac_fn_c_try_link "$LINENO"; then :
24597   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24598 else
24599   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24600 fi
24601 rm -f core conftest.err conftest.$ac_objext \
24602     conftest$ac_exeext conftest.$ac_ext
24603 else
24604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h.  */
24606
24607
24608 /* pthread test headers */
24609 #include <pthread.h>
24610 #if HAVE_PTHREADS < 7
24611 #include <errno.h>
24612 #endif
24613 #ifndef NULL
24614 #define NULL (void*)0
24615 #endif
24616
24617 static void *task(p)
24618         void *p;
24619 {
24620         return (void *) (p == NULL);
24621 }
24622
24623
24624 int main(argc, argv)
24625         int argc;
24626         char **argv;
24627 {
24628
24629         /* pthread test function */
24630 #ifndef PTHREAD_CREATE_DETACHED
24631 #define PTHREAD_CREATE_DETACHED 1
24632 #endif
24633         pthread_t t;
24634         int status;
24635         int detach = PTHREAD_CREATE_DETACHED;
24636
24637 #if HAVE_PTHREADS > 4
24638         /* Final pthreads */
24639         pthread_attr_t attr;
24640
24641         status = pthread_attr_init(&attr);
24642         if( status ) return status;
24643
24644 #if HAVE_PTHREADS < 7
24645         status = pthread_attr_setdetachstate(&attr, &detach);
24646         if( status < 0 ) status = errno;
24647 #else
24648         status = pthread_attr_setdetachstate(&attr, detach);
24649 #endif
24650         if( status ) return status;
24651         status = pthread_create( &t, &attr, task, NULL );
24652 #if HAVE_PTHREADS < 7
24653         if( status < 0 ) status = errno;
24654 #endif
24655         if( status ) return status;
24656 #else
24657         /* Draft 4 pthreads */
24658         status = pthread_create( &t, pthread_attr_default, task, NULL );
24659         if( status ) return errno;
24660
24661         /* give thread a chance to complete */
24662         /* it should remain joinable and hence detachable */
24663         sleep( 1 );
24664
24665         status = pthread_detach( &t );
24666         if( status ) return errno;
24667 #endif
24668
24669 #ifdef HAVE_LINUX_THREADS
24670         pthread_kill_other_threads_np();
24671 #endif
24672
24673         return 0;
24674
24675 }
24676
24677 _ACEOF
24678 if ac_fn_c_try_run "$LINENO"; then :
24679   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
24680 else
24681   ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
24682 fi
24683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24684   conftest.$ac_objext conftest.beam conftest.$ac_ext
24685 fi
24686
24687
24688                 # restore the LIBS
24689                 LIBS="$ol_LIBS"
24690
24691 fi
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
24693 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
24694
24695         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
24696                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
24697                 ol_link_threads=posix
24698         fi
24699 fi
24700
24701                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
24702 if test "$ol_link_threads" = no ; then
24703         # try -lpthread -lmach -lexc
24704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
24705 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
24706 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
24707   $as_echo_n "(cached) " >&6
24708 else
24709
24710                 # save the flags
24711                 ol_LIBS="$LIBS"
24712                 LIBS="-lpthread -lmach -lexc $LIBS"
24713
24714                 if test "$cross_compiling" = yes; then :
24715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h.  */
24717
24718 /* pthread test headers */
24719 #include <pthread.h>
24720 #if HAVE_PTHREADS < 7
24721 #include <errno.h>
24722 #endif
24723 #ifndef NULL
24724 #define NULL (void*)0
24725 #endif
24726
24727 static void *task(p)
24728         void *p;
24729 {
24730         return (void *) (p == NULL);
24731 }
24732
24733 int
24734 main ()
24735 {
24736
24737         /* pthread test function */
24738 #ifndef PTHREAD_CREATE_DETACHED
24739 #define PTHREAD_CREATE_DETACHED 1
24740 #endif
24741         pthread_t t;
24742         int status;
24743         int detach = PTHREAD_CREATE_DETACHED;
24744
24745 #if HAVE_PTHREADS > 4
24746         /* Final pthreads */
24747         pthread_attr_t attr;
24748
24749         status = pthread_attr_init(&attr);
24750         if( status ) return status;
24751
24752 #if HAVE_PTHREADS < 7
24753         status = pthread_attr_setdetachstate(&attr, &detach);
24754         if( status < 0 ) status = errno;
24755 #else
24756         status = pthread_attr_setdetachstate(&attr, detach);
24757 #endif
24758         if( status ) return status;
24759         status = pthread_create( &t, &attr, task, NULL );
24760 #if HAVE_PTHREADS < 7
24761         if( status < 0 ) status = errno;
24762 #endif
24763         if( status ) return status;
24764 #else
24765         /* Draft 4 pthreads */
24766         status = pthread_create( &t, pthread_attr_default, task, NULL );
24767         if( status ) return errno;
24768
24769         /* give thread a chance to complete */
24770         /* it should remain joinable and hence detachable */
24771         sleep( 1 );
24772
24773         status = pthread_detach( &t );
24774         if( status ) return errno;
24775 #endif
24776
24777 #ifdef HAVE_LINUX_THREADS
24778         pthread_kill_other_threads_np();
24779 #endif
24780
24781         return 0;
24782
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 if ac_fn_c_try_link "$LINENO"; then :
24788   ol_cv_pthread_lpthread_lmach_lexc=yes
24789 else
24790   ol_cv_pthread_lpthread_lmach_lexc=no
24791 fi
24792 rm -f core conftest.err conftest.$ac_objext \
24793     conftest$ac_exeext conftest.$ac_ext
24794 else
24795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24796 /* end confdefs.h.  */
24797
24798
24799 /* pthread test headers */
24800 #include <pthread.h>
24801 #if HAVE_PTHREADS < 7
24802 #include <errno.h>
24803 #endif
24804 #ifndef NULL
24805 #define NULL (void*)0
24806 #endif
24807
24808 static void *task(p)
24809         void *p;
24810 {
24811         return (void *) (p == NULL);
24812 }
24813
24814
24815 int main(argc, argv)
24816         int argc;
24817         char **argv;
24818 {
24819
24820         /* pthread test function */
24821 #ifndef PTHREAD_CREATE_DETACHED
24822 #define PTHREAD_CREATE_DETACHED 1
24823 #endif
24824         pthread_t t;
24825         int status;
24826         int detach = PTHREAD_CREATE_DETACHED;
24827
24828 #if HAVE_PTHREADS > 4
24829         /* Final pthreads */
24830         pthread_attr_t attr;
24831
24832         status = pthread_attr_init(&attr);
24833         if( status ) return status;
24834
24835 #if HAVE_PTHREADS < 7
24836         status = pthread_attr_setdetachstate(&attr, &detach);
24837         if( status < 0 ) status = errno;
24838 #else
24839         status = pthread_attr_setdetachstate(&attr, detach);
24840 #endif
24841         if( status ) return status;
24842         status = pthread_create( &t, &attr, task, NULL );
24843 #if HAVE_PTHREADS < 7
24844         if( status < 0 ) status = errno;
24845 #endif
24846         if( status ) return status;
24847 #else
24848         /* Draft 4 pthreads */
24849         status = pthread_create( &t, pthread_attr_default, task, NULL );
24850         if( status ) return errno;
24851
24852         /* give thread a chance to complete */
24853         /* it should remain joinable and hence detachable */
24854         sleep( 1 );
24855
24856         status = pthread_detach( &t );
24857         if( status ) return errno;
24858 #endif
24859
24860 #ifdef HAVE_LINUX_THREADS
24861         pthread_kill_other_threads_np();
24862 #endif
24863
24864         return 0;
24865
24866 }
24867
24868 _ACEOF
24869 if ac_fn_c_try_run "$LINENO"; then :
24870   ol_cv_pthread_lpthread_lmach_lexc=yes
24871 else
24872   ol_cv_pthread_lpthread_lmach_lexc=no
24873 fi
24874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24875   conftest.$ac_objext conftest.beam conftest.$ac_ext
24876 fi
24877
24878
24879                 # restore the LIBS
24880                 LIBS="$ol_LIBS"
24881
24882 fi
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
24884 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
24885
24886         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
24887                 ol_link_pthreads="-lpthread -lmach -lexc"
24888                 ol_link_threads=posix
24889         fi
24890 fi
24891
24892
24893                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
24894 if test "$ol_link_threads" = no ; then
24895         # try -lpthread -Wl,-woff,85
24896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
24897 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
24898 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
24899   $as_echo_n "(cached) " >&6
24900 else
24901
24902                 # save the flags
24903                 ol_LIBS="$LIBS"
24904                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
24905
24906                 if test "$cross_compiling" = yes; then :
24907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h.  */
24909
24910 /* pthread test headers */
24911 #include <pthread.h>
24912 #if HAVE_PTHREADS < 7
24913 #include <errno.h>
24914 #endif
24915 #ifndef NULL
24916 #define NULL (void*)0
24917 #endif
24918
24919 static void *task(p)
24920         void *p;
24921 {
24922         return (void *) (p == NULL);
24923 }
24924
24925 int
24926 main ()
24927 {
24928
24929         /* pthread test function */
24930 #ifndef PTHREAD_CREATE_DETACHED
24931 #define PTHREAD_CREATE_DETACHED 1
24932 #endif
24933         pthread_t t;
24934         int status;
24935         int detach = PTHREAD_CREATE_DETACHED;
24936
24937 #if HAVE_PTHREADS > 4
24938         /* Final pthreads */
24939         pthread_attr_t attr;
24940
24941         status = pthread_attr_init(&attr);
24942         if( status ) return status;
24943
24944 #if HAVE_PTHREADS < 7
24945         status = pthread_attr_setdetachstate(&attr, &detach);
24946         if( status < 0 ) status = errno;
24947 #else
24948         status = pthread_attr_setdetachstate(&attr, detach);
24949 #endif
24950         if( status ) return status;
24951         status = pthread_create( &t, &attr, task, NULL );
24952 #if HAVE_PTHREADS < 7
24953         if( status < 0 ) status = errno;
24954 #endif
24955         if( status ) return status;
24956 #else
24957         /* Draft 4 pthreads */
24958         status = pthread_create( &t, pthread_attr_default, task, NULL );
24959         if( status ) return errno;
24960
24961         /* give thread a chance to complete */
24962         /* it should remain joinable and hence detachable */
24963         sleep( 1 );
24964
24965         status = pthread_detach( &t );
24966         if( status ) return errno;
24967 #endif
24968
24969 #ifdef HAVE_LINUX_THREADS
24970         pthread_kill_other_threads_np();
24971 #endif
24972
24973         return 0;
24974
24975   ;
24976   return 0;
24977 }
24978 _ACEOF
24979 if ac_fn_c_try_link "$LINENO"; then :
24980   ol_cv_pthread_lib_lpthread_woff=yes
24981 else
24982   ol_cv_pthread_lib_lpthread_woff=no
24983 fi
24984 rm -f core conftest.err conftest.$ac_objext \
24985     conftest$ac_exeext conftest.$ac_ext
24986 else
24987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24988 /* end confdefs.h.  */
24989
24990
24991 /* pthread test headers */
24992 #include <pthread.h>
24993 #if HAVE_PTHREADS < 7
24994 #include <errno.h>
24995 #endif
24996 #ifndef NULL
24997 #define NULL (void*)0
24998 #endif
24999
25000 static void *task(p)
25001         void *p;
25002 {
25003         return (void *) (p == NULL);
25004 }
25005
25006
25007 int main(argc, argv)
25008         int argc;
25009         char **argv;
25010 {
25011
25012         /* pthread test function */
25013 #ifndef PTHREAD_CREATE_DETACHED
25014 #define PTHREAD_CREATE_DETACHED 1
25015 #endif
25016         pthread_t t;
25017         int status;
25018         int detach = PTHREAD_CREATE_DETACHED;
25019
25020 #if HAVE_PTHREADS > 4
25021         /* Final pthreads */
25022         pthread_attr_t attr;
25023
25024         status = pthread_attr_init(&attr);
25025         if( status ) return status;
25026
25027 #if HAVE_PTHREADS < 7
25028         status = pthread_attr_setdetachstate(&attr, &detach);
25029         if( status < 0 ) status = errno;
25030 #else
25031         status = pthread_attr_setdetachstate(&attr, detach);
25032 #endif
25033         if( status ) return status;
25034         status = pthread_create( &t, &attr, task, NULL );
25035 #if HAVE_PTHREADS < 7
25036         if( status < 0 ) status = errno;
25037 #endif
25038         if( status ) return status;
25039 #else
25040         /* Draft 4 pthreads */
25041         status = pthread_create( &t, pthread_attr_default, task, NULL );
25042         if( status ) return errno;
25043
25044         /* give thread a chance to complete */
25045         /* it should remain joinable and hence detachable */
25046         sleep( 1 );
25047
25048         status = pthread_detach( &t );
25049         if( status ) return errno;
25050 #endif
25051
25052 #ifdef HAVE_LINUX_THREADS
25053         pthread_kill_other_threads_np();
25054 #endif
25055
25056         return 0;
25057
25058 }
25059
25060 _ACEOF
25061 if ac_fn_c_try_run "$LINENO"; then :
25062   ol_cv_pthread_lib_lpthread_woff=yes
25063 else
25064   ol_cv_pthread_lib_lpthread_woff=no
25065 fi
25066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25067   conftest.$ac_objext conftest.beam conftest.$ac_ext
25068 fi
25069
25070
25071                 # restore the LIBS
25072                 LIBS="$ol_LIBS"
25073
25074 fi
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
25076 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
25077
25078         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
25079                 ol_link_pthreads="-lpthread -Wl,-woff,85"
25080                 ol_link_threads=posix
25081         fi
25082 fi
25083
25084
25085                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
25086 if test "$ol_link_threads" = no ; then
25087         # try -lpthread
25088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
25089 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
25090 if ${ol_cv_pthread_lpthread+:} false; then :
25091   $as_echo_n "(cached) " >&6
25092 else
25093
25094                 # save the flags
25095                 ol_LIBS="$LIBS"
25096                 LIBS="-lpthread $LIBS"
25097
25098                 if test "$cross_compiling" = yes; then :
25099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100 /* end confdefs.h.  */
25101
25102 /* pthread test headers */
25103 #include <pthread.h>
25104 #if HAVE_PTHREADS < 7
25105 #include <errno.h>
25106 #endif
25107 #ifndef NULL
25108 #define NULL (void*)0
25109 #endif
25110
25111 static void *task(p)
25112         void *p;
25113 {
25114         return (void *) (p == NULL);
25115 }
25116
25117 int
25118 main ()
25119 {
25120
25121         /* pthread test function */
25122 #ifndef PTHREAD_CREATE_DETACHED
25123 #define PTHREAD_CREATE_DETACHED 1
25124 #endif
25125         pthread_t t;
25126         int status;
25127         int detach = PTHREAD_CREATE_DETACHED;
25128
25129 #if HAVE_PTHREADS > 4
25130         /* Final pthreads */
25131         pthread_attr_t attr;
25132
25133         status = pthread_attr_init(&attr);
25134         if( status ) return status;
25135
25136 #if HAVE_PTHREADS < 7
25137         status = pthread_attr_setdetachstate(&attr, &detach);
25138         if( status < 0 ) status = errno;
25139 #else
25140         status = pthread_attr_setdetachstate(&attr, detach);
25141 #endif
25142         if( status ) return status;
25143         status = pthread_create( &t, &attr, task, NULL );
25144 #if HAVE_PTHREADS < 7
25145         if( status < 0 ) status = errno;
25146 #endif
25147         if( status ) return status;
25148 #else
25149         /* Draft 4 pthreads */
25150         status = pthread_create( &t, pthread_attr_default, task, NULL );
25151         if( status ) return errno;
25152
25153         /* give thread a chance to complete */
25154         /* it should remain joinable and hence detachable */
25155         sleep( 1 );
25156
25157         status = pthread_detach( &t );
25158         if( status ) return errno;
25159 #endif
25160
25161 #ifdef HAVE_LINUX_THREADS
25162         pthread_kill_other_threads_np();
25163 #endif
25164
25165         return 0;
25166
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 if ac_fn_c_try_link "$LINENO"; then :
25172   ol_cv_pthread_lpthread=yes
25173 else
25174   ol_cv_pthread_lpthread=no
25175 fi
25176 rm -f core conftest.err conftest.$ac_objext \
25177     conftest$ac_exeext conftest.$ac_ext
25178 else
25179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25180 /* end confdefs.h.  */
25181
25182
25183 /* pthread test headers */
25184 #include <pthread.h>
25185 #if HAVE_PTHREADS < 7
25186 #include <errno.h>
25187 #endif
25188 #ifndef NULL
25189 #define NULL (void*)0
25190 #endif
25191
25192 static void *task(p)
25193         void *p;
25194 {
25195         return (void *) (p == NULL);
25196 }
25197
25198
25199 int main(argc, argv)
25200         int argc;
25201         char **argv;
25202 {
25203
25204         /* pthread test function */
25205 #ifndef PTHREAD_CREATE_DETACHED
25206 #define PTHREAD_CREATE_DETACHED 1
25207 #endif
25208         pthread_t t;
25209         int status;
25210         int detach = PTHREAD_CREATE_DETACHED;
25211
25212 #if HAVE_PTHREADS > 4
25213         /* Final pthreads */
25214         pthread_attr_t attr;
25215
25216         status = pthread_attr_init(&attr);
25217         if( status ) return status;
25218
25219 #if HAVE_PTHREADS < 7
25220         status = pthread_attr_setdetachstate(&attr, &detach);
25221         if( status < 0 ) status = errno;
25222 #else
25223         status = pthread_attr_setdetachstate(&attr, detach);
25224 #endif
25225         if( status ) return status;
25226         status = pthread_create( &t, &attr, task, NULL );
25227 #if HAVE_PTHREADS < 7
25228         if( status < 0 ) status = errno;
25229 #endif
25230         if( status ) return status;
25231 #else
25232         /* Draft 4 pthreads */
25233         status = pthread_create( &t, pthread_attr_default, task, NULL );
25234         if( status ) return errno;
25235
25236         /* give thread a chance to complete */
25237         /* it should remain joinable and hence detachable */
25238         sleep( 1 );
25239
25240         status = pthread_detach( &t );
25241         if( status ) return errno;
25242 #endif
25243
25244 #ifdef HAVE_LINUX_THREADS
25245         pthread_kill_other_threads_np();
25246 #endif
25247
25248         return 0;
25249
25250 }
25251
25252 _ACEOF
25253 if ac_fn_c_try_run "$LINENO"; then :
25254   ol_cv_pthread_lpthread=yes
25255 else
25256   ol_cv_pthread_lpthread=no
25257 fi
25258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25259   conftest.$ac_objext conftest.beam conftest.$ac_ext
25260 fi
25261
25262
25263                 # restore the LIBS
25264                 LIBS="$ol_LIBS"
25265
25266 fi
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
25268 $as_echo "$ol_cv_pthread_lpthread" >&6; }
25269
25270         if test $ol_cv_pthread_lpthread = yes ; then
25271                 ol_link_pthreads="-lpthread"
25272                 ol_link_threads=posix
25273         fi
25274 fi
25275
25276                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
25277 if test "$ol_link_threads" = no ; then
25278         # try -lc_r
25279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
25280 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
25281 if ${ol_cv_pthread_lc_r+:} false; then :
25282   $as_echo_n "(cached) " >&6
25283 else
25284
25285                 # save the flags
25286                 ol_LIBS="$LIBS"
25287                 LIBS="-lc_r $LIBS"
25288
25289                 if test "$cross_compiling" = yes; then :
25290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25291 /* end confdefs.h.  */
25292
25293 /* pthread test headers */
25294 #include <pthread.h>
25295 #if HAVE_PTHREADS < 7
25296 #include <errno.h>
25297 #endif
25298 #ifndef NULL
25299 #define NULL (void*)0
25300 #endif
25301
25302 static void *task(p)
25303         void *p;
25304 {
25305         return (void *) (p == NULL);
25306 }
25307
25308 int
25309 main ()
25310 {
25311
25312         /* pthread test function */
25313 #ifndef PTHREAD_CREATE_DETACHED
25314 #define PTHREAD_CREATE_DETACHED 1
25315 #endif
25316         pthread_t t;
25317         int status;
25318         int detach = PTHREAD_CREATE_DETACHED;
25319
25320 #if HAVE_PTHREADS > 4
25321         /* Final pthreads */
25322         pthread_attr_t attr;
25323
25324         status = pthread_attr_init(&attr);
25325         if( status ) return status;
25326
25327 #if HAVE_PTHREADS < 7
25328         status = pthread_attr_setdetachstate(&attr, &detach);
25329         if( status < 0 ) status = errno;
25330 #else
25331         status = pthread_attr_setdetachstate(&attr, detach);
25332 #endif
25333         if( status ) return status;
25334         status = pthread_create( &t, &attr, task, NULL );
25335 #if HAVE_PTHREADS < 7
25336         if( status < 0 ) status = errno;
25337 #endif
25338         if( status ) return status;
25339 #else
25340         /* Draft 4 pthreads */
25341         status = pthread_create( &t, pthread_attr_default, task, NULL );
25342         if( status ) return errno;
25343
25344         /* give thread a chance to complete */
25345         /* it should remain joinable and hence detachable */
25346         sleep( 1 );
25347
25348         status = pthread_detach( &t );
25349         if( status ) return errno;
25350 #endif
25351
25352 #ifdef HAVE_LINUX_THREADS
25353         pthread_kill_other_threads_np();
25354 #endif
25355
25356         return 0;
25357
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 if ac_fn_c_try_link "$LINENO"; then :
25363   ol_cv_pthread_lc_r=yes
25364 else
25365   ol_cv_pthread_lc_r=no
25366 fi
25367 rm -f core conftest.err conftest.$ac_objext \
25368     conftest$ac_exeext conftest.$ac_ext
25369 else
25370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h.  */
25372
25373
25374 /* pthread test headers */
25375 #include <pthread.h>
25376 #if HAVE_PTHREADS < 7
25377 #include <errno.h>
25378 #endif
25379 #ifndef NULL
25380 #define NULL (void*)0
25381 #endif
25382
25383 static void *task(p)
25384         void *p;
25385 {
25386         return (void *) (p == NULL);
25387 }
25388
25389
25390 int main(argc, argv)
25391         int argc;
25392         char **argv;
25393 {
25394
25395         /* pthread test function */
25396 #ifndef PTHREAD_CREATE_DETACHED
25397 #define PTHREAD_CREATE_DETACHED 1
25398 #endif
25399         pthread_t t;
25400         int status;
25401         int detach = PTHREAD_CREATE_DETACHED;
25402
25403 #if HAVE_PTHREADS > 4
25404         /* Final pthreads */
25405         pthread_attr_t attr;
25406
25407         status = pthread_attr_init(&attr);
25408         if( status ) return status;
25409
25410 #if HAVE_PTHREADS < 7
25411         status = pthread_attr_setdetachstate(&attr, &detach);
25412         if( status < 0 ) status = errno;
25413 #else
25414         status = pthread_attr_setdetachstate(&attr, detach);
25415 #endif
25416         if( status ) return status;
25417         status = pthread_create( &t, &attr, task, NULL );
25418 #if HAVE_PTHREADS < 7
25419         if( status < 0 ) status = errno;
25420 #endif
25421         if( status ) return status;
25422 #else
25423         /* Draft 4 pthreads */
25424         status = pthread_create( &t, pthread_attr_default, task, NULL );
25425         if( status ) return errno;
25426
25427         /* give thread a chance to complete */
25428         /* it should remain joinable and hence detachable */
25429         sleep( 1 );
25430
25431         status = pthread_detach( &t );
25432         if( status ) return errno;
25433 #endif
25434
25435 #ifdef HAVE_LINUX_THREADS
25436         pthread_kill_other_threads_np();
25437 #endif
25438
25439         return 0;
25440
25441 }
25442
25443 _ACEOF
25444 if ac_fn_c_try_run "$LINENO"; then :
25445   ol_cv_pthread_lc_r=yes
25446 else
25447   ol_cv_pthread_lc_r=no
25448 fi
25449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25450   conftest.$ac_objext conftest.beam conftest.$ac_ext
25451 fi
25452
25453
25454                 # restore the LIBS
25455                 LIBS="$ol_LIBS"
25456
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
25459 $as_echo "$ol_cv_pthread_lc_r" >&6; }
25460
25461         if test $ol_cv_pthread_lc_r = yes ; then
25462                 ol_link_pthreads="-lc_r"
25463                 ol_link_threads=posix
25464         fi
25465 fi
25466
25467
25468                 # Pthread try link: -threads (ol_cv_pthread_threads)
25469 if test "$ol_link_threads" = no ; then
25470         # try -threads
25471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
25472 $as_echo_n "checking for pthread link with -threads... " >&6; }
25473 if ${ol_cv_pthread_threads+:} false; then :
25474   $as_echo_n "(cached) " >&6
25475 else
25476
25477                 # save the flags
25478                 ol_LIBS="$LIBS"
25479                 LIBS="-threads $LIBS"
25480
25481                 if test "$cross_compiling" = yes; then :
25482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25483 /* end confdefs.h.  */
25484
25485 /* pthread test headers */
25486 #include <pthread.h>
25487 #if HAVE_PTHREADS < 7
25488 #include <errno.h>
25489 #endif
25490 #ifndef NULL
25491 #define NULL (void*)0
25492 #endif
25493
25494 static void *task(p)
25495         void *p;
25496 {
25497         return (void *) (p == NULL);
25498 }
25499
25500 int
25501 main ()
25502 {
25503
25504         /* pthread test function */
25505 #ifndef PTHREAD_CREATE_DETACHED
25506 #define PTHREAD_CREATE_DETACHED 1
25507 #endif
25508         pthread_t t;
25509         int status;
25510         int detach = PTHREAD_CREATE_DETACHED;
25511
25512 #if HAVE_PTHREADS > 4
25513         /* Final pthreads */
25514         pthread_attr_t attr;
25515
25516         status = pthread_attr_init(&attr);
25517         if( status ) return status;
25518
25519 #if HAVE_PTHREADS < 7
25520         status = pthread_attr_setdetachstate(&attr, &detach);
25521         if( status < 0 ) status = errno;
25522 #else
25523         status = pthread_attr_setdetachstate(&attr, detach);
25524 #endif
25525         if( status ) return status;
25526         status = pthread_create( &t, &attr, task, NULL );
25527 #if HAVE_PTHREADS < 7
25528         if( status < 0 ) status = errno;
25529 #endif
25530         if( status ) return status;
25531 #else
25532         /* Draft 4 pthreads */
25533         status = pthread_create( &t, pthread_attr_default, task, NULL );
25534         if( status ) return errno;
25535
25536         /* give thread a chance to complete */
25537         /* it should remain joinable and hence detachable */
25538         sleep( 1 );
25539
25540         status = pthread_detach( &t );
25541         if( status ) return errno;
25542 #endif
25543
25544 #ifdef HAVE_LINUX_THREADS
25545         pthread_kill_other_threads_np();
25546 #endif
25547
25548         return 0;
25549
25550   ;
25551   return 0;
25552 }
25553 _ACEOF
25554 if ac_fn_c_try_link "$LINENO"; then :
25555   ol_cv_pthread_threads=yes
25556 else
25557   ol_cv_pthread_threads=no
25558 fi
25559 rm -f core conftest.err conftest.$ac_objext \
25560     conftest$ac_exeext conftest.$ac_ext
25561 else
25562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h.  */
25564
25565
25566 /* pthread test headers */
25567 #include <pthread.h>
25568 #if HAVE_PTHREADS < 7
25569 #include <errno.h>
25570 #endif
25571 #ifndef NULL
25572 #define NULL (void*)0
25573 #endif
25574
25575 static void *task(p)
25576         void *p;
25577 {
25578         return (void *) (p == NULL);
25579 }
25580
25581
25582 int main(argc, argv)
25583         int argc;
25584         char **argv;
25585 {
25586
25587         /* pthread test function */
25588 #ifndef PTHREAD_CREATE_DETACHED
25589 #define PTHREAD_CREATE_DETACHED 1
25590 #endif
25591         pthread_t t;
25592         int status;
25593         int detach = PTHREAD_CREATE_DETACHED;
25594
25595 #if HAVE_PTHREADS > 4
25596         /* Final pthreads */
25597         pthread_attr_t attr;
25598
25599         status = pthread_attr_init(&attr);
25600         if( status ) return status;
25601
25602 #if HAVE_PTHREADS < 7
25603         status = pthread_attr_setdetachstate(&attr, &detach);
25604         if( status < 0 ) status = errno;
25605 #else
25606         status = pthread_attr_setdetachstate(&attr, detach);
25607 #endif
25608         if( status ) return status;
25609         status = pthread_create( &t, &attr, task, NULL );
25610 #if HAVE_PTHREADS < 7
25611         if( status < 0 ) status = errno;
25612 #endif
25613         if( status ) return status;
25614 #else
25615         /* Draft 4 pthreads */
25616         status = pthread_create( &t, pthread_attr_default, task, NULL );
25617         if( status ) return errno;
25618
25619         /* give thread a chance to complete */
25620         /* it should remain joinable and hence detachable */
25621         sleep( 1 );
25622
25623         status = pthread_detach( &t );
25624         if( status ) return errno;
25625 #endif
25626
25627 #ifdef HAVE_LINUX_THREADS
25628         pthread_kill_other_threads_np();
25629 #endif
25630
25631         return 0;
25632
25633 }
25634
25635 _ACEOF
25636 if ac_fn_c_try_run "$LINENO"; then :
25637   ol_cv_pthread_threads=yes
25638 else
25639   ol_cv_pthread_threads=no
25640 fi
25641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25642   conftest.$ac_objext conftest.beam conftest.$ac_ext
25643 fi
25644
25645
25646                 # restore the LIBS
25647                 LIBS="$ol_LIBS"
25648
25649 fi
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
25651 $as_echo "$ol_cv_pthread_threads" >&6; }
25652
25653         if test $ol_cv_pthread_threads = yes ; then
25654                 ol_link_pthreads="-threads"
25655                 ol_link_threads=posix
25656         fi
25657 fi
25658
25659
25660                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
25661 if test "$ol_link_threads" = no ; then
25662         # try -lpthreads -lmach -lexc -lc_r
25663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
25664 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
25665 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
25666   $as_echo_n "(cached) " >&6
25667 else
25668
25669                 # save the flags
25670                 ol_LIBS="$LIBS"
25671                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
25672
25673                 if test "$cross_compiling" = yes; then :
25674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h.  */
25676
25677 /* pthread test headers */
25678 #include <pthread.h>
25679 #if HAVE_PTHREADS < 7
25680 #include <errno.h>
25681 #endif
25682 #ifndef NULL
25683 #define NULL (void*)0
25684 #endif
25685
25686 static void *task(p)
25687         void *p;
25688 {
25689         return (void *) (p == NULL);
25690 }
25691
25692 int
25693 main ()
25694 {
25695
25696         /* pthread test function */
25697 #ifndef PTHREAD_CREATE_DETACHED
25698 #define PTHREAD_CREATE_DETACHED 1
25699 #endif
25700         pthread_t t;
25701         int status;
25702         int detach = PTHREAD_CREATE_DETACHED;
25703
25704 #if HAVE_PTHREADS > 4
25705         /* Final pthreads */
25706         pthread_attr_t attr;
25707
25708         status = pthread_attr_init(&attr);
25709         if( status ) return status;
25710
25711 #if HAVE_PTHREADS < 7
25712         status = pthread_attr_setdetachstate(&attr, &detach);
25713         if( status < 0 ) status = errno;
25714 #else
25715         status = pthread_attr_setdetachstate(&attr, detach);
25716 #endif
25717         if( status ) return status;
25718         status = pthread_create( &t, &attr, task, NULL );
25719 #if HAVE_PTHREADS < 7
25720         if( status < 0 ) status = errno;
25721 #endif
25722         if( status ) return status;
25723 #else
25724         /* Draft 4 pthreads */
25725         status = pthread_create( &t, pthread_attr_default, task, NULL );
25726         if( status ) return errno;
25727
25728         /* give thread a chance to complete */
25729         /* it should remain joinable and hence detachable */
25730         sleep( 1 );
25731
25732         status = pthread_detach( &t );
25733         if( status ) return errno;
25734 #endif
25735
25736 #ifdef HAVE_LINUX_THREADS
25737         pthread_kill_other_threads_np();
25738 #endif
25739
25740         return 0;
25741
25742   ;
25743   return 0;
25744 }
25745 _ACEOF
25746 if ac_fn_c_try_link "$LINENO"; then :
25747   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25748 else
25749   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25750 fi
25751 rm -f core conftest.err conftest.$ac_objext \
25752     conftest$ac_exeext conftest.$ac_ext
25753 else
25754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756
25757
25758 /* pthread test headers */
25759 #include <pthread.h>
25760 #if HAVE_PTHREADS < 7
25761 #include <errno.h>
25762 #endif
25763 #ifndef NULL
25764 #define NULL (void*)0
25765 #endif
25766
25767 static void *task(p)
25768         void *p;
25769 {
25770         return (void *) (p == NULL);
25771 }
25772
25773
25774 int main(argc, argv)
25775         int argc;
25776         char **argv;
25777 {
25778
25779         /* pthread test function */
25780 #ifndef PTHREAD_CREATE_DETACHED
25781 #define PTHREAD_CREATE_DETACHED 1
25782 #endif
25783         pthread_t t;
25784         int status;
25785         int detach = PTHREAD_CREATE_DETACHED;
25786
25787 #if HAVE_PTHREADS > 4
25788         /* Final pthreads */
25789         pthread_attr_t attr;
25790
25791         status = pthread_attr_init(&attr);
25792         if( status ) return status;
25793
25794 #if HAVE_PTHREADS < 7
25795         status = pthread_attr_setdetachstate(&attr, &detach);
25796         if( status < 0 ) status = errno;
25797 #else
25798         status = pthread_attr_setdetachstate(&attr, detach);
25799 #endif
25800         if( status ) return status;
25801         status = pthread_create( &t, &attr, task, NULL );
25802 #if HAVE_PTHREADS < 7
25803         if( status < 0 ) status = errno;
25804 #endif
25805         if( status ) return status;
25806 #else
25807         /* Draft 4 pthreads */
25808         status = pthread_create( &t, pthread_attr_default, task, NULL );
25809         if( status ) return errno;
25810
25811         /* give thread a chance to complete */
25812         /* it should remain joinable and hence detachable */
25813         sleep( 1 );
25814
25815         status = pthread_detach( &t );
25816         if( status ) return errno;
25817 #endif
25818
25819 #ifdef HAVE_LINUX_THREADS
25820         pthread_kill_other_threads_np();
25821 #endif
25822
25823         return 0;
25824
25825 }
25826
25827 _ACEOF
25828 if ac_fn_c_try_run "$LINENO"; then :
25829   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
25830 else
25831   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
25832 fi
25833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25834   conftest.$ac_objext conftest.beam conftest.$ac_ext
25835 fi
25836
25837
25838                 # restore the LIBS
25839                 LIBS="$ol_LIBS"
25840
25841 fi
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
25843 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
25844
25845         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
25846                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
25847                 ol_link_threads=posix
25848         fi
25849 fi
25850
25851                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
25852 if test "$ol_link_threads" = no ; then
25853         # try -lpthreads -lmach -lexc
25854         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
25855 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
25856 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
25857   $as_echo_n "(cached) " >&6
25858 else
25859
25860                 # save the flags
25861                 ol_LIBS="$LIBS"
25862                 LIBS="-lpthreads -lmach -lexc $LIBS"
25863
25864                 if test "$cross_compiling" = yes; then :
25865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h.  */
25867
25868 /* pthread test headers */
25869 #include <pthread.h>
25870 #if HAVE_PTHREADS < 7
25871 #include <errno.h>
25872 #endif
25873 #ifndef NULL
25874 #define NULL (void*)0
25875 #endif
25876
25877 static void *task(p)
25878         void *p;
25879 {
25880         return (void *) (p == NULL);
25881 }
25882
25883 int
25884 main ()
25885 {
25886
25887         /* pthread test function */
25888 #ifndef PTHREAD_CREATE_DETACHED
25889 #define PTHREAD_CREATE_DETACHED 1
25890 #endif
25891         pthread_t t;
25892         int status;
25893         int detach = PTHREAD_CREATE_DETACHED;
25894
25895 #if HAVE_PTHREADS > 4
25896         /* Final pthreads */
25897         pthread_attr_t attr;
25898
25899         status = pthread_attr_init(&attr);
25900         if( status ) return status;
25901
25902 #if HAVE_PTHREADS < 7
25903         status = pthread_attr_setdetachstate(&attr, &detach);
25904         if( status < 0 ) status = errno;
25905 #else
25906         status = pthread_attr_setdetachstate(&attr, detach);
25907 #endif
25908         if( status ) return status;
25909         status = pthread_create( &t, &attr, task, NULL );
25910 #if HAVE_PTHREADS < 7
25911         if( status < 0 ) status = errno;
25912 #endif
25913         if( status ) return status;
25914 #else
25915         /* Draft 4 pthreads */
25916         status = pthread_create( &t, pthread_attr_default, task, NULL );
25917         if( status ) return errno;
25918
25919         /* give thread a chance to complete */
25920         /* it should remain joinable and hence detachable */
25921         sleep( 1 );
25922
25923         status = pthread_detach( &t );
25924         if( status ) return errno;
25925 #endif
25926
25927 #ifdef HAVE_LINUX_THREADS
25928         pthread_kill_other_threads_np();
25929 #endif
25930
25931         return 0;
25932
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_link "$LINENO"; then :
25938   ol_cv_pthread_lpthreads_lmach_lexc=yes
25939 else
25940   ol_cv_pthread_lpthreads_lmach_lexc=no
25941 fi
25942 rm -f core conftest.err conftest.$ac_objext \
25943     conftest$ac_exeext conftest.$ac_ext
25944 else
25945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h.  */
25947
25948
25949 /* pthread test headers */
25950 #include <pthread.h>
25951 #if HAVE_PTHREADS < 7
25952 #include <errno.h>
25953 #endif
25954 #ifndef NULL
25955 #define NULL (void*)0
25956 #endif
25957
25958 static void *task(p)
25959         void *p;
25960 {
25961         return (void *) (p == NULL);
25962 }
25963
25964
25965 int main(argc, argv)
25966         int argc;
25967         char **argv;
25968 {
25969
25970         /* pthread test function */
25971 #ifndef PTHREAD_CREATE_DETACHED
25972 #define PTHREAD_CREATE_DETACHED 1
25973 #endif
25974         pthread_t t;
25975         int status;
25976         int detach = PTHREAD_CREATE_DETACHED;
25977
25978 #if HAVE_PTHREADS > 4
25979         /* Final pthreads */
25980         pthread_attr_t attr;
25981
25982         status = pthread_attr_init(&attr);
25983         if( status ) return status;
25984
25985 #if HAVE_PTHREADS < 7
25986         status = pthread_attr_setdetachstate(&attr, &detach);
25987         if( status < 0 ) status = errno;
25988 #else
25989         status = pthread_attr_setdetachstate(&attr, detach);
25990 #endif
25991         if( status ) return status;
25992         status = pthread_create( &t, &attr, task, NULL );
25993 #if HAVE_PTHREADS < 7
25994         if( status < 0 ) status = errno;
25995 #endif
25996         if( status ) return status;
25997 #else
25998         /* Draft 4 pthreads */
25999         status = pthread_create( &t, pthread_attr_default, task, NULL );
26000         if( status ) return errno;
26001
26002         /* give thread a chance to complete */
26003         /* it should remain joinable and hence detachable */
26004         sleep( 1 );
26005
26006         status = pthread_detach( &t );
26007         if( status ) return errno;
26008 #endif
26009
26010 #ifdef HAVE_LINUX_THREADS
26011         pthread_kill_other_threads_np();
26012 #endif
26013
26014         return 0;
26015
26016 }
26017
26018 _ACEOF
26019 if ac_fn_c_try_run "$LINENO"; then :
26020   ol_cv_pthread_lpthreads_lmach_lexc=yes
26021 else
26022   ol_cv_pthread_lpthreads_lmach_lexc=no
26023 fi
26024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26025   conftest.$ac_objext conftest.beam conftest.$ac_ext
26026 fi
26027
26028
26029                 # restore the LIBS
26030                 LIBS="$ol_LIBS"
26031
26032 fi
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
26034 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
26035
26036         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
26037                 ol_link_pthreads="-lpthreads -lmach -lexc"
26038                 ol_link_threads=posix
26039         fi
26040 fi
26041
26042                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
26043 if test "$ol_link_threads" = no ; then
26044         # try -lpthreads -lexc
26045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
26046 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
26047 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
26048   $as_echo_n "(cached) " >&6
26049 else
26050
26051                 # save the flags
26052                 ol_LIBS="$LIBS"
26053                 LIBS="-lpthreads -lexc $LIBS"
26054
26055                 if test "$cross_compiling" = yes; then :
26056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h.  */
26058
26059 /* pthread test headers */
26060 #include <pthread.h>
26061 #if HAVE_PTHREADS < 7
26062 #include <errno.h>
26063 #endif
26064 #ifndef NULL
26065 #define NULL (void*)0
26066 #endif
26067
26068 static void *task(p)
26069         void *p;
26070 {
26071         return (void *) (p == NULL);
26072 }
26073
26074 int
26075 main ()
26076 {
26077
26078         /* pthread test function */
26079 #ifndef PTHREAD_CREATE_DETACHED
26080 #define PTHREAD_CREATE_DETACHED 1
26081 #endif
26082         pthread_t t;
26083         int status;
26084         int detach = PTHREAD_CREATE_DETACHED;
26085
26086 #if HAVE_PTHREADS > 4
26087         /* Final pthreads */
26088         pthread_attr_t attr;
26089
26090         status = pthread_attr_init(&attr);
26091         if( status ) return status;
26092
26093 #if HAVE_PTHREADS < 7
26094         status = pthread_attr_setdetachstate(&attr, &detach);
26095         if( status < 0 ) status = errno;
26096 #else
26097         status = pthread_attr_setdetachstate(&attr, detach);
26098 #endif
26099         if( status ) return status;
26100         status = pthread_create( &t, &attr, task, NULL );
26101 #if HAVE_PTHREADS < 7
26102         if( status < 0 ) status = errno;
26103 #endif
26104         if( status ) return status;
26105 #else
26106         /* Draft 4 pthreads */
26107         status = pthread_create( &t, pthread_attr_default, task, NULL );
26108         if( status ) return errno;
26109
26110         /* give thread a chance to complete */
26111         /* it should remain joinable and hence detachable */
26112         sleep( 1 );
26113
26114         status = pthread_detach( &t );
26115         if( status ) return errno;
26116 #endif
26117
26118 #ifdef HAVE_LINUX_THREADS
26119         pthread_kill_other_threads_np();
26120 #endif
26121
26122         return 0;
26123
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 if ac_fn_c_try_link "$LINENO"; then :
26129   ol_cv_pthread_lpthreads_lexc=yes
26130 else
26131   ol_cv_pthread_lpthreads_lexc=no
26132 fi
26133 rm -f core conftest.err conftest.$ac_objext \
26134     conftest$ac_exeext conftest.$ac_ext
26135 else
26136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26137 /* end confdefs.h.  */
26138
26139
26140 /* pthread test headers */
26141 #include <pthread.h>
26142 #if HAVE_PTHREADS < 7
26143 #include <errno.h>
26144 #endif
26145 #ifndef NULL
26146 #define NULL (void*)0
26147 #endif
26148
26149 static void *task(p)
26150         void *p;
26151 {
26152         return (void *) (p == NULL);
26153 }
26154
26155
26156 int main(argc, argv)
26157         int argc;
26158         char **argv;
26159 {
26160
26161         /* pthread test function */
26162 #ifndef PTHREAD_CREATE_DETACHED
26163 #define PTHREAD_CREATE_DETACHED 1
26164 #endif
26165         pthread_t t;
26166         int status;
26167         int detach = PTHREAD_CREATE_DETACHED;
26168
26169 #if HAVE_PTHREADS > 4
26170         /* Final pthreads */
26171         pthread_attr_t attr;
26172
26173         status = pthread_attr_init(&attr);
26174         if( status ) return status;
26175
26176 #if HAVE_PTHREADS < 7
26177         status = pthread_attr_setdetachstate(&attr, &detach);
26178         if( status < 0 ) status = errno;
26179 #else
26180         status = pthread_attr_setdetachstate(&attr, detach);
26181 #endif
26182         if( status ) return status;
26183         status = pthread_create( &t, &attr, task, NULL );
26184 #if HAVE_PTHREADS < 7
26185         if( status < 0 ) status = errno;
26186 #endif
26187         if( status ) return status;
26188 #else
26189         /* Draft 4 pthreads */
26190         status = pthread_create( &t, pthread_attr_default, task, NULL );
26191         if( status ) return errno;
26192
26193         /* give thread a chance to complete */
26194         /* it should remain joinable and hence detachable */
26195         sleep( 1 );
26196
26197         status = pthread_detach( &t );
26198         if( status ) return errno;
26199 #endif
26200
26201 #ifdef HAVE_LINUX_THREADS
26202         pthread_kill_other_threads_np();
26203 #endif
26204
26205         return 0;
26206
26207 }
26208
26209 _ACEOF
26210 if ac_fn_c_try_run "$LINENO"; then :
26211   ol_cv_pthread_lpthreads_lexc=yes
26212 else
26213   ol_cv_pthread_lpthreads_lexc=no
26214 fi
26215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26216   conftest.$ac_objext conftest.beam conftest.$ac_ext
26217 fi
26218
26219
26220                 # restore the LIBS
26221                 LIBS="$ol_LIBS"
26222
26223 fi
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
26225 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
26226
26227         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
26228                 ol_link_pthreads="-lpthreads -lexc"
26229                 ol_link_threads=posix
26230         fi
26231 fi
26232
26233
26234                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
26235 if test "$ol_link_threads" = no ; then
26236         # try -lpthreads
26237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
26238 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
26239 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
26240   $as_echo_n "(cached) " >&6
26241 else
26242
26243                 # save the flags
26244                 ol_LIBS="$LIBS"
26245                 LIBS="-lpthreads $LIBS"
26246
26247                 if test "$cross_compiling" = yes; then :
26248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249 /* end confdefs.h.  */
26250
26251 /* pthread test headers */
26252 #include <pthread.h>
26253 #if HAVE_PTHREADS < 7
26254 #include <errno.h>
26255 #endif
26256 #ifndef NULL
26257 #define NULL (void*)0
26258 #endif
26259
26260 static void *task(p)
26261         void *p;
26262 {
26263         return (void *) (p == NULL);
26264 }
26265
26266 int
26267 main ()
26268 {
26269
26270         /* pthread test function */
26271 #ifndef PTHREAD_CREATE_DETACHED
26272 #define PTHREAD_CREATE_DETACHED 1
26273 #endif
26274         pthread_t t;
26275         int status;
26276         int detach = PTHREAD_CREATE_DETACHED;
26277
26278 #if HAVE_PTHREADS > 4
26279         /* Final pthreads */
26280         pthread_attr_t attr;
26281
26282         status = pthread_attr_init(&attr);
26283         if( status ) return status;
26284
26285 #if HAVE_PTHREADS < 7
26286         status = pthread_attr_setdetachstate(&attr, &detach);
26287         if( status < 0 ) status = errno;
26288 #else
26289         status = pthread_attr_setdetachstate(&attr, detach);
26290 #endif
26291         if( status ) return status;
26292         status = pthread_create( &t, &attr, task, NULL );
26293 #if HAVE_PTHREADS < 7
26294         if( status < 0 ) status = errno;
26295 #endif
26296         if( status ) return status;
26297 #else
26298         /* Draft 4 pthreads */
26299         status = pthread_create( &t, pthread_attr_default, task, NULL );
26300         if( status ) return errno;
26301
26302         /* give thread a chance to complete */
26303         /* it should remain joinable and hence detachable */
26304         sleep( 1 );
26305
26306         status = pthread_detach( &t );
26307         if( status ) return errno;
26308 #endif
26309
26310 #ifdef HAVE_LINUX_THREADS
26311         pthread_kill_other_threads_np();
26312 #endif
26313
26314         return 0;
26315
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 if ac_fn_c_try_link "$LINENO"; then :
26321   ol_cv_pthread_lib_lpthreads=yes
26322 else
26323   ol_cv_pthread_lib_lpthreads=no
26324 fi
26325 rm -f core conftest.err conftest.$ac_objext \
26326     conftest$ac_exeext conftest.$ac_ext
26327 else
26328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329 /* end confdefs.h.  */
26330
26331
26332 /* pthread test headers */
26333 #include <pthread.h>
26334 #if HAVE_PTHREADS < 7
26335 #include <errno.h>
26336 #endif
26337 #ifndef NULL
26338 #define NULL (void*)0
26339 #endif
26340
26341 static void *task(p)
26342         void *p;
26343 {
26344         return (void *) (p == NULL);
26345 }
26346
26347
26348 int main(argc, argv)
26349         int argc;
26350         char **argv;
26351 {
26352
26353         /* pthread test function */
26354 #ifndef PTHREAD_CREATE_DETACHED
26355 #define PTHREAD_CREATE_DETACHED 1
26356 #endif
26357         pthread_t t;
26358         int status;
26359         int detach = PTHREAD_CREATE_DETACHED;
26360
26361 #if HAVE_PTHREADS > 4
26362         /* Final pthreads */
26363         pthread_attr_t attr;
26364
26365         status = pthread_attr_init(&attr);
26366         if( status ) return status;
26367
26368 #if HAVE_PTHREADS < 7
26369         status = pthread_attr_setdetachstate(&attr, &detach);
26370         if( status < 0 ) status = errno;
26371 #else
26372         status = pthread_attr_setdetachstate(&attr, detach);
26373 #endif
26374         if( status ) return status;
26375         status = pthread_create( &t, &attr, task, NULL );
26376 #if HAVE_PTHREADS < 7
26377         if( status < 0 ) status = errno;
26378 #endif
26379         if( status ) return status;
26380 #else
26381         /* Draft 4 pthreads */
26382         status = pthread_create( &t, pthread_attr_default, task, NULL );
26383         if( status ) return errno;
26384
26385         /* give thread a chance to complete */
26386         /* it should remain joinable and hence detachable */
26387         sleep( 1 );
26388
26389         status = pthread_detach( &t );
26390         if( status ) return errno;
26391 #endif
26392
26393 #ifdef HAVE_LINUX_THREADS
26394         pthread_kill_other_threads_np();
26395 #endif
26396
26397         return 0;
26398
26399 }
26400
26401 _ACEOF
26402 if ac_fn_c_try_run "$LINENO"; then :
26403   ol_cv_pthread_lib_lpthreads=yes
26404 else
26405   ol_cv_pthread_lib_lpthreads=no
26406 fi
26407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26408   conftest.$ac_objext conftest.beam conftest.$ac_ext
26409 fi
26410
26411
26412                 # restore the LIBS
26413                 LIBS="$ol_LIBS"
26414
26415 fi
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
26417 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
26418
26419         if test $ol_cv_pthread_lib_lpthreads = yes ; then
26420                 ol_link_pthreads="-lpthreads"
26421                 ol_link_threads=posix
26422         fi
26423 fi
26424
26425
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
26427 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
26428
26429                 if test $ol_link_threads != no ; then
26430                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
26431
26432                                                 save_CPPFLAGS="$CPPFLAGS"
26433                         save_LIBS="$LIBS"
26434                         LIBS="$LTHREAD_LIBS $LIBS"
26435
26436                                                                                                 for ac_func in sched_yield pthread_yield thr_yield
26437 do :
26438   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26441   cat >>confdefs.h <<_ACEOF
26442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443 _ACEOF
26444
26445 fi
26446 done
26447
26448
26449                         if test $ac_cv_func_sched_yield = no &&
26450                            test $ac_cv_func_pthread_yield = no &&
26451                            test $ac_cv_func_thr_yield = no ; then
26452                                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
26453 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
26454 if ${ac_cv_lib_rt_sched_yield+:} false; then :
26455   $as_echo_n "(cached) " >&6
26456 else
26457   ac_check_lib_save_LIBS=$LIBS
26458 LIBS="-lrt  $LIBS"
26459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26460 /* end confdefs.h.  */
26461
26462 /* Override any GCC internal prototype to avoid an error.
26463    Use char because int might match the return type of a GCC
26464    builtin and then its argument prototype would still apply.  */
26465 #ifdef __cplusplus
26466 extern "C"
26467 #endif
26468 char sched_yield ();
26469 int
26470 main ()
26471 {
26472 return sched_yield ();
26473   ;
26474   return 0;
26475 }
26476 _ACEOF
26477 if ac_fn_c_try_link "$LINENO"; then :
26478   ac_cv_lib_rt_sched_yield=yes
26479 else
26480   ac_cv_lib_rt_sched_yield=no
26481 fi
26482 rm -f core conftest.err conftest.$ac_objext \
26483     conftest$ac_exeext conftest.$ac_ext
26484 LIBS=$ac_check_lib_save_LIBS
26485 fi
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
26487 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
26488 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
26489   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
26490
26491 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
26492
26493                                         ac_cv_func_sched_yield=yes
26494 else
26495   ac_cv_func_sched_yield=no
26496 fi
26497
26498                         fi
26499                         if test $ac_cv_func_sched_yield = no &&
26500                            test $ac_cv_func_pthread_yield = no &&
26501                            test "$ac_cv_func_thr_yield" = no ; then
26502                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
26503 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
26504                         fi
26505
26506                                                 for ac_func in pthread_kill
26507 do :
26508   ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
26509 if test "x$ac_cv_func_pthread_kill" = xyes; then :
26510   cat >>confdefs.h <<_ACEOF
26511 #define HAVE_PTHREAD_KILL 1
26512 _ACEOF
26513
26514 fi
26515 done
26516
26517
26518                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
26519 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
26520 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
26521   $as_echo_n "(cached) " >&6
26522 else
26523
26524                                                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26525 /* end confdefs.h.  */
26526
26527 #include <pthread.h>
26528 pthread_rwlock_t rwlock;
26529
26530 int
26531 main ()
26532 {
26533 pthread_rwlock_destroy(&rwlock);
26534   ;
26535   return 0;
26536 }
26537 _ACEOF
26538 if ac_fn_c_try_link "$LINENO"; then :
26539   ol_cv_func_pthread_rwlock_destroy=yes
26540 else
26541   ol_cv_func_pthread_rwlock_destroy=no
26542 fi
26543 rm -f core conftest.err conftest.$ac_objext \
26544     conftest$ac_exeext conftest.$ac_ext
26545
26546 fi
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
26548 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
26549                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
26550
26551 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
26552
26553                         fi
26554
26555                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
26556 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
26557 if ${ol_cv_func_pthread_detach+:} false; then :
26558   $as_echo_n "(cached) " >&6
26559 else
26560
26561                                                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26562 /* end confdefs.h.  */
26563
26564 #include <pthread.h>
26565 #ifndef NULL
26566 #define NULL (void*)0
26567 #endif
26568
26569 int
26570 main ()
26571 {
26572 pthread_detach(NULL);
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 if ac_fn_c_try_link "$LINENO"; then :
26578   ol_cv_func_pthread_detach=yes
26579 else
26580   ol_cv_func_pthread_detach=no
26581 fi
26582 rm -f core conftest.err conftest.$ac_objext \
26583     conftest$ac_exeext conftest.$ac_ext
26584
26585 fi
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
26587 $as_echo "$ol_cv_func_pthread_detach" >&6; }
26588
26589                         if test $ol_cv_func_pthread_detach = no ; then
26590                                 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
26591                         fi
26592
26593
26594 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
26595
26596
26597                                                 for ac_func in \
26598                                 pthread_setconcurrency \
26599                                 pthread_getconcurrency \
26600                                 thr_setconcurrency \
26601                                 thr_getconcurrency \
26602
26603 do :
26604   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26607   cat >>confdefs.h <<_ACEOF
26608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26609 _ACEOF
26610
26611 fi
26612 done
26613
26614
26615
26616         for ac_func in pthread_kill_other_threads_np
26617 do :
26618   ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
26619 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
26620   cat >>confdefs.h <<_ACEOF
26621 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
26622 _ACEOF
26623
26624 fi
26625 done
26626
26627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
26628 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
26629 if ${ol_cv_sys_linux_threads+:} false; then :
26630   $as_echo_n "(cached) " >&6
26631 else
26632   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
26633 fi
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
26635 $as_echo "$ol_cv_sys_linux_threads" >&6; }
26636
26637
26638
26639
26640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
26641 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
26642 if ${ol_cv_linux_threads+:} false; then :
26643   $as_echo_n "(cached) " >&6
26644 else
26645
26646                 if test $ol_cv_header_linux_threads = yes &&
26647                    test $ol_cv_sys_linux_threads = yes; then
26648                         ol_cv_linux_threads=yes
26649                 elif test $ol_cv_header_linux_threads = no &&
26650                      test $ol_cv_sys_linux_threads = no; then
26651                         ol_cv_linux_threads=no
26652                 else
26653                         ol_cv_linux_threads=error
26654                 fi
26655
26656 fi
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
26658 $as_echo "$ol_cv_linux_threads" >&6; }
26659
26660
26661                         if test $ol_cv_linux_threads = error; then
26662                                 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
26663                         fi
26664
26665                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
26666 $as_echo_n "checking if pthread_create() works... " >&6; }
26667 if ${ol_cv_pthread_create_works+:} false; then :
26668   $as_echo_n "(cached) " >&6
26669 else
26670
26671                         if test "$cross_compiling" = yes; then :
26672                                 ol_cv_pthread_create_works=yes
26673 else
26674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h.  */
26676
26677
26678 /* pthread test headers */
26679 #include <pthread.h>
26680 #if HAVE_PTHREADS < 7
26681 #include <errno.h>
26682 #endif
26683 #ifndef NULL
26684 #define NULL (void*)0
26685 #endif
26686
26687 static void *task(p)
26688         void *p;
26689 {
26690         return (void *) (p == NULL);
26691 }
26692
26693
26694 int main(argc, argv)
26695         int argc;
26696         char **argv;
26697 {
26698
26699         /* pthread test function */
26700 #ifndef PTHREAD_CREATE_DETACHED
26701 #define PTHREAD_CREATE_DETACHED 1
26702 #endif
26703         pthread_t t;
26704         int status;
26705         int detach = PTHREAD_CREATE_DETACHED;
26706
26707 #if HAVE_PTHREADS > 4
26708         /* Final pthreads */
26709         pthread_attr_t attr;
26710
26711         status = pthread_attr_init(&attr);
26712         if( status ) return status;
26713
26714 #if HAVE_PTHREADS < 7
26715         status = pthread_attr_setdetachstate(&attr, &detach);
26716         if( status < 0 ) status = errno;
26717 #else
26718         status = pthread_attr_setdetachstate(&attr, detach);
26719 #endif
26720         if( status ) return status;
26721         status = pthread_create( &t, &attr, task, NULL );
26722 #if HAVE_PTHREADS < 7
26723         if( status < 0 ) status = errno;
26724 #endif
26725         if( status ) return status;
26726 #else
26727         /* Draft 4 pthreads */
26728         status = pthread_create( &t, pthread_attr_default, task, NULL );
26729         if( status ) return errno;
26730
26731         /* give thread a chance to complete */
26732         /* it should remain joinable and hence detachable */
26733         sleep( 1 );
26734
26735         status = pthread_detach( &t );
26736         if( status ) return errno;
26737 #endif
26738
26739 #ifdef HAVE_LINUX_THREADS
26740         pthread_kill_other_threads_np();
26741 #endif
26742
26743         return 0;
26744
26745 }
26746
26747 _ACEOF
26748 if ac_fn_c_try_run "$LINENO"; then :
26749   ol_cv_pthread_create_works=yes
26750 else
26751   ol_cv_pthread_create_works=no
26752 fi
26753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26754   conftest.$ac_objext conftest.beam conftest.$ac_ext
26755 fi
26756
26757 fi
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
26759 $as_echo "$ol_cv_pthread_create_works" >&6; }
26760
26761                         if test $ol_cv_pthread_create_works = no ; then
26762                                 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
26763                         fi
26764
26765                         ol_replace_broken_yield=no
26766
26767                         if test $ol_replace_broken_yield = yes ; then
26768
26769 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
26770
26771                         fi
26772
26773                                                 if test x$ol_with_yielding_select = xauto ; then
26774                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
26775 $as_echo_n "checking if select yields when using pthreads... " >&6; }
26776 if ${ol_cv_pthread_select_yields+:} false; then :
26777   $as_echo_n "(cached) " >&6
26778 else
26779
26780                                 if test "$cross_compiling" = yes; then :
26781   ol_cv_pthread_select_yields=cross
26782 else
26783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784 /* end confdefs.h.  */
26785
26786 #include <sys/types.h>
26787 #include <sys/time.h>
26788 #include <unistd.h>
26789 #include <pthread.h>
26790 #ifndef NULL
26791 #define NULL (void*) 0
26792 #endif
26793
26794 static int fildes[2];
26795
26796 static void *task(p)
26797         void *p;
26798 {
26799         int i;
26800         struct timeval tv;
26801
26802         fd_set rfds;
26803
26804         tv.tv_sec=10;
26805         tv.tv_usec=0;
26806
26807         FD_ZERO(&rfds);
26808         FD_SET(fildes[0], &rfds);
26809
26810         /* we're not interested in any fds */
26811         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
26812
26813         if(i < 0) {
26814                 perror("select");
26815                 exit(10);
26816         }
26817
26818         exit(0); /* if we exit here, the select blocked the whole process */
26819 }
26820
26821 int main(argc, argv)
26822         int argc;
26823         char **argv;
26824 {
26825         pthread_t t;
26826
26827         /* create a pipe to select */
26828         if(pipe(&fildes[0])) {
26829                 perror("select");
26830                 exit(1);
26831         }
26832
26833 #ifdef HAVE_PTHREAD_SETCONCURRENCY
26834         (void) pthread_setconcurrency(2);
26835 #else
26836 #ifdef HAVE_THR_SETCONCURRENCY
26837         /* Set Solaris LWP concurrency to 2 */
26838         thr_setconcurrency(2);
26839 #endif
26840 #endif
26841
26842 #if HAVE_PTHREADS < 6
26843         pthread_create(&t, pthread_attr_default, task, NULL);
26844 #else
26845         pthread_create(&t, NULL, task, NULL);
26846 #endif
26847
26848         /* make sure task runs first */
26849 #ifdef HAVE_THR_YIELD
26850         thr_yield();
26851 #elif defined( HAVE_SCHED_YIELD )
26852         sched_yield();
26853 #elif defined( HAVE_PTHREAD_YIELD )
26854         pthread_yield();
26855 #endif
26856
26857         exit(2);
26858 }
26859 _ACEOF
26860 if ac_fn_c_try_run "$LINENO"; then :
26861   ol_cv_pthread_select_yields=no
26862 else
26863   ol_cv_pthread_select_yields=yes
26864 fi
26865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26866   conftest.$ac_objext conftest.beam conftest.$ac_ext
26867 fi
26868
26869 fi
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
26871 $as_echo "$ol_cv_pthread_select_yields" >&6; }
26872
26873                                 if test $ol_cv_pthread_select_yields = cross ; then
26874                                         as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
26875                                 fi
26876
26877                                 if test $ol_cv_pthread_select_yields = yes ; then
26878                                         ol_with_yielding_select=yes
26879                                 fi
26880                         fi
26881
26882                                                 CPPFLAGS="$save_CPPFLAGS"
26883                         LIBS="$save_LIBS"
26884                 else
26885                         as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
26886                 fi
26887         fi
26888
26889         if test $ol_with_threads = posix ; then
26890                 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
26891         fi
26892         ;;
26893 esac
26894
26895 case $ol_with_threads in auto | yes | mach)
26896
26897                 for ac_header in mach/cthreads.h cthreads.h
26898 do :
26899   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26902   cat >>confdefs.h <<_ACEOF
26903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26904 _ACEOF
26905
26906 fi
26907
26908 done
26909
26910         if test $ac_cv_header_mach_cthreads_h = yes ; then
26911                 ol_with_threads=found
26912
26913                                 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26914 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26915   ol_link_threads=yes
26916 fi
26917
26918
26919                 if test $ol_link_threads = no ; then
26920                                                                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
26921 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
26922 if ${ol_cv_cthread_all_load+:} false; then :
26923   $as_echo_n "(cached) " >&6
26924 else
26925
26926                                                                 save_LIBS="$LIBS"
26927                                 LIBS="-all_load $LIBS"
26928                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h.  */
26930 #include <mach/cthreads.h>
26931 int
26932 main ()
26933 {
26934
26935                                         cthread_fork((void *)0, (void *)0);
26936
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 if ac_fn_c_try_link "$LINENO"; then :
26942   ol_cv_cthread_all_load=yes
26943 else
26944   ol_cv_cthread_all_load=no
26945 fi
26946 rm -f core conftest.err conftest.$ac_objext \
26947     conftest$ac_exeext conftest.$ac_ext
26948                                                                 LIBS="$save_LIBS"
26949
26950 fi
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
26952 $as_echo "$ol_cv_cthread_all_load" >&6; }
26953
26954                         if test $ol_cv_cthread_all_load = yes ; then
26955                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26956                                 ol_link_threads=mach
26957                                 ol_with_threads=found
26958                         fi
26959                 fi
26960
26961         elif test $ac_cv_header_cthreads_h = yes ; then
26962
26963                 ol_with_threads=found
26964
26965                                 save_LIBS="$LIBS"
26966                 LIBS="$LIBS -lthreads"
26967                 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
26968 if test "x$ac_cv_func_cthread_fork" = xyes; then :
26969   ol_link_threads=yes
26970 fi
26971
26972                 LIBS="$save_LIBS"
26973
26974                 if test $ol_link_threads = yes ; then
26975                         LTHREAD_LIBS="-lthreads"
26976                         ol_link_threads=mach
26977                         ol_with_threads=found
26978                 else
26979                         as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26980                 fi
26981
26982         elif test $ol_with_threads = mach ; then
26983                 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
26984         fi
26985
26986         if test $ol_link_threads = mach ; then
26987
26988 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
26989
26990         elif test $ol_with_threads = found ; then
26991                 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
26992         fi
26993         ;;
26994 esac
26995
26996 case $ol_with_threads in auto | yes | pth)
26997
26998         for ac_header in pth.h
26999 do :
27000   ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
27001 if test "x$ac_cv_header_pth_h" = xyes; then :
27002   cat >>confdefs.h <<_ACEOF
27003 #define HAVE_PTH_H 1
27004 _ACEOF
27005
27006 fi
27007
27008 done
27009
27010
27011         if test $ac_cv_header_pth_h = yes ; then
27012                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
27013 $as_echo_n "checking for pth_version in -lpth... " >&6; }
27014 if ${ac_cv_lib_pth_pth_version+:} false; then :
27015   $as_echo_n "(cached) " >&6
27016 else
27017   ac_check_lib_save_LIBS=$LIBS
27018 LIBS="-lpth  $LIBS"
27019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h.  */
27021
27022 /* Override any GCC internal prototype to avoid an error.
27023    Use char because int might match the return type of a GCC
27024    builtin and then its argument prototype would still apply.  */
27025 #ifdef __cplusplus
27026 extern "C"
27027 #endif
27028 char pth_version ();
27029 int
27030 main ()
27031 {
27032 return pth_version ();
27033   ;
27034   return 0;
27035 }
27036 _ACEOF
27037 if ac_fn_c_try_link "$LINENO"; then :
27038   ac_cv_lib_pth_pth_version=yes
27039 else
27040   ac_cv_lib_pth_pth_version=no
27041 fi
27042 rm -f core conftest.err conftest.$ac_objext \
27043     conftest$ac_exeext conftest.$ac_ext
27044 LIBS=$ac_check_lib_save_LIBS
27045 fi
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
27047 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
27048 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
27049   have_pth=yes
27050 else
27051   have_pth=no
27052 fi
27053
27054
27055                 if test $have_pth = yes ; then
27056
27057 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
27058
27059                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
27060                         ol_link_threads=pth
27061                         ol_with_threads=found
27062
27063                         if test x$ol_with_yielding_select = xauto ; then
27064                                 ol_with_yielding_select=yes
27065                         fi
27066                 fi
27067         fi
27068         ;;
27069 esac
27070
27071 case $ol_with_threads in auto | yes | lwp)
27072
27073                 for ac_header in thread.h synch.h
27074 do :
27075   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27076 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27078   cat >>confdefs.h <<_ACEOF
27079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27080 _ACEOF
27081
27082 fi
27083
27084 done
27085
27086         if test $ac_cv_header_thread_h = yes &&
27087            test $ac_cv_header_synch_h = yes ; then
27088                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
27089 $as_echo_n "checking for thr_create in -lthread... " >&6; }
27090 if ${ac_cv_lib_thread_thr_create+:} false; then :
27091   $as_echo_n "(cached) " >&6
27092 else
27093   ac_check_lib_save_LIBS=$LIBS
27094 LIBS="-lthread  $LIBS"
27095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h.  */
27097
27098 /* Override any GCC internal prototype to avoid an error.
27099    Use char because int might match the return type of a GCC
27100    builtin and then its argument prototype would still apply.  */
27101 #ifdef __cplusplus
27102 extern "C"
27103 #endif
27104 char thr_create ();
27105 int
27106 main ()
27107 {
27108 return thr_create ();
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 if ac_fn_c_try_link "$LINENO"; then :
27114   ac_cv_lib_thread_thr_create=yes
27115 else
27116   ac_cv_lib_thread_thr_create=no
27117 fi
27118 rm -f core conftest.err conftest.$ac_objext \
27119     conftest$ac_exeext conftest.$ac_ext
27120 LIBS=$ac_check_lib_save_LIBS
27121 fi
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
27123 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
27124 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
27125   have_thr=yes
27126 else
27127   have_thr=no
27128 fi
27129
27130
27131                 if test $have_thr = yes ; then
27132
27133 $as_echo "#define HAVE_THR 1" >>confdefs.h
27134
27135                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
27136                         ol_link_threads=thr
27137
27138                         if test x$ol_with_yielding_select = xauto ; then
27139                                 ol_with_yielding_select=yes
27140                         fi
27141
27142                                                 for ac_func in \
27143                                 thr_setconcurrency \
27144                                 thr_getconcurrency \
27145
27146 do :
27147   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27150   cat >>confdefs.h <<_ACEOF
27151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27152 _ACEOF
27153
27154 fi
27155 done
27156
27157                 fi
27158         fi
27159
27160                 for ac_header in lwp/lwp.h
27161 do :
27162   ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27163 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27164   cat >>confdefs.h <<_ACEOF
27165 #define HAVE_LWP_LWP_H 1
27166 _ACEOF
27167
27168 fi
27169
27170 done
27171
27172         if test $ac_cv_header_lwp_lwp_h = yes ; then
27173                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
27174 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
27175 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
27176   $as_echo_n "(cached) " >&6
27177 else
27178   ac_check_lib_save_LIBS=$LIBS
27179 LIBS="-llwp  $LIBS"
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h.  */
27182
27183 /* Override any GCC internal prototype to avoid an error.
27184    Use char because int might match the return type of a GCC
27185    builtin and then its argument prototype would still apply.  */
27186 #ifdef __cplusplus
27187 extern "C"
27188 #endif
27189 char lwp_create ();
27190 int
27191 main ()
27192 {
27193 return lwp_create ();
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 if ac_fn_c_try_link "$LINENO"; then :
27199   ac_cv_lib_lwp_lwp_create=yes
27200 else
27201   ac_cv_lib_lwp_lwp_create=no
27202 fi
27203 rm -f core conftest.err conftest.$ac_objext \
27204     conftest$ac_exeext conftest.$ac_ext
27205 LIBS=$ac_check_lib_save_LIBS
27206 fi
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
27208 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
27209 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
27210   have_lwp=yes
27211 else
27212   have_lwp=no
27213 fi
27214
27215
27216                 if test $have_lwp = yes ; then
27217
27218 $as_echo "#define HAVE_LWP 1" >>confdefs.h
27219
27220                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27221                         ol_link_threads=lwp
27222
27223                         if test x$ol_with_yielding_select = xauto ; then
27224                                 ol_with_yielding_select=no
27225                         fi
27226                 fi
27227         fi
27228         ;;
27229 esac
27230
27231 if test $ol_with_yielding_select = yes ; then
27232
27233 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
27234
27235 fi
27236
27237 if test $ol_with_threads = manual ; then
27238                 ol_link_threads=yes
27239
27240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
27241 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27242
27243         for ac_header in pthread.h sched.h
27244 do :
27245   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27248   cat >>confdefs.h <<_ACEOF
27249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27250 _ACEOF
27251
27252 fi
27253
27254 done
27255
27256         for ac_func in sched_yield pthread_yield
27257 do :
27258   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27261   cat >>confdefs.h <<_ACEOF
27262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27263 _ACEOF
27264
27265 fi
27266 done
27267
27268
27269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
27270 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
27271 if ${ol_cv_header_linux_threads+:} false; then :
27272   $as_echo_n "(cached) " >&6
27273 else
27274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27275 /* end confdefs.h.  */
27276 #include <pthread.h>
27277 _ACEOF
27278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27279   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
27280   ol_cv_header_linux_threads=yes
27281 else
27282   ol_cv_header_linux_threads=no
27283 fi
27284 rm -f conftest*
27285
27286
27287 fi
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
27289 $as_echo "$ol_cv_header_linux_threads" >&6; }
27290         if test $ol_cv_header_linux_threads = yes; then
27291
27292 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
27293
27294         fi
27295
27296
27297         for ac_header in mach/cthreads.h
27298 do :
27299   ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
27300 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
27301   cat >>confdefs.h <<_ACEOF
27302 #define HAVE_MACH_CTHREADS_H 1
27303 _ACEOF
27304
27305 fi
27306
27307 done
27308
27309         for ac_header in lwp/lwp.h
27310 do :
27311   ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
27312 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
27313   cat >>confdefs.h <<_ACEOF
27314 #define HAVE_LWP_LWP_H 1
27315 _ACEOF
27316
27317 fi
27318
27319 done
27320
27321         for ac_header in thread.h synch.h
27322 do :
27323   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27326   cat >>confdefs.h <<_ACEOF
27327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27328 _ACEOF
27329
27330 fi
27331
27332 done
27333
27334 fi
27335
27336 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27337
27338 $as_echo "#define REENTRANT 1" >>confdefs.h
27339
27340
27341 $as_echo "#define _REENTRANT 1" >>confdefs.h
27342
27343
27344 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
27345
27346
27347 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
27348
27349
27350 $as_echo "#define THREADSAFE 1" >>confdefs.h
27351
27352
27353 $as_echo "#define _THREADSAFE 1" >>confdefs.h
27354
27355
27356 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
27357
27358
27359                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
27360 $as_echo_n "checking for thread specific errno... " >&6; }
27361 if ${ol_cv_errno_thread_specific+:} false; then :
27362   $as_echo_n "(cached) " >&6
27363 else
27364
27365                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366 /* end confdefs.h.  */
27367 #include <errno.h>
27368 int
27369 main ()
27370 {
27371 errno = 0;
27372   ;
27373   return 0;
27374 }
27375 _ACEOF
27376 if ac_fn_c_try_link "$LINENO"; then :
27377   ol_cv_errno_thread_specific=yes
27378 else
27379   ol_cv_errno_thread_specific=no
27380 fi
27381 rm -f core conftest.err conftest.$ac_objext \
27382     conftest$ac_exeext conftest.$ac_ext
27383
27384 fi
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
27386 $as_echo "$ol_cv_errno_thread_specific" >&6; }
27387
27388                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
27389 $as_echo_n "checking for thread specific h_errno... " >&6; }
27390 if ${ol_cv_h_errno_thread_specific+:} false; then :
27391   $as_echo_n "(cached) " >&6
27392 else
27393
27394                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27395 /* end confdefs.h.  */
27396 #include <netdb.h>
27397 int
27398 main ()
27399 {
27400 h_errno = 0;
27401   ;
27402   return 0;
27403 }
27404 _ACEOF
27405 if ac_fn_c_try_link "$LINENO"; then :
27406   ol_cv_h_errno_thread_specific=yes
27407 else
27408   ol_cv_h_errno_thread_specific=no
27409 fi
27410 rm -f core conftest.err conftest.$ac_objext \
27411     conftest$ac_exeext conftest.$ac_ext
27412
27413 fi
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
27415 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
27416
27417         if test $ol_cv_errno_thread_specific != yes ||
27418            test $ol_cv_h_errno_thread_specific != yes ; then
27419                 LIBS="$LTHREAD_LIBS $LIBS"
27420                 LTHREAD_LIBS=""
27421         fi
27422
27423 fi
27424
27425 if test $ol_link_threads = no ; then
27426         if test $ol_with_threads = yes ; then
27427                 as_fn_error $? "no suitable thread support" "$LINENO" 5
27428         fi
27429
27430         if test $ol_with_threads = auto ; then
27431                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
27432 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27433                 ol_with_threads=no
27434         fi
27435
27436
27437 $as_echo "#define NO_THREADS 1" >>confdefs.h
27438
27439         LTHREAD_LIBS=""
27440         BUILD_THREAD=no
27441 else
27442         BUILD_THREAD=yes
27443 fi
27444
27445 if test $ol_link_threads != no ; then
27446
27447 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
27448
27449 fi
27450
27451 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27452 case "$ol_with_threads" in
27453  no)
27454     ol_pthread_ok=no
27455
27456     ;;
27457  *)
27458     ol_found_pthreads=yes
27459     ;;
27460 esac
27461
27462 ac_ext=c
27463 ac_cpp='$CPP $CPPFLAGS'
27464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27467
27468
27469
27470
27471
27472
27473     case "$ol_found_pthreads" in
27474      yes)
27475         saved_LIBS="$LIBS"
27476         LIBS="$LTHREAD_LIBS $LIBS"
27477         saved_CFLAGS="$CFLAGS"
27478         CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27479         for ac_func in sem_timedwait
27480 do :
27481   ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
27482 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
27483   cat >>confdefs.h <<_ACEOF
27484 #define HAVE_SEM_TIMEDWAIT 1
27485 _ACEOF
27486
27487 fi
27488 done
27489
27490         LIBS="$saved_LIBS"
27491         { saved_LIBS=; unset saved_LIBS;}
27492         CFLAGS="$saved_CFLAGS"
27493         { saved_CFLAGS=; unset saved_CFLAGS;}
27494         case "$ac_cv_func_sem_timedwait" in
27495          yes)
27496             PTHREAD_LIBS="$LTHREAD_LIBS"
27497             have_pthreads=yes
27498         esac
27499     esac
27500 esac
27501
27502 case "$have_pthreads" in
27503  yes)
27504     CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
27505     saved_LIBS="$LIBS"
27506     LIBS="$LTHREAD_LIBS $LIBS"
27507     saved_CFLAGS="$CFLAGS"
27508     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
27509     # The cast to long int works around a bug in the HP C Compiler
27510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512 # This bug is HP SR number 8606223364.
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
27514 $as_echo_n "checking size of pthread_t... " >&6; }
27515 if ${ac_cv_sizeof_pthread_t+:} false; then :
27516   $as_echo_n "(cached) " >&6
27517 else
27518   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "
27519             $ac_includes_default
27520             #include <pthread.h>
27521
27522
27523 "; then :
27524
27525 else
27526   if test "$ac_cv_type_pthread_t" = yes; then
27527      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27529 as_fn_error 77 "cannot compute sizeof (pthread_t)
27530 See \`config.log' for more details" "$LINENO" 5; }
27531    else
27532      ac_cv_sizeof_pthread_t=0
27533    fi
27534 fi
27535
27536 fi
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
27538 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
27539
27540
27541
27542 cat >>confdefs.h <<_ACEOF
27543 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
27544 _ACEOF
27545
27546
27547     LIBISC_PTHREADS_NOTHREADS=pthreads
27548
27549 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
27550
27551     #
27552     # We'd like to use sigwait() too
27553     #
27554     ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
27555 if test "x$ac_cv_func_sigwait" = xyes; then :
27556   have_sigwait=yes
27557 else
27558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
27559 $as_echo_n "checking for sigwait in -lc... " >&6; }
27560 if ${ac_cv_lib_c_sigwait+:} false; then :
27561   $as_echo_n "(cached) " >&6
27562 else
27563   ac_check_lib_save_LIBS=$LIBS
27564 LIBS="-lc  $LIBS"
27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h.  */
27567
27568 /* Override any GCC internal prototype to avoid an error.
27569    Use char because int might match the return type of a GCC
27570    builtin and then its argument prototype would still apply.  */
27571 #ifdef __cplusplus
27572 extern "C"
27573 #endif
27574 char sigwait ();
27575 int
27576 main ()
27577 {
27578 return sigwait ();
27579   ;
27580   return 0;
27581 }
27582 _ACEOF
27583 if ac_fn_c_try_link "$LINENO"; then :
27584   ac_cv_lib_c_sigwait=yes
27585 else
27586   ac_cv_lib_c_sigwait=no
27587 fi
27588 rm -f core conftest.err conftest.$ac_objext \
27589     conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27591 fi
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
27593 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
27594 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
27595   have_sigwait=yes
27596 else
27597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
27598 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
27599 if ${ac_cv_lib_pthread_sigwait+:} false; then :
27600   $as_echo_n "(cached) " >&6
27601 else
27602   ac_check_lib_save_LIBS=$LIBS
27603 LIBS="-lpthread  $LIBS"
27604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27605 /* end confdefs.h.  */
27606
27607 /* Override any GCC internal prototype to avoid an error.
27608    Use char because int might match the return type of a GCC
27609    builtin and then its argument prototype would still apply.  */
27610 #ifdef __cplusplus
27611 extern "C"
27612 #endif
27613 char sigwait ();
27614 int
27615 main ()
27616 {
27617 return sigwait ();
27618   ;
27619   return 0;
27620 }
27621 _ACEOF
27622 if ac_fn_c_try_link "$LINENO"; then :
27623   ac_cv_lib_pthread_sigwait=yes
27624 else
27625   ac_cv_lib_pthread_sigwait=no
27626 fi
27627 rm -f core conftest.err conftest.$ac_objext \
27628     conftest$ac_exeext conftest.$ac_ext
27629 LIBS=$ac_check_lib_save_LIBS
27630 fi
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
27632 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
27633 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
27634   have_sigwait=yes
27635 else
27636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
27637 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
27638 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
27639   $as_echo_n "(cached) " >&6
27640 else
27641   ac_check_lib_save_LIBS=$LIBS
27642 LIBS="-lpthread  $LIBS"
27643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27644 /* end confdefs.h.  */
27645
27646 /* Override any GCC internal prototype to avoid an error.
27647    Use char because int might match the return type of a GCC
27648    builtin and then its argument prototype would still apply.  */
27649 #ifdef __cplusplus
27650 extern "C"
27651 #endif
27652 char _Psigwait ();
27653 int
27654 main ()
27655 {
27656 return _Psigwait ();
27657   ;
27658   return 0;
27659 }
27660 _ACEOF
27661 if ac_fn_c_try_link "$LINENO"; then :
27662   ac_cv_lib_pthread__Psigwait=yes
27663 else
27664   ac_cv_lib_pthread__Psigwait=no
27665 fi
27666 rm -f core conftest.err conftest.$ac_objext \
27667     conftest$ac_exeext conftest.$ac_ext
27668 LIBS=$ac_check_lib_save_LIBS
27669 fi
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
27671 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
27672 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
27673   have_sigwait=yes
27674 else
27675   have_sigwait=no
27676
27677 fi
27678
27679
27680 fi
27681
27682
27683 fi
27684
27685
27686 fi
27687
27688     case "$host:$have_sigwait" in
27689      *-freebsd*:no)
27690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
27691 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
27692 if ${ac_cv_lib_c_r_sigwait+:} false; then :
27693   $as_echo_n "(cached) " >&6
27694 else
27695   ac_check_lib_save_LIBS=$LIBS
27696 LIBS="-lc_r  $LIBS"
27697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698 /* end confdefs.h.  */
27699
27700 /* Override any GCC internal prototype to avoid an error.
27701    Use char because int might match the return type of a GCC
27702    builtin and then its argument prototype would still apply.  */
27703 #ifdef __cplusplus
27704 extern "C"
27705 #endif
27706 char sigwait ();
27707 int
27708 main ()
27709 {
27710 return sigwait ();
27711   ;
27712   return 0;
27713 }
27714 _ACEOF
27715 if ac_fn_c_try_link "$LINENO"; then :
27716   ac_cv_lib_c_r_sigwait=yes
27717 else
27718   ac_cv_lib_c_r_sigwait=no
27719 fi
27720 rm -f core conftest.err conftest.$ac_objext \
27721     conftest$ac_exeext conftest.$ac_ext
27722 LIBS=$ac_check_lib_save_LIBS
27723 fi
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
27725 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
27726 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
27727   have_sigwait=yes
27728
27729 fi
27730
27731     esac
27732     case "$have_sigwait" in
27733      yes)
27734         ac_cv_func_sigwait=yes
27735
27736 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
27737
27738     esac
27739
27740     for ac_func in pthread_attr_getstacksize
27741 do :
27742   ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
27743 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
27744   cat >>confdefs.h <<_ACEOF
27745 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
27746 _ACEOF
27747
27748 fi
27749 done
27750
27751     for ac_func in pthread_attr_setstacksize sysconf
27752 do :
27753   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27756   cat >>confdefs.h <<_ACEOF
27757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27758 _ACEOF
27759
27760 fi
27761 done
27762
27763
27764     case "$host" in
27765      *-freebsd5.[012]|*-freebsd5.[012].*)
27766         ;;
27767      *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
27768
27769 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
27770
27771         ;;
27772      *-bsdi3.*|*-bsdi4.0*)
27773
27774 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
27775
27776         ;;
27777      *-linux*)
27778
27779 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
27780
27781         ;;
27782      *-solaris*)
27783         $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
27784
27785         for ac_func in pthread_setconcurrency
27786 do :
27787   ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
27788 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
27789   cat >>confdefs.h <<_ACEOF
27790 #define HAVE_PTHREAD_SETCONCURRENCY 1
27791 _ACEOF
27792
27793 fi
27794 done
27795
27796         case "$ac_cv_func_pthread_setconcurrency" in
27797          yes)
27798
27799 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
27800
27801         esac
27802         ;;
27803      *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27804
27805 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
27806
27807         ;;
27808     esac
27809     hack_shutup_pthreadonceinit=no
27810     case "$host" in
27811      *-aix5.[123].*)
27812         hack_shutup_pthreadonceinit=yes
27813         ;;
27814      *-solaris2.[89])
27815         hack_shutup_pthreadonceinit=yes
27816         ;;
27817      *-solaris2.1[0-9])
27818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
27819 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
27820 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
27821   $as_echo_n "(cached) " >&6
27822 else
27823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27824 /* end confdefs.h.  */
27825
27826                         #include <pthread.h>
27827
27828 int
27829 main ()
27830 {
27831
27832                         static pthread_once_t once_test =
27833                                                 PTHREAD_ONCE_INIT;
27834
27835
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 if ac_fn_c_try_compile "$LINENO"; then :
27841   ntp_cv_braces_around_pthread_once_init=no
27842 else
27843   ntp_cv_braces_around_pthread_once_init=yes
27844
27845 fi
27846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27847
27848 fi
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
27850 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
27851         case "$ntp_cv_braces_around_pthread_once_init" in
27852          yes)
27853             hack_shutup_pthreadonceinit=yes
27854         esac
27855         ;;
27856     esac
27857     case "$hack_shutup_pthreadonceinit" in
27858      yes)
27859
27860 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
27861
27862     esac
27863     LIBS="$saved_LIBS"
27864     { saved_LIBS=; unset saved_LIBS;}
27865     CFLAGS="$saved_CFLAGS"
27866     { saved_CFLAGS=; unset saved_CFLAGS;}
27867     ;;
27868  *)
27869     LIBISC_PTHREADS_NOTHREADS=nothreads
27870     ;;
27871 esac
27872
27873  if test "$have_pthreads" != "no"; then
27874   PTHREADS_TRUE=
27875   PTHREADS_FALSE='#'
27876 else
27877   PTHREADS_TRUE='#'
27878   PTHREADS_FALSE=
27879 fi
27880
27881
27882
27883
27884
27885
27886
27887 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
27888  no:yes)
27889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
27890 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
27891 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
27892   $as_echo_n "(cached) " >&6
27893 else
27894   if test "$cross_compiling" = yes; then :
27895   ntp_cv_vsnprintf_percent_m=no
27896
27897 else
27898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27899 /* end confdefs.h.  */
27900
27901                     #include <stdarg.h>
27902                     #include <errno.h>
27903                     #include <stdio.h>
27904                     #include <string.h>
27905
27906                     int call_vsnprintf(
27907                             char *      dst,
27908                             size_t      sz,
27909                             const char *fmt,
27910                             ...
27911                             );
27912
27913                     int call_vsnprintf(
27914                             char *      dst,
27915                             size_t      sz,
27916                             const char *fmt,
27917                             ...
27918                             )
27919                     {
27920                             va_list     ap;
27921                             int         rc;
27922
27923                             va_start(ap, fmt);
27924                             rc = vsnprintf(dst, sz, fmt, ap);
27925                             va_end(ap);
27926
27927                             return rc;
27928                     }
27929
27930 int
27931 main ()
27932 {
27933
27934                     char        sbuf[512];
27935                     char        pbuf[512];
27936                     int         slen;
27937
27938                     strcpy(sbuf, strerror(ENOENT));
27939                     errno = ENOENT;
27940                     slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
27941                                           "wrong");
27942                     return strcmp(sbuf, pbuf);
27943
27944
27945   ;
27946   return 0;
27947 }
27948 _ACEOF
27949 if ac_fn_c_try_run "$LINENO"; then :
27950   ntp_cv_vsnprintf_percent_m=yes
27951 else
27952   ntp_cv_vsnprintf_percent_m=no
27953 fi
27954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27955   conftest.$ac_objext conftest.beam conftest.$ac_ext
27956 fi
27957
27958
27959 fi
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
27961 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
27962     case "$ntp_cv_vsnprintf_percent_m" in
27963      yes)
27964
27965 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
27966
27967     esac
27968 esac
27969
27970 for ac_header in sys/clockctl.h
27971 do :
27972   ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
27973 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
27974   cat >>confdefs.h <<_ACEOF
27975 #define HAVE_SYS_CLOCKCTL_H 1
27976 _ACEOF
27977
27978 fi
27979
27980 done
27981
27982
27983 # Check whether --enable-clockctl was given.
27984 if test "${enable_clockctl+set}" = set; then :
27985   enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
27986 else
27987   ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
27988
27989 fi
27990
27991
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
27993 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
27995 $as_echo "$ntp_use_dev_clockctl" >&6; }
27996
27997
27998 for ac_header in sys/capability.h sys/prctl.h
27999 do :
28000   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28003   cat >>confdefs.h <<_ACEOF
28004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28005 _ACEOF
28006
28007 fi
28008
28009 done
28010
28011
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
28013 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
28014
28015 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
28016  yesyes)
28017     case "$host" in
28018      mips-sgi-irix*)
28019         ntp_have_linuxcaps=no
28020         ;;
28021      *) ntp_have_linuxcaps=yes
28022         ;;
28023     esac
28024     ;;
28025  *)
28026     ntp_have_linuxcaps=no
28027     ;;
28028 esac
28029
28030 # Check whether --enable-linuxcaps was given.
28031 if test "${enable_linuxcaps+set}" = set; then :
28032   enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
28033
28034 fi
28035
28036
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
28038 $as_echo "$ntp_have_linuxcaps" >&6; }
28039
28040 case "$ntp_have_linuxcaps" in
28041  yes)
28042
28043 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
28044
28045     LIBS="$LIBS -lcap"
28046     ;;
28047 esac
28048
28049
28050 for ac_header in priv.h
28051 do :
28052   ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
28053 if test "x$ac_cv_header_priv_h" = xyes; then :
28054   cat >>confdefs.h <<_ACEOF
28055 #define HAVE_PRIV_H 1
28056 _ACEOF
28057
28058 fi
28059
28060 done
28061
28062
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
28064 $as_echo_n "checking if we have solaris privileges... " >&6; }
28065
28066 case "$ac_cv_header_priv_h" in
28067  yes)
28068     case "$host" in
28069      *-solaris*)
28070         ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
28071 if test "x$ac_cv_func_setppriv" = xyes; then :
28072   ntp_have_solarisprivs=yes
28073 else
28074   ntp_have_solarisprivs=no
28075
28076 fi
28077
28078         ;;
28079     esac
28080 esac
28081
28082 # Check whether --enable-solarisprivs was given.
28083 if test "${enable_solarisprivs+set}" = set; then :
28084   enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
28085
28086 fi
28087
28088
28089
28090 case "$ntp_have_solarisprivs" in
28091  yes)
28092
28093 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
28094
28095 esac
28096
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
28098 $as_echo "$ntp_have_solarisprivs" >&6; }
28099
28100 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
28101  *yes*)
28102
28103 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
28104
28105 esac
28106
28107 case "$host" in
28108  *-*-darwin*)
28109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
28110 $as_echo_n "checking for library containing res_9_init... " >&6; }
28111 if ${ac_cv_search_res_9_init+:} false; then :
28112   $as_echo_n "(cached) " >&6
28113 else
28114   ac_func_search_save_LIBS=$LIBS
28115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116 /* end confdefs.h.  */
28117
28118 /* Override any GCC internal prototype to avoid an error.
28119    Use char because int might match the return type of a GCC
28120    builtin and then its argument prototype would still apply.  */
28121 #ifdef __cplusplus
28122 extern "C"
28123 #endif
28124 char res_9_init ();
28125 int
28126 main ()
28127 {
28128 return res_9_init ();
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 for ac_lib in '' resolv; do
28134   if test -z "$ac_lib"; then
28135     ac_res="none required"
28136   else
28137     ac_res=-l$ac_lib
28138     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28139   fi
28140   if ac_fn_c_try_link "$LINENO"; then :
28141   ac_cv_search_res_9_init=$ac_res
28142 fi
28143 rm -f core conftest.err conftest.$ac_objext \
28144     conftest$ac_exeext
28145   if ${ac_cv_search_res_9_init+:} false; then :
28146   break
28147 fi
28148 done
28149 if ${ac_cv_search_res_9_init+:} false; then :
28150
28151 else
28152   ac_cv_search_res_9_init=no
28153 fi
28154 rm conftest.$ac_ext
28155 LIBS=$ac_func_search_save_LIBS
28156 fi
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
28158 $as_echo "$ac_cv_search_res_9_init" >&6; }
28159 ac_res=$ac_cv_search_res_9_init
28160 if test "$ac_res" != no; then :
28161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28162
28163 fi
28164
28165     ;;
28166  *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
28167 $as_echo_n "checking for library containing res_init... " >&6; }
28168 if ${ac_cv_search_res_init+:} false; then :
28169   $as_echo_n "(cached) " >&6
28170 else
28171   ac_func_search_save_LIBS=$LIBS
28172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h.  */
28174
28175 /* Override any GCC internal prototype to avoid an error.
28176    Use char because int might match the return type of a GCC
28177    builtin and then its argument prototype would still apply.  */
28178 #ifdef __cplusplus
28179 extern "C"
28180 #endif
28181 char res_init ();
28182 int
28183 main ()
28184 {
28185 return res_init ();
28186   ;
28187   return 0;
28188 }
28189 _ACEOF
28190 for ac_lib in '' resolv; do
28191   if test -z "$ac_lib"; then
28192     ac_res="none required"
28193   else
28194     ac_res=-l$ac_lib
28195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28196   fi
28197   if ac_fn_c_try_link "$LINENO"; then :
28198   ac_cv_search_res_init=$ac_res
28199 fi
28200 rm -f core conftest.err conftest.$ac_objext \
28201     conftest$ac_exeext
28202   if ${ac_cv_search_res_init+:} false; then :
28203   break
28204 fi
28205 done
28206 if ${ac_cv_search_res_init+:} false; then :
28207
28208 else
28209   ac_cv_search_res_init=no
28210 fi
28211 rm conftest.$ac_ext
28212 LIBS=$ac_func_search_save_LIBS
28213 fi
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
28215 $as_echo "$ac_cv_search_res_init" >&6; }
28216 ac_res=$ac_cv_search_res_init
28217 if test "$ac_res" != no; then :
28218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28219
28220 fi
28221
28222     ;;
28223 esac
28224 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
28225 do :
28226   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
28228 #  include <sys/types.h>
28229 #endif
28230 #ifdef HAVE_NETINET_IN_H
28231 #  include <netinet/in.h>   /* inet_ functions / structs */
28232 #endif
28233 #ifdef HAVE_ARPA_NAMESER_H
28234 #  include <arpa/nameser.h> /* DNS HEADER struct */
28235 #endif
28236 #ifdef HAVE_NETDB_H
28237 #  include <netdb.h>
28238 #endif
28239 "
28240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28241   cat >>confdefs.h <<_ACEOF
28242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28243 _ACEOF
28244
28245 fi
28246
28247 done
28248
28249
28250 #HMS: Why do we do this check so "early"?
28251 for ac_func in res_init
28252 do :
28253   ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
28254 if test "x$ac_cv_func_res_init" = xyes; then :
28255   cat >>confdefs.h <<_ACEOF
28256 #define HAVE_RES_INIT 1
28257 _ACEOF
28258
28259 else
28260   for ac_func in __res_init
28261 do :
28262   ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
28263 if test "x$ac_cv_func___res_init" = xyes; then :
28264   cat >>confdefs.h <<_ACEOF
28265 #define HAVE___RES_INIT 1
28266 _ACEOF
28267
28268 fi
28269 done
28270
28271 fi
28272 done
28273
28274
28275 # We also need -lsocket, but we have tested for that already.
28276 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28277 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28278
28279 else
28280
28281 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
28282
28283 fi
28284
28285 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28286 if test "x$ac_cv_func_inet_pton" = xyes; then :
28287
28288 else
28289
28290 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
28291
28292 fi
28293
28294
28295 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
28296 if test "x$ac_cv_type_uintptr_t" = xyes; then :
28297
28298 cat >>confdefs.h <<_ACEOF
28299 #define HAVE_UINTPTR_T 1
28300 _ACEOF
28301
28302
28303 fi
28304 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
28305 if test "x$ac_cv_type_int32" = xyes; then :
28306
28307 cat >>confdefs.h <<_ACEOF
28308 #define HAVE_INT32 1
28309 _ACEOF
28310
28311
28312 fi
28313 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
28314 if test "x$ac_cv_type_u_int32" = xyes; then :
28315
28316 cat >>confdefs.h <<_ACEOF
28317 #define HAVE_U_INT32 1
28318 _ACEOF
28319
28320
28321 fi
28322
28323
28324
28325
28326 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
28327  no::yes)
28328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
28329 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
28330 if ${ntp_cv_type_int32_with_dns+:} false; then :
28331   $as_echo_n "(cached) " >&6
28332 else
28333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28334 /* end confdefs.h.  */
28335
28336                     #ifdef HAVE_ARPA_NAMESER_H
28337                     # include <arpa/nameser.h>
28338                     #endif
28339                     #include <resolv.h>
28340
28341 int
28342 main ()
28343 {
28344
28345                     size_t cb = sizeof(int32);
28346
28347
28348   ;
28349   return 0;
28350 }
28351 _ACEOF
28352 if ac_fn_c_try_compile "$LINENO"; then :
28353   ntp_cv_type_int32_with_dns=yes
28354 else
28355   ntp_cv_type_int32_with_dns=no
28356
28357 fi
28358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359
28360 fi
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
28362 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
28363     case "$ntp_cv_type_int32_with_dns" in
28364      yes)
28365
28366 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28367
28368     esac
28369 esac
28370
28371 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
28372  no::yes)
28373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
28374 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
28375 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
28376   $as_echo_n "(cached) " >&6
28377 else
28378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h.  */
28380
28381                     #ifdef HAVE_ARPA_NAMESER_H
28382                     # include <arpa/nameser.h>
28383                     #endif
28384                     #include <resolv.h>
28385
28386 int
28387 main ()
28388 {
28389
28390                     size_t cb = sizeof(u_int32);
28391
28392
28393   ;
28394   return 0;
28395 }
28396 _ACEOF
28397 if ac_fn_c_try_compile "$LINENO"; then :
28398   ntp_cv_type_u_int32_with_dns=yes
28399 else
28400   ntp_cv_type_u_int32_with_dns=no
28401
28402 fi
28403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28404
28405 fi
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
28407 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
28408     case "$ntp_cv_type_u_int32_with_dns" in
28409      yes)
28410
28411 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
28412
28413     esac
28414 esac
28415
28416 for ac_header in sys/timepps.h
28417 do :
28418   ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
28419         #ifdef HAVE_SYS_TIME_H
28420         # include <sys/time.h>
28421         #endif
28422         #ifdef HAVE_ERRNO_H
28423         # include <errno.h>
28424         #endif
28425
28426
28427 "
28428 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
28429   cat >>confdefs.h <<_ACEOF
28430 #define HAVE_SYS_TIMEPPS_H 1
28431 _ACEOF
28432
28433 fi
28434
28435 done
28436
28437
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
28439 $as_echo_n "checking for struct timespec... " >&6; }
28440 if ${ntp_cv_struct_timespec+:} false; then :
28441   $as_echo_n "(cached) " >&6
28442 else
28443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444 /* end confdefs.h.  */
28445
28446                 #include <sys/time.h>
28447                 /* Under SunOS, timespec is in sys/timepps.h,
28448                    which needs errno.h and FRAC */
28449                 #ifdef HAVE_ERRNO_H
28450                 # include <errno.h>
28451                 #endif
28452                 #ifdef HAVE_SYS_TIMEPPS_H
28453                 # define FRAC 4294967296
28454                 # include <sys/timepps.h>
28455                 #endif
28456
28457 int
28458 main ()
28459 {
28460
28461                 struct timespec n;
28462
28463
28464   ;
28465   return 0;
28466 }
28467 _ACEOF
28468 if ac_fn_c_try_compile "$LINENO"; then :
28469   ntp_cv_struct_timespec=yes
28470 else
28471   ntp_cv_struct_timespec=no
28472
28473 fi
28474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28475
28476 fi
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
28478 $as_echo "$ntp_cv_struct_timespec" >&6; }
28479 case "$ntp_cv_struct_timespec" in
28480  yes)
28481
28482 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
28483
28484 esac
28485
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
28487 $as_echo_n "checking for struct ntptimeval... " >&6; }
28488 if ${ntp_cv_struct_ntptimeval+:} false; then :
28489   $as_echo_n "(cached) " >&6
28490 else
28491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28492 /* end confdefs.h.  */
28493
28494                 #include <sys/time.h>
28495                 #include <sys/timex.h>
28496
28497 int
28498 main ()
28499 {
28500
28501                 struct ntptimeval n;
28502
28503
28504   ;
28505   return 0;
28506 }
28507 _ACEOF
28508 if ac_fn_c_try_compile "$LINENO"; then :
28509   ntp_cv_struct_ntptimeval=yes
28510 else
28511   ntp_cv_struct_ntptimeval=no
28512
28513 fi
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515
28516 fi
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
28518 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
28519 case "$ntp_cv_struct_ntptimeval" in
28520  yes)
28521
28522 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
28523
28524 esac
28525
28526 for ac_header in md5.h
28527 do :
28528   ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
28529         #ifdef HAVE_SYS_TYPES_H
28530         # include <sys/types.h>
28531         #endif
28532
28533
28534 "
28535 if test "x$ac_cv_header_md5_h" = xyes; then :
28536   cat >>confdefs.h <<_ACEOF
28537 #define HAVE_MD5_H 1
28538 _ACEOF
28539
28540 fi
28541
28542 done
28543
28544
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
28546 $as_echo_n "checking for library containing MD5Init... " >&6; }
28547 if ${ac_cv_search_MD5Init+:} false; then :
28548   $as_echo_n "(cached) " >&6
28549 else
28550   ac_func_search_save_LIBS=$LIBS
28551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28552 /* end confdefs.h.  */
28553
28554 /* Override any GCC internal prototype to avoid an error.
28555    Use char because int might match the return type of a GCC
28556    builtin and then its argument prototype would still apply.  */
28557 #ifdef __cplusplus
28558 extern "C"
28559 #endif
28560 char MD5Init ();
28561 int
28562 main ()
28563 {
28564 return MD5Init ();
28565   ;
28566   return 0;
28567 }
28568 _ACEOF
28569 for ac_lib in '' md5 md; do
28570   if test -z "$ac_lib"; then
28571     ac_res="none required"
28572   else
28573     ac_res=-l$ac_lib
28574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28575   fi
28576   if ac_fn_c_try_link "$LINENO"; then :
28577   ac_cv_search_MD5Init=$ac_res
28578 fi
28579 rm -f core conftest.err conftest.$ac_objext \
28580     conftest$ac_exeext
28581   if ${ac_cv_search_MD5Init+:} false; then :
28582   break
28583 fi
28584 done
28585 if ${ac_cv_search_MD5Init+:} false; then :
28586
28587 else
28588   ac_cv_search_MD5Init=no
28589 fi
28590 rm conftest.$ac_ext
28591 LIBS=$ac_func_search_save_LIBS
28592 fi
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
28594 $as_echo "$ac_cv_search_MD5Init" >&6; }
28595 ac_res=$ac_cv_search_MD5Init
28596 if test "$ac_res" != no; then :
28597   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28598
28599 fi
28600
28601 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
28602 do :
28603   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28605 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28606   cat >>confdefs.h <<_ACEOF
28607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28608 _ACEOF
28609
28610 fi
28611 done
28612
28613
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
28615 $as_echo_n "checking for SIGIO... " >&6; }
28616 if ${ntp_cv_hdr_def_sigio+:} false; then :
28617   $as_echo_n "(cached) " >&6
28618 else
28619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28620 /* end confdefs.h.  */
28621
28622             #include <signal.h>
28623
28624             #ifndef SIGIO
28625             # error
28626             #endif
28627
28628 _ACEOF
28629 if ac_fn_c_try_cpp "$LINENO"; then :
28630   ntp_cv_hdr_def_sigio=yes
28631 else
28632   ntp_cv_hdr_def_sigio=no
28633
28634 fi
28635 rm -f conftest.err conftest.i conftest.$ac_ext
28636
28637 fi
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
28639 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
28640
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
28642 $as_echo_n "checking if we want to use SIGIO... " >&6; }
28643 ans=no
28644 case "$ntp_cv_hdr_def_sigio" in
28645  yes)
28646     ans=yes
28647     case "$host" in
28648      alpha*-dec-osf4*|alpha*-dec-osf5*)
28649         ans=no
28650         ;;
28651      *-convex-*)
28652         ans=no
28653         ;;
28654      *-dec-*)
28655         ans=no
28656         ;;
28657      *-pc-cygwin*)
28658         ans=no
28659         ;;
28660      *-sni-sysv*)
28661         ans=no
28662         ;;
28663      *-stratus-vos)
28664         ans=no
28665         ;;
28666      *-univel-sysv*)
28667         ans=no
28668         ;;
28669      *-*-irix6*)
28670         ans=no
28671         ;;
28672      *-*-freebsd*)
28673         ans=no
28674         ;;
28675      *-*-*linux*)
28676         ans=no
28677         ;;
28678      *-*-unicosmp*)
28679         ans=no
28680         ;;
28681      *-*-kfreebsd*)
28682         ans=no
28683         ;;
28684      m68k-*-mint*)
28685         ans=no
28686         ;;
28687     esac
28688     ;;
28689 esac
28690 case "$ans" in
28691  yes)
28692
28693 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
28694
28695 esac
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28697 $as_echo "$ans" >&6; }
28698
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
28700 $as_echo_n "checking for SIGPOLL... " >&6; }
28701 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
28702   $as_echo_n "(cached) " >&6
28703 else
28704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h.  */
28706
28707             #include <signal.h>
28708
28709             #ifndef SIGPOLL
28710             # error
28711             #endif
28712
28713 _ACEOF
28714 if ac_fn_c_try_cpp "$LINENO"; then :
28715   ntp_cv_hdr_def_sigpoll=yes
28716 else
28717   ntp_cv_hdr_def_sigpoll=no
28718
28719 fi
28720 rm -f conftest.err conftest.i conftest.$ac_ext
28721
28722 fi
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
28724 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
28725
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
28727 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
28728 ans=no
28729 case "$ntp_cv_hdr_def_sigpoll" in
28730  yes)
28731     case "$host" in
28732      mips-sgi-irix*)
28733         ans=no
28734         ;;
28735      vax-dec-bsd)
28736         ans=no
28737         ;;
28738      *-pc-cygwin*)
28739         ans=no
28740         ;;
28741      *-sni-sysv*)
28742         ans=no
28743         ;;
28744      *-stratus-vos)
28745         ans=no
28746         ;;
28747      *-*-aix[4-9]*)
28748         # XXX Only verified thru AIX6
28749         ans=no
28750         ;;
28751      *-*-hpux*)
28752         ans=no
28753         ;;
28754      *-*-*linux*)
28755         ans=no
28756         ;;
28757      *-*-osf*)
28758         ans=no
28759         ;;
28760      *-*-qnx*)
28761         ans=no
28762         ;;
28763      *-*-sunos*)
28764         ans=no
28765         ;;
28766      *-*-solaris*)
28767         ans=no
28768         ;;
28769      *-*-ultrix*)
28770         ans=no
28771         ;;
28772      *-*-unicosmp*)
28773         ans=no
28774         ;;
28775      *-*-kfreebsd*)
28776         ans=no
28777         ;;
28778      *) ans=yes
28779         ;;
28780     esac
28781     ;;
28782 esac
28783 case "$ans" in
28784  yes)
28785
28786 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
28787
28788 esac
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28790 $as_echo "$ans" >&6; }
28791
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
28793 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
28794 ans=no
28795 case "$ntp_cv_hdr_def_sigpoll" in
28796  yes)
28797     case "$host" in
28798      mips-sgi-irix*)
28799         ans=no
28800         ;;
28801      vax-dec-bsd)
28802         ans=no
28803         ;;
28804      *-pc-cygwin*)
28805         ans=no
28806         ;;
28807      *-sni-sysv*)
28808         ans=no
28809         ;;
28810      *-stratus-vos)
28811         ans=no
28812         ;;
28813      *-*-aix[4-9]*)
28814         # XXX Only verified thru AIX6
28815         ans=no
28816         ;;
28817      *-*-hpux*)
28818         ans=no
28819         ;;
28820      *-*-*linux*)
28821         ans=no
28822         ;;
28823      *-*-osf*)
28824         ans=no
28825         ;;
28826      *-*-sunos*)
28827         ans=no
28828         ;;
28829      *-*-ultrix*)
28830         ans=no
28831         ;;
28832      *-*-qnx*)
28833         ans=no
28834         ;;
28835      *-*-unicosmp*)
28836         ans=no
28837         ;;
28838      *-*-kfreebsd*)
28839         ans=no
28840         ;;
28841      *) ans=yes
28842         ;;
28843     esac
28844     ;;
28845 esac
28846 case "$ans" in
28847  yes)
28848
28849 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
28850
28851 esac
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28853 $as_echo "$ans" >&6; }
28854
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
28856 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
28857 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
28858   $as_echo_n "(cached) " >&6
28859 else
28860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h.  */
28862
28863                 #include <sys/time.h>
28864
28865 int
28866 main ()
28867 {
28868
28869                 gettimeofday(0, 0);
28870                 settimeofday(0, 0);
28871
28872
28873   ;
28874   return 0;
28875 }
28876 _ACEOF
28877 if ac_fn_c_try_compile "$LINENO"; then :
28878   ntp_cv_func_Xettimeofday_nargs=2
28879 else
28880   ntp_cv_func_Xettimeofday_nargs=1
28881
28882 fi
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884
28885 fi
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
28887 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
28888 case "$ntp_cv_func_Xettimeofday_nargs" in
28889  1)
28890
28891 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
28892
28893 esac
28894
28895 for ac_func in settimeofday
28896 do :
28897   ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
28898 if test "x$ac_cv_func_settimeofday" = xyes; then :
28899   cat >>confdefs.h <<_ACEOF
28900 #define HAVE_SETTIMEOFDAY 1
28901 _ACEOF
28902
28903 else
28904
28905     case "$host" in
28906      *-*-mpeix*) ac_cv_func_settimeofday=yes
28907     esac
28908
28909 fi
28910 done
28911
28912
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
28914 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
28915 ntp_warning='GRONK'
28916 ans=none
28917 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
28918  yes*)
28919     ntp_warning=''
28920     ans='clock_settime()'
28921     ;;
28922  noyes*)
28923     ntp_warning='But clock_settime() would be better (if we had it)'
28924     ans='settimeofday()'
28925     ;;
28926  nonoyes)
28927     ntp_warning='Which is the worst of the three'
28928     ans='stime()'
28929     ;;
28930  *)
28931     case "$build" in
28932      $host)
28933         ntp_warning='Which leaves us with nothing to use!'
28934     esac
28935 esac
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28937 $as_echo "$ans" >&6; }
28938 case "$ntp_warning" in
28939  '')
28940     ;;
28941  *)
28942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
28943 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
28944     ;;
28945 esac
28946
28947
28948 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
28949 LIBS=$__LIBS
28950 { __LIBS=; unset __LIBS;}
28951
28952
28953
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
28955 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
28956
28957 # Check whether --with-arlib was given.
28958 if test "${with_arlib+set}" = set; then :
28959   withval=$with_arlib; ans=$withval
28960 else
28961   ans=no
28962 fi
28963
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28965 $as_echo "$ans" >&6; }
28966
28967 case "$ans" in
28968  yes)
28969     { $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
28970 $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;}
28971     ;;
28972 esac
28973
28974 for ac_prog in gawk mawk nawk awk
28975 do
28976   # Extract the first word of "$ac_prog", so it can be a program name with args.
28977 set dummy $ac_prog; ac_word=$2
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28979 $as_echo_n "checking for $ac_word... " >&6; }
28980 if ${ac_cv_prog_AWK+:} false; then :
28981   $as_echo_n "(cached) " >&6
28982 else
28983   if test -n "$AWK"; then
28984   ac_cv_prog_AWK="$AWK" # Let the user override the test.
28985 else
28986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28987 for as_dir in $PATH
28988 do
28989   IFS=$as_save_IFS
28990   test -z "$as_dir" && as_dir=.
28991     for ac_exec_ext in '' $ac_executable_extensions; do
28992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28993     ac_cv_prog_AWK="$ac_prog"
28994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28995     break 2
28996   fi
28997 done
28998   done
28999 IFS=$as_save_IFS
29000
29001 fi
29002 fi
29003 AWK=$ac_cv_prog_AWK
29004 if test -n "$AWK"; then
29005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
29006 $as_echo "$AWK" >&6; }
29007 else
29008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009 $as_echo "no" >&6; }
29010 fi
29011
29012
29013   test -n "$AWK" && break
29014 done
29015
29016 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
29017                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29018 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29019 set x ${MAKE-make}
29020 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29021 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
29022   $as_echo_n "(cached) " >&6
29023 else
29024   cat >conftest.make <<\_ACEOF
29025 SHELL = /bin/sh
29026 all:
29027         @echo '@@@%%%=$(MAKE)=@@@%%%'
29028 _ACEOF
29029 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29030 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29031   *@@@%%%=?*=@@@%%%*)
29032     eval ac_cv_prog_make_${ac_make}_set=yes;;
29033   *)
29034     eval ac_cv_prog_make_${ac_make}_set=no;;
29035 esac
29036 rm -f conftest.make
29037 fi
29038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040 $as_echo "yes" >&6; }
29041   SET_MAKE=
29042 else
29043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29044 $as_echo "no" >&6; }
29045   SET_MAKE="MAKE=${MAKE-make}"
29046 fi
29047
29048
29049
29050
29051
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29053 $as_echo_n "checking whether ln -s works... " >&6; }
29054 LN_S=$as_ln_s
29055 if test "$LN_S" = "ln -s"; then
29056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29057 $as_echo "yes" >&6; }
29058 else
29059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29060 $as_echo "no, using $LN_S" >&6; }
29061 fi
29062
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
29064 $as_echo_n "checking for library containing strerror... " >&6; }
29065 if ${ac_cv_search_strerror+:} false; then :
29066   $as_echo_n "(cached) " >&6
29067 else
29068   ac_func_search_save_LIBS=$LIBS
29069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29070 /* end confdefs.h.  */
29071
29072 /* Override any GCC internal prototype to avoid an error.
29073    Use char because int might match the return type of a GCC
29074    builtin and then its argument prototype would still apply.  */
29075 #ifdef __cplusplus
29076 extern "C"
29077 #endif
29078 char strerror ();
29079 int
29080 main ()
29081 {
29082 return strerror ();
29083   ;
29084   return 0;
29085 }
29086 _ACEOF
29087 for ac_lib in '' cposix; do
29088   if test -z "$ac_lib"; then
29089     ac_res="none required"
29090   else
29091     ac_res=-l$ac_lib
29092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29093   fi
29094   if ac_fn_c_try_link "$LINENO"; then :
29095   ac_cv_search_strerror=$ac_res
29096 fi
29097 rm -f core conftest.err conftest.$ac_objext \
29098     conftest$ac_exeext
29099   if ${ac_cv_search_strerror+:} false; then :
29100   break
29101 fi
29102 done
29103 if ${ac_cv_search_strerror+:} false; then :
29104
29105 else
29106   ac_cv_search_strerror=no
29107 fi
29108 rm conftest.$ac_ext
29109 LIBS=$ac_func_search_save_LIBS
29110 fi
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
29112 $as_echo "$ac_cv_search_strerror" >&6; }
29113 ac_res=$ac_cv_search_strerror
29114 if test "$ac_res" != no; then :
29115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29116
29117 fi
29118
29119
29120
29121 # Extract the first word of "perl", so it can be a program name with args.
29122 set dummy perl; ac_word=$2
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29124 $as_echo_n "checking for $ac_word... " >&6; }
29125 if ${ac_cv_path_PATH_PERL+:} false; then :
29126   $as_echo_n "(cached) " >&6
29127 else
29128   case $PATH_PERL in
29129   [\\/]* | ?:[\\/]*)
29130   ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
29131   ;;
29132   *)
29133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29134 for as_dir in $PATH
29135 do
29136   IFS=$as_save_IFS
29137   test -z "$as_dir" && as_dir=.
29138     for ac_exec_ext in '' $ac_executable_extensions; do
29139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29140     ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
29141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29142     break 2
29143   fi
29144 done
29145   done
29146 IFS=$as_save_IFS
29147
29148   ;;
29149 esac
29150 fi
29151 PATH_PERL=$ac_cv_path_PATH_PERL
29152 if test -n "$PATH_PERL"; then
29153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
29154 $as_echo "$PATH_PERL" >&6; }
29155 else
29156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29157 $as_echo "no" >&6; }
29158 fi
29159
29160
29161 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
29162 # Extract the first word of "test", so it can be a program name with args.
29163 set dummy test; ac_word=$2
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29165 $as_echo_n "checking for $ac_word... " >&6; }
29166 if ${ac_cv_path_PATH_TEST+:} false; then :
29167   $as_echo_n "(cached) " >&6
29168 else
29169   case $PATH_TEST in
29170   [\\/]* | ?:[\\/]*)
29171   ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
29172   ;;
29173   *)
29174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29175 for as_dir in $PATH
29176 do
29177   IFS=$as_save_IFS
29178   test -z "$as_dir" && as_dir=.
29179     for ac_exec_ext in '' $ac_executable_extensions; do
29180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29181     ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
29182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29183     break 2
29184   fi
29185 done
29186   done
29187 IFS=$as_save_IFS
29188
29189   ;;
29190 esac
29191 fi
29192 PATH_TEST=$ac_cv_path_PATH_TEST
29193 if test -n "$PATH_TEST"; then
29194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
29195 $as_echo "$PATH_TEST" >&6; }
29196 else
29197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29198 $as_echo "no" >&6; }
29199 fi
29200
29201
29202 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
29203 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
29204
29205
29206 # Check whether --with-net-snmp-config was given.
29207 if test "${with_net_snmp_config+set}" = set; then :
29208   withval=$with_net_snmp_config; ans=$withval
29209 else
29210   ans=yes
29211
29212 fi
29213
29214 case "$ans" in
29215  no)
29216     ;;
29217  yes)
29218     ans=net-snmp-config
29219     ;;
29220  /*)
29221     ;;
29222  */*)
29223     as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
29224     ;;
29225  *)
29226     ;;
29227 esac
29228 PROG_NET_SNMP_CONFIG=$ans
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
29230 $as_echo_n "checking for net-snmp-config path... " >&6; }
29231 case "$PROG_NET_SNMP_CONFIG" in
29232  no) ;;
29233  /*)
29234     PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
29235     ;;
29236  *)
29237     # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
29238 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29240 $as_echo_n "checking for $ac_word... " >&6; }
29241 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
29242   $as_echo_n "(cached) " >&6
29243 else
29244   case $PATH_NET_SNMP_CONFIG in
29245   [\\/]* | ?:[\\/]*)
29246   ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
29247   ;;
29248   *)
29249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29250 for as_dir in $PATH
29251 do
29252   IFS=$as_save_IFS
29253   test -z "$as_dir" && as_dir=.
29254     for ac_exec_ext in '' $ac_executable_extensions; do
29255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29256     ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29258     break 2
29259   fi
29260 done
29261   done
29262 IFS=$as_save_IFS
29263
29264   ;;
29265 esac
29266 fi
29267 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
29268 if test -n "$PATH_NET_SNMP_CONFIG"; then
29269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29270 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29271 else
29272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29273 $as_echo "no" >&6; }
29274 fi
29275
29276
29277     { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
29278 ;;
29279 esac
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
29281 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
29282
29283 case "$PATH_NET_SNMP_CONFIG" in
29284  /*)    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
29285 $as_echo_n "checking for net-snmp version... " >&6; }
29286 if ${ntp_cv_net_snmp_version+:} false; then :
29287   $as_echo_n "(cached) " >&6
29288 else
29289   ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
29290
29291 fi
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
29293 $as_echo "$ntp_cv_net_snmp_version" >&6; }
29294         ;;
29295 esac
29296
29297 case "$host" in
29298  *-*-vxworks*)
29299     ac_link="$ac_link $VX_KERNEL"
29300     ;;
29301 esac
29302
29303 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
29305 $as_echo_n "checking for library containing openlog... " >&6; }
29306 if ${ac_cv_search_openlog+:} false; then :
29307   $as_echo_n "(cached) " >&6
29308 else
29309   ac_func_search_save_LIBS=$LIBS
29310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h.  */
29312
29313 /* Override any GCC internal prototype to avoid an error.
29314    Use char because int might match the return type of a GCC
29315    builtin and then its argument prototype would still apply.  */
29316 #ifdef __cplusplus
29317 extern "C"
29318 #endif
29319 char openlog ();
29320 int
29321 main ()
29322 {
29323 return openlog ();
29324   ;
29325   return 0;
29326 }
29327 _ACEOF
29328 for ac_lib in '' gen syslog; do
29329   if test -z "$ac_lib"; then
29330     ac_res="none required"
29331   else
29332     ac_res=-l$ac_lib
29333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29334   fi
29335   if ac_fn_c_try_link "$LINENO"; then :
29336   ac_cv_search_openlog=$ac_res
29337 fi
29338 rm -f core conftest.err conftest.$ac_objext \
29339     conftest$ac_exeext
29340   if ${ac_cv_search_openlog+:} false; then :
29341   break
29342 fi
29343 done
29344 if ${ac_cv_search_openlog+:} false; then :
29345
29346 else
29347   ac_cv_search_openlog=no
29348 fi
29349 rm conftest.$ac_ext
29350 LIBS=$ac_func_search_save_LIBS
29351 fi
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
29353 $as_echo "$ac_cv_search_openlog" >&6; }
29354 ac_res=$ac_cv_search_openlog
29355 if test "$ac_res" != no; then :
29356   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29357
29358 fi
29359
29360 # XXX library list will be in ac_cv_search_openlog
29361
29362 # LIBSECCOMP is off by default -- needs testing with all the features
29363 # Please send bug reports to loganaden@gmail.com
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
29365 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
29366 # Check whether --enable-libseccomp was given.
29367 if test "${enable_libseccomp+set}" = set; then :
29368   enableval=$enable_libseccomp; ntp_ok=$enableval
29369 else
29370   ntp_ok=no
29371
29372 fi
29373
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29375 $as_echo "$ntp_ok" >&6; }
29376 case "$ntp_ok" in
29377  yes)
29378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
29379 $as_echo_n "checking for library containing seccomp_init... " >&6; }
29380 if ${ac_cv_search_seccomp_init+:} false; then :
29381   $as_echo_n "(cached) " >&6
29382 else
29383   ac_func_search_save_LIBS=$LIBS
29384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29385 /* end confdefs.h.  */
29386
29387 /* Override any GCC internal prototype to avoid an error.
29388    Use char because int might match the return type of a GCC
29389    builtin and then its argument prototype would still apply.  */
29390 #ifdef __cplusplus
29391 extern "C"
29392 #endif
29393 char seccomp_init ();
29394 int
29395 main ()
29396 {
29397 return seccomp_init ();
29398   ;
29399   return 0;
29400 }
29401 _ACEOF
29402 for ac_lib in '' seccomp; do
29403   if test -z "$ac_lib"; then
29404     ac_res="none required"
29405   else
29406     ac_res=-l$ac_lib
29407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29408   fi
29409   if ac_fn_c_try_link "$LINENO"; then :
29410   ac_cv_search_seccomp_init=$ac_res
29411 fi
29412 rm -f core conftest.err conftest.$ac_objext \
29413     conftest$ac_exeext
29414   if ${ac_cv_search_seccomp_init+:} false; then :
29415   break
29416 fi
29417 done
29418 if ${ac_cv_search_seccomp_init+:} false; then :
29419
29420 else
29421   ac_cv_search_seccomp_init=no
29422 fi
29423 rm conftest.$ac_ext
29424 LIBS=$ac_func_search_save_LIBS
29425 fi
29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
29427 $as_echo "$ac_cv_search_seccomp_init" >&6; }
29428 ac_res=$ac_cv_search_seccomp_init
29429 if test "$ac_res" != no; then :
29430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29431
29432 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
29433
29434
29435 fi
29436
29437     if test "$cross_compiling" = yes; then :
29438   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29440 as_fn_error $? "cannot run test program while cross compiling
29441 See \`config.log' for more details" "$LINENO" 5; }
29442 else
29443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29444 /* end confdefs.h.  */
29445
29446         #include <stdio.h>
29447         #include <stdlib.h>
29448         #include <errno.h>
29449         #include <sys/prctl.h>
29450         #include <linux/seccomp.h>
29451
29452         int main(void)
29453         {
29454                 int ret;
29455                 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
29456                 if (ret < 0) {
29457                         switch (errno) {
29458                         case ENOSYS:
29459                                 return 1;
29460                         case EINVAL:
29461                                 return 1;
29462                         default:
29463                                 return 1;
29464                         }
29465                 }
29466                 ret =
29467                 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
29468                 if (ret < 0) {
29469                         switch (errno) {
29470                         case EINVAL:
29471                                 return 1;
29472                         case EFAULT:
29473                                 return 0;
29474                         default:
29475                                 return 1;
29476                 }
29477         }
29478 return 1;
29479 }
29480
29481
29482 _ACEOF
29483 if ac_fn_c_try_run "$LINENO"; then :
29484
29485 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
29486
29487
29488 fi
29489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29490   conftest.$ac_objext conftest.beam conftest.$ac_ext
29491 fi
29492
29493     ;;
29494 esac
29495
29496
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
29498 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
29499 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
29500   $as_echo_n "(cached) " >&6
29501 else
29502
29503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29504 /* end confdefs.h.  */
29505
29506 #define SYSLOG_NAMES
29507 #include <stdlib.h>
29508 #include <syslog.h>
29509
29510 int
29511 main ()
29512 {
29513  void *fnames; fnames = facilitynames;
29514   ;
29515   return 0;
29516 }
29517 _ACEOF
29518 if ac_fn_c_try_compile "$LINENO"; then :
29519   ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
29520 else
29521   ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
29522 fi
29523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29524 fi
29525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
29526 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
29527 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
29528  yes)
29529
29530 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
29531
29532     ;;
29533  no)
29534     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
29535 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
29536     ;;
29537  cross)
29538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
29539 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
29540     ;;
29541 esac
29542
29543
29544
29545 case "$host" in
29546  *-*-*linux*) ;;
29547  *-*-osf4*) ;;
29548  *-*-osf5*) ;;
29549  *)
29550     # HMS: Make sure we check for -lrt for clock_* before this...
29551     case "$ac_cv_search_clock_gettime" in
29552      '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
29553     esac
29554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
29555 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
29556 if ${ac_cv_search_sched_setscheduler+:} false; then :
29557   $as_echo_n "(cached) " >&6
29558 else
29559   ac_func_search_save_LIBS=$LIBS
29560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561 /* end confdefs.h.  */
29562
29563 /* Override any GCC internal prototype to avoid an error.
29564    Use char because int might match the return type of a GCC
29565    builtin and then its argument prototype would still apply.  */
29566 #ifdef __cplusplus
29567 extern "C"
29568 #endif
29569 char sched_setscheduler ();
29570 int
29571 main ()
29572 {
29573 return sched_setscheduler ();
29574   ;
29575   return 0;
29576 }
29577 _ACEOF
29578 for ac_lib in '' rt posix4; do
29579   if test -z "$ac_lib"; then
29580     ac_res="none required"
29581   else
29582     ac_res=-l$ac_lib
29583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29584   fi
29585   if ac_fn_c_try_link "$LINENO"; then :
29586   ac_cv_search_sched_setscheduler=$ac_res
29587 fi
29588 rm -f core conftest.err conftest.$ac_objext \
29589     conftest$ac_exeext
29590   if ${ac_cv_search_sched_setscheduler+:} false; then :
29591   break
29592 fi
29593 done
29594 if ${ac_cv_search_sched_setscheduler+:} false; then :
29595
29596 else
29597   ac_cv_search_sched_setscheduler=no
29598 fi
29599 rm conftest.$ac_ext
29600 LIBS=$ac_func_search_save_LIBS
29601 fi
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
29603 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
29604 ac_res=$ac_cv_search_sched_setscheduler
29605 if test "$ac_res" != no; then :
29606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29607
29608 fi
29609
29610     ;;
29611 esac
29612
29613 for ac_header in bstring.h
29614 do :
29615   ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
29616 if test "x$ac_cv_header_bstring_h" = xyes; then :
29617   cat >>confdefs.h <<_ACEOF
29618 #define HAVE_BSTRING_H 1
29619 _ACEOF
29620
29621 fi
29622
29623 done
29624
29625 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
29626 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
29627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
29628 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
29629 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29630   $as_echo_n "(cached) " >&6
29631 else
29632   ac_func_search_save_LIBS=$LIBS
29633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29634 /* end confdefs.h.  */
29635
29636 /* Override any GCC internal prototype to avoid an error.
29637    Use char because int might match the return type of a GCC
29638    builtin and then its argument prototype would still apply.  */
29639 #ifdef __cplusplus
29640 extern "C"
29641 #endif
29642 char DNSServiceRegister ();
29643 int
29644 main ()
29645 {
29646 return DNSServiceRegister ();
29647   ;
29648   return 0;
29649 }
29650 _ACEOF
29651 for ac_lib in '' dns_sd; do
29652   if test -z "$ac_lib"; then
29653     ac_res="none required"
29654   else
29655     ac_res=-l$ac_lib
29656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29657   fi
29658   if ac_fn_c_try_link "$LINENO"; then :
29659   ac_cv_search_DNSServiceRegister=$ac_res
29660 fi
29661 rm -f core conftest.err conftest.$ac_objext \
29662     conftest$ac_exeext
29663   if ${ac_cv_search_DNSServiceRegister+:} false; then :
29664   break
29665 fi
29666 done
29667 if ${ac_cv_search_DNSServiceRegister+:} false; then :
29668
29669 else
29670   ac_cv_search_DNSServiceRegister=no
29671 fi
29672 rm conftest.$ac_ext
29673 LIBS=$ac_func_search_save_LIBS
29674 fi
29675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
29676 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
29677 ac_res=$ac_cv_search_DNSServiceRegister
29678 if test "$ac_res" != no; then :
29679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29680
29681 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
29682
29683
29684 fi
29685
29686
29687 fi
29688
29689
29690 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
29691 do :
29692   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29695   cat >>confdefs.h <<_ACEOF
29696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29697 _ACEOF
29698
29699 fi
29700
29701 done
29702
29703
29704 for ac_header in memory.h netdb.h poll.h
29705 do :
29706   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29707 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29709   cat >>confdefs.h <<_ACEOF
29710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29711 _ACEOF
29712
29713 fi
29714
29715 done
29716
29717 for ac_header in sgtty.h stdatomic.h
29718 do :
29719   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29720 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29722   cat >>confdefs.h <<_ACEOF
29723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29724 _ACEOF
29725
29726 fi
29727
29728 done
29729
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
29731 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
29732 if ${ac_cv_header_stdbool_h+:} false; then :
29733   $as_echo_n "(cached) " >&6
29734 else
29735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h.  */
29737
29738              #include <stdbool.h>
29739              #ifndef bool
29740               "error: bool is not defined"
29741              #endif
29742              #ifndef false
29743               "error: false is not defined"
29744              #endif
29745              #if false
29746               "error: false is not 0"
29747              #endif
29748              #ifndef true
29749               "error: true is not defined"
29750              #endif
29751              #if true != 1
29752               "error: true is not 1"
29753              #endif
29754              #ifndef __bool_true_false_are_defined
29755               "error: __bool_true_false_are_defined is not defined"
29756              #endif
29757
29758              struct s { _Bool s: 1; _Bool t; } s;
29759
29760              char a[true == 1 ? 1 : -1];
29761              char b[false == 0 ? 1 : -1];
29762              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
29763              char d[(bool) 0.5 == true ? 1 : -1];
29764              /* See body of main program for 'e'.  */
29765              char f[(_Bool) 0.0 == false ? 1 : -1];
29766              char g[true];
29767              char h[sizeof (_Bool)];
29768              char i[sizeof s.t];
29769              enum { j = false, k = true, l = false * true, m = true * 256 };
29770              /* The following fails for
29771                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
29772              _Bool n[m];
29773              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
29774              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
29775              /* Catch a bug in an HP-UX C compiler.  See
29776                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
29777                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
29778               */
29779              _Bool q = true;
29780              _Bool *pq = &q;
29781
29782 int
29783 main ()
29784 {
29785
29786              bool e = &s;
29787              *pq |= q;
29788              *pq |= ! q;
29789              /* Refer to every declared value, to avoid compiler optimizations.  */
29790              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
29791                      + !m + !n + !o + !p + !q + !pq);
29792
29793   ;
29794   return 0;
29795 }
29796 _ACEOF
29797 if ac_fn_c_try_compile "$LINENO"; then :
29798   ac_cv_header_stdbool_h=yes
29799 else
29800   ac_cv_header_stdbool_h=no
29801 fi
29802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29803 fi
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
29805 $as_echo "$ac_cv_header_stdbool_h" >&6; }
29806    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
29807 if test "x$ac_cv_type__Bool" = xyes; then :
29808
29809 cat >>confdefs.h <<_ACEOF
29810 #define HAVE__BOOL 1
29811 _ACEOF
29812
29813
29814 fi
29815
29816
29817 if test $ac_cv_header_stdbool_h = yes; then
29818
29819 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
29820
29821 fi
29822
29823 for ac_header in stdlib.h string.h termio.h
29824 do :
29825   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29828   cat >>confdefs.h <<_ACEOF
29829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29830 _ACEOF
29831
29832 fi
29833
29834 done
29835
29836 for ac_header in termios.h timepps.h timex.h unistd.h
29837 do :
29838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29841   cat >>confdefs.h <<_ACEOF
29842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29843 _ACEOF
29844
29845 fi
29846
29847 done
29848
29849
29850 case "$host" in
29851  *-*-aix*)
29852     for ac_header in utmpx.h
29853 do :
29854   ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
29855 if test "x$ac_cv_header_utmpx_h" = xyes; then :
29856   cat >>confdefs.h <<_ACEOF
29857 #define HAVE_UTMPX_H 1
29858 _ACEOF
29859
29860 fi
29861
29862 done
29863
29864     case "$ac_cv_header_utmpx_h" in
29865      yes)
29866         ;;
29867      *)
29868         for ac_header in utmp.h
29869 do :
29870   ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
29871 if test "x$ac_cv_header_utmp_h" = xyes; then :
29872   cat >>confdefs.h <<_ACEOF
29873 #define HAVE_UTMP_H 1
29874 _ACEOF
29875
29876 fi
29877
29878 done
29879
29880         ;;
29881     esac
29882     ;;
29883  *)
29884     for ac_header in utmp.h utmpx.h
29885 do :
29886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29889   cat >>confdefs.h <<_ACEOF
29890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29891 _ACEOF
29892
29893 fi
29894
29895 done
29896
29897     ;;
29898 esac
29899
29900 #
29901 # On Suns only (so far) getpass() truncates the typed password to 8
29902 # characters, but getpassphrase() allows up to 257.  Most systems'
29903 # getpass() does not truncate, at least not so as to affect ntpq and
29904 # ntpdc password prompts.
29905 #
29906 # So check for getpassphrase(), but only on Sun operating systems.
29907 #
29908 case "$host" in
29909  *-*-sunos*|*-*-solaris*)
29910     for ac_func in getpassphrase
29911 do :
29912   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
29913 if test "x$ac_cv_func_getpassphrase" = xyes; then :
29914   cat >>confdefs.h <<_ACEOF
29915 #define HAVE_GETPASSPHRASE 1
29916 _ACEOF
29917
29918 fi
29919 done
29920
29921 esac
29922
29923
29924 for ac_header in net/if6.h
29925 do :
29926   ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
29927 if test "x$ac_cv_header_net_if6_h" = xyes; then :
29928   cat >>confdefs.h <<_ACEOF
29929 #define HAVE_NET_IF6_H 1
29930 _ACEOF
29931
29932 fi
29933
29934 done
29935
29936 for ac_header in net/route.h
29937 do :
29938   ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
29939     #include <sys/types.h>
29940     #include <sys/socket.h>
29941     #include <net/if.h>
29942
29943 "
29944 if test "x$ac_cv_header_net_route_h" = xyes; then :
29945   cat >>confdefs.h <<_ACEOF
29946 #define HAVE_NET_ROUTE_H 1
29947 _ACEOF
29948
29949 fi
29950
29951 done
29952
29953
29954 for ac_header in netinfo/ni.h
29955 do :
29956   ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
29957 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
29958   cat >>confdefs.h <<_ACEOF
29959 #define HAVE_NETINFO_NI_H 1
29960 _ACEOF
29961
29962 fi
29963
29964 done
29965
29966 case "$ac_cv_header_netinfo_ni_h" in
29967  yes)
29968
29969 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
29970
29971 esac
29972 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
29973 do :
29974   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29977   cat >>confdefs.h <<_ACEOF
29978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29979 _ACEOF
29980
29981 fi
29982
29983 done
29984
29985 case "$host" in
29986  *-*-sunos4*)
29987     ;;
29988  *)
29989     for ac_header in sys/ioctl.h
29990 do :
29991   ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
29992 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
29993   cat >>confdefs.h <<_ACEOF
29994 #define HAVE_SYS_IOCTL_H 1
29995 _ACEOF
29996
29997 fi
29998
29999 done
30000
30001     ;;
30002 esac
30003 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
30004 do :
30005   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30008   cat >>confdefs.h <<_ACEOF
30009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30010 _ACEOF
30011
30012 fi
30013
30014 done
30015
30016 # HMS: Check sys/proc.h and sys/resource.h after some others
30017 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
30018 do :
30019   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30020 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30022   cat >>confdefs.h <<_ACEOF
30023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30024 _ACEOF
30025
30026 fi
30027
30028 done
30029
30030 case "$ac_cv_header_sched_h" in
30031  yes)
30032     ;;
30033  *)
30034     for ac_header in sys/sched.h
30035 do :
30036   ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
30037 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
30038   cat >>confdefs.h <<_ACEOF
30039 #define HAVE_SYS_SCHED_H 1
30040 _ACEOF
30041
30042 fi
30043
30044 done
30045
30046     ;;
30047 esac
30048 # HMS: Check sys/shm.h after some others
30049 for ac_header in sys/select.h sys/signal.h sys/sockio.h
30050 do :
30051   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30052 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30054   cat >>confdefs.h <<_ACEOF
30055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30056 _ACEOF
30057
30058 fi
30059
30060 done
30061
30062 # HMS: Checked sys/socket.h earlier
30063 case "$host" in
30064  *-*-netbsd*)
30065     ;;
30066  *)
30067     for ac_header in machine/soundcard.h sys/soundcard.h
30068 do :
30069   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30070 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30072   cat >>confdefs.h <<_ACEOF
30073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30074 _ACEOF
30075
30076 fi
30077
30078 done
30079
30080     ;;
30081 esac
30082 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
30083 do :
30084   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30085 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30087   cat >>confdefs.h <<_ACEOF
30088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30089 _ACEOF
30090
30091 fi
30092
30093 done
30094
30095 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
30096 do :
30097   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30098 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30100   cat >>confdefs.h <<_ACEOF
30101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30102 _ACEOF
30103
30104 fi
30105
30106 done
30107
30108 case "$host" in
30109 *-convex-*)
30110     for ac_header in /sys/sync/queue.h /sys/sync/sema.h
30111 do :
30112   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30115   cat >>confdefs.h <<_ACEOF
30116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30117 _ACEOF
30118
30119 fi
30120
30121 done
30122
30123     ;;
30124 *-*-bsdi*)
30125     for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
30126 do :
30127   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30130   cat >>confdefs.h <<_ACEOF
30131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30132 _ACEOF
30133
30134 fi
30135
30136 done
30137
30138     ;;
30139 esac
30140
30141 case "$ac_cv_header_stdatomic_h" in
30142  yes)
30143         for ac_func in atomic_thread_fence
30144 do :
30145   ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
30146 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
30147   cat >>confdefs.h <<_ACEOF
30148 #define HAVE_ATOMIC_THREAD_FENCE 1
30149 _ACEOF
30150
30151 fi
30152 done
30153
30154         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
30155 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
30156 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
30157   $as_echo_n "(cached) " >&6
30158 else
30159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30160 /* end confdefs.h.  */
30161
30162                         #include <stdatomic.h>
30163
30164 int
30165 main ()
30166 {
30167
30168                         atomic_thread_fence(memory_order_seq_cst);
30169
30170
30171   ;
30172   return 0;
30173 }
30174                 ntp_cv_func_atomic_thread_fence=yes
30175 _ACEOF
30176 if ac_fn_c_try_compile "$LINENO"; then :
30177   ntp_cv_func_atomic_thread_fence=no
30178
30179 fi
30180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30181
30182 fi
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
30184 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
30185     ;;
30186 esac
30187
30188 case "$host" in
30189  *-*-solaris2.6)
30190     # Broken...
30191     ;;
30192  *)
30193     for ac_func in ntp_adjtime ntp_gettime
30194 do :
30195   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30198   cat >>confdefs.h <<_ACEOF
30199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30200 _ACEOF
30201
30202 fi
30203 done
30204
30205     ;;
30206 esac
30207
30208 case "$host" in
30209  *-*-*linux*)
30210     case "$ac_cv_func_ntp_gettime" in
30211      yes)
30212         ;;
30213      *)
30214         for ac_func in __ntp_gettime
30215 do :
30216   ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
30217 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
30218   cat >>confdefs.h <<_ACEOF
30219 #define HAVE___NTP_GETTIME 1
30220 _ACEOF
30221
30222 fi
30223 done
30224
30225         case "$ac_cv_func___ntp_gettime" in
30226          yes)
30227
30228 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
30229
30230
30231 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
30232
30233         esac
30234         ;;
30235     esac
30236     for ac_func in adjtimex
30237 do :
30238   ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
30239 if test "x$ac_cv_func_adjtimex" = xyes; then :
30240   cat >>confdefs.h <<_ACEOF
30241 #define HAVE_ADJTIMEX 1
30242 _ACEOF
30243
30244 fi
30245 done
30246
30247     case "$ac_cv_func_adjtimex" in
30248      yes)
30249
30250 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
30251
30252
30253 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30254
30255         have_adjtimex=1
30256         ;;
30257      *)
30258         for ac_func in __adjtimex
30259 do :
30260   ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
30261 if test "x$ac_cv_func___adjtimex" = xyes; then :
30262   cat >>confdefs.h <<_ACEOF
30263 #define HAVE___ADJTIMEX 1
30264 _ACEOF
30265
30266 fi
30267 done
30268
30269         case "$ac_cv_func___adjtimex" in
30270          yes)
30271
30272 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
30273
30274
30275 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
30276
30277
30278 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
30279
30280
30281 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
30282
30283             have_adjtimex=1
30284         esac
30285         ;;
30286     esac
30287 esac
30288 case "$have_adjtimex" in
30289  '')
30290     # nlist stuff is only needed for tickadj.
30291     saved_LIBS="$LIBS"
30292     LIBS=
30293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
30294 $as_echo_n "checking for library containing nlist... " >&6; }
30295 if ${ac_cv_search_nlist+:} false; then :
30296   $as_echo_n "(cached) " >&6
30297 else
30298   ac_func_search_save_LIBS=$LIBS
30299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300 /* end confdefs.h.  */
30301
30302 /* Override any GCC internal prototype to avoid an error.
30303    Use char because int might match the return type of a GCC
30304    builtin and then its argument prototype would still apply.  */
30305 #ifdef __cplusplus
30306 extern "C"
30307 #endif
30308 char nlist ();
30309 int
30310 main ()
30311 {
30312 return nlist ();
30313   ;
30314   return 0;
30315 }
30316 _ACEOF
30317 for ac_lib in '' elf ld mld; do
30318   if test -z "$ac_lib"; then
30319     ac_res="none required"
30320   else
30321     ac_res=-l$ac_lib
30322     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30323   fi
30324   if ac_fn_c_try_link "$LINENO"; then :
30325   ac_cv_search_nlist=$ac_res
30326 fi
30327 rm -f core conftest.err conftest.$ac_objext \
30328     conftest$ac_exeext
30329   if ${ac_cv_search_nlist+:} false; then :
30330   break
30331 fi
30332 done
30333 if ${ac_cv_search_nlist+:} false; then :
30334
30335 else
30336   ac_cv_search_nlist=no
30337 fi
30338 rm conftest.$ac_ext
30339 LIBS=$ac_func_search_save_LIBS
30340 fi
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
30342 $as_echo "$ac_cv_search_nlist" >&6; }
30343 ac_res=$ac_cv_search_nlist
30344 if test "$ac_res" != no; then :
30345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30346
30347 fi
30348
30349     # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
30350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
30351 $as_echo_n "checking for library containing kvm_open... " >&6; }
30352 if ${ac_cv_search_kvm_open+:} false; then :
30353   $as_echo_n "(cached) " >&6
30354 else
30355   ac_func_search_save_LIBS=$LIBS
30356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30357 /* end confdefs.h.  */
30358
30359 /* Override any GCC internal prototype to avoid an error.
30360    Use char because int might match the return type of a GCC
30361    builtin and then its argument prototype would still apply.  */
30362 #ifdef __cplusplus
30363 extern "C"
30364 #endif
30365 char kvm_open ();
30366 int
30367 main ()
30368 {
30369 return kvm_open ();
30370   ;
30371   return 0;
30372 }
30373 _ACEOF
30374 for ac_lib in '' kvm; do
30375   if test -z "$ac_lib"; then
30376     ac_res="none required"
30377   else
30378     ac_res=-l$ac_lib
30379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30380   fi
30381   if ac_fn_c_try_link "$LINENO"; then :
30382   ac_cv_search_kvm_open=$ac_res
30383 fi
30384 rm -f core conftest.err conftest.$ac_objext \
30385     conftest$ac_exeext
30386   if ${ac_cv_search_kvm_open+:} false; then :
30387   break
30388 fi
30389 done
30390 if ${ac_cv_search_kvm_open+:} false; then :
30391
30392 else
30393   ac_cv_search_kvm_open=no
30394 fi
30395 rm conftest.$ac_ext
30396 LIBS=$ac_func_search_save_LIBS
30397 fi
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
30399 $as_echo "$ac_cv_search_kvm_open" >&6; }
30400 ac_res=$ac_cv_search_kvm_open
30401 if test "$ac_res" != no; then :
30402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30403
30404 fi
30405             # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
30406     for ac_header in nlist.h sys/var.h
30407 do :
30408   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30409 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30411   cat >>confdefs.h <<_ACEOF
30412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30413 _ACEOF
30414
30415 fi
30416
30417 done
30418
30419     case "$ac_cv_header_nlist_h" in
30420      yes)
30421
30422 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
30423
30424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
30425 $as_echo_n "checking for n_un in struct nlist... " >&6; }
30426 if ${ntp_cv_struct_nlist_n_un+:} false; then :
30427   $as_echo_n "(cached) " >&6
30428 else
30429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30430 /* end confdefs.h.  */
30431
30432                         #include <nlist.h>
30433
30434 int
30435 main ()
30436 {
30437
30438                         struct nlist n;
30439                         n.n_un.n_name = 0;
30440
30441
30442   ;
30443   return 0;
30444 }
30445                 ntp_cv_struct_nlist_n_un=yes
30446 _ACEOF
30447 if ac_fn_c_try_compile "$LINENO"; then :
30448   ntp_cv_struct_nlist_n_un=no
30449
30450 fi
30451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30452
30453 fi
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
30455 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
30456         case "$ntp_cv_struct_nlist_n_un" in
30457          yes)
30458
30459 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
30460
30461         esac
30462     esac
30463
30464     LDADD_NLIST="$LIBS"
30465     LIBS="$saved_LIBS"
30466     { saved_LIBS=; unset saved_LIBS;}
30467 esac
30468
30469 for ac_header in sys/proc.h
30470 do :
30471   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
30472     #ifdef HAVE_SYS_TYPES_H
30473     # include <sys/types.h>
30474     #endif
30475     #ifdef HAVE_SYS_TIME_H
30476     # include <sys/time.h>
30477     #endif
30478
30479 "
30480 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
30481   cat >>confdefs.h <<_ACEOF
30482 #define HAVE_SYS_PROC_H 1
30483 _ACEOF
30484
30485 fi
30486
30487 done
30488
30489
30490 for ac_header in sys/resource.h
30491 do :
30492   ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
30493     #ifdef HAVE_SYS_TIME_H
30494     # include <sys/time.h>
30495     #endif
30496
30497 "
30498 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
30499   cat >>confdefs.h <<_ACEOF
30500 #define HAVE_SYS_RESOURCE_H 1
30501 _ACEOF
30502
30503 fi
30504
30505 done
30506
30507
30508 for ac_header in sys/shm.h
30509 do :
30510   ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
30511     #ifdef HAVE_SYS_TYPES_H
30512     # include <sys/types.h>
30513     #endif
30514     #ifdef HAVE_SYS_IPC_H
30515     # include <sys/ipc.h>
30516     #endif
30517
30518 "
30519 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
30520   cat >>confdefs.h <<_ACEOF
30521 #define HAVE_SYS_SHM_H 1
30522 _ACEOF
30523
30524 fi
30525
30526 done
30527
30528
30529 for ac_header in sys/timex.h
30530 do :
30531   ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
30532     #ifdef HAVE_SYS_TIME_H
30533     # include <sys/time.h>
30534     #endif
30535
30536 "
30537 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
30538   cat >>confdefs.h <<_ACEOF
30539 #define HAVE_SYS_TIMEX_H 1
30540 _ACEOF
30541
30542 fi
30543
30544 done
30545
30546
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30548 $as_echo_n "checking return type of signal handlers... " >&6; }
30549 if ${ac_cv_type_signal+:} false; then :
30550   $as_echo_n "(cached) " >&6
30551 else
30552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30553 /* end confdefs.h.  */
30554 #include <sys/types.h>
30555 #include <signal.h>
30556
30557 int
30558 main ()
30559 {
30560 return *(signal (0, 0)) (0) == 1;
30561   ;
30562   return 0;
30563 }
30564 _ACEOF
30565 if ac_fn_c_try_compile "$LINENO"; then :
30566   ac_cv_type_signal=int
30567 else
30568   ac_cv_type_signal=void
30569 fi
30570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30571 fi
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30573 $as_echo "$ac_cv_type_signal" >&6; }
30574
30575 cat >>confdefs.h <<_ACEOF
30576 #define RETSIGTYPE $ac_cv_type_signal
30577 _ACEOF
30578
30579
30580 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30581 if test "x$ac_cv_type_off_t" = xyes; then :
30582
30583 else
30584
30585 cat >>confdefs.h <<_ACEOF
30586 #define off_t long int
30587 _ACEOF
30588
30589 fi
30590
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
30592 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
30593 if ${ac_cv_struct_tm+:} false; then :
30594   $as_echo_n "(cached) " >&6
30595 else
30596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30597 /* end confdefs.h.  */
30598 #include <sys/types.h>
30599 #include <time.h>
30600
30601 int
30602 main ()
30603 {
30604 struct tm tm;
30605                                      int *p = &tm.tm_sec;
30606                                      return !p;
30607   ;
30608   return 0;
30609 }
30610 _ACEOF
30611 if ac_fn_c_try_compile "$LINENO"; then :
30612   ac_cv_struct_tm=time.h
30613 else
30614   ac_cv_struct_tm=sys/time.h
30615 fi
30616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30617 fi
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
30619 $as_echo "$ac_cv_struct_tm" >&6; }
30620 if test $ac_cv_struct_tm = sys/time.h; then
30621
30622 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
30623
30624 fi
30625
30626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
30627 $as_echo_n "checking for a fallback value for HZ... " >&6; }
30628 if ${ntp_cv_default_hz+:} false; then :
30629   $as_echo_n "(cached) " >&6
30630 else
30631
30632         ntp_cv_default_hz=100
30633         case "$host" in
30634          alpha*-dec-osf4*|alpha*-dec-osf5*)
30635             ntp_cv_default_hz=1024
30636             ;;
30637          mips-dec-ultrix4*)
30638             ntp_cv_default_hz=256
30639             ;;
30640         esac
30641
30642
30643 fi
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
30645 $as_echo "$ntp_cv_default_hz" >&6; }
30646
30647 cat >>confdefs.h <<_ACEOF
30648 #define DEFAULT_HZ $ntp_cv_default_hz
30649 _ACEOF
30650
30651
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
30653 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
30654 if ${ntp_cv_override_hz+:} false; then :
30655   $as_echo_n "(cached) " >&6
30656 else
30657
30658         ntp_cv_override_hz=no
30659         case "$host" in
30660          alpha*-dec-osf4*|alpha*-dec-osf5*)
30661             ntp_cv_override_hz=yes
30662             ;;
30663          mips-dec-ultrix4*)
30664             ntp_cv_override_hz=yes
30665             ;;
30666          *-*-freebsd*)
30667             ntp_cv_override_hz=yes
30668             ;;
30669          *-*-sunos4*)
30670             ntp_cv_override_hz=yes
30671             ;;
30672          *-*-kfreebsd*)
30673             ntp_cv_override_hz=yes
30674             ;;
30675         esac
30676
30677
30678 fi
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
30680 $as_echo "$ntp_cv_override_hz" >&6; }
30681 case "$ntp_cv_override_hz" in
30682  yes)
30683
30684 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
30685
30686 esac
30687
30688
30689
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
30691 $as_echo_n "checking for struct rt_msghdr... " >&6; }
30692 if ${ntp_cv_struct_rt_msghdr+:} false; then :
30693   $as_echo_n "(cached) " >&6
30694 else
30695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696 /* end confdefs.h.  */
30697
30698                 #include <sys/types.h>
30699                 #include <sys/socket.h>
30700                 #include <net/if.h>
30701                 #include <net/route.h>
30702
30703 int
30704 main ()
30705 {
30706
30707                 struct rt_msghdr p;
30708
30709
30710   ;
30711   return 0;
30712 }
30713 _ACEOF
30714 if ac_fn_c_try_compile "$LINENO"; then :
30715   ntp_cv_struct_rt_msghdr=yes
30716 else
30717   ntp_cv_struct_rt_msghdr=no
30718
30719 fi
30720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30721
30722 fi
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
30724 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
30725
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
30727 $as_echo_n "checking for struct rtattr... " >&6; }
30728 if ${ntp_cv_rtattr+:} false; then :
30729   $as_echo_n "(cached) " >&6
30730 else
30731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30732 /* end confdefs.h.  */
30733
30734                 #include <stddef.h>
30735                 #include <sys/socket.h>
30736                 #include <linux/rtnetlink.h>
30737
30738 int
30739 main ()
30740 {
30741
30742                 struct rtattr p;
30743
30744
30745   ;
30746   return 0;
30747 }
30748 _ACEOF
30749 if ac_fn_c_try_compile "$LINENO"; then :
30750   ntp_cv_rtattr=yes
30751 else
30752   ntp_cv_rtattr=no
30753
30754 fi
30755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756
30757 fi
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
30759 $as_echo "$ntp_cv_rtattr" >&6; }
30760
30761 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
30762  *yes*)
30763
30764 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
30765
30766     case "$ntp_cv_rtattr" in
30767      yes)
30768
30769 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
30770
30771     esac
30772 esac
30773
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
30775 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
30776 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
30777   $as_echo_n "(cached) " >&6
30778 else
30779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30780 /* end confdefs.h.  */
30781
30782                 #include <signal.h>
30783
30784 int
30785 main ()
30786 {
30787
30788                 struct sigaction act;
30789                 act.sa_sigaction = 0;
30790
30791
30792   ;
30793   return 0;
30794 }
30795 _ACEOF
30796 if ac_fn_c_try_compile "$LINENO"; then :
30797   ntp_cv_struct_sigaction_has_sa_sigaction=yes
30798 else
30799   ntp_cv_struct_sigaction_has_sa_sigaction=no
30800
30801 fi
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803
30804 fi
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
30806 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
30807 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
30808  yes)
30809
30810 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
30811
30812 esac
30813
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
30815 $as_echo_n "checking for struct ppsclockev... " >&6; }
30816 if ${ntp_cv_struct_ppsclockev+:} false; then :
30817   $as_echo_n "(cached) " >&6
30818 else
30819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30820 /* end confdefs.h.  */
30821
30822                 #ifdef HAVE_SYS_TYPES_H
30823                 # include <sys/types.h>
30824                 #endif
30825                 #ifdef HAVE_SYS_TERMIOS_H
30826                 # include <sys/termios.h>
30827                 #endif
30828                 #ifdef HAVE_SYS_TIME_H
30829                 # include <sys/time.h>
30830                 #endif
30831                 #ifdef HAVE_SYS_PPSCLOCK_H
30832                 # include <sys/ppsclock.h>
30833                 #endif
30834
30835 int
30836 main ()
30837 {
30838
30839                 extern struct ppsclockev *pce;
30840                 return pce->serial;
30841
30842
30843   ;
30844   return 0;
30845 }
30846 _ACEOF
30847 if ac_fn_c_try_compile "$LINENO"; then :
30848   ntp_cv_struct_ppsclockev=yes
30849 else
30850   ntp_cv_struct_ppsclockev=no
30851
30852 fi
30853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30854
30855 fi
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
30857 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
30858 case "$ntp_cv_struct_ppsclockev" in
30859  yes)
30860
30861 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
30862
30863 esac
30864
30865 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
30866   *yes*)
30867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
30868 $as_echo_n "checking for struct snd_size... " >&6; }
30869 if ${ntp_cv_struct_snd_size+:} false; then :
30870   $as_echo_n "(cached) " >&6
30871 else
30872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30873 /* end confdefs.h.  */
30874
30875                     #ifdef HAVE_MACHINE_SOUNDCARD_H
30876                     # include <machine/soundcard.h>
30877                     #endif
30878                     #ifdef HAVE_SYS_SOUNDCARD_H
30879                     # include <sys/soundcard.h>
30880                     #endif
30881
30882 int
30883 main ()
30884 {
30885
30886                     extern struct snd_size *ss;
30887                     return ss->rec_size;
30888
30889
30890   ;
30891   return 0;
30892 }
30893 _ACEOF
30894 if ac_fn_c_try_compile "$LINENO"; then :
30895   ntp_cv_struct_snd_size=yes
30896 else
30897   ntp_cv_struct_snd_size=no
30898
30899 fi
30900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30901
30902 fi
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
30904 $as_echo "$ntp_cv_struct_snd_size" >&6; }
30905     case "$ntp_cv_struct_snd_size" in
30906      yes)
30907
30908 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
30909
30910     esac
30911 esac
30912
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
30914 $as_echo_n "checking struct clockinfo for hz... " >&6; }
30915 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30916   $as_echo_n "(cached) " >&6
30917 else
30918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30919 /* end confdefs.h.  */
30920
30921                 #include <sys/time.h>
30922
30923 int
30924 main ()
30925 {
30926
30927                 extern struct clockinfo *pc;
30928                 return pc->hz;
30929
30930
30931   ;
30932   return 0;
30933 }
30934 _ACEOF
30935 if ac_fn_c_try_compile "$LINENO"; then :
30936   ntp_cv_struct_clockinfo_has_hz=yes
30937 else
30938   ntp_cv_struct_clockinfo_has_hz=no
30939
30940 fi
30941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30942
30943 fi
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30945 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30946 case "$ntp_cv_struct_clockinfo_has_hz" in
30947  yes)
30948
30949 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30950
30951 esac
30952
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
30954 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
30955 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
30956   $as_echo_n "(cached) " >&6
30957 else
30958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30959 /* end confdefs.h.  */
30960
30961                 #include <sys/time.h>
30962
30963 int
30964 main ()
30965 {
30966
30967                 extern struct clockinfo *pc;
30968                 return pc->tickadj;
30969
30970
30971   ;
30972   return 0;
30973 }
30974 _ACEOF
30975 if ac_fn_c_try_compile "$LINENO"; then :
30976   ntp_cv_struct_clockinfo_has_hz=yes
30977 else
30978   ntp_cv_struct_clockinfo_has_hz=no
30979
30980 fi
30981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30982
30983 fi
30984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
30985 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
30986 case "$ntp_cv_struct_clockinfo_has_hz" in
30987  yes)
30988
30989 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
30990
30991 esac
30992
30993 case "$ntp_cv_struct_ntptimeval" in
30994  yes)
30995     ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
30996             #ifdef HAVE_SYS_TIME_H
30997             # include <sys/time.h>
30998             #else
30999             # ifdef HAVE_TIME_H
31000             #  include <time.h>
31001             # endif
31002             #endif
31003             #ifdef HAVE_SYS_TIMEX_H
31004             # include <sys/timex.h>
31005             #else
31006             # ifdef HAVE_TIMEX_H
31007             #  include <timex.h>
31008             # endif
31009             #endif
31010
31011
31012 "
31013 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
31014
31015 cat >>confdefs.h <<_ACEOF
31016 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
31017 _ACEOF
31018
31019
31020 fi
31021
31022 esac
31023
31024 ####
31025
31026 for ac_func in arc4random_buf
31027 do :
31028   ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
31029 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
31030   cat >>confdefs.h <<_ACEOF
31031 #define HAVE_ARC4RANDOM_BUF 1
31032 _ACEOF
31033
31034 fi
31035 done
31036
31037
31038 ####
31039
31040 saved_LIBS="$LIBS"
31041 LIBS="$LIBS $LDADD_LIBNTP"
31042 for ac_func in daemon
31043 do :
31044   ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
31045 if test "x$ac_cv_func_daemon" = xyes; then :
31046   cat >>confdefs.h <<_ACEOF
31047 #define HAVE_DAEMON 1
31048 _ACEOF
31049
31050 fi
31051 done
31052
31053 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
31054 LIBS="$saved_LIBS"
31055 { saved_LIBS=; unset saved_LIBS;}
31056
31057 for ac_func in finite
31058 do :
31059   ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
31060 if test "x$ac_cv_func_finite" = xyes; then :
31061   cat >>confdefs.h <<_ACEOF
31062 #define HAVE_FINITE 1
31063 _ACEOF
31064
31065 else
31066   for ac_func in isfinite
31067 do :
31068   ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
31069 if test "x$ac_cv_func_isfinite" = xyes; then :
31070   cat >>confdefs.h <<_ACEOF
31071 #define HAVE_ISFINITE 1
31072 _ACEOF
31073
31074 else
31075
31076             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
31077 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
31078             _libs=$LIBS
31079             # XXX
31080             LIBS="$LIBS -lm"
31081             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082 /* end confdefs.h.  */
31083
31084                         #include <math.h>
31085
31086 int
31087 main ()
31088 {
31089
31090                         float f = 0.0;
31091                         isfinite(f);
31092
31093
31094   ;
31095   return 0;
31096 }
31097 _ACEOF
31098 if ac_fn_c_try_link "$LINENO"; then :
31099   ans=yes
31100 else
31101   ans=no
31102
31103 fi
31104 rm -f core conftest.err conftest.$ac_objext \
31105     conftest$ac_exeext conftest.$ac_ext
31106             LIBS=$_libs
31107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31108 $as_echo "$ans" >&6; }
31109             case "$ans" in
31110              yes)
31111                 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
31112
31113             esac
31114
31115
31116 fi
31117 done
31118
31119
31120 fi
31121 done
31122
31123
31124 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
31125 do :
31126   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31127 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31128 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31129   cat >>confdefs.h <<_ACEOF
31130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31131 _ACEOF
31132
31133 fi
31134 done
31135
31136
31137 # kvm_open() is only used by tickadj.  Also see above.
31138 case "$ac_cv_header_kvm_h" in
31139  yes)
31140     for ac_func in kvm_open
31141 do :
31142   ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
31143 if test "x$ac_cv_func_kvm_open" = xyes; then :
31144   cat >>confdefs.h <<_ACEOF
31145 #define HAVE_KVM_OPEN 1
31146 _ACEOF
31147
31148 fi
31149 done
31150
31151     ;;
31152 esac
31153
31154 case "$host" in
31155  *-*-sco3.2v5.0.*)
31156     # Just stubs.  Sigh.
31157     ;;
31158  *) for ac_func in mkstemp
31159 do :
31160   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
31161 if test "x$ac_cv_func_mkstemp" = xyes; then :
31162   cat >>confdefs.h <<_ACEOF
31163 #define HAVE_MKSTEMP 1
31164 _ACEOF
31165
31166 fi
31167 done
31168
31169     ;;
31170 esac
31171 for ac_func in mktime
31172 do :
31173   ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
31174 if test "x$ac_cv_func_mktime" = xyes; then :
31175   cat >>confdefs.h <<_ACEOF
31176 #define HAVE_MKTIME 1
31177 _ACEOF
31178
31179 fi
31180 done
31181
31182 case "$host" in
31183  *-*-aix[4-9]*)
31184     # XXX only verified thru AIX6.
31185     # Just a stub.  Sigh.
31186     ;;
31187  *-*-irix[45]*)
31188     # Just a stub in "old" Irix.  Sigh.
31189     ;;
31190 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
31191 # *-*-*linux*)
31192 #    # there, but more trouble than it is worth for now (resolver problems)
31193 #    ;;
31194  *-*-qnx*)
31195     # Apparently there but not working in QNX.  Sigh?
31196     ;;
31197  *-*-sco3.2v5.0.*)
31198     # Just a stub.  Sigh.
31199     ;;
31200  alpha*-dec-osf4*|alpha*-dec-osf5*)
31201     # mlockall is there, as a #define calling memlk via <sys/mman.h>
31202     # Not easy to test for - cheat.
31203     for ac_func in memlk
31204 do :
31205   ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
31206 if test "x$ac_cv_func_memlk" = xyes; then :
31207   cat >>confdefs.h <<_ACEOF
31208 #define HAVE_MEMLK 1
31209 _ACEOF
31210  ac_cv_func_mlockall=yes
31211 fi
31212 done
31213
31214     for ac_func in mlockall
31215 do :
31216   ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31217 if test "x$ac_cv_func_mlockall" = xyes; then :
31218   cat >>confdefs.h <<_ACEOF
31219 #define HAVE_MLOCKALL 1
31220 _ACEOF
31221
31222 fi
31223 done
31224
31225     ;;
31226  *) for ac_func in mlockall
31227 do :
31228   ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
31229 if test "x$ac_cv_func_mlockall" = xyes; then :
31230   cat >>confdefs.h <<_ACEOF
31231 #define HAVE_MLOCKALL 1
31232 _ACEOF
31233
31234 fi
31235 done
31236
31237     ;;
31238 esac
31239 for ac_func in nice plock pututline pututxline readlink rtprio
31240 do :
31241   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31244   cat >>confdefs.h <<_ACEOF
31245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31246 _ACEOF
31247
31248 fi
31249 done
31250
31251 case "$host" in
31252  *-*-aix[4-9]*)
31253     # XXX only verified thru AIX6.
31254     # Just a stub in AIX 4.  Sigh.
31255     ;;
31256  *-*-solaris2.5*)
31257     # Just stubs in solaris2.5.  Sigh.
31258     ;;
31259  *) for ac_func in sched_setscheduler
31260 do :
31261   ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
31262 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
31263   cat >>confdefs.h <<_ACEOF
31264 #define HAVE_SCHED_SETSCHEDULER 1
31265 _ACEOF
31266
31267 fi
31268 done
31269
31270     ;;
31271 esac
31272 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
31273 do :
31274   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31275 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31276 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31277   cat >>confdefs.h <<_ACEOF
31278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31279 _ACEOF
31280
31281 fi
31282 done
31283
31284 for ac_func in strdup strerror setrlimit strchr
31285 do :
31286   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31287 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31288 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31289   cat >>confdefs.h <<_ACEOF
31290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31291 _ACEOF
31292
31293 fi
31294 done
31295
31296 case "$host" in
31297  *-*-aix[4-9]*)
31298     # XXX only verified thru AIX6.
31299     # Just stubs.  Sigh.
31300     ;;
31301  *-*-netbsd1*)
31302     # Just stubs.  Sigh.
31303     ;;
31304  *-*-netbsdelf1*)
31305     # Just stubs.  Sigh.
31306     ;;
31307  *-*-openbsd*)
31308     # Just stubs.  Sigh.
31309     ;;
31310  *)
31311     for ac_func in timer_create
31312 do :
31313   ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
31314 if test "x$ac_cv_func_timer_create" = xyes; then :
31315   cat >>confdefs.h <<_ACEOF
31316 #define HAVE_TIMER_CREATE 1
31317 _ACEOF
31318
31319 fi
31320 done
31321
31322     ;;
31323 esac
31324
31325
31326
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
31328 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
31329 if ${ntp_cv_rlimit_memlock+:} false; then :
31330   $as_echo_n "(cached) " >&6
31331 else
31332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333 /* end confdefs.h.  */
31334
31335                 #ifdef HAVE_SYS_TYPES_H
31336                 # include <sys/types.h>
31337                 #endif
31338                 #ifdef HAVE_SYS_TIME_H
31339                 # include <sys/time.h>
31340                 #endif
31341                 #ifdef HAVE_SYS_RESOURCE_H
31342                 # include <sys/resource.h>
31343                 #endif
31344
31345 int
31346 main ()
31347 {
31348
31349                 getrlimit(RLIMIT_MEMLOCK, 0);
31350
31351
31352   ;
31353   return 0;
31354 }
31355 _ACEOF
31356 if ac_fn_c_try_compile "$LINENO"; then :
31357   ntp_cv_rlimit_memlock=yes
31358 else
31359   ntp_cv_rlimit_memlock=no
31360
31361 fi
31362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31363
31364 fi
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
31366 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
31367 case "$host" in
31368  *-*-*linux*)
31369     ntp_dflt_rlimit_memlock="-1" ;;
31370  *) ntp_dflt_rlimit_memlock="32" ;;
31371 esac
31372 case "$ntp_cv_rlimit_memlock" in
31373  yes)
31374
31375     HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock"  ;;
31376 esac
31377
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
31379 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
31380 if ${ntp_cv_rlimit_stack+:} false; then :
31381   $as_echo_n "(cached) " >&6
31382 else
31383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31384 /* end confdefs.h.  */
31385
31386                 #ifdef HAVE_SYS_TYPES_H
31387                 # include <sys/types.h>
31388                 #endif
31389                 #ifdef HAVE_SYS_TIME_H
31390                 # include <sys/time.h>
31391                 #endif
31392                 #ifdef HAVE_SYS_RESOURCE_H
31393                 # include <sys/resource.h>
31394                 #endif
31395
31396 int
31397 main ()
31398 {
31399
31400                 getrlimit(RLIMIT_STACK, 0);
31401
31402
31403   ;
31404   return 0;
31405 }
31406 _ACEOF
31407 if ac_fn_c_try_compile "$LINENO"; then :
31408   ntp_cv_rlimit_stack=yes
31409 else
31410   ntp_cv_rlimit_stack=no
31411
31412 fi
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414
31415 fi
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
31417 $as_echo "$ntp_cv_rlimit_stack" >&6; }
31418 case "$ntp_cv_rlimit_stack" in
31419  yes)
31420
31421     HAVE_RLIMIT_STACK=" stacksize 50"
31422 esac
31423
31424 # HMS: Only if we are doing the MLOCKALL stuff...
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
31426 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
31427
31428 # Check whether --with-stack-limit was given.
31429 if test "${with_stack_limit+set}" = set; then :
31430   withval=$with_stack_limit; ans=$withval
31431 else
31432   ans=yes
31433
31434 fi
31435
31436 case "$ans" in
31437  yes | no)
31438     case "$host" in
31439      *-*-openbsd*)
31440         ans=200
31441         ;;
31442      *) ans=50
31443         ;;
31444     esac
31445     ;;
31446  [1-9][0-9]*)
31447     ;;
31448  *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
31449     ;;
31450 esac
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31452 $as_echo "$ans" >&6; }
31453
31454 cat >>confdefs.h <<_ACEOF
31455 #define DFLT_RLIMIT_STACK $ans
31456 _ACEOF
31457
31458
31459 # HMS: only if we have RLIMIT_MEMLOCK
31460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
31461 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
31462
31463 # Check whether --with-memlock was given.
31464 if test "${with_memlock+set}" = set; then :
31465   withval=$with_memlock; ans=$withval
31466 else
31467   ans=yes
31468
31469 fi
31470
31471 case "$ans" in
31472  yes | no)
31473     ans=$ntp_dflt_rlimit_memlock
31474     ;;
31475  [1-9][0-9]*) ;;
31476  *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
31477      ;;
31478 esac
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31480 $as_echo "$ans" >&6; }
31481
31482 cat >>confdefs.h <<_ACEOF
31483 #define DFLT_RLIMIT_MEMLOCK $ans
31484 _ACEOF
31485
31486
31487
31488
31489 # some OSes prefer _exit() in forked children to exit()
31490 for ac_func in _exit
31491 do :
31492   ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
31493 if test "x$ac_cv_func__exit" = xyes; then :
31494   cat >>confdefs.h <<_ACEOF
31495 #define HAVE__EXIT 1
31496 _ACEOF
31497
31498 fi
31499 done
31500
31501 ntp_worker_child_exit=exit
31502 case "$ac_cv_func__exit::$host_os" in
31503  yes::netbsd*)
31504     ntp_worker_child_exit=_exit
31505     ;;
31506  yes::openbsd*)
31507     ntp_worker_child_exit=_exit
31508     ;;
31509 esac
31510
31511 cat >>confdefs.h <<_ACEOF
31512 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
31513 _ACEOF
31514
31515
31516 for ac_func in umask uname updwtmp updwtmpx
31517 do :
31518   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31521   cat >>confdefs.h <<_ACEOF
31522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31523 _ACEOF
31524
31525 fi
31526 done
31527
31528
31529 ###
31530
31531 # http://bugs.ntp.org/737
31532 case "$ac_cv_func_recvmsg" in
31533  yes)
31534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
31535 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
31536 if ${ntp_cv_struct_iovec_help+:} false; then :
31537   $as_echo_n "(cached) " >&6
31538 else
31539
31540             compiled=no
31541             for ntp_cv_struct_iovec_help in '0' '1'; do
31542                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31543 /* end confdefs.h.  */
31544
31545                             #ifdef HAVE_SYS_TYPES_H
31546                             # include <sys/types.h>
31547                             #endif
31548                             #ifdef HAVE_SYS_SOCKET_H
31549                             # include <sys/socket.h>
31550                             #endif
31551                             #if $ntp_cv_struct_iovec_help
31552                             # include <sys/uio.h>
31553                             #endif
31554
31555 int
31556 main ()
31557 {
31558
31559                             void foo(void) {
31560                                 ssize_t x;
31561                                 int s = 0;
31562                                 struct iovec iov;
31563                                 struct msghdr mh;
31564                                 int flags = 0;
31565
31566                                 mh.msg_iov = &iov;
31567                                 x = recvmsg(s, &mh, flags);
31568                             }
31569
31570
31571   ;
31572   return 0;
31573 }
31574 _ACEOF
31575 if ac_fn_c_try_compile "$LINENO"; then :
31576   compiled=yes ; break 1
31577 fi
31578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31579             done
31580             case "$compiled" in
31581              no)
31582                 ntp_cv_struct_iovec_help=0
31583             esac
31584             { compiled=; unset compiled;}
31585
31586
31587 fi
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
31589 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
31590     case "$ntp_cv_struct_iovec_help" in
31591      1)
31592
31593 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
31594
31595     esac
31596 esac
31597
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
31599 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
31600 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
31601   $as_echo_n "(cached) " >&6
31602 else
31603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31604 /* end confdefs.h.  */
31605
31606                 #ifdef HAVE_SYS_TYPES_H
31607                 # include <sys/types.h>
31608                 #endif
31609                 #ifdef HAVE_UNISTD_H
31610                 # include <unistd.h>
31611                 #endif
31612
31613 int
31614 main ()
31615 {
31616
31617                 setpgrp(0, 0);
31618
31619
31620   ;
31621   return 0;
31622 }
31623 _ACEOF
31624 if ac_fn_c_try_compile "$LINENO"; then :
31625   ntp_cv_func_setpgrp_nargs=2
31626 else
31627   ntp_cv_func_setpgrp_nargs=0
31628
31629 fi
31630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631
31632 fi
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
31634 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
31635 case "$ntp_cv_func_setpgrp_nargs" in
31636  0)
31637
31638 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
31639
31640 esac
31641
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
31643 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
31644 if ${ntp_cv_decl_errno+:} false; then :
31645   $as_echo_n "(cached) " >&6
31646 else
31647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31648 /* end confdefs.h.  */
31649
31650                 #ifdef HAVE_ERRNO_H
31651                 # include <errno.h>
31652                 #endif
31653
31654 int
31655 main ()
31656 {
31657
31658                 errno = 0;
31659
31660
31661   ;
31662   return 0;
31663 }
31664 _ACEOF
31665 if ac_fn_c_try_compile "$LINENO"; then :
31666   ntp_cv_decl_errno=no
31667 else
31668   ntp_cv_decl_errno=yes
31669
31670 fi
31671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31672
31673 fi
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
31675 $as_echo "$ntp_cv_decl_errno" >&6; }
31676 case "$ntp_cv_decl_errno" in
31677  yes)
31678
31679 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
31680
31681 esac
31682
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
31684 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
31685 if ${ntp_cv_decl_h_errno+:} false; then :
31686   $as_echo_n "(cached) " >&6
31687 else
31688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31689 /* end confdefs.h.  */
31690
31691                 #include <sys/types.h>
31692                 #ifdef HAVE_NETINET_IN_H
31693                 # include <netinet/in.h>
31694                 #endif
31695                 #ifdef HAVE_ARPA_NAMESER_H
31696                 # include <arpa/nameser.h>
31697                 #endif
31698                 #ifdef HAVE_NETDB_H
31699                 # include <netdb.h>
31700                 #endif
31701                 #ifdef HAVE_RESOLV_H
31702                 # include <resolv.h>
31703                 #endif
31704
31705 int
31706 main ()
31707 {
31708
31709                 extern int h_errno;
31710
31711
31712   ;
31713   return 0;
31714 }
31715 _ACEOF
31716 if ac_fn_c_try_compile "$LINENO"; then :
31717   ntp_cv_decl_h_errno=yes
31718 else
31719   ntp_cv_decl_h_errno=no
31720
31721 fi
31722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31723
31724 fi
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
31726 $as_echo "$ntp_cv_decl_h_errno" >&6; }
31727 case "$ntp_cv_decl_h_errno" in
31728  yes)
31729
31730 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
31731
31732 esac
31733
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
31735 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
31736 if ${ntp_cv_decl_syscall+:} false; then :
31737   $as_echo_n "(cached) " >&6
31738 else
31739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31740 /* end confdefs.h.  */
31741
31742                 #ifdef HAVE_SYS_TYPES_H
31743                 # include <sys/types.h>
31744                 #endif
31745                 #ifdef HAVE_UNISTD_H
31746                 # include <unistd.h>
31747                 #endif
31748
31749 int
31750 main ()
31751 {
31752
31753                 extern int syscall (int, ...);
31754
31755
31756   ;
31757   return 0;
31758 }
31759         ntp_cv_decl_syscall=yes
31760 _ACEOF
31761 if ac_fn_c_try_compile "$LINENO"; then :
31762   ntp_cv_decl_syscall=no
31763
31764 fi
31765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31766
31767 fi
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
31769 $as_echo "$ntp_cv_decl_syscall" >&6; }
31770 case "$ntp_cv_decl_syscall" in
31771  yes)
31772
31773 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
31774
31775 esac
31776
31777 case "$host" in
31778  *-*-aix4.3.*)
31779
31780 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
31781                 # Needed for XLC under AIX 4.3.2
31782     ;;
31783  *-*-mpeix*)
31784
31785 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31786
31787
31788 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
31789
31790
31791 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31792
31793
31794 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31795
31796
31797 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31798
31799
31800 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31801
31802
31803 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31804
31805     ;;
31806  *-*-osf[45]*)
31807
31808 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31809
31810
31811 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
31812
31813     ;;
31814  *-*-qnx*)
31815
31816 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31817
31818     ;;
31819  *-*-riscos4*)
31820
31821 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31822
31823
31824 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31825
31826
31827 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31828
31829
31830 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31831
31832
31833 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31834
31835
31836 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31837
31838
31839 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31840
31841
31842 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31843
31844
31845 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31846
31847
31848 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31849
31850
31851 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31852
31853
31854 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31855
31856
31857 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31858
31859
31860 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31861
31862
31863 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31864
31865
31866 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31867
31868     ;;
31869  *-*-solaris2*)
31870
31871 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31872
31873
31874 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
31875
31876     case "$host" in
31877      *-*-solaris2.4)
31878
31879 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31880
31881         ;;
31882     esac
31883     ;;
31884  *-*-sunos4*)
31885
31886 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31887
31888
31889 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
31890
31891
31892 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31893
31894
31895 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31896
31897
31898 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31899
31900
31901 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
31902
31903
31904 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31905
31906
31907 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
31908
31909
31910 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
31911
31912
31913 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31914
31915
31916 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31917
31918
31919 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31920
31921
31922 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
31923
31924     case "`basename $ac_cv_prog_CC`" in
31925      acc*) ;;
31926      *)
31927 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
31928
31929         ;;
31930     esac
31931
31932 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
31933
31934
31935 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31936
31937
31938 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
31939
31940
31941 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31942
31943
31944 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
31945
31946
31947 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
31948
31949
31950 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
31951
31952     ;;
31953  *-*-ultrix4*)
31954
31955 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
31956
31957
31958 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
31959
31960
31961 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
31962
31963
31964 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
31965
31966
31967 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
31968
31969
31970 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
31971
31972
31973 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
31974
31975
31976 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
31977
31978
31979 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
31980
31981
31982 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
31983
31984
31985 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
31986
31987
31988 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
31989
31990
31991 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
31992
31993
31994 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
31995
31996     ;;
31997 esac
31998
31999 case "$host" in
32000  *-*-sco3.2*)
32001
32002 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
32003
32004     ;;
32005 esac
32006
32007 case "$host" in
32008  *-*-hpux[567]*)
32009
32010 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
32011
32012 esac
32013
32014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
32015 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
32016 if ${ntp_cv_var_open_bcast_socket+:} false; then :
32017   $as_echo_n "(cached) " >&6
32018 else
32019
32020         ans=yes
32021         case "$host" in
32022          *-*-domainos)
32023             ans=no
32024         esac
32025         ntp_cv_var_open_bcast_socket=$ans
32026
32027
32028 fi
32029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
32030 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
32031 case "$ntp_cv_var_open_bcast_socket" in
32032  yes)
32033
32034 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
32035
32036 esac
32037
32038 case "$host" in
32039  *-*-hpux*)
32040
32041 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
32042
32043 esac
32044
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
32046 $as_echo_n "checking if process groups are set with -pid... " >&6; }
32047 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
32048   $as_echo_n "(cached) " >&6
32049 else
32050
32051         case "$host" in
32052          *-*-hpux[567]*)
32053             ans=no
32054             ;;
32055          *-*-hpux*)
32056             ans=yes
32057             ;;
32058          *-*-*linux*)
32059             ans=yes
32060             ;;
32061          *-*-sunos3*)
32062             ans=yes
32063             ;;
32064          *-*-ultrix2*)
32065             ans=yes
32066             ;;
32067          *)
32068             ans=no
32069             ;;
32070         esac
32071         ntp_cv_arg_setpgrp_negpid=$ans
32072
32073
32074 fi
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
32076 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
32077 case "$ntp_cv_arg_setpgrp_negpid" in
32078  yes)
32079
32080 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
32081
32082 esac
32083
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
32085 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
32086 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
32087   $as_echo_n "(cached) " >&6
32088 else
32089
32090         case "$host" in
32091          *-*-bsdi[23]*)
32092             ans=yes
32093             ;;
32094          *-*-freebsd*)
32095             ans=yes
32096             ;;
32097         # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
32098         # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
32099         # some cases and so should not have USE_FSETOWNCTTY.  "netbsd"
32100         # in $host may be followed by "aout", "ecoff", or "elf".
32101          *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
32102             ans=yes
32103             ;;
32104          *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
32105             ans=yes
32106             ;;
32107          *-*-openbsd*)
32108             ans=yes
32109             ;;
32110          *-*-osf*)
32111             ans=yes
32112             ;;
32113          *-*-darwin*)
32114             ans=yes
32115             ;;
32116          *)
32117             ans=no
32118             ;;
32119         esac
32120         ntp_cv_func_ctty_for_f_setown=$ans
32121
32122
32123 fi
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
32125 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
32126 case "$ntp_cv_func_ctty_for_f_setown" in
32127  yes)
32128
32129 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
32130
32131 esac
32132
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
32134 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
32135 if ${ntp_cv_os_routeupdates+:} false; then :
32136   $as_echo_n "(cached) " >&6
32137 else
32138
32139         case "$host" in
32140          *-*-netbsd*)
32141             ans=yes
32142             ;;
32143          *)
32144             ans=no
32145             ;;
32146         esac
32147         ntp_cv_os_routeupdates=$ans
32148
32149
32150 fi
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
32152 $as_echo "$ntp_cv_os_routeupdates" >&6; }
32153 case "$ntp_cv_os_routeupdates" in
32154  yes)
32155
32156 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
32157
32158 esac
32159
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
32161 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
32162 if ${ntp_cv_os_wildcardreuse+:} false; then :
32163   $as_echo_n "(cached) " >&6
32164 else
32165
32166         case "$host" in
32167          *-*-*linux*)
32168             ans=yes
32169             ;;
32170          *) ans=no
32171             ;;
32172         esac
32173         ntp_cv_os_wildcardreuse=$ans
32174
32175
32176 fi
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
32178 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
32179 case "$ntp_cv_os_wildcardreuse" in
32180  yes)
32181
32182 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
32183
32184 esac
32185
32186 case "$host" in
32187  *-*-aix*)
32188
32189 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
32190
32191 esac
32192
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
32194 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
32195 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
32196   $as_echo_n "(cached) " >&6
32197 else
32198
32199         ans=no
32200         case "$host" in
32201          *-*-aix*)
32202             ans=40
32203             ;;
32204         esac
32205         ntp_cv_var_min_rec_tickadj=$ans
32206
32207
32208 fi
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
32210 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
32211 case "$ntp_cv_var_min_rec_tickadj" in
32212  ''|no)
32213     ;;
32214  *)
32215
32216 cat >>confdefs.h <<_ACEOF
32217 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
32218 _ACEOF
32219
32220 esac
32221
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
32223 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
32224 if ${ntp_cv_no_parenb_ignpar+:} false; then :
32225   $as_echo_n "(cached) " >&6
32226 else
32227
32228         ans=no
32229         case "$host" in
32230          i?86-*-*linux*)
32231             ans=yes
32232             ;;
32233          mips-sgi-irix*)
32234             ans=yes
32235             ;;
32236          i?86-*-freebsd[123].*)
32237             ;;
32238          i?86-*-freebsd*)
32239             ans=yes
32240             ;;
32241          *-*-unicosmp*)
32242             ans=yes
32243             ;;
32244         esac
32245         ntp_cv_no_parenb_ignpar=$ans
32246
32247
32248 fi
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
32250 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
32251 case "$ntp_cv_no_parenb_ignpar" in
32252  yes)
32253
32254 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
32255
32256 esac
32257
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
32259 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
32260 # Check whether --enable-debug-timing was given.
32261 if test "${enable_debug_timing+set}" = set; then :
32262   enableval=$enable_debug_timing; ntp_ok=$enableval
32263 else
32264   ntp_ok=no
32265
32266 fi
32267
32268 case "$ntp_ok" in
32269  yes)
32270
32271 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
32272
32273 esac
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32275 $as_echo "$ntp_ok" >&6; }
32276
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
32278 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
32279 # Check whether --enable-dst-minutes was given.
32280 if test "${enable_dst_minutes+set}" = set; then :
32281   enableval=$enable_dst_minutes; ans=$enableval
32282 else
32283   ans=60
32284
32285 fi
32286
32287
32288 cat >>confdefs.h <<_ACEOF
32289 #define DSTMINUTES $ans
32290 _ACEOF
32291
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32293 $as_echo "$ans" >&6; }
32294
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
32296 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
32297 # Check whether --enable-ignore-dns-errors was given.
32298 if test "${enable_ignore_dns_errors+set}" = set; then :
32299   enableval=$enable_ignore_dns_errors; ans=$enableval
32300 else
32301   ans=no
32302
32303 fi
32304
32305 case "$ans" in
32306  yes)
32307
32308 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
32309
32310 esac
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32312 $as_echo "$ans" >&6; }
32313
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
32315 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
32316 if ${ntp_cv_var_ntp_syscalls+:} false; then :
32317   $as_echo_n "(cached) " >&6
32318 else
32319
32320         ntp_cv_var_ntp_syscalls=no
32321         case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
32322          yesyes*)
32323             ntp_cv_var_ntp_syscalls=libc
32324             ;;
32325          *yes)
32326             ntp_cv_var_ntp_syscalls=inline
32327             ;;
32328          *)
32329             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32330 /* end confdefs.h.  */
32331
32332                         #include <sys/syscall.h>
32333                         #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
32334                         # error
32335                         #endif
32336
32337 _ACEOF
32338 if ac_fn_c_try_cpp "$LINENO"; then :
32339   ntp_cv_var_ntp_syscalls=kernel
32340
32341 fi
32342 rm -f conftest.err conftest.i conftest.$ac_ext
32343             ;;
32344          esac
32345
32346
32347 fi
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
32349 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
32350 case "$ntp_cv_var_ntp_syscalls" in
32351  libc)
32352
32353 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
32354
32355     ;;
32356  kernel)
32357
32358 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
32359
32360     ;;
32361 esac
32362
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
32364 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
32365 if ${ntp_cv_var_sta_fll+:} false; then :
32366   $as_echo_n "(cached) " >&6
32367 else
32368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32369 /* end confdefs.h.  */
32370
32371                 #include <sys/timex.h>
32372                 #ifndef STA_FLL
32373                 # error
32374                 #endif
32375
32376 _ACEOF
32377 if ac_fn_c_try_cpp "$LINENO"; then :
32378   ntp_cv_var_sta_fll=yes
32379 else
32380   ntp_cv_var_sta_fll=no
32381
32382 fi
32383 rm -f conftest.err conftest.i conftest.$ac_ext
32384
32385 fi
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
32387 $as_echo "$ntp_cv_var_sta_fll" >&6; }
32388
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
32390 $as_echo_n "checking if we have kernel PLL support... " >&6; }
32391 if ${ntp_cv_var_kernel_pll+:} false; then :
32392   $as_echo_n "(cached) " >&6
32393 else
32394         case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
32395          *no*)
32396             ntp_cv_var_kernel_pll=no
32397             ;;
32398          *) ntp_cv_var_kernel_pll=yes
32399             ;;
32400         esac
32401
32402
32403 fi
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
32405 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
32406 case "$ntp_cv_var_kernel_pll" in
32407  yes)
32408
32409 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
32410
32411 esac
32412
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
32414 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
32415 if ${ntp_cv_size_returned_in_buffer+:} false; then :
32416   $as_echo_n "(cached) " >&6
32417 else
32418
32419         ans=no
32420         case "$host" in
32421          *-fujitsu-uxp*)
32422             ans=yes
32423             ;;
32424          *-ncr-sysv4*)
32425             ans=yes
32426             ;;
32427          *-univel-sysv*)
32428             ans=yes
32429             ;;
32430         esac
32431         ntp_cv_size_returned_in_buffer=$ans
32432
32433
32434 fi
32435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
32436 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
32437 case "$ntp_cv_size_returned_in_buffer" in
32438  yes)
32439
32440 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
32441
32442 esac
32443
32444 # Check for ioctls TIOCGPPSEV
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
32446 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
32447 case "$ac_cv_header_termios_h" in
32448  yes)
32449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32450 /* end confdefs.h.  */
32451
32452             #include <termios.h>
32453             #ifndef TIOCGPPSEV
32454             # error
32455             #endif
32456
32457 _ACEOF
32458 if ac_fn_c_try_cpp "$LINENO"; then :
32459   ntp_ok=yes
32460 else
32461   ntp_ok=no
32462
32463 fi
32464 rm -f conftest.err conftest.i conftest.$ac_ext
32465     ;;
32466  *)
32467     ntp_ok=no
32468     ;;
32469 esac
32470 case "$ntp_ok" in
32471  yes)
32472
32473 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
32474
32475 esac
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32477 $as_echo "$ntp_ok" >&6; }
32478
32479 # Check for ioctls TIOCSPPS
32480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
32481 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
32482 case "$ac_cv_header_termios_h" in
32483  yes)
32484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32485 /* end confdefs.h.  */
32486
32487             #include <termios.h>
32488             #ifndef TIOCSPPS
32489             # error
32490             #endif
32491
32492 _ACEOF
32493 if ac_fn_c_try_cpp "$LINENO"; then :
32494   ntp_ok=yes
32495 else
32496   ntp_ok=no
32497
32498 fi
32499 rm -f conftest.err conftest.i conftest.$ac_ext
32500     ;;
32501  *)
32502     ntp_ok=no
32503     ;;
32504 esac
32505 case "$ntp_ok" in
32506  yes)
32507
32508 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
32509
32510 esac
32511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32512 $as_echo "$ntp_ok" >&6; }
32513
32514 # Check for ioctls CIOGETEV
32515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
32516 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
32517 case "$ac_cv_header_sys_ppsclock_h" in
32518  yes)
32519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32520 /* end confdefs.h.  */
32521
32522             #include <sys/ppsclock.h>
32523             #ifndef CIOGETEV
32524             # error
32525             #endif
32526
32527 _ACEOF
32528 if ac_fn_c_try_cpp "$LINENO"; then :
32529   ntp_ok=yes
32530 else
32531   ntp_ok=no
32532
32533 fi
32534 rm -f conftest.err conftest.i conftest.$ac_ext
32535     ;;
32536  *)
32537     ntp_ok=no
32538     ;;
32539 esac
32540 case "$ntp_ok" in
32541  yes)
32542
32543 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
32544
32545 esac
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32547 $as_echo "$ntp_ok" >&6; }
32548
32549 # ATOM/PPSAPI stuff.
32550
32551 ntp_atom_ok=yes
32552
32553 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
32554
32555 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
32556 # The PPSAPI needs struct timespec.
32557 # The PPSAPI also needs a timepps header.
32558
32559 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
32560  inlineyes)
32561     case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
32562      *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
32563
32564 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
32565
32566         ntp_jupiter_ok=yes
32567         ntp_oncore_ok=yes
32568         ntp_parse_ok=yes
32569         ntp_ripe_ncc_ok=yes
32570         ;;
32571     esac
32572     ;;
32573 esac
32574
32575 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
32576 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
32577 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
32578
32579 fi
32580
32581
32582 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
32583   yesyes)
32584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
32585 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
32586     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32587 /* end confdefs.h.  */
32588
32589             #include <sys/time.h>
32590             typedef int u_int;
32591             #include <sys/ppsclock.h>
32592             #include <linux/serial.h>
32593
32594             #ifndef TIOCGSERIAL
32595             # error
32596             #endif
32597             #ifndef TIOCSSERIAL
32598             # error
32599             #endif
32600             #ifndef ASYNC_PPS_CD_POS
32601             # error
32602             #endif
32603             #ifndef ASYNC_PPS_CD_NEG
32604             # error
32605             #endif
32606             #ifndef CIOGETEV
32607             # error
32608             #endif
32609
32610 _ACEOF
32611 if ac_fn_c_try_cpp "$LINENO"; then :
32612   ntp_ok=yes
32613 else
32614   ntp_ok=no
32615
32616 fi
32617 rm -f conftest.err conftest.i conftest.$ac_ext
32618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32619 $as_echo "$ntp_ok" >&6; }
32620     ;;
32621   *)
32622     ntp_ok=no
32623     ;;
32624 esac
32625 case "$ntp_ok" in
32626  yes)
32627
32628 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
32629
32630 esac
32631
32632 # Check for SHMEM_STATUS support
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
32634 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
32635 case "$ac_cv_header_sys_mman_h" in
32636  yes)
32637     ntp_ok=yes
32638     ;;
32639  *)
32640     ntp_ok=no
32641     ;;
32642 esac
32643 case "$ntp_ok" in
32644  yes)
32645
32646 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
32647
32648 esac
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32650 $as_echo "$ntp_ok" >&6; }
32651
32652 ntp_refclock=no
32653
32654 # HPUX only, and by explicit request
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
32656 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
32657 # Check whether --enable-BANCOMM was given.
32658 if test "${enable_BANCOMM+set}" = set; then :
32659   enableval=$enable_BANCOMM; ntp_ok=$enableval
32660 else
32661   ntp_ok=no
32662
32663 fi
32664
32665 case "$ntp_ok" in
32666  yes)
32667     ntp_refclock=yes
32668
32669 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
32670
32671     ;;
32672 esac
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32674 $as_echo "$ntp_ok" >&6; }
32675 case "$ntp_ok$host" in
32676  yes*-*-hpux*) ;;
32677  yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32678 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32679 esac
32680
32681 #HPUX only, and only by explicit request
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
32683 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
32684 # Check whether --enable-GPSVME was given.
32685 if test "${enable_GPSVME+set}" = set; then :
32686   enableval=$enable_GPSVME; ntp_ok=$enableval
32687 else
32688   ntp_ok=no
32689
32690 fi
32691
32692 case "$ntp_ok" in
32693  yes)
32694     ntp_refclock=yes
32695
32696 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
32697
32698     ;;
32699 esac
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32701 $as_echo "$ntp_ok" >&6; }
32702 case "$ntp_ok$host" in
32703  yes*-*-hpux*) ;;
32704  yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
32705 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
32706 esac
32707
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
32709 $as_echo_n "checking for PCL720 clock support... " >&6; }
32710 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
32711  yesyesyes)
32712
32713 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
32714
32715     ans=yes
32716     ;;
32717  *)
32718     ans=no
32719     ;;
32720 esac
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32722 $as_echo "$ans" >&6; }
32723
32724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
32725 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
32726 # Check whether --enable-all-clocks was given.
32727 if test "${enable_all_clocks+set}" = set; then :
32728   enableval=$enable_all_clocks; ntp_eac=$enableval
32729 else
32730   ntp_eac=yes
32731
32732 fi
32733
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
32735 $as_echo "$ntp_eac" >&6; }
32736
32737 # HMS: Should we also require ntp_parse_ok?
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
32739 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
32740 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
32741  yes*yes*)
32742     ntp_canparse=yes
32743     ;;
32744  *) ntp_canparse=no
32745     ;;
32746 esac
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
32748 $as_echo "$ntp_canparse" >&6; }
32749
32750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
32751 $as_echo_n "checking if we have support for audio clocks... " >&6; }
32752 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
32753  *yes*)
32754     ntp_canaudio=yes
32755
32756 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
32757
32758     ;;
32759  *) ntp_canaudio=no ;;
32760 esac
32761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
32762 $as_echo "$ntp_canaudio" >&6; }
32763
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
32765 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
32766 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
32767  yesyes)
32768     ntp_canshm=yes
32769     ;;
32770  *) ntp_canshm=no ;;
32771 esac
32772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
32773 $as_echo "$ntp_canshm" >&6; }
32774
32775 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
32777 $as_echo_n "checking for termios modem control... " >&6; }
32778 if ${ntp_cv_modem_control+:} false; then :
32779   $as_echo_n "(cached) " >&6
32780 else
32781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32782 /* end confdefs.h.  */
32783
32784                 #ifdef HAVE_UNISTD_H
32785                 # include <unistd.h>
32786                 #endif
32787                 #ifdef HAVE_TERMIOS_H
32788                 # include <termios.h>
32789                 #endif
32790                 #ifdef HAVE_SYS_IOCTL_H
32791                 # include <sys/ioctl.h>
32792                 #endif
32793
32794 int
32795 main ()
32796 {
32797
32798                 int     dtr = TIOCM_DTR;
32799
32800                 ioctl(1, TIOCMBIS, (char *)&dtr);
32801
32802
32803   ;
32804   return 0;
32805 }
32806 _ACEOF
32807 if ac_fn_c_try_compile "$LINENO"; then :
32808   ntp_cv_modem_control=yes
32809 else
32810   ntp_cv_modem_control=no
32811
32812 fi
32813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814
32815 fi
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
32817 $as_echo "$ntp_cv_modem_control" >&6; }
32818 case "$ntp_eac::$ntp_cv_modem_control" in
32819  yes::yes)
32820     ntp_enable_all_modem_control_clocks=yes
32821     ;;
32822  *)
32823     ntp_enable_all_modem_control_clocks=no
32824     ;;
32825 esac
32826
32827 # Requires modem control
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
32829 $as_echo_n "checking ACTS modem service... " >&6; }
32830 # Check whether --enable-ACTS was given.
32831 if test "${enable_ACTS+set}" = set; then :
32832   enableval=$enable_ACTS; ntp_ok=$enableval
32833 else
32834   ntp_ok=$ntp_enable_all_modem_control_clocks
32835
32836 fi
32837
32838 case "$ntp_ok" in
32839  yes)
32840     ntp_refclock=yes
32841
32842 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
32843
32844     ;;
32845 esac
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32847 $as_echo "$ntp_ok" >&6; }
32848
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
32850 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
32851 # Check whether --enable-ARBITER was given.
32852 if test "${enable_ARBITER+set}" = set; then :
32853   enableval=$enable_ARBITER; ntp_ok=$enableval
32854 else
32855   ntp_ok=$ntp_eac
32856
32857 fi
32858
32859 case "$ntp_ok" in
32860  yes)
32861     ntp_refclock=yes
32862
32863 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
32864
32865     ;;
32866 esac
32867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32868 $as_echo "$ntp_ok" >&6; }
32869
32870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
32871 $as_echo_n "checking Arcron MSF receiver... " >&6; }
32872 # Check whether --enable-ARCRON_MSF was given.
32873 if test "${enable_ARCRON_MSF+set}" = set; then :
32874   enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
32875 else
32876   ntp_ok=$ntp_eac
32877
32878 fi
32879
32880 case "$ntp_ok" in
32881  yes)
32882     ntp_refclock=yes
32883
32884 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
32885
32886     ;;
32887 esac
32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32889 $as_echo "$ntp_ok" >&6; }
32890
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
32892 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
32893 # Check whether --enable-AS2201 was given.
32894 if test "${enable_AS2201+set}" = set; then :
32895   enableval=$enable_AS2201; ntp_ok=$enableval
32896 else
32897   ntp_ok=$ntp_eac
32898
32899 fi
32900
32901 case "$ntp_ok" in
32902  yes)
32903     ntp_refclock=yes
32904
32905 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
32906
32907     ;;
32908 esac
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32910 $as_echo "$ntp_ok" >&6; }
32911
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
32913 $as_echo_n "checking ATOM PPS interface... " >&6; }
32914 # Check whether --enable-ATOM was given.
32915 if test "${enable_ATOM+set}" = set; then :
32916   enableval=$enable_ATOM; ntp_ok=$enableval
32917 else
32918   ntp_ok=$ntp_eac
32919
32920 fi
32921
32922 case "$ntp_atom_ok" in
32923  no) ntp_ok=no ;;
32924 esac
32925 case "$ntp_ok" in
32926  yes)
32927     ntp_refclock=yes
32928
32929 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
32930
32931     ;;
32932 esac
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32934 $as_echo "$ntp_ok" >&6; }
32935
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
32937 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
32938 # Check whether --enable-CHRONOLOG was given.
32939 if test "${enable_CHRONOLOG+set}" = set; then :
32940   enableval=$enable_CHRONOLOG; ntp_ok=$enableval
32941 else
32942   ntp_ok=$ntp_eac
32943
32944 fi
32945
32946 case "$ntp_ok" in
32947  yes)
32948     ntp_refclock=yes
32949
32950 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
32951
32952     ;;
32953 esac
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32955 $as_echo "$ntp_ok" >&6; }
32956
32957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
32958 $as_echo_n "checking CHU modem/decoder... " >&6; }
32959 # Check whether --enable-CHU was given.
32960 if test "${enable_CHU+set}" = set; then :
32961   enableval=$enable_CHU; ntp_ok=$enableval
32962 else
32963   ntp_ok=$ntp_eac
32964
32965 fi
32966
32967 case "$ntp_ok" in
32968  yes)
32969     ntp_refclock=yes
32970
32971 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
32972
32973     ;;
32974 esac
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32976 $as_echo "$ntp_ok" >&6; }
32977 ntp_refclock_chu=$ntp_ok
32978
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
32980 $as_echo_n "checking CHU audio/decoder... " >&6; }
32981 # Check whether --enable-AUDIO-CHU was given.
32982 if test "${enable_AUDIO_CHU+set}" = set; then :
32983   enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
32984 else
32985
32986         case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
32987          *no*)  ntp_ok=no  ;;
32988          *)     ntp_ok=yes ;;
32989         esac
32990
32991
32992 fi
32993
32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
32995 $as_echo "$ntp_ok" >&6; }
32996 # We used to check for sunos/solaris target...
32997 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
32998  yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
32999 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
33000 esac
33001
33002 # Not under HP-UX
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
33004 $as_echo_n "checking Datum Programmable Time System... " >&6; }
33005 # Check whether --enable-DATUM was given.
33006 if test "${enable_DATUM+set}" = set; then :
33007   enableval=$enable_DATUM; ntp_ok=$enableval
33008 else
33009
33010         case "$ac_cv_header_termios_h" in
33011          yes)
33012             ntp_ok=$ntp_eac
33013             ;;
33014          *) ntp_ok=no
33015             ;;
33016         esac
33017
33018
33019 fi
33020
33021 case "$ntp_ok" in
33022  yes)
33023     ntp_refclock=yes
33024
33025 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
33026
33027     ;;
33028 esac
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33030 $as_echo "$ntp_ok" >&6; }
33031
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
33033 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
33034 # Check whether --enable-DUMBCLOCK was given.
33035 if test "${enable_DUMBCLOCK+set}" = set; then :
33036   enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
33037 else
33038   ntp_ok=$ntp_eac
33039
33040 fi
33041
33042 case "$ntp_ok" in
33043  yes)
33044     ntp_refclock=yes
33045
33046 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
33047
33048     ;;
33049 esac
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33051 $as_echo "$ntp_ok" >&6; }
33052
33053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
33054 $as_echo_n "checking Forum Graphic GPS... " >&6; }
33055 # Check whether --enable-FG was given.
33056 if test "${enable_FG+set}" = set; then :
33057   enableval=$enable_FG; ntp_ok=$enableval
33058 else
33059   ntp_ok=$ntp_eac
33060
33061 fi
33062
33063 case "$ntp_ok" in
33064  yes)
33065     ntp_refclock=yes
33066
33067 $as_echo "#define CLOCK_FG 1" >>confdefs.h
33068
33069     ;;
33070 esac
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33072 $as_echo "$ntp_ok" >&6; }
33073
33074 # Requires modem control
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
33076 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
33077 # Check whether --enable-HEATH was given.
33078 if test "${enable_HEATH+set}" = set; then :
33079   enableval=$enable_HEATH; ntp_ok=$enableval
33080 else
33081   ntp_ok=$ntp_enable_all_modem_control_clocks
33082
33083 fi
33084
33085 case "$ntp_ok" in
33086  yes)
33087     ntp_refclock=yes
33088
33089 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
33090
33091     ;;
33092 esac
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33094 $as_echo "$ntp_ok" >&6; }
33095
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
33097 $as_echo_n "checking for hopf serial clock device... " >&6; }
33098 # Check whether --enable-HOPFSERIAL was given.
33099 if test "${enable_HOPFSERIAL+set}" = set; then :
33100   enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
33101 else
33102   ntp_ok=$ntp_eac
33103
33104 fi
33105
33106 case "$ntp_ok" in
33107  yes)
33108     ntp_refclock=yes
33109
33110 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
33111
33112     ;;
33113 esac
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33115 $as_echo "$ntp_ok" >&6; }
33116
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
33118 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
33119 # Check whether --enable-HOPFPCI was given.
33120 if test "${enable_HOPFPCI+set}" = set; then :
33121   enableval=$enable_HOPFPCI; ntp_ok=$enableval
33122 else
33123   ntp_ok=$ntp_eac
33124
33125 fi
33126
33127 case "$ntp_ok" in
33128  yes)
33129     ntp_refclock=yes
33130
33131 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
33132
33133     ;;
33134 esac
33135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33136 $as_echo "$ntp_ok" >&6; }
33137
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
33139 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
33140 # Check whether --enable-HPGPS was given.
33141 if test "${enable_HPGPS+set}" = set; then :
33142   enableval=$enable_HPGPS; ntp_ok=$enableval
33143 else
33144   ntp_ok=$ntp_eac
33145
33146 fi
33147
33148 case "$ntp_ok" in
33149  yes)
33150     ntp_refclock=yes
33151
33152 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
33153
33154     ;;
33155 esac
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33157 $as_echo "$ntp_ok" >&6; }
33158
33159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
33160 $as_echo_n "checking IRIG audio decoder... " >&6; }
33161 # Check whether --enable-IRIG was given.
33162 if test "${enable_IRIG+set}" = set; then :
33163   enableval=$enable_IRIG; ntp_ok=$enableval
33164 else
33165
33166         case "$ntp_eac$ntp_canaudio" in
33167          *no*)  ntp_ok=no  ;;
33168          *)     ntp_ok=yes ;;
33169         esac
33170
33171
33172 fi
33173
33174 case "$ntp_ok" in
33175  yes)
33176     ntp_refclock=yes
33177
33178 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
33179
33180     ;;
33181 esac
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33183 $as_echo "$ntp_ok" >&6; }
33184 case "$ntp_ok$ntp_canaudio" in
33185  yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33186 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33187 esac
33188
33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
33190 $as_echo_n "checking for JJY receiver... " >&6; }
33191 # Check whether --enable-JJY was given.
33192 if test "${enable_JJY+set}" = set; then :
33193   enableval=$enable_JJY; ntp_ok=$enableval
33194 else
33195   ntp_ok=$ntp_eac
33196
33197 fi
33198
33199 case "$ntp_ok" in
33200  yes)
33201     ntp_refclock=yes
33202
33203 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
33204
33205     ;;
33206 esac
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33208 $as_echo "$ntp_ok" >&6; }
33209
33210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
33211 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
33212 # Check whether --enable-JUPITER was given.
33213 if test "${enable_JUPITER+set}" = set; then :
33214   enableval=$enable_JUPITER; ntp_ok=$enableval
33215 else
33216   ntp_ok=$ntp_eac
33217 fi
33218
33219 case "$ntp_jupiter_ok" in
33220  no) ntp_ok=no ;;
33221 esac
33222 case "$ntp_ok" in
33223  yes)
33224     ntp_refclock=yes
33225
33226 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
33227
33228     ;;
33229 esac
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33231 $as_echo "$ntp_ok" >&6; }
33232
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
33234 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
33235 # Check whether --enable-LEITCH was given.
33236 if test "${enable_LEITCH+set}" = set; then :
33237   enableval=$enable_LEITCH; ntp_ok=$enableval
33238 else
33239   ntp_ok=$ntp_eac
33240
33241 fi
33242
33243 case "$ntp_ok" in
33244  yes)
33245     ntp_refclock=yes
33246
33247 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
33248
33249     ;;
33250 esac
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33252 $as_echo "$ntp_ok" >&6; }
33253
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
33255 $as_echo_n "checking local clock reference... " >&6; }
33256 # Check whether --enable-LOCAL-CLOCK was given.
33257 if test "${enable_LOCAL_CLOCK+set}" = set; then :
33258   enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
33259 else
33260   ntp_ok=$ntp_eac
33261
33262 fi
33263
33264 case "$ntp_ok" in
33265  yes)
33266     ntp_refclock=yes
33267
33268 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
33269
33270     ;;
33271 esac
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33273 $as_echo "$ntp_ok" >&6; }
33274
33275
33276 # Not Ultrix
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
33278 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
33279 # Check whether --enable-MX4200 was given.
33280 if test "${enable_MX4200+set}" = set; then :
33281   enableval=$enable_MX4200; ntp_ok=$enableval
33282 else
33283
33284         case "$ac_cv_var_ppsclock" in
33285          yes)
33286             ntp_ok=$ntp_eac
33287             ;;
33288          *)
33289             ntp_ok=no
33290             ;;
33291         esac
33292
33293
33294 fi
33295
33296 case "$ntp_ok" in
33297  yes)
33298     ntp_refclock=yes
33299
33300 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
33301
33302     ;;
33303 esac
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33305 $as_echo "$ntp_ok" >&6; }
33306 case "$ntp_ok$host" in
33307  yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33308 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33309 esac
33310
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
33312 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
33313 # Check whether --enable-NEOCLOCK4X was given.
33314 if test "${enable_NEOCLOCK4X+set}" = set; then :
33315   enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
33316 else
33317   ntp_ok=$ntp_eac
33318
33319 fi
33320
33321 case "$ntp_ok" in
33322  yes)
33323     ntp_refclock=yes
33324
33325 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
33326
33327     ;;
33328 esac
33329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33330 $as_echo "$ntp_ok" >&6; }
33331
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
33333 $as_echo_n "checking NMEA GPS receiver... " >&6; }
33334 # Check whether --enable-NMEA was given.
33335 if test "${enable_NMEA+set}" = set; then :
33336   enableval=$enable_NMEA; ntp_ok=$enableval
33337 else
33338   ntp_ok=$ntp_eac
33339
33340 fi
33341
33342 case "$ntp_ok" in
33343  yes)
33344     ntp_refclock=yes
33345
33346 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
33347
33348     ;;
33349 esac
33350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33351 $as_echo "$ntp_ok" >&6; }
33352
33353 for ac_func in strtoll
33354 do :
33355   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
33356 if test "x$ac_cv_func_strtoll" = xyes; then :
33357   cat >>confdefs.h <<_ACEOF
33358 #define HAVE_STRTOLL 1
33359 _ACEOF
33360
33361 fi
33362 done
33363
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
33365 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
33366 # Check whether --enable-GPSD was given.
33367 if test "${enable_GPSD+set}" = set; then :
33368   enableval=$enable_GPSD; ntp_ok=$enableval
33369 else
33370   case "$ac_cv_func_strtoll" in
33371      yes) ntp_ok=$ntp_eac ;;
33372      *)   ntp_ok="no" ;;
33373     esac
33374
33375 fi
33376
33377 case "$ntp_ok" in
33378  yes)
33379     ntp_refclock=yes
33380
33381 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
33382
33383     ;;
33384 esac
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33386 $as_echo "$ntp_ok" >&6; }
33387
33388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
33389 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
33390 # Check whether --enable-ONCORE was given.
33391 if test "${enable_ONCORE+set}" = set; then :
33392   enableval=$enable_ONCORE; ntp_ok=$enableval
33393 else
33394   ntp_ok=$ntp_eac
33395
33396 fi
33397
33398 case "$ntp_oncore_ok" in
33399  no) ntp_ok=no ;;
33400 esac
33401 case "$ntp_ok" in
33402  yes)
33403     ntp_refclock=yes
33404
33405 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
33406
33407     ;;
33408 esac
33409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33410 $as_echo "$ntp_ok" >&6; }
33411
33412 # Requires modem control
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
33414 $as_echo_n "checking for Palisade clock... " >&6; }
33415 # Check whether --enable-PALISADE was given.
33416 if test "${enable_PALISADE+set}" = set; then :
33417   enableval=$enable_PALISADE; ntp_ok=$enableval
33418 else
33419   ntp_ok=$ntp_enable_all_modem_control_clocks
33420
33421 fi
33422
33423 case "$ntp_ok" in
33424  yes)
33425     ntp_refclock=yes
33426
33427 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
33428
33429     ;;
33430 esac
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33432 $as_echo "$ntp_ok" >&6; }
33433
33434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
33435 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
33436 # Check whether --enable-PCF was given.
33437 if test "${enable_PCF+set}" = set; then :
33438   enableval=$enable_PCF; ntp_ok=$enableval
33439 else
33440   ntp_ok=$ntp_eac
33441
33442 fi
33443
33444 case "$ntp_ok" in
33445  yes)
33446     ntp_refclock=yes
33447
33448 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
33449
33450     ;;
33451 esac
33452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33453 $as_echo "$ntp_ok" >&6; }
33454
33455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
33456 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
33457 # Check whether --enable-PST was given.
33458 if test "${enable_PST+set}" = set; then :
33459   enableval=$enable_PST; ntp_ok=$enableval
33460 else
33461   ntp_ok=$ntp_eac
33462
33463 fi
33464
33465 case "$ntp_ok" in
33466  yes)
33467     ntp_refclock=yes
33468
33469 $as_echo "#define CLOCK_PST 1" >>confdefs.h
33470
33471     ;;
33472 esac
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33474 $as_echo "$ntp_ok" >&6; }
33475
33476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
33477 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
33478 # Check whether --enable-RIPENCC was given.
33479 if test "${enable_RIPENCC+set}" = set; then :
33480   enableval=$enable_RIPENCC; ntp_ok=$enableval
33481 else
33482   ntp_ok=no
33483
33484 fi
33485
33486 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
33487 case "$ntp_ripe_ncc_ok" in
33488  no) ntp_ok=no ;;
33489 esac
33490 case "$ntp_ok" in
33491  yes)
33492     ntp_refclock=yes
33493
33494 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
33495
33496     ;;
33497 esac
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33499 $as_echo "$ntp_ok" >&6; }
33500
33501 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
33502 # For *IX, we need sys/ipc.h and sys/shm.h.
33503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
33504 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
33505 # Check whether --enable-SHM was given.
33506 if test "${enable_SHM+set}" = set; then :
33507   enableval=$enable_SHM; ntp_ok=$enableval
33508 else
33509
33510         case "$ntp_eac$ntp_canshm" in
33511          *no*)  ntp_ok=no  ;;
33512          *)     ntp_ok=yes ;;
33513         esac
33514
33515
33516 fi
33517
33518 case "$ntp_ok" in
33519  yes)
33520     ntp_refclock=yes
33521
33522 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
33523
33524     ;;
33525 esac
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 8170/Netclock/2 WWVB receiver" >&5
33530 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
33531 # Check whether --enable-SPECTRACOM was given.
33532 if test "${enable_SPECTRACOM+set}" = set; then :
33533   enableval=$enable_SPECTRACOM; ntp_ok=$enableval
33534 else
33535   ntp_ok=$ntp_eac
33536
33537 fi
33538
33539 case "$ntp_ok" in
33540  yes)
33541     ntp_refclock=yes
33542
33543 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
33544
33545     ;;
33546 esac
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33548 $as_echo "$ntp_ok" >&6; }
33549
33550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
33551 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
33552 # Check whether --enable-TPRO was given.
33553 if test "${enable_TPRO+set}" = set; then :
33554   enableval=$enable_TPRO; ntp_ok=$enableval
33555 else
33556
33557         case "$ac_cv_header_sys_tpro_h" in
33558          yes)
33559             ntp_ok=$ntp_eac
33560             ;;
33561          *)
33562             ntp_ok=no
33563             ;;
33564         esac
33565
33566
33567 fi
33568
33569 case "$ntp_ok" in
33570  yes)
33571     ntp_refclock=yes
33572
33573 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
33574
33575     ;;
33576 esac
33577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33578 $as_echo "$ntp_ok" >&6; }
33579 case "$ntp_ok$ac_cv_header_sys_tpro" in
33580  yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33581 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33582 esac
33583
33584 # Not on a vax-dec-bsd
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
33586 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
33587 # Check whether --enable-TRUETIME was given.
33588 if test "${enable_TRUETIME+set}" = set; then :
33589   enableval=$enable_TRUETIME; ntp_ok=$enableval
33590 else
33591
33592         case "$host" in
33593          vax-dec-bsd)
33594             ntp_ok=no
33595             ;;
33596          *)
33597             ntp_ok=$ntp_eac
33598             ;;
33599         esac
33600
33601
33602 fi
33603
33604 case "$ntp_ok" in
33605  yes)
33606     ntp_refclock=yes
33607
33608 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
33609
33610     ;;
33611 esac
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33613 $as_echo "$ntp_ok" >&6; }
33614 case "$ntp_ok$host" in
33615  yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33616 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33617 esac
33618
33619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
33620 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
33621 # Check whether --enable-TT560 was given.
33622 if test "${enable_TT560+set}" = set; then :
33623   enableval=$enable_TT560; ntp_ok=$enableval
33624 else
33625   ntp_ok=no
33626
33627 fi
33628
33629 case "$ntp_ok" in
33630  yes)
33631     ntp_refclock=yes
33632
33633 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
33634
33635     ;;
33636 esac
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33638 $as_echo "$ntp_ok" >&6; }
33639
33640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
33641 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
33642 # Check whether --enable-ULINK was given.
33643 if test "${enable_ULINK+set}" = set; then :
33644   enableval=$enable_ULINK; ntp_ok=$enableval
33645 else
33646   ntp_ok=$ntp_eac
33647
33648 fi
33649
33650 case "$ntp_ok" in
33651  yes)
33652     ntp_refclock=yes
33653
33654 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
33655
33656     ;;
33657 esac
33658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33659 $as_echo "$ntp_ok" >&6; }
33660
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
33662 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
33663 # Check whether --enable-TSYNCPCI was given.
33664 if test "${enable_TSYNCPCI+set}" = set; then :
33665   enableval=$enable_TSYNCPCI; ntp_ok=$enableval
33666 else
33667
33668         case "$host" in
33669          *-*-*linux*)
33670             ntp_ok=$ntp_eac
33671             ;;
33672          *)
33673             ntp_ok=no
33674         esac
33675
33676
33677 fi
33678
33679 case "$ntp_ok" in
33680  yes)
33681     ntp_refclock=yes
33682
33683 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
33684
33685     ;;
33686 esac
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33688 $as_echo "$ntp_ok" >&6; }
33689
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
33691 $as_echo_n "checking WWV receiver... " >&6; }
33692 # Check whether --enable-WWV was given.
33693 if test "${enable_WWV+set}" = set; then :
33694   enableval=$enable_WWV; ntp_ok=$enableval
33695 else
33696
33697         case "$ntp_eac$ntp_canaudio" in
33698          *no*)  ntp_ok=no  ;;
33699          *)     ntp_ok=yes ;;
33700         esac
33701
33702
33703 fi
33704
33705 case "$ntp_ok" in
33706  yes)
33707     ntp_refclock=yes
33708
33709 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
33710
33711     ;;
33712 esac
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33714 $as_echo "$ntp_ok" >&6; }
33715 case "$ntp_ok$ntp_canaudio" in
33716  yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
33717 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
33718 esac
33719
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
33721 $as_echo_n "checking for Zyfer receiver... " >&6; }
33722 # Check whether --enable-ZYFER was given.
33723 if test "${enable_ZYFER+set}" = set; then :
33724   enableval=$enable_ZYFER; ntp_ok=$enableval
33725 else
33726   ntp_ok=$ntp_eac
33727
33728 fi
33729
33730 case "$ntp_ok" in
33731  yes)
33732     ntp_refclock=yes
33733
33734 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
33735
33736     ;;
33737 esac
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33739 $as_echo "$ntp_ok" >&6; }
33740
33741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
33742 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
33743 # Check whether --enable-parse-clocks was given.
33744 if test "${enable_parse_clocks+set}" = set; then :
33745   enableval=$enable_parse_clocks; ntp_eapc=$enableval
33746 else
33747
33748         case "$ntp_eac" in
33749          yes)   ntp_eapc=$ntp_canparse ;;
33750          *)     ntp_eapc=no ;;
33751         esac
33752         # Delete the next line one of these days
33753         ntp_eapc=no
33754
33755
33756 fi
33757
33758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
33759 $as_echo "$ntp_eapc" >&6; }
33760
33761 case "$ntp_eac$ntp_eapc$ntp_canparse" in
33762  noyes*)
33763     as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
33764     ;;
33765  yesyesno)
33766     as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
33767     ;;
33768 esac
33769
33770 ntp_libparse=no
33771 ntp_parseutil=no
33772 ntp_rawdcf=no
33773
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
33775 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
33776 # Check whether --enable-COMPUTIME was given.
33777 if test "${enable_COMPUTIME+set}" = set; then :
33778   enableval=$enable_COMPUTIME; ntp_ok=$enableval
33779 else
33780   ntp_ok=$ntp_eapc
33781
33782 fi
33783
33784 case "$ntp_ok" in
33785  yes)
33786     ntp_libparse=yes
33787     ntp_refclock=yes
33788
33789 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
33790
33791     ;;
33792 esac
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33794 $as_echo "$ntp_ok" >&6; }
33795 case "$ntp_ok$ntp_canparse" in
33796  yesno)
33797     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33798 esac
33799
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
33801 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
33802 # Check whether --enable-DCF7000 was given.
33803 if test "${enable_DCF7000+set}" = set; then :
33804   enableval=$enable_DCF7000; ntp_ok=$enableval
33805 else
33806   ntp_ok=$ntp_eapc
33807
33808 fi
33809
33810 case "$ntp_ok" in
33811  yes)
33812     ntp_libparse=yes
33813     ntp_refclock=yes
33814
33815 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
33816
33817     ;;
33818 esac
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33820 $as_echo "$ntp_ok" >&6; }
33821 case "$ntp_ok$ntp_canparse" in
33822  yesno)
33823     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33824 esac
33825
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
33827 $as_echo_n "checking HOPF 6021 clock... " >&6; }
33828 # Check whether --enable-HOPF6021 was given.
33829 if test "${enable_HOPF6021+set}" = set; then :
33830   enableval=$enable_HOPF6021; ntp_ok=$enableval
33831 else
33832   ntp_ok=$ntp_eapc
33833
33834 fi
33835
33836 case "$ntp_ok" in
33837  yes)
33838     ntp_libparse=yes
33839     ntp_refclock=yes
33840
33841 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
33842
33843     ;;
33844 esac
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33846 $as_echo "$ntp_ok" >&6; }
33847 case "$ntp_ok$ntp_canparse" in
33848  yesno)
33849     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33850 esac
33851
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
33853 $as_echo_n "checking Meinberg clocks... " >&6; }
33854 # Check whether --enable-MEINBERG was given.
33855 if test "${enable_MEINBERG+set}" = set; then :
33856   enableval=$enable_MEINBERG; ntp_ok=$enableval
33857 else
33858   ntp_ok=$ntp_eapc
33859
33860 fi
33861
33862 case "$ntp_ok" in
33863  yes)
33864     ntp_libparse=yes
33865     ntp_refclock=yes
33866
33867 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
33868
33869     ;;
33870 esac
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33872 $as_echo "$ntp_ok" >&6; }
33873 case "$ntp_ok$ntp_canparse" in
33874  yesno)
33875     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33876 esac
33877
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
33879 $as_echo_n "checking DCF77 raw time code... " >&6; }
33880 # Check whether --enable-RAWDCF was given.
33881 if test "${enable_RAWDCF+set}" = set; then :
33882   enableval=$enable_RAWDCF; ntp_ok=$enableval
33883 else
33884   ntp_ok=$ntp_eapc
33885
33886 fi
33887
33888 case "$ntp_ok" in
33889  yes)
33890     ntp_libparse=yes
33891     ntp_parseutil=yes
33892     ntp_refclock=yes
33893     ntp_rawdcf=yes
33894
33895 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
33896
33897     ;;
33898 esac
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33900 $as_echo "$ntp_ok" >&6; }
33901 case "$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
33904 esac
33905
33906 case "$ntp_rawdcf" in
33907  yes)
33908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
33909 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
33910 if ${ntp_cv_rawdcf_parity+:} false; then :
33911   $as_echo_n "(cached) " >&6
33912 else
33913
33914             ans=no
33915             case "$host" in
33916              *-*-*linux*)
33917                 ans=yes
33918                 ;;
33919             esac
33920             ntp_cv_rawdcf_parity=$ans
33921
33922
33923 fi
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
33925 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
33926     case "$ntp_cv_rawdcf_parity" in
33927      yes)
33928
33929 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
33930  ;;
33931     esac
33932 esac
33933
33934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
33935 $as_echo_n "checking RCC 8000 clock... " >&6; }
33936 # Check whether --enable-RCC8000 was given.
33937 if test "${enable_RCC8000+set}" = set; then :
33938   enableval=$enable_RCC8000; ntp_ok=$enableval
33939 else
33940   ntp_ok=$ntp_eapc
33941
33942 fi
33943
33944 case "$ntp_ok" in
33945  yes)
33946     ntp_libparse=yes
33947     ntp_refclock=yes
33948
33949 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
33950
33951     ;;
33952 esac
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33954 $as_echo "$ntp_ok" >&6; }
33955 case "$ntp_ok$ntp_canparse" in
33956  yesno)
33957     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33958 esac
33959
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
33961 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
33962 # Check whether --enable-SCHMID was given.
33963 if test "${enable_SCHMID+set}" = set; then :
33964   enableval=$enable_SCHMID; ntp_ok=$enableval
33965 else
33966   ntp_ok=$ntp_eapc
33967
33968 fi
33969
33970 case "$ntp_ok" in
33971  yes)
33972     ntp_libparse=yes
33973     ntp_refclock=yes
33974
33975 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
33976
33977     ;;
33978 esac
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33980 $as_echo "$ntp_ok" >&6; }
33981 case "$ntp_ok$ntp_canparse" in
33982  yesno)
33983     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
33984 esac
33985
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
33987 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
33988 # Check whether --enable-TRIMTAIP was given.
33989 if test "${enable_TRIMTAIP+set}" = set; then :
33990   enableval=$enable_TRIMTAIP; ntp_ok=$enableval
33991 else
33992   ntp_ok=$ntp_eapc
33993
33994 fi
33995
33996 case "$ntp_ok" in
33997  yes)
33998     ntp_libparse=yes
33999     ntp_refclock=yes
34000
34001 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
34002
34003     ;;
34004 esac
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34006 $as_echo "$ntp_ok" >&6; }
34007 case "$ntp_ok$ntp_canparse" in
34008  yesno)
34009     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34010 esac
34011
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
34013 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
34014 # Check whether --enable-TRIMTSIP was given.
34015 if test "${enable_TRIMTSIP+set}" = set; then :
34016   enableval=$enable_TRIMTSIP; ntp_ok=$enableval
34017 else
34018   ntp_ok=$ntp_eapc
34019
34020 fi
34021
34022 case "$ntp_ok" in
34023  yes)
34024     ntp_libparse=yes
34025     ntp_refclock=yes
34026
34027 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
34028
34029     ;;
34030 esac
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34032 $as_echo "$ntp_ok" >&6; }
34033 case "$ntp_ok$ntp_canparse" in
34034  yesno)
34035     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34036 esac
34037
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
34039 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
34040 # Check whether --enable-WHARTON was given.
34041 if test "${enable_WHARTON+set}" = set; then :
34042   enableval=$enable_WHARTON; ntp_ok=$enableval
34043 else
34044   ntp_ok=$ntp_eapc
34045
34046 fi
34047
34048 case "$ntp_ok" in
34049  yes)
34050     ntp_libparse=yes
34051     ntp_refclock=yes
34052
34053 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
34054
34055     ;;
34056 esac
34057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34058 $as_echo "$ntp_ok" >&6; }
34059 case "$ntp_ok$ntp_canparse" in
34060  yesno)
34061     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34062 esac
34063
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
34065 $as_echo_n "checking VARITEXT clock... " >&6; }
34066 # Check whether --enable-VARITEXT was given.
34067 if test "${enable_VARITEXT+set}" = set; then :
34068   enableval=$enable_VARITEXT; ntp_ok=$enableval
34069 else
34070   ntp_ok=$ntp_eapc
34071
34072 fi
34073
34074 case "$ntp_ok" in
34075  yes)
34076     ntp_libparse=yes
34077     ntp_refclock=yes
34078
34079 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
34080
34081     ;;
34082 esac
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34084 $as_echo "$ntp_ok" >&6; }
34085 case "$ntp_ok$ntp_canparse" in
34086  yesno)
34087     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34088 esac
34089
34090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
34091 $as_echo_n "checking SEL240X clock... " >&6; }
34092 # Check whether --enable-SEL240X was given.
34093 if test "${enable_SEL240X+set}" = set; then :
34094   enableval=$enable_SEL240X; ntp_ok=$enableval
34095 else
34096   ntp_ok=$ntp_eapc
34097 fi
34098
34099 if test "$ntp_ok" = "yes"; then
34100     ntp_libparse=yes
34101     ntp_refclock=yes
34102
34103 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
34104
34105 fi
34106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34107 $as_echo "$ntp_ok" >&6; }
34108 case "$ntp_ok$ntp_canparse" in
34109  yesno)
34110     as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
34111     ;;
34112 esac
34113
34114
34115
34116
34117
34118
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
34120 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
34121 ans=no
34122 case "$ntp_libparse" in
34123  yes)
34124     ans=yes
34125
34126 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
34127
34128     LIBPARSE=../libparse/libparse.a
34129     MAKE_LIBPARSE=libparse.a
34130     # HMS: check_y2k trips the 34 year problem now...
34131     false && MAKE_CHECK_Y2K=check_y2k
34132 esac
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34134 $as_echo "$ans" >&6; }
34135
34136
34137
34138
34139 VER_SUFFIX=
34140
34141
34142
34143
34144 # Check whether --with-crypto was given.
34145 if test "${with_crypto+set}" = set; then :
34146   withval=$with_crypto;
34147 fi
34148
34149
34150 # Check whether --with-openssl-libdir was given.
34151 if test "${with_openssl_libdir+set}" = set; then :
34152   withval=$with_openssl_libdir;
34153 fi
34154
34155
34156 # Check whether --with-openssl-incdir was given.
34157 if test "${with_openssl_incdir+set}" = set; then :
34158   withval=$with_openssl_incdir;
34159 fi
34160
34161
34162 # Check whether --with-rpath was given.
34163 if test "${with_rpath+set}" = set; then :
34164   withval=$with_rpath;
34165 fi
34166
34167 ntp_openssl=no
34168 ntp_openssl_from_pkg_config=no
34169 with_crypto=${with_crypto:-openssl,libcrypto}
34170 case "$with_crypto" in
34171  yes)
34172     with_crypto=openssl,libcrypto
34173 esac
34174 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
34175  no:*) ;;
34176  *:notempty:notgiven:notgiven)
34177     for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
34178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
34179 $as_echo_n "checking pkg-config for $pkg... " >&6; }
34180         if $PKG_CONFIG --exists $pkg ; then
34181             CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
34182             CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
34183             LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
34184             LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
34185             LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
34186             VER_SUFFIX=o
34187             ntp_openssl=yes
34188             ntp_openssl_from_pkg_config=yes
34189             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34190 $as_echo "yes" >&6; }
34191
34192             break
34193         fi
34194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34195 $as_echo "no" >&6; }
34196     done
34197 esac
34198 case "$with_crypto:$ntp_openssl" in
34199  no:*) ;;
34200  *:no)
34201     need_dash_r=
34202     need_dash_Wlrpath=
34203     case "${with_rpath-notgiven}" in
34204      yes)
34205         # Lame - what to do if we need -Wl... but not -R?
34206         need_dash_r=1
34207         ;;
34208      notgiven)
34209         case "$host" in
34210          *-*-linux*)
34211             # This may really only be true for gcc
34212             need_dash_Wlrpath=1
34213             ;;
34214          *-*-netbsd*)
34215             need_dash_r=1
34216             ;;
34217          *-*-solaris*)
34218             need_dash_r=1
34219             ;;
34220         esac
34221         ;;
34222     esac
34223
34224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
34225 $as_echo_n "checking for openssl library directory... " >&6; }
34226     with_openssl_libdir=${with_openssl_libdir-notgiven}
34227     case "$with_openssl_libdir" in
34228      notgiven)
34229         case "$build" in
34230          $host)
34231             with_openssl_libdir=default
34232             ;;
34233          *)
34234             with_openssl_libdir=no
34235             ;;
34236         esac
34237     esac
34238     case "$with_openssl_libdir" in
34239      default)
34240         # Look in:
34241         with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
34242         with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
34243         with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
34244     esac
34245     case "$with_openssl_libdir" in
34246      no)
34247         ;;
34248      *) # Look for libcrypto.a and libssl.a:
34249         for i in $with_openssl_libdir no
34250         do
34251             case "$host" in
34252              *-*-darwin*)
34253                 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
34254                 ;;
34255              *)
34256                 test -f $i/libcrypto.so -a -f $i/libssl.so && break
34257                 test -f $i/libcrypto.a -a -f $i/libssl.a && break
34258                 ;;
34259             esac
34260         done
34261         openssl_libdir=$i
34262         ;;
34263     esac
34264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
34265 $as_echo "$openssl_libdir" >&6; }
34266     case "$openssl_libdir" in
34267      no)
34268         openssl_libdir=
34269         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
34270 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
34271     esac
34272
34273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
34274 $as_echo_n "checking for openssl include directory... " >&6; }
34275     with_openssl_incdir=${with_openssl_incdir-notgiven}
34276     case "$with_openssl_incdir" in
34277      notgiven)
34278         # Look in:
34279         with_openssl_incdir="/usr/include /usr/sfw/include"
34280         with_openssl_incdir="$with_openssl_incdir /usr/local/include"
34281         with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
34282     esac
34283     case "$with_openssl_incdir" in
34284      no)
34285         ;;
34286      *) # look for openssl/evp.h:
34287         for i in $with_openssl_incdir no
34288         do
34289             test -f $i/openssl/evp.h && break
34290         done
34291         openssl_incdir=$i
34292         ;;
34293     esac
34294     { i=; unset i;}
34295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
34296 $as_echo "$openssl_incdir" >&6; }
34297     case "$openssl_incdir" in
34298      no)
34299         openssl_incdir=
34300         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
34301 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
34302     esac
34303     if test -z "$openssl_libdir" -o -z "$openssl_incdir"
34304     then
34305         ntp_openssl=no
34306     else
34307         ntp_openssl=yes
34308         VER_SUFFIX=o
34309     fi
34310     case "$ntp_openssl" in
34311      yes)
34312         # We have OpenSSL inc/lib dirs - use them.
34313         case "$openssl_incdir" in
34314          /usr/include)
34315             ;;
34316          *)
34317             CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
34318             ;;
34319         esac
34320         case "$openssl_libdir" in
34321          /usr/lib)
34322             ;;
34323          *)
34324             LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
34325             case "$need_dash_r" in
34326              1)
34327                 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
34328             esac
34329             case "$need_dash_Wlrpath" in
34330              1)
34331                 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
34332             esac
34333             ;;
34334         esac
34335         LDADD_NTP="$LDADD_NTP -lcrypto"
34336     esac
34337 esac
34338
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
34340 $as_echo_n "checking if we will use crypto... " >&6; }
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
34342 $as_echo "$ntp_openssl" >&6; }
34343
34344 case "$ntp_openssl" in
34345  yes)
34346
34347 $as_echo "#define OPENSSL /**/" >>confdefs.h
34348
34349     case "$VER_SUFFIX" in
34350      *o*) ;;
34351      *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
34352     esac
34353     ;;
34354 esac
34355
34356 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
34357 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
34358 NTPO_SAVED_LIBS="$LIBS"
34359
34360 #
34361 # check for linking with -lcrypto failure, and try -lcrypto -lz.
34362 # Helps m68k-atari-mint
34363 #
34364 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
34365  yes:no)
34366     LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
34368 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
34369 if ${ntp_cv_bare_lcrypto+:} false; then :
34370   $as_echo_n "(cached) " >&6
34371 else
34372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34373 /* end confdefs.h.  */
34374
34375                     #include "openssl/err.h"
34376                     #include "openssl/evp.h"
34377
34378 int
34379 main ()
34380 {
34381
34382                     ERR_load_crypto_strings();
34383                     OpenSSL_add_all_algorithms();
34384
34385
34386   ;
34387   return 0;
34388 }
34389 _ACEOF
34390 if ac_fn_c_try_link "$LINENO"; then :
34391   ntp_cv_bare_lcrypto=yes
34392 else
34393   ntp_cv_bare_lcrypto=no
34394
34395 fi
34396 rm -f core conftest.err conftest.$ac_objext \
34397     conftest$ac_exeext conftest.$ac_ext
34398
34399 fi
34400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
34401 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
34402     case "$ntp_cv_bare_lcrypto" in
34403      no)
34404         LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
34405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
34406 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
34407 if ${ntp_cv_lcrypto_lz+:} false; then :
34408   $as_echo_n "(cached) " >&6
34409 else
34410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34411 /* end confdefs.h.  */
34412
34413                         #include "openssl/err.h"
34414                         #include "openssl/evp.h"
34415
34416 int
34417 main ()
34418 {
34419
34420                         ERR_load_crypto_strings();
34421                         OpenSSL_add_all_algorithms();
34422
34423
34424   ;
34425   return 0;
34426 }
34427 _ACEOF
34428 if ac_fn_c_try_link "$LINENO"; then :
34429   ntp_cv_lcrypto_lz=yes
34430 else
34431   ntp_cv_lcrypto_lz=no
34432
34433 fi
34434 rm -f core conftest.err conftest.$ac_objext \
34435     conftest$ac_exeext conftest.$ac_ext
34436
34437 fi
34438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
34439 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
34440         case "$ntp_cv_lcrypto_lz" in
34441          yes)
34442              LDADD_NTP="$LDADD_NTP -lz"
34443         esac
34444     esac
34445 esac
34446
34447 #
34448 # Older OpenSSL headers have a number of callback prototypes inside
34449 # other function prototypes which trigger copious warnings with gcc's
34450 # -Wstrict-prototypes, which is included in -Wall.
34451 #
34452 # An example:
34453 #
34454 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
34455 #                 int (*cb)(), int sgckey);
34456 #                 ^^^^^^^^^^^
34457 #
34458 #
34459 #
34460 openssl_triggers_warnings=unknown
34461 NTPO_SAVED_CFLAGS="$CFLAGS"
34462
34463 case "$ntp_openssl:$GCC" in
34464  yes:yes)
34465     CFLAGS="$CFLAGS -Werror"
34466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34467 /* end confdefs.h.  */
34468
34469
34470 int
34471 main ()
34472 {
34473
34474                 /* see if -Werror breaks gcc */
34475
34476
34477   ;
34478   return 0;
34479 }
34480 _ACEOF
34481 if ac_fn_c_try_compile "$LINENO"; then :
34482   gcc_handles_Werror=yes
34483 else
34484   gcc_handles_Werror=no
34485
34486 fi
34487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34488     case "$gcc_handles_Werror" in
34489      no)
34490         # if this gcc doesn't do -Werror go ahead and use
34491         # -Wstrict-prototypes.
34492         openssl_triggers_warnings=yes
34493         ;;
34494      yes)
34495         CFLAGS="$CFLAGS -Wstrict-prototypes"
34496         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34497 /* end confdefs.h.  */
34498
34499                     #include "openssl/asn1_mac.h"
34500                     #include "openssl/bn.h"
34501                     #include "openssl/err.h"
34502                     #include "openssl/evp.h"
34503                     #include "openssl/pem.h"
34504                     #include "openssl/rand.h"
34505                     #include "openssl/x509v3.h"
34506
34507 int
34508 main ()
34509 {
34510
34511                     /* empty body */
34512
34513
34514   ;
34515   return 0;
34516 }
34517 _ACEOF
34518 if ac_fn_c_try_compile "$LINENO"; then :
34519   openssl_triggers_warnings=no
34520 else
34521   openssl_triggers_warnings=yes
34522
34523 fi
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525     esac
34526     case "$openssl_triggers_warnings" in
34527      yes)
34528         CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
34529         ;;
34530      *)
34531         CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34532     esac
34533     ;;
34534  no:yes)
34535     # gcc without OpenSSL
34536     CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
34537 esac
34538
34539 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
34540 CFLAGS="$NTPO_SAVED_CFLAGS"
34541
34542 case "$ntp_openssl" in
34543  yes)
34544     LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34545     for ac_func in EVP_MD_do_all_sorted
34546 do :
34547   ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
34548 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
34549   cat >>confdefs.h <<_ACEOF
34550 #define HAVE_EVP_MD_DO_ALL_SORTED 1
34551 _ACEOF
34552
34553 fi
34554 done
34555
34556     ;;
34557 esac
34558
34559 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
34560 LIBS="$NTPO_SAVED_LIBS"
34561 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
34562 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
34563 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
34564 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
34565 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
34566
34567
34568
34569
34570
34571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
34572 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
34573 # Check whether --enable-openssl-random was given.
34574 if test "${enable_openssl_random+set}" = set; then :
34575   enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
34576 else
34577   ntp_use_openssl_random=yes
34578
34579 fi
34580
34581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
34582 $as_echo "$ntp_use_openssl_random" >&6; }
34583
34584 # The following might need extra libraries
34585 NTPO_SAVED_LIBS="$LIBS"
34586 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
34587 for ac_func in RAND_bytes RAND_poll
34588 do :
34589   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
34591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
34592   cat >>confdefs.h <<_ACEOF
34593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34594 _ACEOF
34595
34596 fi
34597 done
34598
34599 LIBS="$NTPO_SAVED_LIBS"
34600 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
34601  yesyesyes)
34602
34603 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
34604
34605      ;;
34606  *) ntp_use_openssl_random=no ;;
34607 esac
34608
34609
34610
34611 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
34613 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
34614 # Check whether --enable-autokey was given.
34615 if test "${enable_autokey+set}" = set; then :
34616   enableval=$enable_autokey; ntp_autokey=$enableval
34617 else
34618   ntp_autokey=$ntp_openssl
34619
34620 fi
34621
34622 case "$ntp_autokey" in
34623  no)
34624     ;;
34625  *)
34626     case "$ntp_openssl" in
34627      no)
34628         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
34629 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
34630         ntp_autokey=no
34631         ;;
34632      *)
34633
34634 $as_echo "#define AUTOKEY 1" >>confdefs.h
34635
34636         ntp_autokey=yes
34637         ;;
34638     esac
34639     ;;
34640 esac
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
34642 $as_echo "$ntp_autokey" >&6; }
34643
34644
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
34646 $as_echo_n "checking if we want to run check-layout... " >&6; }
34647 case "$cross_compiling$PATH_PERL" in
34648  no/*)
34649     MAKE_CHECK_LAYOUT=check-layout
34650     ans=yes
34651     ;;
34652  *)
34653     ans=no
34654     ;;
34655 esac
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34657 $as_echo "$ans" >&6; }
34658
34659
34660
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
34662 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
34663 ans=no
34664 case "$ntp_parseutil" in
34665  yes)
34666     case "$host" in
34667      *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
34668         ans="dcfd testdcf"
34669         DCFD=dcfd
34670         TESTDCF=testdcf
34671     esac
34672     ;;
34673 esac
34674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34675 $as_echo "$ans" >&6; }
34676
34677
34678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
34679 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
34680 ans=no
34681 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
34682  yesyes)
34683     case "$host" in
34684      sparc-*-sunos4*)
34685         case "$ntp_cv_var_kernel_pll" in
34686         yes)
34687
34688 $as_echo "#define PPS_SYNC 1" >>confdefs.h
34689
34690             ;;
34691         esac
34692         ans=parsestreams
34693         MAKE_PARSEKMODULE=parsestreams.loadable_module.o
34694         ;;
34695      sparc-*-solaris2*)
34696         ans=parsesolaris
34697         MAKE_PARSEKMODULE=parse
34698         for ac_header in strings.h
34699 do :
34700   ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
34701 if test "x$ac_cv_header_strings_h" = xyes; then :
34702   cat >>confdefs.h <<_ACEOF
34703 #define HAVE_STRINGS_H 1
34704 _ACEOF
34705
34706 fi
34707
34708 done
34709
34710         ;;
34711     esac
34712     ;;
34713 esac
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34715 $as_echo "$ans" >&6; }
34716
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
34718 $as_echo_n "checking if we need basic refclock support... " >&6; }
34719 case "$ntp_refclock" in
34720  yes)
34721
34722 $as_echo "#define REFCLOCK 1" >>confdefs.h
34723
34724     ;;
34725 esac
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
34727 $as_echo "$ntp_refclock" >&6; }
34728
34729 PROPDELAY=propdelay
34730
34731
34732
34733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
34734 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
34735 case "$host" in
34736  *-*-hpux[56789]*)
34737     ans=yes
34738     ;;
34739  *) ans=no
34740     ;;
34741 esac
34742 case "$ans" in
34743  yes)
34744     MAKE_ADJTIMED=adjtimed
34745
34746 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
34747
34748     ;;
34749  *) ADJTIMED_DB=
34750     ADJTIMED_DL=
34751     ADJTIMED_DS=
34752     ADJTIMED_MS=
34753     ;;
34754 esac
34755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34756 $as_echo "$ans" >&6; }
34757
34758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
34759 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
34760 case "$host" in
34761  *-*-qnx*)
34762     ans=yes
34763     ;;
34764  *) ans=no
34765     ;;
34766 esac
34767 case "$ans" in
34768  yes)
34769
34770 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
34771
34772     ;;
34773 esac
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34775 $as_echo "$ans" >&6; }
34776
34777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
34778 $as_echo_n "checking if we can read kmem... " >&6; }
34779
34780 #  the default is to enable it if the system has the capability
34781
34782 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
34783  *yes*)
34784     ans=yes
34785     ;;
34786  *) ans=no
34787     ;;
34788 esac
34789
34790 case "$host" in
34791  *-*-domainos)  # Won't be found...
34792     ans=no
34793     ;;
34794  *-*-hpux*)
34795     #ans=no
34796     ;;
34797  *-*-irix[456]*)
34798     ans=no
34799     ;;
34800  *-*-*linux*)
34801     ans=no
34802     ;;
34803  *-*-winnt3.5)
34804     ans=no
34805     ;;
34806  *-*-unicosmp*)
34807     ans=no
34808     ;;
34809 esac
34810
34811 # --enable-kmem / --disable-kmem controls if present
34812 # Check whether --enable-kmem was given.
34813 if test "${enable_kmem+set}" = set; then :
34814   enableval=$enable_kmem; ans=$enableval
34815
34816 fi
34817
34818
34819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34820 $as_echo "$ans" >&6; }
34821
34822 case "$ans" in
34823  yes)
34824     can_kmem=yes
34825     ;;
34826  *)
34827     can_kmem=no
34828
34829 $as_echo "#define NOKMEM 1" >>confdefs.h
34830
34831 esac
34832
34833
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
34835 $as_echo_n "checking if adjtime is accurate... " >&6; }
34836
34837 # target-dependent defaults
34838
34839 case "$host" in
34840  i386-sequent-ptx*)
34841     ans=no
34842     ;;
34843  i386-unknown-osf1*)
34844     ans=yes
34845     ;;
34846  mips-sgi-irix[456]*)
34847     ans=yes
34848     ;;
34849  *-fujitsu-uxp*)
34850     ans=yes
34851     ;;
34852  *-ibm-aix[4-9]*)
34853     # XXX only verified thru AIX6.
34854     ans=yes
34855     ;;
34856  *-*-*linux*)
34857     ans=yes
34858     ;;
34859  *-*-solaris2.[01])
34860     ans=no
34861     ;;
34862  *-*-solaris2*)
34863     ans=yes
34864     ;;
34865  *-*-unicosmp*)
34866     ans=yes
34867     ;;
34868  *) ans=no
34869     ;;
34870 esac
34871
34872 # --enable-accurate-adjtime / --disable-accurate-adjtime
34873 # override the default
34874 # Check whether --enable-accurate-adjtime was given.
34875 if test "${enable_accurate_adjtime+set}" = set; then :
34876   enableval=$enable_accurate_adjtime; ans=$enableval
34877
34878 fi
34879
34880
34881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
34882 $as_echo "$ans" >&6; }
34883
34884 case "$ans" in
34885  yes)
34886
34887 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
34888
34889     adjtime_is_accurate=yes
34890     ;;
34891  *)
34892     adjtime_is_accurate=no
34893     ;;
34894 esac
34895
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
34897 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
34898 if ${ntp_cv_nlist_tick+:} false; then :
34899   $as_echo_n "(cached) " >&6
34900 else
34901
34902         ans=_tick
34903         case "$host" in
34904          m68*-hp-hpux*) # HP9000/300?
34905             ans=_old_tick
34906             ;;
34907          *-apple-aux[23]*)
34908             ans=tick
34909             ;;
34910          *-hp-hpux*)
34911             ans=old_tick
34912             ;;
34913          *-ibm-aix[3-9]*)
34914             # XXX only verified thru AIX6.
34915             ans=no
34916             ;;
34917          *-*-mpeix*)
34918             ans=no
34919             ;;
34920          *-*-ptx*)
34921             ans=tick
34922             ;;
34923          *-*-sco3.2v[45]*)
34924             ans=no
34925             ;;
34926          *-*-solaris2*)
34927             ans=nsec_per_tick
34928             ;;
34929          *-*-sysv4*)
34930             ans=tick
34931             ;;
34932         esac
34933         ntp_cv_nlist_tick=$ans
34934
34935
34936 fi
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
34938 $as_echo "$ntp_cv_nlist_tick" >&6; }
34939 case "$ntp_cv_nlist_tick" in
34940  ''|no)
34941     ;;  # HMS: I think we can only get 'no' here...
34942  *)
34943
34944 cat >>confdefs.h <<_ACEOF
34945 #define K_TICK_NAME "$ntp_cv_nlist_tick"
34946 _ACEOF
34947
34948 esac
34949
34950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
34951 $as_echo_n "checking for the units of 'tick'... " >&6; }
34952 if ${ntp_cv_tick_nano+:} false; then :
34953   $as_echo_n "(cached) " >&6
34954 else
34955
34956         ans=usec
34957         case "$host" in
34958          *-*-solaris2*)
34959             ans=nsec
34960             ;;
34961         esac
34962         ntp_cv_tick_nano=$ans
34963
34964
34965 fi
34966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
34967 $as_echo "$ntp_cv_tick_nano" >&6; }
34968 case "$ntp_cv_tick_nano" in
34969  nsec)
34970
34971 $as_echo "#define TICK_NANO 1" >>confdefs.h
34972
34973 esac
34974
34975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
34976 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
34977 if ${ntp_cv_nlist_tickadj+:} false; then :
34978   $as_echo_n "(cached) " >&6
34979 else
34980
34981         ans=_tickadj
34982         case "$host" in
34983          m68*-hp-hpux*) # HP9000/300?
34984             ans=_tickadj
34985             ;;
34986          *-apple-aux[23]*)
34987             ans=tickadj
34988             ;;
34989          *-hp-hpux10*)
34990             ans=no
34991             ;;
34992          *-hp-hpux9*)
34993             ans=no
34994             ;;
34995          *-hp-hpux*)
34996             ans=tickadj
34997             ;;
34998          *-*-aix*)
34999             ans=tickadj
35000             ;;
35001          *-*-mpeix*)
35002             ans=no
35003             ;;
35004          *-*-ptx*)
35005             ans=tickadj
35006             ;;
35007          *-*-sco3.2v4*)
35008             ans=no
35009             ;;
35010          *-*-sco3.2v5.0*)
35011             ans=clock_drift
35012             ;;
35013          *-*-solaris2*)
35014             ans=no      # hrestime_adj
35015             ;;
35016          *-*-sysv4*)
35017             ans=tickadj
35018             ;;
35019         esac
35020         ntp_cv_nlist_tickadj=$ans
35021
35022
35023 fi
35024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
35025 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
35026 case "$ntp_cv_nlist_tickadj" in
35027  ''|no)
35028     ;;  # HMS: I think we can only get 'no' here...
35029  *)
35030
35031 cat >>confdefs.h <<_ACEOF
35032 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
35033 _ACEOF
35034
35035 esac
35036
35037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
35038 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
35039 if ${ntp_cv_tickadj_nano+:} false; then :
35040   $as_echo_n "(cached) " >&6
35041 else
35042
35043         ans=usec
35044         case "$host" in
35045          *-*-solaris2*)
35046             ans=nsec
35047             ;;
35048         esac
35049         ntp_cv_tickadj_nano=$ans
35050
35051
35052 fi
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
35054 $as_echo "$ntp_cv_tickadj_nano" >&6; }
35055 case "$ntp_cv_tickadj_nano" in
35056  nsec)
35057
35058 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
35059
35060 esac
35061
35062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
35063 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
35064 if ${ntp_cv_nlist_dosynctodr+:} false; then :
35065   $as_echo_n "(cached) " >&6
35066 else
35067
35068         case "$host" in
35069          *-apple-aux[23]*)
35070             ans=no
35071             ;;
35072          *-sni-sysv*)
35073             ans=dosynctodr
35074             ;;
35075          *-stratus-vos)
35076             ans=no
35077             ;;
35078          *-*-aix*)
35079             ans=dosynctodr
35080             ;;
35081          *-*-hpux*)
35082             ans=no
35083             ;;
35084          *-*-mpeix*)
35085             ans=no
35086             ;;
35087          *-*-nextstep*)
35088             ans=_dosynctodr
35089             ;;
35090          *-*-ptx*)
35091             ans=doresettodr
35092             ;;
35093          *-*-sco3.2v4*)
35094             ans=no
35095             ;;
35096          *-*-sco3.2v5*)
35097             ans=track_rtc
35098             ;;
35099          *-*-solaris2*)
35100             ans=dosynctodr
35101             ;;
35102          *-*-sysv4*)
35103             ans=doresettodr
35104             ;;
35105          *)
35106             ans=_dosynctodr
35107             ;;
35108         esac
35109         ntp_cv_nlist_dosynctodr=$ans
35110
35111
35112 fi
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
35114 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
35115 case "$ntp_cv_nlist_dosynctodr" in
35116  no)
35117     ;;
35118  *)
35119
35120 cat >>confdefs.h <<_ACEOF
35121 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
35122 _ACEOF
35123
35124     ;;
35125 esac
35126
35127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
35128 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
35129 if ${ntp_cv_nlist_noprintf+:} false; then :
35130   $as_echo_n "(cached) " >&6
35131 else
35132
35133         case "$host" in
35134          *-apple-aux[23]*)
35135             ans=no
35136             ;;
35137          *-sni-sysv*)
35138             ans=noprintf
35139             ;;
35140          *-stratus-vos)
35141             ans=no
35142             ;;
35143          *-*-aix*)
35144             ans=noprintf
35145             ;;
35146          *-*-hpux*)
35147             ans=no
35148             ;;
35149          *-*-mpeix*)
35150             ans=no
35151             ;;
35152          *-*-ptx*)
35153             ans=noprintf
35154             ;;
35155          *-*-nextstep*)
35156             ans=_noprintf
35157             ;;
35158          *-*-solaris2*)
35159             ans=noprintf
35160             ;;
35161          *-*-sysv4*)
35162             ans=noprintf
35163             ;;
35164          *)
35165             ans=_noprintf
35166             ;;
35167         esac
35168         ntp_cv_nlist_noprintf=$ans
35169
35170
35171 fi
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
35173 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
35174 case "$ntp_cv_nlist_noprintf" in
35175  no)
35176     ;;
35177  *)
35178
35179 cat >>confdefs.h <<_ACEOF
35180 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
35181 _ACEOF
35182
35183     ;;
35184 esac
35185
35186
35187
35188
35189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
35190 $as_echo_n "checking for a default value for 'tick'... " >&6; }
35191
35192 # target-dependent default for tick
35193
35194 case "$host" in
35195  *-*-pc-cygwin*)
35196     as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
35197     ;;
35198  *-univel-sysv*)
35199     ans=10000
35200     ;;
35201  *-*-irix*)
35202     ans=10000
35203     ;;
35204  *-*-*linux*)
35205     ans=txc.tick
35206     ;;
35207  *-*-mpeix*)
35208     ans=no
35209     ;;
35210  *-*-winnt3.5)
35211     ans='(every / 10)'
35212     ;;
35213  *-*-unicosmp*)
35214     ans=10000
35215     ;;
35216  *)
35217     ans='1000000L/hz'
35218     ;;
35219 esac
35220
35221 # Check whether --enable-tick was given.
35222 if test "${enable_tick+set}" = set; then :
35223   enableval=$enable_tick; ans=$enableval
35224
35225 fi
35226
35227
35228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35229 $as_echo "$ans" >&6; }
35230
35231 case "$ans" in
35232  ''|no)
35233     ;;  # HMS: I think we can only get 'no' here...
35234  *)
35235
35236 cat >>confdefs.h <<_ACEOF
35237 #define PRESET_TICK $ans
35238 _ACEOF
35239
35240 esac
35241
35242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
35243 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
35244
35245 # target-specific default
35246 ans='500/hz'
35247 case "$host" in
35248  *-fujitsu-uxp*)
35249     case "$adjtime_is_accurate" in
35250      yes)
35251         ans='tick/16'
35252     esac
35253     ;;
35254  *-univel-sysv*)
35255     ans=80
35256     ;;
35257  *-*-aix*)
35258     case "$can_kmem" in
35259      no)
35260         ans=1000
35261         ;;
35262     esac
35263     ;;
35264  *-*-domainos)  # Skippy: won't be found...
35265     case "$can_kmem" in
35266      no)
35267         ans=668
35268         ;;
35269     esac
35270     ;;
35271  *-*-hpux*)
35272     case "$adjtime_is_accurate" in
35273      yes)
35274         ans='tick/16'
35275         ;;
35276     esac
35277     ;;
35278  *-*-irix*)
35279     ans=150
35280     ;;
35281  *-*-mpeix*)
35282     ans=no
35283     ;;
35284  *-*-sco3.2v5.0*)
35285     ans=10000L/hz
35286     ;;
35287  *-*-winnt3.5)
35288     ans=50
35289     ;;
35290  *-*-unicosmp*)
35291     ans=150
35292     ;;
35293 esac
35294
35295 # Check whether --enable-tickadj was given.
35296 if test "${enable_tickadj+set}" = set; then :
35297   enableval=$enable_tickadj; ans=$enableval
35298
35299 fi
35300
35301
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35303 $as_echo "$ans" >&6; }
35304
35305 default_tickadj=$ans
35306
35307 case "$default_tickadj" in
35308  ''|no)
35309     ;;  # HMS: I think we can only get 'no' here...
35310  *)
35311
35312 cat >>confdefs.h <<_ACEOF
35313 #define PRESET_TICKADJ $default_tickadj
35314 _ACEOF
35315  ;;
35316 esac
35317
35318 # Newer versions of ReliantUNIX round adjtime() values down to
35319 # 1/100s (system tick). Sigh ...
35320 # Unfortunately, there is no easy way to know if particular release
35321 # has this "feature" or any obvious way to test for it.
35322 case "$host" in
35323  mips-sni-sysv4*)
35324
35325 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
35326
35327 esac
35328
35329 case "$host" in
35330  *-*-sco3.2v5*)
35331
35332 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
35333
35334 esac
35335
35336 ntp_cv_make_tickadj=yes
35337 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
35338  nonono)        # Don't read KMEM, no presets.  Bogus.
35339     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&5
35340 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ.  No tickadj." >&2;}
35341     ntp_cv_make_tickadj=no
35342     ;;
35343  nono*)         # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35344     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
35345 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
35346     ntp_cv_make_tickadj=no
35347     ;;
35348  no*no)         # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
35349     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
35350 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
35351     ntp_cv_make_tickadj=no
35352     ;;
35353  no*)           # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
35354     ;;
35355  yesnono)       # Read KMEM, no presets.  Cool.
35356     ;;
35357  yesno*)        # Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
35358     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
35359 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
35360     ;;
35361  yes*no)        # Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
35362     ;;
35363  yes*)          # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
35364     ;;
35365  *)             # Generally bogus.
35366     as_fn_error $? "This shouldn't happen." "$LINENO" 5
35367     ;;
35368 esac
35369
35370
35371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
35372 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
35373 if ${ac_cv_make_ntptime+:} false; then :
35374   $as_echo_n "(cached) " >&6
35375 else
35376   case "$host" in
35377  *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
35378      yesyes)
35379         ans=yes
35380         ;;
35381      *)
35382         ans=no
35383         ;;
35384     esac
35385     ;;
35386 esac
35387 ac_cv_make_ntptime=$ans
35388 fi
35389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
35390 $as_echo "$ac_cv_make_ntptime" >&6; }
35391 case "$ac_cv_make_ntptime" in
35392  yes)
35393     MAKE_NTPTIME=ntptime
35394     ;;
35395  *)
35396     NTPTIME_DB=
35397     NTPTIME_DL=
35398     NTPTIME_DS=
35399     NTPTIME_MS=
35400     ;;
35401 esac
35402
35403
35404 case "$host" in
35405  mips-sni-sysv4*)
35406     # tickadj is pretty useless on newer versions of ReliantUNIX
35407     # Do not bother
35408     ntp_cv_make_tickadj=no
35409     ;;
35410  *-*-irix*)
35411     ntp_cv_make_tickadj=no
35412     ;;
35413  *-*-solaris2*)
35414     # DLM says tickadj is a no-no starting with solaris2.5
35415     case "$host" in
35416      *-*-solaris2.1[0-9]*)
35417         ntp_cv_make_tickadj=no
35418         ;;
35419      *-*-solaris2.[0-4]*) ;;
35420      *) ntp_cv_make_tickadj=no ;;
35421     esac
35422     ;;
35423  *-*-unicosmp*)
35424     ntp_cv_make_tickadj=no
35425     ;;
35426 esac
35427
35428 #
35429 # Despite all the above, we always make tickadj.  Setting
35430 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
35431 # report that the configuration variable was cached.  It may
35432 # be better to simply remove the hunk above, I did not want
35433 # to remove it if there is hope it will be used again.
35434 #
35435 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
35436
35437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
35438 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
35439 if ${ntp_cv_make_tickadj+:} false; then :
35440   $as_echo_n "(cached) " >&6
35441 else
35442   ntp_cv_make_tickadj=yes
35443
35444 fi
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
35446 $as_echo "$ntp_cv_make_tickadj" >&6; }
35447 case "$ntp_cv_make_tickadj" in
35448  yes)
35449     MAKE_TICKADJ=tickadj
35450     ;;
35451  *)
35452     CALC_TICKADJ_DB=
35453     CALC_TICKADJ_DL=
35454     CALC_TICKADJ_DS=
35455     CALC_TICKADJ_MS=
35456     TICKADJ_DB=
35457     TICKADJ_DL=
35458     TICKADJ_DS=
35459     TICKADJ_MS=
35460     ;;
35461 esac
35462
35463
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
35465 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
35466 if ${ntp_cv_make_timetrim+:} false; then :
35467   $as_echo_n "(cached) " >&6
35468 else
35469
35470         case "$host" in
35471          *-*-irix*)
35472             ntp_cv_make_timetrim=yes
35473             ;;
35474          *-*-unicosmp*)
35475             ntp_cv_make_timetrim=yes
35476             ;;
35477          *)
35478             ntp_cv_make_timetrim=no
35479             ;;
35480         esac
35481
35482
35483 fi
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
35485 $as_echo "$ntp_cv_make_timetrim" >&6; }
35486 case "$ntp_cv_make_timetrim" in
35487  yes)
35488     MAKE_TIMETRIM=timetrim
35489     ;;
35490  *) TIMETRIM_DB=
35491     TIMETRIM_DL=
35492     TIMETRIM_DS=
35493     TIMETRIM_MS=
35494     ;;
35495 esac
35496
35497
35498
35499
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
35501 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
35502 # Check whether --enable-simulator was given.
35503 if test "${enable_simulator+set}" = set; then :
35504   enableval=$enable_simulator; ans=$enableval
35505 else
35506   ans=no
35507
35508 fi
35509
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35511 $as_echo "$ans" >&6; }
35512 case "$ans" in
35513  yes)
35514     MAKE_NTPDSIM=ntpdsim
35515     MAKE_LIBNTPSIM=libntpsim.a
35516     ;;
35517  *)
35518     NTPDSIM_DB=
35519     NTPDSIM_DL=
35520     NTPDSIM_DS=
35521     NTPDSIM_MS=
35522     ;;
35523 esac
35524
35525 case "$build" in
35526  $host)
35527     ;;
35528  *) case "$host" in
35529      *-*-vxworks*)
35530         LDFLAGS="$LDFLAGS -r"
35531         ;;
35532     esac
35533     ;;
35534 esac
35535
35536
35537
35538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
35539 $as_echo_n "checking if sntp will be built... " >&6; }
35540
35541 # Check whether --with-sntp was given.
35542 if test "${with_sntp+set}" = set; then :
35543   withval=$with_sntp;
35544 else
35545   with_sntp="${withsntp=yes}"
35546
35547 fi
35548
35549 case "$with_sntp" in
35550  no)
35551     SNTP=
35552     ;;
35553  *)
35554     SNTP=sntp
35555     ;;
35556 esac
35557
35558  if test -n "$SNTP"; then
35559   BUILD_SNTP_TRUE=
35560   BUILD_SNTP_FALSE='#'
35561 else
35562   BUILD_SNTP_TRUE='#'
35563   BUILD_SNTP_FALSE=
35564 fi
35565
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
35567 $as_echo "$with_sntp" >&6; }
35568
35569
35570
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
35572 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
35573
35574 # Check whether --with-ntpsnmpd was given.
35575 if test "${with_ntpsnmpd+set}" = set; then :
35576   withval=$with_ntpsnmpd; ans=$withval
35577 else
35578
35579         case "$PATH_NET_SNMP_CONFIG" in
35580          /*)    ans=yes ;;
35581          *)     ans=no  ;;
35582         esac
35583
35584
35585 fi
35586
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35588 $as_echo "$ans" >&6; }
35589 case "$ans" in
35590  yes)
35591     case "$PATH_NET_SNMP_CONFIG" in
35592      /*)
35593         SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
35594         # Bug 2815.  This is a bit of a hack, but it works...
35595         case "$ntp_cv_net_snmp_version" in
35596          5.3*)  SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
35597                 ;;
35598         esac
35599
35600         # HMS: we really want to separate CPPFLAGS and CFLAGS
35601         foo=`$PATH_NET_SNMP_CONFIG --cflags`
35602         SNMP_CPPFLAGS=
35603         SNMP_CFLAGS=
35604         for i in $foo; do
35605             case "$i" in
35606              -D*|-U*|-I*)
35607                 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
35608                 ;;
35609             *)  SNMP_CFLAGS="$SNMP_CFLAGS $i"
35610                 ;;
35611             esac
35612         done
35613
35614
35615
35616         save_CFLAGS=$CFLAGS
35617         save_CPPFLAGS=$CPPFLAGS
35618         save_LIBS=$LIBS
35619         CFLAGS=$SNMP_CFLAGS
35620         CPPFLAGS=$SNMP_CPPFLAGS
35621
35622         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"
35623 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
35624   MAKE_NTPSNMPD=ntpsnmpd
35625 else
35626   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
35627 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
35628
35629 fi
35630
35631
35632
35633         # Do this last, as we're messing up LIBS.
35634         # check -lnetsnmp for netsnmp_daemonize
35635         LIBS=`$PATH_NET_SNMP_CONFIG --libs`
35636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
35637 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
35638 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
35639   $as_echo_n "(cached) " >&6
35640 else
35641   ac_check_lib_save_LIBS=$LIBS
35642 LIBS="-lnetsnmp  $LIBS"
35643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644 /* end confdefs.h.  */
35645
35646 /* Override any GCC internal prototype to avoid an error.
35647    Use char because int might match the return type of a GCC
35648    builtin and then its argument prototype would still apply.  */
35649 #ifdef __cplusplus
35650 extern "C"
35651 #endif
35652 char netsnmp_daemonize ();
35653 int
35654 main ()
35655 {
35656 return netsnmp_daemonize ();
35657   ;
35658   return 0;
35659 }
35660 _ACEOF
35661 if ac_fn_c_try_link "$LINENO"; then :
35662   ac_cv_lib_netsnmp_netsnmp_daemonize=yes
35663 else
35664   ac_cv_lib_netsnmp_netsnmp_daemonize=no
35665 fi
35666 rm -f core conftest.err conftest.$ac_objext \
35667     conftest$ac_exeext conftest.$ac_ext
35668 LIBS=$ac_check_lib_save_LIBS
35669 fi
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
35671 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
35672 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
35673   ans=yes
35674 else
35675   ans=no
35676
35677 fi
35678
35679         case "$ans" in
35680          no)
35681
35682 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
35683
35684         esac
35685
35686         CFLAGS=$save_CFLAGS
35687         { save_CFLAGS=; unset save_CFLAGS;}
35688         CPPFLAGS=$save_CPPFLAGS
35689         { save_CPPFLAGS=; unset save_CPPFLAGS;}
35690         LIBS=$save_LIBS
35691         { save_LIBS=; unset save_LIBS;}
35692         ;;
35693      *)
35694         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
35695 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
35696         ;;
35697     esac
35698     ;;
35699 esac
35700
35701
35702 case "$MAKE_NTPSNMPD" in
35703  '')
35704     NTPSNMPD_DB=
35705     NTPSNMPD_DL=
35706     NTPSNMPD_DS=
35707     NTPSNMPD_MS=
35708     ;;
35709 esac
35710
35711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
35712 $as_echo_n "checking if we should always slew the time... " >&6; }
35713
35714 # target-specific defaults
35715
35716 case "$host" in
35717  *-apple-aux[23]*)
35718     ans=yes
35719     ;;
35720  *-*-bsdi[012]*)
35721     ans=no
35722     ;;
35723  *-*-bsdi*)
35724     ans=yes
35725     ;;
35726  *-*-openvms*)  # HMS: won't be found
35727     ans=yes
35728     ;;
35729  *) ans=no
35730     ;;
35731 esac
35732
35733 # --enable-slew-always / --disable-slew-always overrides default
35734
35735 # Check whether --enable-slew-always was given.
35736 if test "${enable_slew_always+set}" = set; then :
35737   enableval=$enable_slew_always; ans=$enableval
35738
35739 fi
35740
35741
35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35743 $as_echo "$ans" >&6; }
35744
35745 case "$ans" in
35746  yes)
35747
35748 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
35749
35750 esac
35751
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
35753 $as_echo_n "checking if we should step and slew the time... " >&6; }
35754
35755 case "$host" in
35756  *-sni-sysv*)
35757     ans=yes
35758     ;;
35759  *-stratus-vos)
35760     ans=no
35761     ;;
35762  *-univel-sysv*)
35763     ans=no
35764     ;;
35765  *-*-ptx*)
35766     ans=yes
35767     ;;
35768  *-*-solaris2.1[0-9]*)
35769     ans=no
35770     ;;
35771  *-*-solaris2.[012]*)
35772     ans=yes
35773     ;;
35774  *-*-sysv4*)    # HMS: Does this catch Fujitsu UXP?
35775     ans=yes
35776     ;;
35777  *) ans=no
35778     ;;
35779 esac
35780
35781 # Check whether --enable-step-slew was given.
35782 if test "${enable_step_slew+set}" = set; then :
35783   enableval=$enable_step_slew; ans=$enableval
35784
35785 fi
35786
35787
35788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35789 $as_echo "$ans" >&6; }
35790
35791 case "$ans" in
35792  yes)
35793
35794 $as_echo "#define STEP_SLEW 1" >>confdefs.h
35795
35796 esac
35797
35798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
35799 $as_echo_n "checking if ntpdate should step the time... " >&6; }
35800
35801 case "$host" in
35802  *-apple-aux[23]*)
35803     ans=yes
35804     ;;
35805  *) ans=no
35806     ;;
35807 esac
35808
35809 # Check whether --enable-ntpdate-step was given.
35810 if test "${enable_ntpdate_step+set}" = set; then :
35811   enableval=$enable_ntpdate_step; ans=$enableval
35812
35813 fi
35814
35815
35816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35817 $as_echo "$ans" >&6; }
35818
35819 case "$ans" in
35820  yes)
35821
35822 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
35823
35824 esac
35825
35826
35827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
35828 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
35829
35830 case "$host" in
35831  *-*-nextstep*)
35832     ans=yes
35833     ;;
35834  *-*-openvms*)  # HMS: won't be found
35835     ans=yes
35836     ;;
35837  *)
35838     ans=no
35839     ;;
35840 esac
35841
35842 # Check whether --enable-hourly-todr-sync was given.
35843 if test "${enable_hourly_todr_sync+set}" = set; then :
35844   enableval=$enable_hourly_todr_sync; ans=$enableval
35845
35846 fi
35847
35848
35849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35850 $as_echo "$ans" >&6; }
35851
35852 case "$ac_cv_var_sync_todr" in
35853  yes)
35854
35855 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
35856  ;;
35857 esac
35858
35859
35860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
35861 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
35862
35863 case "$host" in
35864  *-*-solaris2.6)
35865     unamev=`uname -v`
35866     case "$unamev" in
35867      Generic_105181-*)
35868         old_IFS="$IFS"
35869         IFS="-"
35870         set $unamev
35871         IFS="$old_IFS"
35872         if test "$2" -ge 17
35873         then
35874             # Generic_105181-17 and higher
35875             ans=no
35876         else
35877             ans=yes
35878         fi
35879         ;;
35880      *)
35881         ans=yes
35882         ;;
35883     esac
35884     ;;
35885  *-*-solaris2.7)
35886     unamev=`uname -v`
35887     case "$unamev" in
35888      Generic_106541-*)
35889         old_IFS="$IFS"
35890         IFS="-"
35891         set $unamev
35892         IFS="$old_IFS"
35893         if test "$2" -ge 07
35894         then
35895             # Generic_106541-07 and higher
35896             ans=no
35897         else
35898             ans=yes
35899         fi
35900         ;;
35901      *)
35902         ans=yes
35903         ;;
35904     esac
35905     ;;
35906  *)
35907     ans=no
35908     ;;
35909 esac
35910
35911 # Check whether --enable-kernel-fll-bug was given.
35912 if test "${enable_kernel_fll_bug+set}" = set; then :
35913   enableval=$enable_kernel_fll_bug; ans=$enableval
35914
35915 fi
35916
35917
35918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35919 $as_echo "$ans" >&6; }
35920
35921 case "$ans" in
35922  yes)
35923
35924 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
35925
35926 esac
35927
35928
35929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
35930 $as_echo_n "checking if we want new session key behavior... " >&6; }
35931 # Check whether --enable-bug1243-fix was given.
35932 if test "${enable_bug1243_fix+set}" = set; then :
35933   enableval=$enable_bug1243_fix; ans=$enableval
35934 else
35935   ans=yes
35936
35937 fi
35938
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35940 $as_echo "$ans" >&6; }
35941 case "$ans" in
35942  no)
35943
35944 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
35945
35946 esac
35947
35948
35949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
35950 $as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
35951 # Check whether --enable-bug3020-fix was given.
35952 if test "${enable_bug3020_fix+set}" = set; then :
35953   enableval=$enable_bug3020_fix; ans=$enableval
35954 else
35955   ans=yes
35956
35957 fi
35958
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35960 $as_echo "$ans" >&6; }
35961 case "$ans" in
35962  yes)
35963
35964 $as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
35965
35966 esac
35967
35968
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
35970 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
35971
35972 case "$host" in
35973  *-*-solaris2.[89])
35974     ans=yes
35975     ;;
35976  *-*-solaris2.1[0-9]*)
35977     ans=yes
35978     ;;
35979  *) ans=no
35980     ;;
35981 esac
35982
35983 # Check whether --enable-irig-sawtooth was given.
35984 if test "${enable_irig_sawtooth+set}" = set; then :
35985   enableval=$enable_irig_sawtooth; ans=$enableval
35986
35987 fi
35988
35989
35990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
35991 $as_echo "$ans" >&6; }
35992
35993 case "$ans" in
35994  yes)
35995
35996 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
35997
35998 esac
35999
36000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
36001 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
36002 # Check whether --enable-nist was given.
36003 if test "${enable_nist+set}" = set; then :
36004   enableval=$enable_nist; ans=$enableval
36005 else
36006   ans=no
36007
36008 fi
36009
36010
36011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
36012 $as_echo "$ans" >&6; }
36013
36014 case "$ans" in
36015  yes)
36016
36017 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
36018  ;;
36019 esac
36020
36021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
36022 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
36023 # Check whether --enable-ntp-signd was given.
36024 if test "${enable_ntp_signd+set}" = set; then :
36025   enableval=$enable_ntp_signd; ans=$enableval
36026 else
36027   ans=no
36028
36029 fi
36030
36031
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
36033 $as_echo "$ans" >&6; }
36034
36035 case "$ans" in
36036  no)
36037     ntp_signd_path=
36038     ;;
36039  yes)
36040     ntp_signd_path=/var/run/ntp_signd
36041     ;;
36042  *)
36043     ntp_signd_path="$ans"
36044 esac
36045
36046 case "$ntp_signd_path" in
36047  '')
36048     ;;
36049  *)
36050
36051 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
36052
36053
36054 cat >>confdefs.h <<_ACEOF
36055 #define NTP_SIGND_PATH "$ntp_signd_path"
36056 _ACEOF
36057
36058     ;;
36059 esac
36060
36061 for ac_header in libscf.h
36062 do :
36063   ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
36064 if test "x$ac_cv_header_libscf_h" = xyes; then :
36065   cat >>confdefs.h <<_ACEOF
36066 #define HAVE_LIBSCF_H 1
36067 _ACEOF
36068
36069 fi
36070
36071 done
36072
36073 LSCF=
36074 case "$ac_cv_header_libscf_h" in
36075  yes)
36076     LSCF='-lscf'
36077 esac
36078
36079
36080
36081
36082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
36083 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
36084 if ${ntp_cv_sockaddr_storage+:} false; then :
36085   $as_echo_n "(cached) " >&6
36086 else
36087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36088 /* end confdefs.h.  */
36089
36090                 #ifdef HAVE_SYS_TYPES_H
36091                 # include <sys/types.h>
36092                 #endif
36093                 #ifdef HAVE_SYS_SOCKET_H
36094                 # include <sys/socket.h>
36095                 #endif
36096                 #ifdef HAVE_NETINET_IN_H
36097                 # include <netinet/in.h>
36098                 #endif
36099
36100 int
36101 main ()
36102 {
36103
36104                 struct sockaddr_storage n;
36105
36106
36107   ;
36108   return 0;
36109 }
36110 _ACEOF
36111 if ac_fn_c_try_compile "$LINENO"; then :
36112   ntp_cv_sockaddr_storage=yes
36113 else
36114   ntp_cv_sockaddr_storage=no
36115
36116 fi
36117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36118
36119 fi
36120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
36121 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
36122 case "$ntp_cv_sockaddr_storage" in
36123  yes)
36124
36125 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
36126
36127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
36128 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
36129 if ${ntp_cv_have___ss_family+:} false; then :
36130   $as_echo_n "(cached) " >&6
36131 else
36132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36133 /* end confdefs.h.  */
36134
36135                     #ifdef HAVE_SYS_TYPES_H
36136                     # include <sys/types.h>
36137                     #endif
36138                     #ifdef HAVE_SYS_SOCKET_H
36139                     # include <sys/socket.h>
36140                     #endif
36141                     #ifdef HAVE_NETINET_IN_H
36142                     # include <netinet/in.h>
36143                     #endif
36144
36145 int
36146 main ()
36147 {
36148
36149                     struct sockaddr_storage s;
36150                     s.__ss_family = 1;
36151
36152
36153   ;
36154   return 0;
36155 }
36156 _ACEOF
36157 if ac_fn_c_try_compile "$LINENO"; then :
36158   ntp_cv_have___ss_family=yes
36159 else
36160   ntp_cv_have___ss_family=no
36161
36162 fi
36163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36164
36165 fi
36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
36167 $as_echo "$ntp_cv_have___ss_family" >&6; }
36168     case "$ntp_cv_have___ss_family" in
36169      yes)
36170
36171 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
36172
36173     esac
36174
36175 esac
36176
36177
36178 #
36179 # Look for in_port_t.
36180 #
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
36182 $as_echo_n "checking for in_port_t... " >&6; }
36183 if ${isc_cv_have_in_port_t+:} false; then :
36184   $as_echo_n "(cached) " >&6
36185 else
36186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36187 /* end confdefs.h.  */
36188
36189                 #include <sys/types.h>
36190                 #include <netinet/in.h>
36191
36192 int
36193 main ()
36194 {
36195
36196                 in_port_t port = 25;
36197                 return (0);
36198
36199
36200   ;
36201   return 0;
36202 }
36203 _ACEOF
36204 if ac_fn_c_try_compile "$LINENO"; then :
36205   isc_cv_have_in_port_t=yes
36206 else
36207   isc_cv_have_in_port_t=no
36208
36209 fi
36210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36211
36212 fi
36213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
36214 $as_echo "$isc_cv_have_in_port_t" >&6; }
36215 case "$isc_cv_have_in_port_t" in
36216  no)
36217
36218 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
36219
36220 esac
36221
36222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
36223 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
36224 if ${ntp_cv_getsockname_socklen_type+:} false; then :
36225   $as_echo_n "(cached) " >&6
36226 else
36227
36228     getsockname_socklen_type_found=no
36229     for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
36230         for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
36231             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36232 /* end confdefs.h.  */
36233
36234                         #ifdef HAVE_SYS_TYPES_H
36235                         # include <sys/types.h>
36236                         #endif
36237                         #ifdef HAVE_SYS_SOCKET_H
36238                         # include <sys/socket.h>
36239                         #endif
36240
36241 int
36242 main ()
36243 {
36244
36245                         extern
36246                         getsockname(int, $getsockname_arg2,
36247                                 $ntp_cv_getsockname_socklen_type *);
36248
36249
36250   ;
36251   return 0;
36252 }
36253 _ACEOF
36254 if ac_fn_c_try_compile "$LINENO"; then :
36255   getsockname_socklen_type_found=yes ; break 2
36256 fi
36257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36258         done
36259     done
36260     case "$getsockname_socklen_type_found" in
36261      no)
36262         ntp_cv_getsockname_socklen_type='socklen_t'
36263     esac
36264     { getsockname_arg2=; unset getsockname_arg2;}
36265     { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
36266
36267
36268 fi
36269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
36270 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
36271
36272 cat >>confdefs.h <<_ACEOF
36273 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
36274 _ACEOF
36275
36276
36277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
36278 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
36279 if ${isc_cv_platform_havesalen+:} false; then :
36280   $as_echo_n "(cached) " >&6
36281 else
36282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36283 /* end confdefs.h.  */
36284
36285                 #include <sys/types.h>
36286                 #include <sys/socket.h>
36287
36288 int
36289 main ()
36290 {
36291
36292                 extern struct sockaddr *ps;
36293                 return ps->sa_len;
36294
36295
36296   ;
36297   return 0;
36298 }
36299 _ACEOF
36300 if ac_fn_c_try_compile "$LINENO"; then :
36301   isc_cv_platform_havesalen=yes
36302 else
36303   isc_cv_platform_havesalen=no
36304
36305 fi
36306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36307
36308 fi
36309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
36310 $as_echo "$isc_cv_platform_havesalen" >&6; }
36311 case "$isc_cv_platform_havesalen" in
36312  yes)
36313
36314 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
36315
36316 esac
36317
36318 # Check whether --enable-ipv6 was given.
36319 if test "${enable_ipv6+set}" = set; then :
36320   enableval=$enable_ipv6;
36321 fi
36322
36323
36324 case "$enable_ipv6" in
36325  yes|''|autodetect)
36326     case "$host" in
36327      powerpc-ibm-aix4*)
36328         ;;
36329      *)
36330
36331 $as_echo "#define WANT_IPV6 1" >>confdefs.h
36332
36333         ;;
36334     esac
36335     ;;
36336  no)
36337     ;;
36338 esac
36339
36340
36341 case "$host" in
36342  *-*-darwin*)
36343
36344 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
36345
36346 esac
36347
36348
36349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
36350 $as_echo_n "checking for IPv6 structures... " >&6; }
36351 if ${isc_cv_found_ipv6+:} false; then :
36352   $as_echo_n "(cached) " >&6
36353 else
36354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36355 /* end confdefs.h.  */
36356
36357                 #include <sys/types.h>
36358                 #include <sys/socket.h>
36359                 #include <netinet/in.h>
36360
36361 int
36362 main ()
36363 {
36364
36365                 struct sockaddr_in6 sin6;
36366
36367
36368   ;
36369   return 0;
36370 }
36371 _ACEOF
36372 if ac_fn_c_try_compile "$LINENO"; then :
36373   isc_cv_found_ipv6=yes
36374 else
36375   isc_cv_found_ipv6=no
36376
36377 fi
36378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36379
36380 fi
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
36382 $as_echo "$isc_cv_found_ipv6" >&6; }
36383
36384 #
36385 # See whether IPv6 support is provided via a Kame add-on.
36386 # This is done before other IPv6 linking tests so LIBS is properly set.
36387 #
36388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
36389 $as_echo_n "checking for Kame IPv6 support... " >&6; }
36390
36391 # Check whether --with-kame was given.
36392 if test "${with_kame+set}" = set; then :
36393   withval=$with_kame; use_kame="$withval"
36394 else
36395   use_kame="no"
36396
36397 fi
36398
36399 case "$use_kame" in
36400  no)
36401     ;;
36402  yes)
36403     kame_path=/usr/local/v6
36404     ;;
36405  *)
36406     kame_path="$use_kame"
36407     ;;
36408 esac
36409 case "$use_kame" in
36410  no)
36411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36412 $as_echo "no" >&6; }
36413     ;;
36414  *)
36415     if test -f $kame_path/lib/libinet6.a; then
36416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
36417 $as_echo "$kame_path/lib/libinet6.a" >&6; }
36418         LIBS="-L$kame_path/lib -linet6 $LIBS"
36419     else
36420         as_fn_error $? "$kame_path/lib/libinet6.a not found.
36421
36422 Please choose the proper path with the following command:
36423
36424     configure --with-kame=PATH
36425 " "$LINENO" 5
36426     fi
36427     ;;
36428 esac
36429
36430 #
36431 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
36432 # Including it on Kame-using platforms is very bad, though, because
36433 # Kame uses #error against direct inclusion.   So include it on only
36434 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
36435 # This is done before the in6_pktinfo check because that's what
36436 # netinet6/in6.h is needed for.
36437 #
36438 case "$host" in
36439  *-bsdi4.[01]*)
36440
36441 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
36442
36443     isc_netinet6in6_hack="#include <netinet6/in6.h>"
36444     ;;
36445  *)
36446     isc_netinet6in6_hack=""
36447     ;;
36448 esac
36449
36450 #
36451 # This is similar to the netinet6/in6.h issue.
36452 #
36453 case "$host" in
36454  *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
36455
36456 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
36457
36458     isc_netinetin6_hack="#include <netinet/in6.h>"
36459     ;;
36460  *)
36461     isc_netinetin6_hack=""
36462     ;;
36463 esac
36464
36465
36466 case "$isc_cv_found_ipv6" in
36467  yes)
36468
36469 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
36470
36471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
36472 $as_echo_n "checking for in6_pktinfo... " >&6; }
36473 if ${isc_cv_have_in6_pktinfo+:} false; then :
36474   $as_echo_n "(cached) " >&6
36475 else
36476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36477 /* end confdefs.h.  */
36478
36479                     #include <sys/types.h>
36480                     #include <sys/socket.h>
36481                     #include <netinet/in.h>
36482                     $isc_netinetin6_hack
36483                     $isc_netinet6in6_hack
36484
36485 int
36486 main ()
36487 {
36488
36489                     struct in6_pktinfo xyzzy;
36490
36491
36492   ;
36493   return 0;
36494 }
36495 _ACEOF
36496 if ac_fn_c_try_compile "$LINENO"; then :
36497   isc_cv_have_in6_pktinfo=yes
36498 else
36499   isc_cv_have_in6_pktinfo=no
36500
36501 fi
36502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503
36504 fi
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
36506 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
36507     case "$isc_cv_have_in6_pktinfo" in
36508      yes)
36509
36510 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
36511
36512     esac
36513
36514
36515     # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
36516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
36517 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
36518 if ${isc_cv_have_sin6_scope_id+:} false; then :
36519   $as_echo_n "(cached) " >&6
36520 else
36521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36522 /* end confdefs.h.  */
36523
36524                     #include <sys/types.h>
36525                     #include <sys/socket.h>
36526                     #include <netinet/in.h>
36527                     $isc_netinetin6_hack
36528                     $isc_netinet6in6_hack
36529
36530 int
36531 main ()
36532 {
36533
36534                     struct sockaddr_in6 xyzzy;
36535                     xyzzy.sin6_scope_id = 0;
36536
36537
36538   ;
36539   return 0;
36540 }
36541 _ACEOF
36542 if ac_fn_c_try_compile "$LINENO"; then :
36543   isc_cv_have_sin6_scope_id=yes
36544 else
36545   isc_cv_have_sin6_scope_id=no
36546
36547 fi
36548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36549
36550 fi
36551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
36552 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
36553
36554     case "$isc_cv_have_sin6_scope_id" in
36555      yes)
36556
36557 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
36558
36559     esac
36560 esac
36561
36562
36563 # We need this check run even without isc_cv_found_ipv6=yes
36564
36565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
36566 $as_echo_n "checking for in6addr_any... " >&6; }
36567 if ${isc_cv_in6addr_any_links+:} false; then :
36568   $as_echo_n "(cached) " >&6
36569 else
36570
36571         SAVED_LIBS="$LIBS"
36572         LIBS="$LDADD_LIBNTP $LIBS"
36573         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36574 /* end confdefs.h.  */
36575 $ac_includes_default
36576                     #include <sys/socket.h>
36577                     #include <netinet/in.h>
36578                     $isc_netinetin6_hack
36579                     $isc_netinet6in6_hack
36580
36581 int
36582 main ()
36583 {
36584
36585                     printf("%x", in6addr_any.s6_addr[15]);
36586
36587
36588   ;
36589   return 0;
36590 }
36591 _ACEOF
36592 if ac_fn_c_try_link "$LINENO"; then :
36593   isc_cv_in6addr_any_links=yes
36594 else
36595   isc_cv_in6addr_any_links=no
36596
36597 fi
36598 rm -f core conftest.err conftest.$ac_objext \
36599     conftest$ac_exeext conftest.$ac_ext
36600         LIBS="$SAVED_LIBS"
36601         { SAVED_LIBS=; unset SAVED_LIBS;}
36602
36603
36604 fi
36605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
36606 $as_echo "$isc_cv_in6addr_any_links" >&6; }
36607
36608 case "$isc_cv_in6addr_any_links" in
36609  no)
36610
36611 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
36612
36613 esac
36614
36615
36616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
36617 $as_echo_n "checking for struct if_laddrconf... " >&6; }
36618 if ${isc_cv_struct_if_laddrconf+:} false; then :
36619   $as_echo_n "(cached) " >&6
36620 else
36621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36622 /* end confdefs.h.  */
36623
36624                 #include <sys/types.h>
36625                 #include <net/if6.h>
36626
36627 int
36628 main ()
36629 {
36630
36631                 struct if_laddrconf a;
36632
36633
36634   ;
36635   return 0;
36636 }
36637 _ACEOF
36638 if ac_fn_c_try_compile "$LINENO"; then :
36639   isc_cv_struct_if_laddrconf=yes
36640 else
36641   isc_cv_struct_if_laddrconf=no
36642
36643 fi
36644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36645
36646 fi
36647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
36648 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
36649
36650 case "$isc_cv_struct_if_laddrconf" in
36651  yes)
36652
36653 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
36654
36655 esac
36656
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
36658 $as_echo_n "checking for struct if_laddrreq... " >&6; }
36659 if ${isc_cv_struct_if_laddrreq+:} false; then :
36660   $as_echo_n "(cached) " >&6
36661 else
36662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36663 /* end confdefs.h.  */
36664
36665                 #include <sys/types.h>
36666                 #include <net/if6.h>
36667
36668 int
36669 main ()
36670 {
36671
36672                 struct if_laddrreq a;
36673
36674
36675   ;
36676   return 0;
36677 }
36678 _ACEOF
36679 if ac_fn_c_try_compile "$LINENO"; then :
36680   isc_cv_struct_if_laddrreq=yes
36681 else
36682   isc_cv_struct_if_laddrreq=no
36683
36684 fi
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36686
36687 fi
36688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
36689 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
36690
36691 case "$isc_cv_struct_if_laddrreq" in
36692  yes)
36693
36694 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
36695
36696 esac
36697
36698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
36699 $as_echo_n "checking for multicast IP support... " >&6; }
36700 if ${ntp_cv_multicast+:} false; then :
36701   $as_echo_n "(cached) " >&6
36702 else
36703
36704         ntp_cv_multicast=no
36705         case "$host" in
36706          i386-sequent-sysv4)
36707             ;;
36708          *)
36709             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36710 /* end confdefs.h.  */
36711
36712                         #ifdef HAVE_NETINET_IN_H
36713                         # include <netinet/in.h>
36714                         #endif
36715
36716 int
36717 main ()
36718 {
36719
36720                         struct ip_mreq ipmr;
36721                         ipmr.imr_interface.s_addr = 0;
36722
36723
36724   ;
36725   return 0;
36726 }
36727 _ACEOF
36728 if ac_fn_c_try_compile "$LINENO"; then :
36729   ntp_cv_multicast=yes
36730 fi
36731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36732             ;;
36733         esac
36734
36735
36736 fi
36737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
36738 $as_echo "$ntp_cv_multicast" >&6; }
36739 case "$ntp_cv_multicast" in
36740  yes)
36741
36742 $as_echo "#define MCAST 1" >>confdefs.h
36743
36744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
36745 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
36746 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
36747   $as_echo_n "(cached) " >&6
36748 else
36749
36750             case "$host" in
36751              *-*-netbsd*|*-*-*linux*)
36752                 ntp_cv_typeof_ip_multicast_loop=u_int
36753                 ;;
36754              *)
36755                 ntp_cv_typeof_ip_multicast_loop=u_char
36756                 ;;
36757             esac
36758
36759
36760 fi
36761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
36762 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
36763
36764 cat >>confdefs.h <<_ACEOF
36765 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
36766 _ACEOF
36767
36768 esac
36769
36770 # Check whether --enable-getifaddrs was given.
36771 if test "${enable_getifaddrs+set}" = set; then :
36772   enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
36773 else
36774   want_getifaddrs="yes"
36775
36776 fi
36777
36778
36779 case $want_getifaddrs in
36780  glibc)
36781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
36782 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
36783 esac
36784 case $want_getifaddrs in
36785  no)
36786     ;;
36787  *)
36788     SAVED_LIBS="$LIBS"
36789     LIBS="$LDADD_LIBNTP $LIBS"
36790     for ac_func in getifaddrs
36791 do :
36792   ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
36793 if test "x$ac_cv_func_getifaddrs" = xyes; then :
36794   cat >>confdefs.h <<_ACEOF
36795 #define HAVE_GETIFADDRS 1
36796 _ACEOF
36797
36798 fi
36799 done
36800
36801     LIBS="$SAVED_LIBS"
36802     { SAVED_LIBS=; unset SAVED_LIBS;}
36803     ;;
36804 esac
36805
36806 #
36807 # Check for if_nametoindex() for IPv6 scoped addresses support
36808 #
36809 case "$host" in
36810  *-hp-hpux*)
36811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
36812 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
36813 if ${ac_cv_search_if_nametoindex+:} false; then :
36814   $as_echo_n "(cached) " >&6
36815 else
36816   ac_func_search_save_LIBS=$LIBS
36817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36818 /* end confdefs.h.  */
36819
36820 /* Override any GCC internal prototype to avoid an error.
36821    Use char because int might match the return type of a GCC
36822    builtin and then its argument prototype would still apply.  */
36823 #ifdef __cplusplus
36824 extern "C"
36825 #endif
36826 char if_nametoindex ();
36827 int
36828 main ()
36829 {
36830 return if_nametoindex ();
36831   ;
36832   return 0;
36833 }
36834 _ACEOF
36835 for ac_lib in '' ipv6; do
36836   if test -z "$ac_lib"; then
36837     ac_res="none required"
36838   else
36839     ac_res=-l$ac_lib
36840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36841   fi
36842   if ac_fn_c_try_link "$LINENO"; then :
36843   ac_cv_search_if_nametoindex=$ac_res
36844 fi
36845 rm -f core conftest.err conftest.$ac_objext \
36846     conftest$ac_exeext
36847   if ${ac_cv_search_if_nametoindex+:} false; then :
36848   break
36849 fi
36850 done
36851 if ${ac_cv_search_if_nametoindex+:} false; then :
36852
36853 else
36854   ac_cv_search_if_nametoindex=no
36855 fi
36856 rm conftest.$ac_ext
36857 LIBS=$ac_func_search_save_LIBS
36858 fi
36859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
36860 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
36861 ac_res=$ac_cv_search_if_nametoindex
36862 if test "$ac_res" != no; then :
36863   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36864
36865 fi
36866
36867 esac
36868 SAVED_LIBS="$LIBS"
36869 LIBS="$LDADD_LIBNTP $LIBS"
36870 for ac_func in if_nametoindex
36871 do :
36872   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
36873 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
36874   cat >>confdefs.h <<_ACEOF
36875 #define HAVE_IF_NAMETOINDEX 1
36876 _ACEOF
36877
36878 fi
36879 done
36880
36881 LIBS="$SAVED_LIBS"
36882 { SAVED_LIBS=; unset SAVED_LIBS;}
36883 case "$ac_cv_func_if_nametoindex" in
36884  yes)
36885
36886 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
36887
36888 esac
36889
36890
36891
36892
36893 #
36894 # Look for a sysctl call to get the list of network interfaces.
36895 #
36896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
36897 $as_echo_n "checking for interface list sysctl... " >&6; }
36898 if ${ntp_cv_iflist_sysctl+:} false; then :
36899   $as_echo_n "(cached) " >&6
36900 else
36901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36902 /* end confdefs.h.  */
36903
36904             #include <sys/param.h>
36905             #include <sys/sysctl.h>
36906             #include <sys/socket.h>
36907             #ifndef NET_RT_IFLIST
36908             # error
36909             #endif
36910
36911 _ACEOF
36912 if ac_fn_c_try_cpp "$LINENO"; then :
36913   ntp_cv_iflist_sysctl=yes
36914 else
36915   ntp_cv_iflist_sysctl=no
36916
36917 fi
36918 rm -f conftest.err conftest.i conftest.$ac_ext
36919
36920 fi
36921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
36922 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
36923 case "$ntp_cv_iflist_sysctl" in
36924  yes)
36925
36926 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
36927
36928 esac
36929
36930 ###
36931
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
36933 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
36934 # Check whether --enable-saveconfig was given.
36935 if test "${enable_saveconfig+set}" = set; then :
36936   enableval=$enable_saveconfig; ntp_ok=$enableval
36937 else
36938   ntp_ok=yes
36939
36940 fi
36941
36942 ntp_saveconfig_enabled=0
36943 case "$ntp_ok" in
36944  yes)
36945     ntp_saveconfig_enabled=1
36946
36947 $as_echo "#define SAVECONFIG 1" >>confdefs.h
36948
36949     ;;
36950 esac
36951  if test x$ntp_saveconfig_enabled = x1; then
36952   SAVECONFIG_ENABLED_TRUE=
36953   SAVECONFIG_ENABLED_FALSE='#'
36954 else
36955   SAVECONFIG_ENABLED_TRUE='#'
36956   SAVECONFIG_ENABLED_FALSE=
36957 fi
36958
36959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36960 $as_echo "$ntp_ok" >&6; }
36961
36962 ###
36963
36964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
36965 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
36966 # Check whether --enable-leap-smear was given.
36967 if test "${enable_leap_smear+set}" = set; then :
36968   enableval=$enable_leap_smear; ntp_ok=$enableval
36969 else
36970   ntp_ok=no
36971
36972 fi
36973
36974 ntp_leap_smear_enabled=0
36975 case "$ntp_ok" in
36976  yes)
36977     ntp_leap_smear_enabled=1
36978
36979 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
36980
36981
36982     HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
36983     ;;
36984 esac
36985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
36986 $as_echo "$ntp_ok" >&6; }
36987
36988 ###
36989
36990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
36991 $as_echo_n "checking if we want dynamic interleave support... " >&6; }
36992 # Check whether --enable-dynamic-interleave was given.
36993 if test "${enable_dynamic_interleave+set}" = set; then :
36994   enableval=$enable_dynamic_interleave; ntp_ok=$enableval
36995 else
36996   ntp_ok=no
36997
36998 fi
36999
37000 ntp_dynamic_interleave=0
37001 case "$ntp_ok" in
37002  yes)
37003     ntp_dynamic_interleave=1
37004     ;;
37005 esac
37006
37007 cat >>confdefs.h <<_ACEOF
37008 #define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
37009 _ACEOF
37010
37011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
37012 $as_echo "$ntp_ok" >&6; }
37013
37014
37015 # We may not need have_unity
37016 have_unity=false
37017 # Extract the first word of "ruby", so it can be a program name with args.
37018 set dummy ruby; ac_word=$2
37019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37020 $as_echo_n "checking for $ac_word... " >&6; }
37021 if ${ac_cv_path_PATH_RUBY+:} false; then :
37022   $as_echo_n "(cached) " >&6
37023 else
37024   case $PATH_RUBY in
37025   [\\/]* | ?:[\\/]*)
37026   ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
37027   ;;
37028   *)
37029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37030 for as_dir in $PATH
37031 do
37032   IFS=$as_save_IFS
37033   test -z "$as_dir" && as_dir=.
37034     for ac_exec_ext in '' $ac_executable_extensions; do
37035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37036     ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
37037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37038     break 2
37039   fi
37040 done
37041   done
37042 IFS=$as_save_IFS
37043
37044   ;;
37045 esac
37046 fi
37047 PATH_RUBY=$ac_cv_path_PATH_RUBY
37048 if test -n "$PATH_RUBY"; then
37049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
37050 $as_echo "$PATH_RUBY" >&6; }
37051 else
37052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37053 $as_echo "no" >&6; }
37054 fi
37055
37056
37057 case "$PATH_RUBY" in
37058  /*)
37059     have_unity=true
37060     ;;
37061  *) PATH_RUBY="false"
37062     ;;
37063 esac
37064 # We may not need UNITYBUILD_AVAILABLE
37065  if $have_unity; then
37066   UNITYBUILD_AVAILABLE_TRUE=
37067   UNITYBUILD_AVAILABLE_FALSE='#'
37068 else
37069   UNITYBUILD_AVAILABLE_TRUE='#'
37070   UNITYBUILD_AVAILABLE_FALSE=
37071 fi
37072
37073
37074
37075
37076
37077 gta=false
37078
37079 # Check whether --with-gtest was given.
37080 if test "${with_gtest+set}" = set; then :
37081   withval=$with_gtest; try_gtest=$withval
37082 else
37083   try_gtest=yes
37084
37085 fi
37086
37087 case "$try_gtest" in
37088  yes)
37089     # Extract the first word of "gtest-config", so it can be a program name with args.
37090 set dummy gtest-config; ac_word=$2
37091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37092 $as_echo_n "checking for $ac_word... " >&6; }
37093 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
37094   $as_echo_n "(cached) " >&6
37095 else
37096   case $GTEST_CONFIG in
37097   [\\/]* | ?:[\\/]*)
37098   ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
37099   ;;
37100   *)
37101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37102 for as_dir in $PATH
37103 do
37104   IFS=$as_save_IFS
37105   test -z "$as_dir" && as_dir=.
37106     for ac_exec_ext in '' $ac_executable_extensions; do
37107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37108     ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37110     break 2
37111   fi
37112 done
37113   done
37114 IFS=$as_save_IFS
37115
37116   ;;
37117 esac
37118 fi
37119 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
37120 if test -n "$GTEST_CONFIG"; then
37121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
37122 $as_echo "$GTEST_CONFIG" >&6; }
37123 else
37124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37125 $as_echo "no" >&6; }
37126 fi
37127
37128
37129     { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
37130     case x${GTEST_CONFIG} in
37131      x) ;;
37132      *)
37133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
37134 $as_echo_n "checking gtest version... " >&6; }
37135         gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
37136         case "$gtest_version_test" in
37137          toolow*)
37138             ;;
37139          *)
37140             GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
37141             GTEST_LIBS=`$GTEST_CONFIG --libs`
37142             GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
37143             GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
37144
37145
37146
37147
37148             gta=true
37149             ;;
37150         esac
37151         gtest_version=`$GTEST_CONFIG --version`
37152         case "$gta" in
37153          true)
37154             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
37155 $as_echo "($gtest_version) ok" >&6; }
37156             ;;
37157          *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
37158 $as_echo "($gtest_version) not ok" >&6; }
37159             ;;
37160         esac
37161         { gtest_version_test=; unset gtest_version_test;}
37162         { gtest_version=; unset gtest_version;}
37163     esac
37164 esac
37165  if $gta; then
37166   GTEST_AVAILABLE_TRUE=
37167   GTEST_AVAILABLE_FALSE='#'
37168 else
37169   GTEST_AVAILABLE_TRUE='#'
37170   GTEST_AVAILABLE_FALSE=
37171 fi
37172
37173
37174
37175
37176
37177 case "$build" in
37178  $host) cross=0 ;;
37179  *)     cross=1 ;;
37180 esac
37181
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
37183 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
37184 # Check whether --enable-problem-tests was given.
37185 if test "${enable_problem_tests+set}" = set; then :
37186   enableval=$enable_problem_tests; ntp_ept=$enableval
37187 else
37188   ntp_ept=yes
37189
37190 fi
37191
37192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
37193 $as_echo "$ntp_ept" >&6; }
37194
37195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
37196 $as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
37197 ntp_test_ntp_restrict="no"
37198 case "$ntp_ept:$cross:$host" in
37199  no:0:*-*-freebsd6.4) ;;
37200  no:0:*-*-hpux11.23*) ;;
37201  no:0:*-*-solaris*) ;;
37202  *) ntp_test_ntp_restrict="yes" ;;
37203 esac
37204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
37205 $as_echo "$ntp_test_ntp_restrict" >&6; }
37206  if test x$ntp_test_ntp_restrict = xyes; then
37207   BUILD_TEST_NTP_RESTRICT_TRUE=
37208   BUILD_TEST_NTP_RESTRICT_FALSE='#'
37209 else
37210   BUILD_TEST_NTP_RESTRICT_TRUE='#'
37211   BUILD_TEST_NTP_RESTRICT_FALSE=
37212 fi
37213
37214
37215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
37216 $as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
37217 ntp_test_ntp_scanner="no"
37218 case "$ntp_ept:$cross:$host" in
37219  no:0:*-*-freebsd6.4) ;;
37220  no:0:*-*-solaris*) ;;
37221  *) ntp_test_ntp_scanner="yes" ;;
37222 esac
37223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
37224 $as_echo "$ntp_test_ntp_scanner" >&6; }
37225  if test x$ntp_test_ntp_scanner = xyes; then
37226   BUILD_TEST_NTP_SCANNER_TRUE=
37227   BUILD_TEST_NTP_SCANNER_FALSE='#'
37228 else
37229   BUILD_TEST_NTP_SCANNER_TRUE='#'
37230   BUILD_TEST_NTP_SCANNER_FALSE=
37231 fi
37232
37233
37234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
37235 $as_echo_n "checking if we can run test-ntp_signd... " >&6; }
37236 ntp_test_ntp_signd="no"
37237 case "$ntp_ept:$cross:$host" in
37238  no:0:*-*-freebsd6.4) ;;
37239  no:0:*-*-solaris*) ;;
37240  *) ntp_test_ntp_signd="yes" ;;
37241 esac
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
37243 $as_echo "$ntp_test_ntp_signd" >&6; }
37244  if test x$ntp_test_ntp_signd = xyes; then
37245   BUILD_TEST_NTP_SIGND_TRUE=
37246   BUILD_TEST_NTP_SIGND_FALSE='#'
37247 else
37248   BUILD_TEST_NTP_SIGND_TRUE='#'
37249   BUILD_TEST_NTP_SIGND_FALSE=
37250 fi
37251
37252
37253
37254
37255 ###
37256
37257
37258   prefix_NONE=
37259   exec_prefix_NONE=
37260   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37261   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37262   eval ac_define_dir="\"$sysconfdir\""
37263   eval ac_define_dir="\"$ac_define_dir\""
37264   NTP_KEYSDIR="$ac_define_dir"
37265
37266
37267 cat >>confdefs.h <<_ACEOF
37268 #define NTP_KEYSDIR "$ac_define_dir"
37269 _ACEOF
37270
37271   test "$prefix_NONE" && prefix=NONE
37272   test "$exec_prefix_NONE" && exec_prefix=NONE
37273
37274
37275 ac_config_files="$ac_config_files Makefile"
37276
37277 ac_config_files="$ac_config_files adjtimed/Makefile"
37278
37279 ac_config_files="$ac_config_files clockstuff/Makefile"
37280
37281 ac_config_files="$ac_config_files include/Makefile"
37282
37283 ac_config_files="$ac_config_files include/isc/Makefile"
37284
37285 ac_config_files="$ac_config_files kernel/Makefile"
37286
37287 ac_config_files="$ac_config_files kernel/sys/Makefile"
37288
37289 ac_config_files="$ac_config_files libntp/Makefile"
37290
37291 ac_config_files="$ac_config_files libparse/Makefile"
37292
37293 ac_config_files="$ac_config_files ntpd/Makefile"
37294
37295 ac_config_files="$ac_config_files ntpd/complete.conf"
37296
37297 ac_config_files="$ac_config_files ntpdate/Makefile"
37298
37299 ac_config_files="$ac_config_files ntpdc/Makefile"
37300
37301 ac_config_files="$ac_config_files ntpdc/nl.pl"
37302
37303 ac_config_files="$ac_config_files ntpq/Makefile"
37304
37305 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
37306
37307 ac_config_files="$ac_config_files parseutil/Makefile"
37308
37309 ac_config_files="$ac_config_files scripts/Makefile"
37310
37311 ac_config_files="$ac_config_files scripts/build/Makefile"
37312
37313 ac_config_files="$ac_config_files scripts/build/genAuthors"
37314
37315 ac_config_files="$ac_config_files scripts/build/mkver"
37316
37317 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
37318
37319 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
37320
37321 ac_config_files="$ac_config_files scripts/lib/Makefile"
37322
37323 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
37324
37325 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
37326
37327 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
37328
37329 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
37330
37331 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
37332
37333 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
37334
37335 ac_config_files="$ac_config_files scripts/ntpver"
37336
37337 ac_config_files="$ac_config_files scripts/plot_summary"
37338
37339 ac_config_files="$ac_config_files scripts/summary"
37340
37341 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
37342
37343 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
37344
37345 ac_config_files="$ac_config_files tests/Makefile"
37346
37347 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
37348
37349 ac_config_files="$ac_config_files tests/libntp/Makefile"
37350
37351 ac_config_files="$ac_config_files tests/ntpd/Makefile"
37352
37353 ac_config_files="$ac_config_files tests/ntpq/Makefile"
37354
37355 ac_config_files="$ac_config_files tests/sandbox/Makefile"
37356
37357 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
37358
37359 ac_config_files="$ac_config_files util/Makefile"
37360
37361
37362 perllibdir="${datadir}/ntp/lib"
37363
37364   prefix_NONE=
37365   exec_prefix_NONE=
37366   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
37367   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
37368   eval ac_define_dir="\"$perllibdir\""
37369   eval ac_define_dir="\"$ac_define_dir\""
37370   PERLLIBDIR="$ac_define_dir"
37371
37372
37373 cat >>confdefs.h <<_ACEOF
37374 #define PERLLIBDIR "$ac_define_dir"
37375 _ACEOF
37376
37377   test "$prefix_NONE" && prefix=NONE
37378   test "$exec_prefix_NONE" && exec_prefix=NONE
37379
37380
37381 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
37382
37383 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
37384
37385 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
37386
37387 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
37388
37389 summary_opts="$srcdir/scripts/summary-opts"
37390
37391 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
37392
37393
37394
37395
37396 subdirs="$subdirs sntp"
37397
37398
37399 cat >confcache <<\_ACEOF
37400 # This file is a shell script that caches the results of configure
37401 # tests run on this system so they can be shared between configure
37402 # scripts and configure runs, see configure's option --config-cache.
37403 # It is not useful on other systems.  If it contains results you don't
37404 # want to keep, you may remove or edit it.
37405 #
37406 # config.status only pays attention to the cache file if you give it
37407 # the --recheck option to rerun configure.
37408 #
37409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37411 # following values.
37412
37413 _ACEOF
37414
37415 # The following way of writing the cache mishandles newlines in values,
37416 # but we know of no workaround that is simple, portable, and efficient.
37417 # So, we kill variables containing newlines.
37418 # Ultrix sh set writes to stderr and can't be redirected directly,
37419 # and sets the high bit in the cache file unless we assign to the vars.
37420 (
37421   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37422     eval ac_val=\$$ac_var
37423     case $ac_val in #(
37424     *${as_nl}*)
37425       case $ac_var in #(
37426       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37428       esac
37429       case $ac_var in #(
37430       _ | IFS | as_nl) ;; #(
37431       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37432       *) { eval $ac_var=; unset $ac_var;} ;;
37433       esac ;;
37434     esac
37435   done
37436
37437   (set) 2>&1 |
37438     case $as_nl`(ac_space=' '; set) 2>&1` in #(
37439     *${as_nl}ac_space=\ *)
37440       # `set' does not quote correctly, so add quotes: double-quote
37441       # substitution turns \\\\ into \\, and sed turns \\ into \.
37442       sed -n \
37443         "s/'/'\\\\''/g;
37444           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37445       ;; #(
37446     *)
37447       # `set' quotes correctly as required by POSIX, so do not add quotes.
37448       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37449       ;;
37450     esac |
37451     sort
37452 ) |
37453   sed '
37454      /^ac_cv_env_/b end
37455      t clear
37456      :clear
37457      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37458      t end
37459      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37460      :end' >>confcache
37461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37462   if test -w "$cache_file"; then
37463     if test "x$cache_file" != "x/dev/null"; then
37464       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37465 $as_echo "$as_me: updating cache $cache_file" >&6;}
37466       if test ! -f "$cache_file" || test -h "$cache_file"; then
37467         cat confcache >"$cache_file"
37468       else
37469         case $cache_file in #(
37470         */* | ?:*)
37471           mv -f confcache "$cache_file"$$ &&
37472           mv -f "$cache_file"$$ "$cache_file" ;; #(
37473         *)
37474           mv -f confcache "$cache_file" ;;
37475         esac
37476       fi
37477     fi
37478   else
37479     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37481   fi
37482 fi
37483 rm -f confcache
37484
37485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37486 # Let make expand exec_prefix.
37487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37488
37489 DEFS=-DHAVE_CONFIG_H
37490
37491 ac_libobjs=
37492 ac_ltlibobjs=
37493 U=
37494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37495   # 1. Remove the extension, and $U if already installed.
37496   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37497   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37498   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37499   #    will be set to the directory where LIBOBJS objects are built.
37500   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37501   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37502 done
37503 LIBOBJS=$ac_libobjs
37504
37505 LTLIBOBJS=$ac_ltlibobjs
37506
37507
37508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37509 $as_echo_n "checking that generated files are newer than configure... " >&6; }
37510    if test -n "$am_sleep_pid"; then
37511      # Hide warnings about reused PIDs.
37512      wait $am_sleep_pid 2>/dev/null
37513    fi
37514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37515 $as_echo "done" >&6; }
37516  if test -n "$EXEEXT"; then
37517   am__EXEEXT_TRUE=
37518   am__EXEEXT_FALSE='#'
37519 else
37520   am__EXEEXT_TRUE='#'
37521   am__EXEEXT_FALSE=
37522 fi
37523
37524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37525   as_fn_error $? "conditional \"AMDEP\" was never defined.
37526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37527 fi
37528 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37529   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37531 fi
37532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37533   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37535 fi
37536
37537 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37538   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37540 fi
37541 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
37542   as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
37543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37544 fi
37545 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
37546   as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
37547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37548 fi
37549 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
37550   as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
37551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37552 fi
37553 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
37554   as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
37555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37556 fi
37557 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
37558   as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
37559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37560 fi
37561 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
37562   as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
37563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37564 fi
37565 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
37566   as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
37567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37568 fi
37569 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
37570   as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
37571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37572 fi
37573 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
37574   as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
37575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37576 fi
37577 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
37578   as_fn_error $? "conditional \"PTHREADS\" was never defined.
37579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37580 fi
37581 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
37582   as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
37583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37584 fi
37585 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
37586   as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
37587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37588 fi
37589 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
37590   as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
37591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37592 fi
37593 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
37594   as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
37595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37596 fi
37597 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
37598   as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
37599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37600 fi
37601 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
37602   as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
37603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37604 fi
37605 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
37606   as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
37607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37608 fi
37609
37610 : "${CONFIG_STATUS=./config.status}"
37611 ac_write_fail=0
37612 ac_clean_files_save=$ac_clean_files
37613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37616 as_write_fail=0
37617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37618 #! $SHELL
37619 # Generated by $as_me.
37620 # Run this file to recreate the current configuration.
37621 # Compiler output produced by configure, useful for debugging
37622 # configure, is in config.log if it exists.
37623
37624 debug=false
37625 ac_cs_recheck=false
37626 ac_cs_silent=false
37627
37628 SHELL=\${CONFIG_SHELL-$SHELL}
37629 export SHELL
37630 _ASEOF
37631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37632 ## -------------------- ##
37633 ## M4sh Initialization. ##
37634 ## -------------------- ##
37635
37636 # Be more Bourne compatible
37637 DUALCASE=1; export DUALCASE # for MKS sh
37638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37639   emulate sh
37640   NULLCMD=:
37641   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37642   # is contrary to our usage.  Disable this feature.
37643   alias -g '${1+"$@"}'='"$@"'
37644   setopt NO_GLOB_SUBST
37645 else
37646   case `(set -o) 2>/dev/null` in #(
37647   *posix*) :
37648     set -o posix ;; #(
37649   *) :
37650      ;;
37651 esac
37652 fi
37653
37654
37655 as_nl='
37656 '
37657 export as_nl
37658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37659 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37662 # Prefer a ksh shell builtin over an external printf program on Solaris,
37663 # but without wasting forks for bash or zsh.
37664 if test -z "$BASH_VERSION$ZSH_VERSION" \
37665     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37666   as_echo='print -r --'
37667   as_echo_n='print -rn --'
37668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37669   as_echo='printf %s\n'
37670   as_echo_n='printf %s'
37671 else
37672   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37673     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37674     as_echo_n='/usr/ucb/echo -n'
37675   else
37676     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37677     as_echo_n_body='eval
37678       arg=$1;
37679       case $arg in #(
37680       *"$as_nl"*)
37681         expr "X$arg" : "X\\(.*\\)$as_nl";
37682         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37683       esac;
37684       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37685     '
37686     export as_echo_n_body
37687     as_echo_n='sh -c $as_echo_n_body as_echo'
37688   fi
37689   export as_echo_body
37690   as_echo='sh -c $as_echo_body as_echo'
37691 fi
37692
37693 # The user is always right.
37694 if test "${PATH_SEPARATOR+set}" != set; then
37695   PATH_SEPARATOR=:
37696   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37697     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37698       PATH_SEPARATOR=';'
37699   }
37700 fi
37701
37702
37703 # IFS
37704 # We need space, tab and new line, in precisely that order.  Quoting is
37705 # there to prevent editors from complaining about space-tab.
37706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37707 # splitting by setting IFS to empty value.)
37708 IFS=" ""        $as_nl"
37709
37710 # Find who we are.  Look in the path if we contain no directory separator.
37711 as_myself=
37712 case $0 in #((
37713   *[\\/]* ) as_myself=$0 ;;
37714   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37715 for as_dir in $PATH
37716 do
37717   IFS=$as_save_IFS
37718   test -z "$as_dir" && as_dir=.
37719     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37720   done
37721 IFS=$as_save_IFS
37722
37723      ;;
37724 esac
37725 # We did not find ourselves, most probably we were run as `sh COMMAND'
37726 # in which case we are not to be found in the path.
37727 if test "x$as_myself" = x; then
37728   as_myself=$0
37729 fi
37730 if test ! -f "$as_myself"; then
37731   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37732   exit 1
37733 fi
37734
37735 # Unset variables that we do not need and which cause bugs (e.g. in
37736 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37737 # suppresses any "Segmentation fault" message there.  '((' could
37738 # trigger a bug in pdksh 5.2.14.
37739 for as_var in BASH_ENV ENV MAIL MAILPATH
37740 do eval test x\${$as_var+set} = xset \
37741   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37742 done
37743 PS1='$ '
37744 PS2='> '
37745 PS4='+ '
37746
37747 # NLS nuisances.
37748 LC_ALL=C
37749 export LC_ALL
37750 LANGUAGE=C
37751 export LANGUAGE
37752
37753 # CDPATH.
37754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37755
37756
37757 # as_fn_error STATUS ERROR [LINENO LOG_FD]
37758 # ----------------------------------------
37759 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37760 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37761 # script with STATUS, using 1 if that was 0.
37762 as_fn_error ()
37763 {
37764   as_status=$1; test $as_status -eq 0 && as_status=1
37765   if test "$4"; then
37766     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37767     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37768   fi
37769   $as_echo "$as_me: error: $2" >&2
37770   as_fn_exit $as_status
37771 } # as_fn_error
37772
37773
37774 # as_fn_set_status STATUS
37775 # -----------------------
37776 # Set $? to STATUS, without forking.
37777 as_fn_set_status ()
37778 {
37779   return $1
37780 } # as_fn_set_status
37781
37782 # as_fn_exit STATUS
37783 # -----------------
37784 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37785 as_fn_exit ()
37786 {
37787   set +e
37788   as_fn_set_status $1
37789   exit $1
37790 } # as_fn_exit
37791
37792 # as_fn_unset VAR
37793 # ---------------
37794 # Portably unset VAR.
37795 as_fn_unset ()
37796 {
37797   { eval $1=; unset $1;}
37798 }
37799 as_unset=as_fn_unset
37800 # as_fn_append VAR VALUE
37801 # ----------------------
37802 # Append the text in VALUE to the end of the definition contained in VAR. Take
37803 # advantage of any shell optimizations that allow amortized linear growth over
37804 # repeated appends, instead of the typical quadratic growth present in naive
37805 # implementations.
37806 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37807   eval 'as_fn_append ()
37808   {
37809     eval $1+=\$2
37810   }'
37811 else
37812   as_fn_append ()
37813   {
37814     eval $1=\$$1\$2
37815   }
37816 fi # as_fn_append
37817
37818 # as_fn_arith ARG...
37819 # ------------------
37820 # Perform arithmetic evaluation on the ARGs, and store the result in the
37821 # global $as_val. Take advantage of shells that can avoid forks. The arguments
37822 # must be portable across $(()) and expr.
37823 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37824   eval 'as_fn_arith ()
37825   {
37826     as_val=$(( $* ))
37827   }'
37828 else
37829   as_fn_arith ()
37830   {
37831     as_val=`expr "$@" || test $? -eq 1`
37832   }
37833 fi # as_fn_arith
37834
37835
37836 if expr a : '\(a\)' >/dev/null 2>&1 &&
37837    test "X`expr 00001 : '.*\(...\)'`" = X001; then
37838   as_expr=expr
37839 else
37840   as_expr=false
37841 fi
37842
37843 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37844   as_basename=basename
37845 else
37846   as_basename=false
37847 fi
37848
37849 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37850   as_dirname=dirname
37851 else
37852   as_dirname=false
37853 fi
37854
37855 as_me=`$as_basename -- "$0" ||
37856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37857          X"$0" : 'X\(//\)$' \| \
37858          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37859 $as_echo X/"$0" |
37860     sed '/^.*\/\([^/][^/]*\)\/*$/{
37861             s//\1/
37862             q
37863           }
37864           /^X\/\(\/\/\)$/{
37865             s//\1/
37866             q
37867           }
37868           /^X\/\(\/\).*/{
37869             s//\1/
37870             q
37871           }
37872           s/.*/./; q'`
37873
37874 # Avoid depending upon Character Ranges.
37875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37878 as_cr_digits='0123456789'
37879 as_cr_alnum=$as_cr_Letters$as_cr_digits
37880
37881 ECHO_C= ECHO_N= ECHO_T=
37882 case `echo -n x` in #(((((
37883 -n*)
37884   case `echo 'xy\c'` in
37885   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
37886   xy)  ECHO_C='\c';;
37887   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37888        ECHO_T=' ';;
37889   esac;;
37890 *)
37891   ECHO_N='-n';;
37892 esac
37893
37894 rm -f conf$$ conf$$.exe conf$$.file
37895 if test -d conf$$.dir; then
37896   rm -f conf$$.dir/conf$$.file
37897 else
37898   rm -f conf$$.dir
37899   mkdir conf$$.dir 2>/dev/null
37900 fi
37901 if (echo >conf$$.file) 2>/dev/null; then
37902   if ln -s conf$$.file conf$$ 2>/dev/null; then
37903     as_ln_s='ln -s'
37904     # ... but there are two gotchas:
37905     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37906     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37907     # In both cases, we have to default to `cp -pR'.
37908     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37909       as_ln_s='cp -pR'
37910   elif ln conf$$.file conf$$ 2>/dev/null; then
37911     as_ln_s=ln
37912   else
37913     as_ln_s='cp -pR'
37914   fi
37915 else
37916   as_ln_s='cp -pR'
37917 fi
37918 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37919 rmdir conf$$.dir 2>/dev/null
37920
37921
37922 # as_fn_mkdir_p
37923 # -------------
37924 # Create "$as_dir" as a directory, including parents if necessary.
37925 as_fn_mkdir_p ()
37926 {
37927
37928   case $as_dir in #(
37929   -*) as_dir=./$as_dir;;
37930   esac
37931   test -d "$as_dir" || eval $as_mkdir_p || {
37932     as_dirs=
37933     while :; do
37934       case $as_dir in #(
37935       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37936       *) as_qdir=$as_dir;;
37937       esac
37938       as_dirs="'$as_qdir' $as_dirs"
37939       as_dir=`$as_dirname -- "$as_dir" ||
37940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37941          X"$as_dir" : 'X\(//\)[^/]' \| \
37942          X"$as_dir" : 'X\(//\)$' \| \
37943          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37944 $as_echo X"$as_dir" |
37945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37946             s//\1/
37947             q
37948           }
37949           /^X\(\/\/\)[^/].*/{
37950             s//\1/
37951             q
37952           }
37953           /^X\(\/\/\)$/{
37954             s//\1/
37955             q
37956           }
37957           /^X\(\/\).*/{
37958             s//\1/
37959             q
37960           }
37961           s/.*/./; q'`
37962       test -d "$as_dir" && break
37963     done
37964     test -z "$as_dirs" || eval "mkdir $as_dirs"
37965   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37966
37967
37968 } # as_fn_mkdir_p
37969 if mkdir -p . 2>/dev/null; then
37970   as_mkdir_p='mkdir -p "$as_dir"'
37971 else
37972   test -d ./-p && rmdir ./-p
37973   as_mkdir_p=false
37974 fi
37975
37976
37977 # as_fn_executable_p FILE
37978 # -----------------------
37979 # Test if FILE is an executable regular file.
37980 as_fn_executable_p ()
37981 {
37982   test -f "$1" && test -x "$1"
37983 } # as_fn_executable_p
37984 as_test_x='test -x'
37985 as_executable_p=as_fn_executable_p
37986
37987 # Sed expression to map a string onto a valid CPP name.
37988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37989
37990 # Sed expression to map a string onto a valid variable name.
37991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37992
37993
37994 exec 6>&1
37995 ## ----------------------------------- ##
37996 ## Main body of $CONFIG_STATUS script. ##
37997 ## ----------------------------------- ##
37998 _ASEOF
37999 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
38000
38001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38002 # Save the log message, to keep $0 and so on meaningful, and to
38003 # report actual input values of CONFIG_FILES etc. instead of their
38004 # values after options handling.
38005 ac_log="
38006 This file was extended by ntp $as_me 4.2.8p9, which was
38007 generated by GNU Autoconf 2.69.  Invocation command line was
38008
38009   CONFIG_FILES    = $CONFIG_FILES
38010   CONFIG_HEADERS  = $CONFIG_HEADERS
38011   CONFIG_LINKS    = $CONFIG_LINKS
38012   CONFIG_COMMANDS = $CONFIG_COMMANDS
38013   $ $0 $@
38014
38015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38016 "
38017
38018 _ACEOF
38019
38020 case $ac_config_files in *"
38021 "*) set x $ac_config_files; shift; ac_config_files=$*;;
38022 esac
38023
38024 case $ac_config_headers in *"
38025 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38026 esac
38027
38028
38029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38030 # Files that config.status was made for.
38031 config_files="$ac_config_files"
38032 config_headers="$ac_config_headers"
38033 config_commands="$ac_config_commands"
38034
38035 _ACEOF
38036
38037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38038 ac_cs_usage="\
38039 \`$as_me' instantiates files and other configuration actions
38040 from templates according to the current configuration.  Unless the files
38041 and actions are specified as TAGs, all are instantiated by default.
38042
38043 Usage: $0 [OPTION]... [TAG]...
38044
38045   -h, --help       print this help, then exit
38046   -V, --version    print version number and configuration settings, then exit
38047       --config     print configuration, then exit
38048   -q, --quiet, --silent
38049                    do not print progress messages
38050   -d, --debug      don't remove temporary files
38051       --recheck    update $as_me by reconfiguring in the same conditions
38052       --file=FILE[:TEMPLATE]
38053                    instantiate the configuration file FILE
38054       --header=FILE[:TEMPLATE]
38055                    instantiate the configuration header FILE
38056
38057 Configuration files:
38058 $config_files
38059
38060 Configuration headers:
38061 $config_headers
38062
38063 Configuration commands:
38064 $config_commands
38065
38066 Report bugs to <http://bugs.ntp.org./>.
38067 ntp home page: <http://www.ntp.org./>."
38068
38069 _ACEOF
38070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38071 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38072 ac_cs_version="\\
38073 ntp config.status 4.2.8p9
38074 configured by $0, generated by GNU Autoconf 2.69,
38075   with options \\"\$ac_cs_config\\"
38076
38077 Copyright (C) 2012 Free Software Foundation, Inc.
38078 This config.status script is free software; the Free Software Foundation
38079 gives unlimited permission to copy, distribute and modify it."
38080
38081 ac_pwd='$ac_pwd'
38082 srcdir='$srcdir'
38083 INSTALL='$INSTALL'
38084 MKDIR_P='$MKDIR_P'
38085 AWK='$AWK'
38086 test -n "\$AWK" || AWK=awk
38087 _ACEOF
38088
38089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38090 # The default lists apply if the user does not specify any file.
38091 ac_need_defaults=:
38092 while test $# != 0
38093 do
38094   case $1 in
38095   --*=?*)
38096     ac_option=`expr "X$1" : 'X\([^=]*\)='`
38097     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38098     ac_shift=:
38099     ;;
38100   --*=)
38101     ac_option=`expr "X$1" : 'X\([^=]*\)='`
38102     ac_optarg=
38103     ac_shift=:
38104     ;;
38105   *)
38106     ac_option=$1
38107     ac_optarg=$2
38108     ac_shift=shift
38109     ;;
38110   esac
38111
38112   case $ac_option in
38113   # Handling of the options.
38114   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38115     ac_cs_recheck=: ;;
38116   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38117     $as_echo "$ac_cs_version"; exit ;;
38118   --config | --confi | --conf | --con | --co | --c )
38119     $as_echo "$ac_cs_config"; exit ;;
38120   --debug | --debu | --deb | --de | --d | -d )
38121     debug=: ;;
38122   --file | --fil | --fi | --f )
38123     $ac_shift
38124     case $ac_optarg in
38125     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38126     '') as_fn_error $? "missing file argument" ;;
38127     esac
38128     as_fn_append CONFIG_FILES " '$ac_optarg'"
38129     ac_need_defaults=false;;
38130   --header | --heade | --head | --hea )
38131     $ac_shift
38132     case $ac_optarg in
38133     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38134     esac
38135     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
38136     ac_need_defaults=false;;
38137   --he | --h)
38138     # Conflict between --help and --header
38139     as_fn_error $? "ambiguous option: \`$1'
38140 Try \`$0 --help' for more information.";;
38141   --help | --hel | -h )
38142     $as_echo "$ac_cs_usage"; exit ;;
38143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38144   | -silent | --silent | --silen | --sile | --sil | --si | --s)
38145     ac_cs_silent=: ;;
38146
38147   # This is an error.
38148   -*) as_fn_error $? "unrecognized option: \`$1'
38149 Try \`$0 --help' for more information." ;;
38150
38151   *) as_fn_append ac_config_targets " $1"
38152      ac_need_defaults=false ;;
38153
38154   esac
38155   shift
38156 done
38157
38158 ac_configure_extra_args=
38159
38160 if $ac_cs_silent; then
38161   exec 6>/dev/null
38162   ac_configure_extra_args="$ac_configure_extra_args --silent"
38163 fi
38164
38165 _ACEOF
38166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38167 if \$ac_cs_recheck; then
38168   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38169   shift
38170   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38171   CONFIG_SHELL='$SHELL'
38172   export CONFIG_SHELL
38173   exec "\$@"
38174 fi
38175
38176 _ACEOF
38177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38178 exec 5>>config.log
38179 {
38180   echo
38181   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38182 ## Running $as_me. ##
38183 _ASBOX
38184   $as_echo "$ac_log"
38185 } >&5
38186
38187 _ACEOF
38188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38189 #
38190 # INIT-COMMANDS
38191 #
38192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38193
38194
38195 # The HP-UX ksh and POSIX shell print the target directory to stdout
38196 # if CDPATH is set.
38197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38198
38199 sed_quote_subst='$sed_quote_subst'
38200 double_quote_subst='$double_quote_subst'
38201 delay_variable_subst='$delay_variable_subst'
38202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38203 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38204 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38205 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38206 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38207 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38208 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38209 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38210 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38211 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38212 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38213 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38214 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38215 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38216 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38217 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38218 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38219 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38220 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38221 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38222 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38223 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38224 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38225 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38226 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38227 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38228 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38229 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38230 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38231 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38232 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38233 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38234 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38235 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38236 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38237 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38238 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38239 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38240 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38241 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38242 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38243 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38244 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38245 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38246 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38247 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38248 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38249 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38250 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38251 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38252 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38253 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38254 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38255 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38256 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38257 lt_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"`'
38258 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38259 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38260 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38261 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38262 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38263 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38264 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38265 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38266 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38267 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38268 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38269 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38270 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38271 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38272 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38273 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38274 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38275 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38276 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38277 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38278 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38279 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38280 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38281 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38282 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38283 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38284 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38285 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38286 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38287 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38288 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38289 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38290 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38291 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38292 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
38293 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38294 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38295 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38296 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38297 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38298 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38299 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38300 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38301 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38302 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38303 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38304 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38305 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38306 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38307 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38308 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38309 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38310 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38311 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38312 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38313 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38314 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38315 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38316 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38317 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38318 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38319 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38320 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38321 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38322 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38323 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38324 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38325 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
38326 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38327 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38328 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38329 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38330 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38331 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38332 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38333 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38334 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38335 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38336 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38337 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38338 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38339 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38340 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38341 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38342 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38343 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38344 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38345 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38346 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38347 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38348 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38349 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38350 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38351 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38352 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38353 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38354 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38355 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38356 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38357 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38358 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38359 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38360 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38361 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38362 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38363 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38364 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
38365 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38366 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38367 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38368 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38369 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38370 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38371 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38372 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38373 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38374 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38375 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38376 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38377 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38378 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38379 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38380 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38381 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38382 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38383 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38384 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38385 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38386 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38387
38388 LTCC='$LTCC'
38389 LTCFLAGS='$LTCFLAGS'
38390 compiler='$compiler_DEFAULT'
38391
38392 # A function that is used when there is no print builtin or printf.
38393 func_fallback_echo ()
38394 {
38395   eval 'cat <<_LTECHO_EOF
38396 \$1
38397 _LTECHO_EOF'
38398 }
38399
38400 # Quote evaled strings.
38401 for var in SHELL \
38402 ECHO \
38403 SED \
38404 GREP \
38405 EGREP \
38406 FGREP \
38407 LD \
38408 NM \
38409 LN_S \
38410 lt_SP2NL \
38411 lt_NL2SP \
38412 reload_flag \
38413 OBJDUMP \
38414 deplibs_check_method \
38415 file_magic_cmd \
38416 file_magic_glob \
38417 want_nocaseglob \
38418 DLLTOOL \
38419 sharedlib_from_linklib_cmd \
38420 AR \
38421 AR_FLAGS \
38422 archiver_list_spec \
38423 STRIP \
38424 RANLIB \
38425 CC \
38426 CFLAGS \
38427 compiler \
38428 lt_cv_sys_global_symbol_pipe \
38429 lt_cv_sys_global_symbol_to_cdecl \
38430 lt_cv_sys_global_symbol_to_c_name_address \
38431 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38432 nm_file_list_spec \
38433 lt_prog_compiler_no_builtin_flag \
38434 lt_prog_compiler_pic \
38435 lt_prog_compiler_wl \
38436 lt_prog_compiler_static \
38437 lt_cv_prog_compiler_c_o \
38438 need_locks \
38439 MANIFEST_TOOL \
38440 DSYMUTIL \
38441 NMEDIT \
38442 LIPO \
38443 OTOOL \
38444 OTOOL64 \
38445 shrext_cmds \
38446 export_dynamic_flag_spec \
38447 whole_archive_flag_spec \
38448 compiler_needs_object \
38449 with_gnu_ld \
38450 allow_undefined_flag \
38451 no_undefined_flag \
38452 hardcode_libdir_flag_spec \
38453 hardcode_libdir_flag_spec_ld \
38454 hardcode_libdir_separator \
38455 exclude_expsyms \
38456 include_expsyms \
38457 file_list_spec \
38458 variables_saved_for_relink \
38459 libname_spec \
38460 library_names_spec \
38461 soname_spec \
38462 install_override_mode \
38463 finish_eval \
38464 old_striplib \
38465 striplib \
38466 compiler_lib_search_dirs \
38467 predep_objects \
38468 postdep_objects \
38469 predeps \
38470 postdeps \
38471 compiler_lib_search_path \
38472 LD_CXX \
38473 reload_flag_CXX \
38474 compiler_CXX \
38475 lt_prog_compiler_no_builtin_flag_CXX \
38476 lt_prog_compiler_pic_CXX \
38477 lt_prog_compiler_wl_CXX \
38478 lt_prog_compiler_static_CXX \
38479 lt_cv_prog_compiler_c_o_CXX \
38480 export_dynamic_flag_spec_CXX \
38481 whole_archive_flag_spec_CXX \
38482 compiler_needs_object_CXX \
38483 with_gnu_ld_CXX \
38484 allow_undefined_flag_CXX \
38485 no_undefined_flag_CXX \
38486 hardcode_libdir_flag_spec_CXX \
38487 hardcode_libdir_flag_spec_ld_CXX \
38488 hardcode_libdir_separator_CXX \
38489 exclude_expsyms_CXX \
38490 include_expsyms_CXX \
38491 file_list_spec_CXX \
38492 compiler_lib_search_dirs_CXX \
38493 predep_objects_CXX \
38494 postdep_objects_CXX \
38495 predeps_CXX \
38496 postdeps_CXX \
38497 compiler_lib_search_path_CXX; do
38498     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38499     *[\\\\\\\`\\"\\\$]*)
38500       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38501       ;;
38502     *)
38503       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38504       ;;
38505     esac
38506 done
38507
38508 # Double-quote double-evaled strings.
38509 for var in reload_cmds \
38510 old_postinstall_cmds \
38511 old_postuninstall_cmds \
38512 old_archive_cmds \
38513 extract_expsyms_cmds \
38514 old_archive_from_new_cmds \
38515 old_archive_from_expsyms_cmds \
38516 archive_cmds \
38517 archive_expsym_cmds \
38518 module_cmds \
38519 module_expsym_cmds \
38520 export_symbols_cmds \
38521 prelink_cmds \
38522 postlink_cmds \
38523 postinstall_cmds \
38524 postuninstall_cmds \
38525 finish_cmds \
38526 sys_lib_search_path_spec \
38527 sys_lib_dlsearch_path_spec \
38528 reload_cmds_CXX \
38529 old_archive_cmds_CXX \
38530 old_archive_from_new_cmds_CXX \
38531 old_archive_from_expsyms_cmds_CXX \
38532 archive_cmds_CXX \
38533 archive_expsym_cmds_CXX \
38534 module_cmds_CXX \
38535 module_expsym_cmds_CXX \
38536 export_symbols_cmds_CXX \
38537 prelink_cmds_CXX \
38538 postlink_cmds_CXX; do
38539     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38540     *[\\\\\\\`\\"\\\$]*)
38541       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38542       ;;
38543     *)
38544       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38545       ;;
38546     esac
38547 done
38548
38549 ac_aux_dir='$ac_aux_dir'
38550 xsi_shell='$xsi_shell'
38551 lt_shell_append='$lt_shell_append'
38552
38553 # See if we are running on zsh, and set the options which allow our
38554 # commands through without removal of \ escapes INIT.
38555 if test -n "\${ZSH_VERSION+set}" ; then
38556    setopt NO_GLOB_SUBST
38557 fi
38558
38559
38560     PACKAGE='$PACKAGE'
38561     VERSION='$VERSION'
38562     TIMESTAMP='$TIMESTAMP'
38563     RM='$RM'
38564     ofile='$ofile'
38565
38566
38567
38568
38569
38570
38571 _ACEOF
38572
38573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38574
38575 # Handling of arguments.
38576 for ac_config_target in $ac_config_targets
38577 do
38578   case $ac_config_target in
38579     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38580     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38581     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38582     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38583     "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
38584     "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
38585     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
38586     "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
38587     "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
38588     "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
38589     "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
38590     "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
38591     "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
38592     "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
38593     "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
38594     "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
38595     "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
38596     "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
38597     "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
38598     "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
38599     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
38600     "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
38601     "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
38602     "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
38603     "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
38604     "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
38605     "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
38606     "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
38607     "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
38608     "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
38609     "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
38610     "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
38611     "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
38612     "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
38613     "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
38614     "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
38615     "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
38616     "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
38617     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38618     "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
38619     "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
38620     "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
38621     "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
38622     "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
38623     "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
38624     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
38625
38626   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38627   esac
38628 done
38629
38630
38631 # If the user did not use the arguments to specify the items to instantiate,
38632 # then the envvar interface is used.  Set only those that are not.
38633 # We use the long form for the default assignment because of an extremely
38634 # bizarre bug on SunOS 4.1.3.
38635 if $ac_need_defaults; then
38636   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38637   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38638   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38639 fi
38640
38641 # Have a temporary directory for convenience.  Make it in the build tree
38642 # simply because there is no reason against having it here, and in addition,
38643 # creating and moving files from /tmp can sometimes cause problems.
38644 # Hook for its removal unless debugging.
38645 # Note that there is a small window in which the directory will not be cleaned:
38646 # after its creation but before its name has been assigned to `$tmp'.
38647 $debug ||
38648 {
38649   tmp= ac_tmp=
38650   trap 'exit_status=$?
38651   : "${ac_tmp:=$tmp}"
38652   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38653 ' 0
38654   trap 'as_fn_exit 1' 1 2 13 15
38655 }
38656 # Create a (secure) tmp directory for tmp files.
38657
38658 {
38659   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38660   test -d "$tmp"
38661 }  ||
38662 {
38663   tmp=./conf$$-$RANDOM
38664   (umask 077 && mkdir "$tmp")
38665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38666 ac_tmp=$tmp
38667
38668 # Set up the scripts for CONFIG_FILES section.
38669 # No need to generate them if there are no CONFIG_FILES.
38670 # This happens for instance with `./config.status config.h'.
38671 if test -n "$CONFIG_FILES"; then
38672
38673 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
38674   ac_cs_awk_getline=:
38675   ac_cs_awk_pipe_init=
38676   ac_cs_awk_read_file='
38677       while ((getline aline < (F[key])) > 0)
38678         print(aline)
38679       close(F[key])'
38680   ac_cs_awk_pipe_fini=
38681 else
38682   ac_cs_awk_getline=false
38683   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
38684   ac_cs_awk_read_file='
38685       print "|#_!!_#|"
38686       print "cat " F[key] " &&"
38687       '$ac_cs_awk_pipe_init
38688   # The final `:' finishes the AND list.
38689   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
38690 fi
38691 ac_cr=`echo X | tr X '\015'`
38692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38693 # But we know of no other shell where ac_cr would be empty at this
38694 # point, so we can use a bashism as a fallback.
38695 if test "x$ac_cr" = x; then
38696   eval ac_cr=\$\'\\r\'
38697 fi
38698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38700   ac_cs_awk_cr='\\r'
38701 else
38702   ac_cs_awk_cr=$ac_cr
38703 fi
38704
38705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38706 _ACEOF
38707
38708 # Create commands to substitute file output variables.
38709 {
38710   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
38711   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
38712   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
38713   echo "_ACAWK" &&
38714   echo "_ACEOF"
38715 } >conf$$files.sh &&
38716 . ./conf$$files.sh ||
38717   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38718 rm -f conf$$files.sh
38719
38720 {
38721   echo "cat >conf$$subs.awk <<_ACEOF" &&
38722   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38723   echo "_ACEOF"
38724 } >conf$$subs.sh ||
38725   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38727 ac_delim='%!_!# '
38728 for ac_last_try in false false false false false :; do
38729   . ./conf$$subs.sh ||
38730     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38731
38732   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38733   if test $ac_delim_n = $ac_delim_num; then
38734     break
38735   elif $ac_last_try; then
38736     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38737   else
38738     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38739   fi
38740 done
38741 rm -f conf$$subs.sh
38742
38743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38745 _ACEOF
38746 sed -n '
38747 h
38748 s/^/S["/; s/!.*/"]=/
38749 p
38750 g
38751 s/^[^!]*!//
38752 :repl
38753 t repl
38754 s/'"$ac_delim"'$//
38755 t delim
38756 :nl
38757 h
38758 s/\(.\{148\}\)..*/\1/
38759 t more1
38760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38761 p
38762 n
38763 b repl
38764 :more1
38765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38766 p
38767 g
38768 s/.\{148\}//
38769 t nl
38770 :delim
38771 h
38772 s/\(.\{148\}\)..*/\1/
38773 t more2
38774 s/["\\]/\\&/g; s/^/"/; s/$/"/
38775 p
38776 b
38777 :more2
38778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38779 p
38780 g
38781 s/.\{148\}//
38782 t delim
38783 ' <conf$$subs.awk | sed '
38784 /^[^""]/{
38785   N
38786   s/\n//
38787 }
38788 ' >>$CONFIG_STATUS || ac_write_fail=1
38789 rm -f conf$$subs.awk
38790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38791 _ACAWK
38792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38793   for (key in S) S_is_set[key] = 1
38794   FS = "\a"
38795   \$ac_cs_awk_pipe_init
38796 }
38797 {
38798   line = $ 0
38799   nfields = split(line, field, "@")
38800   substed = 0
38801   len = length(field[1])
38802   for (i = 2; i < nfields; i++) {
38803     key = field[i]
38804     keylen = length(key)
38805     if (S_is_set[key]) {
38806       value = S[key]
38807       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38808       len += length(value) + length(field[++i])
38809       substed = 1
38810     } else
38811       len += 1 + keylen
38812   }
38813   if (nfields == 3 && !substed) {
38814     key = field[2]
38815     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
38816       \$ac_cs_awk_read_file
38817       next
38818     }
38819   }
38820   print line
38821 }
38822 \$ac_cs_awk_pipe_fini
38823 _ACAWK
38824 _ACEOF
38825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38827   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38828 else
38829   cat
38830 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38831   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38832 _ACEOF
38833
38834 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38835 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38836 # trailing colons and then remove the whole line if VPATH becomes empty
38837 # (actually we leave an empty line to preserve line numbers).
38838 if test "x$srcdir" = x.; then
38839   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
38840 h
38841 s///
38842 s/^/:/
38843 s/[      ]*$/:/
38844 s/:\$(srcdir):/:/g
38845 s/:\${srcdir}:/:/g
38846 s/:@srcdir@:/:/g
38847 s/^:*//
38848 s/:*$//
38849 x
38850 s/\(=[   ]*\).*/\1/
38851 G
38852 s/\n//
38853 s/^[^=]*=[       ]*$//
38854 }'
38855 fi
38856
38857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38858 fi # test -n "$CONFIG_FILES"
38859
38860 # Set up the scripts for CONFIG_HEADERS section.
38861 # No need to generate them if there are no CONFIG_HEADERS.
38862 # This happens for instance with `./config.status Makefile'.
38863 if test -n "$CONFIG_HEADERS"; then
38864 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38865 BEGIN {
38866 _ACEOF
38867
38868 # Transform confdefs.h into an awk script `defines.awk', embedded as
38869 # here-document in config.status, that substitutes the proper values into
38870 # config.h.in to produce config.h.
38871
38872 # Create a delimiter string that does not exist in confdefs.h, to ease
38873 # handling of long lines.
38874 ac_delim='%!_!# '
38875 for ac_last_try in false false :; do
38876   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38877   if test -z "$ac_tt"; then
38878     break
38879   elif $ac_last_try; then
38880     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38881   else
38882     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38883   fi
38884 done
38885
38886 # For the awk script, D is an array of macro values keyed by name,
38887 # likewise P contains macro parameters if any.  Preserve backslash
38888 # newline sequences.
38889
38890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38891 sed -n '
38892 s/.\{148\}/&'"$ac_delim"'/g
38893 t rset
38894 :rset
38895 s/^[     ]*#[    ]*define[       ][      ]*/ /
38896 t def
38897 d
38898 :def
38899 s/\\$//
38900 t bsnl
38901 s/["\\]/\\&/g
38902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
38903 D["\1"]=" \3"/p
38904 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
38905 d
38906 :bsnl
38907 s/["\\]/\\&/g
38908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
38909 D["\1"]=" \3\\\\\\n"\\/p
38910 t cont
38911 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38912 t cont
38913 d
38914 :cont
38915 n
38916 s/.\{148\}/&'"$ac_delim"'/g
38917 t clear
38918 :clear
38919 s/\\$//
38920 t bsnlc
38921 s/["\\]/\\&/g; s/^/"/; s/$/"/p
38922 d
38923 :bsnlc
38924 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38925 b cont
38926 ' <confdefs.h | sed '
38927 s/'"$ac_delim"'/"\\\
38928 "/g' >>$CONFIG_STATUS || ac_write_fail=1
38929
38930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38931   for (key in D) D_is_set[key] = 1
38932   FS = "\a"
38933 }
38934 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38935   line = \$ 0
38936   split(line, arg, " ")
38937   if (arg[1] == "#") {
38938     defundef = arg[2]
38939     mac1 = arg[3]
38940   } else {
38941     defundef = substr(arg[1], 2)
38942     mac1 = arg[2]
38943   }
38944   split(mac1, mac2, "(") #)
38945   macro = mac2[1]
38946   prefix = substr(line, 1, index(line, defundef) - 1)
38947   if (D_is_set[macro]) {
38948     # Preserve the white space surrounding the "#".
38949     print prefix "define", macro P[macro] D[macro]
38950     next
38951   } else {
38952     # Replace #undef with comments.  This is necessary, for example,
38953     # in the case of _POSIX_SOURCE, which is predefined and required
38954     # on some systems where configure will not decide to define it.
38955     if (defundef == "undef") {
38956       print "/*", prefix defundef, macro, "*/"
38957       next
38958     }
38959   }
38960 }
38961 { print }
38962 _ACAWK
38963 _ACEOF
38964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38965   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38966 fi # test -n "$CONFIG_HEADERS"
38967
38968
38969 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38970 shift
38971 for ac_tag
38972 do
38973   case $ac_tag in
38974   :[FHLC]) ac_mode=$ac_tag; continue;;
38975   esac
38976   case $ac_mode$ac_tag in
38977   :[FHL]*:*);;
38978   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38979   :[FH]-) ac_tag=-:-;;
38980   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38981   esac
38982   ac_save_IFS=$IFS
38983   IFS=:
38984   set x $ac_tag
38985   IFS=$ac_save_IFS
38986   shift
38987   ac_file=$1
38988   shift
38989
38990   case $ac_mode in
38991   :L) ac_source=$1;;
38992   :[FH])
38993     ac_file_inputs=
38994     for ac_f
38995     do
38996       case $ac_f in
38997       -) ac_f="$ac_tmp/stdin";;
38998       *) # Look for the file first in the build tree, then in the source tree
38999          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39000          # because $ac_f cannot contain `:'.
39001          test -f "$ac_f" ||
39002            case $ac_f in
39003            [\\/$]*) false;;
39004            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39005            esac ||
39006            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39007       esac
39008       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39009       as_fn_append ac_file_inputs " '$ac_f'"
39010     done
39011
39012     # Let's still pretend it is `configure' which instantiates (i.e., don't
39013     # use $as_me), people would be surprised to read:
39014     #    /* config.h.  Generated by config.status.  */
39015     configure_input='Generated from '`
39016           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39017         `' by configure.'
39018     if test x"$ac_file" != x-; then
39019       configure_input="$ac_file.  $configure_input"
39020       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39021 $as_echo "$as_me: creating $ac_file" >&6;}
39022     fi
39023     # Neutralize special characters interpreted by sed in replacement strings.
39024     case $configure_input in #(
39025     *\&* | *\|* | *\\* )
39026        ac_sed_conf_input=`$as_echo "$configure_input" |
39027        sed 's/[\\\\&|]/\\\\&/g'`;; #(
39028     *) ac_sed_conf_input=$configure_input;;
39029     esac
39030
39031     case $ac_tag in
39032     *:-:* | *:-) cat >"$ac_tmp/stdin" \
39033       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
39034     esac
39035     ;;
39036   esac
39037
39038   ac_dir=`$as_dirname -- "$ac_file" ||
39039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39040          X"$ac_file" : 'X\(//\)[^/]' \| \
39041          X"$ac_file" : 'X\(//\)$' \| \
39042          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39043 $as_echo X"$ac_file" |
39044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39045             s//\1/
39046             q
39047           }
39048           /^X\(\/\/\)[^/].*/{
39049             s//\1/
39050             q
39051           }
39052           /^X\(\/\/\)$/{
39053             s//\1/
39054             q
39055           }
39056           /^X\(\/\).*/{
39057             s//\1/
39058             q
39059           }
39060           s/.*/./; q'`
39061   as_dir="$ac_dir"; as_fn_mkdir_p
39062   ac_builddir=.
39063
39064 case "$ac_dir" in
39065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39066 *)
39067   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39068   # A ".." for each directory in $ac_dir_suffix.
39069   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39070   case $ac_top_builddir_sub in
39071   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39072   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39073   esac ;;
39074 esac
39075 ac_abs_top_builddir=$ac_pwd
39076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39077 # for backward compatibility:
39078 ac_top_builddir=$ac_top_build_prefix
39079
39080 case $srcdir in
39081   .)  # We are building in place.
39082     ac_srcdir=.
39083     ac_top_srcdir=$ac_top_builddir_sub
39084     ac_abs_top_srcdir=$ac_pwd ;;
39085   [\\/]* | ?:[\\/]* )  # Absolute name.
39086     ac_srcdir=$srcdir$ac_dir_suffix;
39087     ac_top_srcdir=$srcdir
39088     ac_abs_top_srcdir=$srcdir ;;
39089   *) # Relative name.
39090     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39091     ac_top_srcdir=$ac_top_build_prefix$srcdir
39092     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39093 esac
39094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39095
39096
39097   case $ac_mode in
39098   :F)
39099   #
39100   # CONFIG_FILE
39101   #
39102
39103   case $INSTALL in
39104   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39105   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39106   esac
39107   ac_MKDIR_P=$MKDIR_P
39108   case $MKDIR_P in
39109   [\\/$]* | ?:[\\/]* ) ;;
39110   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39111   esac
39112 _ACEOF
39113
39114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39115 # If the template does not know about datarootdir, expand it.
39116 # FIXME: This hack should be removed a few years after 2.60.
39117 ac_datarootdir_hack=; ac_datarootdir_seen=
39118 ac_sed_dataroot='
39119 /datarootdir/ {
39120   p
39121   q
39122 }
39123 /@datadir@/p
39124 /@docdir@/p
39125 /@infodir@/p
39126 /@localedir@/p
39127 /@mandir@/p'
39128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39129 *datarootdir*) ac_datarootdir_seen=yes;;
39130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39131   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39133 _ACEOF
39134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39135   ac_datarootdir_hack='
39136   s&@datadir@&$datadir&g
39137   s&@docdir@&$docdir&g
39138   s&@infodir@&$infodir&g
39139   s&@localedir@&$localedir&g
39140   s&@mandir@&$mandir&g
39141   s&\\\${datarootdir}&$datarootdir&g' ;;
39142 esac
39143 _ACEOF
39144
39145 # Neutralize VPATH when `$srcdir' = `.'.
39146 # Shell code in configure.ac might set extrasub.
39147 # FIXME: do we really want to maintain this feature?
39148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39149 ac_sed_extra="$ac_vpsub
39150 $extrasub
39151 _ACEOF
39152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39153 :t
39154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39155 s|@configure_input@|$ac_sed_conf_input|;t t
39156 s&@top_builddir@&$ac_top_builddir_sub&;t t
39157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
39158 s&@srcdir@&$ac_srcdir&;t t
39159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39160 s&@top_srcdir@&$ac_top_srcdir&;t t
39161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39162 s&@builddir@&$ac_builddir&;t t
39163 s&@abs_builddir@&$ac_abs_builddir&;t t
39164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39165 s&@INSTALL@&$ac_INSTALL&;t t
39166 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39167 $ac_datarootdir_hack
39168 "
39169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
39170 if $ac_cs_awk_getline; then
39171   $AWK -f "$ac_tmp/subs.awk"
39172 else
39173   $AWK -f "$ac_tmp/subs.awk" | $SHELL
39174 fi \
39175   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39176
39177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39178   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39179   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
39180       "$ac_tmp/out"`; test -z "$ac_out"; } &&
39181   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39182 which seems to be undefined.  Please make sure it is defined" >&5
39183 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39184 which seems to be undefined.  Please make sure it is defined" >&2;}
39185
39186   rm -f "$ac_tmp/stdin"
39187   case $ac_file in
39188   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39189   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39190   esac \
39191   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39192  ;;
39193   :H)
39194   #
39195   # CONFIG_HEADER
39196   #
39197   if test x"$ac_file" != x-; then
39198     {
39199       $as_echo "/* $configure_input  */" \
39200       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39201     } >"$ac_tmp/config.h" \
39202       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39203     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39204       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39205 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39206     else
39207       rm -f "$ac_file"
39208       mv "$ac_tmp/config.h" "$ac_file" \
39209         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39210     fi
39211   else
39212     $as_echo "/* $configure_input  */" \
39213       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39214       || as_fn_error $? "could not create -" "$LINENO" 5
39215   fi
39216 # Compute "$ac_file"'s index in $config_headers.
39217 _am_arg="$ac_file"
39218 _am_stamp_count=1
39219 for _am_header in $config_headers :; do
39220   case $_am_header in
39221     $_am_arg | $_am_arg:* )
39222       break ;;
39223     * )
39224       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39225   esac
39226 done
39227 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39228 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39229          X"$_am_arg" : 'X\(//\)[^/]' \| \
39230          X"$_am_arg" : 'X\(//\)$' \| \
39231          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39232 $as_echo X"$_am_arg" |
39233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39234             s//\1/
39235             q
39236           }
39237           /^X\(\/\/\)[^/].*/{
39238             s//\1/
39239             q
39240           }
39241           /^X\(\/\/\)$/{
39242             s//\1/
39243             q
39244           }
39245           /^X\(\/\).*/{
39246             s//\1/
39247             q
39248           }
39249           s/.*/./; q'`/stamp-h$_am_stamp_count
39250  ;;
39251
39252   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39253 $as_echo "$as_me: executing $ac_file commands" >&6;}
39254  ;;
39255   esac
39256
39257
39258   case $ac_file$ac_mode in
39259     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39260   # Older Autoconf quotes --file arguments for eval, but not when files
39261   # are listed without --file.  Let's play safe and only enable the eval
39262   # if we detect the quoting.
39263   case $CONFIG_FILES in
39264   *\'*) eval set x "$CONFIG_FILES" ;;
39265   *)   set x $CONFIG_FILES ;;
39266   esac
39267   shift
39268   for mf
39269   do
39270     # Strip MF so we end up with the name of the file.
39271     mf=`echo "$mf" | sed -e 's/:.*$//'`
39272     # Check whether this is an Automake generated Makefile or not.
39273     # We used to match only the files named 'Makefile.in', but
39274     # some people rename them; so instead we look at the file content.
39275     # Grep'ing the first line is not enough: some people post-process
39276     # each Makefile.in and add a new line on top of each file to say so.
39277     # Grep'ing the whole file is not good either: AIX grep has a line
39278     # limit of 2048, but all sed's we know have understand at least 4000.
39279     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39280       dirpart=`$as_dirname -- "$mf" ||
39281 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39282          X"$mf" : 'X\(//\)[^/]' \| \
39283          X"$mf" : 'X\(//\)$' \| \
39284          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39285 $as_echo X"$mf" |
39286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39287             s//\1/
39288             q
39289           }
39290           /^X\(\/\/\)[^/].*/{
39291             s//\1/
39292             q
39293           }
39294           /^X\(\/\/\)$/{
39295             s//\1/
39296             q
39297           }
39298           /^X\(\/\).*/{
39299             s//\1/
39300             q
39301           }
39302           s/.*/./; q'`
39303     else
39304       continue
39305     fi
39306     # Extract the definition of DEPDIR, am__include, and am__quote
39307     # from the Makefile without running 'make'.
39308     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39309     test -z "$DEPDIR" && continue
39310     am__include=`sed -n 's/^am__include = //p' < "$mf"`
39311     test -z "$am__include" && continue
39312     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39313     # Find all dependency output files, they are included files with
39314     # $(DEPDIR) in their names.  We invoke sed twice because it is the
39315     # simplest approach to changing $(DEPDIR) to its actual value in the
39316     # expansion.
39317     for file in `sed -n "
39318       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39319          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39320       # Make sure the directory exists.
39321       test -f "$dirpart/$file" && continue
39322       fdir=`$as_dirname -- "$file" ||
39323 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39324          X"$file" : 'X\(//\)[^/]' \| \
39325          X"$file" : 'X\(//\)$' \| \
39326          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39327 $as_echo X"$file" |
39328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39329             s//\1/
39330             q
39331           }
39332           /^X\(\/\/\)[^/].*/{
39333             s//\1/
39334             q
39335           }
39336           /^X\(\/\/\)$/{
39337             s//\1/
39338             q
39339           }
39340           /^X\(\/\).*/{
39341             s//\1/
39342             q
39343           }
39344           s/.*/./; q'`
39345       as_dir=$dirpart/$fdir; as_fn_mkdir_p
39346       # echo "creating $dirpart/$file"
39347       echo '# dummy' > "$dirpart/$file"
39348     done
39349   done
39350 }
39351  ;;
39352     "libtool":C)
39353
39354     # See if we are running on zsh, and set the options which allow our
39355     # commands through without removal of \ escapes.
39356     if test -n "${ZSH_VERSION+set}" ; then
39357       setopt NO_GLOB_SUBST
39358     fi
39359
39360     cfgfile="${ofile}T"
39361     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39362     $RM "$cfgfile"
39363
39364     cat <<_LT_EOF >> "$cfgfile"
39365 #! $SHELL
39366
39367 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
39368 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
39369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39370 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39371 #
39372 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
39373 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
39374 #                 Inc.
39375 #   Written by Gordon Matzigkeit, 1996
39376 #
39377 #   This file is part of GNU Libtool.
39378 #
39379 # GNU Libtool is free software; you can redistribute it and/or
39380 # modify it under the terms of the GNU General Public License as
39381 # published by the Free Software Foundation; either version 2 of
39382 # the License, or (at your option) any later version.
39383 #
39384 # As a special exception to the GNU General Public License,
39385 # if you distribute this file as part of a program or library that
39386 # is built using GNU Libtool, you may include this file under the
39387 # same distribution terms that you use for the rest of that program.
39388 #
39389 # GNU Libtool is distributed in the hope that it will be useful,
39390 # but WITHOUT ANY WARRANTY; without even the implied warranty of
39391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39392 # GNU General Public License for more details.
39393 #
39394 # You should have received a copy of the GNU General Public License
39395 # along with GNU Libtool; see the file COPYING.  If not, a copy
39396 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39397 # obtained by writing to the Free Software Foundation, Inc.,
39398 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39399
39400
39401 # The names of the tagged configurations supported by this script.
39402 available_tags="CXX "
39403
39404 # ### BEGIN LIBTOOL CONFIG
39405
39406 # Whether or not to build shared libraries.
39407 build_libtool_libs=$enable_shared
39408
39409 # Which release of libtool.m4 was used?
39410 macro_version=$macro_version
39411 macro_revision=$macro_revision
39412
39413 # Whether or not to build static libraries.
39414 build_old_libs=$enable_static
39415
39416 # What type of objects to build.
39417 pic_mode=$pic_mode
39418
39419 # Whether or not to optimize for fast installation.
39420 fast_install=$enable_fast_install
39421
39422 # Shell to use when invoking shell scripts.
39423 SHELL=$lt_SHELL
39424
39425 # An echo program that protects backslashes.
39426 ECHO=$lt_ECHO
39427
39428 # The host system.
39429 host_alias=$host_alias
39430 host=$host
39431 host_os=$host_os
39432
39433 # The build system.
39434 build_alias=$build_alias
39435 build=$build
39436 build_os=$build_os
39437
39438 # A sed program that does not truncate output.
39439 SED=$lt_SED
39440
39441 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39442 Xsed="\$SED -e 1s/^X//"
39443
39444 # A grep program that handles long lines.
39445 GREP=$lt_GREP
39446
39447 # An ERE matcher.
39448 EGREP=$lt_EGREP
39449
39450 # A literal string matcher.
39451 FGREP=$lt_FGREP
39452
39453 # A BSD- or MS-compatible name lister.
39454 NM=$lt_NM
39455
39456 # Whether we need soft or hard links.
39457 LN_S=$lt_LN_S
39458
39459 # What is the maximum length of a command?
39460 max_cmd_len=$max_cmd_len
39461
39462 # Object file suffix (normally "o").
39463 objext=$ac_objext
39464
39465 # Executable file suffix (normally "").
39466 exeext=$exeext
39467
39468 # whether the shell understands "unset".
39469 lt_unset=$lt_unset
39470
39471 # turn spaces into newlines.
39472 SP2NL=$lt_lt_SP2NL
39473
39474 # turn newlines into spaces.
39475 NL2SP=$lt_lt_NL2SP
39476
39477 # convert \$build file names to \$host format.
39478 to_host_file_cmd=$lt_cv_to_host_file_cmd
39479
39480 # convert \$build files to toolchain format.
39481 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39482
39483 # An object symbol dumper.
39484 OBJDUMP=$lt_OBJDUMP
39485
39486 # Method to check whether dependent libraries are shared objects.
39487 deplibs_check_method=$lt_deplibs_check_method
39488
39489 # Command to use when deplibs_check_method = "file_magic".
39490 file_magic_cmd=$lt_file_magic_cmd
39491
39492 # How to find potential files when deplibs_check_method = "file_magic".
39493 file_magic_glob=$lt_file_magic_glob
39494
39495 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39496 want_nocaseglob=$lt_want_nocaseglob
39497
39498 # DLL creation program.
39499 DLLTOOL=$lt_DLLTOOL
39500
39501 # Command to associate shared and link libraries.
39502 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39503
39504 # The archiver.
39505 AR=$lt_AR
39506
39507 # Flags to create an archive.
39508 AR_FLAGS=$lt_AR_FLAGS
39509
39510 # How to feed a file listing to the archiver.
39511 archiver_list_spec=$lt_archiver_list_spec
39512
39513 # A symbol stripping program.
39514 STRIP=$lt_STRIP
39515
39516 # Commands used to install an old-style archive.
39517 RANLIB=$lt_RANLIB
39518 old_postinstall_cmds=$lt_old_postinstall_cmds
39519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39520
39521 # Whether to use a lock for old archive extraction.
39522 lock_old_archive_extraction=$lock_old_archive_extraction
39523
39524 # A C compiler.
39525 LTCC=$lt_CC
39526
39527 # LTCC compiler flags.
39528 LTCFLAGS=$lt_CFLAGS
39529
39530 # Take the output of nm and produce a listing of raw symbols and C names.
39531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39532
39533 # Transform the output of nm in a proper C declaration.
39534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39535
39536 # Transform the output of nm in a C name address pair.
39537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39538
39539 # Transform the output of nm in a C name address pair when lib prefix is needed.
39540 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39541
39542 # Specify filename containing input files for \$NM.
39543 nm_file_list_spec=$lt_nm_file_list_spec
39544
39545 # The root where to search for dependent libraries,and in which our libraries should be installed.
39546 lt_sysroot=$lt_sysroot
39547
39548 # The name of the directory that contains temporary libtool files.
39549 objdir=$objdir
39550
39551 # Used to examine libraries when file_magic_cmd begins with "file".
39552 MAGIC_CMD=$MAGIC_CMD
39553
39554 # Must we lock files when doing compilation?
39555 need_locks=$lt_need_locks
39556
39557 # Manifest tool.
39558 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39559
39560 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39561 DSYMUTIL=$lt_DSYMUTIL
39562
39563 # Tool to change global to local symbols on Mac OS X.
39564 NMEDIT=$lt_NMEDIT
39565
39566 # Tool to manipulate fat objects and archives on Mac OS X.
39567 LIPO=$lt_LIPO
39568
39569 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39570 OTOOL=$lt_OTOOL
39571
39572 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39573 OTOOL64=$lt_OTOOL64
39574
39575 # Old archive suffix (normally "a").
39576 libext=$libext
39577
39578 # Shared library suffix (normally ".so").
39579 shrext_cmds=$lt_shrext_cmds
39580
39581 # The commands to extract the exported symbol list from a shared archive.
39582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39583
39584 # Variables whose values should be saved in libtool wrapper scripts and
39585 # restored at link time.
39586 variables_saved_for_relink=$lt_variables_saved_for_relink
39587
39588 # Do we need the "lib" prefix for modules?
39589 need_lib_prefix=$need_lib_prefix
39590
39591 # Do we need a version for libraries?
39592 need_version=$need_version
39593
39594 # Library versioning type.
39595 version_type=$version_type
39596
39597 # Shared library runtime path variable.
39598 runpath_var=$runpath_var
39599
39600 # Shared library path variable.
39601 shlibpath_var=$shlibpath_var
39602
39603 # Is shlibpath searched before the hard-coded library search path?
39604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39605
39606 # Format of library name prefix.
39607 libname_spec=$lt_libname_spec
39608
39609 # List of archive names.  First name is the real one, the rest are links.
39610 # The last name is the one that the linker finds with -lNAME
39611 library_names_spec=$lt_library_names_spec
39612
39613 # The coded name of the library, if different from the real name.
39614 soname_spec=$lt_soname_spec
39615
39616 # Permission mode override for installation of shared libraries.
39617 install_override_mode=$lt_install_override_mode
39618
39619 # Command to use after installation of a shared archive.
39620 postinstall_cmds=$lt_postinstall_cmds
39621
39622 # Command to use after uninstallation of a shared archive.
39623 postuninstall_cmds=$lt_postuninstall_cmds
39624
39625 # Commands used to finish a libtool library installation in a directory.
39626 finish_cmds=$lt_finish_cmds
39627
39628 # As "finish_cmds", except a single script fragment to be evaled but
39629 # not shown.
39630 finish_eval=$lt_finish_eval
39631
39632 # Whether we should hardcode library paths into libraries.
39633 hardcode_into_libs=$hardcode_into_libs
39634
39635 # Compile-time system search path for libraries.
39636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39637
39638 # Run-time system search path for libraries.
39639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39640
39641 # Whether dlopen is supported.
39642 dlopen_support=$enable_dlopen
39643
39644 # Whether dlopen of programs is supported.
39645 dlopen_self=$enable_dlopen_self
39646
39647 # Whether dlopen of statically linked programs is supported.
39648 dlopen_self_static=$enable_dlopen_self_static
39649
39650 # Commands to strip libraries.
39651 old_striplib=$lt_old_striplib
39652 striplib=$lt_striplib
39653
39654
39655 # The linker used to build libraries.
39656 LD=$lt_LD
39657
39658 # How to create reloadable object files.
39659 reload_flag=$lt_reload_flag
39660 reload_cmds=$lt_reload_cmds
39661
39662 # Commands used to build an old-style archive.
39663 old_archive_cmds=$lt_old_archive_cmds
39664
39665 # A language specific compiler.
39666 CC=$lt_compiler
39667
39668 # Is the compiler the GNU compiler?
39669 with_gcc=$GCC
39670
39671 # Compiler flag to turn off builtin functions.
39672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39673
39674 # Additional compiler flags for building library objects.
39675 pic_flag=$lt_lt_prog_compiler_pic
39676
39677 # How to pass a linker flag through the compiler.
39678 wl=$lt_lt_prog_compiler_wl
39679
39680 # Compiler flag to prevent dynamic linking.
39681 link_static_flag=$lt_lt_prog_compiler_static
39682
39683 # Does compiler simultaneously support -c and -o options?
39684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39685
39686 # Whether or not to add -lc for building shared libraries.
39687 build_libtool_need_lc=$archive_cmds_need_lc
39688
39689 # Whether or not to disallow shared libs when runtime libs are static.
39690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39691
39692 # Compiler flag to allow reflexive dlopens.
39693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39694
39695 # Compiler flag to generate shared objects directly from archives.
39696 whole_archive_flag_spec=$lt_whole_archive_flag_spec
39697
39698 # Whether the compiler copes with passing no objects directly.
39699 compiler_needs_object=$lt_compiler_needs_object
39700
39701 # Create an old-style archive from a shared archive.
39702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39703
39704 # Create a temporary old-style archive to link instead of a shared archive.
39705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39706
39707 # Commands used to build a shared archive.
39708 archive_cmds=$lt_archive_cmds
39709 archive_expsym_cmds=$lt_archive_expsym_cmds
39710
39711 # Commands used to build a loadable module if different from building
39712 # a shared archive.
39713 module_cmds=$lt_module_cmds
39714 module_expsym_cmds=$lt_module_expsym_cmds
39715
39716 # Whether we are building with GNU ld or not.
39717 with_gnu_ld=$lt_with_gnu_ld
39718
39719 # Flag that allows shared libraries with undefined symbols to be built.
39720 allow_undefined_flag=$lt_allow_undefined_flag
39721
39722 # Flag that enforces no undefined symbols.
39723 no_undefined_flag=$lt_no_undefined_flag
39724
39725 # Flag to hardcode \$libdir into a binary during linking.
39726 # This must work even if \$libdir does not exist
39727 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39728
39729 # If ld is used when linking, flag to hardcode \$libdir into a binary
39730 # during linking.  This must work even if \$libdir does not exist.
39731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
39732
39733 # Whether we need a single "-rpath" flag with a separated argument.
39734 hardcode_libdir_separator=$lt_hardcode_libdir_separator
39735
39736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39737 # DIR into the resulting binary.
39738 hardcode_direct=$hardcode_direct
39739
39740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39741 # DIR into the resulting binary and the resulting library dependency is
39742 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39743 # library is relocated.
39744 hardcode_direct_absolute=$hardcode_direct_absolute
39745
39746 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39747 # into the resulting binary.
39748 hardcode_minus_L=$hardcode_minus_L
39749
39750 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39751 # into the resulting binary.
39752 hardcode_shlibpath_var=$hardcode_shlibpath_var
39753
39754 # Set to "yes" if building a shared library automatically hardcodes DIR
39755 # into the library and all subsequent libraries and executables linked
39756 # against it.
39757 hardcode_automatic=$hardcode_automatic
39758
39759 # Set to yes if linker adds runtime paths of dependent libraries
39760 # to runtime path list.
39761 inherit_rpath=$inherit_rpath
39762
39763 # Whether libtool must link a program against all its dependency libraries.
39764 link_all_deplibs=$link_all_deplibs
39765
39766 # Set to "yes" if exported symbols are required.
39767 always_export_symbols=$always_export_symbols
39768
39769 # The commands to list exported symbols.
39770 export_symbols_cmds=$lt_export_symbols_cmds
39771
39772 # Symbols that should not be listed in the preloaded symbols.
39773 exclude_expsyms=$lt_exclude_expsyms
39774
39775 # Symbols that must always be exported.
39776 include_expsyms=$lt_include_expsyms
39777
39778 # Commands necessary for linking programs (against libraries) with templates.
39779 prelink_cmds=$lt_prelink_cmds
39780
39781 # Commands necessary for finishing linking programs.
39782 postlink_cmds=$lt_postlink_cmds
39783
39784 # Specify filename containing input files.
39785 file_list_spec=$lt_file_list_spec
39786
39787 # How to hardcode a shared library path into an executable.
39788 hardcode_action=$hardcode_action
39789
39790 # The directories searched by this compiler when creating a shared library.
39791 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39792
39793 # Dependencies to place before and after the objects being linked to
39794 # create a shared library.
39795 predep_objects=$lt_predep_objects
39796 postdep_objects=$lt_postdep_objects
39797 predeps=$lt_predeps
39798 postdeps=$lt_postdeps
39799
39800 # The library search path used internally by the compiler when linking
39801 # a shared library.
39802 compiler_lib_search_path=$lt_compiler_lib_search_path
39803
39804 # ### END LIBTOOL CONFIG
39805
39806 _LT_EOF
39807
39808   case $host_os in
39809   aix3*)
39810     cat <<\_LT_EOF >> "$cfgfile"
39811 # AIX sometimes has problems with the GCC collect2 program.  For some
39812 # reason, if we set the COLLECT_NAMES environment variable, the problems
39813 # vanish in a puff of smoke.
39814 if test "X${COLLECT_NAMES+set}" != Xset; then
39815   COLLECT_NAMES=
39816   export COLLECT_NAMES
39817 fi
39818 _LT_EOF
39819     ;;
39820   esac
39821
39822
39823 ltmain="$ac_aux_dir/ltmain.sh"
39824
39825
39826   # We use sed instead of cat because bash on DJGPP gets confused if
39827   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39828   # text mode, it properly converts lines to CR/LF.  This bash problem
39829   # is reportedly fixed, but why not run on old versions too?
39830   sed '$q' "$ltmain" >> "$cfgfile" \
39831      || (rm -f "$cfgfile"; exit 1)
39832
39833   if test x"$xsi_shell" = xyes; then
39834   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39835 func_dirname ()\
39836 {\
39837 \    case ${1} in\
39838 \      */*) func_dirname_result="${1%/*}${2}" ;;\
39839 \      *  ) func_dirname_result="${3}" ;;\
39840 \    esac\
39841 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39842   && mv -f "$cfgfile.tmp" "$cfgfile" \
39843     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39844 test 0 -eq $? || _lt_function_replace_fail=:
39845
39846
39847   sed -e '/^func_basename ()$/,/^} # func_basename /c\
39848 func_basename ()\
39849 {\
39850 \    func_basename_result="${1##*/}"\
39851 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39852   && mv -f "$cfgfile.tmp" "$cfgfile" \
39853     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39854 test 0 -eq $? || _lt_function_replace_fail=:
39855
39856
39857   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39858 func_dirname_and_basename ()\
39859 {\
39860 \    case ${1} in\
39861 \      */*) func_dirname_result="${1%/*}${2}" ;;\
39862 \      *  ) func_dirname_result="${3}" ;;\
39863 \    esac\
39864 \    func_basename_result="${1##*/}"\
39865 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39866   && mv -f "$cfgfile.tmp" "$cfgfile" \
39867     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39868 test 0 -eq $? || _lt_function_replace_fail=:
39869
39870
39871   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39872 func_stripname ()\
39873 {\
39874 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39875 \    # positional parameters, so assign one to ordinary parameter first.\
39876 \    func_stripname_result=${3}\
39877 \    func_stripname_result=${func_stripname_result#"${1}"}\
39878 \    func_stripname_result=${func_stripname_result%"${2}"}\
39879 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39880   && mv -f "$cfgfile.tmp" "$cfgfile" \
39881     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39882 test 0 -eq $? || _lt_function_replace_fail=:
39883
39884
39885   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39886 func_split_long_opt ()\
39887 {\
39888 \    func_split_long_opt_name=${1%%=*}\
39889 \    func_split_long_opt_arg=${1#*=}\
39890 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39891   && mv -f "$cfgfile.tmp" "$cfgfile" \
39892     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39893 test 0 -eq $? || _lt_function_replace_fail=:
39894
39895
39896   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39897 func_split_short_opt ()\
39898 {\
39899 \    func_split_short_opt_arg=${1#??}\
39900 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39901 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39902   && mv -f "$cfgfile.tmp" "$cfgfile" \
39903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39904 test 0 -eq $? || _lt_function_replace_fail=:
39905
39906
39907   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39908 func_lo2o ()\
39909 {\
39910 \    case ${1} in\
39911 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39912 \      *)    func_lo2o_result=${1} ;;\
39913 \    esac\
39914 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39915   && mv -f "$cfgfile.tmp" "$cfgfile" \
39916     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39917 test 0 -eq $? || _lt_function_replace_fail=:
39918
39919
39920   sed -e '/^func_xform ()$/,/^} # func_xform /c\
39921 func_xform ()\
39922 {\
39923     func_xform_result=${1%.*}.lo\
39924 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39925   && mv -f "$cfgfile.tmp" "$cfgfile" \
39926     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39927 test 0 -eq $? || _lt_function_replace_fail=:
39928
39929
39930   sed -e '/^func_arith ()$/,/^} # func_arith /c\
39931 func_arith ()\
39932 {\
39933     func_arith_result=$(( $* ))\
39934 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39935   && mv -f "$cfgfile.tmp" "$cfgfile" \
39936     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39937 test 0 -eq $? || _lt_function_replace_fail=:
39938
39939
39940   sed -e '/^func_len ()$/,/^} # func_len /c\
39941 func_len ()\
39942 {\
39943     func_len_result=${#1}\
39944 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39945   && mv -f "$cfgfile.tmp" "$cfgfile" \
39946     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39947 test 0 -eq $? || _lt_function_replace_fail=:
39948
39949 fi
39950
39951 if test x"$lt_shell_append" = xyes; then
39952   sed -e '/^func_append ()$/,/^} # func_append /c\
39953 func_append ()\
39954 {\
39955     eval "${1}+=\\${2}"\
39956 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39957   && mv -f "$cfgfile.tmp" "$cfgfile" \
39958     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39959 test 0 -eq $? || _lt_function_replace_fail=:
39960
39961
39962   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39963 func_append_quoted ()\
39964 {\
39965 \    func_quote_for_eval "${2}"\
39966 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39967 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39968   && mv -f "$cfgfile.tmp" "$cfgfile" \
39969     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39970 test 0 -eq $? || _lt_function_replace_fail=:
39971
39972
39973   # Save a `func_append' function call where possible by direct use of '+='
39974   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39975     && mv -f "$cfgfile.tmp" "$cfgfile" \
39976       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39977   test 0 -eq $? || _lt_function_replace_fail=:
39978 else
39979   # Save a `func_append' function call even when '+=' is not available
39980   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39981     && mv -f "$cfgfile.tmp" "$cfgfile" \
39982       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39983   test 0 -eq $? || _lt_function_replace_fail=:
39984 fi
39985
39986 if test x"$_lt_function_replace_fail" = x":"; then
39987   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39988 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39989 fi
39990
39991
39992    mv -f "$cfgfile" "$ofile" ||
39993     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39994   chmod +x "$ofile"
39995
39996
39997     cat <<_LT_EOF >> "$ofile"
39998
39999 # ### BEGIN LIBTOOL TAG CONFIG: CXX
40000
40001 # The linker used to build libraries.
40002 LD=$lt_LD_CXX
40003
40004 # How to create reloadable object files.
40005 reload_flag=$lt_reload_flag_CXX
40006 reload_cmds=$lt_reload_cmds_CXX
40007
40008 # Commands used to build an old-style archive.
40009 old_archive_cmds=$lt_old_archive_cmds_CXX
40010
40011 # A language specific compiler.
40012 CC=$lt_compiler_CXX
40013
40014 # Is the compiler the GNU compiler?
40015 with_gcc=$GCC_CXX
40016
40017 # Compiler flag to turn off builtin functions.
40018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
40019
40020 # Additional compiler flags for building library objects.
40021 pic_flag=$lt_lt_prog_compiler_pic_CXX
40022
40023 # How to pass a linker flag through the compiler.
40024 wl=$lt_lt_prog_compiler_wl_CXX
40025
40026 # Compiler flag to prevent dynamic linking.
40027 link_static_flag=$lt_lt_prog_compiler_static_CXX
40028
40029 # Does compiler simultaneously support -c and -o options?
40030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
40031
40032 # Whether or not to add -lc for building shared libraries.
40033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
40034
40035 # Whether or not to disallow shared libs when runtime libs are static.
40036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
40037
40038 # Compiler flag to allow reflexive dlopens.
40039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
40040
40041 # Compiler flag to generate shared objects directly from archives.
40042 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
40043
40044 # Whether the compiler copes with passing no objects directly.
40045 compiler_needs_object=$lt_compiler_needs_object_CXX
40046
40047 # Create an old-style archive from a shared archive.
40048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
40049
40050 # Create a temporary old-style archive to link instead of a shared archive.
40051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
40052
40053 # Commands used to build a shared archive.
40054 archive_cmds=$lt_archive_cmds_CXX
40055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
40056
40057 # Commands used to build a loadable module if different from building
40058 # a shared archive.
40059 module_cmds=$lt_module_cmds_CXX
40060 module_expsym_cmds=$lt_module_expsym_cmds_CXX
40061
40062 # Whether we are building with GNU ld or not.
40063 with_gnu_ld=$lt_with_gnu_ld_CXX
40064
40065 # Flag that allows shared libraries with undefined symbols to be built.
40066 allow_undefined_flag=$lt_allow_undefined_flag_CXX
40067
40068 # Flag that enforces no undefined symbols.
40069 no_undefined_flag=$lt_no_undefined_flag_CXX
40070
40071 # Flag to hardcode \$libdir into a binary during linking.
40072 # This must work even if \$libdir does not exist
40073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
40074
40075 # If ld is used when linking, flag to hardcode \$libdir into a binary
40076 # during linking.  This must work even if \$libdir does not exist.
40077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
40078
40079 # Whether we need a single "-rpath" flag with a separated argument.
40080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
40081
40082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40083 # DIR into the resulting binary.
40084 hardcode_direct=$hardcode_direct_CXX
40085
40086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40087 # DIR into the resulting binary and the resulting library dependency is
40088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
40089 # library is relocated.
40090 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
40091
40092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40093 # into the resulting binary.
40094 hardcode_minus_L=$hardcode_minus_L_CXX
40095
40096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40097 # into the resulting binary.
40098 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
40099
40100 # Set to "yes" if building a shared library automatically hardcodes DIR
40101 # into the library and all subsequent libraries and executables linked
40102 # against it.
40103 hardcode_automatic=$hardcode_automatic_CXX
40104
40105 # Set to yes if linker adds runtime paths of dependent libraries
40106 # to runtime path list.
40107 inherit_rpath=$inherit_rpath_CXX
40108
40109 # Whether libtool must link a program against all its dependency libraries.
40110 link_all_deplibs=$link_all_deplibs_CXX
40111
40112 # Set to "yes" if exported symbols are required.
40113 always_export_symbols=$always_export_symbols_CXX
40114
40115 # The commands to list exported symbols.
40116 export_symbols_cmds=$lt_export_symbols_cmds_CXX
40117
40118 # Symbols that should not be listed in the preloaded symbols.
40119 exclude_expsyms=$lt_exclude_expsyms_CXX
40120
40121 # Symbols that must always be exported.
40122 include_expsyms=$lt_include_expsyms_CXX
40123
40124 # Commands necessary for linking programs (against libraries) with templates.
40125 prelink_cmds=$lt_prelink_cmds_CXX
40126
40127 # Commands necessary for finishing linking programs.
40128 postlink_cmds=$lt_postlink_cmds_CXX
40129
40130 # Specify filename containing input files.
40131 file_list_spec=$lt_file_list_spec_CXX
40132
40133 # How to hardcode a shared library path into an executable.
40134 hardcode_action=$hardcode_action_CXX
40135
40136 # The directories searched by this compiler when creating a shared library.
40137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
40138
40139 # Dependencies to place before and after the objects being linked to
40140 # create a shared library.
40141 predep_objects=$lt_predep_objects_CXX
40142 postdep_objects=$lt_postdep_objects_CXX
40143 predeps=$lt_predeps_CXX
40144 postdeps=$lt_postdeps_CXX
40145
40146 # The library search path used internally by the compiler when linking
40147 # a shared library.
40148 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
40149
40150 # ### END LIBTOOL TAG CONFIG: CXX
40151 _LT_EOF
40152
40153  ;;
40154     "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 ;;
40155     "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
40156     "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
40157     "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
40158     "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
40159     "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
40160     "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
40161     "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
40162     "scripts/ntpver":F) chmod +x scripts/ntpver ;;
40163     "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
40164     "scripts/summary":F) chmod +x scripts/summary ;;
40165     "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
40166
40167   esac
40168 done # for ac_tag
40169
40170
40171 as_fn_exit 0
40172 _ACEOF
40173 ac_clean_files=$ac_clean_files_save
40174
40175 test $ac_write_fail = 0 ||
40176   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40177
40178
40179 # configure is writing to config.log, and then calls config.status.
40180 # config.status does its own redirection, appending to config.log.
40181 # Unfortunately, on DOS this fails, as config.log is still kept open
40182 # by configure, so config.status won't be able to write to it; its
40183 # output is simply discarded.  So we exec the FD to /dev/null,
40184 # effectively closing config.log, so it can be properly (re)opened and
40185 # appended to by config.status.  When coming back to configure, we
40186 # need to make the FD available again.
40187 if test "$no_create" != yes; then
40188   ac_cs_success=:
40189   ac_config_status_args=
40190   test "$silent" = yes &&
40191     ac_config_status_args="$ac_config_status_args --quiet"
40192   exec 5>/dev/null
40193   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40194   exec 5>>config.log
40195   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40196   # would make configure fail if this is the last instruction.
40197   $ac_cs_success || as_fn_exit 1
40198 fi
40199
40200 #
40201 # CONFIG_SUBDIRS section.
40202 #
40203 if test "$no_recursion" != yes; then
40204
40205   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
40206   # so they do not pile up.
40207   ac_sub_configure_args=
40208   ac_prev=
40209   eval "set x $ac_configure_args"
40210   shift
40211   for ac_arg
40212   do
40213     if test -n "$ac_prev"; then
40214       ac_prev=
40215       continue
40216     fi
40217     case $ac_arg in
40218     -cache-file | --cache-file | --cache-fil | --cache-fi \
40219     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40220       ac_prev=cache_file ;;
40221     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40222     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40223     | --c=*)
40224       ;;
40225     --config-cache | -C)
40226       ;;
40227     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40228       ac_prev=srcdir ;;
40229     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40230       ;;
40231     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40232       ac_prev=prefix ;;
40233     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40234       ;;
40235     --disable-option-checking)
40236       ;;
40237     *)
40238       case $ac_arg in
40239       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40240       esac
40241       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
40242     esac
40243   done
40244
40245   # Always prepend --prefix to ensure using the same prefix
40246   # in subdir configurations.
40247   ac_arg="--prefix=$prefix"
40248   case $ac_arg in
40249   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40250   esac
40251   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
40252
40253   # Pass --silent
40254   if test "$silent" = yes; then
40255     ac_sub_configure_args="--silent $ac_sub_configure_args"
40256   fi
40257
40258   # Always prepend --disable-option-checking to silence warnings, since
40259   # different subdirs can have different --enable and --with options.
40260   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
40261
40262   ac_popdir=`pwd`
40263   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40264
40265     # Do not complain, so a configure script can configure whichever
40266     # parts of a large source tree are present.
40267     test -d "$srcdir/$ac_dir" || continue
40268
40269     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40270     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
40271     $as_echo "$ac_msg" >&6
40272     as_dir="$ac_dir"; as_fn_mkdir_p
40273     ac_builddir=.
40274
40275 case "$ac_dir" in
40276 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40277 *)
40278   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40279   # A ".." for each directory in $ac_dir_suffix.
40280   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40281   case $ac_top_builddir_sub in
40282   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40283   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40284   esac ;;
40285 esac
40286 ac_abs_top_builddir=$ac_pwd
40287 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40288 # for backward compatibility:
40289 ac_top_builddir=$ac_top_build_prefix
40290
40291 case $srcdir in
40292   .)  # We are building in place.
40293     ac_srcdir=.
40294     ac_top_srcdir=$ac_top_builddir_sub
40295     ac_abs_top_srcdir=$ac_pwd ;;
40296   [\\/]* | ?:[\\/]* )  # Absolute name.
40297     ac_srcdir=$srcdir$ac_dir_suffix;
40298     ac_top_srcdir=$srcdir
40299     ac_abs_top_srcdir=$srcdir ;;
40300   *) # Relative name.
40301     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40302     ac_top_srcdir=$ac_top_build_prefix$srcdir
40303     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40304 esac
40305 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40306
40307
40308     cd "$ac_dir"
40309
40310     # Check for guested configure; otherwise get Cygnus style configure.
40311     if test -f "$ac_srcdir/configure.gnu"; then
40312       ac_sub_configure=$ac_srcdir/configure.gnu
40313     elif test -f "$ac_srcdir/configure"; then
40314       ac_sub_configure=$ac_srcdir/configure
40315     elif test -f "$ac_srcdir/configure.in"; then
40316       # This should be Cygnus configure.
40317       ac_sub_configure=$ac_aux_dir/configure
40318     else
40319       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
40320 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40321       ac_sub_configure=
40322     fi
40323
40324     # The recursion is here.
40325     if test -n "$ac_sub_configure"; then
40326       # Make the cache file name correct relative to the subdirectory.
40327       case $cache_file in
40328       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40329       *) # Relative name.
40330         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40331       esac
40332
40333       { $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
40334 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40335       # The eval makes quoting arguments work.
40336       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40337            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40338         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
40339     fi
40340
40341     cd "$ac_popdir"
40342   done
40343 fi
40344 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40345   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40346 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40347 fi
40348