Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / configure
blobfa7716da51ab87fa5f04ba1a8e6851e9909afd94
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ntp 4.2.4p8.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
533 case X$ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 esac
540 echo=${ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $echo works!
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<EOF
561 exit 0
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
574 echo_test_string=`eval $cmd` &&
575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
576 then
577 break
579 done
582 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 echo="$dir/echo"
601 break
603 done
604 IFS="$lt_save_ifs"
606 if test "X$echo" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 echo='print -r'
613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 echo='printf %s\n'
624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 echo="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 echo="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
649 then
650 break
652 prev="$cmd"
653 done
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 echo=echo
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 ECHO=$echo
672 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 test -n "$DJDIR" || exec 7<&0 </dev/null
680 exec 6>&1
682 # Name of the host.
683 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
684 # so uname gets run too.
685 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688 # Initializations.
690 ac_default_prefix=/usr/local
691 ac_clean_files=
692 ac_config_libobj_dir=.
693 LIBOBJS=
694 cross_compiling=no
695 subdirs=
696 MFLAGS=
697 MAKEFLAGS=
699 # Identity of this package.
700 PACKAGE_NAME='ntp'
701 PACKAGE_TARNAME='ntp'
702 PACKAGE_VERSION='4.2.4p8'
703 PACKAGE_STRING='ntp 4.2.4p8'
704 PACKAGE_BUGREPORT=''
705 PACKAGE_URL=''
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
743 enable_option_checking=no
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 LSCF
749 MAKE_NTPDSIM
750 MAKE_LIBNTPSIM
751 MAKE_TIMETRIM
752 MAKE_TICKADJ
753 MAKE_NTPTIME
754 MAKE_ADJTIMED
755 CLKTEST
756 CHUTEST
757 PROPDELAY
758 MAKE_PARSEKMODULE
759 DCFD
760 TESTDCF
761 MAKE_CHECK_LAYOUT
762 EF_LIBS
763 EF_PROGS
764 LCRYPTO
765 OPENSSL_LIB
766 OPENSSL_INC
767 OPENSSL
768 MAKE_CHECK_Y2K
769 MAKE_LIBPARSE_KERNEL
770 MAKE_LIBPARSE
771 LIBPARSE
772 HAVE_INLINE
773 ANSI2KNR
775 READLINE_LIBS
776 PATH_PERL
777 PATH_SH
778 LIBTOOL
779 RANLIB
781 ECHO
782 LN_S
783 ARLIB_DIR
784 subdirs
785 BINSUBDIR
786 LIBOPTS_CFLAGS
787 LIBOPTS_LDADD
788 NEED_LIBOPTS_FALSE
789 NEED_LIBOPTS_TRUE
790 INSTALL_LIBOPTS_FALSE
791 INSTALL_LIBOPTS_TRUE
792 LIBOPTS_DIR
793 EGREP
794 GREP
796 am__fastdepCC_FALSE
797 am__fastdepCC_TRUE
798 CCDEPMODE
799 AMDEPBACKSLASH
800 AMDEP_FALSE
801 AMDEP_TRUE
802 am__quote
803 am__include
804 DEPDIR
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 am__untar
821 am__tar
822 AMTAR
823 am__leading_dot
824 SET_MAKE
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 STRIP
830 install_sh
831 MAKEINFO
832 AUTOHEADER
833 AUTOMAKE
834 AUTOCONF
835 ACLOCAL
836 VERSION
837 PACKAGE
838 CYGPATH_W
839 am__isrc
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 target_alias
844 host_alias
845 build_alias
846 LIBS
847 ECHO_T
848 ECHO_N
849 ECHO_C
850 DEFS
851 mandir
852 localedir
853 libdir
854 psdir
855 pdfdir
856 dvidir
857 htmldir
858 infodir
859 docdir
860 oldincludedir
861 includedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_dependency_tracking
885 enable_shared
886 enable_local_libopts
887 enable_libopts_install
888 with_autoopts_config
889 with_regex_header
890 with_libregex
891 with_libregex_cflags
892 with_libregex_libs
893 enable_optional_args
894 with_binsubdir
895 with_arlib
896 with_rpath
897 enable_static
898 enable_fast_install
899 with_gnu_ld
900 enable_libtool_lock
901 with_pic
902 with_tags
903 enable_getifaddrs
904 enable_debugging
905 enable_debug_timing
906 enable_dst_minutes
907 enable_ignore_dns_errors
908 enable_BANCOMM
909 enable_GPSVME
910 enable_all_clocks
911 enable_ACTS
912 enable_ARBITER
913 enable_ARCRON_MSF
914 enable_AS2201
915 enable_ATOM
916 enable_CHRONOLOG
917 enable_CHU
918 enable_AUDIO_CHU
919 enable_DATUM
920 enable_DUMBCLOCK
921 enable_FG
922 enable_HEATH
923 enable_HOPFSERIAL
924 enable_HOPFPCI
925 enable_HPGPS
926 enable_IRIG
927 enable_JJY
928 enable_JUPITER
929 enable_LEITCH
930 enable_LOCAL_CLOCK
931 enable_MX4200
932 enable_NEOCLOCK4X
933 enable_NMEA
934 enable_ONCORE
935 enable_PALISADE
936 enable_PCF
937 enable_PST
938 enable_RIPENCC
939 enable_SHM
940 enable_SPECTRACOM
941 enable_TPRO
942 enable_TRUETIME
943 enable_TT560
944 enable_ULINK
945 enable_WWV
946 enable_ZYFER
947 enable_parse_clocks
948 enable_COMPUTIME
949 enable_DCF7000
950 enable_HOPF6021
951 enable_MEINBERG
952 enable_RAWDCF
953 enable_RCC8000
954 enable_SCHMID
955 enable_TRIMTAIP
956 enable_TRIMTSIP
957 enable_WHARTON
958 enable_VARITEXT
959 with_openssl_libdir
960 with_openssl_incdir
961 with_crypto
962 with_electricfence
963 enable_kmem
964 enable_accurate_adjtime
965 enable_tick
966 enable_tickadj
967 enable_simulator
968 enable_slew_always
969 enable_step_slew
970 enable_ntpdate_step
971 enable_hourly_todr_sync
972 enable_kernel_fll_bug
973 enable_irig_sawtooth
974 enable_nist
975 enable_ntp_signd
976 enable_wintime
977 enable_clockctl
978 enable_linuxcaps
979 enable_ipv6
980 with_kame
982 ac_precious_vars='build_alias
983 host_alias
984 target_alias
986 CFLAGS
987 LDFLAGS
988 LIBS
989 CPPFLAGS
990 CPP'
991 ac_subdirs_all='arlib
992 sntp'
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1049 ac_prev=
1050 continue
1053 case $ac_option in
1054 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055 *) ac_optarg=yes ;;
1056 esac
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1062 ac_dashdash=yes ;;
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 ac_prev=bindir ;;
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1085 ac_prev=datadir ;;
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1113 ac_prev=docdir ;;
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 ac_prev=dvidir ;;
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282 ac_prev=sbindir ;;
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284 | --sbi=* | --sb=*)
1285 sbindir=$ac_optarg ;;
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1290 | --sha | --sh)
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295 | --sha=* | --sh=*)
1296 sharedstatedir=$ac_optarg ;;
1298 -site | --site | --sit)
1299 ac_prev=site ;;
1300 -site=* | --site=* | --sit=*)
1301 site=$ac_optarg ;;
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304 ac_prev=srcdir ;;
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321 verbose=yes ;;
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1326 -with-* | --with-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=\$ac_optarg ;;
1342 -without-* | --without-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error "invalid package name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1351 "with_$ac_useropt"
1352 "*) ;;
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1355 esac
1356 eval with_$ac_useropt=no ;;
1358 --x)
1359 # Obsolete; use --with-x.
1360 with_x=yes ;;
1362 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363 | --x-incl | --x-inc | --x-in | --x-i)
1364 ac_prev=x_includes ;;
1365 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367 x_includes=$ac_optarg ;;
1369 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371 ac_prev=x_libraries ;;
1372 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374 x_libraries=$ac_optarg ;;
1376 -*) as_fn_error "unrecognized option: \`$ac_option'
1377 Try \`$0 --help' for more information."
1380 *=*)
1381 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1382 # Reject names that are not valid shell variable names.
1383 case $ac_envvar in #(
1384 '' | [0-9]* | *[!_$as_cr_alnum]* )
1385 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1386 esac
1387 eval $ac_envvar=\$ac_optarg
1388 export $ac_envvar ;;
1391 # FIXME: should be removed in autoconf 3.0.
1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398 esac
1399 done
1401 if test -n "$ac_prev"; then
1402 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403 as_fn_error "missing argument to $ac_option"
1406 if test -n "$ac_unrecognized_opts"; then
1407 case $enable_option_checking in
1408 no) ;;
1409 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 esac
1414 # Check all directory arguments for consistency.
1415 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1422 case $ac_val in
1423 */ )
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1426 esac
1427 # Be sure to have absolute directory names.
1428 case $ac_val in
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 esac
1432 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1433 done
1435 # There might be people who depend on the old broken behavior: `$host'
1436 # used to hold the argument of --host etc.
1437 # FIXME: To remove some day.
1438 build=$build_alias
1439 host=$host_alias
1440 target=$target_alias
1442 # FIXME: To remove some day.
1443 if test "x$host_alias" != x; then
1444 if test "x$build_alias" = x; then
1445 cross_compiling=maybe
1446 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1447 If a cross compiler is detected then cross compile mode will be used." >&2
1448 elif test "x$build_alias" != "x$host_alias"; then
1449 cross_compiling=yes
1453 ac_tool_prefix=
1454 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456 test "$silent" = yes && exec 6>/dev/null
1459 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1460 ac_ls_di=`ls -di .` &&
1461 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1462 as_fn_error "working directory cannot be determined"
1463 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464 as_fn_error "pwd does not report name of working directory"
1467 # Find the source files, if location was not specified.
1468 if test -z "$srcdir"; then
1469 ac_srcdir_defaulted=yes
1470 # Try the directory containing this script, then the parent directory.
1471 ac_confdir=`$as_dirname -- "$as_myself" ||
1472 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1473 X"$as_myself" : 'X\(//\)[^/]' \| \
1474 X"$as_myself" : 'X\(//\)$' \| \
1475 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1476 $as_echo X"$as_myself" |
1477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478 s//\1/
1481 /^X\(\/\/\)[^/].*/{
1482 s//\1/
1485 /^X\(\/\/\)$/{
1486 s//\1/
1489 /^X\(\/\).*/{
1490 s//\1/
1493 s/.*/./; q'`
1494 srcdir=$ac_confdir
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496 srcdir=..
1498 else
1499 ac_srcdir_defaulted=no
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1503 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1505 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506 ac_abs_confdir=`(
1507 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1508 pwd)`
1509 # When building in place, set srcdir=.
1510 if test "$ac_abs_confdir" = "$ac_pwd"; then
1511 srcdir=.
1513 # Remove unnecessary trailing slashes from srcdir.
1514 # Double slashes in file names in object file debugging info
1515 # mess up M-x gdb in Emacs.
1516 case $srcdir in
1517 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518 esac
1519 for ac_var in $ac_precious_vars; do
1520 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521 eval ac_env_${ac_var}_value=\$${ac_var}
1522 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524 done
1527 # Report the --help message.
1529 if test "$ac_init_help" = "long"; then
1530 # Omit some internal or obsolete options to make the list less imposing.
1531 # This message is too long to be a string in the A/UX 3.1 sh.
1532 cat <<_ACEOF
1533 \`configure' configures ntp 4.2.4p8 to adapt to many kinds of systems.
1535 Usage: $0 [OPTION]... [VAR=VALUE]...
1537 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538 VAR=VALUE. See below for descriptions of some of the useful variables.
1540 Defaults for the options are specified in brackets.
1542 Configuration:
1543 -h, --help display this help and exit
1544 --help=short display options specific to this package
1545 --help=recursive display the short help of all the included packages
1546 -V, --version display version information and exit
1547 -q, --quiet, --silent do not print \`checking...' messages
1548 --cache-file=FILE cache test results in FILE [disabled]
1549 -C, --config-cache alias for \`--cache-file=config.cache'
1550 -n, --no-create do not create output files
1551 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1553 Installation directories:
1554 --prefix=PREFIX install architecture-independent files in PREFIX
1555 [$ac_default_prefix]
1556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1557 [PREFIX]
1559 By default, \`make install' will install all the files in
1560 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1561 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562 for instance \`--prefix=\$HOME'.
1564 For better control, use the options below.
1566 Fine tuning of the installation directories:
1567 --bindir=DIR user executables [EPREFIX/bin]
1568 --sbindir=DIR system admin executables [EPREFIX/sbin]
1569 --libexecdir=DIR program executables [EPREFIX/libexec]
1570 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1571 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1572 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1586 _ACEOF
1588 cat <<\_ACEOF
1590 Program names:
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1595 System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 _ACEOF
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of ntp 4.2.4p8:";;
1604 esac
1605 cat <<\_ACEOF
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-shared[=PKGS] build shared libraries [default=no]
1614 --enable-local-libopts Force using the supplied libopts tearoff code
1615 --disable-libopts-install
1616 Do not install libopts with client installation
1617 --disable-optional-args not wanting optional option args
1618 --enable-static[=PKGS] build static libraries [default=yes]
1619 --enable-fast-install[=PKGS]
1620 optimize for fast installation [default=yes]
1621 --disable-libtool-lock avoid locking (might break parallel builds)
1622 --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]].
1623 glibc: Use getifaddrs() in glibc if you know it
1624 supports IPv6.
1625 --enable-debugging + include debugging code
1626 --enable-debug-timing - include processing time debugging code (costs
1627 performance)
1628 --enable-dst-minutes n minutes per DST adjustment [60]
1629 --enable-ignore-dns-errors
1630 - retry DNS queries on any error
1631 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1632 --enable-GPSVME - TrueTime GPS receiver/VME interface
1633 --enable-all-clocks + include all suitable non-PARSE clocks:
1634 --enable-ACTS s ACTS modem service
1635 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1636 --enable-ARCRON-MSF + Arcron MSF receiver
1637 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1638 --enable-ATOM s ATOM PPS interface
1639 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1640 --enable-CHU + CHU modem/decoder
1641 --enable-AUDIO-CHU s CHU audio/decoder
1642 --enable-DATUM s Datum Programmable Time System
1643 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1644 --enable-FG + Forum Graphic GPS
1645 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1646 --enable-HOPFSERIAL + hopf serial clock device
1647 --enable-HOPFPCI + hopf 6039 PCI board
1648 --enable-HPGPS + HP 58503A GPS receiver
1649 --enable-IRIG s IRIG audio decoder
1650 --enable-JJY + JJY receiver
1651 --enable-JUPITER s Rockwell Jupiter GPS receiver
1652 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1653 --enable-LOCAL-CLOCK + local clock reference
1654 --enable-MX4200 s Magnavox MX4200 GPS receiver
1655 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1656 --enable-NMEA + NMEA GPS receiver
1657 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1658 --enable-PALISADE s Palisade clock
1659 --enable-PCF + Conrad parallel port radio clock
1660 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1661 --enable-RIPENCC - RIPENCC specific Trimble driver
1662 --enable-SHM s SHM clock attached thru shared memory
1663 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1664 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1665 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1666 --enable-TT560 - TrueTime 560 IRIG-B decoder
1667 --enable-ULINK + Ultralink WWVB receiver
1668 --enable-WWV s WWV Audio receiver
1669 --enable-ZYFER + Zyfer GPStarplus receiver
1670 --enable-parse-clocks - include all suitable PARSE clocks:
1671 --enable-COMPUTIME s Diem Computime Radio Clock
1672 --enable-DCF7000 s ELV/DCF7000 clock
1673 --enable-HOPF6021 s HOPF 6021 clock
1674 --enable-MEINBERG s Meinberg clocks
1675 --enable-RAWDCF s DCF77 raw time code
1676 --enable-RCC8000 s RCC 8000 clock
1677 --enable-SCHMID s Schmid DCF77 clock
1678 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1679 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1680 --enable-WHARTON s WHARTON 400A Series clock
1681 --enable-VARITEXT s VARITEXT clock
1682 --enable-kmem s read /dev/kmem for tick and/or tickadj
1683 --enable-accurate-adjtime
1684 s the adjtime() call is accurate
1685 --enable-tick=VALUE s force a value for 'tick'
1686 --enable-tickadj=VALUE s force a value for 'tickadj'
1687 --enable-simulator - build/install the NTPD simulator?
1688 --enable-slew-always s always slew the time
1689 --enable-step-slew s step and slew the time
1690 --enable-ntpdate-step s if ntpdate should step the time
1691 --enable-hourly-todr-sync
1692 s if we should sync TODR hourly
1693 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1694 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1695 --enable-nist - if we should enable the NIST lockclock scheme
1696 --enable-ntp-signd - Provide support for Samba's signing daemon,
1697 =/var/run/ntp_signd
1698 --enable-wintime - Provide the windows symmetric client hack
1699 --enable-clockctl s Use /dev/clockctl for non-root clock control
1700 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1701 --enable-ipv6 s use IPv6?
1703 Optional Packages:
1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1706 --with-autoopts-config specify the config-info script
1707 --with-regex-header a reg expr header is specified
1708 --with-libregex libregex installation prefix
1709 --with-libregex-cflags libregex compile flags
1710 --with-libregex-libs libregex link command arguments
1711 --with-binsubdir bin ={bin,sbin}
1712 --with-arlib - Compile the async resolver library?
1713 --without-rpath s Disable auto-added -R linker paths
1714 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1715 --with-pic try to use only PIC/non-PIC objects [default=use
1716 both]
1717 --with-tags[=TAGS] include additional configurations [automatic]
1718 --with-openssl-libdir + =/something/reasonable
1719 --with-openssl-incdir + =/something/reasonable
1720 --with-crypto + =openssl
1721 --with-electricfence - compile with ElectricFence malloc debugger
1722 --with-kame - =/usr/local/v6
1724 Some influential environment variables:
1725 CC C compiler command
1726 CFLAGS C compiler flags
1727 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1728 nonstandard directory <lib dir>
1729 LIBS libraries to pass to the linker, e.g. -l<library>
1730 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731 you have headers in a nonstandard directory <include dir>
1732 CPP C preprocessor
1734 Use these variables to override the choices made by `configure' or to help
1735 it to find libraries and programs with nonstandard names/locations.
1737 Report bugs to the package provider.
1738 _ACEOF
1739 ac_status=$?
1742 if test "$ac_init_help" = "recursive"; then
1743 # If there are subdirs, report their specific --help.
1744 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1745 test -d "$ac_dir" ||
1746 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1747 continue
1748 ac_builddir=.
1750 case "$ac_dir" in
1751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754 # A ".." for each directory in $ac_dir_suffix.
1755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756 case $ac_top_builddir_sub in
1757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1759 esac ;;
1760 esac
1761 ac_abs_top_builddir=$ac_pwd
1762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir=$ac_top_build_prefix
1766 case $srcdir in
1767 .) # We are building in place.
1768 ac_srcdir=.
1769 ac_top_srcdir=$ac_top_builddir_sub
1770 ac_abs_top_srcdir=$ac_pwd ;;
1771 [\\/]* | ?:[\\/]* ) # Absolute name.
1772 ac_srcdir=$srcdir$ac_dir_suffix;
1773 ac_top_srcdir=$srcdir
1774 ac_abs_top_srcdir=$srcdir ;;
1775 *) # Relative name.
1776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777 ac_top_srcdir=$ac_top_build_prefix$srcdir
1778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1779 esac
1780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1782 cd "$ac_dir" || { ac_status=$?; continue; }
1783 # Check for guested configure.
1784 if test -f "$ac_srcdir/configure.gnu"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787 elif test -f "$ac_srcdir/configure"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure" --help=recursive
1790 else
1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1792 fi || ac_status=$?
1793 cd "$ac_pwd" || { ac_status=$?; break; }
1794 done
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1799 cat <<\_ACEOF
1800 ntp configure 4.2.4p8
1801 generated by GNU Autoconf 2.65
1803 Copyright (C) 2009 Free Software Foundation, Inc.
1804 This configure script is free software; the Free Software Foundation
1805 gives unlimited permission to copy, distribute and modify it.
1806 _ACEOF
1807 exit
1810 ## ------------------------ ##
1811 ## Autoconf initialization. ##
1812 ## ------------------------ ##
1814 # ac_fn_c_try_compile LINENO
1815 # --------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_compile ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext
1821 if { { ac_try="$ac_compile"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=1
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_compile
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_cpp ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev/null && {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_c_try_cpp
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1893 # accordingly.
1894 ac_fn_c_check_header_mongrel ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 else
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_header_compiler=yes
1917 else
1918 ac_header_compiler=no
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_cpp "$LINENO"; then :
1932 ac_header_preproc=yes
1933 else
1934 ac_header_preproc=no
1936 rm -f conftest.err conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942 yes:no: )
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 no:yes:* )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 esac
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 eval "$3=\$ac_header_compiler"
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 } # ac_fn_c_check_header_mongrel
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1980 ac_fn_c_try_run ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2001 ac_status=$?
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=$ac_status
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 as_fn_set_status $ac_retval
2016 } # ac_fn_c_try_run
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$3=yes"
2037 else
2038 eval "$3=no"
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_check_header_compile
2049 # ac_fn_c_try_link LINENO
2050 # -----------------------
2051 # Try to link conftest.$ac_ext, and return whether this succeeded.
2052 ac_fn_c_try_link ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 rm -f conftest.$ac_objext conftest$ac_exeext
2056 if { { ac_try="$ac_link"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_link") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && {
2072 test -z "$ac_c_werror_flag" ||
2073 test ! -s conftest.err
2074 } && test -s conftest$ac_exeext && {
2075 test "$cross_compiling" = yes ||
2076 $as_test_x conftest$ac_exeext
2077 }; then :
2078 ac_retval=0
2079 else
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2083 ac_retval=1
2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087 # interfere with the next link command; also delete a directory that is
2088 # left behind by Apple's compiler. We do this before executing the actions.
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_c_try_link
2095 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2096 # -------------------------------------------
2097 # Tests whether TYPE exists after having included INCLUDES, setting cache
2098 # variable VAR accordingly.
2099 ac_fn_c_check_type ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105 $as_echo_n "(cached) " >&6
2106 else
2107 eval "$3=no"
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 if (sizeof ($2))
2115 return 0;
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2125 main ()
2127 if (sizeof (($2)))
2128 return 0;
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2135 else
2136 eval "$3=yes"
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 eval ac_res=\$$3
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147 } # ac_fn_c_check_type
2149 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2150 # --------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_c_compute_int ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2179 main ()
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2185 return 0;
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2221 main ()
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2227 return 0;
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2232 else
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2235 ac_lo= ac_hi=
2236 break
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 else
2243 ac_lo= ac_hi=
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2261 return 0;
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266 else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2284 main ()
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2297 else
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2309 return 0;
2311 _ACEOF
2312 if ac_fn_c_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315 ac_retval=1
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 as_fn_set_status $ac_retval
2325 } # ac_fn_c_compute_int
2327 # ac_fn_c_check_func LINENO FUNC VAR
2328 # ----------------------------------
2329 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2330 ac_fn_c_check_func ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2340 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2342 #define $2 innocuous_$2
2344 /* System header to define __stub macros and hopefully few prototypes,
2345 which can conflict with char $2 (); below.
2346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2347 <limits.h> exists even on freestanding compilers. */
2349 #ifdef __STDC__
2350 # include <limits.h>
2351 #else
2352 # include <assert.h>
2353 #endif
2355 #undef $2
2357 /* Override any GCC internal prototype to avoid an error.
2358 Use char because int might match the return type of a GCC
2359 builtin and then its argument prototype would still apply. */
2360 #ifdef __cplusplus
2361 extern "C"
2362 #endif
2363 char $2 ();
2364 /* The GNU C library defines this for functions which it implements
2365 to always fail with ENOSYS. Some functions are actually named
2366 something starting with __ and the normal name is an alias. */
2367 #if defined __stub_$2 || defined __stub___$2
2368 choke me
2369 #endif
2372 main ()
2374 return $2 ();
2376 return 0;
2378 _ACEOF
2379 if ac_fn_c_try_link "$LINENO"; then :
2380 eval "$3=yes"
2381 else
2382 eval "$3=no"
2384 rm -f core conftest.err conftest.$ac_objext \
2385 conftest$ac_exeext conftest.$ac_ext
2387 eval ac_res=\$$3
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_check_func
2394 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2395 # ----------------------------------------------------
2396 # Tries to find if the field MEMBER exists in type AGGR, after including
2397 # INCLUDES, setting cache variable VAR accordingly.
2398 ac_fn_c_check_member ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2402 $as_echo_n "checking for $2.$3... " >&6; }
2403 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2410 main ()
2412 static $2 ac_aggr;
2413 if (ac_aggr.$3)
2414 return 0;
2416 return 0;
2418 _ACEOF
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420 eval "$4=yes"
2421 else
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2426 main ()
2428 static $2 ac_aggr;
2429 if (sizeof ac_aggr.$3)
2430 return 0;
2432 return 0;
2434 _ACEOF
2435 if ac_fn_c_try_compile "$LINENO"; then :
2436 eval "$4=yes"
2437 else
2438 eval "$4=no"
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 eval ac_res=\$$4
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 } # ac_fn_c_check_member
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2454 It was created by ntp $as_me 4.2.4p8, which was
2455 generated by GNU Autoconf 2.65. Invocation command line was
2457 $ $0 $@
2459 _ACEOF
2460 exec 5>>config.log
2462 cat <<_ASUNAME
2463 ## --------- ##
2464 ## Platform. ##
2465 ## --------- ##
2467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2484 _ASUNAME
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 $as_echo "PATH: $as_dir"
2492 done
2493 IFS=$as_save_IFS
2495 } >&5
2497 cat >&5 <<_ACEOF
2500 ## ----------- ##
2501 ## Core tests. ##
2502 ## ----------- ##
2504 _ACEOF
2507 # Keep a trace of the command line.
2508 # Strip out --no-create and --no-recursion so they do not pile up.
2509 # Strip out --silent because we don't want to record it for future runs.
2510 # Also quote any args containing shell meta-characters.
2511 # Make two passes to allow for proper duplicate-argument suppression.
2512 ac_configure_args=
2513 ac_configure_args0=
2514 ac_configure_args1=
2515 ac_must_keep_next=false
2516 for ac_pass in 1 2
2518 for ac_arg
2520 case $ac_arg in
2521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2523 | -silent | --silent | --silen | --sile | --sil)
2524 continue ;;
2525 *\'*)
2526 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 esac
2528 case $ac_pass in
2529 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2531 as_fn_append ac_configure_args1 " '$ac_arg'"
2532 if test $ac_must_keep_next = true; then
2533 ac_must_keep_next=false # Got value, back to normal.
2534 else
2535 case $ac_arg in
2536 *=* | --config-cache | -C | -disable-* | --disable-* \
2537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2539 | -with-* | --with-* | -without-* | --without-* | --x)
2540 case "$ac_configure_args0 " in
2541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2542 esac
2544 -* ) ac_must_keep_next=true ;;
2545 esac
2547 as_fn_append ac_configure_args " '$ac_arg'"
2549 esac
2550 done
2551 done
2552 { ac_configure_args0=; unset ac_configure_args0;}
2553 { ac_configure_args1=; unset ac_configure_args1;}
2555 # When interrupted or exit'd, cleanup temporary files, and complete
2556 # config.log. We remove comments because anyway the quotes in there
2557 # would cause problems or look ugly.
2558 # WARNING: Use '\'' to represent an apostrophe within the trap.
2559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2560 trap 'exit_status=$?
2561 # Save into config.log some information that might help in debugging.
2563 echo
2565 cat <<\_ASBOX
2566 ## ---------------- ##
2567 ## Cache variables. ##
2568 ## ---------------- ##
2569 _ASBOX
2570 echo
2571 # The following way of writing the cache mishandles newlines in values,
2573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2574 eval ac_val=\$$ac_var
2575 case $ac_val in #(
2576 *${as_nl}*)
2577 case $ac_var in #(
2578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2580 esac
2581 case $ac_var in #(
2582 _ | IFS | as_nl) ;; #(
2583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2584 *) { eval $ac_var=; unset $ac_var;} ;;
2585 esac ;;
2586 esac
2587 done
2588 (set) 2>&1 |
2589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2590 *${as_nl}ac_space=\ *)
2591 sed -n \
2592 "s/'\''/'\''\\\\'\'''\''/g;
2593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2594 ;; #(
2596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2598 esac |
2599 sort
2601 echo
2603 cat <<\_ASBOX
2604 ## ----------------- ##
2605 ## Output variables. ##
2606 ## ----------------- ##
2607 _ASBOX
2608 echo
2609 for ac_var in $ac_subst_vars
2611 eval ac_val=\$$ac_var
2612 case $ac_val in
2613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614 esac
2615 $as_echo "$ac_var='\''$ac_val'\''"
2616 done | sort
2617 echo
2619 if test -n "$ac_subst_files"; then
2620 cat <<\_ASBOX
2621 ## ------------------- ##
2622 ## File substitutions. ##
2623 ## ------------------- ##
2624 _ASBOX
2625 echo
2626 for ac_var in $ac_subst_files
2628 eval ac_val=\$$ac_var
2629 case $ac_val in
2630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631 esac
2632 $as_echo "$ac_var='\''$ac_val'\''"
2633 done | sort
2634 echo
2637 if test -s confdefs.h; then
2638 cat <<\_ASBOX
2639 ## ----------- ##
2640 ## confdefs.h. ##
2641 ## ----------- ##
2642 _ASBOX
2643 echo
2644 cat confdefs.h
2645 echo
2647 test "$ac_signal" != 0 &&
2648 $as_echo "$as_me: caught signal $ac_signal"
2649 $as_echo "$as_me: exit $exit_status"
2650 } >&5
2651 rm -f core *.core core.conftest.* &&
2652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2653 exit $exit_status
2655 for ac_signal in 1 2 13 15; do
2656 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2657 done
2658 ac_signal=0
2660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2661 rm -f -r conftest* confdefs.h
2663 $as_echo "/* confdefs.h */" > confdefs.h
2665 # Predefined preprocessor variables.
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_NAME "$PACKAGE_NAME"
2669 _ACEOF
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2673 _ACEOF
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2677 _ACEOF
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_STRING "$PACKAGE_STRING"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2685 _ACEOF
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_URL "$PACKAGE_URL"
2689 _ACEOF
2692 # Let the site file select an alternate cache file if it wants to.
2693 # Prefer an explicitly selected file to automatically selected ones.
2694 ac_site_file1=NONE
2695 ac_site_file2=NONE
2696 if test -n "$CONFIG_SITE"; then
2697 ac_site_file1=$CONFIG_SITE
2698 elif test "x$prefix" != xNONE; then
2699 ac_site_file1=$prefix/share/config.site
2700 ac_site_file2=$prefix/etc/config.site
2701 else
2702 ac_site_file1=$ac_default_prefix/share/config.site
2703 ac_site_file2=$ac_default_prefix/etc/config.site
2705 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2707 test "x$ac_site_file" = xNONE && continue
2708 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2710 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2711 sed 's/^/| /' "$ac_site_file" >&5
2712 . "$ac_site_file"
2714 done
2716 if test -r "$cache_file"; then
2717 # Some versions of bash will fail to source /dev/null (special files
2718 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2719 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2721 $as_echo "$as_me: loading cache $cache_file" >&6;}
2722 case $cache_file in
2723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2724 *) . "./$cache_file";;
2725 esac
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2729 $as_echo "$as_me: creating cache $cache_file" >&6;}
2730 >$cache_file
2733 # Check that the precious variables saved in the cache have kept the same
2734 # value.
2735 ac_cache_corrupted=false
2736 for ac_var in $ac_precious_vars; do
2737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2738 eval ac_new_set=\$ac_env_${ac_var}_set
2739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2740 eval ac_new_val=\$ac_env_${ac_var}_value
2741 case $ac_old_set,$ac_new_set in
2742 set,)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2744 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2745 ac_cache_corrupted=: ;;
2746 ,set)
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2748 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2749 ac_cache_corrupted=: ;;
2750 ,);;
2752 if test "x$ac_old_val" != "x$ac_new_val"; then
2753 # differences in whitespace do not lead to failure.
2754 ac_old_val_w=`echo x $ac_old_val`
2755 ac_new_val_w=`echo x $ac_new_val`
2756 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2758 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2759 ac_cache_corrupted=:
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2762 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2763 eval $ac_var=\$ac_old_val
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2766 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2768 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2769 fi;;
2770 esac
2771 # Pass precious variables to config.status.
2772 if test "$ac_new_set" = set; then
2773 case $ac_new_val in
2774 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 *) ac_arg=$ac_var=$ac_new_val ;;
2776 esac
2777 case " $ac_configure_args " in
2778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2779 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2780 esac
2782 done
2783 if $ac_cache_corrupted; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2787 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2788 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2790 ## -------------------- ##
2791 ## Main body of script. ##
2792 ## -------------------- ##
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 am__api_version='1.11'
2803 ac_aux_dir=
2804 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2805 for ac_t in install-sh install.sh shtool; do
2806 if test -f "$ac_dir/$ac_t"; then
2807 ac_aux_dir=$ac_dir
2808 ac_install_sh="$ac_aux_dir/$ac_t -c"
2809 break 2
2811 done
2812 done
2813 if test -z "$ac_aux_dir"; then
2814 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2817 # These three variables are undocumented and unsupported,
2818 # and are intended to be withdrawn in a future Autoconf release.
2819 # They can cause serious problems if a builder's source tree is in a directory
2820 # whose full name contains unusual characters.
2821 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2822 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2823 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2826 # Find a good install program. We prefer a C program (faster),
2827 # so one script is as good as another. But avoid the broken or
2828 # incompatible versions:
2829 # SysV /etc/install, /usr/sbin/install
2830 # SunOS /usr/etc/install
2831 # IRIX /sbin/install
2832 # AIX /bin/install
2833 # AmigaOS /C/install, which installs bootblocks on floppy discs
2834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2837 # OS/2's system install, which has a completely different semantic
2838 # ./install, which can be erroneously created by make from ./install.sh.
2839 # Reject install programs that cannot install multiple files.
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2841 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2842 if test -z "$INSTALL"; then
2843 if test "${ac_cv_path_install+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 # Account for people who put trailing slashes in PATH elements.
2852 case $as_dir/ in #((
2853 ./ | .// | /[cC]/* | \
2854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2855 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2856 /usr/ucb/* ) ;;
2858 # OSF1 and SCO ODT 3.0 have their own names for install.
2859 # Don't use installbsd from OSF since it installs stuff as root
2860 # by default.
2861 for ac_prog in ginstall scoinst install; do
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2864 if test $ac_prog = install &&
2865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # AIX install. It has an incompatible calling convention.
2868 elif test $ac_prog = install &&
2869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # program-specific install script used by HP pwplus--don't use.
2872 else
2873 rm -rf conftest.one conftest.two conftest.dir
2874 echo one > conftest.one
2875 echo two > conftest.two
2876 mkdir conftest.dir
2877 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2878 test -s conftest.one && test -s conftest.two &&
2879 test -s conftest.dir/conftest.one &&
2880 test -s conftest.dir/conftest.two
2881 then
2882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2883 break 3
2887 done
2888 done
2890 esac
2892 done
2893 IFS=$as_save_IFS
2895 rm -rf conftest.one conftest.two conftest.dir
2898 if test "${ac_cv_path_install+set}" = set; then
2899 INSTALL=$ac_cv_path_install
2900 else
2901 # As a last resort, use the slow shell script. Don't cache a
2902 # value for INSTALL within a source directory, because that will
2903 # break other packages using the cache if that directory is
2904 # removed, or if the value is a relative name.
2905 INSTALL=$ac_install_sh
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2909 $as_echo "$INSTALL" >&6; }
2911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2912 # It thinks the first close brace ends the variable substitution.
2913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2920 $as_echo_n "checking whether build environment is sane... " >&6; }
2921 # Just in case
2922 sleep 1
2923 echo timestamp > conftest.file
2924 # Reject unsafe characters in $srcdir or the absolute working directory
2925 # name. Accept space and tab only in the latter.
2926 am_lf='
2928 case `pwd` in
2929 *[\\\"\#\$\&\'\`$am_lf]*)
2930 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2931 esac
2932 case $srcdir in
2933 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2934 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2935 esac
2937 # Do `set' in a subshell so we don't clobber the current shell's
2938 # arguments. Must try -L first in case configure is actually a
2939 # symlink; some systems play weird games with the mod time of symlinks
2940 # (eg FreeBSD returns the mod time of the symlink's containing
2941 # directory).
2942 if (
2943 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2944 if test "$*" = "X"; then
2945 # -L didn't work.
2946 set X `ls -t "$srcdir/configure" conftest.file`
2948 rm -f conftest.file
2949 if test "$*" != "X $srcdir/configure conftest.file" \
2950 && test "$*" != "X conftest.file $srcdir/configure"; then
2952 # If neither matched, then we have a broken ls. This can happen
2953 # if, for instance, CONFIG_SHELL is bash and it inherits a
2954 # broken ls alias from the environment. This has actually
2955 # happened. Such a system could not be considered "sane".
2956 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2957 alias in your environment" "$LINENO" 5
2960 test "$2" = conftest.file
2962 then
2963 # Ok.
2965 else
2966 as_fn_error "newly created file is older than distributed files!
2967 Check your system clock" "$LINENO" 5
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 test "$program_prefix" != NONE &&
2972 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2973 # Use a double $ so make ignores it.
2974 test "$program_suffix" != NONE &&
2975 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2976 # Double any \ or $.
2977 # By default was `s,x,x', remove it if useless.
2978 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2979 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2981 # expand $ac_aux_dir to an absolute path
2982 am_aux_dir=`cd $ac_aux_dir && pwd`
2984 if test x"${MISSING+set}" != xset; then
2985 case $am_aux_dir in
2986 *\ * | *\ *)
2987 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2989 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2990 esac
2992 # Use eval to expand $SHELL
2993 if eval "$MISSING --run true"; then
2994 am_missing_run="$MISSING --run "
2995 else
2996 am_missing_run=
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2998 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3001 if test x"${install_sh}" != xset; then
3002 case $am_aux_dir in
3003 *\ * | *\ *)
3004 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3006 install_sh="\${SHELL} $am_aux_dir/install-sh"
3007 esac
3010 # Installed binaries are usually stripped using `strip' when the user
3011 # run `make install-strip'. However `strip' might not be the right
3012 # tool to use in cross-compilation environments, therefore Automake
3013 # will honor the `STRIP' environment variable to overrule this program.
3014 if test "$cross_compiling" != no; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}strip; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_STRIP+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$STRIP"; then
3024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 STRIP=$ac_cv_prog_STRIP
3044 if test -n "$STRIP"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3046 $as_echo "$STRIP" >&6; }
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3054 if test -z "$ac_cv_prog_STRIP"; then
3055 ac_ct_STRIP=$STRIP
3056 # Extract the first word of "strip", so it can be a program name with args.
3057 set dummy strip; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$ac_ct_STRIP"; then
3064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_STRIP="strip"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3084 if test -n "$ac_ct_STRIP"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3086 $as_echo "$ac_ct_STRIP" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3092 if test "x$ac_ct_STRIP" = x; then
3093 STRIP=":"
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 STRIP=$ac_ct_STRIP
3103 else
3104 STRIP="$ac_cv_prog_STRIP"
3108 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3111 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3112 if test -z "$MKDIR_P"; then
3113 if test "${ac_cv_path_mkdir+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_prog in mkdir gmkdir; do
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3124 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3125 'mkdir (GNU coreutils) '* | \
3126 'mkdir (coreutils) '* | \
3127 'mkdir (fileutils) '4.1*)
3128 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3129 break 3;;
3130 esac
3131 done
3132 done
3133 done
3134 IFS=$as_save_IFS
3138 test -d ./--version && rmdir ./--version
3139 if test "${ac_cv_path_mkdir+set}" = set; then
3140 MKDIR_P="$ac_cv_path_mkdir -p"
3141 else
3142 # As a last resort, use the slow shell script. Don't cache a
3143 # value for MKDIR_P within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the value is a relative name.
3146 MKDIR_P="$ac_install_sh -d"
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3150 $as_echo "$MKDIR_P" >&6; }
3152 mkdir_p="$MKDIR_P"
3153 case $mkdir_p in
3154 [\\/$]* | ?:[\\/]*) ;;
3155 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3156 esac
3158 for ac_prog in gawk mawk nawk awk
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_AWK+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$AWK"; then
3168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_AWK="$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3183 IFS=$as_save_IFS
3187 AWK=$ac_cv_prog_AWK
3188 if test -n "$AWK"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3190 $as_echo "$AWK" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3197 test -n "$AWK" && break
3198 done
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3201 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3202 set x ${MAKE-make}
3203 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3204 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 cat >conftest.make <<\_ACEOF
3208 SHELL = /bin/sh
3209 all:
3210 @echo '@@@%%%=$(MAKE)=@@@%%%'
3211 _ACEOF
3212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3214 *@@@%%%=?*=@@@%%%*)
3215 eval ac_cv_prog_make_${ac_make}_set=yes;;
3217 eval ac_cv_prog_make_${ac_make}_set=no;;
3218 esac
3219 rm -f conftest.make
3221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3224 SET_MAKE=
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 SET_MAKE="MAKE=${MAKE-make}"
3231 rm -rf .tst 2>/dev/null
3232 mkdir .tst 2>/dev/null
3233 if test -d .tst; then
3234 am__leading_dot=.
3235 else
3236 am__leading_dot=_
3238 rmdir .tst 2>/dev/null
3240 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3241 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3242 # is not polluted with repeated "-I."
3243 am__isrc=' -I$(srcdir)'
3244 # test to see if srcdir already configured
3245 if test -f $srcdir/config.status; then
3246 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250 # test whether we have cygpath
3251 if test -z "$CYGPATH_W"; then
3252 if (cygpath --version) >/dev/null 2>/dev/null; then
3253 CYGPATH_W='cygpath -w'
3254 else
3255 CYGPATH_W=echo
3260 # Define the identity of the package.
3261 PACKAGE='ntp'
3262 VERSION='4.2.4p8'
3265 cat >>confdefs.h <<_ACEOF
3266 #define PACKAGE "$PACKAGE"
3267 _ACEOF
3270 cat >>confdefs.h <<_ACEOF
3271 #define VERSION "$VERSION"
3272 _ACEOF
3274 # Some tools Automake needs.
3276 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3279 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3282 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3285 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3288 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3290 # We need awk for the "check" target. The system "awk" is bad on
3291 # some platforms.
3292 # Always define AMTAR for backward compatibility.
3294 AMTAR=${AMTAR-"${am_missing_run}tar"}
3296 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3302 # Make sure we can run config.sub.
3303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3304 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3307 $as_echo_n "checking build system type... " >&6; }
3308 if test "${ac_cv_build+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_build_alias=$build_alias
3312 test "x$ac_build_alias" = x &&
3313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3314 test "x$ac_build_alias" = x &&
3315 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3317 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3321 $as_echo "$ac_cv_build" >&6; }
3322 case $ac_cv_build in
3323 *-*-*) ;;
3324 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3325 esac
3326 build=$ac_cv_build
3327 ac_save_IFS=$IFS; IFS='-'
3328 set x $ac_cv_build
3329 shift
3330 build_cpu=$1
3331 build_vendor=$2
3332 shift; shift
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3335 build_os=$*
3336 IFS=$ac_save_IFS
3337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3341 $as_echo_n "checking host system type... " >&6; }
3342 if test "${ac_cv_host+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test "x$host_alias" = x; then
3346 ac_cv_host=$ac_cv_build
3347 else
3348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3349 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3354 $as_echo "$ac_cv_host" >&6; }
3355 case $ac_cv_host in
3356 *-*-*) ;;
3357 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3358 esac
3359 host=$ac_cv_host
3360 ac_save_IFS=$IFS; IFS='-'
3361 set x $ac_cv_host
3362 shift
3363 host_cpu=$1
3364 host_vendor=$2
3365 shift; shift
3366 # Remember, the first character of IFS is used to create $*,
3367 # except with old shells:
3368 host_os=$*
3369 IFS=$ac_save_IFS
3370 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3374 cat >>confdefs.h <<_ACEOF
3375 #define STR_SYSTEM "$host"
3376 _ACEOF
3378 ac_config_headers="$ac_config_headers config.h"
3382 ac_cv_var_atom_ok=no
3383 ac_cv_var_oncore_ok=no
3384 ac_cv_var_parse_ok=no
3385 ac_cv_var_ripe_ncc_ok=no
3386 ac_cv_var_jupiter_ok=no
3388 iCFLAGS="$CFLAGS"
3390 DEPDIR="${am__leading_dot}deps"
3392 ac_config_commands="$ac_config_commands depfiles"
3395 am_make=${MAKE-make}
3396 cat > confinc << 'END'
3397 am__doit:
3398 @echo this is the am__doit target
3399 .PHONY: am__doit
3401 # If we don't find an include directive, just comment out the code.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3403 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3404 am__include="#"
3405 am__quote=
3406 _am_result=none
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # Ignore all kinds of additional output from `make'.
3410 case `$am_make -s -f confmf 2> /dev/null` in #(
3411 *the\ am__doit\ target*)
3412 am__include=include
3413 am__quote=
3414 _am_result=GNU
3416 esac
3417 # Now try BSD make style include.
3418 if test "$am__include" = "#"; then
3419 echo '.include "confinc"' > confmf
3420 case `$am_make -s -f confmf 2> /dev/null` in #(
3421 *the\ am__doit\ target*)
3422 am__include=.include
3423 am__quote="\""
3424 _am_result=BSD
3426 esac
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3431 $as_echo "$_am_result" >&6; }
3432 rm -f confinc confmf
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then :
3436 enableval=$enable_dependency_tracking;
3439 if test "x$enable_dependency_tracking" != xno; then
3440 am_depcomp="$ac_aux_dir/depcomp"
3441 AMDEPBACKSLASH='\'
3443 if test "x$enable_dependency_tracking" != xno; then
3444 AMDEP_TRUE=
3445 AMDEP_FALSE='#'
3446 else
3447 AMDEP_TRUE='#'
3448 AMDEP_FALSE=
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3481 IFS=$as_save_IFS
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3496 if test -z "$ac_cv_prog_CC"; then
3497 ac_ct_CC=$CC
3498 # Extract the first word of "gcc", so it can be a program name with args.
3499 set dummy gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC="gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3534 if test "x$ac_ct_CC" = x; then
3535 CC=""
3536 else
3537 case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3545 else
3546 CC="$ac_cv_prog_CC"
3549 if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}cc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 # Extract the first word of "cc", so it can be a program name with args.
3592 set dummy cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 ac_prog_rejected=no
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610 ac_prog_rejected=yes
3611 continue
3613 ac_cv_prog_CC="cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3624 shift
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3629 shift
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$CC" && break
3688 done
3690 if test -z "$CC"; then
3691 ac_ct_CC=$CC
3692 for ac_prog in cl.exe
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC="$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3731 test -n "$ac_ct_CC" && break
3732 done
3734 if test "x$ac_ct_CC" = x; then
3735 CC=""
3736 else
3737 case $cross_compiling:$ac_tool_warned in
3738 yes:)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3741 ac_tool_warned=yes ;;
3742 esac
3743 CC=$ac_ct_CC
3750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error "no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." "$LINENO" 5; }
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760 { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768 ac_status=$?
3769 if test -s conftest.err; then
3770 sed '10a\
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3775 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 done
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3797 $as_echo_n "checking whether the C compiler works... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3806 case $ac_file in
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809 esac
3810 done
3811 rm -f $ac_rmfiles
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3821 ac_status=$?
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3835 [ab].out )
3836 # We found the default executable, but exeext='' is most
3837 # certainly right.
3838 break;;
3839 *.* )
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841 then :; else
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3848 # actually working.
3849 break;;
3851 break;;
3852 esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3856 else
3857 ac_file=''
3859 if test -z "$ac_file"; then :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details." "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdio.h>
3925 main ()
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3931 return 0;
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details." "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if test "${ac_cv_objext+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015 done
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details." "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4047 return 0;
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_compiler_gnu=yes
4052 else
4053 ac_compiler_gnu=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062 GCC=yes
4063 else
4064 GCC=
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if test "${ac_cv_prog_cc_g+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 else
4091 CFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4105 else
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 #include <sys/types.h>
4158 #include <sys/stat.h>
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4163 char **p;
4164 int i;
4166 return p[i];
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4170 char *s;
4171 va_list v;
4172 va_start (v,p);
4173 s = g (p, va_arg (v,int));
4174 va_end (v);
4175 return s;
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4189 #define FOO(x) 'x'
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4196 int argc;
4197 char **argv;
4199 main ()
4201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 return 0;
4205 _ACEOF
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_c89=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext
4214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 done
4216 rm -f conftest.$ac_ext
4217 CC=$ac_save_CC
4220 # AC_CACHE_VAL
4221 case "x$ac_cv_prog_cc_c89" in
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4225 xno)
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4229 CC="$CC $ac_cv_prog_cc_c89"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 esac
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 depcc="$CC" am_compiler_list=
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246 $as_echo_n "checking dependency style of $depcc... " >&6; }
4247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251 # We make a subdir and do the tests there. Otherwise we can end up
4252 # making bogus files that we don't know about and never remove. For
4253 # instance it was reported that on HP-UX the gcc test will end up
4254 # making a dummy file named `D' -- because `-MD' means `put the output
4255 # in D'.
4256 mkdir conftest.dir
4257 # Copy depcomp to subdir because otherwise we won't find it if we're
4258 # using a relative directory.
4259 cp "$am_depcomp" conftest.dir
4260 cd conftest.dir
4261 # We will build objects and dependencies in a subdirectory because
4262 # it helps to detect inapplicable dependency modes. For instance
4263 # both Tru64's cc and ICC support -MD to output dependencies as a
4264 # side effect of compilation, but ICC will put the dependencies in
4265 # the current directory while Tru64 will put them in the object
4266 # directory.
4267 mkdir sub
4269 am_cv_CC_dependencies_compiler_type=none
4270 if test "$am_compiler_list" = ""; then
4271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4273 am__universal=false
4274 case " $depcc " in #(
4275 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4276 esac
4278 for depmode in $am_compiler_list; do
4279 # Setup a source with many dependencies, because some compilers
4280 # like to wrap large dependency lists on column 80 (with \), and
4281 # we should not choose a depcomp mode which is confused by this.
4283 # We need to recreate these files for each test, as the compiler may
4284 # overwrite some of them when testing with obscure command lines.
4285 # This happens at least with the AIX C compiler.
4286 : > sub/conftest.c
4287 for i in 1 2 3 4 5 6; do
4288 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4289 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4290 # Solaris 8's {/usr,}/bin/sh.
4291 touch sub/conftst$i.h
4292 done
4293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4295 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4296 # mode. It turns out that the SunPro C++ compiler does not properly
4297 # handle `-M -o', and we need to detect this. Also, some Intel
4298 # versions had trouble with output in subdirs
4299 am__obj=sub/conftest.${OBJEXT-o}
4300 am__minus_obj="-o $am__obj"
4301 case $depmode in
4302 gcc)
4303 # This depmode causes a compiler race in universal mode.
4304 test "$am__universal" = false || continue
4306 nosideeffect)
4307 # after this tag, mechanisms are not by side-effect, so they'll
4308 # only be used when explicitly requested
4309 if test "x$enable_dependency_tracking" = xyes; then
4310 continue
4311 else
4312 break
4315 msvisualcpp | msvcmsys)
4316 # This compiler won't grok `-c -o', but also, the minuso test has
4317 # not run yet. These depmodes are late enough in the game, and
4318 # so weak that their functioning should not be impacted.
4319 am__obj=conftest.${OBJEXT-o}
4320 am__minus_obj=
4322 none) break ;;
4323 esac
4324 if depmode=$depmode \
4325 source=sub/conftest.c object=$am__obj \
4326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4327 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4328 >/dev/null 2>conftest.err &&
4329 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4330 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4331 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4332 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4333 # icc doesn't choke on unknown options, it will just issue warnings
4334 # or remarks (even with -Werror). So we grep stderr for any message
4335 # that says an option was ignored or not supported.
4336 # When given -MP, icc 7.0 and 7.1 complain thusly:
4337 # icc: Command line warning: ignoring option '-M'; no argument required
4338 # The diagnosis changed in icc 8.0:
4339 # icc: Command line remark: option '-MP' not supported
4340 if (grep 'ignoring option' conftest.err ||
4341 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4342 am_cv_CC_dependencies_compiler_type=$depmode
4343 break
4346 done
4348 cd ..
4349 rm -rf conftest.dir
4350 else
4351 am_cv_CC_dependencies_compiler_type=none
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4356 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4357 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4360 test "x$enable_dependency_tracking" != xno \
4361 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4362 am__fastdepCC_TRUE=
4363 am__fastdepCC_FALSE='#'
4364 else
4365 am__fastdepCC_TRUE='#'
4366 am__fastdepCC_FALSE=
4371 ac_ext=c
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4378 # On Suns, sometimes $CPP names a directory.
4379 if test -n "$CPP" && test -d "$CPP"; then
4380 CPP=
4382 if test -z "$CPP"; then
4383 if test "${ac_cv_prog_CPP+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 # Double quotes because CPP needs to be expanded
4387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4389 ac_preproc_ok=false
4390 for ac_c_preproc_warn_flag in '' yes
4392 # Use a header file that comes with gcc, so configuring glibc
4393 # with a fresh cross-compiler works.
4394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395 # <limits.h> exists even on freestanding compilers.
4396 # On the NeXT, cc -E runs the code through the compiler's parser,
4397 # not just through cpp. "Syntax error" is here to catch this case.
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 #ifdef __STDC__
4401 # include <limits.h>
4402 #else
4403 # include <assert.h>
4404 #endif
4405 Syntax error
4406 _ACEOF
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4409 else
4410 # Broken: fails on valid input.
4411 continue
4413 rm -f conftest.err conftest.$ac_ext
4415 # OK, works on sane cases. Now check whether nonexistent headers
4416 # can be detected and how.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <ac_nonexistent.h>
4420 _ACEOF
4421 if ac_fn_c_try_cpp "$LINENO"; then :
4422 # Broken: success on invalid input.
4423 continue
4424 else
4425 # Passes both tests.
4426 ac_preproc_ok=:
4427 break
4429 rm -f conftest.err conftest.$ac_ext
4431 done
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then :
4435 break
4438 done
4439 ac_cv_prog_CPP=$CPP
4442 CPP=$ac_cv_prog_CPP
4443 else
4444 ac_cv_prog_CPP=$CPP
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4447 $as_echo "$CPP" >&6; }
4448 ac_preproc_ok=false
4449 for ac_c_preproc_warn_flag in '' yes
4451 # Use a header file that comes with gcc, so configuring glibc
4452 # with a fresh cross-compiler works.
4453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 # <limits.h> exists even on freestanding compilers.
4455 # On the NeXT, cc -E runs the code through the compiler's parser,
4456 # not just through cpp. "Syntax error" is here to catch this case.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #ifdef __STDC__
4460 # include <limits.h>
4461 #else
4462 # include <assert.h>
4463 #endif
4464 Syntax error
4465 _ACEOF
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4468 else
4469 # Broken: fails on valid input.
4470 continue
4472 rm -f conftest.err conftest.$ac_ext
4474 # OK, works on sane cases. Now check whether nonexistent headers
4475 # can be detected and how.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478 #include <ac_nonexistent.h>
4479 _ACEOF
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4481 # Broken: success on invalid input.
4482 continue
4483 else
4484 # Passes both tests.
4485 ac_preproc_ok=:
4486 break
4488 rm -f conftest.err conftest.$ac_ext
4490 done
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then :
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 "C preprocessor \"$CPP\" fails sanity check
4499 See \`config.log' for more details." "$LINENO" 5; }
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511 if test "${ac_cv_path_GREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -z "$GREP"; then
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in grep ggrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4529 *GNU*)
4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4532 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
4534 while :
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP="$ac_path_GREP"
4546 ac_path_GREP_max=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4554 $ac_path_GREP_found && break 3
4555 done
4556 done
4557 done
4558 IFS=$as_save_IFS
4559 if test -z "$ac_cv_path_GREP"; then
4560 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562 else
4563 ac_cv_path_GREP=$GREP
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568 $as_echo "$ac_cv_path_GREP" >&6; }
4569 GREP="$ac_cv_path_GREP"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573 $as_echo_n "checking for egrep... " >&6; }
4574 if test "${ac_cv_path_EGREP+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4578 then ac_cv_path_EGREP="$GREP -E"
4579 else
4580 if test -z "$EGREP"; then
4581 ac_path_EGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in egrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4592 # Check for GNU ac_path_EGREP and select it if it is found.
4593 # Check for GNU $ac_path_EGREP
4594 case `"$ac_path_EGREP" --version 2>&1` in
4595 *GNU*)
4596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'EGREP' >> "conftest.nl"
4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_EGREP="$ac_path_EGREP"
4612 ac_path_EGREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4620 $ac_path_EGREP_found && break 3
4621 done
4622 done
4623 done
4624 IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_EGREP"; then
4626 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 else
4629 ac_cv_path_EGREP=$EGREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635 $as_echo "$ac_cv_path_EGREP" >&6; }
4636 EGREP="$ac_cv_path_EGREP"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4640 $as_echo_n "checking for ANSI C header files... " >&6; }
4641 if test "${ac_cv_header_stdc+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 #include <stdlib.h>
4647 #include <stdarg.h>
4648 #include <string.h>
4649 #include <float.h>
4652 main ()
4656 return 0;
4658 _ACEOF
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_header_stdc=yes
4661 else
4662 ac_cv_header_stdc=no
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $ac_cv_header_stdc = yes; then
4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670 #include <string.h>
4672 _ACEOF
4673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "memchr" >/dev/null 2>&1; then :
4676 else
4677 ac_cv_header_stdc=no
4679 rm -f conftest*
4683 if test $ac_cv_header_stdc = yes; then
4684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <stdlib.h>
4689 _ACEOF
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 $EGREP "free" >/dev/null 2>&1; then :
4693 else
4694 ac_cv_header_stdc=no
4696 rm -f conftest*
4700 if test $ac_cv_header_stdc = yes; then
4701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4702 if test "$cross_compiling" = yes; then :
4704 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <ctype.h>
4708 #include <stdlib.h>
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 #else
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718 #endif
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4722 main ()
4724 int i;
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4728 return 2;
4729 return 0;
4731 _ACEOF
4732 if ac_fn_c_try_run "$LINENO"; then :
4734 else
4735 ac_cv_header_stdc=no
4737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4738 conftest.$ac_objext conftest.beam conftest.$ac_ext
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4744 $as_echo "$ac_cv_header_stdc" >&6; }
4745 if test $ac_cv_header_stdc = yes; then
4747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4754 do :
4755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4758 eval as_val=\$$as_ac_Header
4759 if test "x$as_val" = x""yes; then :
4760 cat >>confdefs.h <<_ACEOF
4761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762 _ACEOF
4766 done
4770 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4771 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4772 MINIX=yes
4773 else
4774 MINIX=
4778 if test "$MINIX" = yes; then
4780 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4783 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4786 $as_echo "#define _MINIX 1" >>confdefs.h
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4792 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4793 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4799 # define __EXTENSIONS__ 1
4800 $ac_includes_default
4802 main ()
4806 return 0;
4808 _ACEOF
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_safe_to_define___extensions__=yes
4811 else
4812 ac_cv_safe_to_define___extensions__=no
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4817 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4818 test $ac_cv_safe_to_define___extensions__ = yes &&
4819 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4821 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4823 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4825 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4827 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4833 # So far, the only shared library we might use is libopts.
4834 # It's a small library - we might as well use a static version of it.
4835 # Check whether --enable-shared was given.
4836 if test "${enable_shared+set}" = set; then :
4837 enableval=$enable_shared; p=${PACKAGE-default}
4838 case $enableval in
4839 yes) enable_shared=yes ;;
4840 no) enable_shared=no ;;
4842 enable_shared=no
4843 # Look at the argument we got. We use all the common list separators.
4844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4845 for pkg in $enableval; do
4846 IFS="$lt_save_ifs"
4847 if test "X$pkg" = "X$p"; then
4848 enable_shared=yes
4850 done
4851 IFS="$lt_save_ifs"
4853 esac
4854 else
4855 enable_shared=no
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_CC+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$CC"; then
4875 ac_cv_prog_CC="$CC" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4894 CC=$ac_cv_prog_CC
4895 if test -n "$CC"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4897 $as_echo "$CC" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_CC"; then
4906 ac_ct_CC=$CC
4907 # Extract the first word of "gcc", so it can be a program name with args.
4908 set dummy gcc; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_CC="gcc"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_CC" = x; then
4944 CC=""
4945 else
4946 case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 CC=$ac_ct_CC
4954 else
4955 CC="$ac_cv_prog_CC"
4958 if test -z "$CC"; then
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}cc; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_CC+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$CC"; then
4968 ac_cv_prog_CC="$CC" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_CC="${ac_tool_prefix}cc"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4987 CC=$ac_cv_prog_CC
4988 if test -n "$CC"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4990 $as_echo "$CC" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4999 if test -z "$CC"; then
5000 # Extract the first word of "cc", so it can be a program name with args.
5001 set dummy cc; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_CC+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$CC"; then
5008 ac_cv_prog_CC="$CC" # Let the user override the test.
5009 else
5010 ac_prog_rejected=no
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5019 ac_prog_rejected=yes
5020 continue
5022 ac_cv_prog_CC="cc"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5030 if test $ac_prog_rejected = yes; then
5031 # We found a bogon in the path, so make sure we never use it.
5032 set dummy $ac_cv_prog_CC
5033 shift
5034 if test $# != 0; then
5035 # We chose a different compiler from the bogus one.
5036 # However, it has the same basename, so the bogon will be chosen
5037 # first if we set CC to just the basename; use the full file name.
5038 shift
5039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5044 CC=$ac_cv_prog_CC
5045 if test -n "$CC"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5047 $as_echo "$CC" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5055 if test -z "$CC"; then
5056 if test -n "$ac_tool_prefix"; then
5057 for ac_prog in cl.exe
5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_prog_CC+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if test -n "$CC"; then
5067 ac_cv_prog_CC="$CC" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5080 done
5081 done
5082 IFS=$as_save_IFS
5086 CC=$ac_cv_prog_CC
5087 if test -n "$CC"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5089 $as_echo "$CC" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5096 test -n "$CC" && break
5097 done
5099 if test -z "$CC"; then
5100 ac_ct_CC=$CC
5101 for ac_prog in cl.exe
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$ac_ct_CC"; then
5111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_ac_ct_CC="$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5131 if test -n "$ac_ct_CC"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5133 $as_echo "$ac_ct_CC" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 test -n "$ac_ct_CC" && break
5141 done
5143 if test "x$ac_ct_CC" = x; then
5144 CC=""
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152 CC=$ac_ct_CC
5159 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5161 as_fn_error "no acceptable C compiler found in \$PATH
5162 See \`config.log' for more details." "$LINENO" 5; }
5164 # Provide some information about the compiler.
5165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5166 set X $ac_compile
5167 ac_compiler=$2
5168 for ac_option in --version -v -V -qversion; do
5169 { { ac_try="$ac_compiler $ac_option >&5"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175 $as_echo "$ac_try_echo"; } >&5
5176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5177 ac_status=$?
5178 if test -s conftest.err; then
5179 sed '10a\
5180 ... rest of stderr output deleted ...
5181 10q' conftest.err >conftest.er1
5182 cat conftest.er1 >&5
5184 rm -f conftest.er1 conftest.err
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }
5187 done
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5190 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5191 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5198 main ()
5200 #ifndef __GNUC__
5201 choke me
5202 #endif
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 ac_compiler_gnu=yes
5210 else
5211 ac_compiler_gnu=no
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5218 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5219 if test $ac_compiler_gnu = yes; then
5220 GCC=yes
5221 else
5222 GCC=
5224 ac_test_CFLAGS=${CFLAGS+set}
5225 ac_save_CFLAGS=$CFLAGS
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5227 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5228 if test "${ac_cv_prog_cc_g+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 ac_save_c_werror_flag=$ac_c_werror_flag
5232 ac_c_werror_flag=yes
5233 ac_cv_prog_cc_g=no
5234 CFLAGS="-g"
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5239 main ()
5243 return 0;
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247 ac_cv_prog_cc_g=yes
5248 else
5249 CFLAGS=""
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5263 else
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5265 CFLAGS="-g"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5270 main ()
5274 return 0;
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_prog_cc_g=yes
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 ac_c_werror_flag=$ac_save_c_werror_flag
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5288 $as_echo "$ac_cv_prog_cc_g" >&6; }
5289 if test "$ac_test_CFLAGS" = set; then
5290 CFLAGS=$ac_save_CFLAGS
5291 elif test $ac_cv_prog_cc_g = yes; then
5292 if test "$GCC" = yes; then
5293 CFLAGS="-g -O2"
5294 else
5295 CFLAGS="-g"
5297 else
5298 if test "$GCC" = yes; then
5299 CFLAGS="-O2"
5300 else
5301 CFLAGS=
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5306 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 ac_cv_prog_cc_c89=no
5310 ac_save_CC=$CC
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #include <stdarg.h>
5314 #include <stdio.h>
5315 #include <sys/types.h>
5316 #include <sys/stat.h>
5317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5318 struct buf { int x; };
5319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5320 static char *e (p, i)
5321 char **p;
5322 int i;
5324 return p[i];
5326 static char *f (char * (*g) (char **, int), char **p, ...)
5328 char *s;
5329 va_list v;
5330 va_start (v,p);
5331 s = g (p, va_arg (v,int));
5332 va_end (v);
5333 return s;
5336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5337 function prototypes and stuff, but not '\xHH' hex character constants.
5338 These don't provoke an error unfortunately, instead are silently treated
5339 as 'x'. The following induces an error, until -std is added to get
5340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5341 array size at least. It's necessary to write '\x00'==0 to get something
5342 that's true only with -std. */
5343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5346 inside strings and character constants. */
5347 #define FOO(x) 'x'
5348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5350 int test (int i, double x);
5351 struct s1 {int (*f) (int a);};
5352 struct s2 {int (*f) (double a);};
5353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5354 int argc;
5355 char **argv;
5357 main ()
5359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5361 return 0;
5363 _ACEOF
5364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5367 CC="$ac_save_CC $ac_arg"
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_prog_cc_c89=$ac_arg
5371 rm -f core conftest.err conftest.$ac_objext
5372 test "x$ac_cv_prog_cc_c89" != "xno" && break
5373 done
5374 rm -f conftest.$ac_ext
5375 CC=$ac_save_CC
5378 # AC_CACHE_VAL
5379 case "x$ac_cv_prog_cc_c89" in
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5382 $as_echo "none needed" >&6; } ;;
5383 xno)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5385 $as_echo "unsupported" >&6; } ;;
5387 CC="$CC $ac_cv_prog_cc_c89"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5389 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5390 esac
5391 if test "x$ac_cv_prog_cc_c89" != xno; then :
5395 ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 depcc="$CC" am_compiler_list=
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5404 $as_echo_n "checking dependency style of $depcc... " >&6; }
5405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5409 # We make a subdir and do the tests there. Otherwise we can end up
5410 # making bogus files that we don't know about and never remove. For
5411 # instance it was reported that on HP-UX the gcc test will end up
5412 # making a dummy file named `D' -- because `-MD' means `put the output
5413 # in D'.
5414 mkdir conftest.dir
5415 # Copy depcomp to subdir because otherwise we won't find it if we're
5416 # using a relative directory.
5417 cp "$am_depcomp" conftest.dir
5418 cd conftest.dir
5419 # We will build objects and dependencies in a subdirectory because
5420 # it helps to detect inapplicable dependency modes. For instance
5421 # both Tru64's cc and ICC support -MD to output dependencies as a
5422 # side effect of compilation, but ICC will put the dependencies in
5423 # the current directory while Tru64 will put them in the object
5424 # directory.
5425 mkdir sub
5427 am_cv_CC_dependencies_compiler_type=none
5428 if test "$am_compiler_list" = ""; then
5429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5431 am__universal=false
5432 case " $depcc " in #(
5433 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5434 esac
5436 for depmode in $am_compiler_list; do
5437 # Setup a source with many dependencies, because some compilers
5438 # like to wrap large dependency lists on column 80 (with \), and
5439 # we should not choose a depcomp mode which is confused by this.
5441 # We need to recreate these files for each test, as the compiler may
5442 # overwrite some of them when testing with obscure command lines.
5443 # This happens at least with the AIX C compiler.
5444 : > sub/conftest.c
5445 for i in 1 2 3 4 5 6; do
5446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5448 # Solaris 8's {/usr,}/bin/sh.
5449 touch sub/conftst$i.h
5450 done
5451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5454 # mode. It turns out that the SunPro C++ compiler does not properly
5455 # handle `-M -o', and we need to detect this. Also, some Intel
5456 # versions had trouble with output in subdirs
5457 am__obj=sub/conftest.${OBJEXT-o}
5458 am__minus_obj="-o $am__obj"
5459 case $depmode in
5460 gcc)
5461 # This depmode causes a compiler race in universal mode.
5462 test "$am__universal" = false || continue
5464 nosideeffect)
5465 # after this tag, mechanisms are not by side-effect, so they'll
5466 # only be used when explicitly requested
5467 if test "x$enable_dependency_tracking" = xyes; then
5468 continue
5469 else
5470 break
5473 msvisualcpp | msvcmsys)
5474 # This compiler won't grok `-c -o', but also, the minuso test has
5475 # not run yet. These depmodes are late enough in the game, and
5476 # so weak that their functioning should not be impacted.
5477 am__obj=conftest.${OBJEXT-o}
5478 am__minus_obj=
5480 none) break ;;
5481 esac
5482 if depmode=$depmode \
5483 source=sub/conftest.c object=$am__obj \
5484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5485 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5486 >/dev/null 2>conftest.err &&
5487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5489 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5491 # icc doesn't choke on unknown options, it will just issue warnings
5492 # or remarks (even with -Werror). So we grep stderr for any message
5493 # that says an option was ignored or not supported.
5494 # When given -MP, icc 7.0 and 7.1 complain thusly:
5495 # icc: Command line warning: ignoring option '-M'; no argument required
5496 # The diagnosis changed in icc 8.0:
5497 # icc: Command line remark: option '-MP' not supported
5498 if (grep 'ignoring option' conftest.err ||
5499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5500 am_cv_CC_dependencies_compiler_type=$depmode
5501 break
5504 done
5506 cd ..
5507 rm -rf conftest.dir
5508 else
5509 am_cv_CC_dependencies_compiler_type=none
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5514 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5518 test "x$enable_dependency_tracking" != xno \
5519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5520 am__fastdepCC_TRUE=
5521 am__fastdepCC_FALSE='#'
5522 else
5523 am__fastdepCC_TRUE='#'
5524 am__fastdepCC_FALSE=
5528 # Ralf Wildenhues: With per-target flags we need CC_C_O
5529 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5530 if test "x$CC" != xcc; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5532 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5535 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5537 set dummy $CC; ac_cc=`$as_echo "$2" |
5538 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5539 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5546 main ()
5550 return 0;
5552 _ACEOF
5553 # Make sure it works both with $CC and with simple cc.
5554 # We do the test twice because some compilers refuse to overwrite an
5555 # existing .o file with -o, though they will create one.
5556 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5557 rm -f conftest2.*
5558 if { { case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5563 $as_echo "$ac_try_echo"; } >&5
5564 (eval "$ac_try") 2>&5
5565 ac_status=$?
5566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5567 test $ac_status = 0; } &&
5568 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5573 $as_echo "$ac_try_echo"; } >&5
5574 (eval "$ac_try") 2>&5
5575 ac_status=$?
5576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577 test $ac_status = 0; };
5578 then
5579 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5580 if test "x$CC" != xcc; then
5581 # Test first that cc exists at all.
5582 if { ac_try='cc -c conftest.$ac_ext >&5'
5583 { { case "(($ac_try" in
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5586 esac
5587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5588 $as_echo "$ac_try_echo"; } >&5
5589 (eval "$ac_try") 2>&5
5590 ac_status=$?
5591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5592 test $ac_status = 0; }; }; then
5593 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5594 rm -f conftest2.*
5595 if { { case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5600 $as_echo "$ac_try_echo"; } >&5
5601 (eval "$ac_try") 2>&5
5602 ac_status=$?
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; } &&
5605 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5610 $as_echo "$ac_try_echo"; } >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5614 test $ac_status = 0; };
5615 then
5616 # cc works too.
5618 else
5619 # cc exists but doesn't like -o.
5620 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5624 else
5625 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5627 rm -f core conftest*
5630 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632 $as_echo "yes" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5637 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5641 # FIXME: we rely on the cache variable name because
5642 # there is no other way.
5643 set dummy $CC
5644 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5646 if test "$am_t" != yes; then
5647 # Losing compiler, so override with the script.
5648 # FIXME: It is wrong to rewrite CC.
5649 # But if we don't then we get into trouble of one sort or another.
5650 # A longer-term fix would be to have automake use am__CC in this case,
5651 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5652 CC="$am_aux_dir/compile $CC"
5656 case $ac_cv_prog_cc_stdc in #(
5657 no) :
5658 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5659 *) :
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5661 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5662 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 ac_cv_prog_cc_c99=no
5666 ac_save_CC=$CC
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <stdarg.h>
5670 #include <stdbool.h>
5671 #include <stdlib.h>
5672 #include <wchar.h>
5673 #include <stdio.h>
5675 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5676 #define debug(...) fprintf (stderr, __VA_ARGS__)
5677 #define showlist(...) puts (#__VA_ARGS__)
5678 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5679 static void
5680 test_varargs_macros (void)
5682 int x = 1234;
5683 int y = 5678;
5684 debug ("Flag");
5685 debug ("X = %d\n", x);
5686 showlist (The first, second, and third items.);
5687 report (x>y, "x is %d but y is %d", x, y);
5690 // Check long long types.
5691 #define BIG64 18446744073709551615ull
5692 #define BIG32 4294967295ul
5693 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5694 #if !BIG_OK
5695 your preprocessor is broken;
5696 #endif
5697 #if BIG_OK
5698 #else
5699 your preprocessor is broken;
5700 #endif
5701 static long long int bignum = -9223372036854775807LL;
5702 static unsigned long long int ubignum = BIG64;
5704 struct incomplete_array
5706 int datasize;
5707 double data[];
5710 struct named_init {
5711 int number;
5712 const wchar_t *name;
5713 double average;
5716 typedef const char *ccp;
5718 static inline int
5719 test_restrict (ccp restrict text)
5721 // See if C++-style comments work.
5722 // Iterate through items via the restricted pointer.
5723 // Also check for declarations in for loops.
5724 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5725 continue;
5726 return 0;
5729 // Check varargs and va_copy.
5730 static void
5731 test_varargs (const char *format, ...)
5733 va_list args;
5734 va_start (args, format);
5735 va_list args_copy;
5736 va_copy (args_copy, args);
5738 const char *str;
5739 int number;
5740 float fnumber;
5742 while (*format)
5744 switch (*format++)
5746 case 's': // string
5747 str = va_arg (args_copy, const char *);
5748 break;
5749 case 'd': // int
5750 number = va_arg (args_copy, int);
5751 break;
5752 case 'f': // float
5753 fnumber = va_arg (args_copy, double);
5754 break;
5755 default:
5756 break;
5759 va_end (args_copy);
5760 va_end (args);
5764 main ()
5767 // Check bool.
5768 _Bool success = false;
5770 // Check restrict.
5771 if (test_restrict ("String literal") == 0)
5772 success = true;
5773 char *restrict newvar = "Another string";
5775 // Check varargs.
5776 test_varargs ("s, d' f .", "string", 65, 34.234);
5777 test_varargs_macros ();
5779 // Check flexible array members.
5780 struct incomplete_array *ia =
5781 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5782 ia->datasize = 10;
5783 for (int i = 0; i < ia->datasize; ++i)
5784 ia->data[i] = i * 1.234;
5786 // Check named initializers.
5787 struct named_init ni = {
5788 .number = 34,
5789 .name = L"Test wide string",
5790 .average = 543.34343,
5793 ni.number = 58;
5795 int dynamic_array[ni.number];
5796 dynamic_array[ni.number - 1] = 543;
5798 // work around unused variable warnings
5799 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5800 || dynamic_array[ni.number - 1] != 543);
5803 return 0;
5805 _ACEOF
5806 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5808 CC="$ac_save_CC $ac_arg"
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 ac_cv_prog_cc_c99=$ac_arg
5812 rm -f core conftest.err conftest.$ac_objext
5813 test "x$ac_cv_prog_cc_c99" != "xno" && break
5814 done
5815 rm -f conftest.$ac_ext
5816 CC=$ac_save_CC
5819 # AC_CACHE_VAL
5820 case "x$ac_cv_prog_cc_c99" in
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5823 $as_echo "none needed" >&6; } ;;
5824 xno)
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5826 $as_echo "unsupported" >&6; } ;;
5828 CC="$CC $ac_cv_prog_cc_c99"
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5830 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5831 esac
5832 if test "x$ac_cv_prog_cc_c99" != xno; then :
5833 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5837 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_cv_prog_cc_c89=no
5841 ac_save_CC=$CC
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #include <stdarg.h>
5845 #include <stdio.h>
5846 #include <sys/types.h>
5847 #include <sys/stat.h>
5848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5849 struct buf { int x; };
5850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5851 static char *e (p, i)
5852 char **p;
5853 int i;
5855 return p[i];
5857 static char *f (char * (*g) (char **, int), char **p, ...)
5859 char *s;
5860 va_list v;
5861 va_start (v,p);
5862 s = g (p, va_arg (v,int));
5863 va_end (v);
5864 return s;
5867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5868 function prototypes and stuff, but not '\xHH' hex character constants.
5869 These don't provoke an error unfortunately, instead are silently treated
5870 as 'x'. The following induces an error, until -std is added to get
5871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5872 array size at least. It's necessary to write '\x00'==0 to get something
5873 that's true only with -std. */
5874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5877 inside strings and character constants. */
5878 #define FOO(x) 'x'
5879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5881 int test (int i, double x);
5882 struct s1 {int (*f) (int a);};
5883 struct s2 {int (*f) (double a);};
5884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5885 int argc;
5886 char **argv;
5888 main ()
5890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5892 return 0;
5894 _ACEOF
5895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5898 CC="$ac_save_CC $ac_arg"
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 ac_cv_prog_cc_c89=$ac_arg
5902 rm -f core conftest.err conftest.$ac_objext
5903 test "x$ac_cv_prog_cc_c89" != "xno" && break
5904 done
5905 rm -f conftest.$ac_ext
5906 CC=$ac_save_CC
5909 # AC_CACHE_VAL
5910 case "x$ac_cv_prog_cc_c89" in
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5913 $as_echo "none needed" >&6; } ;;
5914 xno)
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5916 $as_echo "unsupported" >&6; } ;;
5918 CC="$CC $ac_cv_prog_cc_c89"
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5921 esac
5922 if test "x$ac_cv_prog_cc_c89" != xno; then :
5923 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5924 else
5925 ac_cv_prog_cc_stdc=no
5930 esac
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5932 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5933 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5937 case $ac_cv_prog_cc_stdc in #(
5938 no) :
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5940 $as_echo "unsupported" >&6; } ;; #(
5941 '') :
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5943 $as_echo "none needed" >&6; } ;; #(
5944 *) :
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5946 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5947 esac
5949 ac_ext=c
5950 ac_cpp='$CPP $CPPFLAGS'
5951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5956 # On Suns, sometimes $CPP names a directory.
5957 if test -n "$CPP" && test -d "$CPP"; then
5958 CPP=
5960 if test -z "$CPP"; then
5961 if test "${ac_cv_prog_CPP+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 # Double quotes because CPP needs to be expanded
5965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5967 ac_preproc_ok=false
5968 for ac_c_preproc_warn_flag in '' yes
5970 # Use a header file that comes with gcc, so configuring glibc
5971 # with a fresh cross-compiler works.
5972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5973 # <limits.h> exists even on freestanding compilers.
5974 # On the NeXT, cc -E runs the code through the compiler's parser,
5975 # not just through cpp. "Syntax error" is here to catch this case.
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 #ifdef __STDC__
5979 # include <limits.h>
5980 #else
5981 # include <assert.h>
5982 #endif
5983 Syntax error
5984 _ACEOF
5985 if ac_fn_c_try_cpp "$LINENO"; then :
5987 else
5988 # Broken: fails on valid input.
5989 continue
5991 rm -f conftest.err conftest.$ac_ext
5993 # OK, works on sane cases. Now check whether nonexistent headers
5994 # can be detected and how.
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #include <ac_nonexistent.h>
5998 _ACEOF
5999 if ac_fn_c_try_cpp "$LINENO"; then :
6000 # Broken: success on invalid input.
6001 continue
6002 else
6003 # Passes both tests.
6004 ac_preproc_ok=:
6005 break
6007 rm -f conftest.err conftest.$ac_ext
6009 done
6010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011 rm -f conftest.err conftest.$ac_ext
6012 if $ac_preproc_ok; then :
6013 break
6016 done
6017 ac_cv_prog_CPP=$CPP
6020 CPP=$ac_cv_prog_CPP
6021 else
6022 ac_cv_prog_CPP=$CPP
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6025 $as_echo "$CPP" >&6; }
6026 ac_preproc_ok=false
6027 for ac_c_preproc_warn_flag in '' yes
6029 # Use a header file that comes with gcc, so configuring glibc
6030 # with a fresh cross-compiler works.
6031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6032 # <limits.h> exists even on freestanding compilers.
6033 # On the NeXT, cc -E runs the code through the compiler's parser,
6034 # not just through cpp. "Syntax error" is here to catch this case.
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #ifdef __STDC__
6038 # include <limits.h>
6039 #else
6040 # include <assert.h>
6041 #endif
6042 Syntax error
6043 _ACEOF
6044 if ac_fn_c_try_cpp "$LINENO"; then :
6046 else
6047 # Broken: fails on valid input.
6048 continue
6050 rm -f conftest.err conftest.$ac_ext
6052 # OK, works on sane cases. Now check whether nonexistent headers
6053 # can be detected and how.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <ac_nonexistent.h>
6057 _ACEOF
6058 if ac_fn_c_try_cpp "$LINENO"; then :
6059 # Broken: success on invalid input.
6060 continue
6061 else
6062 # Passes both tests.
6063 ac_preproc_ok=:
6064 break
6066 rm -f conftest.err conftest.$ac_ext
6068 done
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then :
6073 else
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6077 See \`config.log' for more details." "$LINENO" 5; }
6080 ac_ext=c
6081 ac_cpp='$CPP $CPPFLAGS'
6082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
6088 case "$host" in
6089 *-*-amigaos)
6090 CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
6092 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
6093 case "$GCC" in
6094 yes)
6096 *) CFLAGS="$CFLAGS -Wp,-H18816"
6098 esac
6100 *-pc-cygwin*)
6101 CFLAGS="$CFLAGS -DSYS_CYGWIN32"
6103 i386-sequent-sysv4)
6104 case "$CC" in
6106 CFLAGS="$CFLAGS -Wc,+abi-socket"
6108 esac
6110 *-*-mpeix*)
6111 CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
6112 LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
6113 LIBS="$LIBS -lcurses"
6115 *-*-solaris*)
6116 # see "man standards".
6117 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
6118 # -D_XOPEN_SOURCE=600 seems OK for c99
6119 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
6120 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6121 libxnet=-lxnet
6123 esac
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6127 $as_echo_n "checking additional compiler flags... " >&6; }
6128 if test "${ac_cv_os_cflags+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6132 case "${host_os}" in
6133 irix6* )
6134 case "${CC}" in
6135 cc )
6136 # do not use 64-bit compiler
6137 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
6139 esac
6141 # HMS: am-utils needed this but we don't (apparently)
6142 # osf[[1-3]]* )
6143 # # get the right version of struct sockaddr
6144 # case "${CC}" in
6145 # cc )
6146 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
6147 # ;;
6148 # * )
6149 # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
6150 # ;;
6151 # esac
6152 # ;;
6153 # osf* )
6154 # # get the right version of struct sockaddr
6155 # case "${CC}" in
6156 # cc )
6157 # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
6158 # ;;
6159 # * )
6160 # ac_cv_os_cflags="-D_SOCKADDR_LEN"
6161 # ;;
6162 # esac
6163 # ;;
6164 aix[1-3]* )
6165 ac_cv_os_cflags="" ;;
6166 aix4.[0-2]* )
6167 # turn on additional headers
6168 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6170 aix* )
6171 # avoid circular dependencies in yp headers
6172 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6174 OFF-sunos4* )
6175 # make sure passing whole structures is handled in gcc
6176 case "${CC}" in
6177 gcc )
6178 ac_cv_os_cflags="-fpcc-struct-return"
6180 esac
6182 sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* )
6183 ac_cv_os_cflags="" ;;
6184 solaris* | sunos* )
6185 # turn on 64-bit file offset interface
6186 case "${CC}" in
6188 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
6190 esac
6192 hpux* )
6193 # use Ansi compiler on HPUX
6194 case "${CC}" in
6195 cc )
6196 ac_cv_os_cflags="-Ae"
6198 esac
6200 darwin* | rhapsody* )
6201 ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
6204 ac_cv_os_cflags=""
6206 esac
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
6210 $as_echo "$ac_cv_os_cflags" >&6; }
6211 CFLAGS="$CFLAGS $ac_cv_os_cflags"
6214 # NTP has (so far) been relying on leading-edge autogen.
6215 # Therefore, by default:
6216 # - use the version we ship with
6217 # - do not install it
6218 # - build a static copy (AC_DISABLE_SHARED - done earlier)
6219 case "${enable_local_libopts+set}" in
6220 set) ;;
6221 *) enable_local_libopts=yes ;;
6222 esac
6223 case "${enable_libopts_install+set}" in
6224 set) ;;
6225 *) enable_libopts_install=no ;;
6226 esac
6228 NEED_LIBOPTS_DIR=''
6230 LIBOPTS_DIR=libopts
6232 # Check whether --enable-local-libopts was given.
6233 if test "${enable_local_libopts+set}" = set; then :
6234 enableval=$enable_local_libopts;
6235 if test x$enableval = xyes ; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
6237 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
6238 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6239 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6240 NEED_LIBOPTS_DIR=true
6245 # Check whether --enable-libopts-install was given.
6246 if test "${enable_libopts_install+set}" = set; then :
6247 enableval=$enable_libopts_install;
6250 if test "X${enable_libopts_install}" != Xno; then
6251 INSTALL_LIBOPTS_TRUE=
6252 INSTALL_LIBOPTS_FALSE='#'
6253 else
6254 INSTALL_LIBOPTS_TRUE='#'
6255 INSTALL_LIBOPTS_FALSE=
6259 if test -z "${NEED_LIBOPTS_DIR}" ; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
6261 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
6263 # Check whether --with-autoopts-config was given.
6264 if test "${with_autoopts_config+set}" = set; then :
6265 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
6268 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
6269 if test "${lo_cv_with_autoopts_config+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6272 if autoopts-config --help 2>/dev/null 1>&2
6273 then lo_cv_with_autoopts_config=autoopts-config
6274 elif libopts-config --help 2>/dev/null 1>&2
6275 then lo_cv_with_autoopts_config=libopts-config
6276 else lo_cv_with_autoopts_config=no ; fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
6279 $as_echo "$lo_cv_with_autoopts_config" >&6; }
6282 # end of AC_ARG_WITH
6284 if test "${lo_cv_test_autoopts+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6288 if test -z "${lo_cv_with_autoopts_config}" \
6289 -o X"${lo_cv_with_autoopts_config}" = Xno
6290 then
6291 if autoopts-config --help 2>/dev/null 1>&2
6292 then lo_cv_with_autoopts_config=autoopts-config
6293 elif libopts-config --help 2>/dev/null 1>&2
6294 then lo_cv_with_autoopts_config=libopts-config
6295 else lo_cv_with_autoopts_config=false ; fi
6297 lo_cv_test_autoopts=`
6298 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
6299 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
6300 then lo_cv_test_autoopts=no ; fi
6303 # end of CACHE_VAL
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
6305 $as_echo "${lo_cv_test_autoopts}" >&6; }
6307 if test "X${lo_cv_test_autoopts}" != Xno
6308 then
6309 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
6310 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
6311 else
6312 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
6313 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
6314 NEED_LIBOPTS_DIR=true
6316 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
6318 if test -n "${NEED_LIBOPTS_DIR}"; then
6319 NEED_LIBOPTS_TRUE=
6320 NEED_LIBOPTS_FALSE='#'
6321 else
6322 NEED_LIBOPTS_TRUE='#'
6323 NEED_LIBOPTS_FALSE=
6328 LIBOPTS_DIR=libopts
6330 ac_config_files="$ac_config_files libopts/Makefile"
6334 if test -n "${NEED_LIBOPTS_DIR}" ; then
6337 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
6338 # =================
6339 # AC_HEADER_STDC
6340 # =================
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6342 $as_echo_n "checking for ANSI C header files... " >&6; }
6343 if test "${ac_cv_header_stdc+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 #include <stdlib.h>
6349 #include <stdarg.h>
6350 #include <string.h>
6351 #include <float.h>
6354 main ()
6358 return 0;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 ac_cv_header_stdc=yes
6363 else
6364 ac_cv_header_stdc=no
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 if test $ac_cv_header_stdc = yes; then
6369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372 #include <string.h>
6374 _ACEOF
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 $EGREP "memchr" >/dev/null 2>&1; then :
6378 else
6379 ac_cv_header_stdc=no
6381 rm -f conftest*
6385 if test $ac_cv_header_stdc = yes; then
6386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <stdlib.h>
6391 _ACEOF
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 $EGREP "free" >/dev/null 2>&1; then :
6395 else
6396 ac_cv_header_stdc=no
6398 rm -f conftest*
6402 if test $ac_cv_header_stdc = yes; then
6403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6404 if test "$cross_compiling" = yes; then :
6406 else
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #include <ctype.h>
6410 #include <stdlib.h>
6411 #if ((' ' & 0x0FF) == 0x020)
6412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6414 #else
6415 # define ISLOWER(c) \
6416 (('a' <= (c) && (c) <= 'i') \
6417 || ('j' <= (c) && (c) <= 'r') \
6418 || ('s' <= (c) && (c) <= 'z'))
6419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6420 #endif
6422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6424 main ()
6426 int i;
6427 for (i = 0; i < 256; i++)
6428 if (XOR (islower (i), ISLOWER (i))
6429 || toupper (i) != TOUPPER (i))
6430 return 2;
6431 return 0;
6433 _ACEOF
6434 if ac_fn_c_try_run "$LINENO"; then :
6436 else
6437 ac_cv_header_stdc=no
6439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6440 conftest.$ac_objext conftest.beam conftest.$ac_ext
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6446 $as_echo "$ac_cv_header_stdc" >&6; }
6447 if test $ac_cv_header_stdc = yes; then
6449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6453 # =================
6454 # AC_HEADER_DIRENT
6455 # =================
6456 ac_header_dirent=no
6457 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6458 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6460 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6467 #include <$ac_hdr>
6470 main ()
6472 if ((DIR *) 0)
6473 return 0;
6475 return 0;
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 eval "$as_ac_Header=yes"
6480 else
6481 eval "$as_ac_Header=no"
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 eval ac_res=\$$as_ac_Header
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6487 $as_echo "$ac_res" >&6; }
6488 eval as_val=\$$as_ac_Header
6489 if test "x$as_val" = x""yes; then :
6490 cat >>confdefs.h <<_ACEOF
6491 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6492 _ACEOF
6494 ac_header_dirent=$ac_hdr; break
6497 done
6498 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6499 if test $ac_header_dirent = dirent.h; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6501 $as_echo_n "checking for library containing opendir... " >&6; }
6502 if test "${ac_cv_search_opendir+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 ac_func_search_save_LIBS=$LIBS
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6509 /* Override any GCC internal prototype to avoid an error.
6510 Use char because int might match the return type of a GCC
6511 builtin and then its argument prototype would still apply. */
6512 #ifdef __cplusplus
6513 extern "C"
6514 #endif
6515 char opendir ();
6517 main ()
6519 return opendir ();
6521 return 0;
6523 _ACEOF
6524 for ac_lib in '' dir; do
6525 if test -z "$ac_lib"; then
6526 ac_res="none required"
6527 else
6528 ac_res=-l$ac_lib
6529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6531 if ac_fn_c_try_link "$LINENO"; then :
6532 ac_cv_search_opendir=$ac_res
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext
6536 if test "${ac_cv_search_opendir+set}" = set; then :
6537 break
6539 done
6540 if test "${ac_cv_search_opendir+set}" = set; then :
6542 else
6543 ac_cv_search_opendir=no
6545 rm conftest.$ac_ext
6546 LIBS=$ac_func_search_save_LIBS
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6549 $as_echo "$ac_cv_search_opendir" >&6; }
6550 ac_res=$ac_cv_search_opendir
6551 if test "$ac_res" != no; then :
6552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6558 $as_echo_n "checking for library containing opendir... " >&6; }
6559 if test "${ac_cv_search_opendir+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 ac_func_search_save_LIBS=$LIBS
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 /* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6569 #ifdef __cplusplus
6570 extern "C"
6571 #endif
6572 char opendir ();
6574 main ()
6576 return opendir ();
6578 return 0;
6580 _ACEOF
6581 for ac_lib in '' x; do
6582 if test -z "$ac_lib"; then
6583 ac_res="none required"
6584 else
6585 ac_res=-l$ac_lib
6586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6588 if ac_fn_c_try_link "$LINENO"; then :
6589 ac_cv_search_opendir=$ac_res
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext
6593 if test "${ac_cv_search_opendir+set}" = set; then :
6594 break
6596 done
6597 if test "${ac_cv_search_opendir+set}" = set; then :
6599 else
6600 ac_cv_search_opendir=no
6602 rm conftest.$ac_ext
6603 LIBS=$ac_func_search_save_LIBS
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6606 $as_echo "$ac_cv_search_opendir" >&6; }
6607 ac_res=$ac_cv_search_opendir
6608 if test "$ac_res" != no; then :
6609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6616 # =================
6617 # AC_CHECK_HEADERS
6618 # =================
6619 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
6620 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
6621 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
6622 utime.h sysexits.h
6623 do :
6624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6626 eval as_val=\$$as_ac_Header
6627 if test "x$as_val" = x""yes; then :
6628 cat >>confdefs.h <<_ACEOF
6629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 _ACEOF
6634 done
6637 # --------------------------------------------
6638 # Verify certain entries from AC_CHECK_HEADERS
6639 # --------------------------------------------
6640 for f in sys_types sys_mman sys_param sys_stat sys_wait \
6641 string errno stdlib memory setjmp
6642 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
6643 test "${as_ac_var}" = set || \
6644 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
6645 done
6647 # ================================================
6648 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6649 # if varargs.h is present define HAVE_VARARGS_H.
6650 # ================================================
6651 for ac_header in stdarg.h varargs.h
6652 do :
6653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6655 eval as_val=\$$as_ac_Header
6656 if test "x$as_val" = x""yes; then :
6657 cat >>confdefs.h <<_ACEOF
6658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 _ACEOF
6660 break
6663 done
6665 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6666 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6669 # ================================================
6670 # Similarly for the string.h and strings.h headers
6671 # ================================================
6672 for ac_header in string.h strings.h
6673 do :
6674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6676 eval as_val=\$$as_ac_Header
6677 if test "x$as_val" = x""yes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6680 _ACEOF
6681 break
6684 done
6686 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6687 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
6690 # =====================
6691 # ...and limits headers
6692 # =====================
6693 for ac_header in limits.h sys/limits.h values.h
6694 do :
6695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6697 eval as_val=\$$as_ac_Header
6698 if test "x$as_val" = x""yes; then :
6699 cat >>confdefs.h <<_ACEOF
6700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701 _ACEOF
6702 break
6705 done
6707 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6708 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
6711 # ========================
6712 # ...and int types headers
6713 # ========================
6714 for ac_header in stdint.h inttypes.h
6715 do :
6716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6717 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6718 eval as_val=\$$as_ac_Header
6719 if test "x$as_val" = x""yes; then :
6720 cat >>confdefs.h <<_ACEOF
6721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722 _ACEOF
6723 break
6726 done
6728 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6729 if test "x$ac_cv_type_int8_t" = x""yes; then :
6731 cat >>confdefs.h <<_ACEOF
6732 #define HAVE_INT8_T 1
6733 _ACEOF
6737 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6738 if test "x$ac_cv_type_uint8_t" = x""yes; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_UINT8_T 1
6742 _ACEOF
6746 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6747 if test "x$ac_cv_type_int16_t" = x""yes; then :
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_INT16_T 1
6751 _ACEOF
6755 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6756 if test "x$ac_cv_type_uint16_t" = x""yes; then :
6758 cat >>confdefs.h <<_ACEOF
6759 #define HAVE_UINT16_T 1
6760 _ACEOF
6764 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6765 if test "x$ac_cv_type_int32_t" = x""yes; then :
6767 cat >>confdefs.h <<_ACEOF
6768 #define HAVE_INT32_T 1
6769 _ACEOF
6773 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6774 if test "x$ac_cv_type_uint32_t" = x""yes; then :
6776 cat >>confdefs.h <<_ACEOF
6777 #define HAVE_UINT32_T 1
6778 _ACEOF
6782 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6783 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define HAVE_INTPTR_T 1
6787 _ACEOF
6791 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
6792 if test "x$ac_cv_type_uint_t" = x""yes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_UINT_T 1
6796 _ACEOF
6802 # ====================
6803 # uintptr type & sizes
6804 # ====================
6805 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6806 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define HAVE_UINTPTR_T 1
6810 _ACEOF
6813 else
6815 $as_echo "#define uintptr_t unsigned long" >>confdefs.h
6819 # The cast to long int works around a bug in the HP C Compiler
6820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6822 # This bug is HP SR number 8606223364.
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
6824 $as_echo_n "checking size of char*... " >&6; }
6825 if test "${ac_cv_sizeof_charp+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
6830 else
6831 if test "$ac_cv_type_charp" = yes; then
6832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6834 { as_fn_set_status 77
6835 as_fn_error "cannot compute sizeof (char*)
6836 See \`config.log' for more details." "$LINENO" 5; }; }
6837 else
6838 ac_cv_sizeof_charp=0
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
6844 $as_echo "$ac_cv_sizeof_charp" >&6; }
6848 cat >>confdefs.h <<_ACEOF
6849 #define SIZEOF_CHARP $ac_cv_sizeof_charp
6850 _ACEOF
6853 # The cast to long int works around a bug in the HP C Compiler
6854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6856 # This bug is HP SR number 8606223364.
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6858 $as_echo_n "checking size of int... " >&6; }
6859 if test "${ac_cv_sizeof_int+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6864 else
6865 if test "$ac_cv_type_int" = yes; then
6866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6868 { as_fn_set_status 77
6869 as_fn_error "cannot compute sizeof (int)
6870 See \`config.log' for more details." "$LINENO" 5; }; }
6871 else
6872 ac_cv_sizeof_int=0
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6878 $as_echo "$ac_cv_sizeof_int" >&6; }
6882 cat >>confdefs.h <<_ACEOF
6883 #define SIZEOF_INT $ac_cv_sizeof_int
6884 _ACEOF
6887 # The cast to long int works around a bug in the HP C Compiler
6888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6890 # This bug is HP SR number 8606223364.
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6892 $as_echo_n "checking size of long... " >&6; }
6893 if test "${ac_cv_sizeof_long+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6898 else
6899 if test "$ac_cv_type_long" = yes; then
6900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6902 { as_fn_set_status 77
6903 as_fn_error "cannot compute sizeof (long)
6904 See \`config.log' for more details." "$LINENO" 5; }; }
6905 else
6906 ac_cv_sizeof_long=0
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6912 $as_echo "$ac_cv_sizeof_long" >&6; }
6916 cat >>confdefs.h <<_ACEOF
6917 #define SIZEOF_LONG $ac_cv_sizeof_long
6918 _ACEOF
6921 # The cast to long int works around a bug in the HP C Compiler
6922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6924 # This bug is HP SR number 8606223364.
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6926 $as_echo_n "checking size of short... " >&6; }
6927 if test "${ac_cv_sizeof_short+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6932 else
6933 if test "$ac_cv_type_short" = yes; then
6934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 { as_fn_set_status 77
6937 as_fn_error "cannot compute sizeof (short)
6938 See \`config.log' for more details." "$LINENO" 5; }; }
6939 else
6940 ac_cv_sizeof_short=0
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6946 $as_echo "$ac_cv_sizeof_short" >&6; }
6950 cat >>confdefs.h <<_ACEOF
6951 #define SIZEOF_SHORT $ac_cv_sizeof_short
6952 _ACEOF
6956 # ----------------------------------------------------------------------
6957 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
6958 # ----------------------------------------------------------------------
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
6960 $as_echo_n "checking for pathfind in -lgen... " >&6; }
6961 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 ac_check_lib_save_LIBS=$LIBS
6965 LIBS="-lgen $LIBS"
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6972 #ifdef __cplusplus
6973 extern "C"
6974 #endif
6975 char pathfind ();
6977 main ()
6979 return pathfind ();
6981 return 0;
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_lib_gen_pathfind=yes
6986 else
6987 ac_cv_lib_gen_pathfind=no
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
6994 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
6995 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
6996 cat >>confdefs.h <<_ACEOF
6997 #define HAVE_LIBGEN 1
6998 _ACEOF
7000 LIBS="-lgen $LIBS"
7004 for ac_func in vprintf
7005 do :
7006 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7007 if test "x$ac_cv_func_vprintf" = x""yes; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define HAVE_VPRINTF 1
7010 _ACEOF
7012 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7013 if test "x$ac_cv_func__doprnt" = x""yes; then :
7015 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7020 done
7023 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
7024 do :
7025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7027 eval as_val=\$$as_ac_var
7028 if test "x$as_val" = x""yes; then :
7029 cat >>confdefs.h <<_ACEOF
7030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7031 _ACEOF
7034 done
7036 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
7038 # Check to see if a reg expr header is specified.
7041 # Check whether --with-regex-header was given.
7042 if test "${with_regex_header+set}" = set; then :
7043 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
7046 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
7047 if test "${libopts_cv_with_regex_header+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 libopts_cv_with_regex_header=no
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
7053 $as_echo "$libopts_cv_with_regex_header" >&6; }
7056 # end of AC_ARG_WITH
7058 if test "X${libopts_cv_with_regex_header}" != Xno
7059 then
7060 cat >>confdefs.h <<_ACEOF
7061 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
7062 _ACEOF
7064 else
7066 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
7072 # Check to see if a working libregex can be found.
7075 # Check whether --with-libregex was given.
7076 if test "${with_libregex+set}" = set; then :
7077 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
7080 $as_echo_n "checking whether with-libregex was specified... " >&6; }
7081 if test "${libopts_cv_with_libregex_root+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 libopts_cv_with_libregex_root=no
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
7087 $as_echo "$libopts_cv_with_libregex_root" >&6; }
7090 # end of AC_ARG_WITH libregex
7092 if test "${with_libguile+set}" = set && \
7093 test "${withval}" = no
7094 then ## disabled by request
7095 libopts_cv_with_libregex_root=no
7096 libopts_cv_with_libregex_cflags=no
7097 libopts_cv_with_libregex_libs=no
7098 else
7101 # Check whether --with-libregex-cflags was given.
7102 if test "${with_libregex_cflags+set}" = set; then :
7103 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
7106 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
7107 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 libopts_cv_with_libregex_cflags=no
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
7113 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
7116 # end of AC_ARG_WITH libregex-cflags
7119 # Check whether --with-libregex-libs was given.
7120 if test "${with_libregex_libs+set}" = set; then :
7121 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
7124 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
7125 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 libopts_cv_with_libregex_libs=no
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
7131 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
7134 # end of AC_ARG_WITH libregex-libs
7136 case "X${libopts_cv_with_libregex_cflags}" in
7137 Xyes|Xno|X )
7138 case "X${libopts_cv_with_libregex_root}" in
7139 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
7140 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
7141 esac
7142 esac
7143 case "X${libopts_cv_with_libregex_libs}" in
7144 Xyes|Xno|X )
7145 case "X${libopts_cv_with_libregex_root}" in
7146 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
7147 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
7148 esac
7149 esac
7150 libopts_save_CPPFLAGS="${CPPFLAGS}"
7151 libopts_save_LIBS="${LIBS}"
7152 fi ## disabled by request
7154 case "X${libopts_cv_with_libregex_cflags}" in
7155 Xyes|Xno|X )
7156 libopts_cv_with_libregex_cflags="" ;;
7157 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
7158 esac
7159 case "X${libopts_cv_with_libregex_libs}" in
7160 Xyes|Xno|X )
7161 libopts_cv_with_libregex_libs="" ;;
7163 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
7164 esac
7165 LIBREGEX_CFLAGS=""
7166 LIBREGEX_LIBS=""
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
7168 $as_echo_n "checking whether libregex functions properly... " >&6; }
7169 if test "${libopts_cv_with_libregex+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7173 if test "$cross_compiling" = yes; then :
7174 libopts_cv_with_libregex=no
7175 else
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <stdio.h>
7179 #include <stdlib.h>
7180 #include <sys/types.h>
7181 #include REGEX_HEADER
7182 static regex_t re;
7183 void comp_re( char const* pzPat ) {
7184 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
7185 if (res == 0) return;
7186 exit( res ); }
7187 int main() {
7188 regmatch_t m[2];
7189 comp_re( "^.*\$" );
7190 comp_re( "()|no.*" );
7191 comp_re( "." );
7192 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
7193 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
7194 fputs( "error: regex -->.<-- did not match\n", stderr );
7195 return 1;
7197 return 0; }
7198 _ACEOF
7199 if ac_fn_c_try_run "$LINENO"; then :
7200 libopts_cv_with_libregex=yes
7201 else
7202 libopts_cv_with_libregex=no
7204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7205 conftest.$ac_objext conftest.beam conftest.$ac_ext
7207 # end of AC_TRY_RUN
7210 # end of AC_CACHE_VAL for libopts_cv_with_libregex
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
7212 $as_echo "${libopts_cv_with_libregex}" >&6; }
7214 if test "X${libopts_cv_with_libregex}" != Xno
7215 then
7217 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
7219 else
7220 CPPFLAGS="${libopts_save_CPPFLAGS}"
7221 LIBS="${libopts_save_LIBS}"
7226 # Check to see if pathfind(3) works.
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
7229 $as_echo_n "checking whether pathfind(3) works... " >&6; }
7230 if test "${libopts_cv_run_pathfind+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7234 if test "$cross_compiling" = yes; then :
7235 libopts_cv_run_pathfind=no
7237 else
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 #include <string.h>
7241 #include <stdlib.h>
7242 int main (int argc, char** argv) {
7243 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
7244 return (pz == 0) ? 1 : 0;
7246 _ACEOF
7247 if ac_fn_c_try_run "$LINENO"; then :
7248 libopts_cv_run_pathfind=yes
7249 else
7250 libopts_cv_run_pathfind=no
7252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7253 conftest.$ac_objext conftest.beam conftest.$ac_ext
7255 # end of TRY_RUN
7258 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
7260 $as_echo "${libopts_cv_run_pathfind}" >&6; }
7262 if test "X${libopts_cv_run_pathfind}" != Xno
7263 then
7265 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
7271 # Check to see if /dev/zero is readable device.
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
7274 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
7275 if test "${libopts_cv_test_dev_zero+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7279 libopts_cv_test_dev_zero=`exec 2> /dev/null
7280 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
7281 test -z "${dzero}" && exit 1
7282 echo ${dzero}`
7283 if test $? -ne 0
7284 then libopts_cv_test_dev_zero=no
7285 elif test -z "$libopts_cv_test_dev_zero"
7286 then libopts_cv_test_dev_zero=no
7290 # end of CACHE_VAL of libopts_cv_test_dev_zero
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
7292 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
7294 if test "X${libopts_cv_test_dev_zero}" != Xno
7295 then
7297 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
7303 # Check to see if we have a functional realpath(3C).
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
7306 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
7307 if test "${libopts_cv_run_realpath+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7311 if test "$cross_compiling" = yes; then :
7312 libopts_cv_run_realpath=no
7314 else
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <limits.h>
7318 #include <stdlib.h>
7319 int main (int argc, char** argv) {
7320 #ifndef PATH_MAX
7321 choke me!!
7322 #else
7323 char zPath[PATH_MAX+1];
7324 #endif
7325 char *pz = realpath(argv[0], zPath);
7326 return (pz == zPath) ? 0 : 1;
7328 _ACEOF
7329 if ac_fn_c_try_run "$LINENO"; then :
7330 libopts_cv_run_realpath=yes
7331 else
7332 libopts_cv_run_realpath=no
7334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7335 conftest.$ac_objext conftest.beam conftest.$ac_ext
7337 # end of TRY_RUN
7340 # end of AC_CACHE_VAL for libopts_cv_run_realpath
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
7342 $as_echo "${libopts_cv_run_realpath}" >&6; }
7344 if test "X${libopts_cv_run_realpath}" != Xno
7345 then
7347 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
7353 # Check to see if strftime() works.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
7356 $as_echo_n "checking whether strftime() works... " >&6; }
7357 if test "${libopts_cv_run_strftime+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7361 if test "$cross_compiling" = yes; then :
7362 libopts_cv_run_strftime=no
7364 else
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 #include <time.h>
7368 #include <string.h>
7369 char t_buf[ 64 ];
7370 int main() {
7371 static char const z[] = "Thursday Aug 28 240";
7372 struct tm tm;
7373 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
7374 tm.tm_min = 44; /* minutes after the hour [0, 59] */
7375 tm.tm_hour = 12; /* hour since midnight [0, 23] */
7376 tm.tm_mday = 28; /* day of the month [1, 31] */
7377 tm.tm_mon = 7; /* months since January [0, 11] */
7378 tm.tm_year = 86; /* years since 1900 */
7379 tm.tm_wday = 4; /* days since Sunday [0, 6] */
7380 tm.tm_yday = 239; /* days since January 1 [0, 365] */
7381 tm.tm_isdst = 1; /* flag for daylight savings time */
7382 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
7383 return (strcmp( t_buf, z ) != 0); }
7384 _ACEOF
7385 if ac_fn_c_try_run "$LINENO"; then :
7386 libopts_cv_run_strftime=yes
7387 else
7388 libopts_cv_run_strftime=no
7390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7391 conftest.$ac_objext conftest.beam conftest.$ac_ext
7393 # end of TRY_RUN
7396 # end of AC_CACHE_VAL for libopts_cv_run_strftime
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
7398 $as_echo "${libopts_cv_run_strftime}" >&6; }
7400 if test "X${libopts_cv_run_strftime}" != Xno
7401 then
7403 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7409 # Check to see if fopen accepts "b" mode.
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
7412 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
7413 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7417 if test "$cross_compiling" = yes; then :
7418 libopts_cv_run_fopen_binary=no
7420 else
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <stdio.h>
7424 int main (int argc, char** argv) {
7425 FILE* fp = fopen("conftest.$ac_ext", "rb");
7426 return (fp == NULL) ? 1 : fclose(fp); }
7427 _ACEOF
7428 if ac_fn_c_try_run "$LINENO"; then :
7429 libopts_cv_run_fopen_binary=yes
7430 else
7431 libopts_cv_run_fopen_binary=no
7433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7434 conftest.$ac_objext conftest.beam conftest.$ac_ext
7436 # end of TRY_RUN
7439 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
7441 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
7443 if test "X${libopts_cv_run_fopen_binary}" != Xno
7444 then
7446 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
7448 else
7450 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
7456 # Check to see if fopen accepts "t" mode.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
7459 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
7460 if test "${libopts_cv_run_fopen_text+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7464 if test "$cross_compiling" = yes; then :
7465 libopts_cv_run_fopen_text=no
7467 else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 #include <stdio.h>
7471 int main (int argc, char** argv) {
7472 FILE* fp = fopen("conftest.$ac_ext", "rt");
7473 return (fp == NULL) ? 1 : fclose(fp); }
7474 _ACEOF
7475 if ac_fn_c_try_run "$LINENO"; then :
7476 libopts_cv_run_fopen_text=yes
7477 else
7478 libopts_cv_run_fopen_text=no
7480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7481 conftest.$ac_objext conftest.beam conftest.$ac_ext
7483 # end of TRY_RUN
7486 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
7488 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
7490 if test "X${libopts_cv_run_fopen_text}" != Xno
7491 then
7493 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
7495 else
7497 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
7503 # Check to see if not wanting optional option args.
7505 # Check whether --enable-optional-args was given.
7506 if test "${enable_optional_args+set}" = set; then :
7507 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
7510 $as_echo_n "checking whether not wanting optional option args... " >&6; }
7511 if test "${libopts_cv_enable_optional_args+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 libopts_cv_enable_optional_args=yes
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
7517 $as_echo "$libopts_cv_enable_optional_args" >&6; }
7520 # end of AC_ARG_ENABLE
7522 if test "X${libopts_cv_enable_optional_args}" = Xno
7523 then
7525 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
7532 else
7534 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
7535 # =================
7536 # AC_HEADER_STDC
7537 # =================
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7539 $as_echo_n "checking for ANSI C header files... " >&6; }
7540 if test "${ac_cv_header_stdc+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7545 #include <stdlib.h>
7546 #include <stdarg.h>
7547 #include <string.h>
7548 #include <float.h>
7551 main ()
7555 return 0;
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"; then :
7559 ac_cv_header_stdc=yes
7560 else
7561 ac_cv_header_stdc=no
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 if test $ac_cv_header_stdc = yes; then
7566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <string.h>
7571 _ACEOF
7572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7573 $EGREP "memchr" >/dev/null 2>&1; then :
7575 else
7576 ac_cv_header_stdc=no
7578 rm -f conftest*
7582 if test $ac_cv_header_stdc = yes; then
7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #include <stdlib.h>
7588 _ACEOF
7589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590 $EGREP "free" >/dev/null 2>&1; then :
7592 else
7593 ac_cv_header_stdc=no
7595 rm -f conftest*
7599 if test $ac_cv_header_stdc = yes; then
7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7601 if test "$cross_compiling" = yes; then :
7603 else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <ctype.h>
7607 #include <stdlib.h>
7608 #if ((' ' & 0x0FF) == 0x020)
7609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7611 #else
7612 # define ISLOWER(c) \
7613 (('a' <= (c) && (c) <= 'i') \
7614 || ('j' <= (c) && (c) <= 'r') \
7615 || ('s' <= (c) && (c) <= 'z'))
7616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7617 #endif
7619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7621 main ()
7623 int i;
7624 for (i = 0; i < 256; i++)
7625 if (XOR (islower (i), ISLOWER (i))
7626 || toupper (i) != TOUPPER (i))
7627 return 2;
7628 return 0;
7630 _ACEOF
7631 if ac_fn_c_try_run "$LINENO"; then :
7633 else
7634 ac_cv_header_stdc=no
7636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7637 conftest.$ac_objext conftest.beam conftest.$ac_ext
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7643 $as_echo "$ac_cv_header_stdc" >&6; }
7644 if test $ac_cv_header_stdc = yes; then
7646 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7650 # =================
7651 # AC_HEADER_DIRENT
7652 # =================
7653 ac_header_dirent=no
7654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7655 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <sys/types.h>
7664 #include <$ac_hdr>
7667 main ()
7669 if ((DIR *) 0)
7670 return 0;
7672 return 0;
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 eval "$as_ac_Header=yes"
7677 else
7678 eval "$as_ac_Header=no"
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 eval ac_res=\$$as_ac_Header
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7684 $as_echo "$ac_res" >&6; }
7685 eval as_val=\$$as_ac_Header
7686 if test "x$as_val" = x""yes; then :
7687 cat >>confdefs.h <<_ACEOF
7688 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7689 _ACEOF
7691 ac_header_dirent=$ac_hdr; break
7694 done
7695 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7696 if test $ac_header_dirent = dirent.h; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7698 $as_echo_n "checking for library containing opendir... " >&6; }
7699 if test "${ac_cv_search_opendir+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 ac_func_search_save_LIBS=$LIBS
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7706 /* Override any GCC internal prototype to avoid an error.
7707 Use char because int might match the return type of a GCC
7708 builtin and then its argument prototype would still apply. */
7709 #ifdef __cplusplus
7710 extern "C"
7711 #endif
7712 char opendir ();
7714 main ()
7716 return opendir ();
7718 return 0;
7720 _ACEOF
7721 for ac_lib in '' dir; do
7722 if test -z "$ac_lib"; then
7723 ac_res="none required"
7724 else
7725 ac_res=-l$ac_lib
7726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7728 if ac_fn_c_try_link "$LINENO"; then :
7729 ac_cv_search_opendir=$ac_res
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext
7733 if test "${ac_cv_search_opendir+set}" = set; then :
7734 break
7736 done
7737 if test "${ac_cv_search_opendir+set}" = set; then :
7739 else
7740 ac_cv_search_opendir=no
7742 rm conftest.$ac_ext
7743 LIBS=$ac_func_search_save_LIBS
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7746 $as_echo "$ac_cv_search_opendir" >&6; }
7747 ac_res=$ac_cv_search_opendir
7748 if test "$ac_res" != no; then :
7749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7755 $as_echo_n "checking for library containing opendir... " >&6; }
7756 if test "${ac_cv_search_opendir+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 ac_func_search_save_LIBS=$LIBS
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7766 #ifdef __cplusplus
7767 extern "C"
7768 #endif
7769 char opendir ();
7771 main ()
7773 return opendir ();
7775 return 0;
7777 _ACEOF
7778 for ac_lib in '' x; do
7779 if test -z "$ac_lib"; then
7780 ac_res="none required"
7781 else
7782 ac_res=-l$ac_lib
7783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7785 if ac_fn_c_try_link "$LINENO"; then :
7786 ac_cv_search_opendir=$ac_res
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext
7790 if test "${ac_cv_search_opendir+set}" = set; then :
7791 break
7793 done
7794 if test "${ac_cv_search_opendir+set}" = set; then :
7796 else
7797 ac_cv_search_opendir=no
7799 rm conftest.$ac_ext
7800 LIBS=$ac_func_search_save_LIBS
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7803 $as_echo "$ac_cv_search_opendir" >&6; }
7804 ac_res=$ac_cv_search_opendir
7805 if test "$ac_res" != no; then :
7806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7813 # =================
7814 # AC_CHECK_HEADERS
7815 # =================
7816 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
7817 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
7818 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
7819 utime.h sysexits.h
7820 do :
7821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7822 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7823 eval as_val=\$$as_ac_Header
7824 if test "x$as_val" = x""yes; then :
7825 cat >>confdefs.h <<_ACEOF
7826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7827 _ACEOF
7831 done
7834 # --------------------------------------------
7835 # Verify certain entries from AC_CHECK_HEADERS
7836 # --------------------------------------------
7837 for f in sys_types sys_mman sys_param sys_stat sys_wait \
7838 string errno stdlib memory setjmp
7839 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
7840 test "${as_ac_var}" = set || \
7841 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
7842 done
7844 # ================================================
7845 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
7846 # if varargs.h is present define HAVE_VARARGS_H.
7847 # ================================================
7848 for ac_header in stdarg.h varargs.h
7849 do :
7850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7852 eval as_val=\$$as_ac_Header
7853 if test "x$as_val" = x""yes; then :
7854 cat >>confdefs.h <<_ACEOF
7855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7856 _ACEOF
7857 break
7860 done
7862 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7863 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
7866 # ================================================
7867 # Similarly for the string.h and strings.h headers
7868 # ================================================
7869 for ac_header in string.h strings.h
7870 do :
7871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7873 eval as_val=\$$as_ac_Header
7874 if test "x$as_val" = x""yes; then :
7875 cat >>confdefs.h <<_ACEOF
7876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7877 _ACEOF
7878 break
7881 done
7883 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7884 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
7887 # =====================
7888 # ...and limits headers
7889 # =====================
7890 for ac_header in limits.h sys/limits.h values.h
7891 do :
7892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7894 eval as_val=\$$as_ac_Header
7895 if test "x$as_val" = x""yes; then :
7896 cat >>confdefs.h <<_ACEOF
7897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7898 _ACEOF
7899 break
7902 done
7904 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7905 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
7908 # ========================
7909 # ...and int types headers
7910 # ========================
7911 for ac_header in stdint.h inttypes.h
7912 do :
7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7915 eval as_val=\$$as_ac_Header
7916 if test "x$as_val" = x""yes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7919 _ACEOF
7920 break
7923 done
7925 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7926 if test "x$ac_cv_type_int8_t" = x""yes; then :
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_INT8_T 1
7930 _ACEOF
7934 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7935 if test "x$ac_cv_type_uint8_t" = x""yes; then :
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_UINT8_T 1
7939 _ACEOF
7943 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7944 if test "x$ac_cv_type_int16_t" = x""yes; then :
7946 cat >>confdefs.h <<_ACEOF
7947 #define HAVE_INT16_T 1
7948 _ACEOF
7952 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7953 if test "x$ac_cv_type_uint16_t" = x""yes; then :
7955 cat >>confdefs.h <<_ACEOF
7956 #define HAVE_UINT16_T 1
7957 _ACEOF
7961 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7962 if test "x$ac_cv_type_int32_t" = x""yes; then :
7964 cat >>confdefs.h <<_ACEOF
7965 #define HAVE_INT32_T 1
7966 _ACEOF
7970 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7971 if test "x$ac_cv_type_uint32_t" = x""yes; then :
7973 cat >>confdefs.h <<_ACEOF
7974 #define HAVE_UINT32_T 1
7975 _ACEOF
7979 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7980 if test "x$ac_cv_type_intptr_t" = x""yes; then :
7982 cat >>confdefs.h <<_ACEOF
7983 #define HAVE_INTPTR_T 1
7984 _ACEOF
7988 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7989 if test "x$ac_cv_type_uint_t" = x""yes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_UINT_T 1
7993 _ACEOF
7999 # ====================
8000 # uintptr type & sizes
8001 # ====================
8002 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
8003 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_UINTPTR_T 1
8007 _ACEOF
8010 else
8012 $as_echo "#define uintptr_t unsigned long" >>confdefs.h
8016 # The cast to long int works around a bug in the HP C Compiler
8017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8019 # This bug is HP SR number 8606223364.
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
8021 $as_echo_n "checking size of char*... " >&6; }
8022 if test "${ac_cv_sizeof_charp+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
8027 else
8028 if test "$ac_cv_type_charp" = yes; then
8029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8031 { as_fn_set_status 77
8032 as_fn_error "cannot compute sizeof (char*)
8033 See \`config.log' for more details." "$LINENO" 5; }; }
8034 else
8035 ac_cv_sizeof_charp=0
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
8041 $as_echo "$ac_cv_sizeof_charp" >&6; }
8045 cat >>confdefs.h <<_ACEOF
8046 #define SIZEOF_CHARP $ac_cv_sizeof_charp
8047 _ACEOF
8050 # The cast to long int works around a bug in the HP C Compiler
8051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8053 # This bug is HP SR number 8606223364.
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8055 $as_echo_n "checking size of int... " >&6; }
8056 if test "${ac_cv_sizeof_int+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8061 else
8062 if test "$ac_cv_type_int" = yes; then
8063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8065 { as_fn_set_status 77
8066 as_fn_error "cannot compute sizeof (int)
8067 See \`config.log' for more details." "$LINENO" 5; }; }
8068 else
8069 ac_cv_sizeof_int=0
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8075 $as_echo "$ac_cv_sizeof_int" >&6; }
8079 cat >>confdefs.h <<_ACEOF
8080 #define SIZEOF_INT $ac_cv_sizeof_int
8081 _ACEOF
8084 # The cast to long int works around a bug in the HP C Compiler
8085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8087 # This bug is HP SR number 8606223364.
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8089 $as_echo_n "checking size of long... " >&6; }
8090 if test "${ac_cv_sizeof_long+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8095 else
8096 if test "$ac_cv_type_long" = yes; then
8097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8099 { as_fn_set_status 77
8100 as_fn_error "cannot compute sizeof (long)
8101 See \`config.log' for more details." "$LINENO" 5; }; }
8102 else
8103 ac_cv_sizeof_long=0
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8109 $as_echo "$ac_cv_sizeof_long" >&6; }
8113 cat >>confdefs.h <<_ACEOF
8114 #define SIZEOF_LONG $ac_cv_sizeof_long
8115 _ACEOF
8118 # The cast to long int works around a bug in the HP C Compiler
8119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8121 # This bug is HP SR number 8606223364.
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8123 $as_echo_n "checking size of short... " >&6; }
8124 if test "${ac_cv_sizeof_short+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
8129 else
8130 if test "$ac_cv_type_short" = yes; then
8131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8133 { as_fn_set_status 77
8134 as_fn_error "cannot compute sizeof (short)
8135 See \`config.log' for more details." "$LINENO" 5; }; }
8136 else
8137 ac_cv_sizeof_short=0
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8143 $as_echo "$ac_cv_sizeof_short" >&6; }
8147 cat >>confdefs.h <<_ACEOF
8148 #define SIZEOF_SHORT $ac_cv_sizeof_short
8149 _ACEOF
8153 # ----------------------------------------------------------------------
8154 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
8155 # ----------------------------------------------------------------------
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
8157 $as_echo_n "checking for pathfind in -lgen... " >&6; }
8158 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 ac_check_lib_save_LIBS=$LIBS
8162 LIBS="-lgen $LIBS"
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8169 #ifdef __cplusplus
8170 extern "C"
8171 #endif
8172 char pathfind ();
8174 main ()
8176 return pathfind ();
8178 return 0;
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"; then :
8182 ac_cv_lib_gen_pathfind=yes
8183 else
8184 ac_cv_lib_gen_pathfind=no
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 LIBS=$ac_check_lib_save_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
8191 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
8192 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_LIBGEN 1
8195 _ACEOF
8197 LIBS="-lgen $LIBS"
8201 for ac_func in vprintf
8202 do :
8203 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8204 if test "x$ac_cv_func_vprintf" = x""yes; then :
8205 cat >>confdefs.h <<_ACEOF
8206 #define HAVE_VPRINTF 1
8207 _ACEOF
8209 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8210 if test "x$ac_cv_func__doprnt" = x""yes; then :
8212 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8217 done
8220 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
8221 do :
8222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8224 eval as_val=\$$as_ac_var
8225 if test "x$as_val" = x""yes; then :
8226 cat >>confdefs.h <<_ACEOF
8227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8228 _ACEOF
8231 done
8233 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
8236 # end of AC_DEFUN of LIBOPTS_CHECK
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
8240 $as_echo_n "checking if $CC can handle #warning... " >&6; }
8241 if test "${ac_cv_cpp_warning+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8249 main ()
8251 #warning foo
8253 return 0;
8255 _ACEOF
8256 if ac_fn_c_try_compile "$LINENO"; then :
8257 ac_cv_cpp_warning=yes
8258 else
8259 ac_cv_cpp_warning=no
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
8266 $as_echo "$ac_cv_cpp_warning" >&6; }
8268 case "$ac_cv_cpp_warning" in
8271 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
8273 esac
8275 case "$GCC" in
8276 yes)
8277 SAVED_CFLAGS_AC="$CFLAGS"
8278 CFLAGS="$CFLAGS -Wstrict-overflow"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
8280 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
8281 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8289 main ()
8293 return 0;
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 ac_cv_gcc_Wstrict_overflow=yes
8298 else
8299 ac_cv_gcc_Wstrict_overflow=no
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
8307 $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
8308 CFLAGS="$SAVED_CFLAGS_AC"
8309 unset SAVED_CFLAGS_AC
8311 # $ac_cv_gcc_Wstrict_overflow is tested later to add the
8312 # flag to CFLAGS.
8314 esac
8317 case "$GCC" in
8318 yes)
8319 SAVED_CFLAGS_AC="$CFLAGS"
8320 CFLAGS="$CFLAGS -Winit-self"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
8322 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
8323 if test "${ac_cv_gcc_Winit_self+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8331 main ()
8335 return 0;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8339 ac_cv_gcc_Winit_self=yes
8340 else
8341 ac_cv_gcc_Winit_self=no
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
8349 $as_echo "$ac_cv_gcc_Winit_self" >&6; }
8350 CFLAGS="$SAVED_CFLAGS_AC"
8351 unset SAVED_CFLAGS_AC
8353 # $ac_cv_gcc_Winit_self is tested later to add the
8354 # flag to CFLAGS.
8356 esac
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
8361 $as_echo_n "checking for bin subdirectory... " >&6; }
8363 # Check whether --with-binsubdir was given.
8364 if test "${with_binsubdir+set}" = set; then :
8365 withval=$with_binsubdir; use_binsubdir="$withval"
8366 else
8367 use_binsubdir="bin"
8371 case "$use_binsubdir" in
8372 bin)
8374 sbin)
8377 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
8379 esac
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
8381 $as_echo "$use_binsubdir" >&6; }
8382 BINSUBDIR=$use_binsubdir
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
8386 $as_echo_n "checking if we want to use arlib... " >&6; }
8388 # Check whether --with-arlib was given.
8389 if test "${with_arlib+set}" = set; then :
8390 withval=$with_arlib; ans=$withval
8391 else
8392 ans=no
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
8396 $as_echo "$ans" >&6; }
8398 if test -d $srcdir/arlib
8399 then
8400 case "$ans" in
8401 yes)
8402 ARLIB_DIR=arlib
8405 subdirs="$subdirs arlib"
8408 esac
8413 # Check whether --with-rpath was given.
8414 if test "${with_rpath+set}" = set; then :
8415 withval=$with_rpath; ans=$withval
8416 else
8417 ans=x
8420 case "$ans" in
8422 need_dash_r=
8424 yes)
8425 need_dash_r=1
8427 esac
8428 # HMS: Why isn't this $build?
8429 # Well, that depends on if we need this for the build toolchain or
8430 # for info in the host executable...
8431 # I still have no idea which way this should go, but nobody has complained.
8432 case "$host" in
8433 *-*-netbsd*)
8434 case "$need_dash_r" in
8435 no) ;;
8436 *) need_dash_r=1
8438 esac
8440 *-*-solaris*)
8441 case "$need_dash_r" in
8442 no) ;;
8443 *) need_dash_r=1
8445 esac
8447 esac
8450 case "$build" in
8451 $host)
8453 *) case "$host" in
8454 *-*-vxworks*)
8455 # Quick and dirty sanity check
8456 case "$VX_KERNEL" in
8457 '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
8459 esac
8460 CFLAGS="$CFLAGS -DSYS_VXWORKS"
8462 esac
8464 esac
8466 for ac_prog in gawk mawk nawk awk
8468 # Extract the first word of "$ac_prog", so it can be a program name with args.
8469 set dummy $ac_prog; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if test "${ac_cv_prog_AWK+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 if test -n "$AWK"; then
8476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_prog_AWK="$ac_prog"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8491 IFS=$as_save_IFS
8495 AWK=$ac_cv_prog_AWK
8496 if test -n "$AWK"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8498 $as_echo "$AWK" >&6; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8505 test -n "$AWK" && break
8506 done
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8509 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8510 set x ${MAKE-make}
8511 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8512 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 cat >conftest.make <<\_ACEOF
8516 SHELL = /bin/sh
8517 all:
8518 @echo '@@@%%%=$(MAKE)=@@@%%%'
8519 _ACEOF
8520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8521 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8522 *@@@%%%=?*=@@@%%%*)
8523 eval ac_cv_prog_make_${ac_make}_set=yes;;
8525 eval ac_cv_prog_make_${ac_make}_set=no;;
8526 esac
8527 rm -f conftest.make
8529 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8532 SET_MAKE=
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 SET_MAKE="MAKE=${MAKE-make}"
8540 rm -f conftest*
8542 case "$GCC" in
8543 yes)
8544 CFLAGS="$CFLAGS -Wall"
8545 # CFLAGS="$CFLAGS -Wcast-align"
8546 CFLAGS="$CFLAGS -Wcast-qual"
8547 # CFLAGS="$CFLAGS -Wconversion"
8548 # CFLAGS="$CFLAGS -Werror"
8549 # CFLAGS="$CFLAGS -Wextra"
8550 # CFLAGS="$CFLAGS -Wfloat-equal"
8551 CFLAGS="$CFLAGS -Wmissing-prototypes"
8552 CFLAGS="$CFLAGS -Wpointer-arith"
8553 CFLAGS="$CFLAGS -Wshadow"
8555 # OpenSSL has a number of callback prototypes
8556 # inside other function prototypes which trigger
8557 # warnings with -Wstrict-prototypes, such as:
8559 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
8560 # int (*cb)(), int sgckey);
8561 # ^^^^^^^^^^^
8563 CFLAGS="$CFLAGS -Wno-strict-prototypes"
8564 # CFLAGS="$CFLAGS -Wtraditional"
8565 # CFLAGS="$CFLAGS -Wwrite-strings"
8566 case "$ac_cv_gcc_Winit_self" in
8567 yes)
8568 CFLAGS="$CFLAGS -Winit-self"
8569 esac
8570 case "$ac_cv_gcc_Wstrict_overflow" in
8571 yes)
8572 #not yet: CFLAGS="$CFLAGS -Wstrict-overflow"
8573 esac
8575 esac
8577 case "$host" in
8578 *-next-nextstep3)
8579 CFLAGS="$CFLAGS -posix"
8581 esac
8583 ac_busted_vpath_in_make=no
8585 case "$build" in
8586 *-*-irix6.1*) # 64 bit only
8587 # busted vpath?
8589 *-*-irix6*) # 6.2 (and later?)
8590 ac_busted_vpath_in_make=yes
8592 *-*-solaris2.5.1)
8593 ac_busted_vpath_in_make=yes
8595 *-*-unicosmp*)
8596 ac_busted_vpath_in_make=yes
8598 esac
8600 case "$ac_busted_vpath_in_make$srcdir" in
8601 no*) ;;
8602 yes.) ;;
8603 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
8605 as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5
8607 *) ;;
8608 esac
8610 esac
8616 # Check whether --enable-static was given.
8617 if test "${enable_static+set}" = set; then :
8618 enableval=$enable_static; p=${PACKAGE-default}
8619 case $enableval in
8620 yes) enable_static=yes ;;
8621 no) enable_static=no ;;
8623 enable_static=no
8624 # Look at the argument we got. We use all the common list separators.
8625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626 for pkg in $enableval; do
8627 IFS="$lt_save_ifs"
8628 if test "X$pkg" = "X$p"; then
8629 enable_static=yes
8631 done
8632 IFS="$lt_save_ifs"
8634 esac
8635 else
8636 enable_static=yes
8640 # Check whether --enable-fast-install was given.
8641 if test "${enable_fast_install+set}" = set; then :
8642 enableval=$enable_fast_install; p=${PACKAGE-default}
8643 case $enableval in
8644 yes) enable_fast_install=yes ;;
8645 no) enable_fast_install=no ;;
8647 enable_fast_install=no
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8650 for pkg in $enableval; do
8651 IFS="$lt_save_ifs"
8652 if test "X$pkg" = "X$p"; then
8653 enable_fast_install=yes
8655 done
8656 IFS="$lt_save_ifs"
8658 esac
8659 else
8660 enable_fast_install=yes
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8666 if test "${lt_cv_path_SED+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 # Loop through the user's path and test for sed and gsed.
8670 # Then use that list of sed's as ones to test for truncation.
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for lt_ac_prog in sed gsed; do
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8679 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8681 done
8682 done
8683 done
8684 lt_ac_max=0
8685 lt_ac_count=0
8686 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8687 # along with /bin/sed that truncates output.
8688 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8689 test ! -f $lt_ac_sed && continue
8690 cat /dev/null > conftest.in
8691 lt_ac_count=0
8692 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8693 # Check for GNU sed and select it if it is found.
8694 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8695 lt_cv_path_SED=$lt_ac_sed
8696 break
8698 while true; do
8699 cat conftest.in conftest.in >conftest.tmp
8700 mv conftest.tmp conftest.in
8701 cp conftest.in conftest.nl
8702 echo >>conftest.nl
8703 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8704 cmp -s conftest.out conftest.nl || break
8705 # 10000 chars as input seems more than enough
8706 test $lt_ac_count -gt 10 && break
8707 lt_ac_count=`expr $lt_ac_count + 1`
8708 if test $lt_ac_count -gt $lt_ac_max; then
8709 lt_ac_max=$lt_ac_count
8710 lt_cv_path_SED=$lt_ac_sed
8712 done
8713 done
8717 SED=$lt_cv_path_SED
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
8719 $as_echo "$SED" >&6; }
8722 # Check whether --with-gnu-ld was given.
8723 if test "${with_gnu_ld+set}" = set; then :
8724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8725 else
8726 with_gnu_ld=no
8729 ac_prog=ld
8730 if test "$GCC" = yes; then
8731 # Check if gcc -print-prog-name=ld gives a path.
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8733 $as_echo_n "checking for ld used by $CC... " >&6; }
8734 case $host in
8735 *-*-mingw*)
8736 # gcc leaves a trailing carriage return which upsets mingw
8737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8740 esac
8741 case $ac_prog in
8742 # Accept absolute paths.
8743 [\\/]* | ?:[\\/]*)
8744 re_direlt='/[^/][^/]*/\.\./'
8745 # Canonicalize the pathname of ld
8746 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8747 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8748 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8749 done
8750 test -z "$LD" && LD="$ac_prog"
8753 # If it fails, then pretend we aren't using GCC.
8754 ac_prog=ld
8757 # If it is relative, then search for the first ld in PATH.
8758 with_gnu_ld=unknown
8760 esac
8761 elif test "$with_gnu_ld" = yes; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8763 $as_echo_n "checking for GNU ld... " >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8766 $as_echo_n "checking for non-GNU ld... " >&6; }
8768 if test "${lt_cv_path_LD+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -z "$LD"; then
8772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8773 for ac_dir in $PATH; do
8774 IFS="$lt_save_ifs"
8775 test -z "$ac_dir" && ac_dir=.
8776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8777 lt_cv_path_LD="$ac_dir/$ac_prog"
8778 # Check to see if the program is GNU ld. I'd rather use --version,
8779 # but apparently some variants of GNU ld only accept -v.
8780 # Break only if it was the GNU/non-GNU ld that we prefer.
8781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8782 *GNU* | *'with BFD'*)
8783 test "$with_gnu_ld" != no && break
8786 test "$with_gnu_ld" != yes && break
8788 esac
8790 done
8791 IFS="$lt_save_ifs"
8792 else
8793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8797 LD="$lt_cv_path_LD"
8798 if test -n "$LD"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8800 $as_echo "$LD" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8812 case `$LD -v 2>&1 </dev/null` in
8813 *GNU* | *'with BFD'*)
8814 lt_cv_prog_gnu_ld=yes
8817 lt_cv_prog_gnu_ld=no
8819 esac
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8823 with_gnu_ld=$lt_cv_prog_gnu_ld
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8827 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8828 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_ld_reload_flag='-r'
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8834 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8835 reload_flag=$lt_cv_ld_reload_flag
8836 case $reload_flag in
8837 "" | " "*) ;;
8838 *) reload_flag=" $reload_flag" ;;
8839 esac
8840 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8841 case $host_os in
8842 darwin*)
8843 if test "$GCC" = yes; then
8844 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
8845 else
8846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8849 esac
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
8852 $as_echo_n "checking for BSD-compatible nm... " >&6; }
8853 if test "${lt_cv_path_NM+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 if test -n "$NM"; then
8857 # Let the user override the test.
8858 lt_cv_path_NM="$NM"
8859 else
8860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8861 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8862 IFS="$lt_save_ifs"
8863 test -z "$ac_dir" && ac_dir=.
8864 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8866 # Check to see if the nm accepts a BSD-compat flag.
8867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8868 # nm: unknown option "B" ignored
8869 # Tru64's nm complains that /dev/null is an invalid object file
8870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8871 */dev/null* | *'Invalid file or object type'*)
8872 lt_cv_path_NM="$tmp_nm -B"
8873 break
8876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8877 */dev/null*)
8878 lt_cv_path_NM="$tmp_nm -p"
8879 break
8882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8883 continue # so that we can try to find one that supports BSD flags
8885 esac
8886 esac
8888 done
8889 IFS="$lt_save_ifs"
8890 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8894 $as_echo "$lt_cv_path_NM" >&6; }
8895 NM="$lt_cv_path_NM"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8898 $as_echo_n "checking whether ln -s works... " >&6; }
8899 LN_S=$as_ln_s
8900 if test "$LN_S" = "ln -s"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8902 $as_echo "yes" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8905 $as_echo "no, using $LN_S" >&6; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
8909 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
8910 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 lt_cv_file_magic_cmd='$MAGIC_CMD'
8914 lt_cv_file_magic_test_file=
8915 lt_cv_deplibs_check_method='unknown'
8916 # Need to set the preceding variable on all platforms that support
8917 # interlibrary dependencies.
8918 # 'none' -- dependencies not supported.
8919 # `unknown' -- same as none, but documents that we really don't know.
8920 # 'pass_all' -- all dependencies passed with no checks.
8921 # 'test_compile' -- check by making test program.
8922 # 'file_magic [[regex]]' -- check by looking for files in library path
8923 # which responds to the $file_magic_cmd with a given extended regex.
8924 # If you have `file' or equivalent on your system and you're not sure
8925 # whether `pass_all' will *always* work, you probably want this one.
8927 case $host_os in
8928 aix4* | aix5*)
8929 lt_cv_deplibs_check_method=pass_all
8932 beos*)
8933 lt_cv_deplibs_check_method=pass_all
8936 bsdi[45]*)
8937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8938 lt_cv_file_magic_cmd='/usr/bin/file -L'
8939 lt_cv_file_magic_test_file=/shlib/libc.so
8942 cygwin*)
8943 # func_win32_libid is a shell function defined in ltmain.sh
8944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8945 lt_cv_file_magic_cmd='func_win32_libid'
8948 mingw* | pw32*)
8949 # Base MSYS/MinGW do not provide the 'file' command needed by
8950 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8951 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8952 lt_cv_file_magic_cmd='$OBJDUMP -f'
8955 darwin* | rhapsody*)
8956 lt_cv_deplibs_check_method=pass_all
8959 freebsd* | kfreebsd*-gnu | dragonfly*)
8960 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8961 case $host_cpu in
8962 i*86 )
8963 # Not sure whether the presence of OpenBSD here was a mistake.
8964 # Let's accept both of them until this is cleared up.
8965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8966 lt_cv_file_magic_cmd=/usr/bin/file
8967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8969 esac
8970 else
8971 lt_cv_deplibs_check_method=pass_all
8975 gnu*)
8976 lt_cv_deplibs_check_method=pass_all
8979 hpux10.20* | hpux11*)
8980 lt_cv_file_magic_cmd=/usr/bin/file
8981 case $host_cpu in
8982 ia64*)
8983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8986 hppa*64*)
8987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8994 esac
8997 irix5* | irix6* | nonstopux*)
8998 case $LD in
8999 *-32|*"-32 ") libmagic=32-bit;;
9000 *-n32|*"-n32 ") libmagic=N32;;
9001 *-64|*"-64 ") libmagic=64-bit;;
9002 *) libmagic=never-match;;
9003 esac
9004 lt_cv_deplibs_check_method=pass_all
9007 # This must be Linux ELF.
9008 linux*)
9009 lt_cv_deplibs_check_method=pass_all
9012 netbsd*)
9013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9015 else
9016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9020 newos6*)
9021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9022 lt_cv_file_magic_cmd=/usr/bin/file
9023 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9026 nto-qnx*)
9027 lt_cv_deplibs_check_method=unknown
9030 openbsd*)
9031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9033 else
9034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9038 osf3* | osf4* | osf5*)
9039 lt_cv_deplibs_check_method=pass_all
9042 sco3.2v5*)
9043 lt_cv_deplibs_check_method=pass_all
9046 solaris*)
9047 lt_cv_deplibs_check_method=pass_all
9050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9051 case $host_vendor in
9052 motorola)
9053 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]'
9054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9056 ncr)
9057 lt_cv_deplibs_check_method=pass_all
9059 sequent)
9060 lt_cv_file_magic_cmd='/bin/file'
9061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9063 sni)
9064 lt_cv_file_magic_cmd='/bin/file'
9065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9066 lt_cv_file_magic_test_file=/lib/libc.so
9068 siemens)
9069 lt_cv_deplibs_check_method=pass_all
9071 esac
9074 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
9075 lt_cv_deplibs_check_method=pass_all
9077 esac
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9082 file_magic_cmd=$lt_cv_file_magic_cmd
9083 deplibs_check_method=$lt_cv_deplibs_check_method
9084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9089 # If no C compiler was specified, use CC.
9090 LTCC=${LTCC-"$CC"}
9092 # Allow CC to be a program name with arguments.
9093 compiler=$CC
9095 # Check whether --enable-libtool-lock was given.
9096 if test "${enable_libtool_lock+set}" = set; then :
9097 enableval=$enable_libtool_lock;
9100 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9102 # Some flags need to be propagated to the compiler or linker for good
9103 # libtool support.
9104 case $host in
9105 ia64-*-hpux*)
9106 # Find out which ABI we are using.
9107 echo 'int i;' > conftest.$ac_ext
9108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9109 (eval $ac_compile) 2>&5
9110 ac_status=$?
9111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112 test $ac_status = 0; }; then
9113 case `/usr/bin/file conftest.$ac_objext` in
9114 *ELF-32*)
9115 HPUX_IA64_MODE="32"
9117 *ELF-64*)
9118 HPUX_IA64_MODE="64"
9120 esac
9122 rm -rf conftest*
9124 *-*-irix6*)
9125 # Find out which ABI we are using.
9126 echo '#line 9126 "configure"' > conftest.$ac_ext
9127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9128 (eval $ac_compile) 2>&5
9129 ac_status=$?
9130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9131 test $ac_status = 0; }; then
9132 if test "$lt_cv_prog_gnu_ld" = yes; then
9133 case `/usr/bin/file conftest.$ac_objext` in
9134 *32-bit*)
9135 LD="${LD-ld} -melf32bsmip"
9137 *N32*)
9138 LD="${LD-ld} -melf32bmipn32"
9140 *64-bit*)
9141 LD="${LD-ld} -melf64bmip"
9143 esac
9144 else
9145 case `/usr/bin/file conftest.$ac_objext` in
9146 *32-bit*)
9147 LD="${LD-ld} -32"
9149 *N32*)
9150 LD="${LD-ld} -n32"
9152 *64-bit*)
9153 LD="${LD-ld} -64"
9155 esac
9158 rm -rf conftest*
9161 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
9162 # Find out which ABI we are using.
9163 echo 'int i;' > conftest.$ac_ext
9164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9165 (eval $ac_compile) 2>&5
9166 ac_status=$?
9167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9168 test $ac_status = 0; }; then
9169 case `/usr/bin/file conftest.o` in
9170 *32-bit*)
9171 case $host in
9172 x86_64-*linux*)
9173 LD="${LD-ld} -m elf_i386"
9175 ppc64-*linux*|powerpc64-*linux*)
9176 LD="${LD-ld} -m elf32ppclinux"
9178 s390x-*linux*)
9179 LD="${LD-ld} -m elf_s390"
9181 sparc64-*linux*)
9182 LD="${LD-ld} -m elf32_sparc"
9184 esac
9186 *64-bit*)
9187 case $host in
9188 x86_64-*linux*)
9189 LD="${LD-ld} -m elf_x86_64"
9191 ppc*-*linux*|powerpc*-*linux*)
9192 LD="${LD-ld} -m elf64ppc"
9194 s390*-*linux*)
9195 LD="${LD-ld} -m elf64_s390"
9197 sparc*-*linux*)
9198 LD="${LD-ld} -m elf64_sparc"
9200 esac
9202 esac
9204 rm -rf conftest*
9207 *-*-sco3.2v5*)
9208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9209 SAVE_CFLAGS="$CFLAGS"
9210 CFLAGS="$CFLAGS -belf"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9212 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9213 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 ac_ext=c
9217 ac_cpp='$CPP $CPPFLAGS'
9218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9226 main ()
9230 return 0;
9232 _ACEOF
9233 if ac_fn_c_try_link "$LINENO"; then :
9234 lt_cv_cc_needs_belf=yes
9235 else
9236 lt_cv_cc_needs_belf=no
9238 rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 ac_ext=c
9241 ac_cpp='$CPP $CPPFLAGS'
9242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9251 CFLAGS="$SAVE_CFLAGS"
9255 esac
9257 need_locks="$enable_libtool_lock"
9260 for ac_header in dlfcn.h
9261 do :
9262 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9263 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_DLFCN_H 1
9266 _ACEOF
9270 done
9273 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9275 # find the maximum length of command line arguments
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9277 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9278 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9282 teststring="ABCD"
9284 case $build_os in
9285 msdosdjgpp*)
9286 # On DJGPP, this test can blow up pretty badly due to problems in libc
9287 # (any single argument exceeding 2000 bytes causes a buffer overrun
9288 # during glob expansion). Even if it were fixed, the result of this
9289 # check would be larger than it should be.
9290 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9293 gnu*)
9294 # Under GNU Hurd, this test is not required because there is
9295 # no limit to the length of command line arguments.
9296 # Libtool will interpret -1 as no limit whatsoever
9297 lt_cv_sys_max_cmd_len=-1;
9300 cygwin* | mingw*)
9301 # On Win9x/ME, this test blows up -- it succeeds, but takes
9302 # about 5 minutes as the teststring grows exponentially.
9303 # Worse, since 9x/ME are not pre-emptively multitasking,
9304 # you end up with a "frozen" computer, even though with patience
9305 # the test eventually succeeds (with a max line length of 256k).
9306 # Instead, let's just punt: use the minimum linelength reported by
9307 # all of the supported platforms: 8192 (on NT/2K/XP).
9308 lt_cv_sys_max_cmd_len=8192;
9311 amigaos*)
9312 # On AmigaOS with pdksh, this test takes hours, literally.
9313 # So we just punt and use a minimum line length of 8192.
9314 lt_cv_sys_max_cmd_len=8192;
9317 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9318 # This has been around since 386BSD, at least. Likely further.
9319 if test -x /sbin/sysctl; then
9320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9321 elif test -x /usr/sbin/sysctl; then
9322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9323 else
9324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9326 # And add a safety zone
9327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9330 osf*)
9331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9333 # nice to cause kernel panics so lets avoid the loop below.
9334 # First set a reasonable default.
9335 lt_cv_sys_max_cmd_len=16384
9337 if test -x /sbin/sysconfig; then
9338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9339 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9340 esac
9344 # If test is not a shell built-in, we'll probably end up computing a
9345 # maximum length that is only half of the actual maximum length, but
9346 # we can't tell.
9347 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9348 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9349 = "XX$teststring") >/dev/null 2>&1 &&
9350 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9351 lt_cv_sys_max_cmd_len=$new_result &&
9352 test $i != 17 # 1/2 MB should be enough
9354 i=`expr $i + 1`
9355 teststring=$teststring$teststring
9356 done
9357 teststring=
9358 # Add a significant safety factor because C++ compilers can tack on massive
9359 # amounts of additional arguments before passing them to the linker.
9360 # It appears as though 1/2 is a usable value.
9361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9363 esac
9367 if test -n $lt_cv_sys_max_cmd_len ; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9369 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9370 else
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9372 $as_echo "none" >&6; }
9378 # Check for command to grab the raw symbol name followed by C symbol from nm.
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9380 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9381 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9385 # These are sane defaults that work on at least a few old systems.
9386 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9388 # Character class describing NM global symbol codes.
9389 symcode='[BCDEGRST]'
9391 # Regexp to match symbols that can be accessed directly from C.
9392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9394 # Transform an extracted symbol line into a proper C declaration
9395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9397 # Transform an extracted symbol line into symbol name and symbol address
9398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9400 # Define system-specific variables.
9401 case $host_os in
9402 aix*)
9403 symcode='[BCDT]'
9405 cygwin* | mingw* | pw32*)
9406 symcode='[ABCDGISTW]'
9408 hpux*) # Its linker distinguishes data from code symbols
9409 if test "$host_cpu" = ia64; then
9410 symcode='[ABCDEGRST]'
9412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9413 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9415 linux*)
9416 if test "$host_cpu" = ia64; then
9417 symcode='[ABCDGIRSTW]'
9418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9419 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9422 irix* | nonstopux*)
9423 symcode='[BCDEGRST]'
9425 osf*)
9426 symcode='[BCDEGQRST]'
9428 solaris* | sysv5*)
9429 symcode='[BDRT]'
9431 sysv4)
9432 symcode='[DFNSTU]'
9434 esac
9436 # Handle CRLF in mingw tool chain
9437 opt_cr=
9438 case $build_os in
9439 mingw*)
9440 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9442 esac
9444 # If we're using GNU nm, then use its standard symbol codes.
9445 case `$NM -V 2>&1` in
9446 *GNU* | *'with BFD'*)
9447 symcode='[ABCDGIRSTW]' ;;
9448 esac
9450 # Try without a prefix undercore, then with it.
9451 for ac_symprfx in "" "_"; do
9453 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9454 symxfrm="\\1 $ac_symprfx\\2 \\2"
9456 # Write the raw and C identifiers.
9457 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9459 # Check to see that the pipe works correctly.
9460 pipe_works=no
9462 rm -f conftest*
9463 cat > conftest.$ac_ext <<EOF
9464 #ifdef __cplusplus
9465 extern "C" {
9466 #endif
9467 char nm_test_var;
9468 void nm_test_func(){}
9469 #ifdef __cplusplus
9471 #endif
9472 int main(){nm_test_var='a';nm_test_func();return(0);}
9475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9476 (eval $ac_compile) 2>&5
9477 ac_status=$?
9478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; }; then
9480 # Now try to grab the symbols.
9481 nlist=conftest.nm
9482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9483 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9484 ac_status=$?
9485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486 test $ac_status = 0; } && test -s "$nlist"; then
9487 # Try sorting and uniquifying the output.
9488 if sort "$nlist" | uniq > "$nlist"T; then
9489 mv -f "$nlist"T "$nlist"
9490 else
9491 rm -f "$nlist"T
9494 # Make sure that we snagged all the symbols we need.
9495 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9496 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9497 cat <<EOF > conftest.$ac_ext
9498 #ifdef __cplusplus
9499 extern "C" {
9500 #endif
9503 # Now generate the symbol file.
9504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9506 cat <<EOF >> conftest.$ac_ext
9507 #if defined (__STDC__) && __STDC__
9508 # define lt_ptr_t void *
9509 #else
9510 # define lt_ptr_t char *
9511 # define const
9512 #endif
9514 /* The mapping between symbol names and symbols. */
9515 const struct {
9516 const char *name;
9517 lt_ptr_t address;
9519 lt_preloaded_symbols[] =
9522 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9523 cat <<\EOF >> conftest.$ac_ext
9524 {0, (lt_ptr_t) 0}
9527 #ifdef __cplusplus
9529 #endif
9531 # Now try linking the two files.
9532 mv conftest.$ac_objext conftstm.$ac_objext
9533 lt_save_LIBS="$LIBS"
9534 lt_save_CFLAGS="$CFLAGS"
9535 LIBS="conftstm.$ac_objext"
9536 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9538 (eval $ac_link) 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9542 pipe_works=yes
9544 LIBS="$lt_save_LIBS"
9545 CFLAGS="$lt_save_CFLAGS"
9546 else
9547 echo "cannot find nm_test_func in $nlist" >&5
9549 else
9550 echo "cannot find nm_test_var in $nlist" >&5
9552 else
9553 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9555 else
9556 echo "$progname: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9559 rm -f conftest* conftst*
9561 # Do not use the global_symbol_pipe unless it works.
9562 if test "$pipe_works" = yes; then
9563 break
9564 else
9565 lt_cv_sys_global_symbol_pipe=
9567 done
9571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9572 lt_cv_sys_global_symbol_to_cdecl=
9574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9576 $as_echo "failed" >&6; }
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9579 $as_echo "ok" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9583 $as_echo_n "checking for objdir... " >&6; }
9584 if test "${lt_cv_objdir+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 rm -f .libs 2>/dev/null
9588 mkdir .libs 2>/dev/null
9589 if test -d .libs; then
9590 lt_cv_objdir=.libs
9591 else
9592 # MS-DOS does not allow filenames that begin with a dot.
9593 lt_cv_objdir=_libs
9595 rmdir .libs 2>/dev/null
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9598 $as_echo "$lt_cv_objdir" >&6; }
9599 objdir=$lt_cv_objdir
9605 case $host_os in
9606 aix3*)
9607 # AIX sometimes has problems with the GCC collect2 program. For some
9608 # reason, if we set the COLLECT_NAMES environment variable, the problems
9609 # vanish in a puff of smoke.
9610 if test "X${COLLECT_NAMES+set}" != Xset; then
9611 COLLECT_NAMES=
9612 export COLLECT_NAMES
9615 esac
9617 # Sed substitution that helps us do robust quoting. It backslashifies
9618 # metacharacters that are still active within double-quoted strings.
9619 Xsed='sed -e 1s/^X//'
9620 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9622 # Same as above, but do not quote variable references.
9623 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9625 # Sed substitution to delay expansion of an escaped shell variable in a
9626 # double_quote_subst'ed string.
9627 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9629 # Sed substitution to avoid accidental globbing in evaled expressions
9630 no_glob_subst='s/\*/\\\*/g'
9632 # Constants:
9633 rm="rm -f"
9635 # Global variables:
9636 default_ofile=libtool
9637 can_build_shared=yes
9639 # All known linkers require a `.a' archive for static linking (except MSVC,
9640 # which needs '.lib').
9641 libext=a
9642 ltmain="$ac_aux_dir/ltmain.sh"
9643 ofile="$default_ofile"
9644 with_gnu_ld="$lt_cv_prog_gnu_ld"
9646 if test -n "$ac_tool_prefix"; then
9647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9648 set dummy ${ac_tool_prefix}ar; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if test "${ac_cv_prog_AR+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test -n "$AR"; then
9655 ac_cv_prog_AR="$AR" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_prog_AR="${ac_tool_prefix}ar"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9674 AR=$ac_cv_prog_AR
9675 if test -n "$AR"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9677 $as_echo "$AR" >&6; }
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9685 if test -z "$ac_cv_prog_AR"; then
9686 ac_ct_AR=$AR
9687 # Extract the first word of "ar", so it can be a program name with args.
9688 set dummy ar; ac_word=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 if test -n "$ac_ct_AR"; then
9695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9696 else
9697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in $PATH
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704 ac_cv_prog_ac_ct_AR="ar"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 break 2
9708 done
9709 done
9710 IFS=$as_save_IFS
9714 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9715 if test -n "$ac_ct_AR"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9717 $as_echo "$ac_ct_AR" >&6; }
9718 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9723 if test "x$ac_ct_AR" = x; then
9724 AR="false"
9725 else
9726 case $cross_compiling:$ac_tool_warned in
9727 yes:)
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9730 ac_tool_warned=yes ;;
9731 esac
9732 AR=$ac_ct_AR
9734 else
9735 AR="$ac_cv_prog_AR"
9738 if test -n "$ac_tool_prefix"; then
9739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742 $as_echo_n "checking for $ac_word... " >&6; }
9743 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 if test -n "$RANLIB"; then
9747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9748 else
9749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750 for as_dir in $PATH
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 break 2
9760 done
9761 done
9762 IFS=$as_save_IFS
9766 RANLIB=$ac_cv_prog_RANLIB
9767 if test -n "$RANLIB"; then
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9769 $as_echo "$RANLIB" >&6; }
9770 else
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9777 if test -z "$ac_cv_prog_RANLIB"; then
9778 ac_ct_RANLIB=$RANLIB
9779 # Extract the first word of "ranlib", so it can be a program name with args.
9780 set dummy ranlib; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 if test -n "$ac_ct_RANLIB"; then
9787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_ac_ct_RANLIB="ranlib"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9800 done
9801 done
9802 IFS=$as_save_IFS
9806 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9807 if test -n "$ac_ct_RANLIB"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9809 $as_echo "$ac_ct_RANLIB" >&6; }
9810 else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9815 if test "x$ac_ct_RANLIB" = x; then
9816 RANLIB=":"
9817 else
9818 case $cross_compiling:$ac_tool_warned in
9819 yes:)
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9822 ac_tool_warned=yes ;;
9823 esac
9824 RANLIB=$ac_ct_RANLIB
9826 else
9827 RANLIB="$ac_cv_prog_RANLIB"
9830 if test -n "$ac_tool_prefix"; then
9831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9832 set dummy ${ac_tool_prefix}strip; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if test "${ac_cv_prog_STRIP+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 if test -n "$STRIP"; then
9839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9840 else
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in $PATH
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9852 done
9853 done
9854 IFS=$as_save_IFS
9858 STRIP=$ac_cv_prog_STRIP
9859 if test -n "$STRIP"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9861 $as_echo "$STRIP" >&6; }
9862 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9869 if test -z "$ac_cv_prog_STRIP"; then
9870 ac_ct_STRIP=$STRIP
9871 # Extract the first word of "strip", so it can be a program name with args.
9872 set dummy strip; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 if test -n "$ac_ct_STRIP"; then
9879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9880 else
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888 ac_cv_prog_ac_ct_STRIP="strip"
9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9892 done
9893 done
9894 IFS=$as_save_IFS
9898 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9899 if test -n "$ac_ct_STRIP"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9901 $as_echo "$ac_ct_STRIP" >&6; }
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9907 if test "x$ac_ct_STRIP" = x; then
9908 STRIP=":"
9909 else
9910 case $cross_compiling:$ac_tool_warned in
9911 yes:)
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914 ac_tool_warned=yes ;;
9915 esac
9916 STRIP=$ac_ct_STRIP
9918 else
9919 STRIP="$ac_cv_prog_STRIP"
9923 old_CC="$CC"
9924 old_CFLAGS="$CFLAGS"
9926 # Set sane defaults for various variables
9927 test -z "$AR" && AR=ar
9928 test -z "$AR_FLAGS" && AR_FLAGS=cru
9929 test -z "$AS" && AS=as
9930 test -z "$CC" && CC=cc
9931 test -z "$LTCC" && LTCC=$CC
9932 test -z "$DLLTOOL" && DLLTOOL=dlltool
9933 test -z "$LD" && LD=ld
9934 test -z "$LN_S" && LN_S="ln -s"
9935 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9936 test -z "$NM" && NM=nm
9937 test -z "$SED" && SED=sed
9938 test -z "$OBJDUMP" && OBJDUMP=objdump
9939 test -z "$RANLIB" && RANLIB=:
9940 test -z "$STRIP" && STRIP=:
9941 test -z "$ac_objext" && ac_objext=o
9943 # Determine commands to create old-style static archives.
9944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9945 old_postinstall_cmds='chmod 644 $oldlib'
9946 old_postuninstall_cmds=
9948 if test -n "$RANLIB"; then
9949 case $host_os in
9950 openbsd*)
9951 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9954 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9956 esac
9957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9960 for cc_temp in $compiler""; do
9961 case $cc_temp in
9962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9964 \-*) ;;
9965 *) break;;
9966 esac
9967 done
9968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9971 # Only perform the check for file, if the check method requires it
9972 case $deplibs_check_method in
9973 file_magic*)
9974 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9976 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 case $MAGIC_CMD in
9981 [\\/*] | ?:[\\/]*)
9982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9985 lt_save_MAGIC_CMD="$MAGIC_CMD"
9986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9988 for ac_dir in $ac_dummy; do
9989 IFS="$lt_save_ifs"
9990 test -z "$ac_dir" && ac_dir=.
9991 if test -f $ac_dir/${ac_tool_prefix}file; then
9992 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9993 if test -n "$file_magic_test_file"; then
9994 case $deplibs_check_method in
9995 "file_magic "*)
9996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9999 $EGREP "$file_magic_regex" > /dev/null; then
10001 else
10002 cat <<EOF 1>&2
10004 *** Warning: the command libtool uses to detect shared libraries,
10005 *** $file_magic_cmd, produces output that libtool cannot recognize.
10006 *** The result is that libtool may fail to recognize shared libraries
10007 *** as such. This will affect the creation of libtool libraries that
10008 *** depend on shared libraries, but programs linked with such libtool
10009 *** libraries will work regardless of this problem. Nevertheless, you
10010 *** may want to report the problem to your system manager and/or to
10011 *** bug-libtool@gnu.org
10014 fi ;;
10015 esac
10017 break
10019 done
10020 IFS="$lt_save_ifs"
10021 MAGIC_CMD="$lt_save_MAGIC_CMD"
10023 esac
10026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10027 if test -n "$MAGIC_CMD"; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10029 $as_echo "$MAGIC_CMD" >&6; }
10030 else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10035 if test -z "$lt_cv_path_MAGIC_CMD"; then
10036 if test -n "$ac_tool_prefix"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10038 $as_echo_n "checking for file... " >&6; }
10039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 case $MAGIC_CMD in
10043 [\\/*] | ?:[\\/]*)
10044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10047 lt_save_MAGIC_CMD="$MAGIC_CMD"
10048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10050 for ac_dir in $ac_dummy; do
10051 IFS="$lt_save_ifs"
10052 test -z "$ac_dir" && ac_dir=.
10053 if test -f $ac_dir/file; then
10054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10055 if test -n "$file_magic_test_file"; then
10056 case $deplibs_check_method in
10057 "file_magic "*)
10058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10061 $EGREP "$file_magic_regex" > /dev/null; then
10063 else
10064 cat <<EOF 1>&2
10066 *** Warning: the command libtool uses to detect shared libraries,
10067 *** $file_magic_cmd, produces output that libtool cannot recognize.
10068 *** The result is that libtool may fail to recognize shared libraries
10069 *** as such. This will affect the creation of libtool libraries that
10070 *** depend on shared libraries, but programs linked with such libtool
10071 *** libraries will work regardless of this problem. Nevertheless, you
10072 *** may want to report the problem to your system manager and/or to
10073 *** bug-libtool@gnu.org
10076 fi ;;
10077 esac
10079 break
10081 done
10082 IFS="$lt_save_ifs"
10083 MAGIC_CMD="$lt_save_MAGIC_CMD"
10085 esac
10088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10089 if test -n "$MAGIC_CMD"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10091 $as_echo "$MAGIC_CMD" >&6; }
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10097 else
10098 MAGIC_CMD=:
10104 esac
10106 enable_dlopen=no
10107 enable_win32_dll=no
10109 # Check whether --enable-libtool-lock was given.
10110 if test "${enable_libtool_lock+set}" = set; then :
10111 enableval=$enable_libtool_lock;
10114 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10117 # Check whether --with-pic was given.
10118 if test "${with_pic+set}" = set; then :
10119 withval=$with_pic; pic_mode="$withval"
10120 else
10121 pic_mode=default
10124 test -z "$pic_mode" && pic_mode=default
10126 # Use C for the default configuration in the libtool script
10127 tagname=
10128 lt_save_CC="$CC"
10129 ac_ext=c
10130 ac_cpp='$CPP $CPPFLAGS'
10131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10136 # Source file extension for C test sources.
10137 ac_ext=c
10139 # Object file extension for compiled C test sources.
10140 objext=o
10141 objext=$objext
10143 # Code to be used in simple compile tests
10144 lt_simple_compile_test_code="int some_variable = 0;\n"
10146 # Code to be used in simple link tests
10147 lt_simple_link_test_code='int main(){return(0);}\n'
10150 # If no C compiler was specified, use CC.
10151 LTCC=${LTCC-"$CC"}
10153 # Allow CC to be a program name with arguments.
10154 compiler=$CC
10157 # save warnings/boilerplate of simple test code
10158 ac_outfile=conftest.$ac_objext
10159 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10161 _lt_compiler_boilerplate=`cat conftest.err`
10162 $rm conftest*
10164 ac_outfile=conftest.$ac_objext
10165 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10167 _lt_linker_boilerplate=`cat conftest.err`
10168 $rm conftest*
10172 # Check for any special shared library compilation flags.
10174 lt_prog_cc_shlib=
10175 if test "$GCC" = no; then
10176 case $host_os in
10177 sco3.2v5*)
10178 lt_prog_cc_shlib='-belf'
10180 esac
10182 if test -n "$lt_prog_cc_shlib"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10184 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10185 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10188 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10189 lt_cv_prog_cc_can_build_shared=no
10195 # Check to make sure the static flag actually works.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10198 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
10199 if test "${lt_prog_compiler_static_works+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 lt_prog_compiler_static_works=no
10203 save_LDFLAGS="$LDFLAGS"
10204 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10205 printf "$lt_simple_link_test_code" > conftest.$ac_ext
10206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10207 # The linker can only warn and ignore the option if not recognized
10208 # So say no if there are warnings
10209 if test -s conftest.err; then
10210 # Append any errors to the config.log.
10211 cat conftest.err 1>&5
10212 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
10213 $SED '/^$/d' conftest.err >conftest.er2
10214 if diff conftest.exp conftest.er2 >/dev/null; then
10215 lt_prog_compiler_static_works=yes
10217 else
10218 lt_prog_compiler_static_works=yes
10221 $rm conftest*
10222 LDFLAGS="$save_LDFLAGS"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
10226 $as_echo "$lt_prog_compiler_static_works" >&6; }
10228 if test x"$lt_prog_compiler_static_works" = xyes; then
10230 else
10231 lt_prog_compiler_static=
10237 lt_prog_compiler_no_builtin_flag=
10239 if test "$GCC" = yes; then
10240 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10244 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10245 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 lt_cv_prog_compiler_rtti_exceptions=no
10249 ac_outfile=conftest.$ac_objext
10250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10251 lt_compiler_flag="-fno-rtti -fno-exceptions"
10252 # Insert the option either (1) after the last *FLAGS variable, or
10253 # (2) before a word containing "conftest.", or (3) at the end.
10254 # Note that $ac_compile itself does not contain backslashes and begins
10255 # with a dollar sign (not a hyphen), so the echo should work correctly.
10256 # The option is referenced via a variable to avoid confusing sed.
10257 lt_compile=`echo "$ac_compile" | $SED \
10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10260 -e 's:$: $lt_compiler_flag:'`
10261 (eval echo "\"\$as_me:10261: $lt_compile\"" >&5)
10262 (eval "$lt_compile" 2>conftest.err)
10263 ac_status=$?
10264 cat conftest.err >&5
10265 echo "$as_me:10265: \$? = $ac_status" >&5
10266 if (exit $ac_status) && test -s "$ac_outfile"; then
10267 # The compiler can only warn and ignore the option if not recognized
10268 # So say no if there are warnings other than the usual output.
10269 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10270 $SED '/^$/d' conftest.err >conftest.er2
10271 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10272 lt_cv_prog_compiler_rtti_exceptions=yes
10275 $rm conftest*
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10279 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10281 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10283 else
10289 lt_prog_compiler_wl=
10290 lt_prog_compiler_pic=
10291 lt_prog_compiler_static=
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10294 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10296 if test "$GCC" = yes; then
10297 lt_prog_compiler_wl='-Wl,'
10298 lt_prog_compiler_static='-static'
10300 case $host_os in
10301 aix*)
10302 # All AIX code is PIC.
10303 if test "$host_cpu" = ia64; then
10304 # AIX 5 now supports IA64 processor
10305 lt_prog_compiler_static='-Bstatic'
10309 amigaos*)
10310 # FIXME: we need at least 68020 code to build shared libraries, but
10311 # adding the `-m68020' flag to GCC prevents building anything better,
10312 # like `-m68040'.
10313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10316 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10317 # PIC is the default for these OSes.
10320 mingw* | pw32* | os2*)
10321 # This hack is so that the source file can tell whether it is being
10322 # built for inclusion in a dll (and should export symbols for example).
10323 lt_prog_compiler_pic='-DDLL_EXPORT'
10326 darwin* | rhapsody*)
10327 # PIC is the default on this platform
10328 # Common symbols not allowed in MH_DYLIB files
10329 lt_prog_compiler_pic='-fno-common'
10332 msdosdjgpp*)
10333 # Just because we use GCC doesn't mean we suddenly get shared libraries
10334 # on systems that don't support them.
10335 lt_prog_compiler_can_build_shared=no
10336 enable_shared=no
10339 sysv4*MP*)
10340 if test -d /usr/nec; then
10341 lt_prog_compiler_pic=-Kconform_pic
10345 hpux*)
10346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10347 # not for PA HP-UX.
10348 case $host_cpu in
10349 hppa*64*|ia64*)
10350 # +Z the default
10353 lt_prog_compiler_pic='-fPIC'
10355 esac
10359 lt_prog_compiler_pic='-fPIC'
10361 esac
10362 else
10363 # PORTME Check for flag to pass linker flags through the system compiler.
10364 case $host_os in
10365 aix*)
10366 lt_prog_compiler_wl='-Wl,'
10367 if test "$host_cpu" = ia64; then
10368 # AIX 5 now supports IA64 processor
10369 lt_prog_compiler_static='-Bstatic'
10370 else
10371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10374 darwin*)
10375 # PIC is the default on this platform
10376 # Common symbols not allowed in MH_DYLIB files
10377 case $cc_basename in
10378 xlc*)
10379 lt_prog_compiler_pic='-qnocommon'
10380 lt_prog_compiler_wl='-Wl,'
10382 esac
10385 mingw* | pw32* | os2*)
10386 # This hack is so that the source file can tell whether it is being
10387 # built for inclusion in a dll (and should export symbols for example).
10388 lt_prog_compiler_pic='-DDLL_EXPORT'
10391 hpux9* | hpux10* | hpux11*)
10392 lt_prog_compiler_wl='-Wl,'
10393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10394 # not for PA HP-UX.
10395 case $host_cpu in
10396 hppa*64*|ia64*)
10397 # +Z the default
10400 lt_prog_compiler_pic='+Z'
10402 esac
10403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10404 lt_prog_compiler_static='${wl}-a ${wl}archive'
10407 irix5* | irix6* | nonstopux*)
10408 lt_prog_compiler_wl='-Wl,'
10409 # PIC (with -KPIC) is the default.
10410 lt_prog_compiler_static='-non_shared'
10413 newsos6)
10414 lt_prog_compiler_pic='-KPIC'
10415 lt_prog_compiler_static='-Bstatic'
10418 linux*)
10419 case $cc_basename in
10420 icc* | ecc*)
10421 lt_prog_compiler_wl='-Wl,'
10422 lt_prog_compiler_pic='-KPIC'
10423 lt_prog_compiler_static='-static'
10425 pgcc* | pgf77* | pgf90* | pgf95*)
10426 # Portland Group compilers (*not* the Pentium gcc compiler,
10427 # which looks to be a dead project)
10428 lt_prog_compiler_wl='-Wl,'
10429 lt_prog_compiler_pic='-fpic'
10430 lt_prog_compiler_static='-Bstatic'
10432 ccc*)
10433 lt_prog_compiler_wl='-Wl,'
10434 # All Alpha code is PIC.
10435 lt_prog_compiler_static='-non_shared'
10437 esac
10440 osf3* | osf4* | osf5*)
10441 lt_prog_compiler_wl='-Wl,'
10442 # All OSF/1 code is PIC.
10443 lt_prog_compiler_static='-non_shared'
10446 sco3.2v5*)
10447 lt_prog_compiler_pic='-Kpic'
10448 lt_prog_compiler_static='-dn'
10451 solaris*)
10452 lt_prog_compiler_pic='-KPIC'
10453 lt_prog_compiler_static='-Bstatic'
10454 case $cc_basename in
10455 f77* | f90* | f95*)
10456 lt_prog_compiler_wl='-Qoption ld ';;
10458 lt_prog_compiler_wl='-Wl,';;
10459 esac
10462 sunos4*)
10463 lt_prog_compiler_wl='-Qoption ld '
10464 lt_prog_compiler_pic='-PIC'
10465 lt_prog_compiler_static='-Bstatic'
10468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10469 lt_prog_compiler_wl='-Wl,'
10470 lt_prog_compiler_pic='-KPIC'
10471 lt_prog_compiler_static='-Bstatic'
10474 sysv4*MP*)
10475 if test -d /usr/nec ;then
10476 lt_prog_compiler_pic='-Kconform_pic'
10477 lt_prog_compiler_static='-Bstatic'
10481 unicos*)
10482 lt_prog_compiler_wl='-Wl,'
10483 lt_prog_compiler_can_build_shared=no
10486 uts4*)
10487 lt_prog_compiler_pic='-pic'
10488 lt_prog_compiler_static='-Bstatic'
10492 lt_prog_compiler_can_build_shared=no
10494 esac
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10498 $as_echo "$lt_prog_compiler_pic" >&6; }
10501 # Check to make sure the PIC flag actually works.
10503 if test -n "$lt_prog_compiler_pic"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10507 if test "${lt_prog_compiler_pic_works+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 lt_prog_compiler_pic_works=no
10511 ac_outfile=conftest.$ac_objext
10512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10513 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10514 # Insert the option either (1) after the last *FLAGS variable, or
10515 # (2) before a word containing "conftest.", or (3) at the end.
10516 # Note that $ac_compile itself does not contain backslashes and begins
10517 # with a dollar sign (not a hyphen), so the echo should work correctly.
10518 # The option is referenced via a variable to avoid confusing sed.
10519 lt_compile=`echo "$ac_compile" | $SED \
10520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10522 -e 's:$: $lt_compiler_flag:'`
10523 (eval echo "\"\$as_me:10523: $lt_compile\"" >&5)
10524 (eval "$lt_compile" 2>conftest.err)
10525 ac_status=$?
10526 cat conftest.err >&5
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 if (exit $ac_status) && test -s "$ac_outfile"; then
10529 # The compiler can only warn and ignore the option if not recognized
10530 # So say no if there are warnings other than the usual output.
10531 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10532 $SED '/^$/d' conftest.err >conftest.er2
10533 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10534 lt_prog_compiler_pic_works=yes
10537 $rm conftest*
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
10541 $as_echo "$lt_prog_compiler_pic_works" >&6; }
10543 if test x"$lt_prog_compiler_pic_works" = xyes; then
10544 case $lt_prog_compiler_pic in
10545 "" | " "*) ;;
10546 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10547 esac
10548 else
10549 lt_prog_compiler_pic=
10550 lt_prog_compiler_can_build_shared=no
10554 case $host_os in
10555 # For platforms which do not support PIC, -DPIC is meaningless:
10556 *djgpp*)
10557 lt_prog_compiler_pic=
10560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10562 esac
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 lt_cv_prog_compiler_c_o=no
10570 $rm -r conftest 2>/dev/null
10571 mkdir conftest
10572 cd conftest
10573 mkdir out
10574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10576 lt_compiler_flag="-o out/conftest2.$ac_objext"
10577 # Insert the option either (1) after the last *FLAGS variable, or
10578 # (2) before a word containing "conftest.", or (3) at the end.
10579 # Note that $ac_compile itself does not contain backslashes and begins
10580 # with a dollar sign (not a hyphen), so the echo should work correctly.
10581 lt_compile=`echo "$ac_compile" | $SED \
10582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10584 -e 's:$: $lt_compiler_flag:'`
10585 (eval echo "\"\$as_me:10585: $lt_compile\"" >&5)
10586 (eval "$lt_compile" 2>out/conftest.err)
10587 ac_status=$?
10588 cat out/conftest.err >&5
10589 echo "$as_me:10589: \$? = $ac_status" >&5
10590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10591 then
10592 # The compiler can only warn and ignore the option if not recognized
10593 # So say no if there are warnings
10594 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10595 $SED '/^$/d' out/conftest.err >out/conftest.er2
10596 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10597 lt_cv_prog_compiler_c_o=yes
10600 chmod u+w . 2>&5
10601 $rm conftest*
10602 # SGI C++ compiler will create directory out/ii_files/ for
10603 # template instantiation
10604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10605 $rm out/* && rmdir out
10606 cd ..
10607 rmdir conftest
10608 $rm conftest*
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10612 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10615 hard_links="nottested"
10616 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10617 # do not overwrite the value of need_locks provided by the user
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10619 $as_echo_n "checking if we can lock with hard links... " >&6; }
10620 hard_links=yes
10621 $rm conftest*
10622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10623 touch conftest.a
10624 ln conftest.a conftest.b 2>&5 || hard_links=no
10625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10627 $as_echo "$hard_links" >&6; }
10628 if test "$hard_links" = no; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10630 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10631 need_locks=warn
10633 else
10634 need_locks=no
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10638 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10640 runpath_var=
10641 allow_undefined_flag=
10642 enable_shared_with_static_runtimes=no
10643 archive_cmds=
10644 archive_expsym_cmds=
10645 old_archive_From_new_cmds=
10646 old_archive_from_expsyms_cmds=
10647 export_dynamic_flag_spec=
10648 whole_archive_flag_spec=
10649 thread_safe_flag_spec=
10650 hardcode_libdir_flag_spec=
10651 hardcode_libdir_flag_spec_ld=
10652 hardcode_libdir_separator=
10653 hardcode_direct=no
10654 hardcode_minus_L=no
10655 hardcode_shlibpath_var=unsupported
10656 link_all_deplibs=unknown
10657 hardcode_automatic=no
10658 module_cmds=
10659 module_expsym_cmds=
10660 always_export_symbols=no
10661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10662 # include_expsyms should be a list of space-separated symbols to be *always*
10663 # included in the symbol list
10664 include_expsyms=
10665 # exclude_expsyms can be an extended regexp of symbols to exclude
10666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10668 # as well as any symbol that contains `d'.
10669 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10671 # platforms (ab)use it in PIC code, but their linkers get confused if
10672 # the symbol is explicitly referenced. Since portable code cannot
10673 # rely on this symbol name, it's probably fine to never include it in
10674 # preloaded symbol tables.
10675 extract_expsyms_cmds=
10676 # Just being paranoid about ensuring that cc_basename is set.
10677 for cc_temp in $compiler""; do
10678 case $cc_temp in
10679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10681 \-*) ;;
10682 *) break;;
10683 esac
10684 done
10685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10687 case $host_os in
10688 cygwin* | mingw* | pw32*)
10689 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10690 # When not using gcc, we currently assume that we are using
10691 # Microsoft Visual C++.
10692 if test "$GCC" != yes; then
10693 with_gnu_ld=no
10696 openbsd*)
10697 with_gnu_ld=no
10699 esac
10701 ld_shlibs=yes
10702 if test "$with_gnu_ld" = yes; then
10703 # If archive_cmds runs LD, not CC, wlarc should be empty
10704 wlarc='${wl}'
10706 # Set some defaults for GNU ld with shared library support. These
10707 # are reset later if shared libraries are not supported. Putting them
10708 # here allows them to be overridden if necessary.
10709 runpath_var=LD_RUN_PATH
10710 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10711 export_dynamic_flag_spec='${wl}--export-dynamic'
10712 # ancient GNU ld didn't support --whole-archive et. al.
10713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10714 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10715 else
10716 whole_archive_flag_spec=
10718 supports_anon_versioning=no
10719 case `$LD -v 2>/dev/null` in
10720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10723 *\ 2.11.*) ;; # other 2.11 versions
10724 *) supports_anon_versioning=yes ;;
10725 esac
10727 # See if GNU ld supports shared libraries.
10728 case $host_os in
10729 aix3* | aix4* | aix5*)
10730 # On AIX/PPC, the GNU linker is very broken
10731 if test "$host_cpu" != ia64; then
10732 ld_shlibs=no
10733 cat <<EOF 1>&2
10735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10736 *** to be unable to reliably create shared libraries on AIX.
10737 *** Therefore, libtool is disabling shared libraries support. If you
10738 *** really care for shared libraries, you may want to modify your PATH
10739 *** so that a non-GNU linker is found, and then restart.
10745 amigaos*)
10746 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)'
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 hardcode_minus_L=yes
10750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10751 # that the semantics of dynamic libraries on AmigaOS, at least up
10752 # to version 4, is to share data among multiple programs linked
10753 # with the same dynamic library. Since this doesn't match the
10754 # behavior of shared libraries on other platforms, we can't use
10755 # them.
10756 ld_shlibs=no
10759 beos*)
10760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10761 allow_undefined_flag=unsupported
10762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10763 # support --undefined. This deserves some investigation. FIXME
10764 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10765 else
10766 ld_shlibs=no
10770 cygwin* | mingw* | pw32*)
10771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10772 # as there is no search path for DLLs.
10773 hardcode_libdir_flag_spec='-L$libdir'
10774 allow_undefined_flag=unsupported
10775 always_export_symbols=no
10776 enable_shared_with_static_runtimes=yes
10777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10781 # If the export-symbols file already is a .def file (1st line
10782 # is EXPORTS), use it as is; otherwise, prepend...
10783 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10784 cp $export_symbols $output_objdir/$soname.def;
10785 else
10786 echo EXPORTS > $output_objdir/$soname.def;
10787 cat $export_symbols >> $output_objdir/$soname.def;
10789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10790 else
10791 ld_shlibs=no
10795 linux*)
10796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10797 tmp_addflag=
10798 case $cc_basename,$host_cpu in
10799 pgcc*) # Portland Group C compiler
10800 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10801 tmp_addflag=' $pic_flag'
10803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10804 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10805 tmp_addflag=' $pic_flag -Mnomain' ;;
10806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10807 tmp_addflag=' -i_dynamic' ;;
10808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10809 tmp_addflag=' -i_dynamic -nofor_main' ;;
10810 ifc* | ifort*) # Intel Fortran compiler
10811 tmp_addflag=' -nofor_main' ;;
10812 esac
10813 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10815 if test $supports_anon_versioning = yes; then
10816 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10818 $echo "local: *; };" >> $output_objdir/$libname.ver~
10819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10821 else
10822 ld_shlibs=no
10826 netbsd*)
10827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10829 wlarc=
10830 else
10831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10836 solaris* | sysv5*)
10837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10838 ld_shlibs=no
10839 cat <<EOF 1>&2
10841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10842 *** create shared libraries on Solaris systems. Therefore, libtool
10843 *** is disabling shared libraries support. We urge you to upgrade GNU
10844 *** binutils to release 2.9.1 or newer. Another option is to modify
10845 *** your PATH or compiler configuration so that the native linker is
10846 *** used, and then restart.
10849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10852 else
10853 ld_shlibs=no
10857 sunos4*)
10858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10859 wlarc=
10860 hardcode_direct=yes
10861 hardcode_shlibpath_var=no
10865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10868 else
10869 ld_shlibs=no
10872 esac
10874 if test "$ld_shlibs" = no; then
10875 runpath_var=
10876 hardcode_libdir_flag_spec=
10877 export_dynamic_flag_spec=
10878 whole_archive_flag_spec=
10880 else
10881 # PORTME fill in a description of your system's linker (not GNU ld)
10882 case $host_os in
10883 aix3*)
10884 allow_undefined_flag=unsupported
10885 always_export_symbols=yes
10886 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'
10887 # Note: this linker hardcodes the directories in LIBPATH if there
10888 # are no directories specified by -L.
10889 hardcode_minus_L=yes
10890 if test "$GCC" = yes && test -z "$link_static_flag"; then
10891 # Neither direct hardcoding nor static linking is supported with a
10892 # broken collect2.
10893 hardcode_direct=unsupported
10897 aix4* | aix5*)
10898 if test "$host_cpu" = ia64; then
10899 # On IA64, the linker does run time linking by default, so we don't
10900 # have to do anything special.
10901 aix_use_runtimelinking=no
10902 exp_sym_flag='-Bexport'
10903 no_entry_flag=""
10904 else
10905 # If we're using GNU nm, then we don't want the "-C" option.
10906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10908 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10909 else
10910 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'
10912 aix_use_runtimelinking=no
10914 # Test if we are trying to use run time linking or normal
10915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10916 # need to do runtime linking.
10917 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10918 for ld_flag in $LDFLAGS; do
10919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10920 aix_use_runtimelinking=yes
10921 break
10923 done
10924 esac
10926 exp_sym_flag='-bexport'
10927 no_entry_flag='-bnoentry'
10930 # When large executables or shared objects are built, AIX ld can
10931 # have problems creating the table of contents. If linking a library
10932 # or program results in "error TOC overflow" add -mminimal-toc to
10933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10936 archive_cmds=''
10937 hardcode_direct=yes
10938 hardcode_libdir_separator=':'
10939 link_all_deplibs=yes
10941 if test "$GCC" = yes; then
10942 case $host_os in aix4.[012]|aix4.[012].*)
10943 # We only want to do this on AIX 4.2 and lower, the check
10944 # below for broken collect2 doesn't work under 4.3+
10945 collect2name=`${CC} -print-prog-name=collect2`
10946 if test -f "$collect2name" && \
10947 strings "$collect2name" | grep resolve_lib_name >/dev/null
10948 then
10949 # We have reworked collect2
10950 hardcode_direct=yes
10951 else
10952 # We have old collect2
10953 hardcode_direct=unsupported
10954 # It fails to find uninstalled libraries when the uninstalled
10955 # path is not listed in the libpath. Setting hardcode_minus_L
10956 # to unsupported forces relinking
10957 hardcode_minus_L=yes
10958 hardcode_libdir_flag_spec='-L$libdir'
10959 hardcode_libdir_separator=
10961 esac
10962 shared_flag='-shared'
10963 if test "$aix_use_runtimelinking" = yes; then
10964 shared_flag="$shared_flag "'${wl}-G'
10966 else
10967 # not using gcc
10968 if test "$host_cpu" = ia64; then
10969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10970 # chokes on -Wl,-G. The following line is correct:
10971 shared_flag='-G'
10972 else
10973 if test "$aix_use_runtimelinking" = yes; then
10974 shared_flag='${wl}-G'
10975 else
10976 shared_flag='${wl}-bM:SRE'
10981 # It seems that -bexpall does not export symbols beginning with
10982 # underscore (_), so it is better to generate a list of symbols to export.
10983 always_export_symbols=yes
10984 if test "$aix_use_runtimelinking" = yes; then
10985 # Warning - without using the other runtime loading flags (-brtl),
10986 # -berok will link without error, but may produce a broken library.
10987 allow_undefined_flag='-berok'
10988 # Determine the default libpath from the value encoded in an empty executable.
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10993 main ()
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11004 # Check for a 64-bit object if we didn't find anything.
11005 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11006 }'`; fi
11008 rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11013 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11014 else
11015 if test "$host_cpu" = ia64; then
11016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11017 allow_undefined_flag="-z nodefs"
11018 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11019 else
11020 # Determine the default libpath from the value encoded in an empty executable.
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11025 main ()
11029 return 0;
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11036 # Check for a 64-bit object if we didn't find anything.
11037 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11038 }'`; fi
11040 rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11045 # Warning - without using the other run time loading flags,
11046 # -berok will link without error, but may produce a broken library.
11047 no_undefined_flag=' ${wl}-bernotok'
11048 allow_undefined_flag=' ${wl}-berok'
11049 # -bexpall does not export symbols beginning with underscore (_)
11050 always_export_symbols=yes
11051 # Exported symbols can be pulled into shared objects from archives
11052 whole_archive_flag_spec=' '
11053 archive_cmds_need_lc=yes
11054 # This is similar to how AIX traditionally builds its shared libraries.
11055 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11060 amigaos*)
11061 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)'
11062 hardcode_libdir_flag_spec='-L$libdir'
11063 hardcode_minus_L=yes
11064 # see comment about different semantics on the GNU ld section
11065 ld_shlibs=no
11068 bsdi[45]*)
11069 export_dynamic_flag_spec=-rdynamic
11072 cygwin* | mingw* | pw32*)
11073 # When not using gcc, we currently assume that we are using
11074 # Microsoft Visual C++.
11075 # hardcode_libdir_flag_spec is actually meaningless, as there is
11076 # no search path for DLLs.
11077 hardcode_libdir_flag_spec=' '
11078 allow_undefined_flag=unsupported
11079 # Tell ltmain to make .lib files, not .a files.
11080 libext=lib
11081 # Tell ltmain to make .dll files, not .so files.
11082 shrext_cmds=".dll"
11083 # FIXME: Setting linknames here is a bad hack.
11084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11085 # The linker will automatically build a .lib file if we build a DLL.
11086 old_archive_From_new_cmds='true'
11087 # FIXME: Should let the user specify the lib program.
11088 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11089 fix_srcfile_path='`cygpath -w "$srcfile"`'
11090 enable_shared_with_static_runtimes=yes
11093 darwin* | rhapsody*)
11094 case $host_os in
11095 rhapsody* | darwin1.[012])
11096 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11098 *) # Darwin 1.3 on
11099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11100 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11101 else
11102 case ${MACOSX_DEPLOYMENT_TARGET} in
11103 10.[012])
11104 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11106 10.*)
11107 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11109 esac
11112 esac
11113 archive_cmds_need_lc=no
11114 hardcode_direct=no
11115 hardcode_automatic=yes
11116 hardcode_shlibpath_var=unsupported
11117 whole_archive_flag_spec=''
11118 link_all_deplibs=yes
11119 if test "$GCC" = yes ; then
11120 output_verbose_link_cmd='echo'
11121 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11122 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11124 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11125 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11126 else
11127 case $cc_basename in
11128 xlc*)
11129 output_verbose_link_cmd='echo'
11130 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11131 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11133 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11134 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11137 ld_shlibs=no
11139 esac
11143 dgux*)
11144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11145 hardcode_libdir_flag_spec='-L$libdir'
11146 hardcode_shlibpath_var=no
11149 freebsd1*)
11150 ld_shlibs=no
11153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11154 # support. Future versions do this automatically, but an explicit c++rt0.o
11155 # does not break anything, and helps significantly (at the cost of a little
11156 # extra space).
11157 freebsd2.2*)
11158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11159 hardcode_libdir_flag_spec='-R$libdir'
11160 hardcode_direct=yes
11161 hardcode_shlibpath_var=no
11164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11165 freebsd2*)
11166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11167 hardcode_direct=yes
11168 hardcode_minus_L=yes
11169 hardcode_shlibpath_var=no
11172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11173 freebsd* | kfreebsd*-gnu | dragonfly*)
11174 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11175 hardcode_libdir_flag_spec='-R$libdir'
11176 hardcode_direct=yes
11177 hardcode_shlibpath_var=no
11180 hpux9*)
11181 if test "$GCC" = yes; then
11182 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11183 else
11184 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'
11186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11187 hardcode_libdir_separator=:
11188 hardcode_direct=yes
11190 # hardcode_minus_L: Not really in the search PATH,
11191 # but as the default location of the library.
11192 hardcode_minus_L=yes
11193 export_dynamic_flag_spec='${wl}-E'
11196 hpux10* | hpux11*)
11197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11198 case $host_cpu in
11199 hppa*64*|ia64*)
11200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11205 esac
11206 else
11207 case $host_cpu in
11208 hppa*64*|ia64*)
11209 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11214 esac
11216 if test "$with_gnu_ld" = no; then
11217 case $host_cpu in
11218 hppa*64*)
11219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11220 hardcode_libdir_flag_spec_ld='+b $libdir'
11221 hardcode_libdir_separator=:
11222 hardcode_direct=no
11223 hardcode_shlibpath_var=no
11225 ia64*)
11226 hardcode_libdir_flag_spec='-L$libdir'
11227 hardcode_direct=no
11228 hardcode_shlibpath_var=no
11230 # hardcode_minus_L: Not really in the search PATH,
11231 # but as the default location of the library.
11232 hardcode_minus_L=yes
11235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11236 hardcode_libdir_separator=:
11237 hardcode_direct=yes
11238 export_dynamic_flag_spec='${wl}-E'
11240 # hardcode_minus_L: Not really in the search PATH,
11241 # but as the default location of the library.
11242 hardcode_minus_L=yes
11244 esac
11248 irix5* | irix6* | nonstopux*)
11249 if test "$GCC" = yes; then
11250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11251 else
11252 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11253 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11256 hardcode_libdir_separator=:
11257 link_all_deplibs=yes
11260 netbsd*)
11261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11263 else
11264 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11266 hardcode_libdir_flag_spec='-R$libdir'
11267 hardcode_direct=yes
11268 hardcode_shlibpath_var=no
11271 newsos6)
11272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273 hardcode_direct=yes
11274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11275 hardcode_libdir_separator=:
11276 hardcode_shlibpath_var=no
11279 openbsd*)
11280 hardcode_direct=yes
11281 hardcode_shlibpath_var=no
11282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11286 export_dynamic_flag_spec='${wl}-E'
11287 else
11288 case $host_os in
11289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_libdir_flag_spec='-R$libdir'
11294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11297 esac
11301 os2*)
11302 hardcode_libdir_flag_spec='-L$libdir'
11303 hardcode_minus_L=yes
11304 allow_undefined_flag=unsupported
11305 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'
11306 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11309 osf3*)
11310 if test "$GCC" = yes; then
11311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11312 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11313 else
11314 allow_undefined_flag=' -expect_unresolved \*'
11315 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11318 hardcode_libdir_separator=:
11321 osf4* | osf5*) # as osf3* with the addition of -msym flag
11322 if test "$GCC" = yes; then
11323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11324 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11326 else
11327 allow_undefined_flag=' -expect_unresolved \*'
11328 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11329 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11330 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11332 # Both c and cxx compiler support -rpath directly
11333 hardcode_libdir_flag_spec='-rpath $libdir'
11335 hardcode_libdir_separator=:
11338 sco3.2v5*)
11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340 hardcode_shlibpath_var=no
11341 export_dynamic_flag_spec='${wl}-Bexport'
11342 runpath_var=LD_RUN_PATH
11343 hardcode_runpath_var=yes
11346 solaris*)
11347 no_undefined_flag=' -z text'
11348 if test "$GCC" = yes; then
11349 wlarc='${wl}'
11350 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11352 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11353 else
11354 wlarc=''
11355 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11359 hardcode_libdir_flag_spec='-R$libdir'
11360 hardcode_shlibpath_var=no
11361 case $host_os in
11362 solaris2.[0-5] | solaris2.[0-5].*) ;;
11364 # The compiler driver will combine linker options so we
11365 # cannot just pass the convience library names through
11366 # without $wl, iff we do not link with $LD.
11367 # Luckily, gcc supports the same syntax we need for Sun Studio.
11368 # Supported since Solaris 2.6 (maybe 2.5.1?)
11369 case $wlarc in
11371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11373 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
11374 esac ;;
11375 esac
11376 link_all_deplibs=yes
11379 sunos4*)
11380 if test "x$host_vendor" = xsequent; then
11381 # Use $CC to link under sequent, because it throws in some extra .o
11382 # files that make .init and .fini sections work.
11383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11384 else
11385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11387 hardcode_libdir_flag_spec='-L$libdir'
11388 hardcode_direct=yes
11389 hardcode_minus_L=yes
11390 hardcode_shlibpath_var=no
11393 sysv4)
11394 case $host_vendor in
11395 sni)
11396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397 hardcode_direct=yes # is this really true???
11399 siemens)
11400 ## LD is ld it makes a PLAMLIB
11401 ## CC just makes a GrossModule.
11402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11403 reload_cmds='$CC -r -o $output$reload_objs'
11404 hardcode_direct=no
11406 motorola)
11407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11410 esac
11411 runpath_var='LD_RUN_PATH'
11412 hardcode_shlibpath_var=no
11415 sysv4.3*)
11416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417 hardcode_shlibpath_var=no
11418 export_dynamic_flag_spec='-Bexport'
11421 sysv4*MP*)
11422 if test -d /usr/nec; then
11423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11424 hardcode_shlibpath_var=no
11425 runpath_var=LD_RUN_PATH
11426 hardcode_runpath_var=yes
11427 ld_shlibs=yes
11431 sysv4.2uw2*)
11432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11433 hardcode_direct=yes
11434 hardcode_minus_L=no
11435 hardcode_shlibpath_var=no
11436 hardcode_runpath_var=yes
11437 runpath_var=LD_RUN_PATH
11440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11441 no_undefined_flag='${wl}-z ${wl}text'
11442 if test "$GCC" = yes; then
11443 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11444 else
11445 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11447 runpath_var='LD_RUN_PATH'
11448 hardcode_shlibpath_var=no
11451 sysv5*)
11452 no_undefined_flag=' -z text'
11453 # $CC -shared without GNU ld will not create a library from C++
11454 # object files and a static libstdc++, better avoid it by now
11455 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11458 hardcode_libdir_flag_spec=
11459 hardcode_shlibpath_var=no
11460 runpath_var='LD_RUN_PATH'
11463 uts4*)
11464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465 hardcode_libdir_flag_spec='-L$libdir'
11466 hardcode_shlibpath_var=no
11470 ld_shlibs=no
11472 esac
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11476 $as_echo "$ld_shlibs" >&6; }
11477 test "$ld_shlibs" = no && can_build_shared=no
11479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11480 if test "$GCC" = yes; then
11481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11485 # Do we need to explicitly link libc?
11487 case "x$archive_cmds_need_lc" in
11488 x|xyes)
11489 # Assume -lc should be added
11490 archive_cmds_need_lc=yes
11492 if test "$enable_shared" = yes && test "$GCC" = yes; then
11493 case $archive_cmds in
11494 *'~'*)
11495 # FIXME: we may have to deal with multi-command sequences.
11497 '$CC '*)
11498 # Test whether the compiler implicitly links with -lc since on some
11499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11500 # to ld, don't add -lc before -lgcc.
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11503 $rm conftest*
11504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11507 (eval $ac_compile) 2>&5
11508 ac_status=$?
11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510 test $ac_status = 0; } 2>conftest.err; then
11511 soname=conftest
11512 lib=conftest
11513 libobjs=conftest.$ac_objext
11514 deplibs=
11515 wl=$lt_prog_compiler_wl
11516 compiler_flags=-v
11517 linker_flags=-v
11518 verstring=
11519 output_objdir=.
11520 libname=conftest
11521 lt_save_allow_undefined_flag=$allow_undefined_flag
11522 allow_undefined_flag=
11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11525 ac_status=$?
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; }
11528 then
11529 archive_cmds_need_lc=no
11530 else
11531 archive_cmds_need_lc=yes
11533 allow_undefined_flag=$lt_save_allow_undefined_flag
11534 else
11535 cat conftest.err 1>&5
11537 $rm conftest*
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11539 $as_echo "$archive_cmds_need_lc" >&6; }
11541 esac
11544 esac
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11547 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11548 library_names_spec=
11549 libname_spec='lib$name'
11550 soname_spec=
11551 shrext_cmds=".so"
11552 postinstall_cmds=
11553 postuninstall_cmds=
11554 finish_cmds=
11555 finish_eval=
11556 shlibpath_var=
11557 shlibpath_overrides_runpath=unknown
11558 version_type=none
11559 dynamic_linker="$host_os ld.so"
11560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11561 if test "$GCC" = yes; then
11562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11564 # if the path contains ";" then we assume it to be the separator
11565 # otherwise default to the standard path separator (i.e. ":") - it is
11566 # assumed that no part of a normal pathname contains ";" but that should
11567 # okay in the real world where ";" in dirpaths is itself problematic.
11568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11569 else
11570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11572 else
11573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11575 need_lib_prefix=unknown
11576 hardcode_into_libs=no
11578 # when you set need_version to no, make sure it does not cause -set_version
11579 # flags to be left without arguments
11580 need_version=unknown
11582 case $host_os in
11583 aix3*)
11584 version_type=linux
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11586 shlibpath_var=LIBPATH
11588 # AIX 3 has no versioning support, so we append a major version to the name.
11589 soname_spec='${libname}${release}${shared_ext}$major'
11592 aix4* | aix5*)
11593 version_type=linux
11594 need_lib_prefix=no
11595 need_version=no
11596 hardcode_into_libs=yes
11597 if test "$host_cpu" = ia64; then
11598 # AIX 5 supports IA64
11599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 else
11602 # With GCC up to 2.95.x, collect2 would create an import file
11603 # for dependence libraries. The import file would start with
11604 # the line `#! .'. This would cause the generated library to
11605 # depend on `.', always an invalid library. This was fixed in
11606 # development snapshots of GCC prior to 3.0.
11607 case $host_os in
11608 aix4 | aix4.[01] | aix4.[01].*)
11609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11610 echo ' yes '
11611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11613 else
11614 can_build_shared=no
11617 esac
11618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11619 # soname into executable. Probably we can add versioning support to
11620 # collect2, so additional links can be useful in future.
11621 if test "$aix_use_runtimelinking" = yes; then
11622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11623 # instead of lib<name>.a to let people know that these are not
11624 # typical AIX shared libraries.
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 else
11627 # We preserve .a as extension for shared libraries through AIX4.2
11628 # and later when we are not doing run time linking.
11629 library_names_spec='${libname}${release}.a $libname.a'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LIBPATH
11636 amigaos*)
11637 library_names_spec='$libname.ixlibrary $libname.a'
11638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11639 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11642 beos*)
11643 library_names_spec='${libname}${shared_ext}'
11644 dynamic_linker="$host_os ld.so"
11645 shlibpath_var=LIBRARY_PATH
11648 bsdi[45]*)
11649 version_type=linux
11650 need_version=no
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11657 # the default ld.so.conf also contains /usr/contrib/lib and
11658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11659 # libtool to hard-code these into programs
11662 cygwin* | mingw* | pw32*)
11663 version_type=windows
11664 shrext_cmds=".dll"
11665 need_version=no
11666 need_lib_prefix=no
11668 case $GCC,$host_os in
11669 yes,cygwin* | yes,mingw* | yes,pw32*)
11670 library_names_spec='$libname.dll.a'
11671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11672 postinstall_cmds='base_file=`basename \${file}`~
11673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11674 dldir=$destdir/`dirname \$dlpath`~
11675 test -d \$dldir || mkdir -p \$dldir~
11676 $install_prog $dir/$dlname \$dldir/$dlname~
11677 chmod a+x \$dldir/$dlname'
11678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11679 dlpath=$dir/\$dldll~
11680 $rm \$dlpath'
11681 shlibpath_overrides_runpath=yes
11683 case $host_os in
11684 cygwin*)
11685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11689 mingw*)
11690 # MinGW DLLs use traditional 'lib' prefix
11691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11694 # It is most probably a Windows format PATH printed by
11695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11696 # path with ; separators, and with drive letters. We can handle the
11697 # drive letters (cygwin fileutils understands them), so leave them,
11698 # especially as we might pass files found there to a mingw objdump,
11699 # which wouldn't understand a cygwinified path. Ahh.
11700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11701 else
11702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11705 pw32*)
11706 # pw32 DLLs use 'pw' prefix rather than 'lib'
11707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11709 esac
11713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11715 esac
11716 dynamic_linker='Win32 ld.exe'
11717 # FIXME: first we should search . and the directory the executable is in
11718 shlibpath_var=PATH
11721 darwin* | rhapsody*)
11722 dynamic_linker="$host_os dyld"
11723 version_type=darwin
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11727 soname_spec='${libname}${release}${major}$shared_ext'
11728 shlibpath_overrides_runpath=yes
11729 shlibpath_var=DYLD_LIBRARY_PATH
11730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11732 if test "$GCC" = yes; then
11733 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11734 else
11735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11740 dgux*)
11741 version_type=linux
11742 need_lib_prefix=no
11743 need_version=no
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11746 shlibpath_var=LD_LIBRARY_PATH
11749 freebsd1*)
11750 dynamic_linker=no
11753 kfreebsd*-gnu)
11754 version_type=linux
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=no
11761 hardcode_into_libs=yes
11762 dynamic_linker='GNU ld.so'
11765 freebsd* | dragonfly*)
11766 # DragonFly does not have aout. When/if they implement a new
11767 # versioning mechanism, adjust this.
11768 if test -x /usr/bin/objformat; then
11769 objformat=`/usr/bin/objformat`
11770 else
11771 case $host_os in
11772 freebsd[123]*) objformat=aout ;;
11773 *) objformat=elf ;;
11774 esac
11776 version_type=freebsd-$objformat
11777 case $version_type in
11778 freebsd-elf*)
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11780 need_version=no
11781 need_lib_prefix=no
11783 freebsd-*)
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11785 need_version=yes
11787 esac
11788 shlibpath_var=LD_LIBRARY_PATH
11789 case $host_os in
11790 freebsd2*)
11791 shlibpath_overrides_runpath=yes
11793 freebsd3.[01]* | freebsdelf3.[01]*)
11794 shlibpath_overrides_runpath=yes
11795 hardcode_into_libs=yes
11797 *) # from 3.2 on
11798 shlibpath_overrides_runpath=no
11799 hardcode_into_libs=yes
11801 esac
11804 gnu*)
11805 version_type=linux
11806 need_lib_prefix=no
11807 need_version=no
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 hardcode_into_libs=yes
11814 hpux9* | hpux10* | hpux11*)
11815 # Give a soname corresponding to the major version so that dld.sl refuses to
11816 # link against other versions.
11817 version_type=sunos
11818 need_lib_prefix=no
11819 need_version=no
11820 case $host_cpu in
11821 ia64*)
11822 shrext_cmds='.so'
11823 hardcode_into_libs=yes
11824 dynamic_linker="$host_os dld.so"
11825 shlibpath_var=LD_LIBRARY_PATH
11826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 soname_spec='${libname}${release}${shared_ext}$major'
11829 if test "X$HPUX_IA64_MODE" = X32; then
11830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11831 else
11832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11836 hppa*64*)
11837 shrext_cmds='.sl'
11838 hardcode_into_libs=yes
11839 dynamic_linker="$host_os dld.sl"
11840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11848 shrext_cmds='.sl'
11849 dynamic_linker="$host_os dld.sl"
11850 shlibpath_var=SHLIB_PATH
11851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11855 esac
11856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11857 postinstall_cmds='chmod 555 $lib'
11860 irix5* | irix6* | nonstopux*)
11861 case $host_os in
11862 nonstopux*) version_type=nonstopux ;;
11864 if test "$lt_cv_prog_gnu_ld" = yes; then
11865 version_type=linux
11866 else
11867 version_type=irix
11868 fi ;;
11869 esac
11870 need_lib_prefix=no
11871 need_version=no
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11874 case $host_os in
11875 irix5* | nonstopux*)
11876 libsuff= shlibsuff=
11879 case $LD in # libtool.m4 will add one of these switches to LD
11880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11881 libsuff= shlibsuff= libmagic=32-bit;;
11882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11883 libsuff=32 shlibsuff=N32 libmagic=N32;;
11884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11886 *) libsuff= shlibsuff= libmagic=never-match;;
11887 esac
11889 esac
11890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11891 shlibpath_overrides_runpath=no
11892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11894 hardcode_into_libs=yes
11897 # No shared lib support for Linux oldld, aout, or coff.
11898 linux*oldld* | linux*aout* | linux*coff*)
11899 dynamic_linker=no
11902 # This must be Linux ELF.
11903 linux*)
11904 version_type=linux
11905 need_lib_prefix=no
11906 need_version=no
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=no
11912 # This implies no fast_install, which is unacceptable.
11913 # Some rework will be needed to allow for fast_install
11914 # before this can be enabled.
11915 hardcode_into_libs=yes
11917 # Append ld.so.conf contents to the search path
11918 if test -f /etc/ld.so.conf; then
11919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11923 # We used to test for /lib/ld.so.1 and disable shared libraries on
11924 # powerpc, because MkLinux only supported shared libraries with the
11925 # GNU dynamic linker. Since this was broken with cross compilers,
11926 # most powerpc-linux boxes support dynamic linking these days and
11927 # people can always --disable-shared, the test was removed, and we
11928 # assume the GNU/Linux dynamic linker is in use.
11929 dynamic_linker='GNU/Linux ld.so'
11932 knetbsd*-gnu)
11933 version_type=linux
11934 need_lib_prefix=no
11935 need_version=no
11936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11937 soname_spec='${libname}${release}${shared_ext}$major'
11938 shlibpath_var=LD_LIBRARY_PATH
11939 shlibpath_overrides_runpath=no
11940 hardcode_into_libs=yes
11941 dynamic_linker='GNU ld.so'
11944 netbsd*)
11945 version_type=sunos
11946 need_lib_prefix=no
11947 need_version=no
11948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11951 dynamic_linker='NetBSD (a.out) ld.so'
11952 else
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 dynamic_linker='NetBSD ld.elf_so'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11959 hardcode_into_libs=yes
11962 newsos6)
11963 version_type=linux
11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11969 nto-qnx*)
11970 version_type=linux
11971 need_lib_prefix=no
11972 need_version=no
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath=yes
11979 openbsd*)
11980 version_type=sunos
11981 need_lib_prefix=no
11982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11983 case $host_os in
11984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11985 *) need_version=no ;;
11986 esac
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11989 shlibpath_var=LD_LIBRARY_PATH
11990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11991 case $host_os in
11992 openbsd2.[89] | openbsd2.[89].*)
11993 shlibpath_overrides_runpath=no
11996 shlibpath_overrides_runpath=yes
11998 esac
11999 else
12000 shlibpath_overrides_runpath=yes
12004 os2*)
12005 libname_spec='$name'
12006 shrext_cmds=".dll"
12007 need_lib_prefix=no
12008 library_names_spec='$libname${shared_ext} $libname.a'
12009 dynamic_linker='OS/2 ld.exe'
12010 shlibpath_var=LIBPATH
12013 osf3* | osf4* | osf5*)
12014 version_type=osf
12015 need_lib_prefix=no
12016 need_version=no
12017 soname_spec='${libname}${release}${shared_ext}$major'
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12019 shlibpath_var=LD_LIBRARY_PATH
12020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12024 sco3.2v5*)
12025 version_type=osf
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028 shlibpath_var=LD_LIBRARY_PATH
12031 solaris*)
12032 version_type=linux
12033 need_lib_prefix=no
12034 need_version=no
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12036 soname_spec='${libname}${release}${shared_ext}$major'
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes
12039 hardcode_into_libs=yes
12040 # ldd complains unless libraries are executable
12041 postinstall_cmds='chmod +x $lib'
12044 sunos4*)
12045 version_type=sunos
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=yes
12050 if test "$with_gnu_ld" = yes; then
12051 need_lib_prefix=no
12053 need_version=yes
12056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12057 version_type=linux
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 case $host_vendor in
12062 sni)
12063 shlibpath_overrides_runpath=no
12064 need_lib_prefix=no
12065 export_dynamic_flag_spec='${wl}-Blargedynsym'
12066 runpath_var=LD_RUN_PATH
12068 siemens)
12069 need_lib_prefix=no
12071 motorola)
12072 need_lib_prefix=no
12073 need_version=no
12074 shlibpath_overrides_runpath=no
12075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12077 esac
12080 sysv4*MP*)
12081 if test -d /usr/nec ;then
12082 version_type=linux
12083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12084 soname_spec='$libname${shared_ext}.$major'
12085 shlibpath_var=LD_LIBRARY_PATH
12089 uts4*)
12090 version_type=linux
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 shlibpath_var=LD_LIBRARY_PATH
12097 dynamic_linker=no
12099 esac
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12101 $as_echo "$dynamic_linker" >&6; }
12102 test "$dynamic_linker" = no && can_build_shared=no
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12106 hardcode_action=
12107 if test -n "$hardcode_libdir_flag_spec" || \
12108 test -n "$runpath_var" || \
12109 test "X$hardcode_automatic" = "Xyes" ; then
12111 # We can hardcode non-existant directories.
12112 if test "$hardcode_direct" != no &&
12113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12114 # have to relink, otherwise we might link with an installed library
12115 # when we should be linking with a yet-to-be-installed one
12116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12117 test "$hardcode_minus_L" != no; then
12118 # Linking always hardcodes the temporary library directory.
12119 hardcode_action=relink
12120 else
12121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12122 hardcode_action=immediate
12124 else
12125 # We cannot hardcode anything, or else we can only hardcode existing
12126 # directories.
12127 hardcode_action=unsupported
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12130 $as_echo "$hardcode_action" >&6; }
12132 if test "$hardcode_action" = relink; then
12133 # Fast installation is not supported
12134 enable_fast_install=no
12135 elif test "$shlibpath_overrides_runpath" = yes ||
12136 test "$enable_shared" = no; then
12137 # Fast installation is not necessary
12138 enable_fast_install=needless
12141 striplib=
12142 old_striplib=
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12144 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149 $as_echo "yes" >&6; }
12150 else
12151 # FIXME - insert some real tests, host_os isn't really good enough
12152 case $host_os in
12153 darwin*)
12154 if test -n "$STRIP" ; then
12155 striplib="$STRIP -x"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12167 esac
12170 if test "x$enable_dlopen" != xyes; then
12171 enable_dlopen=unknown
12172 enable_dlopen_self=unknown
12173 enable_dlopen_self_static=unknown
12174 else
12175 lt_cv_dlopen=no
12176 lt_cv_dlopen_libs=
12178 case $host_os in
12179 beos*)
12180 lt_cv_dlopen="load_add_on"
12181 lt_cv_dlopen_libs=
12182 lt_cv_dlopen_self=yes
12185 mingw* | pw32*)
12186 lt_cv_dlopen="LoadLibrary"
12187 lt_cv_dlopen_libs=
12190 cygwin*)
12191 lt_cv_dlopen="dlopen"
12192 lt_cv_dlopen_libs=
12195 darwin*)
12196 # if libdl is installed we need to link against it
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12198 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 ac_check_lib_save_LIBS=$LIBS
12203 LIBS="-ldl $LIBS"
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char dlopen ();
12215 main ()
12217 return dlopen ();
12219 return 0;
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_dl_dlopen=yes
12224 else
12225 ac_cv_lib_dl_dlopen=no
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12232 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12233 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12235 else
12237 lt_cv_dlopen="dyld"
12238 lt_cv_dlopen_libs=
12239 lt_cv_dlopen_self=yes
12246 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12247 if test "x$ac_cv_func_shl_load" = x""yes; then :
12248 lt_cv_dlopen="shl_load"
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12251 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12252 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-ldld $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char shl_load ();
12268 main ()
12270 return shl_load ();
12272 return 0;
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_dld_shl_load=yes
12277 else
12278 ac_cv_lib_dld_shl_load=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12285 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12286 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12287 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12288 else
12289 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12290 if test "x$ac_cv_func_dlopen" = x""yes; then :
12291 lt_cv_dlopen="dlopen"
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12294 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-ldl $LIBS"
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12306 #ifdef __cplusplus
12307 extern "C"
12308 #endif
12309 char dlopen ();
12311 main ()
12313 return dlopen ();
12315 return 0;
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 ac_cv_lib_dl_dlopen=yes
12320 else
12321 ac_cv_lib_dl_dlopen=no
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_lib_save_LIBS
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12328 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12329 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12333 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12334 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 ac_check_lib_save_LIBS=$LIBS
12338 LIBS="-lsvld $LIBS"
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char dlopen ();
12350 main ()
12352 return dlopen ();
12354 return 0;
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"; then :
12358 ac_cv_lib_svld_dlopen=yes
12359 else
12360 ac_cv_lib_svld_dlopen=no
12362 rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12367 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12368 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12372 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12373 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 ac_check_lib_save_LIBS=$LIBS
12377 LIBS="-ldld $LIBS"
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 char dld_link ();
12389 main ()
12391 return dld_link ();
12393 return 0;
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12397 ac_cv_lib_dld_dld_link=yes
12398 else
12399 ac_cv_lib_dld_dld_link=no
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LIBS=$ac_check_lib_save_LIBS
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12406 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12407 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12408 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12427 esac
12429 if test "x$lt_cv_dlopen" != xno; then
12430 enable_dlopen=yes
12431 else
12432 enable_dlopen=no
12435 case $lt_cv_dlopen in
12436 dlopen)
12437 save_CPPFLAGS="$CPPFLAGS"
12438 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12440 save_LDFLAGS="$LDFLAGS"
12441 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12443 save_LIBS="$LIBS"
12444 LIBS="$lt_cv_dlopen_libs $LIBS"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12447 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12448 if test "${lt_cv_dlopen_self+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 if test "$cross_compiling" = yes; then :
12452 lt_cv_dlopen_self=cross
12453 else
12454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12455 lt_status=$lt_dlunknown
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12457 "configure"
12458 #include "confdefs.h"
12460 #if HAVE_DLFCN_H
12461 #include <dlfcn.h>
12462 #endif
12464 #include <stdio.h>
12466 #ifdef RTLD_GLOBAL
12467 # define LT_DLGLOBAL RTLD_GLOBAL
12468 #else
12469 # ifdef DL_GLOBAL
12470 # define LT_DLGLOBAL DL_GLOBAL
12471 # else
12472 # define LT_DLGLOBAL 0
12473 # endif
12474 #endif
12476 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12477 find out it does not work in some platform. */
12478 #ifndef LT_DLLAZY_OR_NOW
12479 # ifdef RTLD_LAZY
12480 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12481 # else
12482 # ifdef DL_LAZY
12483 # define LT_DLLAZY_OR_NOW DL_LAZY
12484 # else
12485 # ifdef RTLD_NOW
12486 # define LT_DLLAZY_OR_NOW RTLD_NOW
12487 # else
12488 # ifdef DL_NOW
12489 # define LT_DLLAZY_OR_NOW DL_NOW
12490 # else
12491 # define LT_DLLAZY_OR_NOW 0
12492 # endif
12493 # endif
12494 # endif
12495 # endif
12496 #endif
12498 #ifdef __cplusplus
12499 extern "C" void exit (int);
12500 #endif
12502 void fnord() { int i=42;}
12503 int main ()
12505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12506 int status = $lt_dlunknown;
12508 if (self)
12510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12511 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12512 /* dlclose (self); */
12515 exit (status);
12518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12519 (eval $ac_link) 2>&5
12520 ac_status=$?
12521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12523 (./conftest; exit; ) >&5 2>/dev/null
12524 lt_status=$?
12525 case x$lt_status in
12526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12528 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12529 esac
12530 else :
12531 # compilation failed
12532 lt_cv_dlopen_self=no
12535 rm -fr conftest*
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12540 $as_echo "$lt_cv_dlopen_self" >&6; }
12542 if test "x$lt_cv_dlopen_self" = xyes; then
12543 LDFLAGS="$LDFLAGS $link_static_flag"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test "$cross_compiling" = yes; then :
12550 lt_cv_dlopen_self_static=cross
12551 else
12552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12553 lt_status=$lt_dlunknown
12554 cat > conftest.$ac_ext <<EOF
12555 #line 12555 "configure"
12556 #include "confdefs.h"
12558 #if HAVE_DLFCN_H
12559 #include <dlfcn.h>
12560 #endif
12562 #include <stdio.h>
12564 #ifdef RTLD_GLOBAL
12565 # define LT_DLGLOBAL RTLD_GLOBAL
12566 #else
12567 # ifdef DL_GLOBAL
12568 # define LT_DLGLOBAL DL_GLOBAL
12569 # else
12570 # define LT_DLGLOBAL 0
12571 # endif
12572 #endif
12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575 find out it does not work in some platform. */
12576 #ifndef LT_DLLAZY_OR_NOW
12577 # ifdef RTLD_LAZY
12578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12579 # else
12580 # ifdef DL_LAZY
12581 # define LT_DLLAZY_OR_NOW DL_LAZY
12582 # else
12583 # ifdef RTLD_NOW
12584 # define LT_DLLAZY_OR_NOW RTLD_NOW
12585 # else
12586 # ifdef DL_NOW
12587 # define LT_DLLAZY_OR_NOW DL_NOW
12588 # else
12589 # define LT_DLLAZY_OR_NOW 0
12590 # endif
12591 # endif
12592 # endif
12593 # endif
12594 #endif
12596 #ifdef __cplusplus
12597 extern "C" void exit (int);
12598 #endif
12600 void fnord() { int i=42;}
12601 int main ()
12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604 int status = $lt_dlunknown;
12606 if (self)
12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12610 /* dlclose (self); */
12613 exit (status);
12616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12617 (eval $ac_link) 2>&5
12618 ac_status=$?
12619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12621 (./conftest; exit; ) >&5 2>/dev/null
12622 lt_status=$?
12623 case x$lt_status in
12624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12626 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12627 esac
12628 else :
12629 # compilation failed
12630 lt_cv_dlopen_self_static=no
12633 rm -fr conftest*
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12641 CPPFLAGS="$save_CPPFLAGS"
12642 LDFLAGS="$save_LDFLAGS"
12643 LIBS="$save_LIBS"
12645 esac
12647 case $lt_cv_dlopen_self in
12648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12649 *) enable_dlopen_self=unknown ;;
12650 esac
12652 case $lt_cv_dlopen_self_static in
12653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12654 *) enable_dlopen_self_static=unknown ;;
12655 esac
12659 # Report which librarie types wil actually be built
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12661 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12663 $as_echo "$can_build_shared" >&6; }
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12666 $as_echo_n "checking whether to build shared libraries... " >&6; }
12667 test "$can_build_shared" = "no" && enable_shared=no
12669 # On AIX, shared libraries and static libraries use the same namespace, and
12670 # are all built from PIC.
12671 case $host_os in
12672 aix3*)
12673 test "$enable_shared" = yes && enable_static=no
12674 if test -n "$RANLIB"; then
12675 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12676 postinstall_cmds='$RANLIB $lib'
12680 aix4* | aix5*)
12681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12682 test "$enable_shared" = yes && enable_static=no
12685 esac
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12687 $as_echo "$enable_shared" >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12690 $as_echo_n "checking whether to build static libraries... " >&6; }
12691 # Make sure either enable_shared or enable_static is yes.
12692 test "$enable_shared" = yes || enable_static=yes
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12694 $as_echo "$enable_static" >&6; }
12696 # The else clause should only fire when bootstrapping the
12697 # libtool distribution, otherwise you forgot to ship ltmain.sh
12698 # with your package, and you will get complaints that there are
12699 # no rules to generate ltmain.sh.
12700 if test -f "$ltmain"; then
12701 # See if we are running on zsh, and set the options which allow our commands through
12702 # without removal of \ escapes.
12703 if test -n "${ZSH_VERSION+set}" ; then
12704 setopt NO_GLOB_SUBST
12706 # Now quote all the things that may contain metacharacters while being
12707 # careful not to overquote the AC_SUBSTed values. We take copies of the
12708 # variables and quote the copies for generation of the libtool script.
12709 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12710 SED SHELL STRIP \
12711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12713 deplibs_check_method reload_flag reload_cmds need_locks \
12714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12715 lt_cv_sys_global_symbol_to_c_name_address \
12716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12717 old_postinstall_cmds old_postuninstall_cmds \
12718 compiler \
12719 CC \
12720 LD \
12721 lt_prog_compiler_wl \
12722 lt_prog_compiler_pic \
12723 lt_prog_compiler_static \
12724 lt_prog_compiler_no_builtin_flag \
12725 export_dynamic_flag_spec \
12726 thread_safe_flag_spec \
12727 whole_archive_flag_spec \
12728 enable_shared_with_static_runtimes \
12729 old_archive_cmds \
12730 old_archive_from_new_cmds \
12731 predep_objects \
12732 postdep_objects \
12733 predeps \
12734 postdeps \
12735 compiler_lib_search_path \
12736 archive_cmds \
12737 archive_expsym_cmds \
12738 postinstall_cmds \
12739 postuninstall_cmds \
12740 old_archive_from_expsyms_cmds \
12741 allow_undefined_flag \
12742 no_undefined_flag \
12743 export_symbols_cmds \
12744 hardcode_libdir_flag_spec \
12745 hardcode_libdir_flag_spec_ld \
12746 hardcode_libdir_separator \
12747 hardcode_automatic \
12748 module_cmds \
12749 module_expsym_cmds \
12750 lt_cv_prog_compiler_c_o \
12751 exclude_expsyms \
12752 include_expsyms; do
12754 case $var in
12755 old_archive_cmds | \
12756 old_archive_from_new_cmds | \
12757 archive_cmds | \
12758 archive_expsym_cmds | \
12759 module_cmds | \
12760 module_expsym_cmds | \
12761 old_archive_from_expsyms_cmds | \
12762 export_symbols_cmds | \
12763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12764 postinstall_cmds | postuninstall_cmds | \
12765 old_postinstall_cmds | old_postuninstall_cmds | \
12766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12767 # Double-quote double-evaled strings.
12768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12773 esac
12774 done
12776 case $lt_echo in
12777 *'\$0 --fallback-echo"')
12778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12780 esac
12782 cfgfile="${ofile}T"
12783 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12784 $rm -f "$cfgfile"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
12786 $as_echo "$as_me: creating $ofile" >&6;}
12788 cat <<__EOF__ >> "$cfgfile"
12789 #! $SHELL
12791 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12792 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12793 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12795 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12796 # Free Software Foundation, Inc.
12798 # This file is part of GNU Libtool:
12799 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12801 # This program is free software; you can redistribute it and/or modify
12802 # it under the terms of the GNU General Public License as published by
12803 # the Free Software Foundation; either version 2 of the License, or
12804 # (at your option) any later version.
12806 # This program is distributed in the hope that it will be useful, but
12807 # WITHOUT ANY WARRANTY; without even the implied warranty of
12808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12809 # General Public License for more details.
12811 # You should have received a copy of the GNU General Public License
12812 # along with this program; if not, write to the Free Software
12813 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12815 # As a special exception to the GNU General Public License, if you
12816 # distribute this file as part of a program that contains a
12817 # configuration script generated by Autoconf, you may include it under
12818 # the same distribution terms that you use for the rest of that program.
12820 # A sed program that does not truncate output.
12821 SED=$lt_SED
12823 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12824 Xsed="$SED -e 1s/^X//"
12826 # The HP-UX ksh and POSIX shell print the target directory to stdout
12827 # if CDPATH is set.
12828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12830 # The names of the tagged configurations supported by this script.
12831 available_tags=
12833 # ### BEGIN LIBTOOL CONFIG
12835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12837 # Shell to use when invoking shell scripts.
12838 SHELL=$lt_SHELL
12840 # Whether or not to build shared libraries.
12841 build_libtool_libs=$enable_shared
12843 # Whether or not to build static libraries.
12844 build_old_libs=$enable_static
12846 # Whether or not to add -lc for building shared libraries.
12847 build_libtool_need_lc=$archive_cmds_need_lc
12849 # Whether or not to disallow shared libs when runtime libs are static
12850 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12852 # Whether or not to optimize for fast installation.
12853 fast_install=$enable_fast_install
12855 # The host system.
12856 host_alias=$host_alias
12857 host=$host
12858 host_os=$host_os
12860 # The build system.
12861 build_alias=$build_alias
12862 build=$build
12863 build_os=$build_os
12865 # An echo program that does not interpret backslashes.
12866 echo=$lt_echo
12868 # The archiver.
12869 AR=$lt_AR
12870 AR_FLAGS=$lt_AR_FLAGS
12872 # A C compiler.
12873 LTCC=$lt_LTCC
12875 # A language-specific compiler.
12876 CC=$lt_compiler
12878 # Is the compiler the GNU C compiler?
12879 with_gcc=$GCC
12881 # An ERE matcher.
12882 EGREP=$lt_EGREP
12884 # The linker used to build libraries.
12885 LD=$lt_LD
12887 # Whether we need hard or soft links.
12888 LN_S=$lt_LN_S
12890 # A BSD-compatible nm program.
12891 NM=$lt_NM
12893 # A symbol stripping program
12894 STRIP=$lt_STRIP
12896 # Used to examine libraries when file_magic_cmd begins "file"
12897 MAGIC_CMD=$MAGIC_CMD
12899 # Used on cygwin: DLL creation program.
12900 DLLTOOL="$DLLTOOL"
12902 # Used on cygwin: object dumper.
12903 OBJDUMP="$OBJDUMP"
12905 # Used on cygwin: assembler.
12906 AS="$AS"
12908 # The name of the directory that contains temporary libtool files.
12909 objdir=$objdir
12911 # How to create reloadable object files.
12912 reload_flag=$lt_reload_flag
12913 reload_cmds=$lt_reload_cmds
12915 # How to pass a linker flag through the compiler.
12916 wl=$lt_lt_prog_compiler_wl
12918 # Object file suffix (normally "o").
12919 objext="$ac_objext"
12921 # Old archive suffix (normally "a").
12922 libext="$libext"
12924 # Shared library suffix (normally ".so").
12925 shrext_cmds='$shrext_cmds'
12927 # Executable file suffix (normally "").
12928 exeext="$exeext"
12930 # Additional compiler flags for building library objects.
12931 pic_flag=$lt_lt_prog_compiler_pic
12932 pic_mode=$pic_mode
12934 # What is the maximum length of a command?
12935 max_cmd_len=$lt_cv_sys_max_cmd_len
12937 # Does compiler simultaneously support -c and -o options?
12938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12940 # Must we lock files when doing compilation?
12941 need_locks=$lt_need_locks
12943 # Do we need the lib prefix for modules?
12944 need_lib_prefix=$need_lib_prefix
12946 # Do we need a version for libraries?
12947 need_version=$need_version
12949 # Whether dlopen is supported.
12950 dlopen_support=$enable_dlopen
12952 # Whether dlopen of programs is supported.
12953 dlopen_self=$enable_dlopen_self
12955 # Whether dlopen of statically linked programs is supported.
12956 dlopen_self_static=$enable_dlopen_self_static
12958 # Compiler flag to prevent dynamic linking.
12959 link_static_flag=$lt_lt_prog_compiler_static
12961 # Compiler flag to turn off builtin functions.
12962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12964 # Compiler flag to allow reflexive dlopens.
12965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12967 # Compiler flag to generate shared objects directly from archives.
12968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12970 # Compiler flag to generate thread-safe objects.
12971 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12973 # Library versioning type.
12974 version_type=$version_type
12976 # Format of library name prefix.
12977 libname_spec=$lt_libname_spec
12979 # List of archive names. First name is the real one, the rest are links.
12980 # The last name is the one that the linker finds with -lNAME.
12981 library_names_spec=$lt_library_names_spec
12983 # The coded name of the library, if different from the real name.
12984 soname_spec=$lt_soname_spec
12986 # Commands used to build and install an old-style archive.
12987 RANLIB=$lt_RANLIB
12988 old_archive_cmds=$lt_old_archive_cmds
12989 old_postinstall_cmds=$lt_old_postinstall_cmds
12990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12992 # Create an old-style archive from a shared archive.
12993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12995 # Create a temporary old-style archive to link instead of a shared archive.
12996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12998 # Commands used to build and install a shared archive.
12999 archive_cmds=$lt_archive_cmds
13000 archive_expsym_cmds=$lt_archive_expsym_cmds
13001 postinstall_cmds=$lt_postinstall_cmds
13002 postuninstall_cmds=$lt_postuninstall_cmds
13004 # Commands used to build a loadable module (assumed same as above if empty)
13005 module_cmds=$lt_module_cmds
13006 module_expsym_cmds=$lt_module_expsym_cmds
13008 # Commands to strip libraries.
13009 old_striplib=$lt_old_striplib
13010 striplib=$lt_striplib
13012 # Dependencies to place before the objects being linked to create a
13013 # shared library.
13014 predep_objects=$lt_predep_objects
13016 # Dependencies to place after the objects being linked to create a
13017 # shared library.
13018 postdep_objects=$lt_postdep_objects
13020 # Dependencies to place before the objects being linked to create a
13021 # shared library.
13022 predeps=$lt_predeps
13024 # Dependencies to place after the objects being linked to create a
13025 # shared library.
13026 postdeps=$lt_postdeps
13028 # The library search path used internally by the compiler when linking
13029 # a shared library.
13030 compiler_lib_search_path=$lt_compiler_lib_search_path
13032 # Method to check whether dependent libraries are shared objects.
13033 deplibs_check_method=$lt_deplibs_check_method
13035 # Command to use when deplibs_check_method == file_magic.
13036 file_magic_cmd=$lt_file_magic_cmd
13038 # Flag that allows shared libraries with undefined symbols to be built.
13039 allow_undefined_flag=$lt_allow_undefined_flag
13041 # Flag that forces no undefined symbols.
13042 no_undefined_flag=$lt_no_undefined_flag
13044 # Commands used to finish a libtool library installation in a directory.
13045 finish_cmds=$lt_finish_cmds
13047 # Same as above, but a single script fragment to be evaled but not shown.
13048 finish_eval=$lt_finish_eval
13050 # Take the output of nm and produce a listing of raw symbols and C names.
13051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13053 # Transform the output of nm in a proper C declaration
13054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13056 # Transform the output of nm in a C name address pair
13057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13059 # This is the shared library runtime path variable.
13060 runpath_var=$runpath_var
13062 # This is the shared library path variable.
13063 shlibpath_var=$shlibpath_var
13065 # Is shlibpath searched before the hard-coded library search path?
13066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13068 # How to hardcode a shared library path into an executable.
13069 hardcode_action=$hardcode_action
13071 # Whether we should hardcode library paths into libraries.
13072 hardcode_into_libs=$hardcode_into_libs
13074 # Flag to hardcode \$libdir into a binary during linking.
13075 # This must work even if \$libdir does not exist.
13076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13078 # If ld is used when linking, flag to hardcode \$libdir into
13079 # a binary during linking. This must work even if \$libdir does
13080 # not exist.
13081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13083 # Whether we need a single -rpath flag with a separated argument.
13084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13087 # resulting binary.
13088 hardcode_direct=$hardcode_direct
13090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13091 # resulting binary.
13092 hardcode_minus_L=$hardcode_minus_L
13094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13095 # the resulting binary.
13096 hardcode_shlibpath_var=$hardcode_shlibpath_var
13098 # Set to yes if building a shared library automatically hardcodes DIR into the library
13099 # and all subsequent libraries and executables linked against it.
13100 hardcode_automatic=$hardcode_automatic
13102 # Variables whose values should be saved in libtool wrapper scripts and
13103 # restored at relink time.
13104 variables_saved_for_relink="$variables_saved_for_relink"
13106 # Whether libtool must link a program against all its dependency libraries.
13107 link_all_deplibs=$link_all_deplibs
13109 # Compile-time system search path for libraries
13110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13112 # Run-time system search path for libraries
13113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13115 # Fix the shell variable \$srcfile for the compiler.
13116 fix_srcfile_path="$fix_srcfile_path"
13118 # Set to yes if exported symbols are required.
13119 always_export_symbols=$always_export_symbols
13121 # The commands to list exported symbols.
13122 export_symbols_cmds=$lt_export_symbols_cmds
13124 # The commands to extract the exported symbol list from a shared archive.
13125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13127 # Symbols that should not be listed in the preloaded symbols.
13128 exclude_expsyms=$lt_exclude_expsyms
13130 # Symbols that must always be exported.
13131 include_expsyms=$lt_include_expsyms
13133 # ### END LIBTOOL CONFIG
13135 __EOF__
13138 case $host_os in
13139 aix3*)
13140 cat <<\EOF >> "$cfgfile"
13142 # AIX sometimes has problems with the GCC collect2 program. For some
13143 # reason, if we set the COLLECT_NAMES environment variable, the problems
13144 # vanish in a puff of smoke.
13145 if test "X${COLLECT_NAMES+set}" != Xset; then
13146 COLLECT_NAMES=
13147 export COLLECT_NAMES
13151 esac
13153 # We use sed instead of cat because bash on DJGPP gets confused if
13154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13155 # text mode, it properly converts lines to CR/LF. This bash problem
13156 # is reportedly fixed, but why not run on old versions too?
13157 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13159 mv -f "$cfgfile" "$ofile" || \
13160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13161 chmod +x "$ofile"
13163 else
13164 # If there is no Makefile yet, we rely on a make rule to execute
13165 # `config.status --recheck' to rerun these tests and create the
13166 # libtool script then.
13167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13168 if test -f "$ltmain_in"; then
13169 test -f Makefile && make "$ltmain"
13174 ac_ext=c
13175 ac_cpp='$CPP $CPPFLAGS'
13176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180 CC="$lt_save_CC"
13183 # Check whether --with-tags was given.
13184 if test "${with_tags+set}" = set; then :
13185 withval=$with_tags; tagnames="$withval"
13189 if test -f "$ltmain" && test -n "$tagnames"; then
13190 if test ! -f "${ofile}"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
13192 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13195 if test -z "$LTCC"; then
13196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13197 if test -z "$LTCC"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13199 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13202 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13206 # Extract list of available tagged configurations in $ofile.
13207 # Note that this assumes the entire list is on one line.
13208 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13211 for tagname in $tagnames; do
13212 IFS="$lt_save_ifs"
13213 # Check whether tagname contains only valid characters
13214 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13215 "") ;;
13216 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
13218 esac
13220 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13221 then
13222 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
13225 # Update the list of available tags.
13226 if test -n "$tagname"; then
13227 echo appending configuration tag \"$tagname\" to $ofile
13229 case $tagname in
13230 CXX)
13231 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13232 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13233 (test "X$CXX" != "Xg++"))) ; then
13235 else
13236 tagname=""
13240 F77)
13241 if test -n "$F77" && test "X$F77" != "Xno"; then
13243 else
13244 tagname=""
13248 GCJ)
13249 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
13252 # Source file extension for Java test sources.
13253 ac_ext=java
13255 # Object file extension for compiled Java test sources.
13256 objext=o
13257 objext_GCJ=$objext
13259 # Code to be used in simple compile tests
13260 lt_simple_compile_test_code="class foo {}\n"
13262 # Code to be used in simple link tests
13263 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
13265 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13267 # If no C compiler was specified, use CC.
13268 LTCC=${LTCC-"$CC"}
13270 # Allow CC to be a program name with arguments.
13271 compiler=$CC
13274 # save warnings/boilerplate of simple test code
13275 ac_outfile=conftest.$ac_objext
13276 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13278 _lt_compiler_boilerplate=`cat conftest.err`
13279 $rm conftest*
13281 ac_outfile=conftest.$ac_objext
13282 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13284 _lt_linker_boilerplate=`cat conftest.err`
13285 $rm conftest*
13288 # Allow CC to be a program name with arguments.
13289 lt_save_CC="$CC"
13290 CC=${GCJ-"gcj"}
13291 compiler=$CC
13292 compiler_GCJ=$CC
13293 for cc_temp in $compiler""; do
13294 case $cc_temp in
13295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13297 \-*) ;;
13298 *) break;;
13299 esac
13300 done
13301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13304 # GCJ did not exist at the time GCC didn't implicitly link libc in.
13305 archive_cmds_need_lc_GCJ=no
13307 old_archive_cmds_GCJ=$old_archive_cmds
13310 lt_prog_compiler_no_builtin_flag_GCJ=
13312 if test "$GCC" = yes; then
13313 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13317 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13318 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 lt_cv_prog_compiler_rtti_exceptions=no
13322 ac_outfile=conftest.$ac_objext
13323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13324 lt_compiler_flag="-fno-rtti -fno-exceptions"
13325 # Insert the option either (1) after the last *FLAGS variable, or
13326 # (2) before a word containing "conftest.", or (3) at the end.
13327 # Note that $ac_compile itself does not contain backslashes and begins
13328 # with a dollar sign (not a hyphen), so the echo should work correctly.
13329 # The option is referenced via a variable to avoid confusing sed.
13330 lt_compile=`echo "$ac_compile" | $SED \
13331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333 -e 's:$: $lt_compiler_flag:'`
13334 (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335 (eval "$lt_compile" 2>conftest.err)
13336 ac_status=$?
13337 cat conftest.err >&5
13338 echo "$as_me:13338: \$? = $ac_status" >&5
13339 if (exit $ac_status) && test -s "$ac_outfile"; then
13340 # The compiler can only warn and ignore the option if not recognized
13341 # So say no if there are warnings other than the usual output.
13342 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13343 $SED '/^$/d' conftest.err >conftest.er2
13344 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13345 lt_cv_prog_compiler_rtti_exceptions=yes
13348 $rm conftest*
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13352 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13354 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13355 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
13356 else
13362 lt_prog_compiler_wl_GCJ=
13363 lt_prog_compiler_pic_GCJ=
13364 lt_prog_compiler_static_GCJ=
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13369 if test "$GCC" = yes; then
13370 lt_prog_compiler_wl_GCJ='-Wl,'
13371 lt_prog_compiler_static_GCJ='-static'
13373 case $host_os in
13374 aix*)
13375 # All AIX code is PIC.
13376 if test "$host_cpu" = ia64; then
13377 # AIX 5 now supports IA64 processor
13378 lt_prog_compiler_static_GCJ='-Bstatic'
13382 amigaos*)
13383 # FIXME: we need at least 68020 code to build shared libraries, but
13384 # adding the `-m68020' flag to GCC prevents building anything better,
13385 # like `-m68040'.
13386 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
13389 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13390 # PIC is the default for these OSes.
13393 mingw* | pw32* | os2*)
13394 # This hack is so that the source file can tell whether it is being
13395 # built for inclusion in a dll (and should export symbols for example).
13396 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13399 darwin* | rhapsody*)
13400 # PIC is the default on this platform
13401 # Common symbols not allowed in MH_DYLIB files
13402 lt_prog_compiler_pic_GCJ='-fno-common'
13405 msdosdjgpp*)
13406 # Just because we use GCC doesn't mean we suddenly get shared libraries
13407 # on systems that don't support them.
13408 lt_prog_compiler_can_build_shared_GCJ=no
13409 enable_shared=no
13412 sysv4*MP*)
13413 if test -d /usr/nec; then
13414 lt_prog_compiler_pic_GCJ=-Kconform_pic
13418 hpux*)
13419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13420 # not for PA HP-UX.
13421 case $host_cpu in
13422 hppa*64*|ia64*)
13423 # +Z the default
13426 lt_prog_compiler_pic_GCJ='-fPIC'
13428 esac
13432 lt_prog_compiler_pic_GCJ='-fPIC'
13434 esac
13435 else
13436 # PORTME Check for flag to pass linker flags through the system compiler.
13437 case $host_os in
13438 aix*)
13439 lt_prog_compiler_wl_GCJ='-Wl,'
13440 if test "$host_cpu" = ia64; then
13441 # AIX 5 now supports IA64 processor
13442 lt_prog_compiler_static_GCJ='-Bstatic'
13443 else
13444 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
13447 darwin*)
13448 # PIC is the default on this platform
13449 # Common symbols not allowed in MH_DYLIB files
13450 case $cc_basename in
13451 xlc*)
13452 lt_prog_compiler_pic_GCJ='-qnocommon'
13453 lt_prog_compiler_wl_GCJ='-Wl,'
13455 esac
13458 mingw* | pw32* | os2*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13464 hpux9* | hpux10* | hpux11*)
13465 lt_prog_compiler_wl_GCJ='-Wl,'
13466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13467 # not for PA HP-UX.
13468 case $host_cpu in
13469 hppa*64*|ia64*)
13470 # +Z the default
13473 lt_prog_compiler_pic_GCJ='+Z'
13475 esac
13476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13477 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
13480 irix5* | irix6* | nonstopux*)
13481 lt_prog_compiler_wl_GCJ='-Wl,'
13482 # PIC (with -KPIC) is the default.
13483 lt_prog_compiler_static_GCJ='-non_shared'
13486 newsos6)
13487 lt_prog_compiler_pic_GCJ='-KPIC'
13488 lt_prog_compiler_static_GCJ='-Bstatic'
13491 linux*)
13492 case $cc_basename in
13493 icc* | ecc*)
13494 lt_prog_compiler_wl_GCJ='-Wl,'
13495 lt_prog_compiler_pic_GCJ='-KPIC'
13496 lt_prog_compiler_static_GCJ='-static'
13498 pgcc* | pgf77* | pgf90* | pgf95*)
13499 # Portland Group compilers (*not* the Pentium gcc compiler,
13500 # which looks to be a dead project)
13501 lt_prog_compiler_wl_GCJ='-Wl,'
13502 lt_prog_compiler_pic_GCJ='-fpic'
13503 lt_prog_compiler_static_GCJ='-Bstatic'
13505 ccc*)
13506 lt_prog_compiler_wl_GCJ='-Wl,'
13507 # All Alpha code is PIC.
13508 lt_prog_compiler_static_GCJ='-non_shared'
13510 esac
13513 osf3* | osf4* | osf5*)
13514 lt_prog_compiler_wl_GCJ='-Wl,'
13515 # All OSF/1 code is PIC.
13516 lt_prog_compiler_static_GCJ='-non_shared'
13519 sco3.2v5*)
13520 lt_prog_compiler_pic_GCJ='-Kpic'
13521 lt_prog_compiler_static_GCJ='-dn'
13524 solaris*)
13525 lt_prog_compiler_pic_GCJ='-KPIC'
13526 lt_prog_compiler_static_GCJ='-Bstatic'
13527 case $cc_basename in
13528 f77* | f90* | f95*)
13529 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
13531 lt_prog_compiler_wl_GCJ='-Wl,';;
13532 esac
13535 sunos4*)
13536 lt_prog_compiler_wl_GCJ='-Qoption ld '
13537 lt_prog_compiler_pic_GCJ='-PIC'
13538 lt_prog_compiler_static_GCJ='-Bstatic'
13541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13542 lt_prog_compiler_wl_GCJ='-Wl,'
13543 lt_prog_compiler_pic_GCJ='-KPIC'
13544 lt_prog_compiler_static_GCJ='-Bstatic'
13547 sysv4*MP*)
13548 if test -d /usr/nec ;then
13549 lt_prog_compiler_pic_GCJ='-Kconform_pic'
13550 lt_prog_compiler_static_GCJ='-Bstatic'
13554 unicos*)
13555 lt_prog_compiler_wl_GCJ='-Wl,'
13556 lt_prog_compiler_can_build_shared_GCJ=no
13559 uts4*)
13560 lt_prog_compiler_pic_GCJ='-pic'
13561 lt_prog_compiler_static_GCJ='-Bstatic'
13565 lt_prog_compiler_can_build_shared_GCJ=no
13567 esac
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
13571 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
13574 # Check to make sure the PIC flag actually works.
13576 if test -n "$lt_prog_compiler_pic_GCJ"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
13579 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
13580 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 lt_prog_compiler_pic_works_GCJ=no
13584 ac_outfile=conftest.$ac_objext
13585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13586 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
13587 # Insert the option either (1) after the last *FLAGS variable, or
13588 # (2) before a word containing "conftest.", or (3) at the end.
13589 # Note that $ac_compile itself does not contain backslashes and begins
13590 # with a dollar sign (not a hyphen), so the echo should work correctly.
13591 # The option is referenced via a variable to avoid confusing sed.
13592 lt_compile=`echo "$ac_compile" | $SED \
13593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13595 -e 's:$: $lt_compiler_flag:'`
13596 (eval echo "\"\$as_me:13596: $lt_compile\"" >&5)
13597 (eval "$lt_compile" 2>conftest.err)
13598 ac_status=$?
13599 cat conftest.err >&5
13600 echo "$as_me:13600: \$? = $ac_status" >&5
13601 if (exit $ac_status) && test -s "$ac_outfile"; then
13602 # The compiler can only warn and ignore the option if not recognized
13603 # So say no if there are warnings other than the usual output.
13604 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13605 $SED '/^$/d' conftest.err >conftest.er2
13606 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13607 lt_prog_compiler_pic_works_GCJ=yes
13610 $rm conftest*
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
13614 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
13616 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
13617 case $lt_prog_compiler_pic_GCJ in
13618 "" | " "*) ;;
13619 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
13620 esac
13621 else
13622 lt_prog_compiler_pic_GCJ=
13623 lt_prog_compiler_can_build_shared_GCJ=no
13627 case $host_os in
13628 # For platforms which do not support PIC, -DPIC is meaningless:
13629 *djgpp*)
13630 lt_prog_compiler_pic_GCJ=
13633 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13635 esac
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13639 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 lt_cv_prog_compiler_c_o_GCJ=no
13643 $rm -r conftest 2>/dev/null
13644 mkdir conftest
13645 cd conftest
13646 mkdir out
13647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13649 lt_compiler_flag="-o out/conftest2.$ac_objext"
13650 # Insert the option either (1) after the last *FLAGS variable, or
13651 # (2) before a word containing "conftest.", or (3) at the end.
13652 # Note that $ac_compile itself does not contain backslashes and begins
13653 # with a dollar sign (not a hyphen), so the echo should work correctly.
13654 lt_compile=`echo "$ac_compile" | $SED \
13655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13657 -e 's:$: $lt_compiler_flag:'`
13658 (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
13659 (eval "$lt_compile" 2>out/conftest.err)
13660 ac_status=$?
13661 cat out/conftest.err >&5
13662 echo "$as_me:13662: \$? = $ac_status" >&5
13663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13664 then
13665 # The compiler can only warn and ignore the option if not recognized
13666 # So say no if there are warnings
13667 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13668 $SED '/^$/d' out/conftest.err >out/conftest.er2
13669 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13670 lt_cv_prog_compiler_c_o_GCJ=yes
13673 chmod u+w . 2>&5
13674 $rm conftest*
13675 # SGI C++ compiler will create directory out/ii_files/ for
13676 # template instantiation
13677 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13678 $rm out/* && rmdir out
13679 cd ..
13680 rmdir conftest
13681 $rm conftest*
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13685 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
13688 hard_links="nottested"
13689 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13690 # do not overwrite the value of need_locks provided by the user
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13692 $as_echo_n "checking if we can lock with hard links... " >&6; }
13693 hard_links=yes
13694 $rm conftest*
13695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13696 touch conftest.a
13697 ln conftest.a conftest.b 2>&5 || hard_links=no
13698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13700 $as_echo "$hard_links" >&6; }
13701 if test "$hard_links" = no; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13704 need_locks=warn
13706 else
13707 need_locks=no
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13713 runpath_var=
13714 allow_undefined_flag_GCJ=
13715 enable_shared_with_static_runtimes_GCJ=no
13716 archive_cmds_GCJ=
13717 archive_expsym_cmds_GCJ=
13718 old_archive_From_new_cmds_GCJ=
13719 old_archive_from_expsyms_cmds_GCJ=
13720 export_dynamic_flag_spec_GCJ=
13721 whole_archive_flag_spec_GCJ=
13722 thread_safe_flag_spec_GCJ=
13723 hardcode_libdir_flag_spec_GCJ=
13724 hardcode_libdir_flag_spec_ld_GCJ=
13725 hardcode_libdir_separator_GCJ=
13726 hardcode_direct_GCJ=no
13727 hardcode_minus_L_GCJ=no
13728 hardcode_shlibpath_var_GCJ=unsupported
13729 link_all_deplibs_GCJ=unknown
13730 hardcode_automatic_GCJ=no
13731 module_cmds_GCJ=
13732 module_expsym_cmds_GCJ=
13733 always_export_symbols_GCJ=no
13734 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13735 # include_expsyms should be a list of space-separated symbols to be *always*
13736 # included in the symbol list
13737 include_expsyms_GCJ=
13738 # exclude_expsyms can be an extended regexp of symbols to exclude
13739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13741 # as well as any symbol that contains `d'.
13742 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13744 # platforms (ab)use it in PIC code, but their linkers get confused if
13745 # the symbol is explicitly referenced. Since portable code cannot
13746 # rely on this symbol name, it's probably fine to never include it in
13747 # preloaded symbol tables.
13748 extract_expsyms_cmds=
13749 # Just being paranoid about ensuring that cc_basename is set.
13750 for cc_temp in $compiler""; do
13751 case $cc_temp in
13752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13754 \-*) ;;
13755 *) break;;
13756 esac
13757 done
13758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13760 case $host_os in
13761 cygwin* | mingw* | pw32*)
13762 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13763 # When not using gcc, we currently assume that we are using
13764 # Microsoft Visual C++.
13765 if test "$GCC" != yes; then
13766 with_gnu_ld=no
13769 openbsd*)
13770 with_gnu_ld=no
13772 esac
13774 ld_shlibs_GCJ=yes
13775 if test "$with_gnu_ld" = yes; then
13776 # If archive_cmds runs LD, not CC, wlarc should be empty
13777 wlarc='${wl}'
13779 # Set some defaults for GNU ld with shared library support. These
13780 # are reset later if shared libraries are not supported. Putting them
13781 # here allows them to be overridden if necessary.
13782 runpath_var=LD_RUN_PATH
13783 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13784 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13785 # ancient GNU ld didn't support --whole-archive et. al.
13786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13787 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13788 else
13789 whole_archive_flag_spec_GCJ=
13791 supports_anon_versioning=no
13792 case `$LD -v 2>/dev/null` in
13793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13796 *\ 2.11.*) ;; # other 2.11 versions
13797 *) supports_anon_versioning=yes ;;
13798 esac
13800 # See if GNU ld supports shared libraries.
13801 case $host_os in
13802 aix3* | aix4* | aix5*)
13803 # On AIX/PPC, the GNU linker is very broken
13804 if test "$host_cpu" != ia64; then
13805 ld_shlibs_GCJ=no
13806 cat <<EOF 1>&2
13808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13809 *** to be unable to reliably create shared libraries on AIX.
13810 *** Therefore, libtool is disabling shared libraries support. If you
13811 *** really care for shared libraries, you may want to modify your PATH
13812 *** so that a non-GNU linker is found, and then restart.
13818 amigaos*)
13819 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13821 hardcode_minus_L_GCJ=yes
13823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13824 # that the semantics of dynamic libraries on AmigaOS, at least up
13825 # to version 4, is to share data among multiple programs linked
13826 # with the same dynamic library. Since this doesn't match the
13827 # behavior of shared libraries on other platforms, we can't use
13828 # them.
13829 ld_shlibs_GCJ=no
13832 beos*)
13833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13834 allow_undefined_flag_GCJ=unsupported
13835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13836 # support --undefined. This deserves some investigation. FIXME
13837 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13838 else
13839 ld_shlibs_GCJ=no
13843 cygwin* | mingw* | pw32*)
13844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13845 # as there is no search path for DLLs.
13846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13847 allow_undefined_flag_GCJ=unsupported
13848 always_export_symbols_GCJ=no
13849 enable_shared_with_static_runtimes_GCJ=yes
13850 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13853 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13854 # If the export-symbols file already is a .def file (1st line
13855 # is EXPORTS), use it as is; otherwise, prepend...
13856 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857 cp $export_symbols $output_objdir/$soname.def;
13858 else
13859 echo EXPORTS > $output_objdir/$soname.def;
13860 cat $export_symbols >> $output_objdir/$soname.def;
13862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13863 else
13864 ld_shlibs_GCJ=no
13868 linux*)
13869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13870 tmp_addflag=
13871 case $cc_basename,$host_cpu in
13872 pgcc*) # Portland Group C compiler
13873 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13874 tmp_addflag=' $pic_flag'
13876 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13877 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13878 tmp_addflag=' $pic_flag -Mnomain' ;;
13879 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13880 tmp_addflag=' -i_dynamic' ;;
13881 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13882 tmp_addflag=' -i_dynamic -nofor_main' ;;
13883 ifc* | ifort*) # Intel Fortran compiler
13884 tmp_addflag=' -nofor_main' ;;
13885 esac
13886 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 if test $supports_anon_versioning = yes; then
13889 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891 $echo "local: *; };" >> $output_objdir/$libname.ver~
13892 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13894 else
13895 ld_shlibs_GCJ=no
13899 netbsd*)
13900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13901 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13902 wlarc=
13903 else
13904 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13909 solaris* | sysv5*)
13910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13911 ld_shlibs_GCJ=no
13912 cat <<EOF 1>&2
13914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13915 *** create shared libraries on Solaris systems. Therefore, libtool
13916 *** is disabling shared libraries support. We urge you to upgrade GNU
13917 *** binutils to release 2.9.1 or newer. Another option is to modify
13918 *** your PATH or compiler configuration so that the native linker is
13919 *** used, and then restart.
13922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13923 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13924 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13925 else
13926 ld_shlibs_GCJ=no
13930 sunos4*)
13931 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13932 wlarc=
13933 hardcode_direct_GCJ=yes
13934 hardcode_shlibpath_var_GCJ=no
13938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13940 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13941 else
13942 ld_shlibs_GCJ=no
13945 esac
13947 if test "$ld_shlibs_GCJ" = no; then
13948 runpath_var=
13949 hardcode_libdir_flag_spec_GCJ=
13950 export_dynamic_flag_spec_GCJ=
13951 whole_archive_flag_spec_GCJ=
13953 else
13954 # PORTME fill in a description of your system's linker (not GNU ld)
13955 case $host_os in
13956 aix3*)
13957 allow_undefined_flag_GCJ=unsupported
13958 always_export_symbols_GCJ=yes
13959 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13960 # Note: this linker hardcodes the directories in LIBPATH if there
13961 # are no directories specified by -L.
13962 hardcode_minus_L_GCJ=yes
13963 if test "$GCC" = yes && test -z "$link_static_flag"; then
13964 # Neither direct hardcoding nor static linking is supported with a
13965 # broken collect2.
13966 hardcode_direct_GCJ=unsupported
13970 aix4* | aix5*)
13971 if test "$host_cpu" = ia64; then
13972 # On IA64, the linker does run time linking by default, so we don't
13973 # have to do anything special.
13974 aix_use_runtimelinking=no
13975 exp_sym_flag='-Bexport'
13976 no_entry_flag=""
13977 else
13978 # If we're using GNU nm, then we don't want the "-C" option.
13979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13981 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13982 else
13983 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13985 aix_use_runtimelinking=no
13987 # Test if we are trying to use run time linking or normal
13988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13989 # need to do runtime linking.
13990 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13991 for ld_flag in $LDFLAGS; do
13992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13993 aix_use_runtimelinking=yes
13994 break
13996 done
13997 esac
13999 exp_sym_flag='-bexport'
14000 no_entry_flag='-bnoentry'
14003 # When large executables or shared objects are built, AIX ld can
14004 # have problems creating the table of contents. If linking a library
14005 # or program results in "error TOC overflow" add -mminimal-toc to
14006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14009 archive_cmds_GCJ=''
14010 hardcode_direct_GCJ=yes
14011 hardcode_libdir_separator_GCJ=':'
14012 link_all_deplibs_GCJ=yes
14014 if test "$GCC" = yes; then
14015 case $host_os in aix4.[012]|aix4.[012].*)
14016 # We only want to do this on AIX 4.2 and lower, the check
14017 # below for broken collect2 doesn't work under 4.3+
14018 collect2name=`${CC} -print-prog-name=collect2`
14019 if test -f "$collect2name" && \
14020 strings "$collect2name" | grep resolve_lib_name >/dev/null
14021 then
14022 # We have reworked collect2
14023 hardcode_direct_GCJ=yes
14024 else
14025 # We have old collect2
14026 hardcode_direct_GCJ=unsupported
14027 # It fails to find uninstalled libraries when the uninstalled
14028 # path is not listed in the libpath. Setting hardcode_minus_L
14029 # to unsupported forces relinking
14030 hardcode_minus_L_GCJ=yes
14031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14032 hardcode_libdir_separator_GCJ=
14034 esac
14035 shared_flag='-shared'
14036 if test "$aix_use_runtimelinking" = yes; then
14037 shared_flag="$shared_flag "'${wl}-G'
14039 else
14040 # not using gcc
14041 if test "$host_cpu" = ia64; then
14042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14043 # chokes on -Wl,-G. The following line is correct:
14044 shared_flag='-G'
14045 else
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag='${wl}-G'
14048 else
14049 shared_flag='${wl}-bM:SRE'
14054 # It seems that -bexpall does not export symbols beginning with
14055 # underscore (_), so it is better to generate a list of symbols to export.
14056 always_export_symbols_GCJ=yes
14057 if test "$aix_use_runtimelinking" = yes; then
14058 # Warning - without using the other runtime loading flags (-brtl),
14059 # -berok will link without error, but may produce a broken library.
14060 allow_undefined_flag_GCJ='-berok'
14061 # Determine the default libpath from the value encoded in an empty executable.
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14066 main ()
14070 return 0;
14072 _ACEOF
14073 if ac_fn_c_try_link "$LINENO"; then :
14075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14077 # Check for a 64-bit object if we didn't find anything.
14078 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14079 }'`; fi
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14085 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14086 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14087 else
14088 if test "$host_cpu" = ia64; then
14089 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14090 allow_undefined_flag_GCJ="-z nodefs"
14091 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14092 else
14093 # Determine the default libpath from the value encoded in an empty executable.
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14098 main ()
14102 return 0;
14104 _ACEOF
14105 if ac_fn_c_try_link "$LINENO"; then :
14107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14109 # Check for a 64-bit object if we didn't find anything.
14110 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14111 }'`; fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14117 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14118 # Warning - without using the other run time loading flags,
14119 # -berok will link without error, but may produce a broken library.
14120 no_undefined_flag_GCJ=' ${wl}-bernotok'
14121 allow_undefined_flag_GCJ=' ${wl}-berok'
14122 # -bexpall does not export symbols beginning with underscore (_)
14123 always_export_symbols_GCJ=yes
14124 # Exported symbols can be pulled into shared objects from archives
14125 whole_archive_flag_spec_GCJ=' '
14126 archive_cmds_need_lc_GCJ=yes
14127 # This is similar to how AIX traditionally builds its shared libraries.
14128 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14133 amigaos*)
14134 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14136 hardcode_minus_L_GCJ=yes
14137 # see comment about different semantics on the GNU ld section
14138 ld_shlibs_GCJ=no
14141 bsdi[45]*)
14142 export_dynamic_flag_spec_GCJ=-rdynamic
14145 cygwin* | mingw* | pw32*)
14146 # When not using gcc, we currently assume that we are using
14147 # Microsoft Visual C++.
14148 # hardcode_libdir_flag_spec is actually meaningless, as there is
14149 # no search path for DLLs.
14150 hardcode_libdir_flag_spec_GCJ=' '
14151 allow_undefined_flag_GCJ=unsupported
14152 # Tell ltmain to make .lib files, not .a files.
14153 libext=lib
14154 # Tell ltmain to make .dll files, not .so files.
14155 shrext_cmds=".dll"
14156 # FIXME: Setting linknames here is a bad hack.
14157 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14158 # The linker will automatically build a .lib file if we build a DLL.
14159 old_archive_From_new_cmds_GCJ='true'
14160 # FIXME: Should let the user specify the lib program.
14161 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14162 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
14163 enable_shared_with_static_runtimes_GCJ=yes
14166 darwin* | rhapsody*)
14167 case $host_os in
14168 rhapsody* | darwin1.[012])
14169 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
14171 *) # Darwin 1.3 on
14172 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14173 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14174 else
14175 case ${MACOSX_DEPLOYMENT_TARGET} in
14176 10.[012])
14177 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14179 10.*)
14180 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
14182 esac
14185 esac
14186 archive_cmds_need_lc_GCJ=no
14187 hardcode_direct_GCJ=no
14188 hardcode_automatic_GCJ=yes
14189 hardcode_shlibpath_var_GCJ=unsupported
14190 whole_archive_flag_spec_GCJ=''
14191 link_all_deplibs_GCJ=yes
14192 if test "$GCC" = yes ; then
14193 output_verbose_link_cmd='echo'
14194 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14195 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14197 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14198 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14199 else
14200 case $cc_basename in
14201 xlc*)
14202 output_verbose_link_cmd='echo'
14203 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14204 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14206 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14207 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14210 ld_shlibs_GCJ=no
14212 esac
14216 dgux*)
14217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14219 hardcode_shlibpath_var_GCJ=no
14222 freebsd1*)
14223 ld_shlibs_GCJ=no
14226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14227 # support. Future versions do this automatically, but an explicit c++rt0.o
14228 # does not break anything, and helps significantly (at the cost of a little
14229 # extra space).
14230 freebsd2.2*)
14231 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14232 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14233 hardcode_direct_GCJ=yes
14234 hardcode_shlibpath_var_GCJ=no
14237 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14238 freebsd2*)
14239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14240 hardcode_direct_GCJ=yes
14241 hardcode_minus_L_GCJ=yes
14242 hardcode_shlibpath_var_GCJ=no
14245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14246 freebsd* | kfreebsd*-gnu | dragonfly*)
14247 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14248 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14249 hardcode_direct_GCJ=yes
14250 hardcode_shlibpath_var_GCJ=no
14253 hpux9*)
14254 if test "$GCC" = yes; then
14255 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14256 else
14257 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14259 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
14260 hardcode_libdir_separator_GCJ=:
14261 hardcode_direct_GCJ=yes
14263 # hardcode_minus_L: Not really in the search PATH,
14264 # but as the default location of the library.
14265 hardcode_minus_L_GCJ=yes
14266 export_dynamic_flag_spec_GCJ='${wl}-E'
14269 hpux10* | hpux11*)
14270 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14271 case $host_cpu in
14272 hppa*64*|ia64*)
14273 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14278 esac
14279 else
14280 case $host_cpu in
14281 hppa*64*|ia64*)
14282 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14285 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14287 esac
14289 if test "$with_gnu_ld" = no; then
14290 case $host_cpu in
14291 hppa*64*)
14292 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
14293 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
14294 hardcode_libdir_separator_GCJ=:
14295 hardcode_direct_GCJ=no
14296 hardcode_shlibpath_var_GCJ=no
14298 ia64*)
14299 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14300 hardcode_direct_GCJ=no
14301 hardcode_shlibpath_var_GCJ=no
14303 # hardcode_minus_L: Not really in the search PATH,
14304 # but as the default location of the library.
14305 hardcode_minus_L_GCJ=yes
14308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
14309 hardcode_libdir_separator_GCJ=:
14310 hardcode_direct_GCJ=yes
14311 export_dynamic_flag_spec_GCJ='${wl}-E'
14313 # hardcode_minus_L: Not really in the search PATH,
14314 # but as the default location of the library.
14315 hardcode_minus_L_GCJ=yes
14317 esac
14321 irix5* | irix6* | nonstopux*)
14322 if test "$GCC" = yes; then
14323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14324 else
14325 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14326 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
14328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14329 hardcode_libdir_separator_GCJ=:
14330 link_all_deplibs_GCJ=yes
14333 netbsd*)
14334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14336 else
14337 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14339 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14340 hardcode_direct_GCJ=yes
14341 hardcode_shlibpath_var_GCJ=no
14344 newsos6)
14345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_direct_GCJ=yes
14347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14348 hardcode_libdir_separator_GCJ=:
14349 hardcode_shlibpath_var_GCJ=no
14352 openbsd*)
14353 hardcode_direct_GCJ=yes
14354 hardcode_shlibpath_var_GCJ=no
14355 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14356 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14359 export_dynamic_flag_spec_GCJ='${wl}-E'
14360 else
14361 case $host_os in
14362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14363 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14367 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14370 esac
14374 os2*)
14375 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14376 hardcode_minus_L_GCJ=yes
14377 allow_undefined_flag_GCJ=unsupported
14378 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14379 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14382 osf3*)
14383 if test "$GCC" = yes; then
14384 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
14385 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14386 else
14387 allow_undefined_flag_GCJ=' -expect_unresolved \*'
14388 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14391 hardcode_libdir_separator_GCJ=:
14394 osf4* | osf5*) # as osf3* with the addition of -msym flag
14395 if test "$GCC" = yes; then
14396 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
14397 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14398 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14399 else
14400 allow_undefined_flag_GCJ=' -expect_unresolved \*'
14401 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14402 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14403 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14405 # Both c and cxx compiler support -rpath directly
14406 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
14408 hardcode_libdir_separator_GCJ=:
14411 sco3.2v5*)
14412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14413 hardcode_shlibpath_var_GCJ=no
14414 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14415 runpath_var=LD_RUN_PATH
14416 hardcode_runpath_var=yes
14419 solaris*)
14420 no_undefined_flag_GCJ=' -z text'
14421 if test "$GCC" = yes; then
14422 wlarc='${wl}'
14423 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14425 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14426 else
14427 wlarc=''
14428 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14429 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
14433 hardcode_shlibpath_var_GCJ=no
14434 case $host_os in
14435 solaris2.[0-5] | solaris2.[0-5].*) ;;
14437 # The compiler driver will combine linker options so we
14438 # cannot just pass the convience library names through
14439 # without $wl, iff we do not link with $LD.
14440 # Luckily, gcc supports the same syntax we need for Sun Studio.
14441 # Supported since Solaris 2.6 (maybe 2.5.1?)
14442 case $wlarc in
14444 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
14446 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14447 esac ;;
14448 esac
14449 link_all_deplibs_GCJ=yes
14452 sunos4*)
14453 if test "x$host_vendor" = xsequent; then
14454 # Use $CC to link under sequent, because it throws in some extra .o
14455 # files that make .init and .fini sections work.
14456 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14457 else
14458 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14461 hardcode_direct_GCJ=yes
14462 hardcode_minus_L_GCJ=yes
14463 hardcode_shlibpath_var_GCJ=no
14466 sysv4)
14467 case $host_vendor in
14468 sni)
14469 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_direct_GCJ=yes # is this really true???
14472 siemens)
14473 ## LD is ld it makes a PLAMLIB
14474 ## CC just makes a GrossModule.
14475 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14476 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14477 hardcode_direct_GCJ=no
14479 motorola)
14480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14483 esac
14484 runpath_var='LD_RUN_PATH'
14485 hardcode_shlibpath_var_GCJ=no
14488 sysv4.3*)
14489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490 hardcode_shlibpath_var_GCJ=no
14491 export_dynamic_flag_spec_GCJ='-Bexport'
14494 sysv4*MP*)
14495 if test -d /usr/nec; then
14496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 hardcode_shlibpath_var_GCJ=no
14498 runpath_var=LD_RUN_PATH
14499 hardcode_runpath_var=yes
14500 ld_shlibs_GCJ=yes
14504 sysv4.2uw2*)
14505 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14506 hardcode_direct_GCJ=yes
14507 hardcode_minus_L_GCJ=no
14508 hardcode_shlibpath_var_GCJ=no
14509 hardcode_runpath_var=yes
14510 runpath_var=LD_RUN_PATH
14513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14514 no_undefined_flag_GCJ='${wl}-z ${wl}text'
14515 if test "$GCC" = yes; then
14516 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 else
14518 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14520 runpath_var='LD_RUN_PATH'
14521 hardcode_shlibpath_var_GCJ=no
14524 sysv5*)
14525 no_undefined_flag_GCJ=' -z text'
14526 # $CC -shared without GNU ld will not create a library from C++
14527 # object files and a static libstdc++, better avoid it by now
14528 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14531 hardcode_libdir_flag_spec_GCJ=
14532 hardcode_shlibpath_var_GCJ=no
14533 runpath_var='LD_RUN_PATH'
14536 uts4*)
14537 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14539 hardcode_shlibpath_var_GCJ=no
14543 ld_shlibs_GCJ=no
14545 esac
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
14549 $as_echo "$ld_shlibs_GCJ" >&6; }
14550 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14553 if test "$GCC" = yes; then
14554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14558 # Do we need to explicitly link libc?
14560 case "x$archive_cmds_need_lc_GCJ" in
14561 x|xyes)
14562 # Assume -lc should be added
14563 archive_cmds_need_lc_GCJ=yes
14565 if test "$enable_shared" = yes && test "$GCC" = yes; then
14566 case $archive_cmds_GCJ in
14567 *'~'*)
14568 # FIXME: we may have to deal with multi-command sequences.
14570 '$CC '*)
14571 # Test whether the compiler implicitly links with -lc since on some
14572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14573 # to ld, don't add -lc before -lgcc.
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14576 $rm conftest*
14577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14580 (eval $ac_compile) 2>&5
14581 ac_status=$?
14582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; } 2>conftest.err; then
14584 soname=conftest
14585 lib=conftest
14586 libobjs=conftest.$ac_objext
14587 deplibs=
14588 wl=$lt_prog_compiler_wl_GCJ
14589 compiler_flags=-v
14590 linker_flags=-v
14591 verstring=
14592 output_objdir=.
14593 libname=conftest
14594 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14595 allow_undefined_flag_GCJ=
14596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14597 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14598 ac_status=$?
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }
14601 then
14602 archive_cmds_need_lc_GCJ=no
14603 else
14604 archive_cmds_need_lc_GCJ=yes
14606 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14607 else
14608 cat conftest.err 1>&5
14610 $rm conftest*
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
14612 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
14614 esac
14617 esac
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14620 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14621 library_names_spec=
14622 libname_spec='lib$name'
14623 soname_spec=
14624 shrext_cmds=".so"
14625 postinstall_cmds=
14626 postuninstall_cmds=
14627 finish_cmds=
14628 finish_eval=
14629 shlibpath_var=
14630 shlibpath_overrides_runpath=unknown
14631 version_type=none
14632 dynamic_linker="$host_os ld.so"
14633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14634 if test "$GCC" = yes; then
14635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14637 # if the path contains ";" then we assume it to be the separator
14638 # otherwise default to the standard path separator (i.e. ":") - it is
14639 # assumed that no part of a normal pathname contains ";" but that should
14640 # okay in the real world where ";" in dirpaths is itself problematic.
14641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14642 else
14643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14645 else
14646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14648 need_lib_prefix=unknown
14649 hardcode_into_libs=no
14651 # when you set need_version to no, make sure it does not cause -set_version
14652 # flags to be left without arguments
14653 need_version=unknown
14655 case $host_os in
14656 aix3*)
14657 version_type=linux
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14659 shlibpath_var=LIBPATH
14661 # AIX 3 has no versioning support, so we append a major version to the name.
14662 soname_spec='${libname}${release}${shared_ext}$major'
14665 aix4* | aix5*)
14666 version_type=linux
14667 need_lib_prefix=no
14668 need_version=no
14669 hardcode_into_libs=yes
14670 if test "$host_cpu" = ia64; then
14671 # AIX 5 supports IA64
14672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 else
14675 # With GCC up to 2.95.x, collect2 would create an import file
14676 # for dependence libraries. The import file would start with
14677 # the line `#! .'. This would cause the generated library to
14678 # depend on `.', always an invalid library. This was fixed in
14679 # development snapshots of GCC prior to 3.0.
14680 case $host_os in
14681 aix4 | aix4.[01] | aix4.[01].*)
14682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14683 echo ' yes '
14684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14686 else
14687 can_build_shared=no
14690 esac
14691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14692 # soname into executable. Probably we can add versioning support to
14693 # collect2, so additional links can be useful in future.
14694 if test "$aix_use_runtimelinking" = yes; then
14695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14696 # instead of lib<name>.a to let people know that these are not
14697 # typical AIX shared libraries.
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 else
14700 # We preserve .a as extension for shared libraries through AIX4.2
14701 # and later when we are not doing run time linking.
14702 library_names_spec='${libname}${release}.a $libname.a'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14705 shlibpath_var=LIBPATH
14709 amigaos*)
14710 library_names_spec='$libname.ixlibrary $libname.a'
14711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14712 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14715 beos*)
14716 library_names_spec='${libname}${shared_ext}'
14717 dynamic_linker="$host_os ld.so"
14718 shlibpath_var=LIBRARY_PATH
14721 bsdi[45]*)
14722 version_type=linux
14723 need_version=no
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14730 # the default ld.so.conf also contains /usr/contrib/lib and
14731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14732 # libtool to hard-code these into programs
14735 cygwin* | mingw* | pw32*)
14736 version_type=windows
14737 shrext_cmds=".dll"
14738 need_version=no
14739 need_lib_prefix=no
14741 case $GCC,$host_os in
14742 yes,cygwin* | yes,mingw* | yes,pw32*)
14743 library_names_spec='$libname.dll.a'
14744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14745 postinstall_cmds='base_file=`basename \${file}`~
14746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14747 dldir=$destdir/`dirname \$dlpath`~
14748 test -d \$dldir || mkdir -p \$dldir~
14749 $install_prog $dir/$dlname \$dldir/$dlname~
14750 chmod a+x \$dldir/$dlname'
14751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14752 dlpath=$dir/\$dldll~
14753 $rm \$dlpath'
14754 shlibpath_overrides_runpath=yes
14756 case $host_os in
14757 cygwin*)
14758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14762 mingw*)
14763 # MinGW DLLs use traditional 'lib' prefix
14764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14767 # It is most probably a Windows format PATH printed by
14768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14769 # path with ; separators, and with drive letters. We can handle the
14770 # drive letters (cygwin fileutils understands them), so leave them,
14771 # especially as we might pass files found there to a mingw objdump,
14772 # which wouldn't understand a cygwinified path. Ahh.
14773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14774 else
14775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14778 pw32*)
14779 # pw32 DLLs use 'pw' prefix rather than 'lib'
14780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14782 esac
14786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14788 esac
14789 dynamic_linker='Win32 ld.exe'
14790 # FIXME: first we should search . and the directory the executable is in
14791 shlibpath_var=PATH
14794 darwin* | rhapsody*)
14795 dynamic_linker="$host_os dyld"
14796 version_type=darwin
14797 need_lib_prefix=no
14798 need_version=no
14799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14800 soname_spec='${libname}${release}${major}$shared_ext'
14801 shlibpath_overrides_runpath=yes
14802 shlibpath_var=DYLD_LIBRARY_PATH
14803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14805 if test "$GCC" = yes; then
14806 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14807 else
14808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14813 dgux*)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14822 freebsd1*)
14823 dynamic_linker=no
14826 kfreebsd*-gnu)
14827 version_type=linux
14828 need_lib_prefix=no
14829 need_version=no
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath=no
14834 hardcode_into_libs=yes
14835 dynamic_linker='GNU ld.so'
14838 freebsd* | dragonfly*)
14839 # DragonFly does not have aout. When/if they implement a new
14840 # versioning mechanism, adjust this.
14841 if test -x /usr/bin/objformat; then
14842 objformat=`/usr/bin/objformat`
14843 else
14844 case $host_os in
14845 freebsd[123]*) objformat=aout ;;
14846 *) objformat=elf ;;
14847 esac
14849 version_type=freebsd-$objformat
14850 case $version_type in
14851 freebsd-elf*)
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14853 need_version=no
14854 need_lib_prefix=no
14856 freebsd-*)
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14858 need_version=yes
14860 esac
14861 shlibpath_var=LD_LIBRARY_PATH
14862 case $host_os in
14863 freebsd2*)
14864 shlibpath_overrides_runpath=yes
14866 freebsd3.[01]* | freebsdelf3.[01]*)
14867 shlibpath_overrides_runpath=yes
14868 hardcode_into_libs=yes
14870 *) # from 3.2 on
14871 shlibpath_overrides_runpath=no
14872 hardcode_into_libs=yes
14874 esac
14877 gnu*)
14878 version_type=linux
14879 need_lib_prefix=no
14880 need_version=no
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 hardcode_into_libs=yes
14887 hpux9* | hpux10* | hpux11*)
14888 # Give a soname corresponding to the major version so that dld.sl refuses to
14889 # link against other versions.
14890 version_type=sunos
14891 need_lib_prefix=no
14892 need_version=no
14893 case $host_cpu in
14894 ia64*)
14895 shrext_cmds='.so'
14896 hardcode_into_libs=yes
14897 dynamic_linker="$host_os dld.so"
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 if test "X$HPUX_IA64_MODE" = X32; then
14903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14904 else
14905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14909 hppa*64*)
14910 shrext_cmds='.sl'
14911 hardcode_into_libs=yes
14912 dynamic_linker="$host_os dld.sl"
14913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14921 shrext_cmds='.sl'
14922 dynamic_linker="$host_os dld.sl"
14923 shlibpath_var=SHLIB_PATH
14924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14928 esac
14929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14930 postinstall_cmds='chmod 555 $lib'
14933 irix5* | irix6* | nonstopux*)
14934 case $host_os in
14935 nonstopux*) version_type=nonstopux ;;
14937 if test "$lt_cv_prog_gnu_ld" = yes; then
14938 version_type=linux
14939 else
14940 version_type=irix
14941 fi ;;
14942 esac
14943 need_lib_prefix=no
14944 need_version=no
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14947 case $host_os in
14948 irix5* | nonstopux*)
14949 libsuff= shlibsuff=
14952 case $LD in # libtool.m4 will add one of these switches to LD
14953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14954 libsuff= shlibsuff= libmagic=32-bit;;
14955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14956 libsuff=32 shlibsuff=N32 libmagic=N32;;
14957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14959 *) libsuff= shlibsuff= libmagic=never-match;;
14960 esac
14962 esac
14963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14964 shlibpath_overrides_runpath=no
14965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14967 hardcode_into_libs=yes
14970 # No shared lib support for Linux oldld, aout, or coff.
14971 linux*oldld* | linux*aout* | linux*coff*)
14972 dynamic_linker=no
14975 # This must be Linux ELF.
14976 linux*)
14977 version_type=linux
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14983 shlibpath_var=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath=no
14985 # This implies no fast_install, which is unacceptable.
14986 # Some rework will be needed to allow for fast_install
14987 # before this can be enabled.
14988 hardcode_into_libs=yes
14990 # Append ld.so.conf contents to the search path
14991 if test -f /etc/ld.so.conf; then
14992 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14996 # We used to test for /lib/ld.so.1 and disable shared libraries on
14997 # powerpc, because MkLinux only supported shared libraries with the
14998 # GNU dynamic linker. Since this was broken with cross compilers,
14999 # most powerpc-linux boxes support dynamic linking these days and
15000 # people can always --disable-shared, the test was removed, and we
15001 # assume the GNU/Linux dynamic linker is in use.
15002 dynamic_linker='GNU/Linux ld.so'
15005 knetbsd*-gnu)
15006 version_type=linux
15007 need_lib_prefix=no
15008 need_version=no
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 shlibpath_var=LD_LIBRARY_PATH
15012 shlibpath_overrides_runpath=no
15013 hardcode_into_libs=yes
15014 dynamic_linker='GNU ld.so'
15017 netbsd*)
15018 version_type=sunos
15019 need_lib_prefix=no
15020 need_version=no
15021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15024 dynamic_linker='NetBSD (a.out) ld.so'
15025 else
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 dynamic_linker='NetBSD ld.elf_so'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath=yes
15032 hardcode_into_libs=yes
15035 newsos6)
15036 version_type=linux
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15042 nto-qnx*)
15043 version_type=linux
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 shlibpath_overrides_runpath=yes
15052 openbsd*)
15053 version_type=sunos
15054 need_lib_prefix=no
15055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15056 case $host_os in
15057 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15058 *) need_version=no ;;
15059 esac
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15062 shlibpath_var=LD_LIBRARY_PATH
15063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15064 case $host_os in
15065 openbsd2.[89] | openbsd2.[89].*)
15066 shlibpath_overrides_runpath=no
15069 shlibpath_overrides_runpath=yes
15071 esac
15072 else
15073 shlibpath_overrides_runpath=yes
15077 os2*)
15078 libname_spec='$name'
15079 shrext_cmds=".dll"
15080 need_lib_prefix=no
15081 library_names_spec='$libname${shared_ext} $libname.a'
15082 dynamic_linker='OS/2 ld.exe'
15083 shlibpath_var=LIBPATH
15086 osf3* | osf4* | osf5*)
15087 version_type=osf
15088 need_lib_prefix=no
15089 need_version=no
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092 shlibpath_var=LD_LIBRARY_PATH
15093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15097 sco3.2v5*)
15098 version_type=osf
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 shlibpath_var=LD_LIBRARY_PATH
15104 solaris*)
15105 version_type=linux
15106 need_lib_prefix=no
15107 need_version=no
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=yes
15112 hardcode_into_libs=yes
15113 # ldd complains unless libraries are executable
15114 postinstall_cmds='chmod +x $lib'
15117 sunos4*)
15118 version_type=sunos
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=yes
15123 if test "$with_gnu_ld" = yes; then
15124 need_lib_prefix=no
15126 need_version=yes
15129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15130 version_type=linux
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 case $host_vendor in
15135 sni)
15136 shlibpath_overrides_runpath=no
15137 need_lib_prefix=no
15138 export_dynamic_flag_spec='${wl}-Blargedynsym'
15139 runpath_var=LD_RUN_PATH
15141 siemens)
15142 need_lib_prefix=no
15144 motorola)
15145 need_lib_prefix=no
15146 need_version=no
15147 shlibpath_overrides_runpath=no
15148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15150 esac
15153 sysv4*MP*)
15154 if test -d /usr/nec ;then
15155 version_type=linux
15156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15157 soname_spec='$libname${shared_ext}.$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15162 uts4*)
15163 version_type=linux
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15170 dynamic_linker=no
15172 esac
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15174 $as_echo "$dynamic_linker" >&6; }
15175 test "$dynamic_linker" = no && can_build_shared=no
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15178 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15179 hardcode_action_GCJ=
15180 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15181 test -n "$runpath_var_GCJ" || \
15182 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
15184 # We can hardcode non-existant directories.
15185 if test "$hardcode_direct_GCJ" != no &&
15186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15187 # have to relink, otherwise we might link with an installed library
15188 # when we should be linking with a yet-to-be-installed one
15189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15190 test "$hardcode_minus_L_GCJ" != no; then
15191 # Linking always hardcodes the temporary library directory.
15192 hardcode_action_GCJ=relink
15193 else
15194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15195 hardcode_action_GCJ=immediate
15197 else
15198 # We cannot hardcode anything, or else we can only hardcode existing
15199 # directories.
15200 hardcode_action_GCJ=unsupported
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
15203 $as_echo "$hardcode_action_GCJ" >&6; }
15205 if test "$hardcode_action_GCJ" = relink; then
15206 # Fast installation is not supported
15207 enable_fast_install=no
15208 elif test "$shlibpath_overrides_runpath" = yes ||
15209 test "$enable_shared" = no; then
15210 # Fast installation is not necessary
15211 enable_fast_install=needless
15214 striplib=
15215 old_striplib=
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15222 $as_echo "yes" >&6; }
15223 else
15224 # FIXME - insert some real tests, host_os isn't really good enough
15225 case $host_os in
15226 darwin*)
15227 if test -n "$STRIP" ; then
15228 striplib="$STRIP -x"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15230 $as_echo "yes" >&6; }
15231 else
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233 $as_echo "no" >&6; }
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }
15240 esac
15243 if test "x$enable_dlopen" != xyes; then
15244 enable_dlopen=unknown
15245 enable_dlopen_self=unknown
15246 enable_dlopen_self_static=unknown
15247 else
15248 lt_cv_dlopen=no
15249 lt_cv_dlopen_libs=
15251 case $host_os in
15252 beos*)
15253 lt_cv_dlopen="load_add_on"
15254 lt_cv_dlopen_libs=
15255 lt_cv_dlopen_self=yes
15258 mingw* | pw32*)
15259 lt_cv_dlopen="LoadLibrary"
15260 lt_cv_dlopen_libs=
15263 cygwin*)
15264 lt_cv_dlopen="dlopen"
15265 lt_cv_dlopen_libs=
15268 darwin*)
15269 # if libdl is installed we need to link against it
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-ldl $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char dlopen ();
15288 main ()
15290 return dlopen ();
15292 return 0;
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_dl_dlopen=yes
15297 else
15298 ac_cv_lib_dl_dlopen=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15306 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15308 else
15310 lt_cv_dlopen="dyld"
15311 lt_cv_dlopen_libs=
15312 lt_cv_dlopen_self=yes
15319 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15320 if test "x$ac_cv_func_shl_load" = x""yes; then :
15321 lt_cv_dlopen="shl_load"
15322 else
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15324 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15325 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15326 $as_echo_n "(cached) " >&6
15327 else
15328 ac_check_lib_save_LIBS=$LIBS
15329 LIBS="-ldld $LIBS"
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15336 #ifdef __cplusplus
15337 extern "C"
15338 #endif
15339 char shl_load ();
15341 main ()
15343 return shl_load ();
15345 return 0;
15347 _ACEOF
15348 if ac_fn_c_try_link "$LINENO"; then :
15349 ac_cv_lib_dld_shl_load=yes
15350 else
15351 ac_cv_lib_dld_shl_load=no
15353 rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15355 LIBS=$ac_check_lib_save_LIBS
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15358 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15359 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15360 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15361 else
15362 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15363 if test "x$ac_cv_func_dlopen" = x""yes; then :
15364 lt_cv_dlopen="dlopen"
15365 else
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15367 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15369 $as_echo_n "(cached) " >&6
15370 else
15371 ac_check_lib_save_LIBS=$LIBS
15372 LIBS="-ldl $LIBS"
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15376 /* Override any GCC internal prototype to avoid an error.
15377 Use char because int might match the return type of a GCC
15378 builtin and then its argument prototype would still apply. */
15379 #ifdef __cplusplus
15380 extern "C"
15381 #endif
15382 char dlopen ();
15384 main ()
15386 return dlopen ();
15388 return 0;
15390 _ACEOF
15391 if ac_fn_c_try_link "$LINENO"; then :
15392 ac_cv_lib_dl_dlopen=yes
15393 else
15394 ac_cv_lib_dl_dlopen=no
15396 rm -f core conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15398 LIBS=$ac_check_lib_save_LIBS
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15402 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15404 else
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15406 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 ac_check_lib_save_LIBS=$LIBS
15411 LIBS="-lsvld $LIBS"
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15415 /* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15418 #ifdef __cplusplus
15419 extern "C"
15420 #endif
15421 char dlopen ();
15423 main ()
15425 return dlopen ();
15427 return 0;
15429 _ACEOF
15430 if ac_fn_c_try_link "$LINENO"; then :
15431 ac_cv_lib_svld_dlopen=yes
15432 else
15433 ac_cv_lib_svld_dlopen=no
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15440 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15441 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15443 else
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15445 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15446 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-ldld $LIBS"
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15454 /* Override any GCC internal prototype to avoid an error.
15455 Use char because int might match the return type of a GCC
15456 builtin and then its argument prototype would still apply. */
15457 #ifdef __cplusplus
15458 extern "C"
15459 #endif
15460 char dld_link ();
15462 main ()
15464 return dld_link ();
15466 return 0;
15468 _ACEOF
15469 if ac_fn_c_try_link "$LINENO"; then :
15470 ac_cv_lib_dld_dld_link=yes
15471 else
15472 ac_cv_lib_dld_dld_link=no
15474 rm -f core conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15479 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15480 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15481 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15500 esac
15502 if test "x$lt_cv_dlopen" != xno; then
15503 enable_dlopen=yes
15504 else
15505 enable_dlopen=no
15508 case $lt_cv_dlopen in
15509 dlopen)
15510 save_CPPFLAGS="$CPPFLAGS"
15511 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15513 save_LDFLAGS="$LDFLAGS"
15514 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15516 save_LIBS="$LIBS"
15517 LIBS="$lt_cv_dlopen_libs $LIBS"
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15520 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15521 if test "${lt_cv_dlopen_self+set}" = set; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 if test "$cross_compiling" = yes; then :
15525 lt_cv_dlopen_self=cross
15526 else
15527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15528 lt_status=$lt_dlunknown
15529 cat > conftest.$ac_ext <<EOF
15530 #line 15530 "configure"
15531 #include "confdefs.h"
15533 #if HAVE_DLFCN_H
15534 #include <dlfcn.h>
15535 #endif
15537 #include <stdio.h>
15539 #ifdef RTLD_GLOBAL
15540 # define LT_DLGLOBAL RTLD_GLOBAL
15541 #else
15542 # ifdef DL_GLOBAL
15543 # define LT_DLGLOBAL DL_GLOBAL
15544 # else
15545 # define LT_DLGLOBAL 0
15546 # endif
15547 #endif
15549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15550 find out it does not work in some platform. */
15551 #ifndef LT_DLLAZY_OR_NOW
15552 # ifdef RTLD_LAZY
15553 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15554 # else
15555 # ifdef DL_LAZY
15556 # define LT_DLLAZY_OR_NOW DL_LAZY
15557 # else
15558 # ifdef RTLD_NOW
15559 # define LT_DLLAZY_OR_NOW RTLD_NOW
15560 # else
15561 # ifdef DL_NOW
15562 # define LT_DLLAZY_OR_NOW DL_NOW
15563 # else
15564 # define LT_DLLAZY_OR_NOW 0
15565 # endif
15566 # endif
15567 # endif
15568 # endif
15569 #endif
15571 #ifdef __cplusplus
15572 extern "C" void exit (int);
15573 #endif
15575 void fnord() { int i=42;}
15576 int main ()
15578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15579 int status = $lt_dlunknown;
15581 if (self)
15583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15584 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15585 /* dlclose (self); */
15588 exit (status);
15591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15592 (eval $ac_link) 2>&5
15593 ac_status=$?
15594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15595 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15596 (./conftest; exit; ) >&5 2>/dev/null
15597 lt_status=$?
15598 case x$lt_status in
15599 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15600 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15601 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15602 esac
15603 else :
15604 # compilation failed
15605 lt_cv_dlopen_self=no
15608 rm -fr conftest*
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15613 $as_echo "$lt_cv_dlopen_self" >&6; }
15615 if test "x$lt_cv_dlopen_self" = xyes; then
15616 LDFLAGS="$LDFLAGS $link_static_flag"
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15618 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15619 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15621 else
15622 if test "$cross_compiling" = yes; then :
15623 lt_cv_dlopen_self_static=cross
15624 else
15625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15626 lt_status=$lt_dlunknown
15627 cat > conftest.$ac_ext <<EOF
15628 #line 15628 "configure"
15629 #include "confdefs.h"
15631 #if HAVE_DLFCN_H
15632 #include <dlfcn.h>
15633 #endif
15635 #include <stdio.h>
15637 #ifdef RTLD_GLOBAL
15638 # define LT_DLGLOBAL RTLD_GLOBAL
15639 #else
15640 # ifdef DL_GLOBAL
15641 # define LT_DLGLOBAL DL_GLOBAL
15642 # else
15643 # define LT_DLGLOBAL 0
15644 # endif
15645 #endif
15647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15648 find out it does not work in some platform. */
15649 #ifndef LT_DLLAZY_OR_NOW
15650 # ifdef RTLD_LAZY
15651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15652 # else
15653 # ifdef DL_LAZY
15654 # define LT_DLLAZY_OR_NOW DL_LAZY
15655 # else
15656 # ifdef RTLD_NOW
15657 # define LT_DLLAZY_OR_NOW RTLD_NOW
15658 # else
15659 # ifdef DL_NOW
15660 # define LT_DLLAZY_OR_NOW DL_NOW
15661 # else
15662 # define LT_DLLAZY_OR_NOW 0
15663 # endif
15664 # endif
15665 # endif
15666 # endif
15667 #endif
15669 #ifdef __cplusplus
15670 extern "C" void exit (int);
15671 #endif
15673 void fnord() { int i=42;}
15674 int main ()
15676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15677 int status = $lt_dlunknown;
15679 if (self)
15681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15682 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15683 /* dlclose (self); */
15686 exit (status);
15689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15690 (eval $ac_link) 2>&5
15691 ac_status=$?
15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15694 (./conftest; exit; ) >&5 2>/dev/null
15695 lt_status=$?
15696 case x$lt_status in
15697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15699 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15700 esac
15701 else :
15702 # compilation failed
15703 lt_cv_dlopen_self_static=no
15706 rm -fr conftest*
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15711 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15714 CPPFLAGS="$save_CPPFLAGS"
15715 LDFLAGS="$save_LDFLAGS"
15716 LIBS="$save_LIBS"
15718 esac
15720 case $lt_cv_dlopen_self in
15721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15722 *) enable_dlopen_self=unknown ;;
15723 esac
15725 case $lt_cv_dlopen_self_static in
15726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15727 *) enable_dlopen_self_static=unknown ;;
15728 esac
15732 # The else clause should only fire when bootstrapping the
15733 # libtool distribution, otherwise you forgot to ship ltmain.sh
15734 # with your package, and you will get complaints that there are
15735 # no rules to generate ltmain.sh.
15736 if test -f "$ltmain"; then
15737 # See if we are running on zsh, and set the options which allow our commands through
15738 # without removal of \ escapes.
15739 if test -n "${ZSH_VERSION+set}" ; then
15740 setopt NO_GLOB_SUBST
15742 # Now quote all the things that may contain metacharacters while being
15743 # careful not to overquote the AC_SUBSTed values. We take copies of the
15744 # variables and quote the copies for generation of the libtool script.
15745 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15746 SED SHELL STRIP \
15747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15749 deplibs_check_method reload_flag reload_cmds need_locks \
15750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15751 lt_cv_sys_global_symbol_to_c_name_address \
15752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15753 old_postinstall_cmds old_postuninstall_cmds \
15754 compiler_GCJ \
15755 CC_GCJ \
15756 LD_GCJ \
15757 lt_prog_compiler_wl_GCJ \
15758 lt_prog_compiler_pic_GCJ \
15759 lt_prog_compiler_static_GCJ \
15760 lt_prog_compiler_no_builtin_flag_GCJ \
15761 export_dynamic_flag_spec_GCJ \
15762 thread_safe_flag_spec_GCJ \
15763 whole_archive_flag_spec_GCJ \
15764 enable_shared_with_static_runtimes_GCJ \
15765 old_archive_cmds_GCJ \
15766 old_archive_from_new_cmds_GCJ \
15767 predep_objects_GCJ \
15768 postdep_objects_GCJ \
15769 predeps_GCJ \
15770 postdeps_GCJ \
15771 compiler_lib_search_path_GCJ \
15772 archive_cmds_GCJ \
15773 archive_expsym_cmds_GCJ \
15774 postinstall_cmds_GCJ \
15775 postuninstall_cmds_GCJ \
15776 old_archive_from_expsyms_cmds_GCJ \
15777 allow_undefined_flag_GCJ \
15778 no_undefined_flag_GCJ \
15779 export_symbols_cmds_GCJ \
15780 hardcode_libdir_flag_spec_GCJ \
15781 hardcode_libdir_flag_spec_ld_GCJ \
15782 hardcode_libdir_separator_GCJ \
15783 hardcode_automatic_GCJ \
15784 module_cmds_GCJ \
15785 module_expsym_cmds_GCJ \
15786 lt_cv_prog_compiler_c_o_GCJ \
15787 exclude_expsyms_GCJ \
15788 include_expsyms_GCJ; do
15790 case $var in
15791 old_archive_cmds_GCJ | \
15792 old_archive_from_new_cmds_GCJ | \
15793 archive_cmds_GCJ | \
15794 archive_expsym_cmds_GCJ | \
15795 module_cmds_GCJ | \
15796 module_expsym_cmds_GCJ | \
15797 old_archive_from_expsyms_cmds_GCJ | \
15798 export_symbols_cmds_GCJ | \
15799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15800 postinstall_cmds | postuninstall_cmds | \
15801 old_postinstall_cmds | old_postuninstall_cmds | \
15802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15803 # Double-quote double-evaled strings.
15804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15809 esac
15810 done
15812 case $lt_echo in
15813 *'\$0 --fallback-echo"')
15814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15816 esac
15818 cfgfile="$ofile"
15820 cat <<__EOF__ >> "$cfgfile"
15821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15825 # Shell to use when invoking shell scripts.
15826 SHELL=$lt_SHELL
15828 # Whether or not to build shared libraries.
15829 build_libtool_libs=$enable_shared
15831 # Whether or not to build static libraries.
15832 build_old_libs=$enable_static
15834 # Whether or not to add -lc for building shared libraries.
15835 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
15837 # Whether or not to disallow shared libs when runtime libs are static
15838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
15840 # Whether or not to optimize for fast installation.
15841 fast_install=$enable_fast_install
15843 # The host system.
15844 host_alias=$host_alias
15845 host=$host
15846 host_os=$host_os
15848 # The build system.
15849 build_alias=$build_alias
15850 build=$build
15851 build_os=$build_os
15853 # An echo program that does not interpret backslashes.
15854 echo=$lt_echo
15856 # The archiver.
15857 AR=$lt_AR
15858 AR_FLAGS=$lt_AR_FLAGS
15860 # A C compiler.
15861 LTCC=$lt_LTCC
15863 # A language-specific compiler.
15864 CC=$lt_compiler_GCJ
15866 # Is the compiler the GNU C compiler?
15867 with_gcc=$GCC_GCJ
15869 # An ERE matcher.
15870 EGREP=$lt_EGREP
15872 # The linker used to build libraries.
15873 LD=$lt_LD_GCJ
15875 # Whether we need hard or soft links.
15876 LN_S=$lt_LN_S
15878 # A BSD-compatible nm program.
15879 NM=$lt_NM
15881 # A symbol stripping program
15882 STRIP=$lt_STRIP
15884 # Used to examine libraries when file_magic_cmd begins "file"
15885 MAGIC_CMD=$MAGIC_CMD
15887 # Used on cygwin: DLL creation program.
15888 DLLTOOL="$DLLTOOL"
15890 # Used on cygwin: object dumper.
15891 OBJDUMP="$OBJDUMP"
15893 # Used on cygwin: assembler.
15894 AS="$AS"
15896 # The name of the directory that contains temporary libtool files.
15897 objdir=$objdir
15899 # How to create reloadable object files.
15900 reload_flag=$lt_reload_flag
15901 reload_cmds=$lt_reload_cmds
15903 # How to pass a linker flag through the compiler.
15904 wl=$lt_lt_prog_compiler_wl_GCJ
15906 # Object file suffix (normally "o").
15907 objext="$ac_objext"
15909 # Old archive suffix (normally "a").
15910 libext="$libext"
15912 # Shared library suffix (normally ".so").
15913 shrext_cmds='$shrext_cmds'
15915 # Executable file suffix (normally "").
15916 exeext="$exeext"
15918 # Additional compiler flags for building library objects.
15919 pic_flag=$lt_lt_prog_compiler_pic_GCJ
15920 pic_mode=$pic_mode
15922 # What is the maximum length of a command?
15923 max_cmd_len=$lt_cv_sys_max_cmd_len
15925 # Does compiler simultaneously support -c and -o options?
15926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
15928 # Must we lock files when doing compilation?
15929 need_locks=$lt_need_locks
15931 # Do we need the lib prefix for modules?
15932 need_lib_prefix=$need_lib_prefix
15934 # Do we need a version for libraries?
15935 need_version=$need_version
15937 # Whether dlopen is supported.
15938 dlopen_support=$enable_dlopen
15940 # Whether dlopen of programs is supported.
15941 dlopen_self=$enable_dlopen_self
15943 # Whether dlopen of statically linked programs is supported.
15944 dlopen_self_static=$enable_dlopen_self_static
15946 # Compiler flag to prevent dynamic linking.
15947 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15949 # Compiler flag to turn off builtin functions.
15950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15952 # Compiler flag to allow reflexive dlopens.
15953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15955 # Compiler flag to generate shared objects directly from archives.
15956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15958 # Compiler flag to generate thread-safe objects.
15959 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15961 # Library versioning type.
15962 version_type=$version_type
15964 # Format of library name prefix.
15965 libname_spec=$lt_libname_spec
15967 # List of archive names. First name is the real one, the rest are links.
15968 # The last name is the one that the linker finds with -lNAME.
15969 library_names_spec=$lt_library_names_spec
15971 # The coded name of the library, if different from the real name.
15972 soname_spec=$lt_soname_spec
15974 # Commands used to build and install an old-style archive.
15975 RANLIB=$lt_RANLIB
15976 old_archive_cmds=$lt_old_archive_cmds_GCJ
15977 old_postinstall_cmds=$lt_old_postinstall_cmds
15978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15980 # Create an old-style archive from a shared archive.
15981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15983 # Create a temporary old-style archive to link instead of a shared archive.
15984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15986 # Commands used to build and install a shared archive.
15987 archive_cmds=$lt_archive_cmds_GCJ
15988 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15989 postinstall_cmds=$lt_postinstall_cmds
15990 postuninstall_cmds=$lt_postuninstall_cmds
15992 # Commands used to build a loadable module (assumed same as above if empty)
15993 module_cmds=$lt_module_cmds_GCJ
15994 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15996 # Commands to strip libraries.
15997 old_striplib=$lt_old_striplib
15998 striplib=$lt_striplib
16000 # Dependencies to place before the objects being linked to create a
16001 # shared library.
16002 predep_objects=$lt_predep_objects_GCJ
16004 # Dependencies to place after the objects being linked to create a
16005 # shared library.
16006 postdep_objects=$lt_postdep_objects_GCJ
16008 # Dependencies to place before the objects being linked to create a
16009 # shared library.
16010 predeps=$lt_predeps_GCJ
16012 # Dependencies to place after the objects being linked to create a
16013 # shared library.
16014 postdeps=$lt_postdeps_GCJ
16016 # The library search path used internally by the compiler when linking
16017 # a shared library.
16018 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16020 # Method to check whether dependent libraries are shared objects.
16021 deplibs_check_method=$lt_deplibs_check_method
16023 # Command to use when deplibs_check_method == file_magic.
16024 file_magic_cmd=$lt_file_magic_cmd
16026 # Flag that allows shared libraries with undefined symbols to be built.
16027 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16029 # Flag that forces no undefined symbols.
16030 no_undefined_flag=$lt_no_undefined_flag_GCJ
16032 # Commands used to finish a libtool library installation in a directory.
16033 finish_cmds=$lt_finish_cmds
16035 # Same as above, but a single script fragment to be evaled but not shown.
16036 finish_eval=$lt_finish_eval
16038 # Take the output of nm and produce a listing of raw symbols and C names.
16039 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16041 # Transform the output of nm in a proper C declaration
16042 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16044 # Transform the output of nm in a C name address pair
16045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16047 # This is the shared library runtime path variable.
16048 runpath_var=$runpath_var
16050 # This is the shared library path variable.
16051 shlibpath_var=$shlibpath_var
16053 # Is shlibpath searched before the hard-coded library search path?
16054 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16056 # How to hardcode a shared library path into an executable.
16057 hardcode_action=$hardcode_action_GCJ
16059 # Whether we should hardcode library paths into libraries.
16060 hardcode_into_libs=$hardcode_into_libs
16062 # Flag to hardcode \$libdir into a binary during linking.
16063 # This must work even if \$libdir does not exist.
16064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16066 # If ld is used when linking, flag to hardcode \$libdir into
16067 # a binary during linking. This must work even if \$libdir does
16068 # not exist.
16069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
16071 # Whether we need a single -rpath flag with a separated argument.
16072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
16074 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16075 # resulting binary.
16076 hardcode_direct=$hardcode_direct_GCJ
16078 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16079 # resulting binary.
16080 hardcode_minus_L=$hardcode_minus_L_GCJ
16082 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16083 # the resulting binary.
16084 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
16086 # Set to yes if building a shared library automatically hardcodes DIR into the library
16087 # and all subsequent libraries and executables linked against it.
16088 hardcode_automatic=$hardcode_automatic_GCJ
16090 # Variables whose values should be saved in libtool wrapper scripts and
16091 # restored at relink time.
16092 variables_saved_for_relink="$variables_saved_for_relink"
16094 # Whether libtool must link a program against all its dependency libraries.
16095 link_all_deplibs=$link_all_deplibs_GCJ
16097 # Compile-time system search path for libraries
16098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16100 # Run-time system search path for libraries
16101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16103 # Fix the shell variable \$srcfile for the compiler.
16104 fix_srcfile_path="$fix_srcfile_path_GCJ"
16106 # Set to yes if exported symbols are required.
16107 always_export_symbols=$always_export_symbols_GCJ
16109 # The commands to list exported symbols.
16110 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
16112 # The commands to extract the exported symbol list from a shared archive.
16113 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16115 # Symbols that should not be listed in the preloaded symbols.
16116 exclude_expsyms=$lt_exclude_expsyms_GCJ
16118 # Symbols that must always be exported.
16119 include_expsyms=$lt_include_expsyms_GCJ
16121 # ### END LIBTOOL TAG CONFIG: $tagname
16123 __EOF__
16126 else
16127 # If there is no Makefile yet, we rely on a make rule to execute
16128 # `config.status --recheck' to rerun these tests and create the
16129 # libtool script then.
16130 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16131 if test -f "$ltmain_in"; then
16132 test -f Makefile && make "$ltmain"
16137 ac_ext=c
16138 ac_cpp='$CPP $CPPFLAGS'
16139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16143 CC="$lt_save_CC"
16145 else
16146 tagname=""
16153 # Source file extension for RC test sources.
16154 ac_ext=rc
16156 # Object file extension for compiled RC test sources.
16157 objext=o
16158 objext_RC=$objext
16160 # Code to be used in simple compile tests
16161 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
16163 # Code to be used in simple link tests
16164 lt_simple_link_test_code="$lt_simple_compile_test_code"
16166 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16168 # If no C compiler was specified, use CC.
16169 LTCC=${LTCC-"$CC"}
16171 # Allow CC to be a program name with arguments.
16172 compiler=$CC
16175 # save warnings/boilerplate of simple test code
16176 ac_outfile=conftest.$ac_objext
16177 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16179 _lt_compiler_boilerplate=`cat conftest.err`
16180 $rm conftest*
16182 ac_outfile=conftest.$ac_objext
16183 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16185 _lt_linker_boilerplate=`cat conftest.err`
16186 $rm conftest*
16189 # Allow CC to be a program name with arguments.
16190 lt_save_CC="$CC"
16191 CC=${RC-"windres"}
16192 compiler=$CC
16193 compiler_RC=$CC
16194 for cc_temp in $compiler""; do
16195 case $cc_temp in
16196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16198 \-*) ;;
16199 *) break;;
16200 esac
16201 done
16202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16204 lt_cv_prog_compiler_c_o_RC=yes
16206 # The else clause should only fire when bootstrapping the
16207 # libtool distribution, otherwise you forgot to ship ltmain.sh
16208 # with your package, and you will get complaints that there are
16209 # no rules to generate ltmain.sh.
16210 if test -f "$ltmain"; then
16211 # See if we are running on zsh, and set the options which allow our commands through
16212 # without removal of \ escapes.
16213 if test -n "${ZSH_VERSION+set}" ; then
16214 setopt NO_GLOB_SUBST
16216 # Now quote all the things that may contain metacharacters while being
16217 # careful not to overquote the AC_SUBSTed values. We take copies of the
16218 # variables and quote the copies for generation of the libtool script.
16219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16220 SED SHELL STRIP \
16221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16223 deplibs_check_method reload_flag reload_cmds need_locks \
16224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16225 lt_cv_sys_global_symbol_to_c_name_address \
16226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16227 old_postinstall_cmds old_postuninstall_cmds \
16228 compiler_RC \
16229 CC_RC \
16230 LD_RC \
16231 lt_prog_compiler_wl_RC \
16232 lt_prog_compiler_pic_RC \
16233 lt_prog_compiler_static_RC \
16234 lt_prog_compiler_no_builtin_flag_RC \
16235 export_dynamic_flag_spec_RC \
16236 thread_safe_flag_spec_RC \
16237 whole_archive_flag_spec_RC \
16238 enable_shared_with_static_runtimes_RC \
16239 old_archive_cmds_RC \
16240 old_archive_from_new_cmds_RC \
16241 predep_objects_RC \
16242 postdep_objects_RC \
16243 predeps_RC \
16244 postdeps_RC \
16245 compiler_lib_search_path_RC \
16246 archive_cmds_RC \
16247 archive_expsym_cmds_RC \
16248 postinstall_cmds_RC \
16249 postuninstall_cmds_RC \
16250 old_archive_from_expsyms_cmds_RC \
16251 allow_undefined_flag_RC \
16252 no_undefined_flag_RC \
16253 export_symbols_cmds_RC \
16254 hardcode_libdir_flag_spec_RC \
16255 hardcode_libdir_flag_spec_ld_RC \
16256 hardcode_libdir_separator_RC \
16257 hardcode_automatic_RC \
16258 module_cmds_RC \
16259 module_expsym_cmds_RC \
16260 lt_cv_prog_compiler_c_o_RC \
16261 exclude_expsyms_RC \
16262 include_expsyms_RC; do
16264 case $var in
16265 old_archive_cmds_RC | \
16266 old_archive_from_new_cmds_RC | \
16267 archive_cmds_RC | \
16268 archive_expsym_cmds_RC | \
16269 module_cmds_RC | \
16270 module_expsym_cmds_RC | \
16271 old_archive_from_expsyms_cmds_RC | \
16272 export_symbols_cmds_RC | \
16273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16274 postinstall_cmds | postuninstall_cmds | \
16275 old_postinstall_cmds | old_postuninstall_cmds | \
16276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16277 # Double-quote double-evaled strings.
16278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16283 esac
16284 done
16286 case $lt_echo in
16287 *'\$0 --fallback-echo"')
16288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16290 esac
16292 cfgfile="$ofile"
16294 cat <<__EOF__ >> "$cfgfile"
16295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16299 # Shell to use when invoking shell scripts.
16300 SHELL=$lt_SHELL
16302 # Whether or not to build shared libraries.
16303 build_libtool_libs=$enable_shared
16305 # Whether or not to build static libraries.
16306 build_old_libs=$enable_static
16308 # Whether or not to add -lc for building shared libraries.
16309 build_libtool_need_lc=$archive_cmds_need_lc_RC
16311 # Whether or not to disallow shared libs when runtime libs are static
16312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16317 # The host system.
16318 host_alias=$host_alias
16319 host=$host
16320 host_os=$host_os
16322 # The build system.
16323 build_alias=$build_alias
16324 build=$build
16325 build_os=$build_os
16327 # An echo program that does not interpret backslashes.
16328 echo=$lt_echo
16330 # The archiver.
16331 AR=$lt_AR
16332 AR_FLAGS=$lt_AR_FLAGS
16334 # A C compiler.
16335 LTCC=$lt_LTCC
16337 # A language-specific compiler.
16338 CC=$lt_compiler_RC
16340 # Is the compiler the GNU C compiler?
16341 with_gcc=$GCC_RC
16343 # An ERE matcher.
16344 EGREP=$lt_EGREP
16346 # The linker used to build libraries.
16347 LD=$lt_LD_RC
16349 # Whether we need hard or soft links.
16350 LN_S=$lt_LN_S
16352 # A BSD-compatible nm program.
16353 NM=$lt_NM
16355 # A symbol stripping program
16356 STRIP=$lt_STRIP
16358 # Used to examine libraries when file_magic_cmd begins "file"
16359 MAGIC_CMD=$MAGIC_CMD
16361 # Used on cygwin: DLL creation program.
16362 DLLTOOL="$DLLTOOL"
16364 # Used on cygwin: object dumper.
16365 OBJDUMP="$OBJDUMP"
16367 # Used on cygwin: assembler.
16368 AS="$AS"
16370 # The name of the directory that contains temporary libtool files.
16371 objdir=$objdir
16373 # How to create reloadable object files.
16374 reload_flag=$lt_reload_flag
16375 reload_cmds=$lt_reload_cmds
16377 # How to pass a linker flag through the compiler.
16378 wl=$lt_lt_prog_compiler_wl_RC
16380 # Object file suffix (normally "o").
16381 objext="$ac_objext"
16383 # Old archive suffix (normally "a").
16384 libext="$libext"
16386 # Shared library suffix (normally ".so").
16387 shrext_cmds='$shrext_cmds'
16389 # Executable file suffix (normally "").
16390 exeext="$exeext"
16392 # Additional compiler flags for building library objects.
16393 pic_flag=$lt_lt_prog_compiler_pic_RC
16394 pic_mode=$pic_mode
16396 # What is the maximum length of a command?
16397 max_cmd_len=$lt_cv_sys_max_cmd_len
16399 # Does compiler simultaneously support -c and -o options?
16400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16402 # Must we lock files when doing compilation?
16403 need_locks=$lt_need_locks
16405 # Do we need the lib prefix for modules?
16406 need_lib_prefix=$need_lib_prefix
16408 # Do we need a version for libraries?
16409 need_version=$need_version
16411 # Whether dlopen is supported.
16412 dlopen_support=$enable_dlopen
16414 # Whether dlopen of programs is supported.
16415 dlopen_self=$enable_dlopen_self
16417 # Whether dlopen of statically linked programs is supported.
16418 dlopen_self_static=$enable_dlopen_self_static
16420 # Compiler flag to prevent dynamic linking.
16421 link_static_flag=$lt_lt_prog_compiler_static_RC
16423 # Compiler flag to turn off builtin functions.
16424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16426 # Compiler flag to allow reflexive dlopens.
16427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16429 # Compiler flag to generate shared objects directly from archives.
16430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16432 # Compiler flag to generate thread-safe objects.
16433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
16435 # Library versioning type.
16436 version_type=$version_type
16438 # Format of library name prefix.
16439 libname_spec=$lt_libname_spec
16441 # List of archive names. First name is the real one, the rest are links.
16442 # The last name is the one that the linker finds with -lNAME.
16443 library_names_spec=$lt_library_names_spec
16445 # The coded name of the library, if different from the real name.
16446 soname_spec=$lt_soname_spec
16448 # Commands used to build and install an old-style archive.
16449 RANLIB=$lt_RANLIB
16450 old_archive_cmds=$lt_old_archive_cmds_RC
16451 old_postinstall_cmds=$lt_old_postinstall_cmds
16452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16454 # Create an old-style archive from a shared archive.
16455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16457 # Create a temporary old-style archive to link instead of a shared archive.
16458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16460 # Commands used to build and install a shared archive.
16461 archive_cmds=$lt_archive_cmds_RC
16462 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16463 postinstall_cmds=$lt_postinstall_cmds
16464 postuninstall_cmds=$lt_postuninstall_cmds
16466 # Commands used to build a loadable module (assumed same as above if empty)
16467 module_cmds=$lt_module_cmds_RC
16468 module_expsym_cmds=$lt_module_expsym_cmds_RC
16470 # Commands to strip libraries.
16471 old_striplib=$lt_old_striplib
16472 striplib=$lt_striplib
16474 # Dependencies to place before the objects being linked to create a
16475 # shared library.
16476 predep_objects=$lt_predep_objects_RC
16478 # Dependencies to place after the objects being linked to create a
16479 # shared library.
16480 postdep_objects=$lt_postdep_objects_RC
16482 # Dependencies to place before the objects being linked to create a
16483 # shared library.
16484 predeps=$lt_predeps_RC
16486 # Dependencies to place after the objects being linked to create a
16487 # shared library.
16488 postdeps=$lt_postdeps_RC
16490 # The library search path used internally by the compiler when linking
16491 # a shared library.
16492 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
16494 # Method to check whether dependent libraries are shared objects.
16495 deplibs_check_method=$lt_deplibs_check_method
16497 # Command to use when deplibs_check_method == file_magic.
16498 file_magic_cmd=$lt_file_magic_cmd
16500 # Flag that allows shared libraries with undefined symbols to be built.
16501 allow_undefined_flag=$lt_allow_undefined_flag_RC
16503 # Flag that forces no undefined symbols.
16504 no_undefined_flag=$lt_no_undefined_flag_RC
16506 # Commands used to finish a libtool library installation in a directory.
16507 finish_cmds=$lt_finish_cmds
16509 # Same as above, but a single script fragment to be evaled but not shown.
16510 finish_eval=$lt_finish_eval
16512 # Take the output of nm and produce a listing of raw symbols and C names.
16513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16515 # Transform the output of nm in a proper C declaration
16516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16518 # Transform the output of nm in a C name address pair
16519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16521 # This is the shared library runtime path variable.
16522 runpath_var=$runpath_var
16524 # This is the shared library path variable.
16525 shlibpath_var=$shlibpath_var
16527 # Is shlibpath searched before the hard-coded library search path?
16528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16530 # How to hardcode a shared library path into an executable.
16531 hardcode_action=$hardcode_action_RC
16533 # Whether we should hardcode library paths into libraries.
16534 hardcode_into_libs=$hardcode_into_libs
16536 # Flag to hardcode \$libdir into a binary during linking.
16537 # This must work even if \$libdir does not exist.
16538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16540 # If ld is used when linking, flag to hardcode \$libdir into
16541 # a binary during linking. This must work even if \$libdir does
16542 # not exist.
16543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
16545 # Whether we need a single -rpath flag with a separated argument.
16546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16549 # resulting binary.
16550 hardcode_direct=$hardcode_direct_RC
16552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16553 # resulting binary.
16554 hardcode_minus_L=$hardcode_minus_L_RC
16556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16557 # the resulting binary.
16558 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16560 # Set to yes if building a shared library automatically hardcodes DIR into the library
16561 # and all subsequent libraries and executables linked against it.
16562 hardcode_automatic=$hardcode_automatic_RC
16564 # Variables whose values should be saved in libtool wrapper scripts and
16565 # restored at relink time.
16566 variables_saved_for_relink="$variables_saved_for_relink"
16568 # Whether libtool must link a program against all its dependency libraries.
16569 link_all_deplibs=$link_all_deplibs_RC
16571 # Compile-time system search path for libraries
16572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16574 # Run-time system search path for libraries
16575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16577 # Fix the shell variable \$srcfile for the compiler.
16578 fix_srcfile_path="$fix_srcfile_path_RC"
16580 # Set to yes if exported symbols are required.
16581 always_export_symbols=$always_export_symbols_RC
16583 # The commands to list exported symbols.
16584 export_symbols_cmds=$lt_export_symbols_cmds_RC
16586 # The commands to extract the exported symbol list from a shared archive.
16587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16589 # Symbols that should not be listed in the preloaded symbols.
16590 exclude_expsyms=$lt_exclude_expsyms_RC
16592 # Symbols that must always be exported.
16593 include_expsyms=$lt_include_expsyms_RC
16595 # ### END LIBTOOL TAG CONFIG: $tagname
16597 __EOF__
16600 else
16601 # If there is no Makefile yet, we rely on a make rule to execute
16602 # `config.status --recheck' to rerun these tests and create the
16603 # libtool script then.
16604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16605 if test -f "$ltmain_in"; then
16606 test -f Makefile && make "$ltmain"
16611 ac_ext=c
16612 ac_cpp='$CPP $CPPFLAGS'
16613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16617 CC="$lt_save_CC"
16622 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
16624 esac
16626 # Append the new tag name to the list of available tags.
16627 if test -n "$tagname" ; then
16628 available_tags="$available_tags $tagname"
16631 done
16632 IFS="$lt_save_ifs"
16634 # Now substitute the updated list of available tags.
16635 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16636 mv "${ofile}T" "$ofile"
16637 chmod +x "$ofile"
16638 else
16639 rm -f "${ofile}T"
16640 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
16646 # This can be used to rebuild libtool when needed
16647 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
16649 # Always use our own libtool.
16650 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16652 # Prevent multiple expansion
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16664 $as_echo_n "checking whether ln -s works... " >&6; }
16665 LN_S=$as_ln_s
16666 if test "$LN_S" = "ln -s"; then
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16668 $as_echo "yes" >&6; }
16669 else
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16671 $as_echo "no, using $LN_S" >&6; }
16674 if test $ac_cv_c_compiler_gnu = yes; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
16676 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
16677 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16679 else
16680 ac_pattern="Autoconf.*'x'"
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683 #include <sgtty.h>
16684 Autoconf TIOCGETP
16685 _ACEOF
16686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16687 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
16688 ac_cv_prog_gcc_traditional=yes
16689 else
16690 ac_cv_prog_gcc_traditional=no
16692 rm -f conftest*
16695 if test $ac_cv_prog_gcc_traditional = no; then
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #include <termio.h>
16699 Autoconf TCGETA
16700 _ACEOF
16701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16702 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
16703 ac_cv_prog_gcc_traditional=yes
16705 rm -f conftest*
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
16710 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
16711 if test $ac_cv_prog_gcc_traditional = yes; then
16712 CC="$CC -traditional"
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16717 $as_echo_n "checking for working volatile... " >&6; }
16718 if test "${ac_cv_c_volatile+set}" = set; then :
16719 $as_echo_n "(cached) " >&6
16720 else
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16725 main ()
16728 volatile int x;
16729 int * volatile y = (int *) 0;
16730 return !x && !y;
16732 return 0;
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"; then :
16736 ac_cv_c_volatile=yes
16737 else
16738 ac_cv_c_volatile=no
16740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16743 $as_echo "$ac_cv_c_volatile" >&6; }
16744 if test $ac_cv_c_volatile = no; then
16746 $as_echo "#define volatile /**/" >>confdefs.h
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
16751 $as_echo_n "checking for library containing strerror... " >&6; }
16752 if test "${ac_cv_search_strerror+set}" = set; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 ac_func_search_save_LIBS=$LIBS
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16759 /* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 char strerror ();
16767 main ()
16769 return strerror ();
16771 return 0;
16773 _ACEOF
16774 for ac_lib in '' cposix; do
16775 if test -z "$ac_lib"; then
16776 ac_res="none required"
16777 else
16778 ac_res=-l$ac_lib
16779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16781 if ac_fn_c_try_link "$LINENO"; then :
16782 ac_cv_search_strerror=$ac_res
16784 rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext
16786 if test "${ac_cv_search_strerror+set}" = set; then :
16787 break
16789 done
16790 if test "${ac_cv_search_strerror+set}" = set; then :
16792 else
16793 ac_cv_search_strerror=no
16795 rm conftest.$ac_ext
16796 LIBS=$ac_func_search_save_LIBS
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16799 $as_echo "$ac_cv_search_strerror" >&6; }
16800 ac_res=$ac_cv_search_strerror
16801 if test "$ac_res" != no; then :
16802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16806 # Extract the first word of "sh", so it can be a program name with args.
16807 set dummy sh; ac_word=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if test "${ac_cv_path_PATH_SH+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16812 else
16813 case $PATH_SH in
16814 [\\/]* | ?:[\\/]*)
16815 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
16818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16821 IFS=$as_save_IFS
16822 test -z "$as_dir" && as_dir=.
16823 for ac_exec_ext in '' $ac_executable_extensions; do
16824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16825 ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
16826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16827 break 2
16829 done
16830 done
16831 IFS=$as_save_IFS
16834 esac
16836 PATH_SH=$ac_cv_path_PATH_SH
16837 if test -n "$PATH_SH"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
16839 $as_echo "$PATH_SH" >&6; }
16840 else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16846 # Extract the first word of "perl", so it can be a program name with args.
16847 set dummy perl; ac_word=$2
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16849 $as_echo_n "checking for $ac_word... " >&6; }
16850 if test "${ac_cv_path_PATH_PERL+set}" = set; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853 case $PATH_PERL in
16854 [\\/]* | ?:[\\/]*)
16855 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16861 IFS=$as_save_IFS
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16865 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 break 2
16869 done
16870 done
16871 IFS=$as_save_IFS
16874 esac
16876 PATH_PERL=$ac_cv_path_PATH_PERL
16877 if test -n "$PATH_PERL"; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
16879 $as_echo "$PATH_PERL" >&6; }
16880 else
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882 $as_echo "no" >&6; }
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890 #define ACAT(a,b)a ## b
16891 ACAT(Cir,cus)
16893 _ACEOF
16894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16895 $EGREP "Circus" >/dev/null 2>&1; then :
16896 $as_echo "#define ULONG_CONST(a) a ## UL" >>confdefs.h
16898 else
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 #define RCAT(a,b)a/**/b
16902 RCAT(Rei,ser)
16904 _ACEOF
16905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16906 $EGREP "Reiser" >/dev/null 2>&1; then :
16907 $as_echo "#define ULONG_CONST(a) a/**/L" >>confdefs.h
16909 else
16910 as_fn_error "How do we create an unsigned long constant?" "$LINENO" 5
16912 rm -f conftest*
16915 rm -f conftest*
16916 # remove for 4.2.5
16918 case "$host" in
16919 *-*-vxworks*)
16920 ac_link="$ac_link $VX_KERNEL"
16922 esac
16926 case "$host" in
16927 *-pc-cygwin*)
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
16929 $as_echo_n "checking for main in -ladvapi32... " >&6; }
16930 if test "${ac_cv_lib_advapi32_main+set}" = set; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-ladvapi32 $LIBS"
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16940 main ()
16942 return main ();
16944 return 0;
16946 _ACEOF
16947 if ac_fn_c_try_link "$LINENO"; then :
16948 ac_cv_lib_advapi32_main=yes
16949 else
16950 ac_cv_lib_advapi32_main=no
16952 rm -f core conftest.err conftest.$ac_objext \
16953 conftest$ac_exeext conftest.$ac_ext
16954 LIBS=$ac_check_lib_save_LIBS
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
16957 $as_echo "$ac_cv_lib_advapi32_main" >&6; }
16958 if test "x$ac_cv_lib_advapi32_main" = x""yes; then :
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_LIBADVAPI32 1
16961 _ACEOF
16963 LIBS="-ladvapi32 $LIBS"
16968 esac
16970 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
16971 if test "x$ac_cv_func_gethostent" = x""yes; then :
16973 else
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
16975 $as_echo_n "checking for library containing gethostent... " >&6; }
16976 if test "${ac_cv_search_gethostent+set}" = set; then :
16977 $as_echo_n "(cached) " >&6
16978 else
16979 ac_func_search_save_LIBS=$LIBS
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16983 /* Override any GCC internal prototype to avoid an error.
16984 Use char because int might match the return type of a GCC
16985 builtin and then its argument prototype would still apply. */
16986 #ifdef __cplusplus
16987 extern "C"
16988 #endif
16989 char gethostent ();
16991 main ()
16993 return gethostent ();
16995 return 0;
16997 _ACEOF
16998 for ac_lib in '' nsl; do
16999 if test -z "$ac_lib"; then
17000 ac_res="none required"
17001 else
17002 ac_res=-l$ac_lib
17003 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
17005 if ac_fn_c_try_link "$LINENO"; then :
17006 ac_cv_search_gethostent=$ac_res
17008 rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext
17010 if test "${ac_cv_search_gethostent+set}" = set; then :
17011 break
17013 done
17014 if test "${ac_cv_search_gethostent+set}" = set; then :
17016 else
17017 ac_cv_search_gethostent=no
17019 rm conftest.$ac_ext
17020 LIBS=$ac_func_search_save_LIBS
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
17023 $as_echo "$ac_cv_search_gethostent" >&6; }
17024 ac_res=$ac_cv_search_gethostent
17025 if test "$ac_res" != no; then :
17026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17032 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
17033 if test "x$ac_cv_func_openlog" = x""yes; then :
17035 else
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
17037 $as_echo_n "checking for library containing openlog... " >&6; }
17038 if test "${ac_cv_search_openlog+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 ac_func_search_save_LIBS=$LIBS
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char openlog ();
17053 main ()
17055 return openlog ();
17057 return 0;
17059 _ACEOF
17060 for ac_lib in '' gen; do
17061 if test -z "$ac_lib"; then
17062 ac_res="none required"
17063 else
17064 ac_res=-l$ac_lib
17065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17067 if ac_fn_c_try_link "$LINENO"; then :
17068 ac_cv_search_openlog=$ac_res
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext
17072 if test "${ac_cv_search_openlog+set}" = set; then :
17073 break
17075 done
17076 if test "${ac_cv_search_openlog+set}" = set; then :
17078 else
17079 ac_cv_search_openlog=no
17081 rm conftest.$ac_ext
17082 LIBS=$ac_func_search_save_LIBS
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
17085 $as_echo "$ac_cv_search_openlog" >&6; }
17086 ac_res=$ac_cv_search_openlog
17087 if test "$ac_res" != no; then :
17088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17090 else
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
17092 $as_echo_n "checking for library containing openlog... " >&6; }
17093 if test "${ac_cv_search_openlog+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 ac_func_search_save_LIBS=$LIBS
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 char openlog ();
17108 main ()
17110 return openlog ();
17112 return 0;
17114 _ACEOF
17115 for ac_lib in '' syslog; do
17116 if test -z "$ac_lib"; then
17117 ac_res="none required"
17118 else
17119 ac_res=-l$ac_lib
17120 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
17122 if ac_fn_c_try_link "$LINENO"; then :
17123 ac_cv_search_openlog=$ac_res
17125 rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext
17127 if test "${ac_cv_search_openlog+set}" = set; then :
17128 break
17130 done
17131 if test "${ac_cv_search_openlog+set}" = set; then :
17133 else
17134 ac_cv_search_openlog=no
17136 rm conftest.$ac_ext
17137 LIBS=$ac_func_search_save_LIBS
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
17140 $as_echo "$ac_cv_search_openlog" >&6; }
17141 ac_res=$ac_cv_search_openlog
17142 if test "$ac_res" != no; then :
17143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
17152 $as_echo_n "checking for library containing MD5Init... " >&6; }
17153 if test "${ac_cv_search_MD5Init+set}" = set; then :
17154 $as_echo_n "(cached) " >&6
17155 else
17156 ac_func_search_save_LIBS=$LIBS
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char MD5Init ();
17168 main ()
17170 return MD5Init ();
17172 return 0;
17174 _ACEOF
17175 for ac_lib in '' md5 md; do
17176 if test -z "$ac_lib"; then
17177 ac_res="none required"
17178 else
17179 ac_res=-l$ac_lib
17180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17182 if ac_fn_c_try_link "$LINENO"; then :
17183 ac_cv_search_MD5Init=$ac_res
17185 rm -f core conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext
17187 if test "${ac_cv_search_MD5Init+set}" = set; then :
17188 break
17190 done
17191 if test "${ac_cv_search_MD5Init+set}" = set; then :
17193 else
17194 ac_cv_search_MD5Init=no
17196 rm conftest.$ac_ext
17197 LIBS=$ac_func_search_save_LIBS
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
17200 $as_echo "$ac_cv_search_MD5Init" >&6; }
17201 ac_res=$ac_cv_search_MD5Init
17202 if test "$ac_res" != no; then :
17203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17207 for ac_func in MD5Init
17208 do :
17209 ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
17210 if test "x$ac_cv_func_MD5Init" = x""yes; then :
17211 cat >>confdefs.h <<_ACEOF
17212 #define HAVE_MD5INIT 1
17213 _ACEOF
17216 done
17219 # following block becomes on 4.2.5: NTP_LINEEDITLIBS
17220 for ac_header in readline/history.h readline/readline.h
17221 do :
17222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17224 eval as_val=\$$as_ac_Header
17225 if test "x$as_val" = x""yes; then :
17226 cat >>confdefs.h <<_ACEOF
17227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17228 _ACEOF
17232 done
17234 case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
17235 *no*) ;;
17236 *) save_LIBS=$LIBS
17237 LIBS=
17238 # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
17239 unset ac_cv_lib_readline_readline
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17241 $as_echo_n "checking for readline in -lreadline... " >&6; }
17242 if test "${ac_cv_lib_readline_readline+set}" = set; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17245 ac_check_lib_save_LIBS=$LIBS
17246 LIBS="-lreadline $LIBS"
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17250 /* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 char readline ();
17258 main ()
17260 return readline ();
17262 return 0;
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 ac_cv_lib_readline_readline=yes
17267 else
17268 ac_cv_lib_readline_readline=no
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17275 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17276 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
17277 cat >>confdefs.h <<_ACEOF
17278 #define HAVE_LIBREADLINE 1
17279 _ACEOF
17281 LIBS="-lreadline $LIBS"
17283 else
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying again with -lcurses" >&5
17285 $as_echo "$as_me: Trying again with -lcurses" >&6;}
17286 unset ac_cv_lib_readline_readline
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17288 $as_echo_n "checking for readline in -lreadline... " >&6; }
17289 if test "${ac_cv_lib_readline_readline+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 ac_check_lib_save_LIBS=$LIBS
17293 LIBS="-lreadline -lcurses $LIBS"
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17297 /* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 char readline ();
17305 main ()
17307 return readline ();
17309 return 0;
17311 _ACEOF
17312 if ac_fn_c_try_link "$LINENO"; then :
17313 ac_cv_lib_readline_readline=yes
17314 else
17315 ac_cv_lib_readline_readline=no
17317 rm -f core conftest.err conftest.$ac_objext \
17318 conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_check_lib_save_LIBS
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17322 $as_echo "$ac_cv_lib_readline_readline" >&6; }
17323 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
17324 LIBS="-lreadline -lcurses $LIBS"
17325 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17328 $as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h
17330 else
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
17332 $as_echo_n "checking for readline in -ledit... " >&6; }
17333 if test "${ac_cv_lib_edit_readline+set}" = set; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 ac_check_lib_save_LIBS=$LIBS
17337 LIBS="-ledit -lcurses $LIBS"
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char readline ();
17349 main ()
17351 return readline ();
17353 return 0;
17355 _ACEOF
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 ac_cv_lib_edit_readline=yes
17358 else
17359 ac_cv_lib_edit_readline=no
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363 LIBS=$ac_check_lib_save_LIBS
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
17366 $as_echo "$ac_cv_lib_edit_readline" >&6; }
17367 if test "x$ac_cv_lib_edit_readline" = x""yes; then :
17368 LIBS="-ledit -lcurses"
17370 $as_echo "#define HAVE_LIBEDIT /**/" >>confdefs.h
17373 $as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h
17383 READLINE_LIBS=$LIBS
17385 LIBS=$save_LIBS
17387 esac
17390 case "$host" in
17391 *-*-*linux*) ;;
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
17394 $as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
17395 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then :
17396 $as_echo_n "(cached) " >&6
17397 else
17398 ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lrt $LIBS"
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char sched_setscheduler ();
17411 main ()
17413 return sched_setscheduler ();
17415 return 0;
17417 _ACEOF
17418 if ac_fn_c_try_link "$LINENO"; then :
17419 ac_cv_lib_rt_sched_setscheduler=yes
17420 else
17421 ac_cv_lib_rt_sched_setscheduler=no
17423 rm -f core conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17425 LIBS=$ac_check_lib_save_LIBS
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
17428 $as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
17429 if test "x$ac_cv_lib_rt_sched_setscheduler" = x""yes; then :
17430 cat >>confdefs.h <<_ACEOF
17431 #define HAVE_LIBRT 1
17432 _ACEOF
17434 LIBS="-lrt $LIBS"
17436 else
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
17438 $as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
17439 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then :
17440 $as_echo_n "(cached) " >&6
17441 else
17442 ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-lposix4 $LIBS"
17444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17450 #ifdef __cplusplus
17451 extern "C"
17452 #endif
17453 char sched_setscheduler ();
17455 main ()
17457 return sched_setscheduler ();
17459 return 0;
17461 _ACEOF
17462 if ac_fn_c_try_link "$LINENO"; then :
17463 ac_cv_lib_posix4_sched_setscheduler=yes
17464 else
17465 ac_cv_lib_posix4_sched_setscheduler=no
17467 rm -f core conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
17472 $as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
17473 if test "x$ac_cv_lib_posix4_sched_setscheduler" = x""yes; then :
17474 cat >>confdefs.h <<_ACEOF
17475 #define HAVE_LIBPOSIX4 1
17476 _ACEOF
17478 LIBS="-lposix4 $LIBS"
17485 esac
17487 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
17488 if test "x$ac_cv_func_setsockopt" = x""yes; then :
17490 else
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
17492 $as_echo_n "checking for library containing setsockopt... " >&6; }
17493 if test "${ac_cv_search_setsockopt+set}" = set; then :
17494 $as_echo_n "(cached) " >&6
17495 else
17496 ac_func_search_save_LIBS=$LIBS
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17500 /* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17503 #ifdef __cplusplus
17504 extern "C"
17505 #endif
17506 char setsockopt ();
17508 main ()
17510 return setsockopt ();
17512 return 0;
17514 _ACEOF
17515 for ac_lib in '' socket xnet; do
17516 if test -z "$ac_lib"; then
17517 ac_res="none required"
17518 else
17519 ac_res=-l$ac_lib
17520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17522 if ac_fn_c_try_link "$LINENO"; then :
17523 ac_cv_search_setsockopt=$ac_res
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext
17527 if test "${ac_cv_search_setsockopt+set}" = set; then :
17528 break
17530 done
17531 if test "${ac_cv_search_setsockopt+set}" = set; then :
17533 else
17534 ac_cv_search_setsockopt=no
17536 rm conftest.$ac_ext
17537 LIBS=$ac_func_search_save_LIBS
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
17540 $as_echo "$ac_cv_search_setsockopt" >&6; }
17541 ac_res=$ac_cv_search_setsockopt
17542 if test "$ac_res" != no; then :
17543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17551 $as_echo_n "checking for ANSI C header files... " >&6; }
17552 if test "${ac_cv_header_stdc+set}" = set; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 #include <stdlib.h>
17558 #include <stdarg.h>
17559 #include <string.h>
17560 #include <float.h>
17563 main ()
17567 return 0;
17569 _ACEOF
17570 if ac_fn_c_try_compile "$LINENO"; then :
17571 ac_cv_header_stdc=yes
17572 else
17573 ac_cv_header_stdc=no
17575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17577 if test $ac_cv_header_stdc = yes; then
17578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #include <string.h>
17583 _ACEOF
17584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17585 $EGREP "memchr" >/dev/null 2>&1; then :
17587 else
17588 ac_cv_header_stdc=no
17590 rm -f conftest*
17594 if test $ac_cv_header_stdc = yes; then
17595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 #include <stdlib.h>
17600 _ACEOF
17601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17602 $EGREP "free" >/dev/null 2>&1; then :
17604 else
17605 ac_cv_header_stdc=no
17607 rm -f conftest*
17611 if test $ac_cv_header_stdc = yes; then
17612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17613 if test "$cross_compiling" = yes; then :
17615 else
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17618 #include <ctype.h>
17619 #include <stdlib.h>
17620 #if ((' ' & 0x0FF) == 0x020)
17621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17623 #else
17624 # define ISLOWER(c) \
17625 (('a' <= (c) && (c) <= 'i') \
17626 || ('j' <= (c) && (c) <= 'r') \
17627 || ('s' <= (c) && (c) <= 'z'))
17628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17629 #endif
17631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17633 main ()
17635 int i;
17636 for (i = 0; i < 256; i++)
17637 if (XOR (islower (i), ISLOWER (i))
17638 || toupper (i) != TOUPPER (i))
17639 return 2;
17640 return 0;
17642 _ACEOF
17643 if ac_fn_c_try_run "$LINENO"; then :
17645 else
17646 ac_cv_header_stdc=no
17648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17649 conftest.$ac_objext conftest.beam conftest.$ac_ext
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17655 $as_echo "$ac_cv_header_stdc" >&6; }
17656 if test $ac_cv_header_stdc = yes; then
17658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17662 for ac_header in bstring.h
17663 do :
17664 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
17665 if test "x$ac_cv_header_bstring_h" = x""yes; then :
17666 cat >>confdefs.h <<_ACEOF
17667 #define HAVE_BSTRING_H 1
17668 _ACEOF
17672 done
17674 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
17675 if test "x$ac_cv_header_dns_sd_h" = x""yes; then :
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
17677 $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
17678 if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17680 else
17681 ac_check_lib_save_LIBS=$LIBS
17682 LIBS="-ldns_sd $LIBS"
17683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 char DNSServiceRegister ();
17694 main ()
17696 return DNSServiceRegister ();
17698 return 0;
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"; then :
17702 ac_cv_lib_dns_sd_DNSServiceRegister=yes
17703 else
17704 ac_cv_lib_dns_sd_DNSServiceRegister=no
17706 rm -f core conftest.err conftest.$ac_objext \
17707 conftest$ac_exeext conftest.$ac_ext
17708 LIBS=$ac_check_lib_save_LIBS
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
17711 $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
17712 if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x""yes; then :
17714 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
17721 case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
17722 yes) LIBS="-ldns_sd $LIBS" ;;
17723 esac
17724 for ac_header in errno.h fcntl.h ieeefp.h math.h
17725 do :
17726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17727 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17728 eval as_val=\$$as_ac_Header
17729 if test "x$as_val" = x""yes; then :
17730 cat >>confdefs.h <<_ACEOF
17731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17732 _ACEOF
17736 done
17739 # HMS: Lame, but fast.
17740 if test -f /etc/redhat-release
17741 then
17743 else
17744 for ac_header in md5.h
17745 do :
17746 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H
17747 #include <sys/types.h>
17748 #endif
17751 if test "x$ac_cv_header_md5_h" = x""yes; then :
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_MD5_H 1
17754 _ACEOF
17758 done
17761 for ac_header in memory.h netdb.h poll.h
17762 do :
17763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17765 eval as_val=\$$as_ac_Header
17766 if test "x$as_val" = x""yes; then :
17767 cat >>confdefs.h <<_ACEOF
17768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17769 _ACEOF
17773 done
17775 for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
17776 do :
17777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17778 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17779 eval as_val=\$$as_ac_Header
17780 if test "x$as_val" = x""yes; then :
17781 cat >>confdefs.h <<_ACEOF
17782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17783 _ACEOF
17787 done
17789 for ac_header in termios.h timepps.h timex.h unistd.h
17790 do :
17791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17793 eval as_val=\$$as_ac_Header
17794 if test "x$as_val" = x""yes; then :
17795 cat >>confdefs.h <<_ACEOF
17796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17797 _ACEOF
17801 done
17803 case "$host" in
17804 *-*-aix*)
17805 for ac_header in utmpx.h
17806 do :
17807 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
17808 if test "x$ac_cv_header_utmpx_h" = x""yes; then :
17809 cat >>confdefs.h <<_ACEOF
17810 #define HAVE_UTMPX_H 1
17811 _ACEOF
17815 done
17817 case "$ac_cv_header_utmpx_h" in
17818 yes) ;;
17819 *) for ac_header in utmp.h
17820 do :
17821 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
17822 if test "x$ac_cv_header_utmp_h" = x""yes; then :
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_UTMP_H 1
17825 _ACEOF
17829 done
17831 esac
17833 *) for ac_header in utmp.h utmpx.h
17834 do :
17835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17836 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17837 eval as_val=\$$as_ac_Header
17838 if test "x$as_val" = x""yes; then :
17839 cat >>confdefs.h <<_ACEOF
17840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17841 _ACEOF
17845 done
17847 esac
17848 for ac_header in arpa/nameser.h
17849 do :
17850 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
17851 if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
17852 cat >>confdefs.h <<_ACEOF
17853 #define HAVE_ARPA_NAMESER_H 1
17854 _ACEOF
17858 done
17860 for ac_header in sys/socket.h
17861 do :
17862 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17863 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
17864 cat >>confdefs.h <<_ACEOF
17865 #define HAVE_SYS_SOCKET_H 1
17866 _ACEOF
17870 done
17872 for ac_header in net/if.h
17873 do :
17874 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H
17875 #include <sys/socket.h>
17876 #endif
17879 if test "x$ac_cv_header_net_if_h" = x""yes; then :
17880 cat >>confdefs.h <<_ACEOF
17881 #define HAVE_NET_IF_H 1
17882 _ACEOF
17886 done
17888 for ac_header in net/if6.h
17889 do :
17890 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
17891 if test "x$ac_cv_header_net_if6_h" = x""yes; then :
17892 cat >>confdefs.h <<_ACEOF
17893 #define HAVE_NET_IF6_H 1
17894 _ACEOF
17898 done
17900 for ac_header in net/route.h
17901 do :
17902 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
17903 #include <sys/types.h>
17904 #include <sys/socket.h>
17905 #include <net/if.h>
17908 if test "x$ac_cv_header_net_route_h" = x""yes; then :
17909 cat >>confdefs.h <<_ACEOF
17910 #define HAVE_NET_ROUTE_H 1
17911 _ACEOF
17915 done
17917 for ac_header in netinet/in_system.h netinet/in_systm.h
17918 do :
17919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17921 eval as_val=\$$as_ac_Header
17922 if test "x$as_val" = x""yes; then :
17923 cat >>confdefs.h <<_ACEOF
17924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17925 _ACEOF
17929 done
17931 for ac_header in netinet/in.h
17932 do :
17933 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17934 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_NETINET_IN_H 1
17937 _ACEOF
17941 done
17943 for ac_header in netinet/ip.h
17944 do :
17945 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H
17946 #include <sys/types.h>
17947 #endif
17948 #if HAVE_NETINET_IN_H
17949 #include <netinet/in.h>
17950 #endif
17951 #if HAVE_NETINET_IN_SYSTM_H
17952 #include <netinet/in_systm.h>
17953 #endif
17956 if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
17957 cat >>confdefs.h <<_ACEOF
17958 #define HAVE_NETINET_IP_H 1
17959 _ACEOF
17963 done
17966 # Check for IPTOS_PREC
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
17968 $as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
17969 if test "${ac_cv_ip_tos+set}" = set; then :
17970 $as_echo_n "(cached) " >&6
17971 else
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17976 #if HAVE_SYS_TYPES_H
17977 #include <sys/types.h>
17978 #endif
17979 #if HAVE_NETINET_IP_H
17980 #include <netinet/in.h>
17981 #include <netinet/ip.h>
17982 #endif
17983 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
17985 #endif
17987 _ACEOF
17988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17989 $EGREP "yes" >/dev/null 2>&1; then :
17990 ac_cv_ip_tos=yes
17991 else
17992 ac_cv_ip_tos=no
17995 rm -f conftest*
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5
18001 $as_echo "$ac_cv_ip_tos" >&6; }
18003 case "$ac_cv_ip_tos" in
18004 yes)
18006 $as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h
18008 esac
18010 for ac_header in netinfo/ni.h
18011 do :
18012 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
18013 if test "x$ac_cv_header_netinfo_ni_h" = x""yes; then :
18014 cat >>confdefs.h <<_ACEOF
18015 #define HAVE_NETINFO_NI_H 1
18016 _ACEOF
18018 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
18022 done
18024 for ac_header in sun/audioio.h sys/audioio.h
18025 do :
18026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18028 eval as_val=\$$as_ac_Header
18029 if test "x$as_val" = x""yes; then :
18030 cat >>confdefs.h <<_ACEOF
18031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18032 _ACEOF
18036 done
18038 for ac_header in sys/clkdefs.h sys/file.h
18039 do :
18040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18042 eval as_val=\$$as_ac_Header
18043 if test "x$as_val" = x""yes; then :
18044 cat >>confdefs.h <<_ACEOF
18045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18046 _ACEOF
18050 done
18052 case "$host" in
18053 *-*-sunos4*) ;;
18054 *) for ac_header in sys/ioctl.h
18055 do :
18056 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
18057 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_SYS_IOCTL_H 1
18060 _ACEOF
18064 done
18067 esac
18068 for ac_header in sys/ipc.h
18069 do :
18070 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
18071 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
18072 cat >>confdefs.h <<_ACEOF
18073 #define HAVE_SYS_IPC_H 1
18074 _ACEOF
18078 done
18080 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
18081 do :
18082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18083 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18084 eval as_val=\$$as_ac_Header
18085 if test "x$as_val" = x""yes; then :
18086 cat >>confdefs.h <<_ACEOF
18087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18088 _ACEOF
18092 done
18094 # HMS: Check sys/proc.h and sys/resource.h after some others
18095 for ac_header in sys/ppstime.h
18096 do :
18097 ac_fn_c_check_header_mongrel "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
18098 if test "x$ac_cv_header_sys_ppstime_h" = x""yes; then :
18099 cat >>confdefs.h <<_ACEOF
18100 #define HAVE_SYS_PPSTIME_H 1
18101 _ACEOF
18105 done
18107 case "$ac_cv_header_sched_h" in
18108 yes) ;;
18109 *) for ac_header in sys/sched.h
18110 do :
18111 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
18112 if test "x$ac_cv_header_sys_sched_h" = x""yes; then :
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_SYS_SCHED_H 1
18115 _ACEOF
18119 done
18121 esac
18122 case "$host" in
18123 *-*-sco*)
18124 for ac_header in sys/sio.h
18125 do :
18126 ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
18127 if test "x$ac_cv_header_sys_sio_h" = x""yes; then :
18128 cat >>confdefs.h <<_ACEOF
18129 #define HAVE_SYS_SIO_H 1
18130 _ACEOF
18134 done
18137 esac
18138 # HMS: Check sys/shm.h after some others
18139 for ac_header in sys/select.h sys/signal.h sys/sockio.h
18140 do :
18141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18142 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18143 eval as_val=\$$as_ac_Header
18144 if test "x$as_val" = x""yes; then :
18145 cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18147 _ACEOF
18151 done
18153 # HMS: Checked sys/socket.h earlier
18154 case "$host" in
18155 *-*-netbsd*) ;;
18156 *) for ac_header in machine/soundcard.h sys/soundcard.h
18157 do :
18158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18159 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18160 eval as_val=\$$as_ac_Header
18161 if test "x$as_val" = x""yes; then :
18162 cat >>confdefs.h <<_ACEOF
18163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18164 _ACEOF
18168 done
18171 esac
18172 for ac_header in sys/stat.h sys/stream.h
18173 do :
18174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18175 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18176 eval as_val=\$$as_ac_Header
18177 if test "x$as_val" = x""yes; then :
18178 cat >>confdefs.h <<_ACEOF
18179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18180 _ACEOF
18184 done
18186 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
18187 do :
18188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18190 eval as_val=\$$as_ac_Header
18191 if test "x$as_val" = x""yes; then :
18192 cat >>confdefs.h <<_ACEOF
18193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18194 _ACEOF
18198 done
18200 for ac_header in sys/termios.h sys/time.h sys/signal.h
18201 do :
18202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18203 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18204 eval as_val=\$$as_ac_Header
18205 if test "x$as_val" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18208 _ACEOF
18212 done
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18216 #if HAVE_SYS_TIME_H
18217 # include <sys/time.h>
18218 #endif
18219 #if HAVE_ERRNO_H
18220 # include <errno.h>
18221 #endif
18222 #include <sys/timepps.h>
18223 #ifdef PPS_API_VERS_1
18225 #endif
18227 _ACEOF
18228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18229 $EGREP "yes" >/dev/null 2>&1; then :
18230 for ac_header in sys/timepps.h
18231 do :
18232 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H
18233 # include <sys/time.h>
18234 #endif
18235 #if HAVE_ERRNO_H
18236 # include <errno.h>
18237 #endif
18240 if test "x$ac_cv_header_sys_timepps_h" = x""yes; then :
18241 cat >>confdefs.h <<_ACEOF
18242 #define HAVE_SYS_TIMEPPS_H 1
18243 _ACEOF
18247 done
18251 rm -f conftest*
18253 for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
18254 do :
18255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18257 eval as_val=\$$as_ac_Header
18258 if test "x$as_val" = x""yes; then :
18259 cat >>confdefs.h <<_ACEOF
18260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18261 _ACEOF
18265 done
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18268 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18269 if test "${ac_cv_header_time+set}" = set; then :
18270 $as_echo_n "(cached) " >&6
18271 else
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <sys/types.h>
18275 #include <sys/time.h>
18276 #include <time.h>
18279 main ()
18281 if ((struct tm *) 0)
18282 return 0;
18284 return 0;
18286 _ACEOF
18287 if ac_fn_c_try_compile "$LINENO"; then :
18288 ac_cv_header_time=yes
18289 else
18290 ac_cv_header_time=no
18292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18295 $as_echo "$ac_cv_header_time" >&6; }
18296 if test $ac_cv_header_time = yes; then
18298 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18302 case "$host" in
18303 *-convex-*)
18304 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
18305 do :
18306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18307 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18308 eval as_val=\$$as_ac_Header
18309 if test "x$as_val" = x""yes; then :
18310 cat >>confdefs.h <<_ACEOF
18311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18312 _ACEOF
18316 done
18319 *-*-bsdi*)
18320 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
18321 do :
18322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18323 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18324 eval as_val=\$$as_ac_Header
18325 if test "x$as_val" = x""yes; then :
18326 cat >>confdefs.h <<_ACEOF
18327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18328 _ACEOF
18332 done
18335 esac
18337 case "$host" in
18338 *-*-*linux*)
18339 for ac_func in __adjtimex __ntp_gettime
18340 do :
18341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18343 eval as_val=\$$as_ac_var
18344 if test "x$as_val" = x""yes; then :
18345 cat >>confdefs.h <<_ACEOF
18346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18347 _ACEOF
18350 done
18353 esac
18354 case "$ac_cv_func___adjtimex" in
18355 yes) ;;
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
18358 $as_echo_n "checking for nlist in -lelf... " >&6; }
18359 if test "${ac_cv_lib_elf_nlist+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lelf $LIBS"
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char nlist ();
18375 main ()
18377 return nlist ();
18379 return 0;
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 ac_cv_lib_elf_nlist=yes
18384 else
18385 ac_cv_lib_elf_nlist=no
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
18392 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
18393 if test "x$ac_cv_lib_elf_nlist" = x""yes; then :
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_LIBELF 1
18396 _ACEOF
18398 LIBS="-lelf $LIBS"
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
18402 $as_echo_n "checking for main in -lkvm... " >&6; }
18403 if test "${ac_cv_lib_kvm_main+set}" = set; then :
18404 $as_echo_n "(cached) " >&6
18405 else
18406 ac_check_lib_save_LIBS=$LIBS
18407 LIBS="-lkvm $LIBS"
18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18413 main ()
18415 return main ();
18417 return 0;
18419 _ACEOF
18420 if ac_fn_c_try_link "$LINENO"; then :
18421 ac_cv_lib_kvm_main=yes
18422 else
18423 ac_cv_lib_kvm_main=no
18425 rm -f core conftest.err conftest.$ac_objext \
18426 conftest$ac_exeext conftest.$ac_ext
18427 LIBS=$ac_check_lib_save_LIBS
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
18430 $as_echo "$ac_cv_lib_kvm_main" >&6; }
18431 if test "x$ac_cv_lib_kvm_main" = x""yes; then :
18432 cat >>confdefs.h <<_ACEOF
18433 #define HAVE_LIBKVM 1
18434 _ACEOF
18436 LIBS="-lkvm $LIBS"
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
18440 $as_echo_n "checking for nlist in -lld... " >&6; }
18441 if test "${ac_cv_lib_ld_nlist+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 ac_check_lib_save_LIBS=$LIBS
18445 LIBS="-lld $LIBS"
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18452 #ifdef __cplusplus
18453 extern "C"
18454 #endif
18455 char nlist ();
18457 main ()
18459 return nlist ();
18461 return 0;
18463 _ACEOF
18464 if ac_fn_c_try_link "$LINENO"; then :
18465 ac_cv_lib_ld_nlist=yes
18466 else
18467 ac_cv_lib_ld_nlist=no
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
18474 $as_echo "$ac_cv_lib_ld_nlist" >&6; }
18475 if test "x$ac_cv_lib_ld_nlist" = x""yes; then :
18476 cat >>confdefs.h <<_ACEOF
18477 #define HAVE_LIBLD 1
18478 _ACEOF
18480 LIBS="-lld $LIBS"
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
18485 $as_echo_n "checking for nlist in -lmld... " >&6; }
18486 if test "${ac_cv_lib_mld_nlist+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489 ac_check_lib_save_LIBS=$LIBS
18490 LIBS="-lmld $LIBS"
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18494 /* Override any GCC internal prototype to avoid an error.
18495 Use char because int might match the return type of a GCC
18496 builtin and then its argument prototype would still apply. */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 char nlist ();
18502 main ()
18504 return nlist ();
18506 return 0;
18508 _ACEOF
18509 if ac_fn_c_try_link "$LINENO"; then :
18510 ac_cv_lib_mld_nlist=yes
18511 else
18512 ac_cv_lib_mld_nlist=no
18514 rm -f core conftest.err conftest.$ac_objext \
18515 conftest$ac_exeext conftest.$ac_ext
18516 LIBS=$ac_check_lib_save_LIBS
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
18519 $as_echo "$ac_cv_lib_mld_nlist" >&6; }
18520 if test "x$ac_cv_lib_mld_nlist" = x""yes; then :
18521 cat >>confdefs.h <<_ACEOF
18522 #define HAVE_LIBMLD 1
18523 _ACEOF
18525 LIBS="-lmld $LIBS"
18529 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18530 if test "x$ac_cv_header_nlist_h" = x""yes; then :
18532 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
18535 $as_echo_n "checking for n_un in struct nlist... " >&6; }
18536 if test "${ac_cv_struct_nlist_n_un+set}" = set; then :
18537 $as_echo_n "(cached) " >&6
18538 else
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18541 #include <nlist.h>
18543 main ()
18545 struct nlist n; n.n_un.n_name = 0;
18547 return 0;
18549 _ACEOF
18550 if ac_fn_c_try_compile "$LINENO"; then :
18551 ac_cv_struct_nlist_n_un=yes
18552 else
18553 ac_cv_struct_nlist_n_un=no
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5
18558 $as_echo "$ac_cv_struct_nlist_n_un" >&6; }
18559 if test $ac_cv_struct_nlist_n_un = yes; then
18561 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
18568 esac
18571 for ac_header in sys/proc.h
18572 do :
18573 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H
18574 # include <sys/types.h>
18575 #endif
18576 #if HAVE_SYS_TIME_H
18577 # include <sys/time.h>
18578 #endif
18581 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_SYS_PROC_H 1
18584 _ACEOF
18588 done
18591 for ac_header in sys/resource.h
18592 do :
18593 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H
18594 # include <sys/time.h>
18595 #endif
18598 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
18599 cat >>confdefs.h <<_ACEOF
18600 #define HAVE_SYS_RESOURCE_H 1
18601 _ACEOF
18605 done
18608 for ac_header in sys/shm.h
18609 do :
18610 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H
18611 # include <sys/types.h>
18612 #endif
18613 #if HAVE_SYS_IPC_H
18614 # include <sys/ipc.h>
18615 #endif
18618 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
18619 cat >>confdefs.h <<_ACEOF
18620 #define HAVE_SYS_SHM_H 1
18621 _ACEOF
18625 done
18628 for ac_header in sys/timex.h
18629 do :
18630 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
18631 # include <sys/time.h>
18632 #endif
18635 if test "x$ac_cv_header_sys_timex_h" = x""yes; then :
18636 cat >>confdefs.h <<_ACEOF
18637 #define HAVE_SYS_TIMEX_H 1
18638 _ACEOF
18642 done
18645 for ac_header in resolv.h
18646 do :
18647 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
18648 #include <sys/types.h>
18649 #endif
18650 #if HAVE_NETINET_IN_H
18651 #include <netinet/in.h>
18652 #endif
18653 #if HAVE_ARPA_NAMESER_H
18654 #include <arpa/nameser.h>
18655 #endif
18658 if test "x$ac_cv_header_resolv_h" = x""yes; then :
18659 cat >>confdefs.h <<_ACEOF
18660 #define HAVE_RESOLV_H 1
18661 _ACEOF
18665 done
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
18669 $as_echo_n "checking for basic volatile support... " >&6; }
18670 if test "${ac_cv_c_volatile+set}" = set; then :
18671 $as_echo_n "(cached) " >&6
18672 else
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18677 main ()
18680 volatile int x;
18682 return 0;
18684 _ACEOF
18685 if ac_fn_c_try_compile "$LINENO"; then :
18686 ac_cv_c_volatile=yes
18687 else
18688 ac_cv_c_volatile=no
18690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
18694 $as_echo "$ac_cv_c_volatile" >&6; }
18695 case "$ac_cv_c_volatile" in
18696 yes)
18699 $as_echo "#define volatile /**/" >>confdefs.h
18702 esac
18705 # following block goes away in 4.2.5
18707 # AM_C_PROTOTYPES gives us ansi2knr
18708 case "$build" in
18709 *-*-solaris2*)
18710 # Assume that solaris2 is Ansi C...
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
18714 $as_echo_n "checking for function prototypes... " >&6; }
18715 if test "$ac_cv_prog_cc_c89" != no; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18717 $as_echo "yes" >&6; }
18719 $as_echo "#define PROTOTYPES 1" >>confdefs.h
18722 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
18724 else
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18726 $as_echo "no" >&6; }
18730 if test "$ac_cv_prog_cc_stdc" != no; then
18731 U= ANSI2KNR=
18732 else
18733 U=_ ANSI2KNR=./ansi2knr
18735 # Ensure some checks needed by ansi2knr itself.
18737 for ac_header in string.h
18738 do :
18739 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
18740 if test "x$ac_cv_header_string_h" = x""yes; then :
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE_STRING_H 1
18743 _ACEOF
18747 done
18751 esac
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler permits function prototypes" >&5
18753 $as_echo_n "checking if C compiler permits function prototypes... " >&6; }
18754 if test "${ac_cv_have_prototypes+set}" = set; then :
18755 $as_echo_n "(cached) " >&6
18756 else
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 extern int foo (short);
18761 int foo(short i) { return i; }
18763 main ()
18766 int i;
18768 return 0;
18770 _ACEOF
18771 if ac_fn_c_try_compile "$LINENO"; then :
18772 ac_cv_have_prototypes=yes
18773 else
18774 ac_cv_have_prototypes=no
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_prototypes" >&5
18780 $as_echo "$ac_cv_have_prototypes" >&6; }
18781 if test "$ac_cv_have_prototypes" = yes; then
18783 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
18787 # end block
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18792 if test "${ac_cv_c_const+set}" = set; then :
18793 $as_echo_n "(cached) " >&6
18794 else
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18799 main ()
18801 /* FIXME: Include the comments suggested by Paul. */
18802 #ifndef __cplusplus
18803 /* Ultrix mips cc rejects this. */
18804 typedef int charset[2];
18805 const charset cs;
18806 /* SunOS 4.1.1 cc rejects this. */
18807 char const *const *pcpcc;
18808 char **ppc;
18809 /* NEC SVR4.0.2 mips cc rejects this. */
18810 struct point {int x, y;};
18811 static struct point const zero = {0,0};
18812 /* AIX XL C 1.02.0.0 rejects this.
18813 It does not let you subtract one const X* pointer from another in
18814 an arm of an if-expression whose if-part is not a constant
18815 expression */
18816 const char *g = "string";
18817 pcpcc = &g + (g ? g-g : 0);
18818 /* HPUX 7.0 cc rejects these. */
18819 ++pcpcc;
18820 ppc = (char**) pcpcc;
18821 pcpcc = (char const *const *) ppc;
18822 { /* SCO 3.2v4 cc rejects this. */
18823 char *t;
18824 char const *s = 0 ? (char *) 0 : (char const *) 0;
18826 *t++ = 0;
18827 if (s) return 0;
18829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18830 int x[] = {25, 17};
18831 const int *foo = &x[0];
18832 ++foo;
18834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18835 typedef const int *iptr;
18836 iptr p = 0;
18837 ++p;
18839 { /* AIX XL C 1.02.0.0 rejects this saying
18840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18841 struct s { int j; const int *ap[3]; };
18842 struct s *b; b->j = 5;
18844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18845 const int foo = 10;
18846 if (!foo) return 0;
18848 return !cs[0] && !zero.x;
18849 #endif
18852 return 0;
18854 _ACEOF
18855 if ac_fn_c_try_compile "$LINENO"; then :
18856 ac_cv_c_const=yes
18857 else
18858 ac_cv_c_const=no
18860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18863 $as_echo "$ac_cv_c_const" >&6; }
18864 if test $ac_cv_c_const = no; then
18866 $as_echo "#define const /**/" >>confdefs.h
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18871 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18872 if test "${ac_cv_c_bigendian+set}" = set; then :
18873 $as_echo_n "(cached) " >&6
18874 else
18875 ac_cv_c_bigendian=unknown
18876 # See if we're dealing with a universal compiler.
18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h. */
18879 #ifndef __APPLE_CC__
18880 not a universal capable compiler
18881 #endif
18882 typedef int dummy;
18884 _ACEOF
18885 if ac_fn_c_try_compile "$LINENO"; then :
18887 # Check for potential -arch flags. It is not universal unless
18888 # there are at least two -arch flags with different values.
18889 ac_arch=
18890 ac_prev=
18891 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18892 if test -n "$ac_prev"; then
18893 case $ac_word in
18894 i?86 | x86_64 | ppc | ppc64)
18895 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18896 ac_arch=$ac_word
18897 else
18898 ac_cv_c_bigendian=universal
18899 break
18902 esac
18903 ac_prev=
18904 elif test "x$ac_word" = "x-arch"; then
18905 ac_prev=arch
18907 done
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 if test $ac_cv_c_bigendian = unknown; then
18911 # See if sys/param.h defines the BYTE_ORDER macro.
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18914 #include <sys/types.h>
18915 #include <sys/param.h>
18918 main ()
18920 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18922 && LITTLE_ENDIAN)
18923 bogus endian macros
18924 #endif
18927 return 0;
18929 _ACEOF
18930 if ac_fn_c_try_compile "$LINENO"; then :
18931 # It does; now see whether it defined to BIG_ENDIAN or not.
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 #include <sys/types.h>
18935 #include <sys/param.h>
18938 main ()
18940 #if BYTE_ORDER != BIG_ENDIAN
18941 not big endian
18942 #endif
18945 return 0;
18947 _ACEOF
18948 if ac_fn_c_try_compile "$LINENO"; then :
18949 ac_cv_c_bigendian=yes
18950 else
18951 ac_cv_c_bigendian=no
18953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18957 if test $ac_cv_c_bigendian = unknown; then
18958 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 #include <limits.h>
18964 main ()
18966 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18967 bogus endian macros
18968 #endif
18971 return 0;
18973 _ACEOF
18974 if ac_fn_c_try_compile "$LINENO"; then :
18975 # It does; now see whether it defined to _BIG_ENDIAN or not.
18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18978 #include <limits.h>
18981 main ()
18983 #ifndef _BIG_ENDIAN
18984 not big endian
18985 #endif
18988 return 0;
18990 _ACEOF
18991 if ac_fn_c_try_compile "$LINENO"; then :
18992 ac_cv_c_bigendian=yes
18993 else
18994 ac_cv_c_bigendian=no
18996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 if test $ac_cv_c_bigendian = unknown; then
19001 # Compile a test program.
19002 if test "$cross_compiling" = yes; then :
19003 # Try to guess by grepping values from an object file.
19004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h. */
19006 short int ascii_mm[] =
19007 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19008 short int ascii_ii[] =
19009 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19010 int use_ascii (int i) {
19011 return ascii_mm[i] + ascii_ii[i];
19013 short int ebcdic_ii[] =
19014 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19015 short int ebcdic_mm[] =
19016 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19017 int use_ebcdic (int i) {
19018 return ebcdic_mm[i] + ebcdic_ii[i];
19020 extern int foo;
19023 main ()
19025 return use_ascii (foo) == use_ebcdic (foo);
19027 return 0;
19029 _ACEOF
19030 if ac_fn_c_try_compile "$LINENO"; then :
19031 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19032 ac_cv_c_bigendian=yes
19034 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19035 if test "$ac_cv_c_bigendian" = unknown; then
19036 ac_cv_c_bigendian=no
19037 else
19038 # finding both strings is unlikely to happen, but who knows?
19039 ac_cv_c_bigendian=unknown
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044 else
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 $ac_includes_default
19049 main ()
19052 /* Are we little or big endian? From Harbison&Steele. */
19053 union
19055 long int l;
19056 char c[sizeof (long int)];
19057 } u;
19058 u.l = 1;
19059 return u.c[sizeof (long int) - 1] == 1;
19062 return 0;
19064 _ACEOF
19065 if ac_fn_c_try_run "$LINENO"; then :
19066 ac_cv_c_bigendian=no
19067 else
19068 ac_cv_c_bigendian=yes
19070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19071 conftest.$ac_objext conftest.beam conftest.$ac_ext
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19077 $as_echo "$ac_cv_c_bigendian" >&6; }
19078 case $ac_cv_c_bigendian in #(
19079 yes)
19080 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19081 ;; #(
19083 ;; #(
19084 universal)
19086 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19088 ;; #(
19090 as_fn_error "unknown endianness
19091 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19092 esac
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19095 $as_echo_n "checking return type of signal handlers... " >&6; }
19096 if test "${ac_cv_type_signal+set}" = set; then :
19097 $as_echo_n "(cached) " >&6
19098 else
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19101 #include <sys/types.h>
19102 #include <signal.h>
19105 main ()
19107 return *(signal (0, 0)) (0) == 1;
19109 return 0;
19111 _ACEOF
19112 if ac_fn_c_try_compile "$LINENO"; then :
19113 ac_cv_type_signal=int
19114 else
19115 ac_cv_type_signal=void
19117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19120 $as_echo "$ac_cv_type_signal" >&6; }
19122 cat >>confdefs.h <<_ACEOF
19123 #define RETSIGTYPE $ac_cv_type_signal
19124 _ACEOF
19127 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19128 if test "x$ac_cv_type_off_t" = x""yes; then :
19130 else
19132 cat >>confdefs.h <<_ACEOF
19133 #define off_t long int
19134 _ACEOF
19138 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19139 if test "x$ac_cv_type_size_t" = x""yes; then :
19141 else
19143 cat >>confdefs.h <<_ACEOF
19144 #define size_t unsigned int
19145 _ACEOF
19149 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
19150 if test "x$ac_cv_type_time_t" = x""yes; then :
19152 else
19154 cat >>confdefs.h <<_ACEOF
19155 #define time_t long
19156 _ACEOF
19160 # The cast to long int works around a bug in the HP C Compiler
19161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19163 # This bug is HP SR number 8606223364.
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
19165 $as_echo_n "checking size of time_t... " >&6; }
19166 if test "${ac_cv_sizeof_time_t+set}" = set; then :
19167 $as_echo_n "(cached) " >&6
19168 else
19169 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
19171 else
19172 if test "$ac_cv_type_time_t" = yes; then
19173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19175 { as_fn_set_status 77
19176 as_fn_error "cannot compute sizeof (time_t)
19177 See \`config.log' for more details." "$LINENO" 5; }; }
19178 else
19179 ac_cv_sizeof_time_t=0
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
19185 $as_echo "$ac_cv_sizeof_time_t" >&6; }
19189 cat >>confdefs.h <<_ACEOF
19190 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
19191 _ACEOF
19194 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
19195 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
19197 cat >>confdefs.h <<_ACEOF
19198 #define HAVE_UINTPTR_T 1
19199 _ACEOF
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19208 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19209 if test "${ac_cv_struct_tm+set}" = set; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19214 #include <sys/types.h>
19215 #include <time.h>
19218 main ()
19220 struct tm tm;
19221 int *p = &tm.tm_sec;
19222 return !p;
19224 return 0;
19226 _ACEOF
19227 if ac_fn_c_try_compile "$LINENO"; then :
19228 ac_cv_struct_tm=time.h
19229 else
19230 ac_cv_struct_tm=sys/time.h
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19235 $as_echo "$ac_cv_struct_tm" >&6; }
19236 if test $ac_cv_struct_tm = sys/time.h; then
19238 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
19244 $as_echo_n "checking for u_int8_t... " >&6; }
19245 if test "${ac_cv_type_u_int8_t+set}" = set; then :
19246 $as_echo_n "(cached) " >&6
19247 else
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <sys/types.h>
19252 main ()
19254 u_int8_t len = 42; return 0;
19256 return 0;
19258 _ACEOF
19259 if ac_fn_c_try_compile "$LINENO"; then :
19260 ac_cv_type_u_int8_t=yes
19261 else
19262 ac_cv_type_u_int8_t=no
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
19268 $as_echo "$ac_cv_type_u_int8_t" >&6; }
19269 if test $ac_cv_type_u_int8_t = yes; then
19271 $as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
19276 $as_echo_n "checking for u_int64_t... " >&6; }
19277 if test "${ac_cv_type_u_int64_t+set}" = set; then :
19278 $as_echo_n "(cached) " >&6
19279 else
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19282 #include <sys/types.h>
19284 main ()
19286 u_int64_t len = 42; return 0;
19288 return 0;
19290 _ACEOF
19291 if ac_fn_c_try_compile "$LINENO"; then :
19292 ac_cv_type_u_int64_t=yes
19293 else
19294 ac_cv_type_u_int64_t=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
19300 $as_echo "$ac_cv_type_u_int64_t" >&6; }
19301 if test $ac_cv_type_u_int64_t = yes; then
19303 $as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
19308 # Look for in_port_t.
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
19311 $as_echo_n "checking for in_port_t... " >&6; }
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19315 #include <sys/types.h>
19316 #include <netinet/in.h>
19318 main ()
19320 in_port_t port = 25; return (0);
19322 return 0;
19324 _ACEOF
19325 if ac_fn_c_try_compile "$LINENO"; then :
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327 $as_echo "yes" >&6; }
19329 else
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19331 $as_echo "no" >&6; }
19333 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
19340 $as_echo_n "checking for a fallback value for HZ... " >&6; }
19341 if test "${ac_cv_var_default_hz+set}" = set; then :
19342 $as_echo_n "(cached) " >&6
19343 else
19344 ac_cv_var_default_hz=100
19345 case "$host" in
19346 alpha*-dec-osf4*|alpha*-dec-osf5*)
19347 ac_cv_var_default_hz=1024
19349 mips-dec-ultrix4*)
19350 ac_cv_var_default_hz=256
19352 esac
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5
19355 $as_echo "$ac_cv_var_default_hz" >&6; }
19357 cat >>confdefs.h <<_ACEOF
19358 #define DEFAULT_HZ $ac_cv_var_default_hz
19359 _ACEOF
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
19363 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
19364 if test "${ac_cv_var_override_hz+set}" = set; then :
19365 $as_echo_n "(cached) " >&6
19366 else
19367 ac_cv_var_override_hz=no
19368 case "$host" in
19369 alpha*-dec-osf4*|alpha*-dec-osf5*)
19370 ac_cv_var_override_hz=yes
19372 mips-dec-ultrix4*)
19373 ac_cv_var_override_hz=yes
19375 *-*-freebsd*)
19376 ac_cv_var_override_hz=yes
19378 *-*-sunos4*)
19379 ac_cv_var_override_hz=yes
19381 esac
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
19384 $as_echo "$ac_cv_var_override_hz" >&6; }
19385 case "$ac_cv_var_override_hz" in
19386 yes)
19388 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
19391 esac
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
19396 $as_echo_n "checking for struct rt_msghdr... " >&6; }
19397 if test "${ac_cv_struct_rt_msghdr+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19399 else
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19403 #include <sys/types.h>
19404 #include <sys/socket.h>
19405 #include <net/if.h>
19406 #include <net/route.h>
19408 main ()
19410 struct rt_msghdr p;
19412 return 0;
19414 _ACEOF
19415 if ac_fn_c_try_compile "$LINENO"; then :
19416 ac_cv_struct_rt_msghdr=yes
19417 else
19418 ac_cv_struct_rt_msghdr=no
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5
19424 $as_echo "$ac_cv_struct_rt_msghdr" >&6; }
19426 if test $ac_cv_struct_rt_msghdr = yes; then
19428 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
19433 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
19434 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440 #include <signal.h>
19442 main ()
19444 struct sigaction act; act.sa_sigaction = 0;
19446 return 0;
19448 _ACEOF
19449 if ac_fn_c_try_compile "$LINENO"; then :
19450 ac_cv_struct_sigaction_has_sa_sigaction=yes
19451 else
19452 ac_cv_struct_sigaction_has_sa_sigaction=no
19455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
19460 $as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; }
19461 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
19463 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
19468 $as_echo_n "checking for struct ppsclockev... " >&6; }
19469 if test "${ac_cv_struct_ppsclockev+set}" = set; then :
19470 $as_echo_n "(cached) " >&6
19471 else
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19475 #include <sys/types.h>
19476 #ifdef HAVE_SYS_TERMIOS_H
19477 # include <sys/termios.h>
19478 #endif
19479 #ifdef HAVE_SYS_TIME_H
19480 # include <sys/time.h>
19481 #endif
19482 #ifdef HAVE_SYS_PPSCLOCK_H
19483 # include <sys/ppsclock.h>
19484 #endif
19486 main ()
19489 extern struct ppsclockev *pce;
19490 return pce->serial;
19492 return 0;
19494 _ACEOF
19495 if ac_fn_c_try_compile "$LINENO"; then :
19496 ac_cv_struct_ppsclockev=yes
19497 else
19498 ac_cv_struct_ppsclockev=no
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5
19504 $as_echo "$ac_cv_struct_ppsclockev" >&6; }
19505 if test $ac_cv_struct_ppsclockev = yes; then
19507 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
19512 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
19513 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then :
19514 $as_echo_n "(cached) " >&6
19515 else
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19519 #include <sys/types.h>
19520 #include <sys/socket.h>
19522 main ()
19525 extern struct sockaddr *ps;
19526 return ps->sa_len;
19528 return 0;
19530 _ACEOF
19531 if ac_fn_c_try_compile "$LINENO"; then :
19532 ac_cv_struct_sockaddr_has_sa_len=yes
19533 else
19534 ac_cv_struct_sockaddr_has_sa_len=no
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
19540 $as_echo "$ac_cv_struct_sockaddr_has_sa_len" >&6; }
19541 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
19543 $as_echo "#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1" >>confdefs.h
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
19548 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
19549 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
19550 $as_echo_n "(cached) " >&6
19551 else
19552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h. */
19555 #include <sys/types.h>
19556 #include <sys/socket.h>
19557 #include <netinet/in.h>
19560 main ()
19563 struct sockaddr_storage n;
19565 return 0;
19567 _ACEOF
19568 if ac_fn_c_try_compile "$LINENO"; then :
19569 ac_cv_struct_sockaddr_storage=yes
19570 else
19571 ac_cv_struct_sockaddr_storage=no
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
19577 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
19578 if test $ac_cv_struct_sockaddr_storage = yes; then
19580 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
19585 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
19586 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591 /* end confdefs.h. */
19593 #include <sys/types.h>
19594 #include <sys/socket.h>
19597 main ()
19599 struct sockaddr_storage s; s.ss_family = 1;
19601 return 0;
19603 _ACEOF
19604 if ac_fn_c_try_compile "$LINENO"; then :
19605 ac_cv_have_ss_family_in_struct_ss="yes"
19606 else
19607 ac_cv_have_ss_family_in_struct_ss="no"
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
19613 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
19614 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
19616 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
19618 else
19619 # Hack around a problem...
19620 # HMS: This is $host because we need the -D if we are building *for* it.
19621 # HMS: 061029: Now that we separate the ss_* checks this is causing
19622 # a problem - disable it until we get to the bottom of it.
19623 case "$host" in
19624 XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
19626 esac
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
19630 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
19631 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
19632 $as_echo_n "(cached) " >&6
19633 else
19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19638 #include <sys/types.h>
19639 #include <sys/socket.h>
19642 main ()
19644 struct sockaddr_storage s; s.__ss_family = 1;
19646 return 0;
19648 _ACEOF
19649 if ac_fn_c_try_compile "$LINENO"; then :
19650 ac_cv_have___ss_family_in_struct_ss="yes"
19651 else
19652 ac_cv_have___ss_family_in_struct_ss="no"
19655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
19659 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
19660 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
19662 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_len field in struct sockaddr_storage" >&5
19669 $as_echo_n "checking for ss_len field in struct sockaddr_storage... " >&6; }
19670 if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then :
19671 $as_echo_n "(cached) " >&6
19672 else
19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19677 #include <sys/types.h>
19678 #include <sys/socket.h>
19681 main ()
19683 struct sockaddr_storage s; s.ss_len = 1;
19685 return 0;
19687 _ACEOF
19688 if ac_fn_c_try_compile "$LINENO"; then :
19689 ac_cv_have_ss_len_in_struct_ss="yes"
19690 else
19691 ac_cv_have_ss_len_in_struct_ss="no"
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_len_in_struct_ss" >&5
19697 $as_echo "$ac_cv_have_ss_len_in_struct_ss" >&6; }
19698 if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then
19700 $as_echo "#define HAVE_SS_LEN_IN_SS 1" >>confdefs.h
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_len field in struct sockaddr_storage" >&5
19705 $as_echo_n "checking for __ss_len field in struct sockaddr_storage... " >&6; }
19706 if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19713 #include <sys/types.h>
19714 #include <sys/socket.h>
19717 main ()
19719 struct sockaddr_storage s; s.__ss_len = 1;
19721 return 0;
19723 _ACEOF
19724 if ac_fn_c_try_compile "$LINENO"; then :
19725 ac_cv_have___ss_len_in_struct_ss="yes"
19726 else
19727 ac_cv_have___ss_len_in_struct_ss="no"
19730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_len_in_struct_ss" >&5
19734 $as_echo "$ac_cv_have___ss_len_in_struct_ss" >&6; }
19735 if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then
19737 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
19743 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
19744 *yes*)
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
19746 $as_echo_n "checking for struct snd_size... " >&6; }
19747 if test "${ac_cv_struct_snd_size+set}" = set; then :
19748 $as_echo_n "(cached) " >&6
19749 else
19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19753 #ifdef HAVE_MACHINE_SOUNDCARD_H
19754 # include <machine/soundcard.h>
19755 #endif
19756 #ifdef HAVE_SYS_SOUNDCARD_H
19757 # include <sys/soundcard.h>
19758 #endif
19760 main ()
19763 extern struct snd_size *ss;
19764 return ss->rec_size;
19766 return 0;
19768 _ACEOF
19769 if ac_fn_c_try_compile "$LINENO"; then :
19770 ac_cv_struct_snd_size=yes
19771 else
19772 ac_cv_struct_snd_size=no
19774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5
19778 $as_echo "$ac_cv_struct_snd_size" >&6; }
19779 case "$ac_cv_struct_snd_size" in
19780 yes)
19781 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
19783 esac
19785 esac
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
19788 $as_echo_n "checking struct clockinfo for hz... " >&6; }
19789 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then :
19790 $as_echo_n "(cached) " >&6
19791 else
19792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h. */
19795 #include <sys/time.h>
19797 main ()
19800 extern struct clockinfo *pc;
19801 return pc->hz;
19803 return 0;
19805 _ACEOF
19806 if ac_fn_c_try_compile "$LINENO"; then :
19807 ac_cv_struct_clockinfo_has_hz=yes
19808 else
19809 ac_cv_struct_clockinfo_has_hz=no
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5
19815 $as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; }
19816 if test $ac_cv_struct_clockinfo_has_hz = yes; then
19818 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
19823 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
19824 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then :
19825 $as_echo_n "(cached) " >&6
19826 else
19827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19830 #include <sys/time.h>
19832 main ()
19835 extern struct clockinfo *pc;
19836 return pc->tickadj;
19838 return 0;
19840 _ACEOF
19841 if ac_fn_c_try_compile "$LINENO"; then :
19842 ac_cv_struct_clockinfo_has_tickadj=yes
19843 else
19844 ac_cv_struct_clockinfo_has_tickadj=no
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
19850 $as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; }
19851 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
19853 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
19858 $as_echo_n "checking for struct timespec... " >&6; }
19859 if test "${ac_cv_struct_timespec+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19865 #include <sys/time.h>
19866 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
19867 #ifdef HAVE_ERRNO_H
19868 # include <errno.h>
19869 #endif
19870 #ifdef HAVE_SYS_TIMEPPS_H
19871 # define FRAC 4294967296
19872 # include <sys/timepps.h>
19873 #endif
19875 main ()
19877 struct timespec n;
19879 return 0;
19881 _ACEOF
19882 if ac_fn_c_try_compile "$LINENO"; then :
19883 ac_cv_struct_timespec=yes
19884 else
19885 ac_cv_struct_timespec=no
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5
19890 $as_echo "$ac_cv_struct_timespec" >&6; }
19891 if test $ac_cv_struct_timespec = yes; then
19893 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
19898 $as_echo_n "checking for struct ntptimeval... " >&6; }
19899 if test "${ac_cv_struct_ntptimeval+set}" = set; then :
19900 $as_echo_n "(cached) " >&6
19901 else
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19905 #include <sys/time.h>
19906 #include <sys/timex.h>
19908 main ()
19910 struct ntptimeval n;
19912 return 0;
19914 _ACEOF
19915 if ac_fn_c_try_compile "$LINENO"; then :
19916 ac_cv_struct_ntptimeval=yes
19917 else
19918 ac_cv_struct_ntptimeval=no
19920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5
19923 $as_echo "$ac_cv_struct_ntptimeval" >&6; }
19924 if test $ac_cv_struct_ntptimeval = yes; then
19926 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
19930 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H
19931 #include <sys/time.h>
19932 #else
19933 # ifdef HAVE_TIME_H
19934 # include <time.h>
19935 # endif
19936 #endif
19937 #ifdef HAVE_SYS_TIMEX_H
19938 #include <sys/timex.h>
19939 #else
19940 # ifdef HAVE_TIMEX_H
19941 # include <timex.h>
19942 # endif
19943 #endif
19945 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x""yes; then :
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
19949 _ACEOF
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19956 $as_echo_n "checking for inline... " >&6; }
19957 if test "${ac_cv_c_inline+set}" = set; then :
19958 $as_echo_n "(cached) " >&6
19959 else
19960 ac_cv_c_inline=no
19961 for ac_kw in inline __inline__ __inline; do
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19964 #ifndef __cplusplus
19965 typedef int foo_t;
19966 static $ac_kw foo_t static_foo () {return 0; }
19967 $ac_kw foo_t foo () {return 0; }
19968 #endif
19970 _ACEOF
19971 if ac_fn_c_try_compile "$LINENO"; then :
19972 ac_cv_c_inline=$ac_kw
19974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19975 test "$ac_cv_c_inline" != no && break
19976 done
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19980 $as_echo "$ac_cv_c_inline" >&6; }
19982 case $ac_cv_c_inline in
19983 inline | yes) ;;
19985 case $ac_cv_c_inline in
19986 no) ac_val=;;
19987 *) ac_val=$ac_cv_c_inline;;
19988 esac
19989 cat >>confdefs.h <<_ACEOF
19990 #ifndef __cplusplus
19991 #define inline $ac_val
19992 #endif
19993 _ACEOF
19995 esac
19998 case "$ac_cv_c_inline" in
20003 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
20006 esac
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
20009 $as_echo_n "checking whether char is unsigned... " >&6; }
20010 if test "${ac_cv_c_char_unsigned+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20012 else
20013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20014 /* end confdefs.h. */
20015 $ac_includes_default
20017 main ()
20019 static int test_array [1 - 2 * !(((char) -1) < 0)];
20020 test_array [0] = 0
20023 return 0;
20025 _ACEOF
20026 if ac_fn_c_try_compile "$LINENO"; then :
20027 ac_cv_c_char_unsigned=no
20028 else
20029 ac_cv_c_char_unsigned=yes
20031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
20034 $as_echo "$ac_cv_c_char_unsigned" >&6; }
20035 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20036 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
20039 # The cast to long int works around a bug in the HP C Compiler
20040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20042 # This bug is HP SR number 8606223364.
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
20044 $as_echo_n "checking size of signed char... " >&6; }
20045 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
20046 $as_echo_n "(cached) " >&6
20047 else
20048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
20050 else
20051 if test "$ac_cv_type_signed_char" = yes; then
20052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20054 { as_fn_set_status 77
20055 as_fn_error "cannot compute sizeof (signed char)
20056 See \`config.log' for more details." "$LINENO" 5; }; }
20057 else
20058 ac_cv_sizeof_signed_char=0
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
20064 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
20068 cat >>confdefs.h <<_ACEOF
20069 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
20070 _ACEOF
20073 # The cast to long int works around a bug in the HP C Compiler
20074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20076 # This bug is HP SR number 8606223364.
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20078 $as_echo_n "checking size of int... " >&6; }
20079 if test "${ac_cv_sizeof_int+set}" = set; then :
20080 $as_echo_n "(cached) " >&6
20081 else
20082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20084 else
20085 if test "$ac_cv_type_int" = yes; then
20086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20088 { as_fn_set_status 77
20089 as_fn_error "cannot compute sizeof (int)
20090 See \`config.log' for more details." "$LINENO" 5; }; }
20091 else
20092 ac_cv_sizeof_int=0
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20098 $as_echo "$ac_cv_sizeof_int" >&6; }
20102 cat >>confdefs.h <<_ACEOF
20103 #define SIZEOF_INT $ac_cv_sizeof_int
20104 _ACEOF
20107 # The cast to long int works around a bug in the HP C Compiler
20108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20110 # This bug is HP SR number 8606223364.
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20112 $as_echo_n "checking size of long... " >&6; }
20113 if test "${ac_cv_sizeof_long+set}" = set; then :
20114 $as_echo_n "(cached) " >&6
20115 else
20116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
20118 else
20119 if test "$ac_cv_type_long" = yes; then
20120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20122 { as_fn_set_status 77
20123 as_fn_error "cannot compute sizeof (long)
20124 See \`config.log' for more details." "$LINENO" 5; }; }
20125 else
20126 ac_cv_sizeof_long=0
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20132 $as_echo "$ac_cv_sizeof_long" >&6; }
20136 cat >>confdefs.h <<_ACEOF
20137 #define SIZEOF_LONG $ac_cv_sizeof_long
20138 _ACEOF
20142 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
20143 if test "x$ac_cv_type_s_char" = x""yes; then :
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_S_CHAR 1
20147 _ACEOF
20152 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
20153 *yes)
20154 # We have a typedef for s_char. Might as well believe it...
20156 no0no)
20157 # We have signed chars, can't say 'signed char', no s_char typedef.
20159 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
20162 no1no)
20163 # We have signed chars, can say 'signed char', no s_char typedef.
20164 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
20167 yes0no)
20168 # We have unsigned chars, can't say 'signed char', no s_char typedef.
20169 as_fn_error "No way to specify a signed character!" "$LINENO" 5
20171 yes1no)
20172 # We have unsigned chars, can say 'signed char', no s_char typedef.
20173 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
20176 esac
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20178 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20179 if test "${ac_cv_type_uid_t+set}" = set; then :
20180 $as_echo_n "(cached) " >&6
20181 else
20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h. */
20184 #include <sys/types.h>
20186 _ACEOF
20187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20188 $EGREP "uid_t" >/dev/null 2>&1; then :
20189 ac_cv_type_uid_t=yes
20190 else
20191 ac_cv_type_uid_t=no
20193 rm -f conftest*
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20197 $as_echo "$ac_cv_type_uid_t" >&6; }
20198 if test $ac_cv_type_uid_t = no; then
20200 $as_echo "#define uid_t int" >>confdefs.h
20203 $as_echo "#define gid_t int" >>confdefs.h
20208 case "$host" in
20209 *-*-aix[456]*)
20210 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
20211 # (returning ENOSYS). I didn't check 4.2. If, in the future,
20212 # IBM pulls its thumbs out long enough to implement clock_settime,
20213 # this conditional will need to change. Maybe use AC_TRY_RUN
20214 # instead to try to set the time to itself and check errno.
20216 *) for ac_func in clock_gettime clock_settime
20217 do :
20218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20220 eval as_val=\$$as_ac_var
20221 if test "x$as_val" = x""yes; then :
20222 cat >>confdefs.h <<_ACEOF
20223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20224 _ACEOF
20227 done
20230 esac
20231 for ac_func in daemon
20232 do :
20233 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20234 if test "x$ac_cv_func_daemon" = x""yes; then :
20235 cat >>confdefs.h <<_ACEOF
20236 #define HAVE_DAEMON 1
20237 _ACEOF
20240 done
20242 for ac_func in finite
20243 do :
20244 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
20245 if test "x$ac_cv_func_finite" = x""yes; then :
20246 cat >>confdefs.h <<_ACEOF
20247 #define HAVE_FINITE 1
20248 _ACEOF
20250 else
20251 for ac_func in isfinite
20252 do :
20253 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
20254 if test "x$ac_cv_func_isfinite" = x""yes; then :
20255 cat >>confdefs.h <<_ACEOF
20256 #define HAVE_ISFINITE 1
20257 _ACEOF
20259 else
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
20261 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
20262 _libs=$LIBS
20263 LIBS="$LIBS -lm"
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266 #include <math.h>
20268 main ()
20270 float f = 0.0; isfinite(f)
20272 return 0;
20274 _ACEOF
20275 if ac_fn_c_try_link "$LINENO"; then :
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20277 $as_echo "yes" >&6; }
20278 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
20280 else
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20282 $as_echo "no" >&6; }
20284 rm -f core conftest.err conftest.$ac_objext \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$_libs
20288 done
20291 done
20293 for ac_func in getbootfile getclock getdtablesize
20294 do :
20295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20297 eval as_val=\$$as_ac_var
20298 if test "x$as_val" = x""yes; then :
20299 cat >>confdefs.h <<_ACEOF
20300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20301 _ACEOF
20304 done
20307 # Check whether --enable-getifaddrs was given.
20308 if test "${enable_getifaddrs+set}" = set; then :
20309 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
20310 else
20311 want_getifaddrs="yes"
20315 case $want_getifaddrs in
20316 yes|glibc)
20318 # Do we have getifaddrs() ?
20320 case $host in
20321 *-*linux*)
20322 # Some recent versions of glibc support getifaddrs() which does not
20323 # provide AF_INET6 addresses while the function provided by the USAGI
20324 # project handles the AF_INET6 case correctly. We need to avoid
20325 # using the former but prefer the latter unless overridden by
20326 # --enable-getifaddrs=glibc.
20327 if test $want_getifaddrs = glibc
20328 then
20329 for ac_func in getifaddrs
20330 do :
20331 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
20332 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
20333 cat >>confdefs.h <<_ACEOF
20334 #define HAVE_GETIFADDRS 1
20335 _ACEOF
20338 done
20340 else
20341 save_LIBS="$LIBS"
20342 LIBS="-L/usr/local/v6/lib $LIBS"
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
20344 $as_echo_n "checking for getifaddrs in -linet6... " >&6; }
20345 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then :
20346 $as_echo_n "(cached) " >&6
20347 else
20348 ac_check_lib_save_LIBS=$LIBS
20349 LIBS="-linet6 $LIBS"
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20356 #ifdef __cplusplus
20357 extern "C"
20358 #endif
20359 char getifaddrs ();
20361 main ()
20363 return getifaddrs ();
20365 return 0;
20367 _ACEOF
20368 if ac_fn_c_try_link "$LINENO"; then :
20369 ac_cv_lib_inet6_getifaddrs=yes
20370 else
20371 ac_cv_lib_inet6_getifaddrs=no
20373 rm -f core conftest.err conftest.$ac_objext \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
20378 $as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
20379 if test "x$ac_cv_lib_inet6_getifaddrs" = x""yes; then :
20380 LIBS="$LIBS -linet6"
20381 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
20383 else
20384 LIBS=${save_LIBS}
20390 for ac_func in getifaddrs
20391 do :
20392 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
20393 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_GETIFADDRS 1
20396 _ACEOF
20399 done
20402 esac
20406 esac
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
20409 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
20410 if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
20411 $as_echo_n "(cached) " >&6
20412 else
20413 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
20414 $as_echo_n "(cached) " >&6
20415 else
20416 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
20417 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h. */
20420 #ifdef HAVE_SYS_TYPES_H
20421 #include <sys/types.h>
20422 #endif
20423 #ifdef HAVE_SYS_SOCKET_H
20424 #include <sys/socket.h>
20425 #endif
20426 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
20428 main ()
20432 return 0;
20434 _ACEOF
20435 if ac_fn_c_try_compile "$LINENO"; then :
20436 ac_not_found=no ; break 2
20437 else
20438 ac_not_found=yes
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 done
20442 done
20447 if test "$ac_not_found" = yes; then
20448 ac_cv_func_getsockname_socklen_type='socklen_t'
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
20451 $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
20453 cat >>confdefs.h <<_ACEOF
20454 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
20455 _ACEOF
20458 for ac_func in getrusage
20459 do :
20460 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
20461 if test "x$ac_cv_func_getrusage" = x""yes; then :
20462 cat >>confdefs.h <<_ACEOF
20463 #define HAVE_GETRUSAGE 1
20464 _ACEOF
20467 done
20469 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20470 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
20472 else
20474 case "$host" in
20475 *-*-mpeix*) ac_cv_func_gettimeofday=yes
20477 esac
20480 case "$host" in
20481 *-pc-cygwin*)
20483 *) for ac_func in getuid
20484 do :
20485 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
20486 if test "x$ac_cv_func_getuid" = x""yes; then :
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_GETUID 1
20489 _ACEOF
20492 done
20495 esac
20496 for ac_func in hstrerror
20497 do :
20498 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
20499 if test "x$ac_cv_func_hstrerror" = x""yes; then :
20500 cat >>confdefs.h <<_ACEOF
20501 #define HAVE_HSTRERROR 1
20502 _ACEOF
20505 done
20509 # Check for if_nametoindex() for IPv6 scoped addresses support
20511 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
20512 if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
20513 ac_cv_have_if_nametoindex=yes
20514 else
20515 ac_cv_have_if_nametoindex=no
20518 case $ac_cv_have_if_nametoindex in
20520 case "$host" in
20521 *-hp-hpux*)
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
20523 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
20524 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
20525 $as_echo_n "(cached) " >&6
20526 else
20527 ac_check_lib_save_LIBS=$LIBS
20528 LIBS="-lipv6 $LIBS"
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20535 #ifdef __cplusplus
20536 extern "C"
20537 #endif
20538 char if_nametoindex ();
20540 main ()
20542 return if_nametoindex ();
20544 return 0;
20546 _ACEOF
20547 if ac_fn_c_try_link "$LINENO"; then :
20548 ac_cv_lib_ipv6_if_nametoindex=yes
20549 else
20550 ac_cv_lib_ipv6_if_nametoindex=no
20552 rm -f core conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
20557 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
20558 if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
20559 ac_cv_have_if_nametoindex=yes
20560 LIBS="-lipv6 $LIBS"
20564 esac
20565 esac
20566 case $ac_cv_have_if_nametoindex in
20567 yes)
20569 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
20572 esac
20574 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20575 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
20577 else
20579 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
20583 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20584 if test "x$ac_cv_func_inet_pton" = x""yes; then :
20586 else
20588 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
20592 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20593 if test "x$ac_cv_func_inet_aton" = x""yes; then :
20595 else
20597 $as_echo "#define ISC_PLATFORM_NEEDATON 1" >>confdefs.h
20601 for ac_func in K_open kvm_open memcpy memmove memset
20602 do :
20603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20605 eval as_val=\$$as_ac_var
20606 if test "x$as_val" = x""yes; then :
20607 cat >>confdefs.h <<_ACEOF
20608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20609 _ACEOF
20612 done
20614 case "$host" in
20615 *-*-sco3.2v5.0.*)
20616 # Just stubs. Idiots.
20618 *) for ac_func in mkstemp
20619 do :
20620 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
20621 if test "x$ac_cv_func_mkstemp" = x""yes; then :
20622 cat >>confdefs.h <<_ACEOF
20623 #define HAVE_MKSTEMP 1
20624 _ACEOF
20627 done
20630 esac
20631 for ac_func in mktime
20632 do :
20633 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
20634 if test "x$ac_cv_func_mktime" = x""yes; then :
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_MKTIME 1
20637 _ACEOF
20640 done
20642 case "$host" in
20643 *-*-aix[456]*)
20644 # Just a stub. Idiots.
20646 *-*-irix[45]*)
20647 # Just a stub in "old" Irix. Idiots.
20649 *-*-*linux*)
20650 # there, but more trouble than it is worth for now (resolver problems)
20652 *-*-qnx*)
20653 # Apparently there but not working in QNX. Idiots?
20655 *-*-sco3.2v5.0.*)
20656 # Just a stub. Idiots.
20658 alpha*-dec-osf4*|alpha*-dec-osf5*)
20659 # mlockall is there, as a #define calling memlk via <sys/mman.h>
20660 # Not easy to test for - cheat.
20661 for ac_func in memlk
20662 do :
20663 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
20664 if test "x$ac_cv_func_memlk" = x""yes; then :
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_MEMLK 1
20667 _ACEOF
20668 ac_cv_func_mlockall='yes'
20670 done
20672 for ac_func in mlockall
20673 do :
20674 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
20675 if test "x$ac_cv_func_mlockall" = x""yes; then :
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_MLOCKALL 1
20678 _ACEOF
20681 done
20684 *) for ac_func in mlockall
20685 do :
20686 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
20687 if test "x$ac_cv_func_mlockall" = x""yes; then :
20688 cat >>confdefs.h <<_ACEOF
20689 #define HAVE_MLOCKALL 1
20690 _ACEOF
20693 done
20696 esac
20697 for ac_func in nice nlist
20698 do :
20699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20701 eval as_val=\$$as_ac_var
20702 if test "x$as_val" = x""yes; then :
20703 cat >>confdefs.h <<_ACEOF
20704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20705 _ACEOF
20708 done
20710 case "$host" in
20711 *-*-solaris2.6)
20712 # Broken...
20714 *) for ac_func in ntp_adjtime ntp_gettime
20715 do :
20716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20718 eval as_val=\$$as_ac_var
20719 if test "x$as_val" = x""yes; then :
20720 cat >>confdefs.h <<_ACEOF
20721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20722 _ACEOF
20725 done
20728 esac
20729 for ac_func in plock pututline pututxline readlink recvmsg rtprio
20730 do :
20731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20733 eval as_val=\$$as_ac_var
20734 if test "x$as_val" = x""yes; then :
20735 cat >>confdefs.h <<_ACEOF
20736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20737 _ACEOF
20740 done
20742 case "$host" in
20743 *-*-aix[456]*)
20744 # Just a stub in AIX 4. Idiots.
20746 *-*-solaris2.5*)
20747 # Just stubs in solaris2.5. Idiots.
20749 *) for ac_func in sched_setscheduler
20750 do :
20751 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
20752 if test "x$ac_cv_func_sched_setscheduler" = x""yes; then :
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_SCHED_SETSCHEDULER 1
20755 _ACEOF
20758 done
20761 esac
20762 for ac_func in setlinebuf setpgid setpriority setsid
20763 do :
20764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20766 eval as_val=\$$as_ac_var
20767 if test "x$as_val" = x""yes; then :
20768 cat >>confdefs.h <<_ACEOF
20769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20770 _ACEOF
20773 done
20775 for ac_func in setrlimit
20776 do :
20777 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
20778 if test "x$ac_cv_func_setrlimit" = x""yes; then :
20779 cat >>confdefs.h <<_ACEOF
20780 #define HAVE_SETRLIMIT 1
20781 _ACEOF
20784 done
20786 for ac_func in settimeofday
20787 do :
20788 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
20789 if test "x$ac_cv_func_settimeofday" = x""yes; then :
20790 cat >>confdefs.h <<_ACEOF
20791 #define HAVE_SETTIMEOFDAY 1
20792 _ACEOF
20794 else
20796 case "$host" in
20797 *-*-mpeix*) ac_cv_func_settimeofday=yes
20799 esac
20801 done
20803 for ac_func in setvbuf sigaction
20804 do :
20805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20807 eval as_val=\$$as_ac_var
20808 if test "x$as_val" = x""yes; then :
20809 cat >>confdefs.h <<_ACEOF
20810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20811 _ACEOF
20814 done
20816 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
20817 do :
20818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20820 eval as_val=\$$as_ac_var
20821 if test "x$as_val" = x""yes; then :
20822 cat >>confdefs.h <<_ACEOF
20823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20824 _ACEOF
20827 done
20829 for ac_func in snprintf strdup strerror strstr
20830 do :
20831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20833 eval as_val=\$$as_ac_var
20834 if test "x$as_val" = x""yes; then :
20835 cat >>confdefs.h <<_ACEOF
20836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20837 _ACEOF
20840 done
20842 for ac_func in timegm
20843 do :
20844 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
20845 if test "x$ac_cv_func_timegm" = x""yes; then :
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_TIMEGM 1
20848 _ACEOF
20851 done
20853 case "$host" in
20854 *-*-aix[456]*)
20855 # Just stubs. Idiots.
20857 *-*-netbsd1*)
20858 # Just stubs. Idiots.
20860 *-*-netbsdelf1*)
20861 # Just stubs. Idiots.
20863 *-*-openbsd*)
20864 # Just stubs. Idiots.
20866 *) for ac_func in timer_create timer_settime
20867 do :
20868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20870 eval as_val=\$$as_ac_var
20871 if test "x$as_val" = x""yes; then :
20872 cat >>confdefs.h <<_ACEOF
20873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20874 _ACEOF
20877 done
20880 esac
20881 case "$host" in
20882 *-pc-cygwin*)
20883 # I have no idea...
20885 *) for ac_func in umask
20886 do :
20887 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
20888 if test "x$ac_cv_func_umask" = x""yes; then :
20889 cat >>confdefs.h <<_ACEOF
20890 #define HAVE_UMASK 1
20891 _ACEOF
20894 done
20897 esac
20898 for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
20899 do :
20900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20902 eval as_val=\$$as_ac_var
20903 if test "x$as_val" = x""yes; then :
20904 cat >>confdefs.h <<_ACEOF
20905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20906 _ACEOF
20909 done
20914 # http://bugs.ntp.org/737
20915 case "$ac_cv_func_recvmsg" in
20916 yes)
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
20918 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
20919 if test "${ac_cv_struct_iovec_help+set}" = set; then :
20920 $as_echo_n "(cached) " >&6
20921 else
20922 for ac_cv_struct_iovec_help in '0' '1'; do
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20925 #ifdef HAVE_SYS_TYPES_H
20926 #include <sys/types.h>
20927 #endif
20928 #ifdef HAVE_SYS_SOCKET_H
20929 #include <sys/socket.h>
20930 #endif
20931 #if $ac_cv_struct_iovec_help
20932 #include <sys/uio.h>
20933 #endif
20935 void foo();
20936 void foo() {
20937 ssize_t x;
20938 int s = 0;
20939 struct iovec iov;
20940 struct msghdr mh;
20941 int flags = 0;
20943 mh.msg_iov = &iov;
20944 x = recvmsg(s, &mh, flags);
20947 main ()
20951 return 0;
20953 _ACEOF
20954 if ac_fn_c_try_compile "$LINENO"; then :
20955 ac_worked=yes ; break 1
20956 else
20957 ac_worked=no
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 done
20963 case "$ac_worked$ac_cv_struct_iovec_help" in
20964 yes1)
20966 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
20968 ans=yes
20970 *) ans=no
20971 esac
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
20973 $as_echo "$ans" >&6; }
20975 esac
20977 case "$host" in
20978 *-*-sunos4*)
20980 $as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
20983 esac
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
20986 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
20987 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then :
20988 $as_echo_n "(cached) " >&6
20989 else
20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h. */
20992 #include <sys/time.h>
20994 main ()
20997 gettimeofday((struct timeval*)0,(struct timezone*)0);
20998 settimeofday((struct timeval*)0,(struct timezone*)0);
21001 return 0;
21003 _ACEOF
21004 if ac_fn_c_try_compile "$LINENO"; then :
21005 ac_cv_func_Xettimeofday_nargs=2
21006 else
21007 ac_cv_func_Xettimeofday_nargs=1
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5
21013 $as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; }
21014 if test $ac_cv_func_Xettimeofday_nargs = 1; then
21016 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
21021 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
21022 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then :
21023 $as_echo_n "(cached) " >&6
21024 else
21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21028 #ifdef HAVE_SYS_TYPES_H
21029 # include <sys/types.h>
21030 #endif
21031 #ifdef HAVE_UNISTD_H
21032 # include <unistd.h>
21033 #endif
21036 main ()
21038 setpgrp(0,0);
21040 return 0;
21042 _ACEOF
21043 if ac_fn_c_try_compile "$LINENO"; then :
21044 ac_cv_func_setpgrp_nargs=2
21045 else
21046 ac_cv_func_setpgrp_nargs=0
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5
21052 $as_echo "$ac_cv_func_setpgrp_nargs" >&6; }
21053 if test $ac_cv_func_setpgrp_nargs = 0; then
21055 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
21059 save_CFLAGS=$CFLAGS
21060 CFLAGS="$CFLAGS -I$srcdir/include"
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5
21063 $as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; }
21064 if test "${ac_cv_func_qsort_argtype+set}" = set; then :
21065 $as_echo_n "(cached) " >&6
21066 else
21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h. */
21070 #include "l_stdlib.h"
21072 #ifdef HAVE_PROTOTYPES
21073 #define P(x) x
21074 #else
21075 #define P(x) ()
21076 #endif
21078 extern void *base;
21079 extern sortfunc P((const void *, const void *));
21080 int sortfunc(a, b)
21081 const void *a;
21082 const void *b; { return 0; }
21085 main ()
21088 qsort(base, 2, sizeof(char *), sortfunc);
21091 return 0;
21093 _ACEOF
21094 if ac_fn_c_try_compile "$LINENO"; then :
21095 ac_cv_func_qsort_argtype=void
21096 else
21097 ac_cv_func_qsort_argtype=char
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
21103 $as_echo "$ac_cv_func_qsort_argtype" >&6; }
21104 case "$ac_cv_func_qsort_argtype" in
21105 void)
21107 $as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h
21110 esac
21112 CFLAGS=$save_CFLAGS
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
21115 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
21116 if test "${ac_cv_decl_errno+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21118 else
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21121 #ifdef HAVE_ERRNO_H
21122 #include <errno.h>
21123 #endif
21125 main ()
21127 errno = 0;
21129 return 0;
21131 _ACEOF
21132 if ac_fn_c_try_compile "$LINENO"; then :
21133 ac_cv_decl_errno=no
21134 else
21135 ac_cv_decl_errno=yes
21137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
21140 $as_echo "$ac_cv_decl_errno" >&6; }
21141 case "$ac_cv_decl_errno" in
21142 yes)
21143 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
21145 esac
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
21148 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
21149 if test "${ac_cv_decl_h_errno+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21151 else
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21154 #include <sys/types.h>
21155 #ifdef HAVE_NETINET_IN_H
21156 #include <netinet/in.h>
21157 #endif
21158 #ifdef HAVE_ARPA_NAMESER_H
21159 #include <arpa/nameser.h>
21160 #endif
21161 #ifdef HAVE_NETDB_H
21162 #include <netdb.h>
21163 #endif
21164 #ifdef HAVE_RESOLV_H
21165 #include <resolv.h>
21166 #endif
21168 main ()
21170 extern int h_errno;
21172 return 0;
21174 _ACEOF
21175 if ac_fn_c_try_compile "$LINENO"; then :
21176 ac_cv_decl_h_errno=yes
21177 else
21178 ac_cv_decl_h_errno=no
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5
21183 $as_echo "$ac_cv_decl_h_errno" >&6; }
21184 case "$ac_cv_decl_h_errno" in
21185 yes)
21186 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
21188 esac
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5
21191 $as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; }
21192 if test "${ac_cv_decl_sys_errlist+set}" = set; then :
21193 $as_echo_n "(cached) " >&6
21194 else
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197 #include <stdio.h>
21198 #ifdef HAVE_ERRNO_H
21199 #include <errno.h>
21200 #endif
21202 main ()
21204 extern char *sys_errlist[];
21207 return 0;
21209 _ACEOF
21210 if ac_fn_c_try_compile "$LINENO"; then :
21211 ac_cv_decl_sys_errlist=yes
21212 else
21213 ac_cv_decl_sys_errlist=no
21215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5
21218 $as_echo "$ac_cv_decl_sys_errlist" >&6; }
21219 case "$ac_cv_decl_sys_errlist" in
21220 yes)
21221 $as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h
21223 esac
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
21226 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
21227 if test "${ac_cv_decl_syscall+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229 else
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21233 #ifdef HAVE_SYS_TYPES_H
21234 # include <sys/types.h>
21235 #endif
21236 #ifdef HAVE_UNISTD_H
21237 # include <unistd.h>
21238 #endif
21239 #ifdef HAVE_PROTOTYPES
21240 #define P(x) x
21241 #else
21242 #define P(x) ()
21243 #endif
21246 main ()
21248 extern int syscall P((int, ...));
21250 return 0;
21252 _ACEOF
21253 if ac_fn_c_try_compile "$LINENO"; then :
21254 ac_cv_decl_syscall=yes
21255 else
21256 ac_cv_decl_syscall=no
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5
21261 $as_echo "$ac_cv_decl_syscall" >&6; }
21262 case "$ac_cv_decl_syscall" in
21263 yes)
21264 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
21266 esac
21268 case "$host" in
21269 *-*-aix4.3.*)
21271 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
21272 # Needed for XLC under AIX 4.3.2
21274 *-*-mpeix*)
21276 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21279 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
21282 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21285 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21288 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21291 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21294 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21297 *-*-osf[45]*)
21299 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
21302 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
21305 *-*-qnx*)
21307 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21310 *-*-riscos4*)
21312 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21315 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
21318 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
21321 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
21324 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
21327 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21330 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
21333 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21336 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21339 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
21342 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
21345 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
21348 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21351 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
21354 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21357 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
21360 *-*-solaris2*)
21362 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
21365 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
21367 case "$host" in
21368 *-*-solaris2.4)
21370 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21373 esac
21375 *-*-sunos4*)
21377 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21380 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
21383 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
21386 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
21389 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
21392 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
21395 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21398 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
21401 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
21404 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21407 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21410 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
21413 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
21415 case "`basename $ac_cv_prog_CC`" in
21416 acc*) ;;
21418 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
21421 esac
21423 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
21426 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21429 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
21432 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21435 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
21438 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
21441 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
21444 *-*-ultrix4*)
21446 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
21449 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
21452 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
21455 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
21458 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
21461 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
21464 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
21467 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
21470 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
21473 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
21476 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
21479 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
21482 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
21485 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
21488 esac
21490 case "$host" in
21491 *-*-sco3.2*)
21493 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
21496 esac
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5
21499 $as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; }
21500 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then :
21501 $as_echo_n "(cached) " >&6
21502 else
21503 ans=no
21504 case "$host" in
21505 *-*-hpux[567]*)
21506 ans=yes
21508 esac
21509 ac_cv_var_rcvbuf_slop=$ans
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5
21512 $as_echo "$ac_cv_var_rcvbuf_slop" >&6; }
21513 case "$ac_cv_var_rcvbuf_slop" in
21514 yes)
21515 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
21517 esac
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
21520 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
21521 if test "${ac_cv_var_open_bcast_socket+set}" = set; then :
21522 $as_echo_n "(cached) " >&6
21523 else
21524 ans=yes
21525 case "$host" in
21526 *-*-domainos)
21527 ans=no
21529 esac
21530 ac_cv_var_open_bcast_socket=$ans
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5
21533 $as_echo "$ac_cv_var_open_bcast_socket" >&6; }
21534 case "$ac_cv_var_open_bcast_socket" in
21535 yes)
21536 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
21538 esac
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5
21541 $as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; }
21542 if test "${ac_cv_var_hpux_findconfig+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21544 else
21545 ans=no
21546 case "$host" in
21547 *-*-hpux*)
21548 ans=yes
21550 esac
21551 ac_cv_var_hpux_findconfig=$ans
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5
21554 $as_echo "$ac_cv_var_hpux_findconfig" >&6; }
21555 case "$ac_cv_var_hpux_findconfig" in
21556 yes)
21557 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
21559 esac
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
21562 $as_echo_n "checking if process groups are set with -pid... " >&6; }
21563 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then :
21564 $as_echo_n "(cached) " >&6
21565 else
21566 case "$host" in
21567 *-*-hpux[567]*)
21568 ans=no
21570 *-*-hpux*)
21571 ans=yes
21573 *-*-*linux*)
21574 ans=yes
21576 *-*-sunos3*)
21577 ans=yes
21579 *-*-ultrix2*)
21580 ans=yes
21583 ans=no
21585 esac
21586 ac_cv_arg_setpgrp_negpid=$ans
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5
21589 $as_echo "$ac_cv_arg_setpgrp_negpid" >&6; }
21590 case "$ac_cv_arg_setpgrp_negpid" in
21591 yes)
21592 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
21594 esac
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
21597 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
21598 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then :
21599 $as_echo_n "(cached) " >&6
21600 else
21601 case "$host" in
21602 *-*-bsdi[23]*)
21603 ans=yes
21605 *-*-freebsd*)
21606 ans=yes
21608 *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7])
21609 ans=yes
21611 *-*-openbsd*)
21612 ans=yes
21614 *-*-osf*)
21615 ans=yes
21617 *-*-darwin*)
21618 ans=yes
21620 *) ans=no
21622 esac
21623 ac_cv_func_ctty_for_f_setown=$ans
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctty_for_f_setown" >&5
21626 $as_echo "$ac_cv_func_ctty_for_f_setown" >&6; }
21627 case "$ac_cv_func_ctty_for_f_setown" in
21628 yes)
21629 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
21631 esac
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5
21634 $as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; }
21635 if test "${ac_cv_os_routeupdates+set}" = set; then :
21636 $as_echo_n "(cached) " >&6
21637 else
21638 case "$host" in
21639 *-*-netbsd*)
21640 ans=yes
21642 *) ans=no
21644 esac
21645 ac_cv_os_routeupdates=$ans
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5
21648 $as_echo "$ac_cv_os_routeupdates" >&6; }
21649 case "$ac_cv_os_routeupdates" in
21650 yes)
21651 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
21653 esac
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
21656 $as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; }
21657 if test "${ac_cv_os_wildcardreuse+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 case "$host" in
21661 *-*-*linux*)
21662 ans=yes
21664 *) ans=no
21666 esac
21667 ac_cv_os_wildcardreuse=$ans
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5
21670 $as_echo "$ac_cv_os_wildcardreuse" >&6; }
21671 case "$ac_cv_os_wildcardreuse" in
21672 yes)
21673 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
21675 esac
21677 ntp_warning='GRONK'
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
21679 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
21680 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
21681 yes*)
21682 ntp_warning=''
21683 ans='clock_settime()'
21685 noyes*)
21686 ntp_warning='But clock_settime() would be better (if we had it)'
21687 ans='settimeofday()'
21689 nonoyes)
21690 ntp_warning='Which is the worst of the three'
21691 ans='stime()'
21694 case "$build" in
21695 $host) ntp_warning='Which leaves us with nothing to use!'
21696 ans=none
21698 esac
21699 esac
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
21701 $as_echo "$ans" >&6; }
21702 case "$ntp_warning" in
21703 '') ;;
21704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
21705 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
21707 esac
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5
21710 $as_echo_n "checking if we have a losing syscall()... " >&6; }
21711 if test "${ac_cv_var_syscall_bug+set}" = set; then :
21712 $as_echo_n "(cached) " >&6
21713 else
21714 case "$host" in
21715 *-*-solaris2.4*)
21716 ans=yes
21718 *) ans=no
21720 esac
21721 ac_cv_var_syscall_bug=$ans
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5
21724 $as_echo "$ac_cv_var_syscall_bug" >&6; }
21725 case "$ac_cv_var_syscall_bug" in
21726 yes)
21727 $as_echo "#define SYSCALL_BUG 1" >>confdefs.h
21729 esac
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
21732 $as_echo_n "checking for SIGIO... " >&6; }
21733 if test "${ac_cv_hdr_def_sigio+set}" = set; then :
21734 $as_echo_n "(cached) " >&6
21735 else
21736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21737 /* end confdefs.h. */
21738 #include <signal.h>
21739 #ifdef SIGIO
21741 #endif
21743 _ACEOF
21744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21745 $EGREP "yes" >/dev/null 2>&1; then :
21746 ac_cv_hdr_def_sigio=yes
21747 else
21748 ac_cv_hdr_def_sigio=no
21750 rm -f conftest*
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5
21754 $as_echo "$ac_cv_hdr_def_sigio" >&6; }
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
21757 $as_echo_n "checking if we want to use signalled IO... " >&6; }
21758 if test "${ac_cv_var_signalled_io+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21760 else
21761 ans=no
21762 case "$ac_cv_hdr_def_sigio" in
21763 yes)
21764 ans=yes
21765 case "$host" in
21766 alpha*-dec-osf4*|alpha*-dec-osf5*)
21767 ans=no
21769 *-convex-*)
21770 ans=no
21772 *-dec-*)
21773 ans=no
21775 *-pc-cygwin*)
21776 ans=no
21778 *-sni-sysv*)
21779 ans=no
21781 *-univel-sysv*)
21782 ans=no
21784 *-*-irix6*)
21785 ans=no
21787 *-*-freebsd*)
21788 ans=no
21790 *-*-*linux*)
21791 ans=no
21793 *-*-unicosmp*)
21794 ans=no
21796 esac
21798 esac
21799 ac_cv_var_signalled_io=$ans
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5
21802 $as_echo "$ac_cv_var_signalled_io" >&6; }
21803 case "$ac_cv_var_signalled_io" in
21804 yes)
21805 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
21807 esac
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
21810 $as_echo_n "checking for SIGPOLL... " >&6; }
21811 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then :
21812 $as_echo_n "(cached) " >&6
21813 else
21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h. */
21816 #include <signal.h>
21817 #ifdef SIGPOLL
21819 #endif
21821 _ACEOF
21822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21823 $EGREP "yes" >/dev/null 2>&1; then :
21824 ac_cv_hdr_def_sigpoll=yes
21825 else
21826 ac_cv_hdr_def_sigpoll=no
21828 rm -f conftest*
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5
21832 $as_echo "$ac_cv_hdr_def_sigpoll" >&6; }
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
21835 $as_echo_n "checking for SIGSYS... " >&6; }
21836 if test "${ac_cv_hdr_def_sigsys+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21841 #include <signal.h>
21842 #ifdef SIGSYS
21844 #endif
21846 _ACEOF
21847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21848 $EGREP "yes" >/dev/null 2>&1; then :
21849 ac_cv_hdr_def_sigsys=yes
21850 else
21851 ac_cv_hdr_def_sigsys=no
21853 rm -f conftest*
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5
21857 $as_echo "$ac_cv_hdr_def_sigsys" >&6; }
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
21860 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
21861 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 ans=no
21865 case "$ac_cv_hdr_def_sigpoll" in
21866 yes)
21867 case "$host" in
21868 mips-sgi-irix*)
21869 ans=no
21871 vax-dec-bsd)
21872 ans=no
21874 *-pc-cygwin*)
21875 ans=no
21877 *-sni-sysv*)
21878 ans=no
21880 *-*-aix[456]*)
21881 ans=no
21883 *-*-hpux*)
21884 ans=no
21886 *-*-*linux*)
21887 ans=no
21889 *-*-osf*)
21890 ans=no
21892 *-*-qnx*)
21893 ans=no
21895 *-*-sunos*)
21896 ans=no
21898 *-*-solaris*)
21899 ans=no
21901 *-*-ultrix*)
21902 ans=no
21904 *-*-unicosmp*)
21905 ans=no
21907 *) ans=yes
21909 esac
21911 esac
21912 ac_cv_var_use_udp_sigpoll=$ans
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5
21915 $as_echo "$ac_cv_var_use_udp_sigpoll" >&6; }
21916 case "$ac_cv_var_use_udp_sigpoll" in
21917 yes)
21918 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
21920 esac
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
21923 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
21924 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then :
21925 $as_echo_n "(cached) " >&6
21926 else
21927 ans=no
21928 case "$ac_cv_hdr_def_sigpoll" in
21929 yes)
21930 case "$host" in
21931 mips-sgi-irix*)
21932 ans=no
21934 vax-dec-bsd)
21935 ans=no
21937 *-pc-cygwin*)
21938 ans=no
21940 *-sni-sysv*)
21941 ans=no
21943 *-*-aix[456]*)
21944 ans=no
21946 *-*-hpux*)
21947 ans=no
21949 *-*-*linux*)
21950 ans=no
21952 *-*-osf*)
21953 ans=no
21955 *-*-sunos*)
21956 ans=no
21958 *-*-ultrix*)
21959 ans=no
21961 *-*-qnx*)
21962 ans=no
21964 *-*-unicosmp*)
21965 ans=no
21967 *) ans=yes
21969 esac
21971 esac
21972 ac_cv_var_use_tty_sigpoll=$ans
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5
21975 $as_echo "$ac_cv_var_use_tty_sigpoll" >&6; }
21976 case "$ac_cv_var_use_tty_sigpoll" in
21977 yes)
21978 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
21980 esac
21982 case "$ac_cv_header_sys_sio_h" in
21983 yes)
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
21985 $as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
21986 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21991 #include <sys/sio.h>
21992 #ifdef TIOCDCDTIMESTAMP
21994 #endif
21996 _ACEOF
21997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21998 $EGREP "yes" >/dev/null 2>&1; then :
21999 ac_cv_hdr_def_tiocdcdtimestamp=yes
22000 else
22001 ac_cv_hdr_def_tiocdcdtimestamp=no
22003 rm -f conftest*
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
22007 $as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; }
22009 esac
22011 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
22012 yes)
22013 ac_cv_var_oncore_ok=yes
22015 esac
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5
22018 $as_echo_n "checking if nlist() values might require extra indirection... " >&6; }
22019 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then :
22020 $as_echo_n "(cached) " >&6
22021 else
22022 ans=no
22023 case "$host" in
22024 *-*-aix*)
22025 ans=yes
22027 esac
22028 ac_cv_var_nlist_extra_indirection=$ans
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5
22031 $as_echo "$ac_cv_var_nlist_extra_indirection" >&6; }
22032 case "$ac_cv_var_nlist_extra_indirection" in
22033 yes)
22034 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
22036 esac
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
22039 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
22040 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then :
22041 $as_echo_n "(cached) " >&6
22042 else
22043 ans=no
22044 case "$host" in
22045 *-*-aix*)
22046 ans=40
22048 esac
22049 ac_cv_var_min_rec_tickadj=$ans
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5
22052 $as_echo "$ac_cv_var_min_rec_tickadj" >&6; }
22053 case "$ac_cv_var_min_rec_tickadj" in
22054 ''|no) ;;
22056 cat >>confdefs.h <<_ACEOF
22057 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
22058 _ACEOF
22060 esac
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
22063 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
22064 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 ans=no
22068 case "$host" in
22069 i?86-*-*linux*)
22070 ans=yes
22072 mips-sgi-irix*)
22073 ans=yes
22075 i?86-*-freebsd[123].*)
22077 i?86-*-freebsd*)
22078 ans=yes
22080 *-*-unicosmp*)
22081 ans=yes
22083 esac
22084 ac_cv_var_no_parenb_ignpar=$ans
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5
22087 $as_echo "$ac_cv_var_no_parenb_ignpar" >&6; }
22088 case "$ac_cv_var_no_parenb_ignpar" in
22089 yes)
22090 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
22092 esac
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
22095 $as_echo_n "checking if we're including debugging code... " >&6; }
22096 # Check whether --enable-debugging was given.
22097 if test "${enable_debugging+set}" = set; then :
22098 enableval=$enable_debugging; ntp_ok=$enableval
22099 else
22100 ntp_ok=yes
22103 if test "$ntp_ok" = "yes"; then
22105 $as_echo "#define DEBUG 1" >>confdefs.h
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22109 $as_echo "$ntp_ok" >&6; }
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5
22112 $as_echo_n "checking if we including processing time debugging code... " >&6; }
22113 # Check whether --enable-debug-timing was given.
22114 if test "${enable_debug_timing+set}" = set; then :
22115 enableval=$enable_debug_timing; ntp_ok=$enableval
22116 else
22117 ntp_ok=no
22120 if test "$ntp_ok" = "yes"; then
22122 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22126 $as_echo "$ntp_ok" >&6; }
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
22129 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
22130 # Check whether --enable-dst_minutes was given.
22131 if test "${enable_dst_minutes+set}" = set; then :
22132 enableval=$enable_dst_minutes; ans=$enableval
22133 else
22134 ans=60
22139 cat >>confdefs.h <<_ACEOF
22140 #define DSTMINUTES $ans
22141 _ACEOF
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22144 $as_echo "$ans" >&6; }
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry on permanent DNS errors" >&5
22147 $as_echo_n "checking if ntpd will retry on permanent DNS errors... " >&6; }
22148 # Check whether --enable-ignore-dns-errors was given.
22149 if test "${enable_ignore_dns_errors+set}" = set; then :
22150 enableval=$enable_ignore_dns_errors; ans=$enableval
22151 else
22152 ans=no
22156 case "$ans" in
22157 yes)
22159 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
22161 esac
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22163 $as_echo "$ans" >&6; }
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
22166 $as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
22167 if test "${ac_cv_var_tty_clk+set}" = set; then :
22168 $as_echo_n "(cached) " >&6
22169 else
22170 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
22171 *yes*) ac_cv_var_tty_clk=yes ;;
22172 *) ac_cv_var_tty_clk=no ;;
22173 esac
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5
22176 $as_echo "$ac_cv_var_tty_clk" >&6; }
22177 case "$ac_cv_var_tty_clk" in
22178 yes)
22179 $as_echo "#define TTYCLK 1" >>confdefs.h
22181 esac
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
22184 $as_echo_n "checking for the ppsclock streams module... " >&6; }
22185 if test "${ac_cv_var_ppsclock+set}" = set; then :
22186 $as_echo_n "(cached) " >&6
22187 else
22188 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5
22191 $as_echo "$ac_cv_var_ppsclock" >&6; }
22192 case "$ac_cv_var_ppsclock" in
22193 yes)
22194 $as_echo "#define PPS 1" >>confdefs.h
22196 esac
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
22199 $as_echo_n "checking for kernel multicast support... " >&6; }
22200 if test "${ac_cv_var_mcast+set}" = set; then :
22201 $as_echo_n "(cached) " >&6
22202 else
22203 ac_cv_var_mcast=no
22204 case "$host" in
22205 i386-sequent-sysv4) ;;
22206 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22208 #include <netinet/in.h>
22209 #ifdef IP_ADD_MEMBERSHIP
22211 #endif
22213 _ACEOF
22214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22215 $EGREP "yes" >/dev/null 2>&1; then :
22216 ac_cv_var_mcast=yes
22218 rm -f conftest*
22220 esac
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
22223 $as_echo "$ac_cv_var_mcast" >&6; }
22224 case "$ac_cv_var_mcast" in
22225 yes)
22227 $as_echo "#define MCAST 1" >>confdefs.h
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
22230 $as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
22231 if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
22232 $as_echo_n "(cached) " >&6
22233 else
22234 case "$host" in
22235 *-*-netbsd*|*-*-*linux*)
22236 ac_cv_var_typeof_ip_multicast_loop=u_int
22238 *-*-winnt*)
22239 ac_cv_var_typeof_ip_multicast_loop=BOOL
22241 *) ac_cv_var_typeof_ip_multicast_loop=u_char
22243 esac
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
22246 $as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
22248 cat >>confdefs.h <<_ACEOF
22249 #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
22250 _ACEOF
22253 esac
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
22256 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
22257 if test "${ac_cv_var_ntp_syscalls+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22259 else
22260 ac_cv_var_ntp_syscalls=no
22261 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
22262 yesyes*)
22263 ac_cv_var_ntp_syscalls=libc
22265 *yes)
22266 ac_cv_var_ntp_syscalls=inline
22268 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h. */
22270 #include <sys/syscall.h>
22271 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
22273 #endif
22275 _ACEOF
22276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22277 $EGREP "yes" >/dev/null 2>&1; then :
22278 ac_cv_var_ntp_syscalls=kernel
22280 rm -f conftest*
22283 esac
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5
22286 $as_echo "$ac_cv_var_ntp_syscalls" >&6; }
22287 case "$ac_cv_var_ntp_syscalls" in
22288 libc)
22290 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
22293 kernel)
22295 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
22300 esac
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
22303 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
22304 if test "${ac_cv_var_sta_fll+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22306 else
22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22309 #include <sys/timex.h>
22310 #ifdef STA_FLL
22312 #endif
22314 _ACEOF
22315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22316 $EGREP "yes" >/dev/null 2>&1; then :
22317 ac_cv_var_sta_fll=yes
22318 else
22319 ac_cv_var_sta_fll=no
22321 rm -f conftest*
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5
22325 $as_echo "$ac_cv_var_sta_fll" >&6; }
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
22328 $as_echo_n "checking if we have kernel PLL support... " >&6; }
22329 if test "${ac_cv_var_kernel_pll+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
22333 *no*)
22334 ac_cv_var_kernel_pll=no
22336 *) ac_cv_var_kernel_pll=yes
22338 esac
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5
22341 $as_echo "$ac_cv_var_kernel_pll" >&6; }
22342 case "$ac_cv_var_kernel_pll" in
22343 yes)
22345 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
22348 esac
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
22351 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
22352 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22354 else
22355 ans=no
22356 case "$host" in
22357 *-fujitsu-uxp*)
22358 ans=yes
22360 *-ncr-sysv4*)
22361 ans=yes
22363 *-univel-sysv*)
22364 ans=yes
22366 esac
22367 ac_cv_var_size_returned_in_buffer=$ans
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5
22370 $as_echo "$ac_cv_var_size_returned_in_buffer" >&6; }
22371 case "$ac_cv_var_size_returned_in_buffer" in
22372 yes)
22373 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
22375 esac
22378 # Check for ioctls TIOCGPPSEV
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5
22380 $as_echo_n "checking ioctl TIOCGPPSEV... " >&6; }
22381 if test "$ac_cv_header_termios_h" = "yes"; then
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <termios.h>
22385 #ifdef TIOCGPPSEV
22387 #endif
22389 _ACEOF
22390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22391 $EGREP "yes" >/dev/null 2>&1; then :
22392 ntp_ok=yes
22393 else
22394 ntp_ok=no
22396 rm -f conftest*
22398 else
22399 ntp_ok=no
22401 if test "$ntp_ok" = "yes"; then
22403 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
22405 ac_cv_var_oncore_ok=yes
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22408 $as_echo "$ntp_ok" >&6; }
22410 # Check for ioctls TIOCSPPS
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5
22412 $as_echo_n "checking ioctl TIOCSPPS... " >&6; }
22413 if test "$ac_cv_header_termios_h" = "yes"; then
22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #include <termios.h>
22417 #ifdef TIOCSPPS
22419 #endif
22421 _ACEOF
22422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22423 $EGREP "yes" >/dev/null 2>&1; then :
22424 ntp_ok=yes
22425 else
22426 ntp_ok=no
22428 rm -f conftest*
22430 else
22431 ntp_ok=no
22434 if test "$ntp_ok" = "yes"; then
22436 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22440 $as_echo "$ntp_ok" >&6; }
22442 # Check for ioctls CIOGETEV
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5
22444 $as_echo_n "checking ioctl CIOGETEV... " >&6; }
22445 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22448 #include <sys/ppsclock.h>
22449 #ifdef CIOGETEV
22451 #endif
22453 _ACEOF
22454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22455 $EGREP "yes" >/dev/null 2>&1; then :
22456 ntp_ok=yes
22457 else
22458 ntp_ok=no
22460 rm -f conftest*
22462 else
22463 ntp_ok=no
22465 if test "$ntp_ok" = "yes"; then
22466 ac_cv_var_oncore_ok=yes
22468 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22472 $as_echo "$ntp_ok" >&6; }
22475 # ATOM/PPSAPI stuff.
22477 # ATOM used to require struct timespec, but that's been fixed now.
22479 # case "$ac_cv_struct_timespec" in
22480 # 'yes')
22481 # ac_cv_var_atom_ok=yes
22482 # ;;
22483 # esac
22484 ac_cv_var_atom_ok=yes
22486 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
22488 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
22490 # The PPSAPI needs struct timespec.
22492 # The PPSAPI also needs a timepps header.
22494 case "$ac_cv_c_inline$ac_cv_struct_timespec" in
22495 inlineyes)
22496 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
22497 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
22499 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
22501 ac_cv_var_jupiter_ok=yes
22502 ac_cv_var_oncore_ok=yes
22503 ac_cv_var_parse_ok=yes
22504 ac_cv_var_ripe_ncc_ok=yes
22506 esac
22508 esac
22510 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
22511 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
22512 if test "x$ac_cv_header_linux_serial_h" = x""yes; then :
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
22518 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
22519 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
22520 yesyes)
22521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h. */
22523 #include <sys/time.h>
22524 typedef int u_int;
22526 #include <sys/ppsclock.h>
22527 #include <linux/serial.h>
22529 #ifdef TIOCGSERIAL
22530 #ifdef TIOCSSERIAL
22531 #ifdef ASYNC_PPS_CD_POS
22532 #ifdef ASYNC_PPS_CD_NEG
22533 #ifdef CIOGETEV
22535 #endif
22536 #endif
22537 #endif
22538 #endif
22539 #endif
22541 _ACEOF
22542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22543 $EGREP "yes" >/dev/null 2>&1; then :
22544 ntp_ok=yes
22546 rm -f conftest*
22550 ntp_ok=no
22552 esac
22553 if test "$ntp_ok" = "yes"; then
22555 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22559 $as_echo "$ntp_ok" >&6; }
22561 # Check for SHMEM_STATUS support
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
22563 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
22564 case "$ac_cv_header_sys_mman_h" in
22565 yes) ntp_ok=yes ;;
22566 *) ntp_ok=no ;;
22567 esac
22568 if test "$ntp_ok" = "yes"; then
22570 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22574 $as_echo "$ntp_ok" >&6; }
22577 ntp_refclock=no
22579 # HPUX only, and by explicit request
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
22581 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
22582 # Check whether --enable-BANCOMM was given.
22583 if test "${enable_BANCOMM+set}" = set; then :
22584 enableval=$enable_BANCOMM; ntp_ok=$enableval
22585 else
22586 ntp_ok=no
22589 if test "$ntp_ok" = "yes"; then
22590 ntp_refclock=yes
22592 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22596 $as_echo "$ntp_ok" >&6; }
22597 case "$ntp_ok$host" in
22598 yes*-*-hpux*) ;;
22599 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22600 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
22601 esac
22603 #HPUX only, and only by explicit request
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
22605 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
22606 # Check whether --enable-GPSVME was given.
22607 if test "${enable_GPSVME+set}" = set; then :
22608 enableval=$enable_GPSVME; ntp_ok=$enableval
22609 else
22610 ntp_ok=no
22613 if test "$ntp_ok" = "yes"; then
22614 ntp_refclock=yes
22616 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22620 $as_echo "$ntp_ok" >&6; }
22621 case "$ntp_ok$host" in
22622 yes*-*-hpux*) ;;
22623 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
22624 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
22625 esac
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
22628 $as_echo_n "checking for PCL720 clock support... " >&6; }
22629 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
22630 yesyesyes)
22632 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
22634 ans=yes
22637 ans=no
22639 esac
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
22641 $as_echo "$ans" >&6; }
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
22644 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
22645 # Check whether --enable-all-clocks was given.
22646 if test "${enable_all_clocks+set}" = set; then :
22647 enableval=$enable_all_clocks; ntp_eac=$enableval
22648 else
22649 ntp_eac=yes
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
22653 $as_echo "$ntp_eac" >&6; }
22655 # HMS: Should we also require ac_cv_var_parse_ok?
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
22657 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
22658 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
22659 yes*yes*)
22660 ntp_canparse=yes
22662 *) ntp_canparse=no
22664 esac
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
22666 $as_echo "$ntp_canparse" >&6; }
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
22669 $as_echo_n "checking if we have support for audio clocks... " >&6; }
22670 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
22671 *yes*)
22672 ntp_canaudio=yes
22674 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
22677 *) ntp_canaudio=no ;;
22678 esac
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
22680 $as_echo "$ntp_canaudio" >&6; }
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
22683 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
22684 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
22685 yesyes)
22686 ntp_canshm=yes
22688 *) ntp_canshm=no ;;
22689 esac
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
22691 $as_echo "$ntp_canshm" >&6; }
22693 # Requires modem control
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
22695 $as_echo_n "checking ACTS modem service... " >&6; }
22696 # Check whether --enable-ACTS was given.
22697 if test "${enable_ACTS+set}" = set; then :
22698 enableval=$enable_ACTS; ntp_ok=$enableval
22699 else
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22702 #include <termios.h>
22703 #ifdef HAVE_SYS_IOCTL_H
22704 #include <sys/ioctl.h>
22705 #endif
22706 #ifdef TIOCMBIS
22708 #endif
22710 _ACEOF
22711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22712 $EGREP "yes" >/dev/null 2>&1; then :
22713 ntp_ok=$ntp_eac
22714 else
22715 ntp_ok=no
22717 rm -f conftest*
22721 if test "$ntp_ok" = "yes"; then
22722 ntp_refclock=yes
22724 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22728 $as_echo "$ntp_ok" >&6; }
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
22731 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
22732 # Check whether --enable-ARBITER was given.
22733 if test "${enable_ARBITER+set}" = set; then :
22734 enableval=$enable_ARBITER; ntp_ok=$enableval
22735 else
22736 ntp_ok=$ntp_eac
22739 if test "$ntp_ok" = "yes"; then
22740 ntp_refclock=yes
22742 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22746 $as_echo "$ntp_ok" >&6; }
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
22749 $as_echo_n "checking Arcron MSF receiver... " >&6; }
22750 # Check whether --enable-ARCRON_MSF was given.
22751 if test "${enable_ARCRON_MSF+set}" = set; then :
22752 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
22753 else
22754 ntp_ok=$ntp_eac
22757 if test "$ntp_ok" = "yes"; then
22758 ntp_refclock=yes
22760 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22764 $as_echo "$ntp_ok" >&6; }
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
22767 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
22768 # Check whether --enable-AS2201 was given.
22769 if test "${enable_AS2201+set}" = set; then :
22770 enableval=$enable_AS2201; ntp_ok=$enableval
22771 else
22772 ntp_ok=$ntp_eac
22775 if test "$ntp_ok" = "yes"; then
22776 ntp_refclock=yes
22778 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22782 $as_echo "$ntp_ok" >&6; }
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
22785 $as_echo_n "checking ATOM PPS interface... " >&6; }
22786 # Check whether --enable-ATOM was given.
22787 if test "${enable_ATOM+set}" = set; then :
22788 enableval=$enable_ATOM; ntp_ok=$enableval
22789 else
22790 ntp_ok=$ntp_eac
22793 case "$ac_cv_var_atom_ok" in
22794 no) ntp_ok=no ;;
22795 esac
22796 if test "$ntp_ok" = "yes"; then
22797 ntp_refclock=yes
22799 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22803 $as_echo "$ntp_ok" >&6; }
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
22806 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
22807 # Check whether --enable-CHRONOLOG was given.
22808 if test "${enable_CHRONOLOG+set}" = set; then :
22809 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
22810 else
22811 ntp_ok=$ntp_eac
22814 if test "$ntp_ok" = "yes"; then
22815 ntp_refclock=yes
22817 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22821 $as_echo "$ntp_ok" >&6; }
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
22824 $as_echo_n "checking CHU modem/decoder... " >&6; }
22825 # Check whether --enable-CHU was given.
22826 if test "${enable_CHU+set}" = set; then :
22827 enableval=$enable_CHU; ntp_ok=$enableval
22828 else
22829 ntp_ok=$ntp_eac
22832 if test "$ntp_ok" = "yes"; then
22833 ntp_refclock=yes
22835 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22839 $as_echo "$ntp_ok" >&6; }
22840 ac_refclock_chu=$ntp_ok
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
22843 $as_echo_n "checking CHU audio/decoder... " >&6; }
22844 # Check whether --enable-AUDIO-CHU was given.
22845 if test "${enable_AUDIO_CHU+set}" = set; then :
22846 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
22847 else
22848 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
22849 *no*) ntp_ok=no ;;
22850 *) ntp_ok=yes ;;
22851 esac
22854 if test "$ntp_ok" = "yes"; then
22856 $as_echo "#define AUDIO_CHU 1" >>confdefs.h
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22860 $as_echo "$ntp_ok" >&6; }
22861 # We used to check for sunos/solaris target...
22862 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
22863 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
22864 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
22865 esac
22867 # Not under HP-UX
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
22869 $as_echo_n "checking Datum Programmable Time System... " >&6; }
22870 # Check whether --enable-DATUM was given.
22871 if test "${enable_DATUM+set}" = set; then :
22872 enableval=$enable_DATUM; ntp_ok=$enableval
22873 else
22874 case "$ac_cv_header_termios_h" in
22875 yes)
22876 ntp_ok=$ntp_eac
22878 *) ntp_ok=no
22880 esac
22883 if test "$ntp_ok" = "yes"; then
22884 ntp_refclock=yes
22886 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22890 $as_echo "$ntp_ok" >&6; }
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
22893 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
22894 # Check whether --enable-DUMBCLOCK was given.
22895 if test "${enable_DUMBCLOCK+set}" = set; then :
22896 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
22897 else
22898 ntp_ok=$ntp_eac
22901 if test "$ntp_ok" = "yes"; then
22902 ntp_refclock=yes
22904 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22908 $as_echo "$ntp_ok" >&6; }
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
22911 $as_echo_n "checking Forum Graphic GPS... " >&6; }
22912 # Check whether --enable-FG was given.
22913 if test "${enable_FG+set}" = set; then :
22914 enableval=$enable_FG; ntp_ok=$enableval
22915 else
22916 ntp_ok=$ntp_eac
22919 if test "$ntp_ok" = "yes"; then
22920 ntp_refclock=yes
22922 $as_echo "#define CLOCK_FG 1" >>confdefs.h
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22926 $as_echo "$ntp_ok" >&6; }
22928 # Requires modem control
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
22930 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
22931 # Check whether --enable-HEATH was given.
22932 if test "${enable_HEATH+set}" = set; then :
22933 enableval=$enable_HEATH; ntp_ok=$enableval
22934 else
22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22937 #include <termios.h>
22938 #ifdef HAVE_SYS_IOCTL_H
22939 #include <sys/ioctl.h>
22940 #endif
22941 #ifdef TIOCMBIS
22943 #endif
22945 _ACEOF
22946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22947 $EGREP "yes" >/dev/null 2>&1; then :
22948 ntp_ok=$ntp_eac
22949 else
22950 ntp_ok=no
22952 rm -f conftest*
22956 if test "$ntp_ok" = "yes"; then
22957 ntp_refclock=yes
22959 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22963 $as_echo "$ntp_ok" >&6; }
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
22966 $as_echo_n "checking for hopf serial clock device... " >&6; }
22967 # Check whether --enable-HOPFSERIAL was given.
22968 if test "${enable_HOPFSERIAL+set}" = set; then :
22969 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
22970 else
22971 ntp_ok=$ntp_eac
22974 if test "$ntp_ok" = "yes"; then
22975 ntp_refclock=yes
22977 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22981 $as_echo "$ntp_ok" >&6; }
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
22984 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
22985 # Check whether --enable-HOPFPCI was given.
22986 if test "${enable_HOPFPCI+set}" = set; then :
22987 enableval=$enable_HOPFPCI; ntp_ok=$enableval
22988 else
22989 ntp_ok=$ntp_eac
22992 if test "$ntp_ok" = "yes"; then
22993 ntp_refclock=yes
22995 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
22999 $as_echo "$ntp_ok" >&6; }
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
23002 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
23003 # Check whether --enable-HPGPS was given.
23004 if test "${enable_HPGPS+set}" = set; then :
23005 enableval=$enable_HPGPS; ntp_ok=$enableval
23006 else
23007 ntp_ok=$ntp_eac
23010 if test "$ntp_ok" = "yes"; then
23011 ntp_refclock=yes
23013 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23017 $as_echo "$ntp_ok" >&6; }
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
23020 $as_echo_n "checking IRIG audio decoder... " >&6; }
23021 # Check whether --enable-IRIG was given.
23022 if test "${enable_IRIG+set}" = set; then :
23023 enableval=$enable_IRIG; ntp_ok=$enableval
23024 else
23025 case "$ntp_eac$ntp_canaudio" in
23026 *no*) ntp_ok=no ;;
23027 *) ntp_ok=yes ;;
23028 esac
23031 if test "$ntp_ok" = "yes"; then
23032 ntp_refclock=yes
23034 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23038 $as_echo "$ntp_ok" >&6; }
23039 case "$ntp_ok$ntp_canaudio" in
23040 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23041 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23042 esac
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
23045 $as_echo_n "checking for JJY receiver... " >&6; }
23046 # Check whether --enable-JJY was given.
23047 if test "${enable_JJY+set}" = set; then :
23048 enableval=$enable_JJY; ntp_ok=$enableval
23049 else
23050 ntp_ok=$ntp_eac
23053 if test "$ntp_ok" = "yes"; then
23054 ntp_refclock=yes
23056 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23060 $as_echo "$ntp_ok" >&6; }
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
23063 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
23064 # Check whether --enable-JUPITER was given.
23065 if test "${enable_JUPITER+set}" = set; then :
23066 enableval=$enable_JUPITER; ntp_ok=$enableval
23067 else
23068 ntp_ok=$ntp_eac
23071 case "$ac_cv_var_jupiter_ok" in
23072 no) ntp_ok=no ;;
23073 esac
23074 if test "$ntp_ok" = "yes"; then
23075 ntp_refclock=yes
23077 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23081 $as_echo "$ntp_ok" >&6; }
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
23084 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
23085 # Check whether --enable-LEITCH was given.
23086 if test "${enable_LEITCH+set}" = set; then :
23087 enableval=$enable_LEITCH; ntp_ok=$enableval
23088 else
23089 ntp_ok=$ntp_eac
23092 if test "$ntp_ok" = "yes"; then
23093 ntp_refclock=yes
23095 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23099 $as_echo "$ntp_ok" >&6; }
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
23102 $as_echo_n "checking local clock reference... " >&6; }
23103 # Check whether --enable-LOCAL-CLOCK was given.
23104 if test "${enable_LOCAL_CLOCK+set}" = set; then :
23105 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
23106 else
23107 ntp_ok=$ntp_eac
23110 if test "$ntp_ok" = "yes"; then
23111 ntp_refclock=yes
23113 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23117 $as_echo "$ntp_ok" >&6; }
23120 # Not Ultrix
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
23122 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
23123 # Check whether --enable-MX4200 was given.
23124 if test "${enable_MX4200+set}" = set; then :
23125 enableval=$enable_MX4200; ntp_ok=$enableval
23126 else
23127 case "$ac_cv_var_ppsclock" in
23128 yes) ntp_ok=$ntp_eac
23130 *) ntp_ok=no
23132 esac
23135 if test "$ntp_ok" = "yes"; then
23136 ntp_refclock=yes
23138 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23142 $as_echo "$ntp_ok" >&6; }
23143 case "$ntp_ok$host" in
23144 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23145 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23146 esac
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
23149 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
23150 # Check whether --enable-NEOCLOCK4X was given.
23151 if test "${enable_NEOCLOCK4X+set}" = set; then :
23152 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
23153 else
23154 ntp_ok=$ntp_eac
23157 if test "$ntp_ok" = "yes"; then
23158 ntp_refclock=yes
23160 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23164 $as_echo "$ntp_ok" >&6; }
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
23167 $as_echo_n "checking NMEA GPS receiver... " >&6; }
23168 # Check whether --enable-NMEA was given.
23169 if test "${enable_NMEA+set}" = set; then :
23170 enableval=$enable_NMEA; ntp_ok=$enableval
23171 else
23172 ntp_ok=$ntp_eac
23175 if test "$ntp_ok" = "yes"; then
23176 ntp_refclock=yes
23178 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23182 $as_echo "$ntp_ok" >&6; }
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
23185 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
23186 # Check whether --enable-ONCORE was given.
23187 if test "${enable_ONCORE+set}" = set; then :
23188 enableval=$enable_ONCORE; ntp_ok=$enableval
23189 else
23190 ntp_ok=$ntp_eac
23193 case "$ac_cv_var_oncore_ok" in
23194 no) ntp_ok=no ;;
23195 esac
23196 if test "$ntp_ok" = "yes"; then
23197 ntp_refclock=yes
23199 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23203 $as_echo "$ntp_ok" >&6; }
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
23206 $as_echo_n "checking for Palisade clock... " >&6; }
23207 # Check whether --enable-PALISADE was given.
23208 if test "${enable_PALISADE+set}" = set; then :
23209 enableval=$enable_PALISADE; ntp_ok=$enableval
23210 else
23211 case "$ac_cv_header_termios_h" in
23212 yes)
23213 ntp_ok=$ntp_eac
23215 *) ntp_ok=no
23217 esac
23221 if test "$ntp_ok" = "yes"; then
23222 ntp_refclock=yes
23224 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23228 $as_echo "$ntp_ok" >&6; }
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
23231 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
23232 # Check whether --enable-PCF was given.
23233 if test "${enable_PCF+set}" = set; then :
23234 enableval=$enable_PCF; ntp_ok=$enableval
23235 else
23236 ntp_ok=$ntp_eac
23239 if test "$ntp_ok" = "yes"; then
23240 ntp_refclock=yes
23242 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23246 $as_echo "$ntp_ok" >&6; }
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
23249 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
23250 # Check whether --enable-PST was given.
23251 if test "${enable_PST+set}" = set; then :
23252 enableval=$enable_PST; ntp_ok=$enableval
23253 else
23254 ntp_ok=$ntp_eac
23257 if test "$ntp_ok" = "yes"; then
23258 ntp_refclock=yes
23260 $as_echo "#define CLOCK_PST 1" >>confdefs.h
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23264 $as_echo "$ntp_ok" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
23267 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
23268 # Check whether --enable-RIPENCC was given.
23269 if test "${enable_RIPENCC+set}" = set; then :
23270 enableval=$enable_RIPENCC; ntp_ok=$enableval
23271 else
23272 ntp_ok=no
23275 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
23276 case "$ac_cv_var_ripe_ncc_ok" in
23277 no) ntp_ok=no ;;
23278 esac
23279 if test "$ntp_ok" = "yes"; then
23280 ntp_refclock=yes
23282 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23286 $as_echo "$ntp_ok" >&6; }
23288 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
23289 # For *IX, we need sys/ipc.h and sys/shm.h.
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
23291 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
23292 # Check whether --enable-SHM was given.
23293 if test "${enable_SHM+set}" = set; then :
23294 enableval=$enable_SHM; ntp_ok=$enableval
23295 else
23296 case "$ntp_eac$ntp_canshm" in
23297 *no*) ntp_ok=no ;;
23298 *) ntp_ok=yes ;;
23299 esac
23302 if test "$ntp_ok" = "yes"; then
23303 ntp_refclock=yes
23305 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23309 $as_echo "$ntp_ok" >&6; }
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
23312 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
23313 # Check whether --enable-SPECTRACOM was given.
23314 if test "${enable_SPECTRACOM+set}" = set; then :
23315 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
23316 else
23317 ntp_ok=$ntp_eac
23320 if test "$ntp_ok" = "yes"; then
23321 ntp_refclock=yes
23323 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23327 $as_echo "$ntp_ok" >&6; }
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
23330 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
23331 # Check whether --enable-TPRO was given.
23332 if test "${enable_TPRO+set}" = set; then :
23333 enableval=$enable_TPRO; ntp_ok=$enableval
23334 else
23335 case "$ac_cv_header_sys_tpro_h" in
23336 yes)
23337 ntp_ok=$ntp_eac
23339 *) ntp_ok=no
23341 esac
23344 if test "$ntp_ok" = "yes"; then
23345 ntp_refclock=yes
23347 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23351 $as_echo "$ntp_ok" >&6; }
23352 case "$ntp_ok$ac_cv_header_sys_tpro" in
23353 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23354 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23355 esac
23358 # Not on a vax-dec-bsd
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
23360 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
23361 # Check whether --enable-TRUETIME was given.
23362 if test "${enable_TRUETIME+set}" = set; then :
23363 enableval=$enable_TRUETIME; ntp_ok=$enableval
23364 else
23365 case "$host" in
23366 vax-dec-bsd)
23367 ntp_ok=no
23370 ntp_ok=$ntp_eac
23372 esac
23376 if test "$ntp_ok" = "yes"; then
23377 ntp_refclock=yes
23379 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23383 $as_echo "$ntp_ok" >&6; }
23384 case "$ntp_ok$host" in
23385 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23386 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23387 esac
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
23390 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
23391 # Check whether --enable-TT560 was given.
23392 if test "${enable_TT560+set}" = set; then :
23393 enableval=$enable_TT560; ntp_ok=$enableval
23394 else
23395 ntp_ok=no
23398 if test "$ntp_ok" = "yes"; then
23399 ntp_refclock=yes
23401 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23405 $as_echo "$ntp_ok" >&6; }
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
23408 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
23409 # Check whether --enable-ULINK was given.
23410 if test "${enable_ULINK+set}" = set; then :
23411 enableval=$enable_ULINK; ntp_ok=$enableval
23412 else
23413 ntp_ok=$ntp_eac
23416 if test "$ntp_ok" = "yes"; then
23417 ntp_refclock=yes
23419 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23423 $as_echo "$ntp_ok" >&6; }
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
23426 $as_echo_n "checking WWV receiver... " >&6; }
23427 # Check whether --enable-WWV was given.
23428 if test "${enable_WWV+set}" = set; then :
23429 enableval=$enable_WWV; ntp_ok=$enableval
23430 else
23431 case "$ntp_eac$ntp_canaudio" in
23432 *no*) ntp_ok=no ;;
23433 *) ntp_ok=yes ;;
23434 esac
23437 if test "$ntp_ok" = "yes"; then
23438 ntp_refclock=yes
23440 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23444 $as_echo "$ntp_ok" >&6; }
23445 case "$ntp_ok$ntp_canaudio" in
23446 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
23447 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
23448 esac
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
23451 $as_echo_n "checking for Zyfer receiver... " >&6; }
23452 # Check whether --enable-ZYFER was given.
23453 if test "${enable_ZYFER+set}" = set; then :
23454 enableval=$enable_ZYFER; ntp_ok=$enableval
23455 else
23456 ntp_ok=$ntp_eac
23459 if test "$ntp_ok" = "yes"; then
23460 ntp_refclock=yes
23462 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23466 $as_echo "$ntp_ok" >&6; }
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
23469 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
23470 # Check whether --enable-parse-clocks was given.
23471 if test "${enable_parse_clocks+set}" = set; then :
23472 enableval=$enable_parse_clocks; ntp_eapc=$enableval
23473 else
23474 case "$ntp_eac" in
23475 yes) ntp_eapc=$ntp_canparse ;;
23476 *) ntp_eapc=no ;;
23477 esac
23478 # Delete the next line one of these days
23479 ntp_eapc=no
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
23483 $as_echo "$ntp_eapc" >&6; }
23485 case "$ntp_eac$ntp_eapc$ntp_canparse" in
23486 noyes*)
23487 as_fn_error "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
23489 yesyesno)
23490 as_fn_error "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
23492 *) ;;
23493 esac
23495 ntp_libparse=no
23496 ntp_parseutil=no
23497 ntp_rawdcf=no
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
23500 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
23501 # Check whether --enable-COMPUTIME was given.
23502 if test "${enable_COMPUTIME+set}" = set; then :
23503 enableval=$enable_COMPUTIME; ntp_ok=$enableval
23504 else
23505 ntp_ok=$ntp_eapc
23508 if test "$ntp_ok" = "yes"; then
23509 ntp_libparse=yes
23510 ntp_refclock=yes
23512 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23516 $as_echo "$ntp_ok" >&6; }
23517 case "$ntp_ok$ntp_canparse" in
23518 yesno)
23519 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23521 esac
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
23524 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
23525 # Check whether --enable-DCF7000 was given.
23526 if test "${enable_DCF7000+set}" = set; then :
23527 enableval=$enable_DCF7000; ntp_ok=$enableval
23528 else
23529 ntp_ok=$ntp_eapc
23532 if test "$ntp_ok" = "yes"; then
23533 ntp_libparse=yes
23534 ntp_refclock=yes
23536 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23540 $as_echo "$ntp_ok" >&6; }
23541 case "$ntp_ok$ntp_canparse" in
23542 yesno)
23543 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23545 esac
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
23548 $as_echo_n "checking HOPF 6021 clock... " >&6; }
23549 # Check whether --enable-HOPF6021 was given.
23550 if test "${enable_HOPF6021+set}" = set; then :
23551 enableval=$enable_HOPF6021; ntp_ok=$enableval
23552 else
23553 ntp_ok=$ntp_eapc
23556 if test "$ntp_ok" = "yes"; then
23557 ntp_libparse=yes
23558 ntp_refclock=yes
23560 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23564 $as_echo "$ntp_ok" >&6; }
23565 case "$ntp_ok$ntp_canparse" in
23566 yesno)
23567 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23569 esac
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
23572 $as_echo_n "checking Meinberg clocks... " >&6; }
23573 # Check whether --enable-MEINBERG was given.
23574 if test "${enable_MEINBERG+set}" = set; then :
23575 enableval=$enable_MEINBERG; ntp_ok=$enableval
23576 else
23577 ntp_ok=$ntp_eapc
23580 if test "$ntp_ok" = "yes"; then
23581 ntp_libparse=yes
23582 ntp_refclock=yes
23584 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23588 $as_echo "$ntp_ok" >&6; }
23589 case "$ntp_ok$ntp_canparse" in
23590 yesno)
23591 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23593 esac
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
23596 $as_echo_n "checking DCF77 raw time code... " >&6; }
23597 # Check whether --enable-RAWDCF was given.
23598 if test "${enable_RAWDCF+set}" = set; then :
23599 enableval=$enable_RAWDCF; ntp_ok=$enableval
23600 else
23601 ntp_ok=$ntp_eapc
23604 if test "$ntp_ok" = "yes"; then
23605 ntp_libparse=yes
23606 ntp_parseutil=yes
23607 ntp_refclock=yes
23608 ntp_rawdcf=yes
23610 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23614 $as_echo "$ntp_ok" >&6; }
23615 case "$ntp_ok$ntp_canparse" in
23616 yesno)
23617 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23619 esac
23621 case "$ntp_rawdcf" in
23622 yes)
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
23624 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
23625 if test "${ac_cv_var_rawdcf_parity+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23627 else
23628 ans=no
23629 case "$host" in
23630 *-*-*linux*)
23631 ans=yes
23633 esac
23634 ac_cv_var_rawdcf_parity=$ans
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5
23637 $as_echo "$ac_cv_var_rawdcf_parity" >&6; }
23638 case "$ac_cv_var_rawdcf_parity" in
23639 yes)
23640 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
23642 esac
23645 *) # HMS: Is this a good idea?
23646 ac_cv_var_rawdcf_parity=no
23648 esac
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
23651 $as_echo_n "checking RCC 8000 clock... " >&6; }
23652 # Check whether --enable-RCC8000 was given.
23653 if test "${enable_RCC8000+set}" = set; then :
23654 enableval=$enable_RCC8000; ntp_ok=$enableval
23655 else
23656 ntp_ok=$ntp_eapc
23659 if test "$ntp_ok" = "yes"; then
23660 ntp_libparse=yes
23661 ntp_refclock=yes
23663 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23667 $as_echo "$ntp_ok" >&6; }
23668 case "$ntp_ok$ntp_canparse" in
23669 yesno)
23670 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23672 esac
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
23675 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
23676 # Check whether --enable-SCHMID was given.
23677 if test "${enable_SCHMID+set}" = set; then :
23678 enableval=$enable_SCHMID; ntp_ok=$enableval
23679 else
23680 ntp_ok=$ntp_eapc
23683 if test "$ntp_ok" = "yes"; then
23684 ntp_libparse=yes
23685 ntp_refclock=yes
23687 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23691 $as_echo "$ntp_ok" >&6; }
23692 case "$ntp_ok$ntp_canparse" in
23693 yesno)
23694 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23696 esac
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
23699 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
23700 # Check whether --enable-TRIMTAIP was given.
23701 if test "${enable_TRIMTAIP+set}" = set; then :
23702 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
23703 else
23704 ntp_ok=$ntp_eapc
23707 if test "$ntp_ok" = "yes"; then
23708 ntp_libparse=yes
23709 ntp_refclock=yes
23711 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23715 $as_echo "$ntp_ok" >&6; }
23716 case "$ntp_ok$ntp_canparse" in
23717 yesno)
23718 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23720 esac
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
23723 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
23724 # Check whether --enable-TRIMTSIP was given.
23725 if test "${enable_TRIMTSIP+set}" = set; then :
23726 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
23727 else
23728 ntp_ok=$ntp_eapc
23731 if test "$ntp_ok" = "yes"; then
23732 ntp_libparse=yes
23733 ntp_refclock=yes
23735 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23739 $as_echo "$ntp_ok" >&6; }
23740 case "$ntp_ok$ntp_canparse" in
23741 yesno)
23742 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23744 esac
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
23747 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
23748 # Check whether --enable-WHARTON was given.
23749 if test "${enable_WHARTON+set}" = set; then :
23750 enableval=$enable_WHARTON; ntp_ok=$enableval
23751 else
23752 ntp_ok=$ntp_eapc
23755 if test "$ntp_ok" = "yes"; then
23756 ntp_libparse=yes
23757 ntp_refclock=yes
23759 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23763 $as_echo "$ntp_ok" >&6; }
23764 case "$ntp_ok$ntp_canparse" in
23765 yesno)
23766 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23768 esac
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
23771 $as_echo_n "checking VARITEXT clock... " >&6; }
23772 # Check whether --enable-VARITEXT was given.
23773 if test "${enable_VARITEXT+set}" = set; then :
23774 enableval=$enable_VARITEXT; ntp_ok=$enableval
23775 else
23776 ntp_ok=$ntp_eapc
23779 if test "$ntp_ok" = "yes"; then
23780 ntp_libparse=yes
23781 ntp_refclock=yes
23783 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
23787 $as_echo "$ntp_ok" >&6; }
23788 case "$ntp_ok$ntp_canparse" in
23789 yesno)
23790 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
23792 esac
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
23798 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
23799 ans=no
23800 case "$ntp_libparse" in
23801 yes)
23802 ans=yes
23804 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
23806 LIBPARSE=../libparse/libparse.a
23807 MAKE_LIBPARSE=libparse.a
23808 # HMS: check_y2k trips the 34 year problem now...
23809 false && MAKE_CHECK_Y2K=check_y2k
23811 $as_echo "#define PPS_SAMPLE 1" >>confdefs.h
23813 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
23816 esac
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23818 $as_echo "$ans" >&6; }
23820 # AC_SUBST(RSAOBJS)
23821 # AC_SUBST(RSASRCS)
23822 # AC_SUBST(RSADIR)
23823 # AC_SUBST(RSAREF)
23824 # AC_SUBST(LIBRSAREF)
23825 # AC_SUBST(MAKE_LIBRSAREF)
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
23832 $as_echo_n "checking for openssl library directory... " >&6; }
23834 # Check whether --with-openssl-libdir was given.
23835 if test "${with_openssl_libdir+set}" = set; then :
23836 withval=$with_openssl_libdir; ans=$withval
23837 else
23838 case "$build" in
23839 $host) ans=yes ;;
23840 *) ans=no ;;
23841 esac
23844 case "$ans" in
23845 no) ;;
23846 yes) # Look in:
23847 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
23849 *) # Look where they said
23851 esac
23852 case "$ans" in
23853 no) ;;
23854 *) # Look for libcrypto.a and libssl.a:
23855 for i in $ans no
23857 case "$host" in
23858 *-*-darwin*)
23859 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
23862 test -f $i/libcrypto.so -a -f $i/libssl.so && break
23863 test -f $i/libcrypto.a -a -f $i/libssl.a && break
23865 esac
23866 done
23867 case "$i" in
23869 ans=no
23870 OPENSSL_LIB=
23872 *) ans=$i
23873 OPENSSL_LIB=$ans
23875 esac
23877 esac
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23879 $as_echo "$ans" >&6; }
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
23882 $as_echo_n "checking for openssl include directory... " >&6; }
23884 # Check whether --with-openssl-incdir was given.
23885 if test "${with_openssl_incdir+set}" = set; then :
23886 withval=$with_openssl_incdir; ans=$withval
23887 else
23888 case "$build" in
23889 $host) ans=yes ;;
23890 *) ans=no ;;
23891 esac
23894 case "$ans" in
23895 no) ;;
23896 yes) # look in:
23897 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
23899 *) # Look where they said
23901 esac
23902 case "$ans" in
23903 no) ;;
23904 *) # look for openssl/opensslconf.h:
23905 for i in $ans no
23907 test -f $i/openssl/opensslconf.h && break
23908 done
23909 case "$i" in
23911 ans=no
23912 OPENSSL_INC=
23914 *) ans=$i
23915 OPENSSL_INC=$ans
23917 esac
23919 esac
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23921 $as_echo "$ans" >&6; }
23924 # Check whether --with-crypto was given.
23925 if test "${with_crypto+set}" = set; then :
23926 withval=$with_crypto; ans=$withval
23927 else
23928 ans=yes
23931 case "$ans" in
23932 no) ;;
23933 yes|openssl)
23934 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
23935 then
23936 ans=no
23937 else
23938 # We have OpenSSL inc/lib - use them.
23939 ans=openssl
23940 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
23941 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
23942 case "$need_dash_r" in
23943 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
23945 esac
23946 LCRYPTO=-lcrypto
23949 $as_echo "#define OPENSSL /**/" >>confdefs.h
23951 for ac_func in EVP_md2 EVP_mdc2
23952 do :
23953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23954 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23955 eval as_val=\$$as_ac_var
23956 if test "x$as_val" = x""yes; then :
23957 cat >>confdefs.h <<_ACEOF
23958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23959 _ACEOF
23962 done
23966 esac
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the level of crypto support" >&5
23968 $as_echo_n "checking for the level of crypto support... " >&6; }
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23970 $as_echo "$ans" >&6; }
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
23973 $as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
23975 # Check whether --with-electricfence was given.
23976 if test "${with_electricfence+set}" = set; then :
23977 withval=$with_electricfence; ans=$withval
23978 else
23979 ans=no
23982 case "$ans" in
23983 no) ;;
23985 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
23986 EF_PROGS="eftest tstheap"
23988 EF_LIBS=libefence.a
23990 ans=yes
23992 esac
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
23994 $as_echo "$ans" >&6; }
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
23998 $as_echo_n "checking if we want to run check-layout... " >&6; }
23999 case "$cross_compiling$PATH_PERL" in
24000 no/*)
24001 MAKE_CHECK_LAYOUT=check-layout
24002 ans=yes
24005 ans=no
24007 esac
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24009 $as_echo "$ans" >&6; }
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
24015 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
24016 ans=no
24017 if test "$ntp_parseutil" = "yes"; then
24018 case "$host" in
24019 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
24020 ans="dcfd testdcf"
24021 DCFD=dcfd
24022 TESTDCF=testdcf
24024 esac
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24027 $as_echo "$ans" >&6; }
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
24031 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
24032 ans=no
24033 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
24034 yesyes)
24035 case "$host" in
24036 sparc-*-sunos4*)
24037 case "$ac_cv_var_kernel_pll" in
24038 yes)
24040 $as_echo "#define PPS_SYNC 1" >>confdefs.h
24043 esac
24044 ans=parsestreams
24045 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
24047 sparc-*-solaris2*)
24048 ans=parsesolaris
24049 MAKE_PARSEKMODULE=parse
24051 esac
24053 esac
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24055 $as_echo "$ans" >&6; }
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
24058 $as_echo_n "checking if we need basic refclock support... " >&6; }
24059 if test "$ntp_refclock" = "yes"; then
24061 $as_echo "#define REFCLOCK 1" >>confdefs.h
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
24065 $as_echo "$ntp_refclock" >&6; }
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
24070 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
24071 case "$host" in
24072 *-*-hpux[56789]*)
24073 ans=yes
24075 *) ans=no
24077 esac
24078 if test "$ans" = "yes"; then
24079 MAKE_ADJTIMED=adjtimed
24081 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24085 $as_echo "$ans" >&6; }
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
24088 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
24089 case "$host" in
24090 *-*-qnx*)
24091 ans=yes
24093 *) ans=no
24095 esac
24096 if test "$ans" = "yes"; then
24098 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24102 $as_echo "$ans" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
24105 $as_echo_n "checking if we can read kmem... " >&6; }
24107 # the default is to enable it if the system has the capability
24109 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
24110 *yes*)
24111 ans=yes
24113 *) ans=no
24114 esac
24116 case "$host" in
24117 *-*-domainos) # Won't be found...
24118 ans=no
24120 *-*-hpux*)
24121 #ans=no
24123 *-*-irix[456]*)
24124 ans=no
24126 *-*-*linux*)
24127 ans=no
24129 *-*-winnt3.5)
24130 ans=no
24132 *-*-unicosmp*)
24133 ans=no
24135 esac
24137 # --enable-kmem / --disable-kmem controls if present
24138 # Check whether --enable-kmem was given.
24139 if test "${enable_kmem+set}" = set; then :
24140 enableval=$enable_kmem; ans=$enableval
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24146 $as_echo "$ans" >&6; }
24148 case "$ans" in
24149 yes)
24150 can_kmem=yes
24153 can_kmem=no
24155 $as_echo "#define NOKMEM 1" >>confdefs.h
24157 esac
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
24161 $as_echo_n "checking if adjtime is accurate... " >&6; }
24163 # target-dependent defaults
24165 case "$host" in
24166 i386-sequent-ptx*)
24167 ans=no
24169 i386-unknown-osf1*)
24170 ans=yes
24172 mips-sgi-irix[456]*)
24173 ans=yes
24175 *-fujitsu-uxp*)
24176 ans=yes
24178 *-ibm-aix[456]*)
24179 ans=yes
24181 *-*-*linux*)
24182 ans=yes
24184 *-*-solaris2.[01])
24185 ans=no
24187 *-*-solaris2*)
24188 ans=yes
24190 *-*-unicosmp*)
24191 ans=yes
24193 *) ans=no
24194 esac
24196 # --enable-accurate-adjtime / --disable-accurate-adjtime
24197 # override the default
24198 # Check whether --enable-accurate-adjtime was given.
24199 if test "${enable_accurate_adjtime+set}" = set; then :
24200 enableval=$enable_accurate_adjtime; ans=$enableval
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24205 $as_echo "$ans" >&6; }
24207 case "$ans" in
24208 yes)
24210 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
24212 adjtime_is_accurate=yes
24215 adjtime_is_accurate=no
24216 esac
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
24219 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
24220 if test "${ac_cv_var_nlist_tick+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24223 ans=_tick
24224 case "$host" in
24225 m68*-hp-hpux*) # HP9000/300?
24226 ans=_old_tick
24228 *-apple-aux[23]*)
24229 ans=tick
24231 *-hp-hpux*)
24232 ans=old_tick
24234 *-ibm-aix[3456]*)
24235 ans=no
24237 *-*-mpeix*)
24238 ans=no
24240 *-*-ptx*)
24241 ans=tick
24243 *-*-sco3.2v[45]*)
24244 ans=no
24246 *-*-solaris2*)
24247 ans=nsec_per_tick
24249 *-*-sysv4*)
24250 ans=tick
24252 esac
24253 ac_cv_var_nlist_tick=$ans
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5
24256 $as_echo "$ac_cv_var_nlist_tick" >&6; }
24257 case "$ac_cv_var_nlist_tick" in
24258 ''|no) ;; # HMS: I think we can only get 'no' here...
24260 cat >>confdefs.h <<_ACEOF
24261 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
24262 _ACEOF
24264 esac
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
24267 $as_echo_n "checking for the units of 'tick'... " >&6; }
24268 if test "${ac_cv_var_tick_nano+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24270 else
24271 ans=usec
24272 case "$host" in
24273 *-*-solaris2*)
24274 ans=nsec
24276 esac
24277 ac_cv_var_tick_nano=$ans
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5
24280 $as_echo "$ac_cv_var_tick_nano" >&6; }
24281 case "$ac_cv_var_tick_nano" in
24282 nsec)
24284 $as_echo "#define TICK_NANO 1" >>confdefs.h
24287 esac
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
24290 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
24291 if test "${ac_cv_var_nlist_tickadj+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24293 else
24294 ans=_tickadj
24295 case "$host" in
24296 m68*-hp-hpux*) # HP9000/300?
24297 ans=_tickadj
24299 *-apple-aux[23]*)
24300 ans=tickadj
24302 *-hp-hpux10*)
24303 ans=no
24305 *-hp-hpux9*)
24306 ans=no
24308 *-hp-hpux*)
24309 ans=tickadj
24311 *-*-aix*)
24312 ans=tickadj
24314 *-*-mpeix*)
24315 ans=no
24317 *-*-ptx*)
24318 ans=tickadj
24320 *-*-sco3.2v4*)
24321 ans=no
24323 *-*-sco3.2v5.0*)
24324 ans=clock_drift
24326 *-*-solaris2*)
24327 ans=no # hrestime_adj
24329 *-*-sysv4*)
24330 ans=tickadj
24332 esac
24333 ac_cv_var_nlist_tickadj=$ans
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5
24336 $as_echo "$ac_cv_var_nlist_tickadj" >&6; }
24337 case "$ac_cv_var_nlist_tickadj" in
24338 ''|no) ;; # HMS: I think we can only get 'no' here...
24340 cat >>confdefs.h <<_ACEOF
24341 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
24342 _ACEOF
24344 esac
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
24347 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
24348 if test "${ac_cv_var_tickadj_nano+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24350 else
24351 ans=usec
24352 case "$host" in
24353 *-*-solaris2*)
24354 ans=nsec
24356 esac
24357 ac_cv_var_tickadj_nano=$ans
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5
24360 $as_echo "$ac_cv_var_tickadj_nano" >&6; }
24361 case "$ac_cv_var_tickadj_nano" in
24362 nsec)
24364 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
24367 esac
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
24370 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
24371 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24373 else
24374 case "$host" in
24375 *-apple-aux[23]*)
24376 ans=no
24378 *-sni-sysv*)
24379 ans=dosynctodr
24381 *-*-aix*)
24382 ans=dosynctodr
24384 *-*-hpux*)
24385 ans=no
24387 *-*-mpeix*)
24388 ans=no
24390 *-*-nextstep*)
24391 ans=_dosynctodr
24393 *-*-ptx*)
24394 ans=doresettodr
24396 *-*-sco3.2v4*)
24397 ans=no
24399 *-*-sco3.2v5*)
24400 ans=track_rtc
24402 *-*-solaris2*)
24403 ans=dosynctodr
24405 *-*-sysv4*)
24406 ans=doresettodr
24409 ans=_dosynctodr
24411 esac
24412 ac_cv_var_nlist_dosynctodr=$ans
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5
24415 $as_echo "$ac_cv_var_nlist_dosynctodr" >&6; }
24416 case "$ac_cv_var_nlist_dosynctodr" in
24417 no) ;;
24419 cat >>confdefs.h <<_ACEOF
24420 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
24421 _ACEOF
24424 esac
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
24427 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
24428 if test "${ac_cv_var_nlist_noprintf+set}" = set; then :
24429 $as_echo_n "(cached) " >&6
24430 else
24431 case "$host" in
24432 *-apple-aux[23]*)
24433 ans=no
24435 *-sni-sysv*)
24436 ans=noprintf
24438 *-*-aix*)
24439 ans=noprintf
24441 *-*-hpux*)
24442 ans=no
24444 *-*-mpeix*)
24445 ans=no
24447 *-*-ptx*)
24448 ans=noprintf
24450 *-*-nextstep*)
24451 ans=_noprintf
24453 *-*-solaris2*)
24454 ans=noprintf
24456 *-*-sysv4*)
24457 ans=noprintf
24460 ans=_noprintf
24462 esac
24463 ac_cv_var_nlist_noprintf=$ans
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5
24466 $as_echo "$ac_cv_var_nlist_noprintf" >&6; }
24467 case "$ac_cv_var_nlist_noprintf" in
24468 no) ;;
24470 cat >>confdefs.h <<_ACEOF
24471 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
24472 _ACEOF
24475 esac
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
24481 $as_echo_n "checking for a default value for 'tick'... " >&6; }
24483 # target-dependent default for tick
24485 case "$host" in
24486 *-*-pc-cygwin*)
24487 as_fn_error "tick needs work for cygwin" "$LINENO" 5
24489 *-univel-sysv*)
24490 ans=10000
24492 *-*-irix*)
24493 ans=10000
24495 *-*-*linux*)
24496 ans=txc.tick
24498 *-*-mpeix*)
24499 ans=no
24501 *-*-winnt3.5)
24502 ans='(every / 10)'
24504 *-*-unicosmp*)
24505 ans=10000
24508 ans='1000000L/hz'
24510 esac
24512 # Check whether --enable-tick was given.
24513 if test "${enable_tick+set}" = set; then :
24514 enableval=$enable_tick; ans=$enableval
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24520 $as_echo "$ans" >&6; }
24522 case "$ans" in
24523 ''|no) ;; # HMS: I think we can only get 'no' here...
24525 cat >>confdefs.h <<_ACEOF
24526 #define PRESET_TICK $ans
24527 _ACEOF
24529 esac
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
24533 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
24535 # target-specific default
24537 ans='500/hz'
24539 case "$host" in
24540 *-fujitsu-uxp*)
24541 case "$adjtime_is_accurate" in
24542 yes)
24543 ans='tick/16'
24544 esac
24546 XXX-*-pc-cygwin*)
24547 ans=no
24549 *-univel-sysv*)
24550 ans=80
24552 *-*-aix*)
24553 case "$can_kmem" in
24555 ans=1000
24556 esac
24558 *-*-domainos) # Skippy: won't be found...
24559 case "$can_kmem" in
24561 ans=668
24562 esac
24564 *-*-hpux*)
24565 case "$adjtime_is_accurate" in
24566 yes)
24567 ans='tick/16'
24568 esac
24570 *-*-irix*)
24571 ans=150
24573 *-*-mpeix*)
24574 ans=no
24576 *-*-sco3.2v5.0*)
24577 ans=10000L/hz
24579 *-*-winnt3.5)
24580 ans=50
24582 *-*-unicosmp*)
24583 ans=150
24584 esac
24586 # Check whether --enable-tickadj was given.
24587 if test "${enable_tickadj+set}" = set; then :
24588 enableval=$enable_tickadj; ans=$enableval
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24594 $as_echo "$ans" >&6; }
24596 default_tickadj=$ans
24598 case "$default_tickadj" in
24599 ''|no) ;; # HMS: I think we can only get 'no' here...
24601 cat >>confdefs.h <<_ACEOF
24602 #define PRESET_TICKADJ $default_tickadj
24603 _ACEOF
24605 esac
24607 # Newer versions of ReliantUNIX round adjtime() values down to
24608 # 1/100s (system tick). Sigh ...
24609 # Unfortunately, there is no easy way to know if particular release
24610 # has this "feature" or any obvious way to test for it.
24611 case "$host" in
24612 mips-sni-sysv4*)
24613 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
24615 esac
24617 case "$host" in
24618 *-*-sco3.2v5*)
24619 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
24621 esac
24623 ac_cv_make_tickadj=yes
24624 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
24625 nonono) # Don't read KMEM, no presets. Bogus.
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
24627 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
24628 ac_cv_make_tickadj=no
24630 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
24632 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
24633 ac_cv_make_tickadj=no
24635 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
24637 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
24638 ac_cv_make_tickadj=no
24640 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
24642 yesnono) # Read KMEM, no presets. Cool.
24644 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
24646 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
24648 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
24650 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
24652 *) # Generally bogus.
24653 as_fn_error "This shouldn't happen." "$LINENO" 5
24655 esac
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
24659 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
24660 if test "${ac_cv_make_ntptime+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24662 else
24663 case "$host" in
24664 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
24665 yesyes)
24666 ans=yes
24669 ans=no
24671 esac
24673 esac
24674 ac_cv_make_ntptime=$ans
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
24677 $as_echo "$ac_cv_make_ntptime" >&6; }
24678 case "$ac_cv_make_ntptime" in
24679 yes)
24680 MAKE_NTPTIME=ntptime
24682 esac
24685 case "$host" in
24686 mips-sni-sysv4*)
24687 # tickadj is pretty useless on newer versions of ReliantUNIX
24688 # Do not bother
24689 ac_cv_make_tickadj=no
24691 *-*-irix*)
24692 ac_cv_make_tickadj=no
24694 *-*-solaris2*)
24695 # DLM says tickadj is a no-no starting with solaris2.5
24696 case "$host" in
24697 *-*-solaris2.1[0-9]*)
24698 ac_cv_make_tickadj=no
24700 *-*-solaris2.[0-4]*) ;;
24701 *) ac_cv_make_tickadj=no ;;
24702 esac
24704 *-*-unicosmp*)
24705 ac_cv_make_tickadj=no
24707 esac
24710 # Despite all the above, we always make tickadj. Setting
24711 # ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
24712 # report that the configuration variable was cached. It may
24713 # be better to simply remove the hunk above, I did not want
24714 # to remove it if there is hope it will be used again.
24716 unset ac_cv_make_tickadj
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
24719 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
24720 if test "${ac_cv_make_tickadj+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 ac_cv_make_tickadj=yes
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5
24726 $as_echo "$ac_cv_make_tickadj" >&6; }
24727 case "$ac_cv_make_tickadj" in
24728 yes)
24729 MAKE_TICKADJ=tickadj
24731 esac
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
24735 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
24736 if test "${ac_cv_make_timetrim+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24739 case "$host" in
24740 *-*-irix*)
24741 ac_cv_make_timetrim=yes
24743 *-*-unicosmp*)
24744 ac_cv_make_timetrim=yes
24747 ac_cv_make_timetrim=no
24749 esac
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5
24752 $as_echo "$ac_cv_make_timetrim" >&6; }
24753 case "$ac_cv_make_timetrim" in
24754 yes)
24755 MAKE_TIMETRIM=timetrim
24757 esac
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
24763 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
24765 # Check whether --enable-simulator was given.
24766 if test "${enable_simulator+set}" = set; then :
24767 enableval=$enable_simulator; ans=$enableval
24768 else
24769 ans=no
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24775 $as_echo "$ans" >&6; }
24777 case "$ans" in
24778 yes)
24779 MAKE_NTPDSIM=ntpdsim
24780 MAKE_LIBNTPSIM=libntpsim.a
24782 esac
24784 case "$build" in
24785 $host)
24787 *) case "$host" in
24788 *-*-vxworks*)
24789 LDFLAGS="$LDFLAGS -r"
24791 esac
24793 esac
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
24797 $as_echo_n "checking if we should always slew the time... " >&6; }
24799 # target-specific defaults
24801 case "$host" in
24802 *-apple-aux[23]*)
24803 ans=yes
24805 *-*-bsdi[012]*)
24806 ans=no
24808 *-*-bsdi*)
24809 ans=yes
24811 *-*-openvms*) # HMS: won't be found
24812 ans=yes
24814 *) ans=no
24816 esac
24818 # --enable-slew-always / --disable-slew-always overrides default
24820 # Check whether --enable-slew-always was given.
24821 if test "${enable_slew_always+set}" = set; then :
24822 enableval=$enable_slew_always; ans=$enableval
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24828 $as_echo "$ans" >&6; }
24830 case "$ans" in
24831 yes)
24832 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
24834 esac
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
24837 $as_echo_n "checking if we should step and slew the time... " >&6; }
24839 case "$host" in
24840 *-sni-sysv*)
24841 ans=yes
24843 *-univel-sysv*)
24844 ans=no
24846 *-*-ptx*)
24847 ans=yes
24849 *-*-solaris2.1[0-9]*)
24850 ans=no
24852 *-*-solaris2.[012]*)
24853 ans=yes
24855 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
24856 ans=yes
24858 *) ans=no
24860 esac
24863 # Check whether --enable-step-slew was given.
24864 if test "${enable_step_slew+set}" = set; then :
24865 enableval=$enable_step_slew; ans=$enableval
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24871 $as_echo "$ans" >&6; }
24873 case "$ans" in
24874 yes)
24875 $as_echo "#define STEP_SLEW 1" >>confdefs.h
24877 esac
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
24880 $as_echo_n "checking if ntpdate should step the time... " >&6; }
24882 case "$host" in
24883 *-apple-aux[23]*)
24884 ans=yes
24886 *) ans=no
24887 esac
24889 # Check whether --enable-ntpdate-step was given.
24890 if test "${enable_ntpdate_step+set}" = set; then :
24891 enableval=$enable_ntpdate_step; ans=$enableval
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24897 $as_echo "$ans" >&6; }
24899 case "$ans" in
24900 yes)
24901 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
24903 esac
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
24907 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
24909 case "$host" in
24910 *-*-nextstep*)
24911 ans=yes
24913 *-*-openvms*) # HMS: won't be found
24914 ans=yes
24917 ans=no
24918 esac
24920 # Check whether --enable-hourly-todr-sync was given.
24921 if test "${enable_hourly_todr_sync+set}" = set; then :
24922 enableval=$enable_hourly_todr_sync; ans=$enableval
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24928 $as_echo "$ans" >&6; }
24930 case "$ac_cv_var_sync_todr" in
24931 yes)
24932 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
24934 esac
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
24938 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
24940 case "$host" in
24941 *-*-solaris2.6)
24942 unamev=`uname -v`
24943 case "$unamev" in
24944 Generic_105181-*)
24945 old_IFS="$IFS"
24946 IFS="-"
24947 set $unamev
24948 IFS="$old_IFS"
24949 if test "$2" -ge 17
24950 then
24951 # Generic_105181-17 and higher
24952 ans=no
24953 else
24954 ans=yes
24958 ans=yes
24959 esac
24961 *-*-solaris2.7)
24962 unamev=`uname -v`
24963 case "$unamev" in
24964 Generic_106541-*)
24965 old_IFS="$IFS"
24966 IFS="-"
24967 set $unamev
24968 IFS="$old_IFS"
24969 if test "$2" -ge 07
24970 then
24971 # Generic_106541-07 and higher
24972 ans=no
24973 else
24974 ans=yes
24978 ans=yes
24979 esac
24982 ans=no
24983 esac
24985 # Check whether --enable-kernel-fll-bug was given.
24986 if test "${enable_kernel_fll_bug+set}" = set; then :
24987 enableval=$enable_kernel_fll_bug; ans=$enableval
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24993 $as_echo "$ans" >&6; }
24995 case "$ans" in
24996 yes)
24997 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
24999 esac
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
25003 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
25005 case "$host" in
25006 *-*-solaris2.[89])
25007 ans=yes
25009 *-*-solaris2.1[0-9]*)
25010 ans=yes
25012 *) ans=no
25013 esac
25015 # Check whether --enable-irig-sawtooth was given.
25016 if test "${enable_irig_sawtooth+set}" = set; then :
25017 enableval=$enable_irig_sawtooth; ans=$enableval
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25023 $as_echo "$ans" >&6; }
25025 case "$ans" in
25026 yes)
25027 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
25029 esac
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
25033 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
25035 # Check whether --enable-nist was given.
25036 if test "${enable_nist+set}" = set; then :
25037 enableval=$enable_nist; ans=$enableval
25038 else
25039 ans=no
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25045 $as_echo "$ans" >&6; }
25047 case "$ans" in
25048 yes)
25049 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
25051 esac
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
25055 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
25057 # Check whether --enable-ntp-signd was given.
25058 if test "${enable_ntp_signd+set}" = set; then :
25059 enableval=$enable_ntp_signd; ans=$enableval
25060 else
25061 ans=no
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25067 $as_echo "$ans" >&6; }
25069 case "$ans" in
25071 ntp_signd_path=
25073 yes)
25074 ntp_signd_path=/var/run/ntp_signd
25077 ntp_signd_path="$ans"
25078 esac
25080 case "$ntp_signd_path" in
25082 wintime_default=no
25085 wintime_default=yes
25087 $as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h
25090 cat >>confdefs.h <<_ACEOF
25091 #define NTP_SIGND_PATH "$ntp_signd_path"
25092 _ACEOF
25094 esac
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the windows symmetric client hack" >&5
25098 $as_echo_n "checking if we want the windows symmetric client hack... " >&6; }
25100 # default is no, unless --enable-ntp-signd was given
25101 ans=$wintime_default
25102 unset wintime_default
25104 # Check whether --enable-wintime was given.
25105 if test "${enable_wintime+set}" = set; then :
25106 enableval=$enable_wintime; ans=$enableval
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25111 $as_echo "$ans" >&6; }
25113 case "$ans" in
25114 yes)
25116 $as_echo "#define WINTIME /**/" >>confdefs.h
25118 esac
25121 for ac_header in sys/clockctl.h
25122 do :
25123 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
25124 if test "x$ac_cv_header_sys_clockctl_h" = x""yes; then :
25125 cat >>confdefs.h <<_ACEOF
25126 #define HAVE_SYS_CLOCKCTL_H 1
25127 _ACEOF
25131 done
25134 case "$host" in
25135 *-*-netbsd*)
25136 ans=yes
25138 *) ans=no
25140 esac
25142 # Check whether --enable-clockctl was given.
25143 if test "${enable_clockctl+set}" = set; then :
25144 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
25145 else
25146 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
25152 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
25154 $as_echo "$ntp_use_dev_clockctl" >&6; }
25157 for ac_header in sys/capability.h
25158 do :
25159 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
25160 if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
25161 cat >>confdefs.h <<_ACEOF
25162 #define HAVE_SYS_CAPABILITY_H 1
25163 _ACEOF
25167 done
25169 for ac_header in sys/prctl.h
25170 do :
25171 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
25172 if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
25173 cat >>confdefs.h <<_ACEOF
25174 #define HAVE_SYS_PRCTL_H 1
25175 _ACEOF
25179 done
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
25183 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
25185 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
25186 yesyes)
25187 ntp_have_linuxcaps=yes
25190 ntp_have_linuxcaps=no
25191 esac
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
25194 $as_echo "$ntp_have_linuxcaps" >&6; }
25197 # Check whether --enable-linuxcaps was given.
25198 if test "${enable_linuxcaps+set}" = set; then :
25199 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
25205 case "$ntp_have_linuxcaps" in
25206 yes)
25208 $as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h
25210 LIBS="$LIBS -lcap"
25211 esac
25214 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
25215 *yes*)
25217 $as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h
25219 esac
25222 for ac_header in libscf.h
25223 do :
25224 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
25225 if test "x$ac_cv_header_libscf_h" = x""yes; then :
25226 cat >>confdefs.h <<_ACEOF
25227 #define HAVE_LIBSCF_H 1
25228 _ACEOF
25232 done
25235 case "$ac_cv_header_libscf_h" in
25236 yes)
25237 LSCF=-lscf
25239 esac
25241 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
25242 if test "x$ac_cv_func_setppriv" = x""yes; then :
25244 $as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h
25252 # ISC stuff
25255 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
25257 $as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h
25261 # Check whether --enable-ipv6 was given.
25262 if test "${enable_ipv6+set}" = set; then :
25263 enableval=$enable_ipv6;
25267 case "$enable_ipv6" in
25268 yes|''|autodetect)
25269 case "$host" in
25270 powerpc-ibm-aix4*) ;;
25273 $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
25276 esac
25280 esac
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25284 $as_echo_n "checking for IPv6 structures... " >&6; }
25285 if test "${ac_cv_isc_found_ipv6+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25290 /* end confdefs.h. */
25293 #include <sys/types.h>
25294 #include <sys/socket.h>
25295 #include <netinet/in.h>
25298 main ()
25301 struct sockaddr_in6 sin6;
25305 return 0;
25308 _ACEOF
25309 if ac_fn_c_try_compile "$LINENO"; then :
25310 ac_cv_isc_found_ipv6=yes
25311 else
25312 ac_cv_isc_found_ipv6=no
25315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
25320 $as_echo "$ac_cv_isc_found_ipv6" >&6; }
25323 # See whether IPv6 support is provided via a Kame add-on.
25324 # This is done before other IPv6 linking tests so LIBS is properly set.
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25327 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25329 # Check whether --with-kame was given.
25330 if test "${with_kame+set}" = set; then :
25331 withval=$with_kame; use_kame="$withval"
25332 else
25333 use_kame="no"
25337 case "$use_kame" in
25340 yes)
25341 kame_path=/usr/local/v6
25344 kame_path="$use_kame"
25346 esac
25348 case "$use_kame" in
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25351 $as_echo "no" >&6; }
25354 if test -f $kame_path/lib/libinet6.a; then
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25356 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25357 LIBS="-L$kame_path/lib -linet6 $LIBS"
25358 else
25359 as_fn_error "$kame_path/lib/libinet6.a not found.
25361 Please choose the proper path with the following command:
25363 configure --with-kame=PATH
25364 " "$LINENO" 5
25367 esac
25370 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25371 # Including it on Kame-using platforms is very bad, though, because
25372 # Kame uses #error against direct inclusion. So include it on only
25373 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25374 # This is done before the in6_pktinfo check because that's what
25375 # netinet6/in6.h is needed for.
25377 case "$host" in
25378 *-bsdi4.[01]*)
25380 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25382 isc_netinet6in6_hack="#include <netinet6/in6.h>"
25385 isc_netinet6in6_hack=""
25386 esac
25389 # This is similar to the netinet6/in6.h issue.
25391 case "$host" in
25392 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25394 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25396 isc_netinetin6_hack="#include <netinet/in6.h>"
25399 isc_netinetin6_hack=""
25400 esac
25403 case "$ac_cv_isc_found_ipv6" in
25404 yes)
25406 $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25410 $as_echo_n "checking for in6_pktinfo... " >&6; }
25411 if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
25412 $as_echo_n "(cached) " >&6
25413 else
25415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25419 #include <sys/types.h>
25420 #include <sys/socket.h>
25421 #include <netinet/in.h>
25422 $isc_netinetin6_hack
25423 $isc_netinet6in6_hack
25426 main ()
25429 struct in6_pktinfo xyzzy;
25433 return 0;
25436 _ACEOF
25437 if ac_fn_c_try_compile "$LINENO"; then :
25438 ac_cv_have_in6_pktinfo=yes
25439 else
25440 ac_cv_have_in6_pktinfo=no
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
25448 $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
25450 case "$ac_cv_have_in6_pktinfo" in
25451 yes)
25453 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
25455 esac
25458 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
25460 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
25461 if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25463 else
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25469 #include <sys/types.h>
25470 #include <sys/socket.h>
25471 #include <netinet/in.h>
25472 $isc_netinetin6_hack
25473 $isc_netinet6in6_hack
25476 main ()
25479 struct sockaddr_in6 xyzzy;
25480 xyzzy.sin6_scope_id = 0;
25484 return 0;
25487 _ACEOF
25488 if ac_fn_c_try_compile "$LINENO"; then :
25489 ac_cv_have_sin6_scope_id=yes
25490 else
25491 ac_cv_have_sin6_scope_id=no
25494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
25499 $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
25501 case "$ac_cv_have_sin6_scope_id" in
25502 yes)
25504 $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
25506 esac
25507 esac
25510 # We need this check run even without ac_cv_isc_found_ipv6=yes
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
25513 $as_echo_n "checking for in6addr_any... " >&6; }
25514 if test "${ac_cv_have_in6addr_any+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25516 else
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25522 #include <sys/types.h>
25523 #include <sys/socket.h>
25524 #include <netinet/in.h>
25525 $isc_netinetin6_hack
25526 $isc_netinet6in6_hack
25529 main ()
25532 struct in6_addr in6;
25533 in6 = in6addr_any;
25537 return 0;
25540 _ACEOF
25541 if ac_fn_c_try_compile "$LINENO"; then :
25542 ac_cv_have_in6addr_any=yes
25543 else
25544 ac_cv_have_in6addr_any=no
25547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6addr_any" >&5
25552 $as_echo "$ac_cv_have_in6addr_any" >&6; }
25554 case "$ac_cv_have_in6addr_any" in
25557 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
25559 esac
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
25563 $as_echo_n "checking for struct if_laddrconf... " >&6; }
25564 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
25565 $as_echo_n "(cached) " >&6
25566 else
25568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25569 /* end confdefs.h. */
25572 #include <sys/types.h>
25573 #include <net/if6.h>
25576 main ()
25579 struct if_laddrconf a;
25583 return 0;
25586 _ACEOF
25587 if ac_fn_c_try_compile "$LINENO"; then :
25588 ac_cv_isc_struct_if_laddrconf=yes
25589 else
25590 ac_cv_isc_struct_if_laddrconf=no
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
25598 $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
25600 case "$ac_cv_isc_struct_if_laddrconf" in
25601 yes)
25603 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
25605 esac
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
25608 $as_echo_n "checking for struct if_laddrreq... " >&6; }
25609 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
25610 $as_echo_n "(cached) " >&6
25611 else
25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h. */
25617 #include <sys/types.h>
25618 #include <net/if6.h>
25621 main ()
25624 struct if_laddrreq a;
25628 return 0;
25631 _ACEOF
25632 if ac_fn_c_try_compile "$LINENO"; then :
25633 ac_cv_isc_struct_if_laddrreq=yes
25634 else
25635 ac_cv_isc_struct_if_laddrreq=no
25638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
25643 $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
25645 case "$ac_cv_isc_struct_if_laddrreq" in
25646 yes)
25648 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
25650 esac
25653 # Look for a sysctl call to get the list of network interfaces.
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
25656 $as_echo_n "checking for interface list sysctl... " >&6; }
25657 if test "${ac_cv_iflist_sysctl+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25659 else
25660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25661 /* end confdefs.h. */
25663 #include <sys/param.h>
25664 #include <sys/sysctl.h>
25665 #include <sys/socket.h>
25666 #ifdef NET_RT_IFLIST
25667 found_rt_iflist
25668 #endif
25670 _ACEOF
25671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25672 $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
25673 ac_cv_iflist_sysctl=yes
25674 else
25675 ac_cv_iflist_sysctl=no
25678 rm -f conftest*
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5
25683 $as_echo "$ac_cv_iflist_sysctl" >&6; }
25685 case "$ac_cv_iflist_sysctl" in
25686 yes)
25688 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
25690 esac
25696 ac_expanded=`(
25697 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
25698 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
25699 eval echo \""$sysconfdir"\"
25702 cat >>confdefs.h <<_ACEOF
25703 #define NTP_KEYSDIR "$ac_expanded"
25704 _ACEOF
25708 ac_config_files="$ac_config_files Makefile"
25710 ac_config_files="$ac_config_files ElectricFence/Makefile"
25712 ac_config_files="$ac_config_files adjtimed/Makefile"
25714 ac_config_files="$ac_config_files clockstuff/Makefile"
25716 ac_config_files="$ac_config_files include/Makefile"
25718 ac_config_files="$ac_config_files include/isc/Makefile"
25720 ac_config_files="$ac_config_files kernel/Makefile"
25722 ac_config_files="$ac_config_files kernel/sys/Makefile"
25724 ac_config_files="$ac_config_files libntp/Makefile"
25726 ac_config_files="$ac_config_files libparse/Makefile"
25728 ac_config_files="$ac_config_files ntpd/Makefile"
25730 ac_config_files="$ac_config_files ntpdate/Makefile"
25732 ac_config_files="$ac_config_files ntpdc/Makefile"
25734 ac_config_files="$ac_config_files ntpdc/nl.pl"
25736 ac_config_files="$ac_config_files ntpq/Makefile"
25738 ac_config_files="$ac_config_files parseutil/Makefile"
25740 ac_config_files="$ac_config_files scripts/Makefile"
25742 ac_config_files="$ac_config_files scripts/calc_tickadj"
25744 ac_config_files="$ac_config_files scripts/checktime"
25746 ac_config_files="$ac_config_files scripts/freq_adj"
25748 ac_config_files="$ac_config_files scripts/html2man"
25750 ac_config_files="$ac_config_files scripts/mkver"
25752 ac_config_files="$ac_config_files scripts/ntp-wait"
25754 ac_config_files="$ac_config_files scripts/ntpsweep"
25756 ac_config_files="$ac_config_files scripts/ntptrace"
25758 ac_config_files="$ac_config_files scripts/ntpver"
25760 ac_config_files="$ac_config_files scripts/plot_summary"
25762 ac_config_files="$ac_config_files scripts/summary"
25764 ac_config_files="$ac_config_files util/Makefile"
25767 subdirs="$subdirs sntp"
25770 cat >confcache <<\_ACEOF
25771 # This file is a shell script that caches the results of configure
25772 # tests run on this system so they can be shared between configure
25773 # scripts and configure runs, see configure's option --config-cache.
25774 # It is not useful on other systems. If it contains results you don't
25775 # want to keep, you may remove or edit it.
25777 # config.status only pays attention to the cache file if you give it
25778 # the --recheck option to rerun configure.
25780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25782 # following values.
25784 _ACEOF
25786 # The following way of writing the cache mishandles newlines in values,
25787 # but we know of no workaround that is simple, portable, and efficient.
25788 # So, we kill variables containing newlines.
25789 # Ultrix sh set writes to stderr and can't be redirected directly,
25790 # and sets the high bit in the cache file unless we assign to the vars.
25792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25793 eval ac_val=\$$ac_var
25794 case $ac_val in #(
25795 *${as_nl}*)
25796 case $ac_var in #(
25797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25799 esac
25800 case $ac_var in #(
25801 _ | IFS | as_nl) ;; #(
25802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25803 *) { eval $ac_var=; unset $ac_var;} ;;
25804 esac ;;
25805 esac
25806 done
25808 (set) 2>&1 |
25809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25810 *${as_nl}ac_space=\ *)
25811 # `set' does not quote correctly, so add quotes: double-quote
25812 # substitution turns \\\\ into \\, and sed turns \\ into \.
25813 sed -n \
25814 "s/'/'\\\\''/g;
25815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25816 ;; #(
25818 # `set' quotes correctly as required by POSIX, so do not add quotes.
25819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25821 esac |
25822 sort
25824 sed '
25825 /^ac_cv_env_/b end
25826 t clear
25827 :clear
25828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25829 t end
25830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25831 :end' >>confcache
25832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25833 if test -w "$cache_file"; then
25834 test "x$cache_file" != "x/dev/null" &&
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25836 $as_echo "$as_me: updating cache $cache_file" >&6;}
25837 cat confcache >$cache_file
25838 else
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25843 rm -f confcache
25845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25846 # Let make expand exec_prefix.
25847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25849 DEFS=-DHAVE_CONFIG_H
25851 ac_libobjs=
25852 ac_ltlibobjs=
25853 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25854 # 1. Remove the extension, and $U if already installed.
25855 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25856 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25857 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25858 # will be set to the directory where LIBOBJS objects are built.
25859 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25860 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25861 done
25862 LIBOBJS=$ac_libobjs
25864 LTLIBOBJS=$ac_ltlibobjs
25867 if test -n "$EXEEXT"; then
25868 am__EXEEXT_TRUE=
25869 am__EXEEXT_FALSE='#'
25870 else
25871 am__EXEEXT_TRUE='#'
25872 am__EXEEXT_FALSE=
25875 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25876 as_fn_error "conditional \"AMDEP\" was never defined.
25877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25879 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25880 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25883 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25884 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25887 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
25888 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
25889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25891 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
25892 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
25893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25897 : ${CONFIG_STATUS=./config.status}
25898 ac_write_fail=0
25899 ac_clean_files_save=$ac_clean_files
25900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25903 as_write_fail=0
25904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25905 #! $SHELL
25906 # Generated by $as_me.
25907 # Run this file to recreate the current configuration.
25908 # Compiler output produced by configure, useful for debugging
25909 # configure, is in config.log if it exists.
25911 debug=false
25912 ac_cs_recheck=false
25913 ac_cs_silent=false
25915 SHELL=\${CONFIG_SHELL-$SHELL}
25916 export SHELL
25917 _ASEOF
25918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25919 ## -------------------- ##
25920 ## M4sh Initialization. ##
25921 ## -------------------- ##
25923 # Be more Bourne compatible
25924 DUALCASE=1; export DUALCASE # for MKS sh
25925 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25926 emulate sh
25927 NULLCMD=:
25928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25929 # is contrary to our usage. Disable this feature.
25930 alias -g '${1+"$@"}'='"$@"'
25931 setopt NO_GLOB_SUBST
25932 else
25933 case `(set -o) 2>/dev/null` in #(
25934 *posix*) :
25935 set -o posix ;; #(
25936 *) :
25938 esac
25942 as_nl='
25944 export as_nl
25945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25946 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25949 # Prefer a ksh shell builtin over an external printf program on Solaris,
25950 # but without wasting forks for bash or zsh.
25951 if test -z "$BASH_VERSION$ZSH_VERSION" \
25952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25953 as_echo='print -r --'
25954 as_echo_n='print -rn --'
25955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25956 as_echo='printf %s\n'
25957 as_echo_n='printf %s'
25958 else
25959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25961 as_echo_n='/usr/ucb/echo -n'
25962 else
25963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25964 as_echo_n_body='eval
25965 arg=$1;
25966 case $arg in #(
25967 *"$as_nl"*)
25968 expr "X$arg" : "X\\(.*\\)$as_nl";
25969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25970 esac;
25971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25973 export as_echo_n_body
25974 as_echo_n='sh -c $as_echo_n_body as_echo'
25976 export as_echo_body
25977 as_echo='sh -c $as_echo_body as_echo'
25980 # The user is always right.
25981 if test "${PATH_SEPARATOR+set}" != set; then
25982 PATH_SEPARATOR=:
25983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25985 PATH_SEPARATOR=';'
25990 # IFS
25991 # We need space, tab and new line, in precisely that order. Quoting is
25992 # there to prevent editors from complaining about space-tab.
25993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25994 # splitting by setting IFS to empty value.)
25995 IFS=" "" $as_nl"
25997 # Find who we are. Look in the path if we contain no directory separator.
25998 case $0 in #((
25999 *[\\/]* ) as_myself=$0 ;;
26000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26001 for as_dir in $PATH
26003 IFS=$as_save_IFS
26004 test -z "$as_dir" && as_dir=.
26005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26006 done
26007 IFS=$as_save_IFS
26010 esac
26011 # We did not find ourselves, most probably we were run as `sh COMMAND'
26012 # in which case we are not to be found in the path.
26013 if test "x$as_myself" = x; then
26014 as_myself=$0
26016 if test ! -f "$as_myself"; then
26017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26018 exit 1
26021 # Unset variables that we do not need and which cause bugs (e.g. in
26022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26023 # suppresses any "Segmentation fault" message there. '((' could
26024 # trigger a bug in pdksh 5.2.14.
26025 for as_var in BASH_ENV ENV MAIL MAILPATH
26026 do eval test x\${$as_var+set} = xset \
26027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26028 done
26029 PS1='$ '
26030 PS2='> '
26031 PS4='+ '
26033 # NLS nuisances.
26034 LC_ALL=C
26035 export LC_ALL
26036 LANGUAGE=C
26037 export LANGUAGE
26039 # CDPATH.
26040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26043 # as_fn_error ERROR [LINENO LOG_FD]
26044 # ---------------------------------
26045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26047 # script with status $?, using 1 if that was 0.
26048 as_fn_error ()
26050 as_status=$?; test $as_status -eq 0 && as_status=1
26051 if test "$3"; then
26052 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26055 $as_echo "$as_me: error: $1" >&2
26056 as_fn_exit $as_status
26057 } # as_fn_error
26060 # as_fn_set_status STATUS
26061 # -----------------------
26062 # Set $? to STATUS, without forking.
26063 as_fn_set_status ()
26065 return $1
26066 } # as_fn_set_status
26068 # as_fn_exit STATUS
26069 # -----------------
26070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26071 as_fn_exit ()
26073 set +e
26074 as_fn_set_status $1
26075 exit $1
26076 } # as_fn_exit
26078 # as_fn_unset VAR
26079 # ---------------
26080 # Portably unset VAR.
26081 as_fn_unset ()
26083 { eval $1=; unset $1;}
26085 as_unset=as_fn_unset
26086 # as_fn_append VAR VALUE
26087 # ----------------------
26088 # Append the text in VALUE to the end of the definition contained in VAR. Take
26089 # advantage of any shell optimizations that allow amortized linear growth over
26090 # repeated appends, instead of the typical quadratic growth present in naive
26091 # implementations.
26092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26093 eval 'as_fn_append ()
26095 eval $1+=\$2
26097 else
26098 as_fn_append ()
26100 eval $1=\$$1\$2
26102 fi # as_fn_append
26104 # as_fn_arith ARG...
26105 # ------------------
26106 # Perform arithmetic evaluation on the ARGs, and store the result in the
26107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26108 # must be portable across $(()) and expr.
26109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26110 eval 'as_fn_arith ()
26112 as_val=$(( $* ))
26114 else
26115 as_fn_arith ()
26117 as_val=`expr "$@" || test $? -eq 1`
26119 fi # as_fn_arith
26122 if expr a : '\(a\)' >/dev/null 2>&1 &&
26123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26124 as_expr=expr
26125 else
26126 as_expr=false
26129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26130 as_basename=basename
26131 else
26132 as_basename=false
26135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26136 as_dirname=dirname
26137 else
26138 as_dirname=false
26141 as_me=`$as_basename -- "$0" ||
26142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26143 X"$0" : 'X\(//\)$' \| \
26144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26145 $as_echo X/"$0" |
26146 sed '/^.*\/\([^/][^/]*\)\/*$/{
26147 s//\1/
26150 /^X\/\(\/\/\)$/{
26151 s//\1/
26154 /^X\/\(\/\).*/{
26155 s//\1/
26158 s/.*/./; q'`
26160 # Avoid depending upon Character Ranges.
26161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26164 as_cr_digits='0123456789'
26165 as_cr_alnum=$as_cr_Letters$as_cr_digits
26167 ECHO_C= ECHO_N= ECHO_T=
26168 case `echo -n x` in #(((((
26169 -n*)
26170 case `echo 'xy\c'` in
26171 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26172 xy) ECHO_C='\c';;
26173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26174 ECHO_T=' ';;
26175 esac;;
26177 ECHO_N='-n';;
26178 esac
26180 rm -f conf$$ conf$$.exe conf$$.file
26181 if test -d conf$$.dir; then
26182 rm -f conf$$.dir/conf$$.file
26183 else
26184 rm -f conf$$.dir
26185 mkdir conf$$.dir 2>/dev/null
26187 if (echo >conf$$.file) 2>/dev/null; then
26188 if ln -s conf$$.file conf$$ 2>/dev/null; then
26189 as_ln_s='ln -s'
26190 # ... but there are two gotchas:
26191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26193 # In both cases, we have to default to `cp -p'.
26194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26195 as_ln_s='cp -p'
26196 elif ln conf$$.file conf$$ 2>/dev/null; then
26197 as_ln_s=ln
26198 else
26199 as_ln_s='cp -p'
26201 else
26202 as_ln_s='cp -p'
26204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26205 rmdir conf$$.dir 2>/dev/null
26208 # as_fn_mkdir_p
26209 # -------------
26210 # Create "$as_dir" as a directory, including parents if necessary.
26211 as_fn_mkdir_p ()
26214 case $as_dir in #(
26215 -*) as_dir=./$as_dir;;
26216 esac
26217 test -d "$as_dir" || eval $as_mkdir_p || {
26218 as_dirs=
26219 while :; do
26220 case $as_dir in #(
26221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26222 *) as_qdir=$as_dir;;
26223 esac
26224 as_dirs="'$as_qdir' $as_dirs"
26225 as_dir=`$as_dirname -- "$as_dir" ||
26226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26227 X"$as_dir" : 'X\(//\)[^/]' \| \
26228 X"$as_dir" : 'X\(//\)$' \| \
26229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26230 $as_echo X"$as_dir" |
26231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26232 s//\1/
26235 /^X\(\/\/\)[^/].*/{
26236 s//\1/
26239 /^X\(\/\/\)$/{
26240 s//\1/
26243 /^X\(\/\).*/{
26244 s//\1/
26247 s/.*/./; q'`
26248 test -d "$as_dir" && break
26249 done
26250 test -z "$as_dirs" || eval "mkdir $as_dirs"
26251 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26254 } # as_fn_mkdir_p
26255 if mkdir -p . 2>/dev/null; then
26256 as_mkdir_p='mkdir -p "$as_dir"'
26257 else
26258 test -d ./-p && rmdir ./-p
26259 as_mkdir_p=false
26262 if test -x / >/dev/null 2>&1; then
26263 as_test_x='test -x'
26264 else
26265 if ls -dL / >/dev/null 2>&1; then
26266 as_ls_L_option=L
26267 else
26268 as_ls_L_option=
26270 as_test_x='
26271 eval sh -c '\''
26272 if test -d "$1"; then
26273 test -d "$1/.";
26274 else
26275 case $1 in #(
26276 -*)set "./$1";;
26277 esac;
26278 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26279 ???[sx]*):;;*)false;;esac;fi
26280 '\'' sh
26283 as_executable_p=$as_test_x
26285 # Sed expression to map a string onto a valid CPP name.
26286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26288 # Sed expression to map a string onto a valid variable name.
26289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26292 exec 6>&1
26293 ## ----------------------------------- ##
26294 ## Main body of $CONFIG_STATUS script. ##
26295 ## ----------------------------------- ##
26296 _ASEOF
26297 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26300 # Save the log message, to keep $0 and so on meaningful, and to
26301 # report actual input values of CONFIG_FILES etc. instead of their
26302 # values after options handling.
26303 ac_log="
26304 This file was extended by ntp $as_me 4.2.4p8, which was
26305 generated by GNU Autoconf 2.65. Invocation command line was
26307 CONFIG_FILES = $CONFIG_FILES
26308 CONFIG_HEADERS = $CONFIG_HEADERS
26309 CONFIG_LINKS = $CONFIG_LINKS
26310 CONFIG_COMMANDS = $CONFIG_COMMANDS
26311 $ $0 $@
26313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26316 _ACEOF
26318 case $ac_config_files in *"
26319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26320 esac
26322 case $ac_config_headers in *"
26323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26324 esac
26327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26328 # Files that config.status was made for.
26329 config_files="$ac_config_files"
26330 config_headers="$ac_config_headers"
26331 config_commands="$ac_config_commands"
26333 _ACEOF
26335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26336 ac_cs_usage="\
26337 \`$as_me' instantiates files and other configuration actions
26338 from templates according to the current configuration. Unless the files
26339 and actions are specified as TAGs, all are instantiated by default.
26341 Usage: $0 [OPTION]... [TAG]...
26343 -h, --help print this help, then exit
26344 -V, --version print version number and configuration settings, then exit
26345 --config print configuration, then exit
26346 -q, --quiet, --silent
26347 do not print progress messages
26348 -d, --debug don't remove temporary files
26349 --recheck update $as_me by reconfiguring in the same conditions
26350 --file=FILE[:TEMPLATE]
26351 instantiate the configuration file FILE
26352 --header=FILE[:TEMPLATE]
26353 instantiate the configuration header FILE
26355 Configuration files:
26356 $config_files
26358 Configuration headers:
26359 $config_headers
26361 Configuration commands:
26362 $config_commands
26364 Report bugs to the package provider."
26366 _ACEOF
26367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26369 ac_cs_version="\\
26370 ntp config.status 4.2.4p8
26371 configured by $0, generated by GNU Autoconf 2.65,
26372 with options \\"\$ac_cs_config\\"
26374 Copyright (C) 2009 Free Software Foundation, Inc.
26375 This config.status script is free software; the Free Software Foundation
26376 gives unlimited permission to copy, distribute and modify it."
26378 ac_pwd='$ac_pwd'
26379 srcdir='$srcdir'
26380 INSTALL='$INSTALL'
26381 MKDIR_P='$MKDIR_P'
26382 AWK='$AWK'
26383 test -n "\$AWK" || AWK=awk
26384 _ACEOF
26386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26387 # The default lists apply if the user does not specify any file.
26388 ac_need_defaults=:
26389 while test $# != 0
26391 case $1 in
26392 --*=*)
26393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26395 ac_shift=:
26398 ac_option=$1
26399 ac_optarg=$2
26400 ac_shift=shift
26402 esac
26404 case $ac_option in
26405 # Handling of the options.
26406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26407 ac_cs_recheck=: ;;
26408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26409 $as_echo "$ac_cs_version"; exit ;;
26410 --config | --confi | --conf | --con | --co | --c )
26411 $as_echo "$ac_cs_config"; exit ;;
26412 --debug | --debu | --deb | --de | --d | -d )
26413 debug=: ;;
26414 --file | --fil | --fi | --f )
26415 $ac_shift
26416 case $ac_optarg in
26417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26418 esac
26419 as_fn_append CONFIG_FILES " '$ac_optarg'"
26420 ac_need_defaults=false;;
26421 --header | --heade | --head | --hea )
26422 $ac_shift
26423 case $ac_optarg in
26424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26425 esac
26426 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26427 ac_need_defaults=false;;
26428 --he | --h)
26429 # Conflict between --help and --header
26430 as_fn_error "ambiguous option: \`$1'
26431 Try \`$0 --help' for more information.";;
26432 --help | --hel | -h )
26433 $as_echo "$ac_cs_usage"; exit ;;
26434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26436 ac_cs_silent=: ;;
26438 # This is an error.
26439 -*) as_fn_error "unrecognized option: \`$1'
26440 Try \`$0 --help' for more information." ;;
26442 *) as_fn_append ac_config_targets " $1"
26443 ac_need_defaults=false ;;
26445 esac
26446 shift
26447 done
26449 ac_configure_extra_args=
26451 if $ac_cs_silent; then
26452 exec 6>/dev/null
26453 ac_configure_extra_args="$ac_configure_extra_args --silent"
26456 _ACEOF
26457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26458 if \$ac_cs_recheck; then
26459 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26460 shift
26461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26462 CONFIG_SHELL='$SHELL'
26463 export CONFIG_SHELL
26464 exec "\$@"
26467 _ACEOF
26468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26469 exec 5>>config.log
26471 echo
26472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26473 ## Running $as_me. ##
26474 _ASBOX
26475 $as_echo "$ac_log"
26476 } >&5
26478 _ACEOF
26479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26481 # INIT-COMMANDS
26483 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26485 _ACEOF
26487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26489 # Handling of arguments.
26490 for ac_config_target in $ac_config_targets
26492 case $ac_config_target in
26493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26495 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
26496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26497 "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
26498 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
26499 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
26500 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26501 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
26502 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
26503 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
26504 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
26505 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
26506 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
26507 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
26508 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
26509 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
26510 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
26511 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
26512 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
26513 "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
26514 "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
26515 "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
26516 "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
26517 "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
26518 "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
26519 "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
26520 "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
26521 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
26522 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
26523 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
26524 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26526 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26527 esac
26528 done
26531 # If the user did not use the arguments to specify the items to instantiate,
26532 # then the envvar interface is used. Set only those that are not.
26533 # We use the long form for the default assignment because of an extremely
26534 # bizarre bug on SunOS 4.1.3.
26535 if $ac_need_defaults; then
26536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26541 # Have a temporary directory for convenience. Make it in the build tree
26542 # simply because there is no reason against having it here, and in addition,
26543 # creating and moving files from /tmp can sometimes cause problems.
26544 # Hook for its removal unless debugging.
26545 # Note that there is a small window in which the directory will not be cleaned:
26546 # after its creation but before its name has been assigned to `$tmp'.
26547 $debug ||
26549 tmp=
26550 trap 'exit_status=$?
26551 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26553 trap 'as_fn_exit 1' 1 2 13 15
26555 # Create a (secure) tmp directory for tmp files.
26558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26559 test -n "$tmp" && test -d "$tmp"
26560 } ||
26562 tmp=./conf$$-$RANDOM
26563 (umask 077 && mkdir "$tmp")
26564 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26566 # Set up the scripts for CONFIG_FILES section.
26567 # No need to generate them if there are no CONFIG_FILES.
26568 # This happens for instance with `./config.status config.h'.
26569 if test -n "$CONFIG_FILES"; then
26572 ac_cr=`echo X | tr X '\015'`
26573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26574 # But we know of no other shell where ac_cr would be empty at this
26575 # point, so we can use a bashism as a fallback.
26576 if test "x$ac_cr" = x; then
26577 eval ac_cr=\$\'\\r\'
26579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26581 ac_cs_awk_cr='\r'
26582 else
26583 ac_cs_awk_cr=$ac_cr
26586 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26587 _ACEOF
26591 echo "cat >conf$$subs.awk <<_ACEOF" &&
26592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26593 echo "_ACEOF"
26594 } >conf$$subs.sh ||
26595 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26597 ac_delim='%!_!# '
26598 for ac_last_try in false false false false false :; do
26599 . ./conf$$subs.sh ||
26600 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26603 if test $ac_delim_n = $ac_delim_num; then
26604 break
26605 elif $ac_last_try; then
26606 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26607 else
26608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26610 done
26611 rm -f conf$$subs.sh
26613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26614 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26615 _ACEOF
26616 sed -n '
26618 s/^/S["/; s/!.*/"]=/
26621 s/^[^!]*!//
26622 :repl
26623 t repl
26624 s/'"$ac_delim"'$//
26625 t delim
26628 s/\(.\{148\}\)..*/\1/
26629 t more1
26630 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26633 b repl
26634 :more1
26635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26638 s/.\{148\}//
26639 t nl
26640 :delim
26642 s/\(.\{148\}\)..*/\1/
26643 t more2
26644 s/["\\]/\\&/g; s/^/"/; s/$/"/
26647 :more2
26648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26651 s/.\{148\}//
26652 t delim
26653 ' <conf$$subs.awk | sed '
26654 /^[^""]/{
26656 s/\n//
26658 ' >>$CONFIG_STATUS || ac_write_fail=1
26659 rm -f conf$$subs.awk
26660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26661 _ACAWK
26662 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26663 for (key in S) S_is_set[key] = 1
26664 FS = "\a"
26668 line = $ 0
26669 nfields = split(line, field, "@")
26670 substed = 0
26671 len = length(field[1])
26672 for (i = 2; i < nfields; i++) {
26673 key = field[i]
26674 keylen = length(key)
26675 if (S_is_set[key]) {
26676 value = S[key]
26677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26678 len += length(value) + length(field[++i])
26679 substed = 1
26680 } else
26681 len += 1 + keylen
26684 print line
26687 _ACAWK
26688 _ACEOF
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26690 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26691 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26692 else
26694 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26695 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26696 _ACEOF
26698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26700 # trailing colons and then remove the whole line if VPATH becomes empty
26701 # (actually we leave an empty line to preserve line numbers).
26702 if test "x$srcdir" = x.; then
26703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26704 s/:*\$(srcdir):*/:/
26705 s/:*\${srcdir}:*/:/
26706 s/:*@srcdir@:*/:/
26707 s/^\([^=]*=[ ]*\):*/\1/
26708 s/:*$//
26709 s/^[^=]*=[ ]*$//
26713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26714 fi # test -n "$CONFIG_FILES"
26716 # Set up the scripts for CONFIG_HEADERS section.
26717 # No need to generate them if there are no CONFIG_HEADERS.
26718 # This happens for instance with `./config.status Makefile'.
26719 if test -n "$CONFIG_HEADERS"; then
26720 cat >"$tmp/defines.awk" <<\_ACAWK ||
26721 BEGIN {
26722 _ACEOF
26724 # Transform confdefs.h into an awk script `defines.awk', embedded as
26725 # here-document in config.status, that substitutes the proper values into
26726 # config.h.in to produce config.h.
26728 # Create a delimiter string that does not exist in confdefs.h, to ease
26729 # handling of long lines.
26730 ac_delim='%!_!# '
26731 for ac_last_try in false false :; do
26732 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26733 if test -z "$ac_t"; then
26734 break
26735 elif $ac_last_try; then
26736 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26737 else
26738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26740 done
26742 # For the awk script, D is an array of macro values keyed by name,
26743 # likewise P contains macro parameters if any. Preserve backslash
26744 # newline sequences.
26746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26747 sed -n '
26748 s/.\{148\}/&'"$ac_delim"'/g
26749 t rset
26750 :rset
26751 s/^[ ]*#[ ]*define[ ][ ]*/ /
26752 t def
26754 :def
26755 s/\\$//
26756 t bsnl
26757 s/["\\]/\\&/g
26758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26759 D["\1"]=" \3"/p
26760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26762 :bsnl
26763 s/["\\]/\\&/g
26764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26765 D["\1"]=" \3\\\\\\n"\\/p
26766 t cont
26767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26768 t cont
26770 :cont
26772 s/.\{148\}/&'"$ac_delim"'/g
26773 t clear
26774 :clear
26775 s/\\$//
26776 t bsnlc
26777 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26779 :bsnlc
26780 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26781 b cont
26782 ' <confdefs.h | sed '
26783 s/'"$ac_delim"'/"\\\
26784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26787 for (key in D) D_is_set[key] = 1
26788 FS = "\a"
26790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26791 line = \$ 0
26792 split(line, arg, " ")
26793 if (arg[1] == "#") {
26794 defundef = arg[2]
26795 mac1 = arg[3]
26796 } else {
26797 defundef = substr(arg[1], 2)
26798 mac1 = arg[2]
26800 split(mac1, mac2, "(") #)
26801 macro = mac2[1]
26802 prefix = substr(line, 1, index(line, defundef) - 1)
26803 if (D_is_set[macro]) {
26804 # Preserve the white space surrounding the "#".
26805 print prefix "define", macro P[macro] D[macro]
26806 next
26807 } else {
26808 # Replace #undef with comments. This is necessary, for example,
26809 # in the case of _POSIX_SOURCE, which is predefined and required
26810 # on some systems where configure will not decide to define it.
26811 if (defundef == "undef") {
26812 print "/*", prefix defundef, macro, "*/"
26813 next
26817 { print }
26818 _ACAWK
26819 _ACEOF
26820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26821 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26822 fi # test -n "$CONFIG_HEADERS"
26825 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26826 shift
26827 for ac_tag
26829 case $ac_tag in
26830 :[FHLC]) ac_mode=$ac_tag; continue;;
26831 esac
26832 case $ac_mode$ac_tag in
26833 :[FHL]*:*);;
26834 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26835 :[FH]-) ac_tag=-:-;;
26836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26837 esac
26838 ac_save_IFS=$IFS
26839 IFS=:
26840 set x $ac_tag
26841 IFS=$ac_save_IFS
26842 shift
26843 ac_file=$1
26844 shift
26846 case $ac_mode in
26847 :L) ac_source=$1;;
26848 :[FH])
26849 ac_file_inputs=
26850 for ac_f
26852 case $ac_f in
26853 -) ac_f="$tmp/stdin";;
26854 *) # Look for the file first in the build tree, then in the source tree
26855 # (if the path is not absolute). The absolute path cannot be DOS-style,
26856 # because $ac_f cannot contain `:'.
26857 test -f "$ac_f" ||
26858 case $ac_f in
26859 [\\/$]*) false;;
26860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26861 esac ||
26862 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26863 esac
26864 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26865 as_fn_append ac_file_inputs " '$ac_f'"
26866 done
26868 # Let's still pretend it is `configure' which instantiates (i.e., don't
26869 # use $as_me), people would be surprised to read:
26870 # /* config.h. Generated by config.status. */
26871 configure_input='Generated from '`
26872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26873 `' by configure.'
26874 if test x"$ac_file" != x-; then
26875 configure_input="$ac_file. $configure_input"
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26877 $as_echo "$as_me: creating $ac_file" >&6;}
26879 # Neutralize special characters interpreted by sed in replacement strings.
26880 case $configure_input in #(
26881 *\&* | *\|* | *\\* )
26882 ac_sed_conf_input=`$as_echo "$configure_input" |
26883 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26884 *) ac_sed_conf_input=$configure_input;;
26885 esac
26887 case $ac_tag in
26888 *:-:* | *:-) cat >"$tmp/stdin" \
26889 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26890 esac
26892 esac
26894 ac_dir=`$as_dirname -- "$ac_file" ||
26895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26896 X"$ac_file" : 'X\(//\)[^/]' \| \
26897 X"$ac_file" : 'X\(//\)$' \| \
26898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26899 $as_echo X"$ac_file" |
26900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26901 s//\1/
26904 /^X\(\/\/\)[^/].*/{
26905 s//\1/
26908 /^X\(\/\/\)$/{
26909 s//\1/
26912 /^X\(\/\).*/{
26913 s//\1/
26916 s/.*/./; q'`
26917 as_dir="$ac_dir"; as_fn_mkdir_p
26918 ac_builddir=.
26920 case "$ac_dir" in
26921 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26924 # A ".." for each directory in $ac_dir_suffix.
26925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26926 case $ac_top_builddir_sub in
26927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26929 esac ;;
26930 esac
26931 ac_abs_top_builddir=$ac_pwd
26932 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26933 # for backward compatibility:
26934 ac_top_builddir=$ac_top_build_prefix
26936 case $srcdir in
26937 .) # We are building in place.
26938 ac_srcdir=.
26939 ac_top_srcdir=$ac_top_builddir_sub
26940 ac_abs_top_srcdir=$ac_pwd ;;
26941 [\\/]* | ?:[\\/]* ) # Absolute name.
26942 ac_srcdir=$srcdir$ac_dir_suffix;
26943 ac_top_srcdir=$srcdir
26944 ac_abs_top_srcdir=$srcdir ;;
26945 *) # Relative name.
26946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26947 ac_top_srcdir=$ac_top_build_prefix$srcdir
26948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26949 esac
26950 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26953 case $ac_mode in
26956 # CONFIG_FILE
26959 case $INSTALL in
26960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26961 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26962 esac
26963 ac_MKDIR_P=$MKDIR_P
26964 case $MKDIR_P in
26965 [\\/$]* | ?:[\\/]* ) ;;
26966 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26967 esac
26968 _ACEOF
26970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26971 # If the template does not know about datarootdir, expand it.
26972 # FIXME: This hack should be removed a few years after 2.60.
26973 ac_datarootdir_hack=; ac_datarootdir_seen=
26974 ac_sed_dataroot='
26975 /datarootdir/ {
26979 /@datadir@/p
26980 /@docdir@/p
26981 /@infodir@/p
26982 /@localedir@/p
26983 /@mandir@/p'
26984 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26985 *datarootdir*) ac_datarootdir_seen=yes;;
26986 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26988 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26989 _ACEOF
26990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26991 ac_datarootdir_hack='
26992 s&@datadir@&$datadir&g
26993 s&@docdir@&$docdir&g
26994 s&@infodir@&$infodir&g
26995 s&@localedir@&$localedir&g
26996 s&@mandir@&$mandir&g
26997 s&\\\${datarootdir}&$datarootdir&g' ;;
26998 esac
26999 _ACEOF
27001 # Neutralize VPATH when `$srcdir' = `.'.
27002 # Shell code in configure.ac might set extrasub.
27003 # FIXME: do we really want to maintain this feature?
27004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27005 ac_sed_extra="$ac_vpsub
27006 $extrasub
27007 _ACEOF
27008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27011 s|@configure_input@|$ac_sed_conf_input|;t t
27012 s&@top_builddir@&$ac_top_builddir_sub&;t t
27013 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27014 s&@srcdir@&$ac_srcdir&;t t
27015 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27016 s&@top_srcdir@&$ac_top_srcdir&;t t
27017 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27018 s&@builddir@&$ac_builddir&;t t
27019 s&@abs_builddir@&$ac_abs_builddir&;t t
27020 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27021 s&@INSTALL@&$ac_INSTALL&;t t
27022 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27023 $ac_datarootdir_hack
27025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27026 || as_fn_error "could not create $ac_file" "$LINENO" 5
27028 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27029 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27032 which seems to be undefined. Please make sure it is defined." >&5
27033 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27034 which seems to be undefined. Please make sure it is defined." >&2;}
27036 rm -f "$tmp/stdin"
27037 case $ac_file in
27038 -) cat "$tmp/out" && rm -f "$tmp/out";;
27039 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27040 esac \
27041 || as_fn_error "could not create $ac_file" "$LINENO" 5
27045 # CONFIG_HEADER
27047 if test x"$ac_file" != x-; then
27049 $as_echo "/* $configure_input */" \
27050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27051 } >"$tmp/config.h" \
27052 || as_fn_error "could not create $ac_file" "$LINENO" 5
27053 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27055 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27056 else
27057 rm -f "$ac_file"
27058 mv "$tmp/config.h" "$ac_file" \
27059 || as_fn_error "could not create $ac_file" "$LINENO" 5
27061 else
27062 $as_echo "/* $configure_input */" \
27063 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27064 || as_fn_error "could not create -" "$LINENO" 5
27066 # Compute "$ac_file"'s index in $config_headers.
27067 _am_arg="$ac_file"
27068 _am_stamp_count=1
27069 for _am_header in $config_headers :; do
27070 case $_am_header in
27071 $_am_arg | $_am_arg:* )
27072 break ;;
27074 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27075 esac
27076 done
27077 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27078 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27079 X"$_am_arg" : 'X\(//\)[^/]' \| \
27080 X"$_am_arg" : 'X\(//\)$' \| \
27081 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27082 $as_echo X"$_am_arg" |
27083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27084 s//\1/
27087 /^X\(\/\/\)[^/].*/{
27088 s//\1/
27091 /^X\(\/\/\)$/{
27092 s//\1/
27095 /^X\(\/\).*/{
27096 s//\1/
27099 s/.*/./; q'`/stamp-h$_am_stamp_count
27102 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27103 $as_echo "$as_me: executing $ac_file commands" >&6;}
27105 esac
27108 case $ac_file$ac_mode in
27109 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27110 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27111 # are listed without --file. Let's play safe and only enable the eval
27112 # if we detect the quoting.
27113 case $CONFIG_FILES in
27114 *\'*) eval set x "$CONFIG_FILES" ;;
27115 *) set x $CONFIG_FILES ;;
27116 esac
27117 shift
27118 for mf
27120 # Strip MF so we end up with the name of the file.
27121 mf=`echo "$mf" | sed -e 's/:.*$//'`
27122 # Check whether this is an Automake generated Makefile or not.
27123 # We used to match only the files named `Makefile.in', but
27124 # some people rename them; so instead we look at the file content.
27125 # Grep'ing the first line is not enough: some people post-process
27126 # each Makefile.in and add a new line on top of each file to say so.
27127 # Grep'ing the whole file is not good either: AIX grep has a line
27128 # limit of 2048, but all sed's we know have understand at least 4000.
27129 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27130 dirpart=`$as_dirname -- "$mf" ||
27131 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27132 X"$mf" : 'X\(//\)[^/]' \| \
27133 X"$mf" : 'X\(//\)$' \| \
27134 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27135 $as_echo X"$mf" |
27136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27137 s//\1/
27140 /^X\(\/\/\)[^/].*/{
27141 s//\1/
27144 /^X\(\/\/\)$/{
27145 s//\1/
27148 /^X\(\/\).*/{
27149 s//\1/
27152 s/.*/./; q'`
27153 else
27154 continue
27156 # Extract the definition of DEPDIR, am__include, and am__quote
27157 # from the Makefile without running `make'.
27158 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27159 test -z "$DEPDIR" && continue
27160 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27161 test -z "am__include" && continue
27162 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27163 # When using ansi2knr, U may be empty or an underscore; expand it
27164 U=`sed -n 's/^U = //p' < "$mf"`
27165 # Find all dependency output files, they are included files with
27166 # $(DEPDIR) in their names. We invoke sed twice because it is the
27167 # simplest approach to changing $(DEPDIR) to its actual value in the
27168 # expansion.
27169 for file in `sed -n "
27170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27172 # Make sure the directory exists.
27173 test -f "$dirpart/$file" && continue
27174 fdir=`$as_dirname -- "$file" ||
27175 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27176 X"$file" : 'X\(//\)[^/]' \| \
27177 X"$file" : 'X\(//\)$' \| \
27178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27179 $as_echo X"$file" |
27180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27181 s//\1/
27184 /^X\(\/\/\)[^/].*/{
27185 s//\1/
27188 /^X\(\/\/\)$/{
27189 s//\1/
27192 /^X\(\/\).*/{
27193 s//\1/
27196 s/.*/./; q'`
27197 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27198 # echo "creating $dirpart/$file"
27199 echo '# dummy' > "$dirpart/$file"
27200 done
27201 done
27204 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
27205 "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;;
27206 "scripts/checktime":F) chmod +x scripts/checktime ;;
27207 "scripts/freq_adj":F) chmod +x scripts/freq_adj ;;
27208 "scripts/html2man":F) chmod +x scripts/html2man ;;
27209 "scripts/mkver":F) chmod +x scripts/mkver ;;
27210 "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;;
27211 "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;;
27212 "scripts/ntptrace":F) chmod +x scripts/ntptrace ;;
27213 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
27214 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
27215 "scripts/summary":F) chmod +x scripts/summary ;;
27217 esac
27218 done # for ac_tag
27221 as_fn_exit 0
27222 _ACEOF
27223 ac_clean_files=$ac_clean_files_save
27225 test $ac_write_fail = 0 ||
27226 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27229 # configure is writing to config.log, and then calls config.status.
27230 # config.status does its own redirection, appending to config.log.
27231 # Unfortunately, on DOS this fails, as config.log is still kept open
27232 # by configure, so config.status won't be able to write to it; its
27233 # output is simply discarded. So we exec the FD to /dev/null,
27234 # effectively closing config.log, so it can be properly (re)opened and
27235 # appended to by config.status. When coming back to configure, we
27236 # need to make the FD available again.
27237 if test "$no_create" != yes; then
27238 ac_cs_success=:
27239 ac_config_status_args=
27240 test "$silent" = yes &&
27241 ac_config_status_args="$ac_config_status_args --quiet"
27242 exec 5>/dev/null
27243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27244 exec 5>>config.log
27245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27246 # would make configure fail if this is the last instruction.
27247 $ac_cs_success || as_fn_exit $?
27251 # CONFIG_SUBDIRS section.
27253 if test "$no_recursion" != yes; then
27255 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27256 # so they do not pile up.
27257 ac_sub_configure_args=
27258 ac_prev=
27259 eval "set x $ac_configure_args"
27260 shift
27261 for ac_arg
27263 if test -n "$ac_prev"; then
27264 ac_prev=
27265 continue
27267 case $ac_arg in
27268 -cache-file | --cache-file | --cache-fil | --cache-fi \
27269 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27270 ac_prev=cache_file ;;
27271 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27272 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27273 | --c=*)
27275 --config-cache | -C)
27277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27278 ac_prev=srcdir ;;
27279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27282 ac_prev=prefix ;;
27283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27285 --disable-option-checking)
27288 case $ac_arg in
27289 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27290 esac
27291 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27292 esac
27293 done
27295 # Always prepend --prefix to ensure using the same prefix
27296 # in subdir configurations.
27297 ac_arg="--prefix=$prefix"
27298 case $ac_arg in
27299 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27300 esac
27301 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27303 # Pass --silent
27304 if test "$silent" = yes; then
27305 ac_sub_configure_args="--silent $ac_sub_configure_args"
27308 # Always prepend --disable-option-checking to silence warnings, since
27309 # different subdirs can have different --enable and --with options.
27310 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27312 ac_popdir=`pwd`
27313 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27315 # Do not complain, so a configure script can configure whichever
27316 # parts of a large source tree are present.
27317 test -d "$srcdir/$ac_dir" || continue
27319 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27320 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27321 $as_echo "$ac_msg" >&6
27322 as_dir="$ac_dir"; as_fn_mkdir_p
27323 ac_builddir=.
27325 case "$ac_dir" in
27326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27329 # A ".." for each directory in $ac_dir_suffix.
27330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27331 case $ac_top_builddir_sub in
27332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27334 esac ;;
27335 esac
27336 ac_abs_top_builddir=$ac_pwd
27337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27338 # for backward compatibility:
27339 ac_top_builddir=$ac_top_build_prefix
27341 case $srcdir in
27342 .) # We are building in place.
27343 ac_srcdir=.
27344 ac_top_srcdir=$ac_top_builddir_sub
27345 ac_abs_top_srcdir=$ac_pwd ;;
27346 [\\/]* | ?:[\\/]* ) # Absolute name.
27347 ac_srcdir=$srcdir$ac_dir_suffix;
27348 ac_top_srcdir=$srcdir
27349 ac_abs_top_srcdir=$srcdir ;;
27350 *) # Relative name.
27351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27352 ac_top_srcdir=$ac_top_build_prefix$srcdir
27353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27354 esac
27355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27358 cd "$ac_dir"
27360 # Check for guested configure; otherwise get Cygnus style configure.
27361 if test -f "$ac_srcdir/configure.gnu"; then
27362 ac_sub_configure=$ac_srcdir/configure.gnu
27363 elif test -f "$ac_srcdir/configure"; then
27364 ac_sub_configure=$ac_srcdir/configure
27365 elif test -f "$ac_srcdir/configure.in"; then
27366 # This should be Cygnus configure.
27367 ac_sub_configure=$ac_aux_dir/configure
27368 else
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27370 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27371 ac_sub_configure=
27374 # The recursion is here.
27375 if test -n "$ac_sub_configure"; then
27376 # Make the cache file name correct relative to the subdirectory.
27377 case $cache_file in
27378 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27379 *) # Relative name.
27380 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27381 esac
27383 { $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
27384 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27385 # The eval makes quoting arguments work.
27386 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27387 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27388 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27391 cd "$ac_popdir"
27392 done
27394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27396 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}