Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / sntp / configure
blobe6bea20ab473a7af38f9e3831c4eb257c1b1d2c7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for sntp 4.2.6.
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='sntp'
701 PACKAGE_TARNAME='sntp'
702 PACKAGE_VERSION='4.2.6'
703 PACKAGE_STRING='sntp 4.2.6'
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 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 BINSUBDIR
748 HAVE_INLINE
749 LIBTOOL
750 RANLIB
752 ECHO
753 LN_S
754 EGREP
755 GREP
757 LIBOPTS_CFLAGS
758 LIBOPTS_LDADD
759 NEED_LIBOPTS_FALSE
760 NEED_LIBOPTS_TRUE
761 INSTALL_LIBOPTS_FALSE
762 INSTALL_LIBOPTS_TRUE
763 LIBOPTS_DIR
764 am__fastdepCC_FALSE
765 am__fastdepCC_TRUE
766 CCDEPMODE
767 AMDEPBACKSLASH
768 AMDEP_FALSE
769 AMDEP_TRUE
770 am__quote
771 am__include
772 DEPDIR
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_dependency_tracking
853 enable_shared
854 enable_local_libopts
855 enable_libopts_install
856 with_autoopts_config
857 with_regex_header
858 with_libregex
859 with_libregex_cflags
860 with_libregex_libs
861 enable_optional_args
862 enable_static
863 enable_fast_install
864 with_gnu_ld
865 enable_libtool_lock
866 with_pic
867 with_tags
868 enable_ipv6
869 with_kame
870 with_binsubdir
872 ac_precious_vars='build_alias
873 host_alias
874 target_alias
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP'
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
931 ac_prev=
932 ac_dashdash=
933 for ac_option
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
942 case $ac_option in
943 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *) ac_optarg=yes ;;
945 esac
947 # Accept the important Cygnus configure options, so we can diagnose typos.
949 case $ac_dashdash$ac_option in
951 ac_dashdash=yes ;;
953 -bindir | --bindir | --bindi | --bind | --bin | --bi)
954 ac_prev=bindir ;;
955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956 bindir=$ac_optarg ;;
958 -build | --build | --buil | --bui | --bu)
959 ac_prev=build_alias ;;
960 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961 build_alias=$ac_optarg ;;
963 -cache-file | --cache-file | --cache-fil | --cache-fi \
964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965 ac_prev=cache_file ;;
966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968 cache_file=$ac_optarg ;;
970 --config-cache | -C)
971 cache_file=config.cache ;;
973 -datadir | --datadir | --datadi | --datad)
974 ac_prev=datadir ;;
975 -datadir=* | --datadir=* | --datadi=* | --datad=*)
976 datadir=$ac_optarg ;;
978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979 | --dataroo | --dataro | --datar)
980 ac_prev=datarootdir ;;
981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983 datarootdir=$ac_optarg ;;
985 -disable-* | --disable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1240 "with_$ac_useropt"
1241 "*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) as_fn_error "unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information."
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 esac
1288 done
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error "missing argument to $ac_option"
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1303 # Check all directory arguments for consistency.
1304 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1322 done
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336 If a cross compiler is detected then cross compile mode will be used." >&2
1337 elif test "x$build_alias" != "x$host_alias"; then
1338 cross_compiling=yes
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345 test "$silent" = yes && exec 6>/dev/null
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error "working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error "pwd does not report name of working directory"
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1374 /^X\(\/\/\)$/{
1375 s//\1/
1378 /^X\(\/\).*/{
1379 s//\1/
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1387 else
1388 ac_srcdir_defaulted=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1397 pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 srcdir=.
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1421 cat <<_ACEOF
1422 \`configure' configures sntp 4.2.6 to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1431 Configuration:
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 [PREFIX]
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1475 _ACEOF
1477 cat <<\_ACEOF
1479 Program names:
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of sntp 4.2.6:";;
1493 esac
1494 cat <<\_ACEOF
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS] build shared libraries [default=no]
1503 --enable-local-libopts Force using the supplied libopts tearoff code
1504 --disable-libopts-install
1505 Do not install libopts with client installation
1506 --disable-optional-args not wanting optional option args
1507 --enable-static[=PKGS] build static libraries [default=yes]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511 --enable-ipv6 s use IPv6?
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-autoopts-config specify the config-info script
1517 --with-regex-header a reg expr header is specified
1518 --with-libregex libregex installation prefix
1519 --with-libregex-cflags libregex compile flags
1520 --with-libregex-libs libregex link command arguments
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-pic try to use only PIC/non-PIC objects [default=use
1523 both]
1524 --with-tags[=TAGS] include additional configurations [automatic]
1525 --with-kame - =/usr/local/v6
1526 --with-binsubdir bin ={bin,sbin}
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CPP C preprocessor
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to the package provider.
1542 _ACEOF
1543 ac_status=$?
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1570 case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603 cat <<\_ACEOF
1604 sntp configure 4.2.6
1605 generated by GNU Autoconf 2.65
1607 Copyright (C) 2009 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611 exit
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_compile
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } >/dev/null && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=1
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_c_try_cpp
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=$ac_status
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_run
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 $as_test_x conftest$ac_exeext
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=1
1771 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773 # interfere with the next link command; also delete a directory that is
1774 # left behind by Apple's compiler. We do this before executing the actions.
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 as_fn_set_status $ac_retval
1779 } # ac_fn_c_try_link
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1785 # accordingly.
1786 ac_fn_c_check_header_mongrel ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 else
1799 # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1809 else
1810 ac_header_compiler=no
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1825 else
1826 ac_header_preproc=no
1828 rm -f conftest.err conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1832 # So? What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834 yes:no: )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 no:yes:* )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 eval "$3=\$ac_header_compiler"
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 } # ac_fn_c_check_header_mongrel
1868 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists and can be compiled using the include files in
1871 # INCLUDES, setting the cache variable VAR accordingly.
1872 ac_fn_c_check_header_compile ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1879 else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_header_compile
1899 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900 # -------------------------------------------
1901 # Tests whether TYPE exists after having included INCLUDES, setting cache
1902 # variable VAR accordingly.
1903 ac_fn_c_check_type ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 eval "$3=no"
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1916 main ()
1918 if (sizeof ($2))
1919 return 0;
1921 return 0;
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 if (sizeof (($2)))
1932 return 0;
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1939 else
1940 eval "$3=yes"
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_c_check_type
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1957 # computed
1958 ac_fn_c_compute_int ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if test "$cross_compiling" = yes; then
1962 # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 main ()
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1970 test_array [0] = 0
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_lo=0 ac_mid=0
1978 while :; do
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 main ()
1985 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1986 test_array [0] = 0
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_hi=$ac_mid; break
1994 else
1995 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1996 if test $ac_lo -le $ac_mid; then
1997 ac_lo= ac_hi=
1998 break
2000 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 done
2004 else
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 main ()
2011 static int test_array [1 - 2 * !(($2) < 0)];
2012 test_array [0] = 0
2015 return 0;
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_hi=-1 ac_mid=-1
2020 while :; do
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 main ()
2027 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2028 test_array [0] = 0
2031 return 0;
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_lo=$ac_mid; break
2036 else
2037 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2038 if test $ac_mid -le $ac_hi; then
2039 ac_lo= ac_hi=
2040 break
2042 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 done
2046 else
2047 ac_lo= ac_hi=
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 # Binary search between lo and hi bounds.
2053 while test "x$ac_lo" != "x$ac_hi"; do
2054 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2059 main ()
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 test_array [0] = 0
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_hi=$ac_mid
2070 else
2071 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 done
2075 case $ac_lo in #((
2076 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2077 '') ac_retval=1 ;;
2078 esac
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2083 static long int longval () { return $2; }
2084 static unsigned long int ulongval () { return $2; }
2085 #include <stdio.h>
2086 #include <stdlib.h>
2088 main ()
2091 FILE *f = fopen ("conftest.val", "w");
2092 if (! f)
2093 return 1;
2094 if (($2) < 0)
2096 long int i = longval ();
2097 if (i != ($2))
2098 return 1;
2099 fprintf (f, "%ld", i);
2101 else
2103 unsigned long int i = ulongval ();
2104 if (i != ($2))
2105 return 1;
2106 fprintf (f, "%lu", i);
2108 /* Do not output a trailing newline, as this causes \r\n confusion
2109 on some platforms. */
2110 return ferror (f) || fclose (f) != 0;
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_run "$LINENO"; then :
2117 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2118 else
2119 ac_retval=1
2121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2122 conftest.$ac_objext conftest.beam conftest.$ac_ext
2123 rm -f conftest.val
2126 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127 as_fn_set_status $ac_retval
2129 } # ac_fn_c_compute_int
2131 # ac_fn_c_check_func LINENO FUNC VAR
2132 # ----------------------------------
2133 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2134 ac_fn_c_check_func ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2146 #define $2 innocuous_$2
2148 /* System header to define __stub macros and hopefully few prototypes,
2149 which can conflict with char $2 (); below.
2150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2151 <limits.h> exists even on freestanding compilers. */
2153 #ifdef __STDC__
2154 # include <limits.h>
2155 #else
2156 # include <assert.h>
2157 #endif
2159 #undef $2
2161 /* Override any GCC internal prototype to avoid an error.
2162 Use char because int might match the return type of a GCC
2163 builtin and then its argument prototype would still apply. */
2164 #ifdef __cplusplus
2165 extern "C"
2166 #endif
2167 char $2 ();
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined __stub_$2 || defined __stub___$2
2172 choke me
2173 #endif
2176 main ()
2178 return $2 ();
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_link "$LINENO"; then :
2184 eval "$3=yes"
2185 else
2186 eval "$3=no"
2188 rm -f core conftest.err conftest.$ac_objext \
2189 conftest$ac_exeext conftest.$ac_ext
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 } # ac_fn_c_check_func
2197 cat >config.log <<_ACEOF
2198 This file contains any messages produced by compilers while
2199 running configure, to aid debugging if configure makes a mistake.
2201 It was created by sntp $as_me 4.2.6, which was
2202 generated by GNU Autoconf 2.65. Invocation command line was
2204 $ $0 $@
2206 _ACEOF
2207 exec 5>>config.log
2209 cat <<_ASUNAME
2210 ## --------- ##
2211 ## Platform. ##
2212 ## --------- ##
2214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2226 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2231 _ASUNAME
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 $as_echo "PATH: $as_dir"
2239 done
2240 IFS=$as_save_IFS
2242 } >&5
2244 cat >&5 <<_ACEOF
2247 ## ----------- ##
2248 ## Core tests. ##
2249 ## ----------- ##
2251 _ACEOF
2254 # Keep a trace of the command line.
2255 # Strip out --no-create and --no-recursion so they do not pile up.
2256 # Strip out --silent because we don't want to record it for future runs.
2257 # Also quote any args containing shell meta-characters.
2258 # Make two passes to allow for proper duplicate-argument suppression.
2259 ac_configure_args=
2260 ac_configure_args0=
2261 ac_configure_args1=
2262 ac_must_keep_next=false
2263 for ac_pass in 1 2
2265 for ac_arg
2267 case $ac_arg in
2268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2270 | -silent | --silent | --silen | --sile | --sil)
2271 continue ;;
2272 *\'*)
2273 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2274 esac
2275 case $ac_pass in
2276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2278 as_fn_append ac_configure_args1 " '$ac_arg'"
2279 if test $ac_must_keep_next = true; then
2280 ac_must_keep_next=false # Got value, back to normal.
2281 else
2282 case $ac_arg in
2283 *=* | --config-cache | -C | -disable-* | --disable-* \
2284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2286 | -with-* | --with-* | -without-* | --without-* | --x)
2287 case "$ac_configure_args0 " in
2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2289 esac
2291 -* ) ac_must_keep_next=true ;;
2292 esac
2294 as_fn_append ac_configure_args " '$ac_arg'"
2296 esac
2297 done
2298 done
2299 { ac_configure_args0=; unset ac_configure_args0;}
2300 { ac_configure_args1=; unset ac_configure_args1;}
2302 # When interrupted or exit'd, cleanup temporary files, and complete
2303 # config.log. We remove comments because anyway the quotes in there
2304 # would cause problems or look ugly.
2305 # WARNING: Use '\'' to represent an apostrophe within the trap.
2306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2307 trap 'exit_status=$?
2308 # Save into config.log some information that might help in debugging.
2310 echo
2312 cat <<\_ASBOX
2313 ## ---------------- ##
2314 ## Cache variables. ##
2315 ## ---------------- ##
2316 _ASBOX
2317 echo
2318 # The following way of writing the cache mishandles newlines in values,
2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321 eval ac_val=\$$ac_var
2322 case $ac_val in #(
2323 *${as_nl}*)
2324 case $ac_var in #(
2325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327 esac
2328 case $ac_var in #(
2329 _ | IFS | as_nl) ;; #(
2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331 *) { eval $ac_var=; unset $ac_var;} ;;
2332 esac ;;
2333 esac
2334 done
2335 (set) 2>&1 |
2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337 *${as_nl}ac_space=\ *)
2338 sed -n \
2339 "s/'\''/'\''\\\\'\'''\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341 ;; #(
2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2345 esac |
2346 sort
2348 echo
2350 cat <<\_ASBOX
2351 ## ----------------- ##
2352 ## Output variables. ##
2353 ## ----------------- ##
2354 _ASBOX
2355 echo
2356 for ac_var in $ac_subst_vars
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 $as_echo "$ac_var='\''$ac_val'\''"
2363 done | sort
2364 echo
2366 if test -n "$ac_subst_files"; then
2367 cat <<\_ASBOX
2368 ## ------------------- ##
2369 ## File substitutions. ##
2370 ## ------------------- ##
2371 _ASBOX
2372 echo
2373 for ac_var in $ac_subst_files
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
2384 if test -s confdefs.h; then
2385 cat <<\_ASBOX
2386 ## ----------- ##
2387 ## confdefs.h. ##
2388 ## ----------- ##
2389 _ASBOX
2390 echo
2391 cat confdefs.h
2392 echo
2394 test "$ac_signal" != 0 &&
2395 $as_echo "$as_me: caught signal $ac_signal"
2396 $as_echo "$as_me: exit $exit_status"
2397 } >&5
2398 rm -f core *.core core.conftest.* &&
2399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400 exit $exit_status
2402 for ac_signal in 1 2 13 15; do
2403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404 done
2405 ac_signal=0
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2410 $as_echo "/* confdefs.h */" > confdefs.h
2412 # Predefined preprocessor variables.
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 _ACEOF
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 _ACEOF
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 _ACEOF
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 _ACEOF
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 _ACEOF
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2436 _ACEOF
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2441 ac_site_file1=NONE
2442 ac_site_file2=NONE
2443 if test -n "$CONFIG_SITE"; then
2444 ac_site_file1=$CONFIG_SITE
2445 elif test "x$prefix" != xNONE; then
2446 ac_site_file1=$prefix/share/config.site
2447 ac_site_file2=$prefix/etc/config.site
2448 else
2449 ac_site_file1=$ac_default_prefix/share/config.site
2450 ac_site_file2=$ac_default_prefix/etc/config.site
2452 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 test "x$ac_site_file" = xNONE && continue
2455 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2457 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2458 sed 's/^/| /' "$ac_site_file" >&5
2459 . "$ac_site_file"
2461 done
2463 if test -r "$cache_file"; then
2464 # Some versions of bash will fail to source /dev/null (special files
2465 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2466 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2468 $as_echo "$as_me: loading cache $cache_file" >&6;}
2469 case $cache_file in
2470 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2471 *) . "./$cache_file";;
2472 esac
2474 else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2476 $as_echo "$as_me: creating cache $cache_file" >&6;}
2477 >$cache_file
2480 # Check that the precious variables saved in the cache have kept the same
2481 # value.
2482 ac_cache_corrupted=false
2483 for ac_var in $ac_precious_vars; do
2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485 eval ac_new_set=\$ac_env_${ac_var}_set
2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487 eval ac_new_val=\$ac_env_${ac_var}_value
2488 case $ac_old_set,$ac_new_set in
2489 set,)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,set)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,);;
2499 if test "x$ac_old_val" != "x$ac_new_val"; then
2500 # differences in whitespace do not lead to failure.
2501 ac_old_val_w=`echo x $ac_old_val`
2502 ac_new_val_w=`echo x $ac_new_val`
2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506 ac_cache_corrupted=:
2507 else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510 eval $ac_var=\$ac_old_val
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2513 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2515 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2516 fi;;
2517 esac
2518 # Pass precious variables to config.status.
2519 if test "$ac_new_set" = set; then
2520 case $ac_new_val in
2521 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522 *) ac_arg=$ac_var=$ac_new_val ;;
2523 esac
2524 case " $ac_configure_args " in
2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527 esac
2529 done
2530 if $ac_cache_corrupted; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2535 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2537 ## -------------------- ##
2538 ## Main body of script. ##
2539 ## -------------------- ##
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 ac_aux_dir=
2550 for ac_dir in . "$srcdir"/.; do
2551 for ac_t in install-sh install.sh shtool; do
2552 if test -f "$ac_dir/$ac_t"; then
2553 ac_aux_dir=$ac_dir
2554 ac_install_sh="$ac_aux_dir/$ac_t -c"
2555 break 2
2557 done
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2573 # Increment sntp_configure_cache_version by one for each change to
2574 # configure.ac or .m4 files which invalidates cached values from
2575 # previous versions.
2577 # If the change affects cache variables used only by the main NTP
2578 # configure.ac, then only its version number should be bumped, while
2579 # the subdir configure.ac version numbers should be unchanged. The
2580 # same is true for a test/variable that is used only by one subdir
2581 # being changed incompatibly; only that subdir's cache version needs
2582 # bumping.
2584 # If a change affects variables shared by all NTP configure scripts,
2585 # please bump the version numbers of all three. If you are not sure,
2586 # the safe choice is to bump all three on any cache-invalidating change.
2588 # In order to avoid the risk of version stamp collision between -stable
2589 # and -dev branches, do not simply increment the version, instead use
2590 # the date YYYYMMDD optionally with -HHMM if there is more than one
2591 # bump in a day.
2593 sntp_configure_cache_version=20091117
2595 # When the version of config.cache and configure do not
2596 # match, NTP_CACHEVERSION will flush the cache.
2600 ntp_cache_flush=1
2602 case "$ntp_cv_sntp_cache_version" in
2603 $sntp_configure_cache_version)
2604 # same version, good
2605 ntp_cache_flush=0
2608 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2609 case "$cache_file" in
2610 /dev/null)
2611 ntp_cache_flush=0
2614 case "$NTP_CACHEVERSION_PARENT" in
2616 # Do not clear the cache immediately after it is created
2617 # empty as it is noisy. Differentiate a newly-created
2618 # config.cache from one predating the cache version
2619 # mechanism by looking for the first cached variable set
2620 # by Autoconf
2621 case "$ac_cv_path_install" in
2623 # empty config.cache file
2624 ntp_cache_flush=0
2625 esac
2628 # Parent configure just created cache from empty,
2629 # flushing would be counterproductive.
2630 ntp_cache_flush=0;
2631 esac
2632 esac
2635 # configure cache version mismatches config.cache version
2636 esac
2638 case "$ntp_cache_flush" in
2640 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2642 # Do we flush all variables or exclude others' version stamps?
2644 case "$NTP_CACHEVERSION_PARENT" in
2646 # Clear all *_cv_* variables including our child subdirs'
2647 # ntp_cv_*_cache_version variables. This prevents subdir
2648 # configure scripts from noticing a version mismatch just
2649 # after the top configure in the invocation cleared and
2650 # recreated the cache.
2652 c_varname_list=`set |
2653 sed -n -e 's/=.*$//' \
2654 -e '/_cv_/p'
2658 # This is not the top configure this particular invocation.
2659 # Clear all *_cv_* variables sparing the version stamps
2660 # of other configure scripts, so we don't trigger
2661 # useless repeated clearings.
2663 c_varname_list=`set |
2664 sed -n -e 's/=.*$//' \
2665 -e '/ntp_cv_.*_cache_version/d' \
2666 -e '/_cv_/p'
2668 esac
2670 for c_varname in $c_varname_list
2672 eval ${c_varname}=; $as_unset $c_varname
2673 done
2675 c_varname_list=; $as_unset c_varname_list c_varname
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2678 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2680 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2682 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2683 $as_unset c_version
2684 esac
2686 # save configure version in config.cache for next time
2687 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2689 $as_unset ntp_cache_flush
2691 # let any subdir configure.ac NTP_CACHEVERSION invocations
2692 # know they are not the top level.
2693 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2696 am__api_version='1.11'
2698 # Find a good install program. We prefer a C program (faster),
2699 # so one script is as good as another. But avoid the broken or
2700 # incompatible versions:
2701 # SysV /etc/install, /usr/sbin/install
2702 # SunOS /usr/etc/install
2703 # IRIX /sbin/install
2704 # AIX /bin/install
2705 # AmigaOS /C/install, which installs bootblocks on floppy discs
2706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2709 # OS/2's system install, which has a completely different semantic
2710 # ./install, which can be erroneously created by make from ./install.sh.
2711 # Reject install programs that cannot install multiple files.
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2714 if test -z "$INSTALL"; then
2715 if test "${ac_cv_path_install+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 # Account for people who put trailing slashes in PATH elements.
2724 case $as_dir/ in #((
2725 ./ | .// | /[cC]/* | \
2726 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2727 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2728 /usr/ucb/* ) ;;
2730 # OSF1 and SCO ODT 3.0 have their own names for install.
2731 # Don't use installbsd from OSF since it installs stuff as root
2732 # by default.
2733 for ac_prog in ginstall scoinst install; do
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2736 if test $ac_prog = install &&
2737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # AIX install. It has an incompatible calling convention.
2740 elif test $ac_prog = install &&
2741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742 # program-specific install script used by HP pwplus--don't use.
2744 else
2745 rm -rf conftest.one conftest.two conftest.dir
2746 echo one > conftest.one
2747 echo two > conftest.two
2748 mkdir conftest.dir
2749 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2750 test -s conftest.one && test -s conftest.two &&
2751 test -s conftest.dir/conftest.one &&
2752 test -s conftest.dir/conftest.two
2753 then
2754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2755 break 3
2759 done
2760 done
2762 esac
2764 done
2765 IFS=$as_save_IFS
2767 rm -rf conftest.one conftest.two conftest.dir
2770 if test "${ac_cv_path_install+set}" = set; then
2771 INSTALL=$ac_cv_path_install
2772 else
2773 # As a last resort, use the slow shell script. Don't cache a
2774 # value for INSTALL within a source directory, because that will
2775 # break other packages using the cache if that directory is
2776 # removed, or if the value is a relative name.
2777 INSTALL=$ac_install_sh
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2781 $as_echo "$INSTALL" >&6; }
2783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784 # It thinks the first close brace ends the variable substitution.
2785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2792 $as_echo_n "checking whether build environment is sane... " >&6; }
2793 # Just in case
2794 sleep 1
2795 echo timestamp > conftest.file
2796 # Reject unsafe characters in $srcdir or the absolute working directory
2797 # name. Accept space and tab only in the latter.
2798 am_lf='
2800 case `pwd` in
2801 *[\\\"\#\$\&\'\`$am_lf]*)
2802 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2803 esac
2804 case $srcdir in
2805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2806 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2807 esac
2809 # Do `set' in a subshell so we don't clobber the current shell's
2810 # arguments. Must try -L first in case configure is actually a
2811 # symlink; some systems play weird games with the mod time of symlinks
2812 # (eg FreeBSD returns the mod time of the symlink's containing
2813 # directory).
2814 if (
2815 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2816 if test "$*" = "X"; then
2817 # -L didn't work.
2818 set X `ls -t "$srcdir/configure" conftest.file`
2820 rm -f conftest.file
2821 if test "$*" != "X $srcdir/configure conftest.file" \
2822 && test "$*" != "X conftest.file $srcdir/configure"; then
2824 # If neither matched, then we have a broken ls. This can happen
2825 # if, for instance, CONFIG_SHELL is bash and it inherits a
2826 # broken ls alias from the environment. This has actually
2827 # happened. Such a system could not be considered "sane".
2828 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2829 alias in your environment" "$LINENO" 5
2832 test "$2" = conftest.file
2834 then
2835 # Ok.
2837 else
2838 as_fn_error "newly created file is older than distributed files!
2839 Check your system clock" "$LINENO" 5
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843 test "$program_prefix" != NONE &&
2844 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2845 # Use a double $ so make ignores it.
2846 test "$program_suffix" != NONE &&
2847 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2848 # Double any \ or $.
2849 # By default was `s,x,x', remove it if useless.
2850 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2851 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2853 # expand $ac_aux_dir to an absolute path
2854 am_aux_dir=`cd $ac_aux_dir && pwd`
2856 if test x"${MISSING+set}" != xset; then
2857 case $am_aux_dir in
2858 *\ * | *\ *)
2859 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2861 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2862 esac
2864 # Use eval to expand $SHELL
2865 if eval "$MISSING --run true"; then
2866 am_missing_run="$MISSING --run "
2867 else
2868 am_missing_run=
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2870 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2873 if test x"${install_sh}" != xset; then
2874 case $am_aux_dir in
2875 *\ * | *\ *)
2876 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2878 install_sh="\${SHELL} $am_aux_dir/install-sh"
2879 esac
2882 # Installed binaries are usually stripped using `strip' when the user
2883 # run `make install-strip'. However `strip' might not be the right
2884 # tool to use in cross-compilation environments, therefore Automake
2885 # will honor the `STRIP' environment variable to overrule this program.
2886 if test "$cross_compiling" != no; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}strip; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_STRIP+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$STRIP"; then
2896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2911 IFS=$as_save_IFS
2915 STRIP=$ac_cv_prog_STRIP
2916 if test -n "$STRIP"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918 $as_echo "$STRIP" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$ac_cv_prog_STRIP"; then
2927 ac_ct_STRIP=$STRIP
2928 # Extract the first word of "strip", so it can be a program name with args.
2929 set dummy strip; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_STRIP"; then
2936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_ac_ct_STRIP="strip"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2951 IFS=$as_save_IFS
2955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956 if test -n "$ac_ct_STRIP"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958 $as_echo "$ac_ct_STRIP" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2964 if test "x$ac_ct_STRIP" = x; then
2965 STRIP=":"
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973 STRIP=$ac_ct_STRIP
2975 else
2976 STRIP="$ac_cv_prog_STRIP"
2980 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2983 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2984 if test -z "$MKDIR_P"; then
2985 if test "${ac_cv_path_mkdir+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_prog in mkdir gmkdir; do
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2996 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997 'mkdir (GNU coreutils) '* | \
2998 'mkdir (coreutils) '* | \
2999 'mkdir (fileutils) '4.1*)
3000 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3001 break 3;;
3002 esac
3003 done
3004 done
3005 done
3006 IFS=$as_save_IFS
3010 test -d ./--version && rmdir ./--version
3011 if test "${ac_cv_path_mkdir+set}" = set; then
3012 MKDIR_P="$ac_cv_path_mkdir -p"
3013 else
3014 # As a last resort, use the slow shell script. Don't cache a
3015 # value for MKDIR_P within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the value is a relative name.
3018 MKDIR_P="$ac_install_sh -d"
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022 $as_echo "$MKDIR_P" >&6; }
3024 mkdir_p="$MKDIR_P"
3025 case $mkdir_p in
3026 [\\/$]* | ?:[\\/]*) ;;
3027 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3028 esac
3030 for ac_prog in gawk mawk nawk awk
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_AWK+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$AWK"; then
3040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_AWK="$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 AWK=$ac_cv_prog_AWK
3060 if test -n "$AWK"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062 $as_echo "$AWK" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3069 test -n "$AWK" && break
3070 done
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3074 set x ${MAKE-make}
3075 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 cat >conftest.make <<\_ACEOF
3080 SHELL = /bin/sh
3081 all:
3082 @echo '@@@%%%=$(MAKE)=@@@%%%'
3083 _ACEOF
3084 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3085 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3086 *@@@%%%=?*=@@@%%%*)
3087 eval ac_cv_prog_make_${ac_make}_set=yes;;
3089 eval ac_cv_prog_make_${ac_make}_set=no;;
3090 esac
3091 rm -f conftest.make
3093 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3096 SET_MAKE=
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 SET_MAKE="MAKE=${MAKE-make}"
3103 rm -rf .tst 2>/dev/null
3104 mkdir .tst 2>/dev/null
3105 if test -d .tst; then
3106 am__leading_dot=.
3107 else
3108 am__leading_dot=_
3110 rmdir .tst 2>/dev/null
3112 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3113 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3114 # is not polluted with repeated "-I."
3115 am__isrc=' -I$(srcdir)'
3116 # test to see if srcdir already configured
3117 if test -f $srcdir/config.status; then
3118 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3122 # test whether we have cygpath
3123 if test -z "$CYGPATH_W"; then
3124 if (cygpath --version) >/dev/null 2>/dev/null; then
3125 CYGPATH_W='cygpath -w'
3126 else
3127 CYGPATH_W=echo
3132 # Define the identity of the package.
3133 PACKAGE='sntp'
3134 VERSION='4.2.6'
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE "$PACKAGE"
3139 _ACEOF
3142 cat >>confdefs.h <<_ACEOF
3143 #define VERSION "$VERSION"
3144 _ACEOF
3146 # Some tools Automake needs.
3148 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3151 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3154 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3157 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3160 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3162 # We need awk for the "check" target. The system "awk" is bad on
3163 # some platforms.
3164 # Always define AMTAR for backward compatibility.
3166 AMTAR=${AMTAR-"${am_missing_run}tar"}
3168 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3174 # Make sure we can run config.sub.
3175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3176 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3179 $as_echo_n "checking build system type... " >&6; }
3180 if test "${ac_cv_build+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 ac_build_alias=$build_alias
3184 test "x$ac_build_alias" = x &&
3185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3186 test "x$ac_build_alias" = x &&
3187 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3188 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3189 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3193 $as_echo "$ac_cv_build" >&6; }
3194 case $ac_cv_build in
3195 *-*-*) ;;
3196 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3197 esac
3198 build=$ac_cv_build
3199 ac_save_IFS=$IFS; IFS='-'
3200 set x $ac_cv_build
3201 shift
3202 build_cpu=$1
3203 build_vendor=$2
3204 shift; shift
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3207 build_os=$*
3208 IFS=$ac_save_IFS
3209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3213 $as_echo_n "checking host system type... " >&6; }
3214 if test "${ac_cv_host+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test "x$host_alias" = x; then
3218 ac_cv_host=$ac_cv_build
3219 else
3220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3221 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3226 $as_echo "$ac_cv_host" >&6; }
3227 case $ac_cv_host in
3228 *-*-*) ;;
3229 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3230 esac
3231 host=$ac_cv_host
3232 ac_save_IFS=$IFS; IFS='-'
3233 set x $ac_cv_host
3234 shift
3235 host_cpu=$1
3236 host_vendor=$2
3237 shift; shift
3238 # Remember, the first character of IFS is used to create $*,
3239 # except with old shells:
3240 host_os=$*
3241 IFS=$ac_save_IFS
3242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3246 cat >>confdefs.h <<_ACEOF
3247 #define STR_SYSTEM "$host"
3248 _ACEOF
3250 ac_config_headers="$ac_config_headers config.h"
3254 # Checks for programs.
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3282 done
3283 done
3284 IFS=$as_save_IFS
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 $as_echo "$CC" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3299 if test -z "$ac_cv_prog_CC"; then
3300 ac_ct_CC=$CC
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="gcc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned=yes ;;
3345 esac
3346 CC=$ac_ct_CC
3348 else
3349 CC="$ac_cv_prog_CC"
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}cc; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if test "${ac_cv_prog_CC+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3375 done
3376 done
3377 IFS=$as_save_IFS
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384 $as_echo "$CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3393 if test -z "$CC"; then
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_CC+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 else
3404 ac_prog_rejected=no
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413 ac_prog_rejected=yes
3414 continue
3416 ac_cv_prog_CC="cc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3420 done
3421 done
3422 IFS=$as_save_IFS
3424 if test $ac_prog_rejected = yes; then
3425 # We found a bogon in the path, so make sure we never use it.
3426 set dummy $ac_cv_prog_CC
3427 shift
3428 if test $# != 0; then
3429 # We chose a different compiler from the bogus one.
3430 # However, it has the same basename, so the bogon will be chosen
3431 # first if we set CC to just the basename; use the full file name.
3432 shift
3433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 for ac_prog in cl.exe
3453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3490 test -n "$CC" && break
3491 done
3493 if test -z "$CC"; then
3494 ac_ct_CC=$CC
3495 for ac_prog in cl.exe
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498 set dummy $ac_prog; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$ac_ct_CC"; then
3505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_ac_ct_CC="$ac_prog"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3518 done
3519 done
3520 IFS=$as_save_IFS
3524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3525 if test -n "$ac_ct_CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527 $as_echo "$ac_ct_CC" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3534 test -n "$ac_ct_CC" && break
3535 done
3537 if test "x$ac_ct_CC" = x; then
3538 CC=""
3539 else
3540 case $cross_compiling:$ac_tool_warned in
3541 yes:)
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544 ac_tool_warned=yes ;;
3545 esac
3546 CC=$ac_ct_CC
3553 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error "no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details." "$LINENO" 5; }
3558 # Provide some information about the compiler.
3559 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560 set X $ac_compile
3561 ac_compiler=$2
3562 for ac_option in --version -v -V -qversion; do
3563 { { ac_try="$ac_compiler $ac_option >&5"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571 ac_status=$?
3572 if test -s conftest.err; then
3573 sed '10a\
3574 ... rest of stderr output deleted ...
3575 10q' conftest.err >conftest.er1
3576 cat conftest.er1 >&5
3578 rm -f conftest.er1 conftest.err
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }
3581 done
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3587 main ()
3591 return 0;
3593 _ACEOF
3594 ac_clean_files_save=$ac_clean_files
3595 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596 # Try to create an executable without -o first, disregard a.out.
3597 # It will help us diagnose broken compilers, and finding out an intuition
3598 # of exeext.
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600 $as_echo_n "checking whether the C compiler works... " >&6; }
3601 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3603 # The possible output files:
3604 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3606 ac_rmfiles=
3607 for ac_file in $ac_files
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612 esac
3613 done
3614 rm -f $ac_rmfiles
3616 if { { ac_try="$ac_link_default"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_link_default") 2>&5
3624 ac_status=$?
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3630 # so that the user can short-circuit this test for compilers unknown to
3631 # Autoconf.
3632 for ac_file in $ac_files ''
3634 test -f "$ac_file" || continue
3635 case $ac_file in
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3638 [ab].out )
3639 # We found the default executable, but exeext='' is most
3640 # certainly right.
3641 break;;
3642 *.* )
3643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3644 then :; else
3645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647 # We set ac_cv_exeext here because the later test for it is not
3648 # safe: cross compilers may not add the suffix if given an `-o'
3649 # argument, so we may need to know it at that point already.
3650 # Even if this section looks crufty: it has the advantage of
3651 # actually working.
3652 break;;
3654 break;;
3655 esac
3656 done
3657 test "$ac_cv_exeext" = no && ac_cv_exeext=
3659 else
3660 ac_file=''
3662 if test -z "$ac_file"; then :
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 { as_fn_set_status 77
3671 as_fn_error "C compiler cannot create executables
3672 See \`config.log' for more details." "$LINENO" 5; }; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 $as_echo "yes" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678 $as_echo_n "checking for C compiler default output file name... " >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680 $as_echo "$ac_file" >&6; }
3681 ac_exeext=$ac_cv_exeext
3683 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684 ac_clean_files=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3701 # `rm'.
3702 for ac_file in conftest.exe conftest conftest.*; do
3703 test -f "$ac_file" || continue
3704 case $ac_file in
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707 break;;
3708 * ) break;;
3709 esac
3710 done
3711 else
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details." "$LINENO" 5; }
3717 rm -f conftest conftest$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3723 ac_exeext=$EXEEXT
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #include <stdio.h>
3728 main ()
3730 FILE *f = fopen ("conftest.out", "w");
3731 return ferror (f) || fclose (f) != 0;
3734 return 0;
3736 _ACEOF
3737 ac_clean_files="$ac_clean_files conftest.out"
3738 # Check that the compiler produces executables we can run. If not, either
3739 # the compiler is broken, or we cross compile.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741 $as_echo_n "checking whether we are cross compiling... " >&6; }
3742 if test "$cross_compiling" != yes; then
3743 { { ac_try="$ac_link"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3751 ac_status=$?
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }
3754 if { ac_try='./conftest$ac_cv_exeext'
3755 { { case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_try") 2>&5
3762 ac_status=$?
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; }; then
3765 cross_compiling=no
3766 else
3767 if test "$cross_compiling" = maybe; then
3768 cross_compiling=yes
3769 else
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error "cannot run C compiled programs.
3773 If you meant to cross compile, use \`--host'.
3774 See \`config.log' for more details." "$LINENO" 5; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779 $as_echo "$cross_compiling" >&6; }
3781 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3782 ac_clean_files=$ac_clean_files_save
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784 $as_echo_n "checking for suffix of object files... " >&6; }
3785 if test "${ac_cv_objext+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3796 return 0;
3798 _ACEOF
3799 rm -f conftest.o conftest.obj
3800 if { { ac_try="$ac_compile"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compile") 2>&5
3808 ac_status=$?
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 for ac_file in conftest.o conftest.obj conftest.*; do
3812 test -f "$ac_file" || continue;
3813 case $ac_file in
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816 break;;
3817 esac
3818 done
3819 else
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error "cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details." "$LINENO" 5; }
3828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831 $as_echo "$ac_cv_objext" >&6; }
3832 OBJEXT=$ac_cv_objext
3833 ac_objext=$OBJEXT
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3843 main ()
3845 #ifndef __GNUC__
3846 choke me
3847 #endif
3850 return 0;
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_compiler_gnu=yes
3855 else
3856 ac_compiler_gnu=no
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3865 GCC=yes
3866 else
3867 GCC=
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if test "${ac_cv_prog_cc_g+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 ac_save_c_werror_flag=$ac_c_werror_flag
3877 ac_c_werror_flag=yes
3878 ac_cv_prog_cc_g=no
3879 CFLAGS="-g"
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 main ()
3888 return 0;
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_g=yes
3893 else
3894 CFLAGS=""
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3908 else
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3910 CFLAGS="-g"
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 main ()
3919 return 0;
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_cv_prog_cc_g=yes
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_c_werror_flag=$ac_save_c_werror_flag
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933 $as_echo "$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935 CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937 if test "$GCC" = yes; then
3938 CFLAGS="-g -O2"
3939 else
3940 CFLAGS="-g"
3942 else
3943 if test "$GCC" = yes; then
3944 CFLAGS="-O2"
3945 else
3946 CFLAGS=
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 ac_cv_prog_cc_c89=no
3955 ac_save_CC=$CC
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958 #include <stdarg.h>
3959 #include <stdio.h>
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3966 char **p;
3967 int i;
3969 return p[i];
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3973 char *s;
3974 va_list v;
3975 va_start (v,p);
3976 s = g (p, va_arg (v,int));
3977 va_end (v);
3978 return s;
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3992 #define FOO(x) 'x'
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 int argc;
4000 char **argv;
4002 main ()
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4006 return 0;
4008 _ACEOF
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028 xno)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 DEPDIR="${am__leading_dot}deps"
4047 ac_config_commands="$ac_config_commands depfiles"
4050 am_make=${MAKE-make}
4051 cat > confinc << 'END'
4052 am__doit:
4053 @echo this is the am__doit target
4054 .PHONY: am__doit
4056 # If we don't find an include directive, just comment out the code.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4059 am__include="#"
4060 am__quote=
4061 _am_result=none
4062 # First try GNU make style include.
4063 echo "include confinc" > confmf
4064 # Ignore all kinds of additional output from `make'.
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4067 am__include=include
4068 am__quote=
4069 _am_result=GNU
4071 esac
4072 # Now try BSD make style include.
4073 if test "$am__include" = "#"; then
4074 echo '.include "confinc"' > confmf
4075 case `$am_make -s -f confmf 2> /dev/null` in #(
4076 *the\ am__doit\ target*)
4077 am__include=.include
4078 am__quote="\""
4079 _am_result=BSD
4081 esac
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4086 $as_echo "$_am_result" >&6; }
4087 rm -f confinc confmf
4089 # Check whether --enable-dependency-tracking was given.
4090 if test "${enable_dependency_tracking+set}" = set; then :
4091 enableval=$enable_dependency_tracking;
4094 if test "x$enable_dependency_tracking" != xno; then
4095 am_depcomp="$ac_aux_dir/depcomp"
4096 AMDEPBACKSLASH='\'
4098 if test "x$enable_dependency_tracking" != xno; then
4099 AMDEP_TRUE=
4100 AMDEP_FALSE='#'
4101 else
4102 AMDEP_TRUE='#'
4103 AMDEP_FALSE=
4108 depcc="$CC" am_compiler_list=
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4111 $as_echo_n "checking dependency style of $depcc... " >&6; }
4112 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116 # We make a subdir and do the tests there. Otherwise we can end up
4117 # making bogus files that we don't know about and never remove. For
4118 # instance it was reported that on HP-UX the gcc test will end up
4119 # making a dummy file named `D' -- because `-MD' means `put the output
4120 # in D'.
4121 mkdir conftest.dir
4122 # Copy depcomp to subdir because otherwise we won't find it if we're
4123 # using a relative directory.
4124 cp "$am_depcomp" conftest.dir
4125 cd conftest.dir
4126 # We will build objects and dependencies in a subdirectory because
4127 # it helps to detect inapplicable dependency modes. For instance
4128 # both Tru64's cc and ICC support -MD to output dependencies as a
4129 # side effect of compilation, but ICC will put the dependencies in
4130 # the current directory while Tru64 will put them in the object
4131 # directory.
4132 mkdir sub
4134 am_cv_CC_dependencies_compiler_type=none
4135 if test "$am_compiler_list" = ""; then
4136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4138 am__universal=false
4139 case " $depcc " in #(
4140 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4141 esac
4143 for depmode in $am_compiler_list; do
4144 # Setup a source with many dependencies, because some compilers
4145 # like to wrap large dependency lists on column 80 (with \), and
4146 # we should not choose a depcomp mode which is confused by this.
4148 # We need to recreate these files for each test, as the compiler may
4149 # overwrite some of them when testing with obscure command lines.
4150 # This happens at least with the AIX C compiler.
4151 : > sub/conftest.c
4152 for i in 1 2 3 4 5 6; do
4153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4155 # Solaris 8's {/usr,}/bin/sh.
4156 touch sub/conftst$i.h
4157 done
4158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4161 # mode. It turns out that the SunPro C++ compiler does not properly
4162 # handle `-M -o', and we need to detect this. Also, some Intel
4163 # versions had trouble with output in subdirs
4164 am__obj=sub/conftest.${OBJEXT-o}
4165 am__minus_obj="-o $am__obj"
4166 case $depmode in
4167 gcc)
4168 # This depmode causes a compiler race in universal mode.
4169 test "$am__universal" = false || continue
4171 nosideeffect)
4172 # after this tag, mechanisms are not by side-effect, so they'll
4173 # only be used when explicitly requested
4174 if test "x$enable_dependency_tracking" = xyes; then
4175 continue
4176 else
4177 break
4180 msvisualcpp | msvcmsys)
4181 # This compiler won't grok `-c -o', but also, the minuso test has
4182 # not run yet. These depmodes are late enough in the game, and
4183 # so weak that their functioning should not be impacted.
4184 am__obj=conftest.${OBJEXT-o}
4185 am__minus_obj=
4187 none) break ;;
4188 esac
4189 if depmode=$depmode \
4190 source=sub/conftest.c object=$am__obj \
4191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4193 >/dev/null 2>conftest.err &&
4194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4198 # icc doesn't choke on unknown options, it will just issue warnings
4199 # or remarks (even with -Werror). So we grep stderr for any message
4200 # that says an option was ignored or not supported.
4201 # When given -MP, icc 7.0 and 7.1 complain thusly:
4202 # icc: Command line warning: ignoring option '-M'; no argument required
4203 # The diagnosis changed in icc 8.0:
4204 # icc: Command line remark: option '-MP' not supported
4205 if (grep 'ignoring option' conftest.err ||
4206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4207 am_cv_CC_dependencies_compiler_type=$depmode
4208 break
4211 done
4213 cd ..
4214 rm -rf conftest.dir
4215 else
4216 am_cv_CC_dependencies_compiler_type=none
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4221 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4222 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4225 test "x$enable_dependency_tracking" != xno \
4226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4227 am__fastdepCC_TRUE=
4228 am__fastdepCC_FALSE='#'
4229 else
4230 am__fastdepCC_TRUE='#'
4231 am__fastdepCC_FALSE=
4236 # AC_PROG_CC_STDC has two functions. It attempts to find a compiler
4237 # capable of C99, or failing that, for C89. CC is set afterward with
4238 # the selected invocation, such as "gcc --std=gnu99". Also, the
4239 # ac_cv_prog_cc_stdc variable is no if the compiler selected for CC
4240 # does not accept C89.
4242 case $ac_cv_prog_cc_stdc in #(
4243 no) :
4244 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4245 *) :
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4247 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4248 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_cv_prog_cc_c99=no
4252 ac_save_CC=$CC
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <stdarg.h>
4256 #include <stdbool.h>
4257 #include <stdlib.h>
4258 #include <wchar.h>
4259 #include <stdio.h>
4261 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4262 #define debug(...) fprintf (stderr, __VA_ARGS__)
4263 #define showlist(...) puts (#__VA_ARGS__)
4264 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4265 static void
4266 test_varargs_macros (void)
4268 int x = 1234;
4269 int y = 5678;
4270 debug ("Flag");
4271 debug ("X = %d\n", x);
4272 showlist (The first, second, and third items.);
4273 report (x>y, "x is %d but y is %d", x, y);
4276 // Check long long types.
4277 #define BIG64 18446744073709551615ull
4278 #define BIG32 4294967295ul
4279 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4280 #if !BIG_OK
4281 your preprocessor is broken;
4282 #endif
4283 #if BIG_OK
4284 #else
4285 your preprocessor is broken;
4286 #endif
4287 static long long int bignum = -9223372036854775807LL;
4288 static unsigned long long int ubignum = BIG64;
4290 struct incomplete_array
4292 int datasize;
4293 double data[];
4296 struct named_init {
4297 int number;
4298 const wchar_t *name;
4299 double average;
4302 typedef const char *ccp;
4304 static inline int
4305 test_restrict (ccp restrict text)
4307 // See if C++-style comments work.
4308 // Iterate through items via the restricted pointer.
4309 // Also check for declarations in for loops.
4310 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4311 continue;
4312 return 0;
4315 // Check varargs and va_copy.
4316 static void
4317 test_varargs (const char *format, ...)
4319 va_list args;
4320 va_start (args, format);
4321 va_list args_copy;
4322 va_copy (args_copy, args);
4324 const char *str;
4325 int number;
4326 float fnumber;
4328 while (*format)
4330 switch (*format++)
4332 case 's': // string
4333 str = va_arg (args_copy, const char *);
4334 break;
4335 case 'd': // int
4336 number = va_arg (args_copy, int);
4337 break;
4338 case 'f': // float
4339 fnumber = va_arg (args_copy, double);
4340 break;
4341 default:
4342 break;
4345 va_end (args_copy);
4346 va_end (args);
4350 main ()
4353 // Check bool.
4354 _Bool success = false;
4356 // Check restrict.
4357 if (test_restrict ("String literal") == 0)
4358 success = true;
4359 char *restrict newvar = "Another string";
4361 // Check varargs.
4362 test_varargs ("s, d' f .", "string", 65, 34.234);
4363 test_varargs_macros ();
4365 // Check flexible array members.
4366 struct incomplete_array *ia =
4367 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4368 ia->datasize = 10;
4369 for (int i = 0; i < ia->datasize; ++i)
4370 ia->data[i] = i * 1.234;
4372 // Check named initializers.
4373 struct named_init ni = {
4374 .number = 34,
4375 .name = L"Test wide string",
4376 .average = 543.34343,
4379 ni.number = 58;
4381 int dynamic_array[ni.number];
4382 dynamic_array[ni.number - 1] = 543;
4384 // work around unused variable warnings
4385 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4386 || dynamic_array[ni.number - 1] != 543);
4389 return 0;
4391 _ACEOF
4392 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4394 CC="$ac_save_CC $ac_arg"
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_prog_cc_c99=$ac_arg
4398 rm -f core conftest.err conftest.$ac_objext
4399 test "x$ac_cv_prog_cc_c99" != "xno" && break
4400 done
4401 rm -f conftest.$ac_ext
4402 CC=$ac_save_CC
4405 # AC_CACHE_VAL
4406 case "x$ac_cv_prog_cc_c99" in
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4409 $as_echo "none needed" >&6; } ;;
4410 xno)
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4412 $as_echo "unsupported" >&6; } ;;
4414 CC="$CC $ac_cv_prog_cc_c99"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4416 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4417 esac
4418 if test "x$ac_cv_prog_cc_c99" != xno; then :
4419 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4422 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4423 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 ac_cv_prog_cc_c89=no
4427 ac_save_CC=$CC
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <stdarg.h>
4431 #include <stdio.h>
4432 #include <sys/types.h>
4433 #include <sys/stat.h>
4434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4435 struct buf { int x; };
4436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4437 static char *e (p, i)
4438 char **p;
4439 int i;
4441 return p[i];
4443 static char *f (char * (*g) (char **, int), char **p, ...)
4445 char *s;
4446 va_list v;
4447 va_start (v,p);
4448 s = g (p, va_arg (v,int));
4449 va_end (v);
4450 return s;
4453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4454 function prototypes and stuff, but not '\xHH' hex character constants.
4455 These don't provoke an error unfortunately, instead are silently treated
4456 as 'x'. The following induces an error, until -std is added to get
4457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4458 array size at least. It's necessary to write '\x00'==0 to get something
4459 that's true only with -std. */
4460 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4462 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4463 inside strings and character constants. */
4464 #define FOO(x) 'x'
4465 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4467 int test (int i, double x);
4468 struct s1 {int (*f) (int a);};
4469 struct s2 {int (*f) (double a);};
4470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4471 int argc;
4472 char **argv;
4474 main ()
4476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4478 return 0;
4480 _ACEOF
4481 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4484 CC="$ac_save_CC $ac_arg"
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486 ac_cv_prog_cc_c89=$ac_arg
4488 rm -f core conftest.err conftest.$ac_objext
4489 test "x$ac_cv_prog_cc_c89" != "xno" && break
4490 done
4491 rm -f conftest.$ac_ext
4492 CC=$ac_save_CC
4495 # AC_CACHE_VAL
4496 case "x$ac_cv_prog_cc_c89" in
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4499 $as_echo "none needed" >&6; } ;;
4500 xno)
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4502 $as_echo "unsupported" >&6; } ;;
4504 CC="$CC $ac_cv_prog_cc_c89"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4507 esac
4508 if test "x$ac_cv_prog_cc_c89" != xno; then :
4509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4510 else
4511 ac_cv_prog_cc_stdc=no
4516 esac
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4518 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4519 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4523 case $ac_cv_prog_cc_stdc in #(
4524 no) :
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 $as_echo "unsupported" >&6; } ;; #(
4527 '') :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529 $as_echo "none needed" >&6; } ;; #(
4530 *) :
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4532 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4533 esac
4536 case "$ac_cv_prog_cc_stdc" in
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4539 version 4.2.5 and higher." >&5
4540 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile SNTP
4541 version 4.2.5 and higher." >&2;}
4542 esac
4544 case "$GCC" in
4545 yes)
4546 SAVED_CFLAGS_AC="$CFLAGS"
4547 CFLAGS="$CFLAGS -Wstrict-overflow"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
4550 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
4551 if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4559 main ()
4563 return 0;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_cv_gcc_Wstrict_overflow=yes
4568 else
4569 ac_cv_gcc_Wstrict_overflow=no
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
4577 $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
4578 CFLAGS="$SAVED_CFLAGS_AC"
4579 SAVED_CFLAGS_AC=
4581 CFLAGS="$CFLAGS -Wall"
4582 # CFLAGS="$CFLAGS -Wcast-align"
4583 CFLAGS="$CFLAGS -Wcast-qual"
4584 # CFLAGS="$CFLAGS -Wconversion"
4585 # CFLAGS="$CFLAGS -Werror"
4586 # CFLAGS="$CFLAGS -Wextra"
4587 # CFLAGS="$CFLAGS -Wfloat-equal"
4588 CFLAGS="$CFLAGS -Wmissing-prototypes"
4589 CFLAGS="$CFLAGS -Wpointer-arith"
4590 CFLAGS="$CFLAGS -Wshadow"
4591 CFLAGS="$CFLAGS -Wstrict-prototypes"
4592 # CFLAGS="$CFLAGS -Wtraditional"
4593 # CFLAGS="$CFLAGS -Wwrite-strings"
4594 case "$ac_cv_gcc_Wstrict_overflow" in
4595 yes)
4596 CFLAGS="$CFLAGS -Wstrict-overflow"
4597 esac
4598 esac
4600 # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
4601 case "$host" in
4602 *-*-solaris*)
4603 # see "man standards".
4604 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
4605 # -D_XOPEN_SOURCE=600 seems OK for c99
4606 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
4607 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
4608 libxnet=-lxnet
4610 esac
4612 # Check whether --enable-shared was given.
4613 if test "${enable_shared+set}" = set; then :
4614 enableval=$enable_shared; p=${PACKAGE-default}
4615 case $enableval in
4616 yes) enable_shared=yes ;;
4617 no) enable_shared=no ;;
4619 enable_shared=no
4620 # Look at the argument we got. We use all the common list separators.
4621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4622 for pkg in $enableval; do
4623 IFS="$lt_save_ifs"
4624 if test "X$pkg" = "X$p"; then
4625 enable_shared=yes
4627 done
4628 IFS="$lt_save_ifs"
4630 esac
4631 else
4632 enable_shared=no
4638 # NTP has (so far) been relying on leading-edge autogen.
4639 # Therefore, by default:
4640 # - use the version we ship with
4641 # - do not install it
4642 # - build a static copy (AC_DISABLE_SHARED - done earlier)
4643 case "${enable_local_libopts+set}" in
4644 set) ;;
4645 *) enable_local_libopts=yes ;;
4646 esac
4647 case "${enable_libopts_install+set}" in
4648 set) ;;
4649 *) enable_libopts_install=no ;;
4650 esac
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4657 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4658 # On Suns, sometimes $CPP names a directory.
4659 if test -n "$CPP" && test -d "$CPP"; then
4660 CPP=
4662 if test -z "$CPP"; then
4663 if test "${ac_cv_prog_CPP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 # Double quotes because CPP needs to be expanded
4667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4669 ac_preproc_ok=false
4670 for ac_c_preproc_warn_flag in '' yes
4672 # Use a header file that comes with gcc, so configuring glibc
4673 # with a fresh cross-compiler works.
4674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675 # <limits.h> exists even on freestanding compilers.
4676 # On the NeXT, cc -E runs the code through the compiler's parser,
4677 # not just through cpp. "Syntax error" is here to catch this case.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #ifdef __STDC__
4681 # include <limits.h>
4682 #else
4683 # include <assert.h>
4684 #endif
4685 Syntax error
4686 _ACEOF
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4689 else
4690 # Broken: fails on valid input.
4691 continue
4693 rm -f conftest.err conftest.$ac_ext
4695 # OK, works on sane cases. Now check whether nonexistent headers
4696 # can be detected and how.
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <ac_nonexistent.h>
4700 _ACEOF
4701 if ac_fn_c_try_cpp "$LINENO"; then :
4702 # Broken: success on invalid input.
4703 continue
4704 else
4705 # Passes both tests.
4706 ac_preproc_ok=:
4707 break
4709 rm -f conftest.err conftest.$ac_ext
4711 done
4712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713 rm -f conftest.err conftest.$ac_ext
4714 if $ac_preproc_ok; then :
4715 break
4718 done
4719 ac_cv_prog_CPP=$CPP
4722 CPP=$ac_cv_prog_CPP
4723 else
4724 ac_cv_prog_CPP=$CPP
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4727 $as_echo "$CPP" >&6; }
4728 ac_preproc_ok=false
4729 for ac_c_preproc_warn_flag in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 #ifdef __STDC__
4740 # include <limits.h>
4741 #else
4742 # include <assert.h>
4743 #endif
4744 Syntax error
4745 _ACEOF
4746 if ac_fn_c_try_cpp "$LINENO"; then :
4748 else
4749 # Broken: fails on valid input.
4750 continue
4752 rm -f conftest.err conftest.$ac_ext
4754 # OK, works on sane cases. Now check whether nonexistent headers
4755 # can be detected and how.
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 #include <ac_nonexistent.h>
4759 _ACEOF
4760 if ac_fn_c_try_cpp "$LINENO"; then :
4761 # Broken: success on invalid input.
4762 continue
4763 else
4764 # Passes both tests.
4765 ac_preproc_ok=:
4766 break
4768 rm -f conftest.err conftest.$ac_ext
4770 done
4771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772 rm -f conftest.err conftest.$ac_ext
4773 if $ac_preproc_ok; then :
4775 else
4776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4779 See \`config.log' for more details." "$LINENO" 5; }
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4790 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4791 if test "${ac_cv_path_GREP+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -z "$GREP"; then
4795 ac_path_GREP_found=false
4796 # Loop through the user's path and test for each of PROGNAME-LIST
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_prog in grep ggrep; do
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4805 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4806 # Check for GNU ac_path_GREP and select it if it is found.
4807 # Check for GNU $ac_path_GREP
4808 case `"$ac_path_GREP" --version 2>&1` in
4809 *GNU*)
4810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4812 ac_count=0
4813 $as_echo_n 0123456789 >"conftest.in"
4814 while :
4816 cat "conftest.in" "conftest.in" >"conftest.tmp"
4817 mv "conftest.tmp" "conftest.in"
4818 cp "conftest.in" "conftest.nl"
4819 $as_echo 'GREP' >> "conftest.nl"
4820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822 as_fn_arith $ac_count + 1 && ac_count=$as_val
4823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4824 # Best one so far, save it but keep looking for a better one
4825 ac_cv_path_GREP="$ac_path_GREP"
4826 ac_path_GREP_max=$ac_count
4828 # 10*(2^10) chars as input seems more than enough
4829 test $ac_count -gt 10 && break
4830 done
4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832 esac
4834 $ac_path_GREP_found && break 3
4835 done
4836 done
4837 done
4838 IFS=$as_save_IFS
4839 if test -z "$ac_cv_path_GREP"; then
4840 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 else
4843 ac_cv_path_GREP=$GREP
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4848 $as_echo "$ac_cv_path_GREP" >&6; }
4849 GREP="$ac_cv_path_GREP"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4853 $as_echo_n "checking for egrep... " >&6; }
4854 if test "${ac_cv_path_EGREP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4858 then ac_cv_path_EGREP="$GREP -E"
4859 else
4860 if test -z "$EGREP"; then
4861 ac_path_EGREP_found=false
4862 # Loop through the user's path and test for each of PROGNAME-LIST
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_prog in egrep; do
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4871 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4872 # Check for GNU ac_path_EGREP and select it if it is found.
4873 # Check for GNU $ac_path_EGREP
4874 case `"$ac_path_EGREP" --version 2>&1` in
4875 *GNU*)
4876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4878 ac_count=0
4879 $as_echo_n 0123456789 >"conftest.in"
4880 while :
4882 cat "conftest.in" "conftest.in" >"conftest.tmp"
4883 mv "conftest.tmp" "conftest.in"
4884 cp "conftest.in" "conftest.nl"
4885 $as_echo 'EGREP' >> "conftest.nl"
4886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888 as_fn_arith $ac_count + 1 && ac_count=$as_val
4889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4890 # Best one so far, save it but keep looking for a better one
4891 ac_cv_path_EGREP="$ac_path_EGREP"
4892 ac_path_EGREP_max=$ac_count
4894 # 10*(2^10) chars as input seems more than enough
4895 test $ac_count -gt 10 && break
4896 done
4897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898 esac
4900 $ac_path_EGREP_found && break 3
4901 done
4902 done
4903 done
4904 IFS=$as_save_IFS
4905 if test -z "$ac_cv_path_EGREP"; then
4906 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 else
4909 ac_cv_path_EGREP=$EGREP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4915 $as_echo "$ac_cv_path_EGREP" >&6; }
4916 EGREP="$ac_cv_path_EGREP"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4920 $as_echo_n "checking for ANSI C header files... " >&6; }
4921 if test "${ac_cv_header_stdc+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <stdlib.h>
4927 #include <stdarg.h>
4928 #include <string.h>
4929 #include <float.h>
4932 main ()
4936 return 0;
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 ac_cv_header_stdc=yes
4941 else
4942 ac_cv_header_stdc=no
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 if test $ac_cv_header_stdc = yes; then
4947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <string.h>
4952 _ACEOF
4953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4954 $EGREP "memchr" >/dev/null 2>&1; then :
4956 else
4957 ac_cv_header_stdc=no
4959 rm -f conftest*
4963 if test $ac_cv_header_stdc = yes; then
4964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <stdlib.h>
4969 _ACEOF
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "free" >/dev/null 2>&1; then :
4973 else
4974 ac_cv_header_stdc=no
4976 rm -f conftest*
4980 if test $ac_cv_header_stdc = yes; then
4981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4982 if test "$cross_compiling" = yes; then :
4984 else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #include <ctype.h>
4988 #include <stdlib.h>
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992 #else
4993 # define ISLOWER(c) \
4994 (('a' <= (c) && (c) <= 'i') \
4995 || ('j' <= (c) && (c) <= 'r') \
4996 || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4998 #endif
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5002 main ()
5004 int i;
5005 for (i = 0; i < 256; i++)
5006 if (XOR (islower (i), ISLOWER (i))
5007 || toupper (i) != TOUPPER (i))
5008 return 2;
5009 return 0;
5011 _ACEOF
5012 if ac_fn_c_try_run "$LINENO"; then :
5014 else
5015 ac_cv_header_stdc=no
5017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5018 conftest.$ac_objext conftest.beam conftest.$ac_ext
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5024 $as_echo "$ac_cv_header_stdc" >&6; }
5025 if test $ac_cv_header_stdc = yes; then
5027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5033 inttypes.h stdint.h unistd.h
5034 do :
5035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5038 eval as_val=\$$as_ac_Header
5039 if test "x$as_val" = x""yes; then :
5040 cat >>confdefs.h <<_ACEOF
5041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 _ACEOF
5046 done
5049 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5050 if test "x$ac_cv_type_pid_t" = x""yes; then :
5052 else
5054 cat >>confdefs.h <<_ACEOF
5055 #define pid_t int
5056 _ACEOF
5061 NEED_LIBOPTS_DIR=''
5063 LIBOPTS_DIR=libopts
5065 # Check whether --enable-local-libopts was given.
5066 if test "${enable_local_libopts+set}" = set; then :
5067 enableval=$enable_local_libopts;
5068 if test x$enableval = xyes ; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
5070 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
5071 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5072 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5073 NEED_LIBOPTS_DIR=true
5078 # Check whether --enable-libopts-install was given.
5079 if test "${enable_libopts_install+set}" = set; then :
5080 enableval=$enable_libopts_install;
5083 if test "X${enable_libopts_install}" != Xno; then
5084 INSTALL_LIBOPTS_TRUE=
5085 INSTALL_LIBOPTS_FALSE='#'
5086 else
5087 INSTALL_LIBOPTS_TRUE='#'
5088 INSTALL_LIBOPTS_FALSE=
5092 if test -z "${NEED_LIBOPTS_DIR}" ; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
5094 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
5096 # Check whether --with-autoopts-config was given.
5097 if test "${with_autoopts_config+set}" = set; then :
5098 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
5101 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
5102 if test "${lo_cv_with_autoopts_config+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if autoopts-config --help 2>/dev/null 1>&2
5106 then lo_cv_with_autoopts_config=autoopts-config
5107 elif libopts-config --help 2>/dev/null 1>&2
5108 then lo_cv_with_autoopts_config=libopts-config
5109 else lo_cv_with_autoopts_config=no ; fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
5112 $as_echo "$lo_cv_with_autoopts_config" >&6; }
5115 # end of AC_ARG_WITH
5117 if test "${lo_cv_test_autoopts+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5121 if test -z "${lo_cv_with_autoopts_config}" \
5122 -o X"${lo_cv_with_autoopts_config}" = Xno
5123 then
5124 if autoopts-config --help 2>/dev/null 1>&2
5125 then lo_cv_with_autoopts_config=autoopts-config
5126 elif libopts-config --help 2>/dev/null 1>&2
5127 then lo_cv_with_autoopts_config=libopts-config
5128 else lo_cv_with_autoopts_config=false ; fi
5130 lo_cv_test_autoopts=`
5131 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
5132 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
5133 then lo_cv_test_autoopts=no ; fi
5136 # end of CACHE_VAL
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
5138 $as_echo "${lo_cv_test_autoopts}" >&6; }
5140 if test "X${lo_cv_test_autoopts}" != Xno
5141 then
5142 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
5143 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
5144 else
5145 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
5146 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
5147 NEED_LIBOPTS_DIR=true
5149 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
5151 if test -n "${NEED_LIBOPTS_DIR}"; then
5152 NEED_LIBOPTS_TRUE=
5153 NEED_LIBOPTS_FALSE='#'
5154 else
5155 NEED_LIBOPTS_TRUE='#'
5156 NEED_LIBOPTS_FALSE=
5161 LIBOPTS_DIR=libopts
5163 ac_config_files="$ac_config_files libopts/Makefile"
5167 if test -n "${NEED_LIBOPTS_DIR}" ; then
5170 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5172 $as_echo_n "checking for ANSI C header files... " >&6; }
5173 if test "${ac_cv_header_stdc+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <stdlib.h>
5179 #include <stdarg.h>
5180 #include <string.h>
5181 #include <float.h>
5184 main ()
5188 return 0;
5190 _ACEOF
5191 if ac_fn_c_try_compile "$LINENO"; then :
5192 ac_cv_header_stdc=yes
5193 else
5194 ac_cv_header_stdc=no
5196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 if test $ac_cv_header_stdc = yes; then
5199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 #include <string.h>
5204 _ACEOF
5205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 $EGREP "memchr" >/dev/null 2>&1; then :
5208 else
5209 ac_cv_header_stdc=no
5211 rm -f conftest*
5215 if test $ac_cv_header_stdc = yes; then
5216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <stdlib.h>
5221 _ACEOF
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223 $EGREP "free" >/dev/null 2>&1; then :
5225 else
5226 ac_cv_header_stdc=no
5228 rm -f conftest*
5232 if test $ac_cv_header_stdc = yes; then
5233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5234 if test "$cross_compiling" = yes; then :
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <ctype.h>
5240 #include <stdlib.h>
5241 #if ((' ' & 0x0FF) == 0x020)
5242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5244 #else
5245 # define ISLOWER(c) \
5246 (('a' <= (c) && (c) <= 'i') \
5247 || ('j' <= (c) && (c) <= 'r') \
5248 || ('s' <= (c) && (c) <= 'z'))
5249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5250 #endif
5252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5254 main ()
5256 int i;
5257 for (i = 0; i < 256; i++)
5258 if (XOR (islower (i), ISLOWER (i))
5259 || toupper (i) != TOUPPER (i))
5260 return 2;
5261 return 0;
5263 _ACEOF
5264 if ac_fn_c_try_run "$LINENO"; then :
5266 else
5267 ac_cv_header_stdc=no
5269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5270 conftest.$ac_objext conftest.beam conftest.$ac_ext
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5276 $as_echo "$ac_cv_header_stdc" >&6; }
5277 if test $ac_cv_header_stdc = yes; then
5279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5283 ac_header_dirent=no
5284 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5285 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5287 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <sys/types.h>
5294 #include <$ac_hdr>
5297 main ()
5299 if ((DIR *) 0)
5300 return 0;
5302 return 0;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 eval "$as_ac_Header=yes"
5307 else
5308 eval "$as_ac_Header=no"
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 eval ac_res=\$$as_ac_Header
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5314 $as_echo "$ac_res" >&6; }
5315 eval as_val=\$$as_ac_Header
5316 if test "x$as_val" = x""yes; then :
5317 cat >>confdefs.h <<_ACEOF
5318 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5319 _ACEOF
5321 ac_header_dirent=$ac_hdr; break
5324 done
5325 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5326 if test $ac_header_dirent = dirent.h; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5328 $as_echo_n "checking for library containing opendir... " >&6; }
5329 if test "${ac_cv_search_opendir+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 ac_func_search_save_LIBS=$LIBS
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5336 /* Override any GCC internal prototype to avoid an error.
5337 Use char because int might match the return type of a GCC
5338 builtin and then its argument prototype would still apply. */
5339 #ifdef __cplusplus
5340 extern "C"
5341 #endif
5342 char opendir ();
5344 main ()
5346 return opendir ();
5348 return 0;
5350 _ACEOF
5351 for ac_lib in '' dir; do
5352 if test -z "$ac_lib"; then
5353 ac_res="none required"
5354 else
5355 ac_res=-l$ac_lib
5356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5358 if ac_fn_c_try_link "$LINENO"; then :
5359 ac_cv_search_opendir=$ac_res
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext
5363 if test "${ac_cv_search_opendir+set}" = set; then :
5364 break
5366 done
5367 if test "${ac_cv_search_opendir+set}" = set; then :
5369 else
5370 ac_cv_search_opendir=no
5372 rm conftest.$ac_ext
5373 LIBS=$ac_func_search_save_LIBS
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5376 $as_echo "$ac_cv_search_opendir" >&6; }
5377 ac_res=$ac_cv_search_opendir
5378 if test "$ac_res" != no; then :
5379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5385 $as_echo_n "checking for library containing opendir... " >&6; }
5386 if test "${ac_cv_search_opendir+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 ac_func_search_save_LIBS=$LIBS
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 /* Override any GCC internal prototype to avoid an error.
5394 Use char because int might match the return type of a GCC
5395 builtin and then its argument prototype would still apply. */
5396 #ifdef __cplusplus
5397 extern "C"
5398 #endif
5399 char opendir ();
5401 main ()
5403 return opendir ();
5405 return 0;
5407 _ACEOF
5408 for ac_lib in '' x; do
5409 if test -z "$ac_lib"; then
5410 ac_res="none required"
5411 else
5412 ac_res=-l$ac_lib
5413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5415 if ac_fn_c_try_link "$LINENO"; then :
5416 ac_cv_search_opendir=$ac_res
5418 rm -f core conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext
5420 if test "${ac_cv_search_opendir+set}" = set; then :
5421 break
5423 done
5424 if test "${ac_cv_search_opendir+set}" = set; then :
5426 else
5427 ac_cv_search_opendir=no
5429 rm conftest.$ac_ext
5430 LIBS=$ac_func_search_save_LIBS
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5433 $as_echo "$ac_cv_search_opendir" >&6; }
5434 ac_res=$ac_cv_search_opendir
5435 if test "$ac_res" != no; then :
5436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5443 # =================
5444 # AC_CHECK_HEADERS
5445 # =================
5446 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
5447 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
5448 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
5449 utime.h sysexits.h
5450 do :
5451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5453 eval as_val=\$$as_ac_Header
5454 if test "x$as_val" = x""yes; then :
5455 cat >>confdefs.h <<_ACEOF
5456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 _ACEOF
5461 done
5464 # --------------------------------------------
5465 # Verify certain entries from AC_CHECK_HEADERS
5466 # --------------------------------------------
5467 for f in sys_types sys_mman sys_param sys_stat sys_wait \
5468 string errno stdlib memory setjmp
5469 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
5470 test "${as_ac_var}" = set || \
5471 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
5472 done
5474 # ================================================
5475 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
5476 # if varargs.h is present define HAVE_VARARGS_H.
5477 # ================================================
5478 for ac_header in stdarg.h varargs.h
5479 do :
5480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5482 eval as_val=\$$as_ac_Header
5483 if test "x$as_val" = x""yes; then :
5484 cat >>confdefs.h <<_ACEOF
5485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5486 _ACEOF
5487 break
5490 done
5492 if test `eval echo '${'$as_ac_Header'}'` != yes; then
5493 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
5496 # ================================================
5497 # Similarly for the string.h and strings.h headers
5498 # ================================================
5499 for ac_header in string.h strings.h
5500 do :
5501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5503 eval as_val=\$$as_ac_Header
5504 if test "x$as_val" = x""yes; then :
5505 cat >>confdefs.h <<_ACEOF
5506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507 _ACEOF
5508 break
5511 done
5513 if test `eval echo '${'$as_ac_Header'}'` != yes; then
5514 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
5517 # =====================
5518 # ...and limits headers
5519 # =====================
5520 for ac_header in limits.h sys/limits.h values.h
5521 do :
5522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5524 eval as_val=\$$as_ac_Header
5525 if test "x$as_val" = x""yes; then :
5526 cat >>confdefs.h <<_ACEOF
5527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528 _ACEOF
5529 break
5532 done
5534 if test `eval echo '${'$as_ac_Header'}'` != yes; then
5535 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
5538 # ----------------------------------------------------------------------
5539 # check for various programs used during the build.
5540 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
5541 # ----------------------------------------------------------------------
5542 for ac_header in runetype.h wchar.h
5543 do :
5544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
5546 $ac_includes_default
5547 #if HAVE_RUNETYPE_H
5548 # include <runetype.h>
5549 #endif
5552 eval as_val=\$$as_ac_Header
5553 if test "x$as_val" = x""yes; then :
5554 cat >>confdefs.h <<_ACEOF
5555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556 _ACEOF
5560 done
5563 # ----------------------------------------------------------------------
5564 # Checks for typedefs
5565 # ----------------------------------------------------------------------
5566 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
5567 if test "x$ac_cv_type_wchar_t" = x""yes; then :
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_WCHAR_T 1
5571 _ACEOF
5576 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
5577 $ac_includes_default
5578 #if HAVE_RUNETYPE_H
5579 # include <runetype.h>
5580 #endif
5581 #if HAVE_WCHAR_H
5582 # include <wchar.h>
5583 #endif
5586 if test "x$ac_cv_type_wint_t" = x""yes; then :
5588 cat >>confdefs.h <<_ACEOF
5589 #define HAVE_WINT_T 1
5590 _ACEOF
5596 # ========================
5597 # ...and int types headers
5598 # ========================
5599 for ac_header in stdint.h inttypes.h
5600 do :
5601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5603 eval as_val=\$$as_ac_Header
5604 if test "x$as_val" = x""yes; then :
5605 cat >>confdefs.h <<_ACEOF
5606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607 _ACEOF
5608 break
5611 done
5613 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5614 if test "x$ac_cv_type_int8_t" = x""yes; then :
5616 cat >>confdefs.h <<_ACEOF
5617 #define HAVE_INT8_T 1
5618 _ACEOF
5622 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5623 if test "x$ac_cv_type_uint8_t" = x""yes; then :
5625 cat >>confdefs.h <<_ACEOF
5626 #define HAVE_UINT8_T 1
5627 _ACEOF
5631 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5632 if test "x$ac_cv_type_int16_t" = x""yes; then :
5634 cat >>confdefs.h <<_ACEOF
5635 #define HAVE_INT16_T 1
5636 _ACEOF
5640 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5641 if test "x$ac_cv_type_uint16_t" = x""yes; then :
5643 cat >>confdefs.h <<_ACEOF
5644 #define HAVE_UINT16_T 1
5645 _ACEOF
5649 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5650 if test "x$ac_cv_type_int32_t" = x""yes; then :
5652 cat >>confdefs.h <<_ACEOF
5653 #define HAVE_INT32_T 1
5654 _ACEOF
5658 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5659 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5661 cat >>confdefs.h <<_ACEOF
5662 #define HAVE_UINT32_T 1
5663 _ACEOF
5667 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5668 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5670 cat >>confdefs.h <<_ACEOF
5671 #define HAVE_INTPTR_T 1
5672 _ACEOF
5676 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5677 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5679 cat >>confdefs.h <<_ACEOF
5680 #define HAVE_UINTPTR_T 1
5681 _ACEOF
5685 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
5686 if test "x$ac_cv_type_uint_t" = x""yes; then :
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_UINT_T 1
5690 _ACEOF
5694 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5695 if test "x$ac_cv_type_pid_t" = x""yes; then :
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_PID_T 1
5699 _ACEOF
5703 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5704 if test "x$ac_cv_type_size_t" = x""yes; then :
5706 cat >>confdefs.h <<_ACEOF
5707 #define HAVE_SIZE_T 1
5708 _ACEOF
5714 # =====
5715 # sizes
5716 # =====
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
5722 $as_echo_n "checking size of char*... " >&6; }
5723 if test "${ac_cv_sizeof_charp+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
5728 else
5729 if test "$ac_cv_type_charp" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status 77
5733 as_fn_error "cannot compute sizeof (char*)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5735 else
5736 ac_cv_sizeof_charp=0
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
5742 $as_echo "$ac_cv_sizeof_charp" >&6; }
5746 cat >>confdefs.h <<_ACEOF
5747 #define SIZEOF_CHARP $ac_cv_sizeof_charp
5748 _ACEOF
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5762 else
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status 77
5767 as_fn_error "cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5769 else
5770 ac_cv_sizeof_int=0
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5782 _ACEOF
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5796 else
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status 77
5801 as_fn_error "cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5803 else
5804 ac_cv_sizeof_long=0
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5814 cat >>confdefs.h <<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 _ACEOF
5819 # The cast to long int works around a bug in the HP C Compiler
5820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5822 # This bug is HP SR number 8606223364.
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5824 $as_echo_n "checking size of short... " >&6; }
5825 if test "${ac_cv_sizeof_short+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5830 else
5831 if test "$ac_cv_type_short" = yes; then
5832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5834 { as_fn_set_status 77
5835 as_fn_error "cannot compute sizeof (short)
5836 See \`config.log' for more details." "$LINENO" 5; }; }
5837 else
5838 ac_cv_sizeof_short=0
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5844 $as_echo "$ac_cv_sizeof_short" >&6; }
5848 cat >>confdefs.h <<_ACEOF
5849 #define SIZEOF_SHORT $ac_cv_sizeof_short
5850 _ACEOF
5854 # ----------------------------------------------------------------------
5855 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
5856 # ----------------------------------------------------------------------
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
5858 $as_echo_n "checking for pathfind in -lgen... " >&6; }
5859 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 ac_check_lib_save_LIBS=$LIBS
5863 LIBS="-lgen $LIBS"
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5870 #ifdef __cplusplus
5871 extern "C"
5872 #endif
5873 char pathfind ();
5875 main ()
5877 return pathfind ();
5879 return 0;
5881 _ACEOF
5882 if ac_fn_c_try_link "$LINENO"; then :
5883 ac_cv_lib_gen_pathfind=yes
5884 else
5885 ac_cv_lib_gen_pathfind=no
5887 rm -f core conftest.err conftest.$ac_objext \
5888 conftest$ac_exeext conftest.$ac_ext
5889 LIBS=$ac_check_lib_save_LIBS
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
5892 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
5893 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
5894 cat >>confdefs.h <<_ACEOF
5895 #define HAVE_LIBGEN 1
5896 _ACEOF
5898 LIBS="-lgen $LIBS"
5902 for ac_func in vprintf
5903 do :
5904 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5905 if test "x$ac_cv_func_vprintf" = x""yes; then :
5906 cat >>confdefs.h <<_ACEOF
5907 #define HAVE_VPRINTF 1
5908 _ACEOF
5910 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5911 if test "x$ac_cv_func__doprnt" = x""yes; then :
5913 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5918 done
5921 for ac_header in vfork.h
5922 do :
5923 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5924 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5925 cat >>confdefs.h <<_ACEOF
5926 #define HAVE_VFORK_H 1
5927 _ACEOF
5931 done
5933 for ac_func in fork vfork
5934 do :
5935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5937 eval as_val=\$$as_ac_var
5938 if test "x$as_val" = x""yes; then :
5939 cat >>confdefs.h <<_ACEOF
5940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5941 _ACEOF
5944 done
5946 if test "x$ac_cv_func_fork" = xyes; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5948 $as_echo_n "checking for working fork... " >&6; }
5949 if test "${ac_cv_func_fork_works+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test "$cross_compiling" = yes; then :
5953 ac_cv_func_fork_works=cross
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 $ac_includes_default
5959 main ()
5962 /* By Ruediger Kuhlmann. */
5963 return fork () < 0;
5966 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_run "$LINENO"; then :
5970 ac_cv_func_fork_works=yes
5971 else
5972 ac_cv_func_fork_works=no
5974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5975 conftest.$ac_objext conftest.beam conftest.$ac_ext
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5980 $as_echo "$ac_cv_func_fork_works" >&6; }
5982 else
5983 ac_cv_func_fork_works=$ac_cv_func_fork
5985 if test "x$ac_cv_func_fork_works" = xcross; then
5986 case $host in
5987 *-*-amigaos* | *-*-msdosdjgpp*)
5988 # Override, as these systems have only a dummy fork() stub
5989 ac_cv_func_fork_works=no
5992 ac_cv_func_fork_works=yes
5994 esac
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5996 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5998 ac_cv_func_vfork_works=$ac_cv_func_vfork
5999 if test "x$ac_cv_func_vfork" = xyes; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6001 $as_echo_n "checking for working vfork... " >&6; }
6002 if test "${ac_cv_func_vfork_works+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test "$cross_compiling" = yes; then :
6006 ac_cv_func_vfork_works=cross
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 /* Thanks to Paul Eggert for this test. */
6011 $ac_includes_default
6012 #include <sys/wait.h>
6013 #ifdef HAVE_VFORK_H
6014 # include <vfork.h>
6015 #endif
6016 /* On some sparc systems, changes by the child to local and incoming
6017 argument registers are propagated back to the parent. The compiler
6018 is told about this with #include <vfork.h>, but some compilers
6019 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6020 static variable whose address is put into a register that is
6021 clobbered by the vfork. */
6022 static void
6023 #ifdef __cplusplus
6024 sparc_address_test (int arg)
6025 # else
6026 sparc_address_test (arg) int arg;
6027 #endif
6029 static pid_t child;
6030 if (!child) {
6031 child = vfork ();
6032 if (child < 0) {
6033 perror ("vfork");
6034 _exit(2);
6036 if (!child) {
6037 arg = getpid();
6038 write(-1, "", 0);
6039 _exit (arg);
6045 main ()
6047 pid_t parent = getpid ();
6048 pid_t child;
6050 sparc_address_test (0);
6052 child = vfork ();
6054 if (child == 0) {
6055 /* Here is another test for sparc vfork register problems. This
6056 test uses lots of local variables, at least as many local
6057 variables as main has allocated so far including compiler
6058 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6059 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6060 reuse the register of parent for one of the local variables,
6061 since it will think that parent can't possibly be used any more
6062 in this routine. Assigning to the local variable will thus
6063 munge parent in the parent process. */
6064 pid_t
6065 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6066 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6067 /* Convince the compiler that p..p7 are live; otherwise, it might
6068 use the same hardware register for all 8 local variables. */
6069 if (p != p1 || p != p2 || p != p3 || p != p4
6070 || p != p5 || p != p6 || p != p7)
6071 _exit(1);
6073 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6074 from child file descriptors. If the child closes a descriptor
6075 before it execs or exits, this munges the parent's descriptor
6076 as well. Test for this by closing stdout in the child. */
6077 _exit(close(fileno(stdout)) != 0);
6078 } else {
6079 int status;
6080 struct stat st;
6082 while (wait(&status) != child)
6084 return (
6085 /* Was there some problem with vforking? */
6086 child < 0
6088 /* Did the child fail? (This shouldn't happen.) */
6089 || status
6091 /* Did the vfork/compiler bug occur? */
6092 || parent != getpid()
6094 /* Did the file descriptor bug occur? */
6095 || fstat(fileno(stdout), &st) != 0
6099 _ACEOF
6100 if ac_fn_c_try_run "$LINENO"; then :
6101 ac_cv_func_vfork_works=yes
6102 else
6103 ac_cv_func_vfork_works=no
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106 conftest.$ac_objext conftest.beam conftest.$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6111 $as_echo "$ac_cv_func_vfork_works" >&6; }
6114 if test "x$ac_cv_func_fork_works" = xcross; then
6115 ac_cv_func_vfork_works=$ac_cv_func_vfork
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6117 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6120 if test "x$ac_cv_func_vfork_works" = xyes; then
6122 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6124 else
6126 $as_echo "#define vfork fork" >>confdefs.h
6129 if test "x$ac_cv_func_fork_works" = xyes; then
6131 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6135 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
6136 strrchr strsignal
6137 do :
6138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6140 eval as_val=\$$as_ac_var
6141 if test "x$as_val" = x""yes; then :
6142 cat >>confdefs.h <<_ACEOF
6143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6144 _ACEOF
6147 done
6149 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
6151 # Check to see if a reg expr header is specified.
6154 # Check whether --with-regex-header was given.
6155 if test "${with_regex_header+set}" = set; then :
6156 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
6159 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
6160 if test "${libopts_cv_with_regex_header+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 libopts_cv_with_regex_header=no
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
6166 $as_echo "$libopts_cv_with_regex_header" >&6; }
6169 # end of AC_ARG_WITH
6171 if test "X${libopts_cv_with_regex_header}" != Xno
6172 then
6173 cat >>confdefs.h <<_ACEOF
6174 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
6175 _ACEOF
6177 else
6179 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
6185 # Check to see if a working libregex can be found.
6188 # Check whether --with-libregex was given.
6189 if test "${with_libregex+set}" = set; then :
6190 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
6193 $as_echo_n "checking whether with-libregex was specified... " >&6; }
6194 if test "${libopts_cv_with_libregex_root+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 libopts_cv_with_libregex_root=no
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
6200 $as_echo "$libopts_cv_with_libregex_root" >&6; }
6203 # end of AC_ARG_WITH libregex
6205 if test "${with_libguile+set}" = set && \
6206 test "${withval}" = no
6207 then ## disabled by request
6208 libopts_cv_with_libregex_root=no
6209 libopts_cv_with_libregex_cflags=no
6210 libopts_cv_with_libregex_libs=no
6211 else
6214 # Check whether --with-libregex-cflags was given.
6215 if test "${with_libregex_cflags+set}" = set; then :
6216 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
6217 else
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
6219 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
6220 if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 libopts_cv_with_libregex_cflags=no
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
6226 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
6229 # end of AC_ARG_WITH libregex-cflags
6232 # Check whether --with-libregex-libs was given.
6233 if test "${with_libregex_libs+set}" = set; then :
6234 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
6237 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
6238 if test "${libopts_cv_with_libregex_libs+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 libopts_cv_with_libregex_libs=no
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
6244 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
6247 # end of AC_ARG_WITH libregex-libs
6249 case "X${libopts_cv_with_libregex_cflags}" in
6250 Xyes|Xno|X )
6251 case "X${libopts_cv_with_libregex_root}" in
6252 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
6253 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
6254 esac
6255 esac
6256 case "X${libopts_cv_with_libregex_libs}" in
6257 Xyes|Xno|X )
6258 case "X${libopts_cv_with_libregex_root}" in
6259 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
6260 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
6261 esac
6262 esac
6263 libopts_save_CPPFLAGS="${CPPFLAGS}"
6264 libopts_save_LIBS="${LIBS}"
6265 fi ## disabled by request
6267 case "X${libopts_cv_with_libregex_cflags}" in
6268 Xyes|Xno|X )
6269 libopts_cv_with_libregex_cflags="" ;;
6270 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
6271 esac
6272 case "X${libopts_cv_with_libregex_libs}" in
6273 Xyes|Xno|X )
6274 libopts_cv_with_libregex_libs="" ;;
6276 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
6277 esac
6278 LIBREGEX_CFLAGS=""
6279 LIBREGEX_LIBS=""
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
6281 $as_echo_n "checking whether libregex functions properly... " >&6; }
6282 if test "${libopts_cv_with_libregex+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6286 if test "$cross_compiling" = yes; then :
6287 libopts_cv_with_libregex=no
6288 else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <stdio.h>
6292 #include <stdlib.h>
6293 #include <sys/types.h>
6294 #include REGEX_HEADER
6295 static regex_t re;
6296 void comp_re( char const* pzPat ) {
6297 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
6298 if (res == 0) return;
6299 exit( res ); }
6300 int main() {
6301 regmatch_t m[2];
6302 comp_re( "^.*\$" );
6303 comp_re( "()|no.*" );
6304 comp_re( "." );
6305 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
6306 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
6307 fputs( "error: regex -->.<-- did not match\n", stderr );
6308 return 1;
6310 return 0; }
6311 _ACEOF
6312 if ac_fn_c_try_run "$LINENO"; then :
6313 libopts_cv_with_libregex=yes
6314 else
6315 libopts_cv_with_libregex=no
6317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6318 conftest.$ac_objext conftest.beam conftest.$ac_ext
6320 # end of AC_TRY_RUN
6323 # end of AC_CACHE_VAL for libopts_cv_with_libregex
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
6325 $as_echo "${libopts_cv_with_libregex}" >&6; }
6327 if test "X${libopts_cv_with_libregex}" != Xno
6328 then
6330 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
6332 else
6333 CPPFLAGS="${libopts_save_CPPFLAGS}"
6334 LIBS="${libopts_save_LIBS}"
6339 # Check to see if pathfind(3) works.
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
6342 $as_echo_n "checking whether pathfind(3) works... " >&6; }
6343 if test "${libopts_cv_run_pathfind+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6347 if test "$cross_compiling" = yes; then :
6348 libopts_cv_run_pathfind=no
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 #include <string.h>
6354 #include <stdlib.h>
6355 int main (int argc, char** argv) {
6356 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
6357 return (pz == 0) ? 1 : 0;
6359 _ACEOF
6360 if ac_fn_c_try_run "$LINENO"; then :
6361 libopts_cv_run_pathfind=yes
6362 else
6363 libopts_cv_run_pathfind=no
6365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6366 conftest.$ac_objext conftest.beam conftest.$ac_ext
6368 # end of TRY_RUN
6371 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
6373 $as_echo "${libopts_cv_run_pathfind}" >&6; }
6375 if test "X${libopts_cv_run_pathfind}" != Xno
6376 then
6378 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
6384 # Check to see if /dev/zero is readable device.
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
6387 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
6388 if test "${libopts_cv_test_dev_zero+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6392 libopts_cv_test_dev_zero=`exec 2> /dev/null
6393 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
6394 test -z "${dzero}" && exit 1
6395 echo ${dzero}`
6396 if test $? -ne 0
6397 then libopts_cv_test_dev_zero=no
6398 elif test -z "$libopts_cv_test_dev_zero"
6399 then libopts_cv_test_dev_zero=no
6403 # end of CACHE_VAL of libopts_cv_test_dev_zero
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
6405 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
6407 if test "X${libopts_cv_test_dev_zero}" != Xno
6408 then
6410 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
6416 # Check to see if we have a functional realpath(3C).
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
6419 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
6420 if test "${libopts_cv_run_realpath+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6424 if test "$cross_compiling" = yes; then :
6425 libopts_cv_run_realpath=no
6427 else
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 #include <limits.h>
6431 #include <stdlib.h>
6432 int main (int argc, char** argv) {
6433 #ifndef PATH_MAX
6434 choke me!!
6435 #else
6436 char zPath[PATH_MAX+1];
6437 #endif
6438 char *pz = realpath(argv[0], zPath);
6439 return (pz == zPath) ? 0 : 1;
6441 _ACEOF
6442 if ac_fn_c_try_run "$LINENO"; then :
6443 libopts_cv_run_realpath=yes
6444 else
6445 libopts_cv_run_realpath=no
6447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6448 conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 # end of TRY_RUN
6453 # end of AC_CACHE_VAL for libopts_cv_run_realpath
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
6455 $as_echo "${libopts_cv_run_realpath}" >&6; }
6457 if test "X${libopts_cv_run_realpath}" != Xno
6458 then
6460 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6466 # Check to see if strftime() works.
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
6469 $as_echo_n "checking whether strftime() works... " >&6; }
6470 if test "${libopts_cv_run_strftime+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6474 if test "$cross_compiling" = yes; then :
6475 libopts_cv_run_strftime=no
6477 else
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <time.h>
6481 #include <string.h>
6482 char t_buf[ 64 ];
6483 int main() {
6484 static char const z[] = "Thursday Aug 28 240";
6485 struct tm tm;
6486 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
6487 tm.tm_min = 44; /* minutes after the hour [0, 59] */
6488 tm.tm_hour = 12; /* hour since midnight [0, 23] */
6489 tm.tm_mday = 28; /* day of the month [1, 31] */
6490 tm.tm_mon = 7; /* months since January [0, 11] */
6491 tm.tm_year = 86; /* years since 1900 */
6492 tm.tm_wday = 4; /* days since Sunday [0, 6] */
6493 tm.tm_yday = 239; /* days since January 1 [0, 365] */
6494 tm.tm_isdst = 1; /* flag for daylight savings time */
6495 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
6496 return (strcmp( t_buf, z ) != 0); }
6497 _ACEOF
6498 if ac_fn_c_try_run "$LINENO"; then :
6499 libopts_cv_run_strftime=yes
6500 else
6501 libopts_cv_run_strftime=no
6503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6504 conftest.$ac_objext conftest.beam conftest.$ac_ext
6506 # end of TRY_RUN
6509 # end of AC_CACHE_VAL for libopts_cv_run_strftime
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
6511 $as_echo "${libopts_cv_run_strftime}" >&6; }
6513 if test "X${libopts_cv_run_strftime}" != Xno
6514 then
6516 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
6522 # Check to see if fopen accepts "b" mode.
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
6525 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
6526 if test "${libopts_cv_run_fopen_binary+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6530 if test "$cross_compiling" = yes; then :
6531 libopts_cv_run_fopen_binary=no
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <stdio.h>
6537 int main (int argc, char** argv) {
6538 FILE* fp = fopen("conftest.$ac_ext", "rb");
6539 return (fp == NULL) ? 1 : fclose(fp); }
6540 _ACEOF
6541 if ac_fn_c_try_run "$LINENO"; then :
6542 libopts_cv_run_fopen_binary=yes
6543 else
6544 libopts_cv_run_fopen_binary=no
6546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6547 conftest.$ac_objext conftest.beam conftest.$ac_ext
6549 # end of TRY_RUN
6552 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
6554 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
6556 if test "X${libopts_cv_run_fopen_binary}" != Xno
6557 then
6559 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
6561 else
6563 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
6569 # Check to see if fopen accepts "t" mode.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
6572 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
6573 if test "${libopts_cv_run_fopen_text+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6577 if test "$cross_compiling" = yes; then :
6578 libopts_cv_run_fopen_text=no
6580 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 #include <stdio.h>
6584 int main (int argc, char** argv) {
6585 FILE* fp = fopen("conftest.$ac_ext", "rt");
6586 return (fp == NULL) ? 1 : fclose(fp); }
6587 _ACEOF
6588 if ac_fn_c_try_run "$LINENO"; then :
6589 libopts_cv_run_fopen_text=yes
6590 else
6591 libopts_cv_run_fopen_text=no
6593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6594 conftest.$ac_objext conftest.beam conftest.$ac_ext
6596 # end of TRY_RUN
6599 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
6601 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
6603 if test "X${libopts_cv_run_fopen_text}" != Xno
6604 then
6606 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
6608 else
6610 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
6616 # Check to see if not wanting optional option args.
6618 # Check whether --enable-optional-args was given.
6619 if test "${enable_optional_args+set}" = set; then :
6620 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
6623 $as_echo_n "checking whether not wanting optional option args... " >&6; }
6624 if test "${libopts_cv_enable_optional_args+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 libopts_cv_enable_optional_args=yes
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
6630 $as_echo "$libopts_cv_enable_optional_args" >&6; }
6633 # end of AC_ARG_ENABLE
6635 if test "X${libopts_cv_enable_optional_args}" = Xno
6636 then
6638 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
6645 else
6647 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6649 $as_echo_n "checking for ANSI C header files... " >&6; }
6650 if test "${ac_cv_header_stdc+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 #include <stdlib.h>
6656 #include <stdarg.h>
6657 #include <string.h>
6658 #include <float.h>
6661 main ()
6665 return 0;
6667 _ACEOF
6668 if ac_fn_c_try_compile "$LINENO"; then :
6669 ac_cv_header_stdc=yes
6670 else
6671 ac_cv_header_stdc=no
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675 if test $ac_cv_header_stdc = yes; then
6676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 #include <string.h>
6681 _ACEOF
6682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683 $EGREP "memchr" >/dev/null 2>&1; then :
6685 else
6686 ac_cv_header_stdc=no
6688 rm -f conftest*
6692 if test $ac_cv_header_stdc = yes; then
6693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 #include <stdlib.h>
6698 _ACEOF
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "free" >/dev/null 2>&1; then :
6702 else
6703 ac_cv_header_stdc=no
6705 rm -f conftest*
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then :
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #include <ctype.h>
6717 #include <stdlib.h>
6718 #if ((' ' & 0x0FF) == 0x020)
6719 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6720 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6721 #else
6722 # define ISLOWER(c) \
6723 (('a' <= (c) && (c) <= 'i') \
6724 || ('j' <= (c) && (c) <= 'r') \
6725 || ('s' <= (c) && (c) <= 'z'))
6726 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6727 #endif
6729 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6731 main ()
6733 int i;
6734 for (i = 0; i < 256; i++)
6735 if (XOR (islower (i), ISLOWER (i))
6736 || toupper (i) != TOUPPER (i))
6737 return 2;
6738 return 0;
6740 _ACEOF
6741 if ac_fn_c_try_run "$LINENO"; then :
6743 else
6744 ac_cv_header_stdc=no
6746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6747 conftest.$ac_objext conftest.beam conftest.$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6753 $as_echo "$ac_cv_header_stdc" >&6; }
6754 if test $ac_cv_header_stdc = yes; then
6756 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6760 ac_header_dirent=no
6761 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6762 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6764 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <sys/types.h>
6771 #include <$ac_hdr>
6774 main ()
6776 if ((DIR *) 0)
6777 return 0;
6779 return 0;
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 eval "$as_ac_Header=yes"
6784 else
6785 eval "$as_ac_Header=no"
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 eval ac_res=\$$as_ac_Header
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792 eval as_val=\$$as_ac_Header
6793 if test "x$as_val" = x""yes; then :
6794 cat >>confdefs.h <<_ACEOF
6795 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6796 _ACEOF
6798 ac_header_dirent=$ac_hdr; break
6801 done
6802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6803 if test $ac_header_dirent = dirent.h; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6805 $as_echo_n "checking for library containing opendir... " >&6; }
6806 if test "${ac_cv_search_opendir+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 ac_func_search_save_LIBS=$LIBS
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6813 /* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
6816 #ifdef __cplusplus
6817 extern "C"
6818 #endif
6819 char opendir ();
6821 main ()
6823 return opendir ();
6825 return 0;
6827 _ACEOF
6828 for ac_lib in '' dir; do
6829 if test -z "$ac_lib"; then
6830 ac_res="none required"
6831 else
6832 ac_res=-l$ac_lib
6833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6835 if ac_fn_c_try_link "$LINENO"; then :
6836 ac_cv_search_opendir=$ac_res
6838 rm -f core conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext
6840 if test "${ac_cv_search_opendir+set}" = set; then :
6841 break
6843 done
6844 if test "${ac_cv_search_opendir+set}" = set; then :
6846 else
6847 ac_cv_search_opendir=no
6849 rm conftest.$ac_ext
6850 LIBS=$ac_func_search_save_LIBS
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6853 $as_echo "$ac_cv_search_opendir" >&6; }
6854 ac_res=$ac_cv_search_opendir
6855 if test "$ac_res" != no; then :
6856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6862 $as_echo_n "checking for library containing opendir... " >&6; }
6863 if test "${ac_cv_search_opendir+set}" = set; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 ac_func_search_save_LIBS=$LIBS
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6870 /* Override any GCC internal prototype to avoid an error.
6871 Use char because int might match the return type of a GCC
6872 builtin and then its argument prototype would still apply. */
6873 #ifdef __cplusplus
6874 extern "C"
6875 #endif
6876 char opendir ();
6878 main ()
6880 return opendir ();
6882 return 0;
6884 _ACEOF
6885 for ac_lib in '' x; do
6886 if test -z "$ac_lib"; then
6887 ac_res="none required"
6888 else
6889 ac_res=-l$ac_lib
6890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_search_opendir=$ac_res
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext
6897 if test "${ac_cv_search_opendir+set}" = set; then :
6898 break
6900 done
6901 if test "${ac_cv_search_opendir+set}" = set; then :
6903 else
6904 ac_cv_search_opendir=no
6906 rm conftest.$ac_ext
6907 LIBS=$ac_func_search_save_LIBS
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6910 $as_echo "$ac_cv_search_opendir" >&6; }
6911 ac_res=$ac_cv_search_opendir
6912 if test "$ac_res" != no; then :
6913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6920 # =================
6921 # AC_CHECK_HEADERS
6922 # =================
6923 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
6924 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
6925 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
6926 utime.h sysexits.h
6927 do :
6928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6930 eval as_val=\$$as_ac_Header
6931 if test "x$as_val" = x""yes; then :
6932 cat >>confdefs.h <<_ACEOF
6933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934 _ACEOF
6938 done
6941 # --------------------------------------------
6942 # Verify certain entries from AC_CHECK_HEADERS
6943 # --------------------------------------------
6944 for f in sys_types sys_mman sys_param sys_stat sys_wait \
6945 string errno stdlib memory setjmp
6946 do eval as_ac_var=\${ac_cv_header_${f}_h+set}
6947 test "${as_ac_var}" = set || \
6948 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
6949 done
6951 # ================================================
6952 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
6953 # if varargs.h is present define HAVE_VARARGS_H.
6954 # ================================================
6955 for ac_header in stdarg.h varargs.h
6956 do :
6957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6959 eval as_val=\$$as_ac_Header
6960 if test "x$as_val" = x""yes; then :
6961 cat >>confdefs.h <<_ACEOF
6962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6963 _ACEOF
6964 break
6967 done
6969 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6970 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
6973 # ================================================
6974 # Similarly for the string.h and strings.h headers
6975 # ================================================
6976 for ac_header in string.h strings.h
6977 do :
6978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6980 eval as_val=\$$as_ac_Header
6981 if test "x$as_val" = x""yes; then :
6982 cat >>confdefs.h <<_ACEOF
6983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984 _ACEOF
6985 break
6988 done
6990 if test `eval echo '${'$as_ac_Header'}'` != yes; then
6991 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
6994 # =====================
6995 # ...and limits headers
6996 # =====================
6997 for ac_header in limits.h sys/limits.h values.h
6998 do :
6999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7001 eval as_val=\$$as_ac_Header
7002 if test "x$as_val" = x""yes; then :
7003 cat >>confdefs.h <<_ACEOF
7004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7005 _ACEOF
7006 break
7009 done
7011 if test `eval echo '${'$as_ac_Header'}'` != yes; then
7012 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
7015 # ----------------------------------------------------------------------
7016 # check for various programs used during the build.
7017 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
7018 # ----------------------------------------------------------------------
7019 for ac_header in runetype.h wchar.h
7020 do :
7021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7023 $ac_includes_default
7024 #if HAVE_RUNETYPE_H
7025 # include <runetype.h>
7026 #endif
7029 eval as_val=\$$as_ac_Header
7030 if test "x$as_val" = x""yes; then :
7031 cat >>confdefs.h <<_ACEOF
7032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033 _ACEOF
7037 done
7040 # ----------------------------------------------------------------------
7041 # Checks for typedefs
7042 # ----------------------------------------------------------------------
7043 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
7044 if test "x$ac_cv_type_wchar_t" = x""yes; then :
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_WCHAR_T 1
7048 _ACEOF
7053 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
7054 $ac_includes_default
7055 #if HAVE_RUNETYPE_H
7056 # include <runetype.h>
7057 #endif
7058 #if HAVE_WCHAR_H
7059 # include <wchar.h>
7060 #endif
7063 if test "x$ac_cv_type_wint_t" = x""yes; then :
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_WINT_T 1
7067 _ACEOF
7073 # ========================
7074 # ...and int types headers
7075 # ========================
7076 for ac_header in stdint.h inttypes.h
7077 do :
7078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7080 eval as_val=\$$as_ac_Header
7081 if test "x$as_val" = x""yes; then :
7082 cat >>confdefs.h <<_ACEOF
7083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7084 _ACEOF
7085 break
7088 done
7090 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7091 if test "x$ac_cv_type_int8_t" = x""yes; then :
7093 cat >>confdefs.h <<_ACEOF
7094 #define HAVE_INT8_T 1
7095 _ACEOF
7099 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7100 if test "x$ac_cv_type_uint8_t" = x""yes; then :
7102 cat >>confdefs.h <<_ACEOF
7103 #define HAVE_UINT8_T 1
7104 _ACEOF
7108 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7109 if test "x$ac_cv_type_int16_t" = x""yes; then :
7111 cat >>confdefs.h <<_ACEOF
7112 #define HAVE_INT16_T 1
7113 _ACEOF
7117 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7118 if test "x$ac_cv_type_uint16_t" = x""yes; then :
7120 cat >>confdefs.h <<_ACEOF
7121 #define HAVE_UINT16_T 1
7122 _ACEOF
7126 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7127 if test "x$ac_cv_type_int32_t" = x""yes; then :
7129 cat >>confdefs.h <<_ACEOF
7130 #define HAVE_INT32_T 1
7131 _ACEOF
7135 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7136 if test "x$ac_cv_type_uint32_t" = x""yes; then :
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_UINT32_T 1
7140 _ACEOF
7144 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7145 if test "x$ac_cv_type_intptr_t" = x""yes; then :
7147 cat >>confdefs.h <<_ACEOF
7148 #define HAVE_INTPTR_T 1
7149 _ACEOF
7153 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7154 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_UINTPTR_T 1
7158 _ACEOF
7162 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
7163 if test "x$ac_cv_type_uint_t" = x""yes; then :
7165 cat >>confdefs.h <<_ACEOF
7166 #define HAVE_UINT_T 1
7167 _ACEOF
7171 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7172 if test "x$ac_cv_type_pid_t" = x""yes; then :
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_PID_T 1
7176 _ACEOF
7180 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7181 if test "x$ac_cv_type_size_t" = x""yes; then :
7183 cat >>confdefs.h <<_ACEOF
7184 #define HAVE_SIZE_T 1
7185 _ACEOF
7191 # =====
7192 # sizes
7193 # =====
7194 # The cast to long int works around a bug in the HP C Compiler
7195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7197 # This bug is HP SR number 8606223364.
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
7199 $as_echo_n "checking size of char*... " >&6; }
7200 if test "${ac_cv_sizeof_charp+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
7205 else
7206 if test "$ac_cv_type_charp" = yes; then
7207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7209 { as_fn_set_status 77
7210 as_fn_error "cannot compute sizeof (char*)
7211 See \`config.log' for more details." "$LINENO" 5; }; }
7212 else
7213 ac_cv_sizeof_charp=0
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
7219 $as_echo "$ac_cv_sizeof_charp" >&6; }
7223 cat >>confdefs.h <<_ACEOF
7224 #define SIZEOF_CHARP $ac_cv_sizeof_charp
7225 _ACEOF
7228 # The cast to long int works around a bug in the HP C Compiler
7229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7231 # This bug is HP SR number 8606223364.
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7233 $as_echo_n "checking size of int... " >&6; }
7234 if test "${ac_cv_sizeof_int+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7239 else
7240 if test "$ac_cv_type_int" = yes; then
7241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7243 { as_fn_set_status 77
7244 as_fn_error "cannot compute sizeof (int)
7245 See \`config.log' for more details." "$LINENO" 5; }; }
7246 else
7247 ac_cv_sizeof_int=0
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7253 $as_echo "$ac_cv_sizeof_int" >&6; }
7257 cat >>confdefs.h <<_ACEOF
7258 #define SIZEOF_INT $ac_cv_sizeof_int
7259 _ACEOF
7262 # The cast to long int works around a bug in the HP C Compiler
7263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7265 # This bug is HP SR number 8606223364.
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7267 $as_echo_n "checking size of long... " >&6; }
7268 if test "${ac_cv_sizeof_long+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7273 else
7274 if test "$ac_cv_type_long" = yes; then
7275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7277 { as_fn_set_status 77
7278 as_fn_error "cannot compute sizeof (long)
7279 See \`config.log' for more details." "$LINENO" 5; }; }
7280 else
7281 ac_cv_sizeof_long=0
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7287 $as_echo "$ac_cv_sizeof_long" >&6; }
7291 cat >>confdefs.h <<_ACEOF
7292 #define SIZEOF_LONG $ac_cv_sizeof_long
7293 _ACEOF
7296 # The cast to long int works around a bug in the HP C Compiler
7297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7299 # This bug is HP SR number 8606223364.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7301 $as_echo_n "checking size of short... " >&6; }
7302 if test "${ac_cv_sizeof_short+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7307 else
7308 if test "$ac_cv_type_short" = yes; then
7309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311 { as_fn_set_status 77
7312 as_fn_error "cannot compute sizeof (short)
7313 See \`config.log' for more details." "$LINENO" 5; }; }
7314 else
7315 ac_cv_sizeof_short=0
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7321 $as_echo "$ac_cv_sizeof_short" >&6; }
7325 cat >>confdefs.h <<_ACEOF
7326 #define SIZEOF_SHORT $ac_cv_sizeof_short
7327 _ACEOF
7331 # ----------------------------------------------------------------------
7332 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
7333 # ----------------------------------------------------------------------
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
7335 $as_echo_n "checking for pathfind in -lgen... " >&6; }
7336 if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 ac_check_lib_save_LIBS=$LIBS
7340 LIBS="-lgen $LIBS"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7344 /* Override any GCC internal prototype to avoid an error.
7345 Use char because int might match the return type of a GCC
7346 builtin and then its argument prototype would still apply. */
7347 #ifdef __cplusplus
7348 extern "C"
7349 #endif
7350 char pathfind ();
7352 main ()
7354 return pathfind ();
7356 return 0;
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 ac_cv_lib_gen_pathfind=yes
7361 else
7362 ac_cv_lib_gen_pathfind=no
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 LIBS=$ac_check_lib_save_LIBS
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
7369 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
7370 if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
7371 cat >>confdefs.h <<_ACEOF
7372 #define HAVE_LIBGEN 1
7373 _ACEOF
7375 LIBS="-lgen $LIBS"
7379 for ac_func in vprintf
7380 do :
7381 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7382 if test "x$ac_cv_func_vprintf" = x""yes; then :
7383 cat >>confdefs.h <<_ACEOF
7384 #define HAVE_VPRINTF 1
7385 _ACEOF
7387 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7388 if test "x$ac_cv_func__doprnt" = x""yes; then :
7390 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7395 done
7398 for ac_header in vfork.h
7399 do :
7400 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7401 if test "x$ac_cv_header_vfork_h" = x""yes; then :
7402 cat >>confdefs.h <<_ACEOF
7403 #define HAVE_VFORK_H 1
7404 _ACEOF
7408 done
7410 for ac_func in fork vfork
7411 do :
7412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7413 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7414 eval as_val=\$$as_ac_var
7415 if test "x$as_val" = x""yes; then :
7416 cat >>confdefs.h <<_ACEOF
7417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7418 _ACEOF
7421 done
7423 if test "x$ac_cv_func_fork" = xyes; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7425 $as_echo_n "checking for working fork... " >&6; }
7426 if test "${ac_cv_func_fork_works+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 if test "$cross_compiling" = yes; then :
7430 ac_cv_func_fork_works=cross
7431 else
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 $ac_includes_default
7436 main ()
7439 /* By Ruediger Kuhlmann. */
7440 return fork () < 0;
7443 return 0;
7445 _ACEOF
7446 if ac_fn_c_try_run "$LINENO"; then :
7447 ac_cv_func_fork_works=yes
7448 else
7449 ac_cv_func_fork_works=no
7451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452 conftest.$ac_objext conftest.beam conftest.$ac_ext
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7457 $as_echo "$ac_cv_func_fork_works" >&6; }
7459 else
7460 ac_cv_func_fork_works=$ac_cv_func_fork
7462 if test "x$ac_cv_func_fork_works" = xcross; then
7463 case $host in
7464 *-*-amigaos* | *-*-msdosdjgpp*)
7465 # Override, as these systems have only a dummy fork() stub
7466 ac_cv_func_fork_works=no
7469 ac_cv_func_fork_works=yes
7471 esac
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7473 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7475 ac_cv_func_vfork_works=$ac_cv_func_vfork
7476 if test "x$ac_cv_func_vfork" = xyes; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7478 $as_echo_n "checking for working vfork... " >&6; }
7479 if test "${ac_cv_func_vfork_works+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test "$cross_compiling" = yes; then :
7483 ac_cv_func_vfork_works=cross
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 /* Thanks to Paul Eggert for this test. */
7488 $ac_includes_default
7489 #include <sys/wait.h>
7490 #ifdef HAVE_VFORK_H
7491 # include <vfork.h>
7492 #endif
7493 /* On some sparc systems, changes by the child to local and incoming
7494 argument registers are propagated back to the parent. The compiler
7495 is told about this with #include <vfork.h>, but some compilers
7496 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7497 static variable whose address is put into a register that is
7498 clobbered by the vfork. */
7499 static void
7500 #ifdef __cplusplus
7501 sparc_address_test (int arg)
7502 # else
7503 sparc_address_test (arg) int arg;
7504 #endif
7506 static pid_t child;
7507 if (!child) {
7508 child = vfork ();
7509 if (child < 0) {
7510 perror ("vfork");
7511 _exit(2);
7513 if (!child) {
7514 arg = getpid();
7515 write(-1, "", 0);
7516 _exit (arg);
7522 main ()
7524 pid_t parent = getpid ();
7525 pid_t child;
7527 sparc_address_test (0);
7529 child = vfork ();
7531 if (child == 0) {
7532 /* Here is another test for sparc vfork register problems. This
7533 test uses lots of local variables, at least as many local
7534 variables as main has allocated so far including compiler
7535 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7536 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7537 reuse the register of parent for one of the local variables,
7538 since it will think that parent can't possibly be used any more
7539 in this routine. Assigning to the local variable will thus
7540 munge parent in the parent process. */
7541 pid_t
7542 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7543 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7544 /* Convince the compiler that p..p7 are live; otherwise, it might
7545 use the same hardware register for all 8 local variables. */
7546 if (p != p1 || p != p2 || p != p3 || p != p4
7547 || p != p5 || p != p6 || p != p7)
7548 _exit(1);
7550 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7551 from child file descriptors. If the child closes a descriptor
7552 before it execs or exits, this munges the parent's descriptor
7553 as well. Test for this by closing stdout in the child. */
7554 _exit(close(fileno(stdout)) != 0);
7555 } else {
7556 int status;
7557 struct stat st;
7559 while (wait(&status) != child)
7561 return (
7562 /* Was there some problem with vforking? */
7563 child < 0
7565 /* Did the child fail? (This shouldn't happen.) */
7566 || status
7568 /* Did the vfork/compiler bug occur? */
7569 || parent != getpid()
7571 /* Did the file descriptor bug occur? */
7572 || fstat(fileno(stdout), &st) != 0
7576 _ACEOF
7577 if ac_fn_c_try_run "$LINENO"; then :
7578 ac_cv_func_vfork_works=yes
7579 else
7580 ac_cv_func_vfork_works=no
7582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7583 conftest.$ac_objext conftest.beam conftest.$ac_ext
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7588 $as_echo "$ac_cv_func_vfork_works" >&6; }
7591 if test "x$ac_cv_func_fork_works" = xcross; then
7592 ac_cv_func_vfork_works=$ac_cv_func_vfork
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7594 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7597 if test "x$ac_cv_func_vfork_works" = xyes; then
7599 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7601 else
7603 $as_echo "#define vfork fork" >>confdefs.h
7606 if test "x$ac_cv_func_fork_works" = xyes; then
7608 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7612 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
7613 strrchr strsignal
7614 do :
7615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7617 eval as_val=\$$as_ac_var
7618 if test "x$as_val" = x""yes; then :
7619 cat >>confdefs.h <<_ACEOF
7620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7621 _ACEOF
7624 done
7626 INVOKE_LIBOPTS_MACROS_FIRST_done=yes
7629 # end of AC_DEFUN of LIBOPTS_CHECK
7635 # Check whether --enable-static was given.
7636 if test "${enable_static+set}" = set; then :
7637 enableval=$enable_static; p=${PACKAGE-default}
7638 case $enableval in
7639 yes) enable_static=yes ;;
7640 no) enable_static=no ;;
7642 enable_static=no
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645 for pkg in $enableval; do
7646 IFS="$lt_save_ifs"
7647 if test "X$pkg" = "X$p"; then
7648 enable_static=yes
7650 done
7651 IFS="$lt_save_ifs"
7653 esac
7654 else
7655 enable_static=yes
7659 # Check whether --enable-fast-install was given.
7660 if test "${enable_fast_install+set}" = set; then :
7661 enableval=$enable_fast_install; p=${PACKAGE-default}
7662 case $enableval in
7663 yes) enable_fast_install=yes ;;
7664 no) enable_fast_install=no ;;
7666 enable_fast_install=no
7667 # Look at the argument we got. We use all the common list separators.
7668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7669 for pkg in $enableval; do
7670 IFS="$lt_save_ifs"
7671 if test "X$pkg" = "X$p"; then
7672 enable_fast_install=yes
7674 done
7675 IFS="$lt_save_ifs"
7677 esac
7678 else
7679 enable_fast_install=yes
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7685 if test "${lt_cv_path_SED+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 # Loop through the user's path and test for sed and gsed.
7689 # Then use that list of sed's as ones to test for truncation.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for lt_ac_prog in sed gsed; do
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7698 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7700 done
7701 done
7702 done
7703 lt_ac_max=0
7704 lt_ac_count=0
7705 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7706 # along with /bin/sed that truncates output.
7707 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7708 test ! -f $lt_ac_sed && continue
7709 cat /dev/null > conftest.in
7710 lt_ac_count=0
7711 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7712 # Check for GNU sed and select it if it is found.
7713 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7714 lt_cv_path_SED=$lt_ac_sed
7715 break
7717 while true; do
7718 cat conftest.in conftest.in >conftest.tmp
7719 mv conftest.tmp conftest.in
7720 cp conftest.in conftest.nl
7721 echo >>conftest.nl
7722 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7723 cmp -s conftest.out conftest.nl || break
7724 # 10000 chars as input seems more than enough
7725 test $lt_ac_count -gt 10 && break
7726 lt_ac_count=`expr $lt_ac_count + 1`
7727 if test $lt_ac_count -gt $lt_ac_max; then
7728 lt_ac_max=$lt_ac_count
7729 lt_cv_path_SED=$lt_ac_sed
7731 done
7732 done
7736 SED=$lt_cv_path_SED
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
7738 $as_echo "$SED" >&6; }
7741 # Check whether --with-gnu-ld was given.
7742 if test "${with_gnu_ld+set}" = set; then :
7743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7744 else
7745 with_gnu_ld=no
7748 ac_prog=ld
7749 if test "$GCC" = yes; then
7750 # Check if gcc -print-prog-name=ld gives a path.
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7752 $as_echo_n "checking for ld used by $CC... " >&6; }
7753 case $host in
7754 *-*-mingw*)
7755 # gcc leaves a trailing carriage return which upsets mingw
7756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7759 esac
7760 case $ac_prog in
7761 # Accept absolute paths.
7762 [\\/]* | ?:[\\/]*)
7763 re_direlt='/[^/][^/]*/\.\./'
7764 # Canonicalize the pathname of ld
7765 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7767 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7768 done
7769 test -z "$LD" && LD="$ac_prog"
7772 # If it fails, then pretend we aren't using GCC.
7773 ac_prog=ld
7776 # If it is relative, then search for the first ld in PATH.
7777 with_gnu_ld=unknown
7779 esac
7780 elif test "$with_gnu_ld" = yes; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7782 $as_echo_n "checking for GNU ld... " >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7785 $as_echo_n "checking for non-GNU ld... " >&6; }
7787 if test "${lt_cv_path_LD+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -z "$LD"; then
7791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7792 for ac_dir in $PATH; do
7793 IFS="$lt_save_ifs"
7794 test -z "$ac_dir" && ac_dir=.
7795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7796 lt_cv_path_LD="$ac_dir/$ac_prog"
7797 # Check to see if the program is GNU ld. I'd rather use --version,
7798 # but apparently some variants of GNU ld only accept -v.
7799 # Break only if it was the GNU/non-GNU ld that we prefer.
7800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7801 *GNU* | *'with BFD'*)
7802 test "$with_gnu_ld" != no && break
7805 test "$with_gnu_ld" != yes && break
7807 esac
7809 done
7810 IFS="$lt_save_ifs"
7811 else
7812 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7816 LD="$lt_cv_path_LD"
7817 if test -n "$LD"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7819 $as_echo "$LD" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7824 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7826 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7827 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7831 case `$LD -v 2>&1 </dev/null` in
7832 *GNU* | *'with BFD'*)
7833 lt_cv_prog_gnu_ld=yes
7836 lt_cv_prog_gnu_ld=no
7838 esac
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7841 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7842 with_gnu_ld=$lt_cv_prog_gnu_ld
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7847 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_ld_reload_flag='-r'
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7854 reload_flag=$lt_cv_ld_reload_flag
7855 case $reload_flag in
7856 "" | " "*) ;;
7857 *) reload_flag=" $reload_flag" ;;
7858 esac
7859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7860 case $host_os in
7861 darwin*)
7862 if test "$GCC" = yes; then
7863 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
7864 else
7865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7868 esac
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
7871 $as_echo_n "checking for BSD-compatible nm... " >&6; }
7872 if test "${lt_cv_path_NM+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 if test -n "$NM"; then
7876 # Let the user override the test.
7877 lt_cv_path_NM="$NM"
7878 else
7879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7880 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7881 IFS="$lt_save_ifs"
7882 test -z "$ac_dir" && ac_dir=.
7883 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7884 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7885 # Check to see if the nm accepts a BSD-compat flag.
7886 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7887 # nm: unknown option "B" ignored
7888 # Tru64's nm complains that /dev/null is an invalid object file
7889 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7890 */dev/null* | *'Invalid file or object type'*)
7891 lt_cv_path_NM="$tmp_nm -B"
7892 break
7895 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7896 */dev/null*)
7897 lt_cv_path_NM="$tmp_nm -p"
7898 break
7901 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7902 continue # so that we can try to find one that supports BSD flags
7904 esac
7905 esac
7907 done
7908 IFS="$lt_save_ifs"
7909 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7913 $as_echo "$lt_cv_path_NM" >&6; }
7914 NM="$lt_cv_path_NM"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7917 $as_echo_n "checking whether ln -s works... " >&6; }
7918 LN_S=$as_ln_s
7919 if test "$LN_S" = "ln -s"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921 $as_echo "yes" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7924 $as_echo "no, using $LN_S" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
7928 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
7929 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 lt_cv_file_magic_cmd='$MAGIC_CMD'
7933 lt_cv_file_magic_test_file=
7934 lt_cv_deplibs_check_method='unknown'
7935 # Need to set the preceding variable on all platforms that support
7936 # interlibrary dependencies.
7937 # 'none' -- dependencies not supported.
7938 # `unknown' -- same as none, but documents that we really don't know.
7939 # 'pass_all' -- all dependencies passed with no checks.
7940 # 'test_compile' -- check by making test program.
7941 # 'file_magic [[regex]]' -- check by looking for files in library path
7942 # which responds to the $file_magic_cmd with a given extended regex.
7943 # If you have `file' or equivalent on your system and you're not sure
7944 # whether `pass_all' will *always* work, you probably want this one.
7946 case $host_os in
7947 aix4* | aix5*)
7948 lt_cv_deplibs_check_method=pass_all
7951 beos*)
7952 lt_cv_deplibs_check_method=pass_all
7955 bsdi[45]*)
7956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7957 lt_cv_file_magic_cmd='/usr/bin/file -L'
7958 lt_cv_file_magic_test_file=/shlib/libc.so
7961 cygwin*)
7962 # func_win32_libid is a shell function defined in ltmain.sh
7963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7964 lt_cv_file_magic_cmd='func_win32_libid'
7967 mingw* | pw32*)
7968 # Base MSYS/MinGW do not provide the 'file' command needed by
7969 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7970 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7971 lt_cv_file_magic_cmd='$OBJDUMP -f'
7974 darwin* | rhapsody*)
7975 lt_cv_deplibs_check_method=pass_all
7978 freebsd* | kfreebsd*-gnu | dragonfly*)
7979 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7980 case $host_cpu in
7981 i*86 )
7982 # Not sure whether the presence of OpenBSD here was a mistake.
7983 # Let's accept both of them until this is cleared up.
7984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7985 lt_cv_file_magic_cmd=/usr/bin/file
7986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7988 esac
7989 else
7990 lt_cv_deplibs_check_method=pass_all
7994 gnu*)
7995 lt_cv_deplibs_check_method=pass_all
7998 hpux10.20* | hpux11*)
7999 lt_cv_file_magic_cmd=/usr/bin/file
8000 case $host_cpu in
8001 ia64*)
8002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8005 hppa*64*)
8006 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]'
8007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8013 esac
8016 irix5* | irix6* | nonstopux*)
8017 case $LD in
8018 *-32|*"-32 ") libmagic=32-bit;;
8019 *-n32|*"-n32 ") libmagic=N32;;
8020 *-64|*"-64 ") libmagic=64-bit;;
8021 *) libmagic=never-match;;
8022 esac
8023 lt_cv_deplibs_check_method=pass_all
8026 # This must be Linux ELF.
8027 linux*)
8028 lt_cv_deplibs_check_method=pass_all
8031 netbsd*)
8032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8034 else
8035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8039 newos6*)
8040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8041 lt_cv_file_magic_cmd=/usr/bin/file
8042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8045 nto-qnx*)
8046 lt_cv_deplibs_check_method=unknown
8049 openbsd*)
8050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8052 else
8053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8057 osf3* | osf4* | osf5*)
8058 lt_cv_deplibs_check_method=pass_all
8061 sco3.2v5*)
8062 lt_cv_deplibs_check_method=pass_all
8065 solaris*)
8066 lt_cv_deplibs_check_method=pass_all
8069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8070 case $host_vendor in
8071 motorola)
8072 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]'
8073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8075 ncr)
8076 lt_cv_deplibs_check_method=pass_all
8078 sequent)
8079 lt_cv_file_magic_cmd='/bin/file'
8080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8082 sni)
8083 lt_cv_file_magic_cmd='/bin/file'
8084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8085 lt_cv_file_magic_test_file=/lib/libc.so
8087 siemens)
8088 lt_cv_deplibs_check_method=pass_all
8090 esac
8093 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8094 lt_cv_deplibs_check_method=pass_all
8096 esac
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8101 file_magic_cmd=$lt_cv_file_magic_cmd
8102 deplibs_check_method=$lt_cv_deplibs_check_method
8103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8108 # If no C compiler was specified, use CC.
8109 LTCC=${LTCC-"$CC"}
8111 # Allow CC to be a program name with arguments.
8112 compiler=$CC
8114 # Check whether --enable-libtool-lock was given.
8115 if test "${enable_libtool_lock+set}" = set; then :
8116 enableval=$enable_libtool_lock;
8119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8121 # Some flags need to be propagated to the compiler or linker for good
8122 # libtool support.
8123 case $host in
8124 ia64-*-hpux*)
8125 # Find out which ABI we are using.
8126 echo 'int i;' > conftest.$ac_ext
8127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8128 (eval $ac_compile) 2>&5
8129 ac_status=$?
8130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8131 test $ac_status = 0; }; then
8132 case `/usr/bin/file conftest.$ac_objext` in
8133 *ELF-32*)
8134 HPUX_IA64_MODE="32"
8136 *ELF-64*)
8137 HPUX_IA64_MODE="64"
8139 esac
8141 rm -rf conftest*
8143 *-*-irix6*)
8144 # Find out which ABI we are using.
8145 echo '#line 8145 "configure"' > conftest.$ac_ext
8146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8147 (eval $ac_compile) 2>&5
8148 ac_status=$?
8149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8150 test $ac_status = 0; }; then
8151 if test "$lt_cv_prog_gnu_ld" = yes; then
8152 case `/usr/bin/file conftest.$ac_objext` in
8153 *32-bit*)
8154 LD="${LD-ld} -melf32bsmip"
8156 *N32*)
8157 LD="${LD-ld} -melf32bmipn32"
8159 *64-bit*)
8160 LD="${LD-ld} -melf64bmip"
8162 esac
8163 else
8164 case `/usr/bin/file conftest.$ac_objext` in
8165 *32-bit*)
8166 LD="${LD-ld} -32"
8168 *N32*)
8169 LD="${LD-ld} -n32"
8171 *64-bit*)
8172 LD="${LD-ld} -64"
8174 esac
8177 rm -rf conftest*
8180 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8181 # Find out which ABI we are using.
8182 echo 'int i;' > conftest.$ac_ext
8183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8184 (eval $ac_compile) 2>&5
8185 ac_status=$?
8186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8187 test $ac_status = 0; }; then
8188 case `/usr/bin/file conftest.o` in
8189 *32-bit*)
8190 case $host in
8191 x86_64-*linux*)
8192 LD="${LD-ld} -m elf_i386"
8194 ppc64-*linux*|powerpc64-*linux*)
8195 LD="${LD-ld} -m elf32ppclinux"
8197 s390x-*linux*)
8198 LD="${LD-ld} -m elf_s390"
8200 sparc64-*linux*)
8201 LD="${LD-ld} -m elf32_sparc"
8203 esac
8205 *64-bit*)
8206 case $host in
8207 x86_64-*linux*)
8208 LD="${LD-ld} -m elf_x86_64"
8210 ppc*-*linux*|powerpc*-*linux*)
8211 LD="${LD-ld} -m elf64ppc"
8213 s390*-*linux*)
8214 LD="${LD-ld} -m elf64_s390"
8216 sparc*-*linux*)
8217 LD="${LD-ld} -m elf64_sparc"
8219 esac
8221 esac
8223 rm -rf conftest*
8226 *-*-sco3.2v5*)
8227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8228 SAVE_CFLAGS="$CFLAGS"
8229 CFLAGS="$CFLAGS -belf"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8231 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8232 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 ac_ext=c
8236 ac_cpp='$CPP $CPPFLAGS'
8237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8245 main ()
8249 return 0;
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"; then :
8253 lt_cv_cc_needs_belf=yes
8254 else
8255 lt_cv_cc_needs_belf=no
8257 rm -f core conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259 ac_ext=c
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8267 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8268 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8270 CFLAGS="$SAVE_CFLAGS"
8274 esac
8276 need_locks="$enable_libtool_lock"
8279 for ac_header in dlfcn.h
8280 do :
8281 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8282 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8283 cat >>confdefs.h <<_ACEOF
8284 #define HAVE_DLFCN_H 1
8285 _ACEOF
8289 done
8292 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8294 # find the maximum length of command line arguments
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8296 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8297 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8301 teststring="ABCD"
8303 case $build_os in
8304 msdosdjgpp*)
8305 # On DJGPP, this test can blow up pretty badly due to problems in libc
8306 # (any single argument exceeding 2000 bytes causes a buffer overrun
8307 # during glob expansion). Even if it were fixed, the result of this
8308 # check would be larger than it should be.
8309 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8312 gnu*)
8313 # Under GNU Hurd, this test is not required because there is
8314 # no limit to the length of command line arguments.
8315 # Libtool will interpret -1 as no limit whatsoever
8316 lt_cv_sys_max_cmd_len=-1;
8319 cygwin* | mingw*)
8320 # On Win9x/ME, this test blows up -- it succeeds, but takes
8321 # about 5 minutes as the teststring grows exponentially.
8322 # Worse, since 9x/ME are not pre-emptively multitasking,
8323 # you end up with a "frozen" computer, even though with patience
8324 # the test eventually succeeds (with a max line length of 256k).
8325 # Instead, let's just punt: use the minimum linelength reported by
8326 # all of the supported platforms: 8192 (on NT/2K/XP).
8327 lt_cv_sys_max_cmd_len=8192;
8330 amigaos*)
8331 # On AmigaOS with pdksh, this test takes hours, literally.
8332 # So we just punt and use a minimum line length of 8192.
8333 lt_cv_sys_max_cmd_len=8192;
8336 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8337 # This has been around since 386BSD, at least. Likely further.
8338 if test -x /sbin/sysctl; then
8339 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8340 elif test -x /usr/sbin/sysctl; then
8341 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8342 else
8343 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8345 # And add a safety zone
8346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8349 osf*)
8350 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8351 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8352 # nice to cause kernel panics so lets avoid the loop below.
8353 # First set a reasonable default.
8354 lt_cv_sys_max_cmd_len=16384
8356 if test -x /sbin/sysconfig; then
8357 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8358 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8359 esac
8363 # If test is not a shell built-in, we'll probably end up computing a
8364 # maximum length that is only half of the actual maximum length, but
8365 # we can't tell.
8366 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8367 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8368 = "XX$teststring") >/dev/null 2>&1 &&
8369 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8370 lt_cv_sys_max_cmd_len=$new_result &&
8371 test $i != 17 # 1/2 MB should be enough
8373 i=`expr $i + 1`
8374 teststring=$teststring$teststring
8375 done
8376 teststring=
8377 # Add a significant safety factor because C++ compilers can tack on massive
8378 # amounts of additional arguments before passing them to the linker.
8379 # It appears as though 1/2 is a usable value.
8380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8382 esac
8386 if test -n $lt_cv_sys_max_cmd_len ; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8388 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8391 $as_echo "none" >&6; }
8397 # Check for command to grab the raw symbol name followed by C symbol from nm.
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8400 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8404 # These are sane defaults that work on at least a few old systems.
8405 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8407 # Character class describing NM global symbol codes.
8408 symcode='[BCDEGRST]'
8410 # Regexp to match symbols that can be accessed directly from C.
8411 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8413 # Transform an extracted symbol line into a proper C declaration
8414 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8416 # Transform an extracted symbol line into symbol name and symbol address
8417 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'"
8419 # Define system-specific variables.
8420 case $host_os in
8421 aix*)
8422 symcode='[BCDT]'
8424 cygwin* | mingw* | pw32*)
8425 symcode='[ABCDGISTW]'
8427 hpux*) # Its linker distinguishes data from code symbols
8428 if test "$host_cpu" = ia64; then
8429 symcode='[ABCDEGRST]'
8431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8432 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'"
8434 linux*)
8435 if test "$host_cpu" = ia64; then
8436 symcode='[ABCDGIRSTW]'
8437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8438 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'"
8441 irix* | nonstopux*)
8442 symcode='[BCDEGRST]'
8444 osf*)
8445 symcode='[BCDEGQRST]'
8447 solaris* | sysv5*)
8448 symcode='[BDRT]'
8450 sysv4)
8451 symcode='[DFNSTU]'
8453 esac
8455 # Handle CRLF in mingw tool chain
8456 opt_cr=
8457 case $build_os in
8458 mingw*)
8459 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8461 esac
8463 # If we're using GNU nm, then use its standard symbol codes.
8464 case `$NM -V 2>&1` in
8465 *GNU* | *'with BFD'*)
8466 symcode='[ABCDGIRSTW]' ;;
8467 esac
8469 # Try without a prefix undercore, then with it.
8470 for ac_symprfx in "" "_"; do
8472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8473 symxfrm="\\1 $ac_symprfx\\2 \\2"
8475 # Write the raw and C identifiers.
8476 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8478 # Check to see that the pipe works correctly.
8479 pipe_works=no
8481 rm -f conftest*
8482 cat > conftest.$ac_ext <<EOF
8483 #ifdef __cplusplus
8484 extern "C" {
8485 #endif
8486 char nm_test_var;
8487 void nm_test_func(){}
8488 #ifdef __cplusplus
8490 #endif
8491 int main(){nm_test_var='a';nm_test_func();return(0);}
8494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8495 (eval $ac_compile) 2>&5
8496 ac_status=$?
8497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8498 test $ac_status = 0; }; then
8499 # Now try to grab the symbols.
8500 nlist=conftest.nm
8501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8503 ac_status=$?
8504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8505 test $ac_status = 0; } && test -s "$nlist"; then
8506 # Try sorting and uniquifying the output.
8507 if sort "$nlist" | uniq > "$nlist"T; then
8508 mv -f "$nlist"T "$nlist"
8509 else
8510 rm -f "$nlist"T
8513 # Make sure that we snagged all the symbols we need.
8514 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8515 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8516 cat <<EOF > conftest.$ac_ext
8517 #ifdef __cplusplus
8518 extern "C" {
8519 #endif
8522 # Now generate the symbol file.
8523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8525 cat <<EOF >> conftest.$ac_ext
8526 #if defined (__STDC__) && __STDC__
8527 # define lt_ptr_t void *
8528 #else
8529 # define lt_ptr_t char *
8530 # define const
8531 #endif
8533 /* The mapping between symbol names and symbols. */
8534 const struct {
8535 const char *name;
8536 lt_ptr_t address;
8538 lt_preloaded_symbols[] =
8541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8542 cat <<\EOF >> conftest.$ac_ext
8543 {0, (lt_ptr_t) 0}
8546 #ifdef __cplusplus
8548 #endif
8550 # Now try linking the two files.
8551 mv conftest.$ac_objext conftstm.$ac_objext
8552 lt_save_LIBS="$LIBS"
8553 lt_save_CFLAGS="$CFLAGS"
8554 LIBS="conftstm.$ac_objext"
8555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8557 (eval $ac_link) 2>&5
8558 ac_status=$?
8559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8560 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8561 pipe_works=yes
8563 LIBS="$lt_save_LIBS"
8564 CFLAGS="$lt_save_CFLAGS"
8565 else
8566 echo "cannot find nm_test_func in $nlist" >&5
8568 else
8569 echo "cannot find nm_test_var in $nlist" >&5
8571 else
8572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8574 else
8575 echo "$progname: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8578 rm -f conftest* conftst*
8580 # Do not use the global_symbol_pipe unless it works.
8581 if test "$pipe_works" = yes; then
8582 break
8583 else
8584 lt_cv_sys_global_symbol_pipe=
8586 done
8590 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8591 lt_cv_sys_global_symbol_to_cdecl=
8593 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8595 $as_echo "failed" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8598 $as_echo "ok" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8602 $as_echo_n "checking for objdir... " >&6; }
8603 if test "${lt_cv_objdir+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 rm -f .libs 2>/dev/null
8607 mkdir .libs 2>/dev/null
8608 if test -d .libs; then
8609 lt_cv_objdir=.libs
8610 else
8611 # MS-DOS does not allow filenames that begin with a dot.
8612 lt_cv_objdir=_libs
8614 rmdir .libs 2>/dev/null
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8617 $as_echo "$lt_cv_objdir" >&6; }
8618 objdir=$lt_cv_objdir
8624 case $host_os in
8625 aix3*)
8626 # AIX sometimes has problems with the GCC collect2 program. For some
8627 # reason, if we set the COLLECT_NAMES environment variable, the problems
8628 # vanish in a puff of smoke.
8629 if test "X${COLLECT_NAMES+set}" != Xset; then
8630 COLLECT_NAMES=
8631 export COLLECT_NAMES
8634 esac
8636 # Sed substitution that helps us do robust quoting. It backslashifies
8637 # metacharacters that are still active within double-quoted strings.
8638 Xsed='sed -e 1s/^X//'
8639 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8641 # Same as above, but do not quote variable references.
8642 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8644 # Sed substitution to delay expansion of an escaped shell variable in a
8645 # double_quote_subst'ed string.
8646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8648 # Sed substitution to avoid accidental globbing in evaled expressions
8649 no_glob_subst='s/\*/\\\*/g'
8651 # Constants:
8652 rm="rm -f"
8654 # Global variables:
8655 default_ofile=libtool
8656 can_build_shared=yes
8658 # All known linkers require a `.a' archive for static linking (except MSVC,
8659 # which needs '.lib').
8660 libext=a
8661 ltmain="$ac_aux_dir/ltmain.sh"
8662 ofile="$default_ofile"
8663 with_gnu_ld="$lt_cv_prog_gnu_ld"
8665 if test -n "$ac_tool_prefix"; then
8666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8667 set dummy ${ac_tool_prefix}ar; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_prog_AR+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 if test -n "$AR"; then
8674 ac_cv_prog_AR="$AR" # Let the user override the test.
8675 else
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8683 ac_cv_prog_AR="${ac_tool_prefix}ar"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8687 done
8688 done
8689 IFS=$as_save_IFS
8693 AR=$ac_cv_prog_AR
8694 if test -n "$AR"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8696 $as_echo "$AR" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8704 if test -z "$ac_cv_prog_AR"; then
8705 ac_ct_AR=$AR
8706 # Extract the first word of "ar", so it can be a program name with args.
8707 set dummy ar; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 if test -n "$ac_ct_AR"; then
8714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_prog_ac_ct_AR="ar"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8727 done
8728 done
8729 IFS=$as_save_IFS
8733 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8734 if test -n "$ac_ct_AR"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8736 $as_echo "$ac_ct_AR" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8742 if test "x$ac_ct_AR" = x; then
8743 AR="false"
8744 else
8745 case $cross_compiling:$ac_tool_warned in
8746 yes:)
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8749 ac_tool_warned=yes ;;
8750 esac
8751 AR=$ac_ct_AR
8753 else
8754 AR="$ac_cv_prog_AR"
8757 if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 if test -n "$RANLIB"; then
8766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8771 IFS=$as_save_IFS
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 break 2
8779 done
8780 done
8781 IFS=$as_save_IFS
8785 RANLIB=$ac_cv_prog_RANLIB
8786 if test -n "$RANLIB"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8788 $as_echo "$RANLIB" >&6; }
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8796 if test -z "$ac_cv_prog_RANLIB"; then
8797 ac_ct_RANLIB=$RANLIB
8798 # Extract the first word of "ranlib", so it can be a program name with args.
8799 set dummy ranlib; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 if test -n "$ac_ct_RANLIB"; then
8806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8807 else
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_prog_ac_ct_RANLIB="ranlib"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8819 done
8820 done
8821 IFS=$as_save_IFS
8825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8826 if test -n "$ac_ct_RANLIB"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8828 $as_echo "$ac_ct_RANLIB" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8834 if test "x$ac_ct_RANLIB" = x; then
8835 RANLIB=":"
8836 else
8837 case $cross_compiling:$ac_tool_warned in
8838 yes:)
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8841 ac_tool_warned=yes ;;
8842 esac
8843 RANLIB=$ac_ct_RANLIB
8845 else
8846 RANLIB="$ac_cv_prog_RANLIB"
8849 if test -n "$ac_tool_prefix"; then
8850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8851 set dummy ${ac_tool_prefix}strip; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_STRIP+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 if test -n "$STRIP"; then
8858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8859 else
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8871 done
8872 done
8873 IFS=$as_save_IFS
8877 STRIP=$ac_cv_prog_STRIP
8878 if test -n "$STRIP"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8880 $as_echo "$STRIP" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8888 if test -z "$ac_cv_prog_STRIP"; then
8889 ac_ct_STRIP=$STRIP
8890 # Extract the first word of "strip", so it can be a program name with args.
8891 set dummy strip; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 if test -n "$ac_ct_STRIP"; then
8898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8899 else
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8907 ac_cv_prog_ac_ct_STRIP="strip"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8911 done
8912 done
8913 IFS=$as_save_IFS
8917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8918 if test -n "$ac_ct_STRIP"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8920 $as_echo "$ac_ct_STRIP" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8926 if test "x$ac_ct_STRIP" = x; then
8927 STRIP=":"
8928 else
8929 case $cross_compiling:$ac_tool_warned in
8930 yes:)
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8933 ac_tool_warned=yes ;;
8934 esac
8935 STRIP=$ac_ct_STRIP
8937 else
8938 STRIP="$ac_cv_prog_STRIP"
8942 old_CC="$CC"
8943 old_CFLAGS="$CFLAGS"
8945 # Set sane defaults for various variables
8946 test -z "$AR" && AR=ar
8947 test -z "$AR_FLAGS" && AR_FLAGS=cru
8948 test -z "$AS" && AS=as
8949 test -z "$CC" && CC=cc
8950 test -z "$LTCC" && LTCC=$CC
8951 test -z "$DLLTOOL" && DLLTOOL=dlltool
8952 test -z "$LD" && LD=ld
8953 test -z "$LN_S" && LN_S="ln -s"
8954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8955 test -z "$NM" && NM=nm
8956 test -z "$SED" && SED=sed
8957 test -z "$OBJDUMP" && OBJDUMP=objdump
8958 test -z "$RANLIB" && RANLIB=:
8959 test -z "$STRIP" && STRIP=:
8960 test -z "$ac_objext" && ac_objext=o
8962 # Determine commands to create old-style static archives.
8963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8964 old_postinstall_cmds='chmod 644 $oldlib'
8965 old_postuninstall_cmds=
8967 if test -n "$RANLIB"; then
8968 case $host_os in
8969 openbsd*)
8970 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8973 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8975 esac
8976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8979 for cc_temp in $compiler""; do
8980 case $cc_temp in
8981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8983 \-*) ;;
8984 *) break;;
8985 esac
8986 done
8987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8990 # Only perform the check for file, if the check method requires it
8991 case $deplibs_check_method in
8992 file_magic*)
8993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 case $MAGIC_CMD in
9000 [\\/*] | ?:[\\/]*)
9001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9004 lt_save_MAGIC_CMD="$MAGIC_CMD"
9005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9007 for ac_dir in $ac_dummy; do
9008 IFS="$lt_save_ifs"
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f $ac_dir/${ac_tool_prefix}file; then
9011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9012 if test -n "$file_magic_test_file"; then
9013 case $deplibs_check_method in
9014 "file_magic "*)
9015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9018 $EGREP "$file_magic_regex" > /dev/null; then
9020 else
9021 cat <<EOF 1>&2
9023 *** Warning: the command libtool uses to detect shared libraries,
9024 *** $file_magic_cmd, produces output that libtool cannot recognize.
9025 *** The result is that libtool may fail to recognize shared libraries
9026 *** as such. This will affect the creation of libtool libraries that
9027 *** depend on shared libraries, but programs linked with such libtool
9028 *** libraries will work regardless of this problem. Nevertheless, you
9029 *** may want to report the problem to your system manager and/or to
9030 *** bug-libtool@gnu.org
9033 fi ;;
9034 esac
9036 break
9038 done
9039 IFS="$lt_save_ifs"
9040 MAGIC_CMD="$lt_save_MAGIC_CMD"
9042 esac
9045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9046 if test -n "$MAGIC_CMD"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9048 $as_echo "$MAGIC_CMD" >&6; }
9049 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9054 if test -z "$lt_cv_path_MAGIC_CMD"; then
9055 if test -n "$ac_tool_prefix"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9057 $as_echo_n "checking for file... " >&6; }
9058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 case $MAGIC_CMD in
9062 [\\/*] | ?:[\\/]*)
9063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9066 lt_save_MAGIC_CMD="$MAGIC_CMD"
9067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9069 for ac_dir in $ac_dummy; do
9070 IFS="$lt_save_ifs"
9071 test -z "$ac_dir" && ac_dir=.
9072 if test -f $ac_dir/file; then
9073 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9074 if test -n "$file_magic_test_file"; then
9075 case $deplibs_check_method in
9076 "file_magic "*)
9077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9080 $EGREP "$file_magic_regex" > /dev/null; then
9082 else
9083 cat <<EOF 1>&2
9085 *** Warning: the command libtool uses to detect shared libraries,
9086 *** $file_magic_cmd, produces output that libtool cannot recognize.
9087 *** The result is that libtool may fail to recognize shared libraries
9088 *** as such. This will affect the creation of libtool libraries that
9089 *** depend on shared libraries, but programs linked with such libtool
9090 *** libraries will work regardless of this problem. Nevertheless, you
9091 *** may want to report the problem to your system manager and/or to
9092 *** bug-libtool@gnu.org
9095 fi ;;
9096 esac
9098 break
9100 done
9101 IFS="$lt_save_ifs"
9102 MAGIC_CMD="$lt_save_MAGIC_CMD"
9104 esac
9107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9108 if test -n "$MAGIC_CMD"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9110 $as_echo "$MAGIC_CMD" >&6; }
9111 else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 $as_echo "no" >&6; }
9116 else
9117 MAGIC_CMD=:
9123 esac
9125 enable_dlopen=no
9126 enable_win32_dll=no
9128 # Check whether --enable-libtool-lock was given.
9129 if test "${enable_libtool_lock+set}" = set; then :
9130 enableval=$enable_libtool_lock;
9133 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9136 # Check whether --with-pic was given.
9137 if test "${with_pic+set}" = set; then :
9138 withval=$with_pic; pic_mode="$withval"
9139 else
9140 pic_mode=default
9143 test -z "$pic_mode" && pic_mode=default
9145 # Use C for the default configuration in the libtool script
9146 tagname=
9147 lt_save_CC="$CC"
9148 ac_ext=c
9149 ac_cpp='$CPP $CPPFLAGS'
9150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9155 # Source file extension for C test sources.
9156 ac_ext=c
9158 # Object file extension for compiled C test sources.
9159 objext=o
9160 objext=$objext
9162 # Code to be used in simple compile tests
9163 lt_simple_compile_test_code="int some_variable = 0;\n"
9165 # Code to be used in simple link tests
9166 lt_simple_link_test_code='int main(){return(0);}\n'
9169 # If no C compiler was specified, use CC.
9170 LTCC=${LTCC-"$CC"}
9172 # Allow CC to be a program name with arguments.
9173 compiler=$CC
9176 # save warnings/boilerplate of simple test code
9177 ac_outfile=conftest.$ac_objext
9178 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9180 _lt_compiler_boilerplate=`cat conftest.err`
9181 $rm conftest*
9183 ac_outfile=conftest.$ac_objext
9184 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9186 _lt_linker_boilerplate=`cat conftest.err`
9187 $rm conftest*
9191 # Check for any special shared library compilation flags.
9193 lt_prog_cc_shlib=
9194 if test "$GCC" = no; then
9195 case $host_os in
9196 sco3.2v5*)
9197 lt_prog_cc_shlib='-belf'
9199 esac
9201 if test -n "$lt_prog_cc_shlib"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9203 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9204 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
9205 else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9207 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9208 lt_cv_prog_cc_can_build_shared=no
9214 # Check to make sure the static flag actually works.
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9217 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
9218 if test "${lt_prog_compiler_static_works+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 lt_prog_compiler_static_works=no
9222 save_LDFLAGS="$LDFLAGS"
9223 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9224 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9226 # The linker can only warn and ignore the option if not recognized
9227 # So say no if there are warnings
9228 if test -s conftest.err; then
9229 # Append any errors to the config.log.
9230 cat conftest.err 1>&5
9231 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
9232 $SED '/^$/d' conftest.err >conftest.er2
9233 if diff conftest.exp conftest.er2 >/dev/null; then
9234 lt_prog_compiler_static_works=yes
9236 else
9237 lt_prog_compiler_static_works=yes
9240 $rm conftest*
9241 LDFLAGS="$save_LDFLAGS"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
9245 $as_echo "$lt_prog_compiler_static_works" >&6; }
9247 if test x"$lt_prog_compiler_static_works" = xyes; then
9249 else
9250 lt_prog_compiler_static=
9256 lt_prog_compiler_no_builtin_flag=
9258 if test "$GCC" = yes; then
9259 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9263 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9264 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 lt_cv_prog_compiler_rtti_exceptions=no
9268 ac_outfile=conftest.$ac_objext
9269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9270 lt_compiler_flag="-fno-rtti -fno-exceptions"
9271 # Insert the option either (1) after the last *FLAGS variable, or
9272 # (2) before a word containing "conftest.", or (3) at the end.
9273 # Note that $ac_compile itself does not contain backslashes and begins
9274 # with a dollar sign (not a hyphen), so the echo should work correctly.
9275 # The option is referenced via a variable to avoid confusing sed.
9276 lt_compile=`echo "$ac_compile" | $SED \
9277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9279 -e 's:$: $lt_compiler_flag:'`
9280 (eval echo "\"\$as_me:9280: $lt_compile\"" >&5)
9281 (eval "$lt_compile" 2>conftest.err)
9282 ac_status=$?
9283 cat conftest.err >&5
9284 echo "$as_me:9284: \$? = $ac_status" >&5
9285 if (exit $ac_status) && test -s "$ac_outfile"; then
9286 # The compiler can only warn and ignore the option if not recognized
9287 # So say no if there are warnings other than the usual output.
9288 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
9289 $SED '/^$/d' conftest.err >conftest.er2
9290 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
9291 lt_cv_prog_compiler_rtti_exceptions=yes
9294 $rm conftest*
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9298 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9300 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9301 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9302 else
9308 lt_prog_compiler_wl=
9309 lt_prog_compiler_pic=
9310 lt_prog_compiler_static=
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9313 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9315 if test "$GCC" = yes; then
9316 lt_prog_compiler_wl='-Wl,'
9317 lt_prog_compiler_static='-static'
9319 case $host_os in
9320 aix*)
9321 # All AIX code is PIC.
9322 if test "$host_cpu" = ia64; then
9323 # AIX 5 now supports IA64 processor
9324 lt_prog_compiler_static='-Bstatic'
9328 amigaos*)
9329 # FIXME: we need at least 68020 code to build shared libraries, but
9330 # adding the `-m68020' flag to GCC prevents building anything better,
9331 # like `-m68040'.
9332 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9335 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9336 # PIC is the default for these OSes.
9339 mingw* | pw32* | os2*)
9340 # This hack is so that the source file can tell whether it is being
9341 # built for inclusion in a dll (and should export symbols for example).
9342 lt_prog_compiler_pic='-DDLL_EXPORT'
9345 darwin* | rhapsody*)
9346 # PIC is the default on this platform
9347 # Common symbols not allowed in MH_DYLIB files
9348 lt_prog_compiler_pic='-fno-common'
9351 msdosdjgpp*)
9352 # Just because we use GCC doesn't mean we suddenly get shared libraries
9353 # on systems that don't support them.
9354 lt_prog_compiler_can_build_shared=no
9355 enable_shared=no
9358 sysv4*MP*)
9359 if test -d /usr/nec; then
9360 lt_prog_compiler_pic=-Kconform_pic
9364 hpux*)
9365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9366 # not for PA HP-UX.
9367 case $host_cpu in
9368 hppa*64*|ia64*)
9369 # +Z the default
9372 lt_prog_compiler_pic='-fPIC'
9374 esac
9378 lt_prog_compiler_pic='-fPIC'
9380 esac
9381 else
9382 # PORTME Check for flag to pass linker flags through the system compiler.
9383 case $host_os in
9384 aix*)
9385 lt_prog_compiler_wl='-Wl,'
9386 if test "$host_cpu" = ia64; then
9387 # AIX 5 now supports IA64 processor
9388 lt_prog_compiler_static='-Bstatic'
9389 else
9390 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9393 darwin*)
9394 # PIC is the default on this platform
9395 # Common symbols not allowed in MH_DYLIB files
9396 case $cc_basename in
9397 xlc*)
9398 lt_prog_compiler_pic='-qnocommon'
9399 lt_prog_compiler_wl='-Wl,'
9401 esac
9404 mingw* | pw32* | os2*)
9405 # This hack is so that the source file can tell whether it is being
9406 # built for inclusion in a dll (and should export symbols for example).
9407 lt_prog_compiler_pic='-DDLL_EXPORT'
9410 hpux9* | hpux10* | hpux11*)
9411 lt_prog_compiler_wl='-Wl,'
9412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9413 # not for PA HP-UX.
9414 case $host_cpu in
9415 hppa*64*|ia64*)
9416 # +Z the default
9419 lt_prog_compiler_pic='+Z'
9421 esac
9422 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9423 lt_prog_compiler_static='${wl}-a ${wl}archive'
9426 irix5* | irix6* | nonstopux*)
9427 lt_prog_compiler_wl='-Wl,'
9428 # PIC (with -KPIC) is the default.
9429 lt_prog_compiler_static='-non_shared'
9432 newsos6)
9433 lt_prog_compiler_pic='-KPIC'
9434 lt_prog_compiler_static='-Bstatic'
9437 linux*)
9438 case $cc_basename in
9439 icc* | ecc*)
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_pic='-KPIC'
9442 lt_prog_compiler_static='-static'
9444 pgcc* | pgf77* | pgf90* | pgf95*)
9445 # Portland Group compilers (*not* the Pentium gcc compiler,
9446 # which looks to be a dead project)
9447 lt_prog_compiler_wl='-Wl,'
9448 lt_prog_compiler_pic='-fpic'
9449 lt_prog_compiler_static='-Bstatic'
9451 ccc*)
9452 lt_prog_compiler_wl='-Wl,'
9453 # All Alpha code is PIC.
9454 lt_prog_compiler_static='-non_shared'
9456 esac
9459 osf3* | osf4* | osf5*)
9460 lt_prog_compiler_wl='-Wl,'
9461 # All OSF/1 code is PIC.
9462 lt_prog_compiler_static='-non_shared'
9465 sco3.2v5*)
9466 lt_prog_compiler_pic='-Kpic'
9467 lt_prog_compiler_static='-dn'
9470 solaris*)
9471 lt_prog_compiler_pic='-KPIC'
9472 lt_prog_compiler_static='-Bstatic'
9473 case $cc_basename in
9474 f77* | f90* | f95*)
9475 lt_prog_compiler_wl='-Qoption ld ';;
9477 lt_prog_compiler_wl='-Wl,';;
9478 esac
9481 sunos4*)
9482 lt_prog_compiler_wl='-Qoption ld '
9483 lt_prog_compiler_pic='-PIC'
9484 lt_prog_compiler_static='-Bstatic'
9487 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-Bstatic'
9493 sysv4*MP*)
9494 if test -d /usr/nec ;then
9495 lt_prog_compiler_pic='-Kconform_pic'
9496 lt_prog_compiler_static='-Bstatic'
9500 unicos*)
9501 lt_prog_compiler_wl='-Wl,'
9502 lt_prog_compiler_can_build_shared=no
9505 uts4*)
9506 lt_prog_compiler_pic='-pic'
9507 lt_prog_compiler_static='-Bstatic'
9511 lt_prog_compiler_can_build_shared=no
9513 esac
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9517 $as_echo "$lt_prog_compiler_pic" >&6; }
9520 # Check to make sure the PIC flag actually works.
9522 if test -n "$lt_prog_compiler_pic"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9526 if test "${lt_prog_compiler_pic_works+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 lt_prog_compiler_pic_works=no
9530 ac_outfile=conftest.$ac_objext
9531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9532 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9533 # Insert the option either (1) after the last *FLAGS variable, or
9534 # (2) before a word containing "conftest.", or (3) at the end.
9535 # Note that $ac_compile itself does not contain backslashes and begins
9536 # with a dollar sign (not a hyphen), so the echo should work correctly.
9537 # The option is referenced via a variable to avoid confusing sed.
9538 lt_compile=`echo "$ac_compile" | $SED \
9539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9541 -e 's:$: $lt_compiler_flag:'`
9542 (eval echo "\"\$as_me:9542: $lt_compile\"" >&5)
9543 (eval "$lt_compile" 2>conftest.err)
9544 ac_status=$?
9545 cat conftest.err >&5
9546 echo "$as_me:9546: \$? = $ac_status" >&5
9547 if (exit $ac_status) && test -s "$ac_outfile"; then
9548 # The compiler can only warn and ignore the option if not recognized
9549 # So say no if there are warnings other than the usual output.
9550 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
9551 $SED '/^$/d' conftest.err >conftest.er2
9552 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
9553 lt_prog_compiler_pic_works=yes
9556 $rm conftest*
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
9560 $as_echo "$lt_prog_compiler_pic_works" >&6; }
9562 if test x"$lt_prog_compiler_pic_works" = xyes; then
9563 case $lt_prog_compiler_pic in
9564 "" | " "*) ;;
9565 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9566 esac
9567 else
9568 lt_prog_compiler_pic=
9569 lt_prog_compiler_can_build_shared=no
9573 case $host_os in
9574 # For platforms which do not support PIC, -DPIC is meaningless:
9575 *djgpp*)
9576 lt_prog_compiler_pic=
9579 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9581 esac
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 lt_cv_prog_compiler_c_o=no
9589 $rm -r conftest 2>/dev/null
9590 mkdir conftest
9591 cd conftest
9592 mkdir out
9593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9595 lt_compiler_flag="-o out/conftest2.$ac_objext"
9596 # Insert the option either (1) after the last *FLAGS variable, or
9597 # (2) before a word containing "conftest.", or (3) at the end.
9598 # Note that $ac_compile itself does not contain backslashes and begins
9599 # with a dollar sign (not a hyphen), so the echo should work correctly.
9600 lt_compile=`echo "$ac_compile" | $SED \
9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9603 -e 's:$: $lt_compiler_flag:'`
9604 (eval echo "\"\$as_me:9604: $lt_compile\"" >&5)
9605 (eval "$lt_compile" 2>out/conftest.err)
9606 ac_status=$?
9607 cat out/conftest.err >&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9610 then
9611 # The compiler can only warn and ignore the option if not recognized
9612 # So say no if there are warnings
9613 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9614 $SED '/^$/d' out/conftest.err >out/conftest.er2
9615 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9616 lt_cv_prog_compiler_c_o=yes
9619 chmod u+w . 2>&5
9620 $rm conftest*
9621 # SGI C++ compiler will create directory out/ii_files/ for
9622 # template instantiation
9623 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9624 $rm out/* && rmdir out
9625 cd ..
9626 rmdir conftest
9627 $rm conftest*
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9634 hard_links="nottested"
9635 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9636 # do not overwrite the value of need_locks provided by the user
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9638 $as_echo_n "checking if we can lock with hard links... " >&6; }
9639 hard_links=yes
9640 $rm conftest*
9641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9642 touch conftest.a
9643 ln conftest.a conftest.b 2>&5 || hard_links=no
9644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9646 $as_echo "$hard_links" >&6; }
9647 if test "$hard_links" = no; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9650 need_locks=warn
9652 else
9653 need_locks=no
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9657 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9659 runpath_var=
9660 allow_undefined_flag=
9661 enable_shared_with_static_runtimes=no
9662 archive_cmds=
9663 archive_expsym_cmds=
9664 old_archive_From_new_cmds=
9665 old_archive_from_expsyms_cmds=
9666 export_dynamic_flag_spec=
9667 whole_archive_flag_spec=
9668 thread_safe_flag_spec=
9669 hardcode_libdir_flag_spec=
9670 hardcode_libdir_flag_spec_ld=
9671 hardcode_libdir_separator=
9672 hardcode_direct=no
9673 hardcode_minus_L=no
9674 hardcode_shlibpath_var=unsupported
9675 link_all_deplibs=unknown
9676 hardcode_automatic=no
9677 module_cmds=
9678 module_expsym_cmds=
9679 always_export_symbols=no
9680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9681 # include_expsyms should be a list of space-separated symbols to be *always*
9682 # included in the symbol list
9683 include_expsyms=
9684 # exclude_expsyms can be an extended regexp of symbols to exclude
9685 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9686 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9687 # as well as any symbol that contains `d'.
9688 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9689 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9690 # platforms (ab)use it in PIC code, but their linkers get confused if
9691 # the symbol is explicitly referenced. Since portable code cannot
9692 # rely on this symbol name, it's probably fine to never include it in
9693 # preloaded symbol tables.
9694 extract_expsyms_cmds=
9695 # Just being paranoid about ensuring that cc_basename is set.
9696 for cc_temp in $compiler""; do
9697 case $cc_temp in
9698 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9699 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9700 \-*) ;;
9701 *) break;;
9702 esac
9703 done
9704 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9706 case $host_os in
9707 cygwin* | mingw* | pw32*)
9708 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9709 # When not using gcc, we currently assume that we are using
9710 # Microsoft Visual C++.
9711 if test "$GCC" != yes; then
9712 with_gnu_ld=no
9715 openbsd*)
9716 with_gnu_ld=no
9718 esac
9720 ld_shlibs=yes
9721 if test "$with_gnu_ld" = yes; then
9722 # If archive_cmds runs LD, not CC, wlarc should be empty
9723 wlarc='${wl}'
9725 # Set some defaults for GNU ld with shared library support. These
9726 # are reset later if shared libraries are not supported. Putting them
9727 # here allows them to be overridden if necessary.
9728 runpath_var=LD_RUN_PATH
9729 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9730 export_dynamic_flag_spec='${wl}--export-dynamic'
9731 # ancient GNU ld didn't support --whole-archive et. al.
9732 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9733 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9734 else
9735 whole_archive_flag_spec=
9737 supports_anon_versioning=no
9738 case `$LD -v 2>/dev/null` in
9739 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9740 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9741 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9742 *\ 2.11.*) ;; # other 2.11 versions
9743 *) supports_anon_versioning=yes ;;
9744 esac
9746 # See if GNU ld supports shared libraries.
9747 case $host_os in
9748 aix3* | aix4* | aix5*)
9749 # On AIX/PPC, the GNU linker is very broken
9750 if test "$host_cpu" != ia64; then
9751 ld_shlibs=no
9752 cat <<EOF 1>&2
9754 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9755 *** to be unable to reliably create shared libraries on AIX.
9756 *** Therefore, libtool is disabling shared libraries support. If you
9757 *** really care for shared libraries, you may want to modify your PATH
9758 *** so that a non-GNU linker is found, and then restart.
9764 amigaos*)
9765 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)'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_minus_L=yes
9769 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9770 # that the semantics of dynamic libraries on AmigaOS, at least up
9771 # to version 4, is to share data among multiple programs linked
9772 # with the same dynamic library. Since this doesn't match the
9773 # behavior of shared libraries on other platforms, we can't use
9774 # them.
9775 ld_shlibs=no
9778 beos*)
9779 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9780 allow_undefined_flag=unsupported
9781 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9782 # support --undefined. This deserves some investigation. FIXME
9783 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784 else
9785 ld_shlibs=no
9789 cygwin* | mingw* | pw32*)
9790 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9791 # as there is no search path for DLLs.
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 allow_undefined_flag=unsupported
9794 always_export_symbols=no
9795 enable_shared_with_static_runtimes=yes
9796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9798 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9800 # If the export-symbols file already is a .def file (1st line
9801 # is EXPORTS), use it as is; otherwise, prepend...
9802 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9803 cp $export_symbols $output_objdir/$soname.def;
9804 else
9805 echo EXPORTS > $output_objdir/$soname.def;
9806 cat $export_symbols >> $output_objdir/$soname.def;
9808 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9809 else
9810 ld_shlibs=no
9814 linux*)
9815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9816 tmp_addflag=
9817 case $cc_basename,$host_cpu in
9818 pgcc*) # Portland Group C compiler
9819 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'
9820 tmp_addflag=' $pic_flag'
9822 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9823 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'
9824 tmp_addflag=' $pic_flag -Mnomain' ;;
9825 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9826 tmp_addflag=' -i_dynamic' ;;
9827 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9828 tmp_addflag=' -i_dynamic -nofor_main' ;;
9829 ifc* | ifort*) # Intel Fortran compiler
9830 tmp_addflag=' -nofor_main' ;;
9831 esac
9832 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 if test $supports_anon_versioning = yes; then
9835 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837 $echo "local: *; };" >> $output_objdir/$libname.ver~
9838 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9840 else
9841 ld_shlibs=no
9845 netbsd*)
9846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9847 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9848 wlarc=
9849 else
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9855 solaris* | sysv5*)
9856 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9857 ld_shlibs=no
9858 cat <<EOF 1>&2
9860 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9861 *** create shared libraries on Solaris systems. Therefore, libtool
9862 *** is disabling shared libraries support. We urge you to upgrade GNU
9863 *** binutils to release 2.9.1 or newer. Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9868 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9871 else
9872 ld_shlibs=no
9876 sunos4*)
9877 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878 wlarc=
9879 hardcode_direct=yes
9880 hardcode_shlibpath_var=no
9884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887 else
9888 ld_shlibs=no
9891 esac
9893 if test "$ld_shlibs" = no; then
9894 runpath_var=
9895 hardcode_libdir_flag_spec=
9896 export_dynamic_flag_spec=
9897 whole_archive_flag_spec=
9899 else
9900 # PORTME fill in a description of your system's linker (not GNU ld)
9901 case $host_os in
9902 aix3*)
9903 allow_undefined_flag=unsupported
9904 always_export_symbols=yes
9905 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'
9906 # Note: this linker hardcodes the directories in LIBPATH if there
9907 # are no directories specified by -L.
9908 hardcode_minus_L=yes
9909 if test "$GCC" = yes && test -z "$link_static_flag"; then
9910 # Neither direct hardcoding nor static linking is supported with a
9911 # broken collect2.
9912 hardcode_direct=unsupported
9916 aix4* | aix5*)
9917 if test "$host_cpu" = ia64; then
9918 # On IA64, the linker does run time linking by default, so we don't
9919 # have to do anything special.
9920 aix_use_runtimelinking=no
9921 exp_sym_flag='-Bexport'
9922 no_entry_flag=""
9923 else
9924 # If we're using GNU nm, then we don't want the "-C" option.
9925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9926 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9927 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'
9928 else
9929 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'
9931 aix_use_runtimelinking=no
9933 # Test if we are trying to use run time linking or normal
9934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935 # need to do runtime linking.
9936 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9937 for ld_flag in $LDFLAGS; do
9938 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9939 aix_use_runtimelinking=yes
9940 break
9942 done
9943 esac
9945 exp_sym_flag='-bexport'
9946 no_entry_flag='-bnoentry'
9949 # When large executables or shared objects are built, AIX ld can
9950 # have problems creating the table of contents. If linking a library
9951 # or program results in "error TOC overflow" add -mminimal-toc to
9952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9955 archive_cmds=''
9956 hardcode_direct=yes
9957 hardcode_libdir_separator=':'
9958 link_all_deplibs=yes
9960 if test "$GCC" = yes; then
9961 case $host_os in aix4.[012]|aix4.[012].*)
9962 # We only want to do this on AIX 4.2 and lower, the check
9963 # below for broken collect2 doesn't work under 4.3+
9964 collect2name=`${CC} -print-prog-name=collect2`
9965 if test -f "$collect2name" && \
9966 strings "$collect2name" | grep resolve_lib_name >/dev/null
9967 then
9968 # We have reworked collect2
9969 hardcode_direct=yes
9970 else
9971 # We have old collect2
9972 hardcode_direct=unsupported
9973 # It fails to find uninstalled libraries when the uninstalled
9974 # path is not listed in the libpath. Setting hardcode_minus_L
9975 # to unsupported forces relinking
9976 hardcode_minus_L=yes
9977 hardcode_libdir_flag_spec='-L$libdir'
9978 hardcode_libdir_separator=
9980 esac
9981 shared_flag='-shared'
9982 if test "$aix_use_runtimelinking" = yes; then
9983 shared_flag="$shared_flag "'${wl}-G'
9985 else
9986 # not using gcc
9987 if test "$host_cpu" = ia64; then
9988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9989 # chokes on -Wl,-G. The following line is correct:
9990 shared_flag='-G'
9991 else
9992 if test "$aix_use_runtimelinking" = yes; then
9993 shared_flag='${wl}-G'
9994 else
9995 shared_flag='${wl}-bM:SRE'
10000 # It seems that -bexpall does not export symbols beginning with
10001 # underscore (_), so it is better to generate a list of symbols to export.
10002 always_export_symbols=yes
10003 if test "$aix_use_runtimelinking" = yes; then
10004 # Warning - without using the other runtime loading flags (-brtl),
10005 # -berok will link without error, but may produce a broken library.
10006 allow_undefined_flag='-berok'
10007 # Determine the default libpath from the value encoded in an empty executable.
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10012 main ()
10016 return 0;
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10023 # Check for a 64-bit object if we didn't find anything.
10024 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; }
10025 }'`; fi
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10032 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"
10033 else
10034 if test "$host_cpu" = ia64; then
10035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10036 allow_undefined_flag="-z nodefs"
10037 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"
10038 else
10039 # Determine the default libpath from the value encoded in an empty executable.
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10044 main ()
10048 return 0;
10050 _ACEOF
10051 if ac_fn_c_try_link "$LINENO"; then :
10053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10055 # Check for a 64-bit object if we didn't find anything.
10056 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; }
10057 }'`; fi
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10064 # Warning - without using the other run time loading flags,
10065 # -berok will link without error, but may produce a broken library.
10066 no_undefined_flag=' ${wl}-bernotok'
10067 allow_undefined_flag=' ${wl}-berok'
10068 # -bexpall does not export symbols beginning with underscore (_)
10069 always_export_symbols=yes
10070 # Exported symbols can be pulled into shared objects from archives
10071 whole_archive_flag_spec=' '
10072 archive_cmds_need_lc=yes
10073 # This is similar to how AIX traditionally builds its shared libraries.
10074 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'
10079 amigaos*)
10080 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)'
10081 hardcode_libdir_flag_spec='-L$libdir'
10082 hardcode_minus_L=yes
10083 # see comment about different semantics on the GNU ld section
10084 ld_shlibs=no
10087 bsdi[45]*)
10088 export_dynamic_flag_spec=-rdynamic
10091 cygwin* | mingw* | pw32*)
10092 # When not using gcc, we currently assume that we are using
10093 # Microsoft Visual C++.
10094 # hardcode_libdir_flag_spec is actually meaningless, as there is
10095 # no search path for DLLs.
10096 hardcode_libdir_flag_spec=' '
10097 allow_undefined_flag=unsupported
10098 # Tell ltmain to make .lib files, not .a files.
10099 libext=lib
10100 # Tell ltmain to make .dll files, not .so files.
10101 shrext_cmds=".dll"
10102 # FIXME: Setting linknames here is a bad hack.
10103 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10104 # The linker will automatically build a .lib file if we build a DLL.
10105 old_archive_From_new_cmds='true'
10106 # FIXME: Should let the user specify the lib program.
10107 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10108 fix_srcfile_path='`cygpath -w "$srcfile"`'
10109 enable_shared_with_static_runtimes=yes
10112 darwin* | rhapsody*)
10113 case $host_os in
10114 rhapsody* | darwin1.[012])
10115 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10117 *) # Darwin 1.3 on
10118 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10119 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10120 else
10121 case ${MACOSX_DEPLOYMENT_TARGET} in
10122 10.[012])
10123 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10125 10.*)
10126 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10128 esac
10131 esac
10132 archive_cmds_need_lc=no
10133 hardcode_direct=no
10134 hardcode_automatic=yes
10135 hardcode_shlibpath_var=unsupported
10136 whole_archive_flag_spec=''
10137 link_all_deplibs=yes
10138 if test "$GCC" = yes ; then
10139 output_verbose_link_cmd='echo'
10140 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10141 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10142 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10143 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}'
10144 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}'
10145 else
10146 case $cc_basename in
10147 xlc*)
10148 output_verbose_link_cmd='echo'
10149 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10150 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10152 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}'
10153 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}'
10156 ld_shlibs=no
10158 esac
10162 dgux*)
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_shlibpath_var=no
10168 freebsd1*)
10169 ld_shlibs=no
10172 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10173 # support. Future versions do this automatically, but an explicit c++rt0.o
10174 # does not break anything, and helps significantly (at the cost of a little
10175 # extra space).
10176 freebsd2.2*)
10177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10178 hardcode_libdir_flag_spec='-R$libdir'
10179 hardcode_direct=yes
10180 hardcode_shlibpath_var=no
10183 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10184 freebsd2*)
10185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_direct=yes
10187 hardcode_minus_L=yes
10188 hardcode_shlibpath_var=no
10191 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10192 freebsd* | kfreebsd*-gnu | dragonfly*)
10193 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10194 hardcode_libdir_flag_spec='-R$libdir'
10195 hardcode_direct=yes
10196 hardcode_shlibpath_var=no
10199 hpux9*)
10200 if test "$GCC" = yes; then
10201 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'
10202 else
10203 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'
10205 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10206 hardcode_libdir_separator=:
10207 hardcode_direct=yes
10209 # hardcode_minus_L: Not really in the search PATH,
10210 # but as the default location of the library.
10211 hardcode_minus_L=yes
10212 export_dynamic_flag_spec='${wl}-E'
10215 hpux10* | hpux11*)
10216 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10217 case $host_cpu in
10218 hppa*64*|ia64*)
10219 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10224 esac
10225 else
10226 case $host_cpu in
10227 hppa*64*|ia64*)
10228 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10233 esac
10235 if test "$with_gnu_ld" = no; then
10236 case $host_cpu in
10237 hppa*64*)
10238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_flag_spec_ld='+b $libdir'
10240 hardcode_libdir_separator=:
10241 hardcode_direct=no
10242 hardcode_shlibpath_var=no
10244 ia64*)
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_direct=no
10247 hardcode_shlibpath_var=no
10249 # hardcode_minus_L: Not really in the search PATH,
10250 # but as the default location of the library.
10251 hardcode_minus_L=yes
10254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10255 hardcode_libdir_separator=:
10256 hardcode_direct=yes
10257 export_dynamic_flag_spec='${wl}-E'
10259 # hardcode_minus_L: Not really in the search PATH,
10260 # but as the default location of the library.
10261 hardcode_minus_L=yes
10263 esac
10267 irix5* | irix6* | nonstopux*)
10268 if test "$GCC" = yes; then
10269 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'
10270 else
10271 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'
10272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275 hardcode_libdir_separator=:
10276 link_all_deplibs=yes
10279 netbsd*)
10280 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10282 else
10283 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10285 hardcode_libdir_flag_spec='-R$libdir'
10286 hardcode_direct=yes
10287 hardcode_shlibpath_var=no
10290 newsos6)
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_direct=yes
10293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10294 hardcode_libdir_separator=:
10295 hardcode_shlibpath_var=no
10298 openbsd*)
10299 hardcode_direct=yes
10300 hardcode_shlibpath_var=no
10301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10305 export_dynamic_flag_spec='${wl}-E'
10306 else
10307 case $host_os in
10308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10310 hardcode_libdir_flag_spec='-R$libdir'
10313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10316 esac
10320 os2*)
10321 hardcode_libdir_flag_spec='-L$libdir'
10322 hardcode_minus_L=yes
10323 allow_undefined_flag=unsupported
10324 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'
10325 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10328 osf3*)
10329 if test "$GCC" = yes; then
10330 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10331 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'
10332 else
10333 allow_undefined_flag=' -expect_unresolved \*'
10334 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'
10336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator=:
10340 osf4* | osf5*) # as osf3* with the addition of -msym flag
10341 if test "$GCC" = yes; then
10342 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10343 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'
10344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10345 else
10346 allow_undefined_flag=' -expect_unresolved \*'
10347 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'
10348 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10349 $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'
10351 # Both c and cxx compiler support -rpath directly
10352 hardcode_libdir_flag_spec='-rpath $libdir'
10354 hardcode_libdir_separator=:
10357 sco3.2v5*)
10358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_shlibpath_var=no
10360 export_dynamic_flag_spec='${wl}-Bexport'
10361 runpath_var=LD_RUN_PATH
10362 hardcode_runpath_var=yes
10365 solaris*)
10366 no_undefined_flag=' -z text'
10367 if test "$GCC" = yes; then
10368 wlarc='${wl}'
10369 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10372 else
10373 wlarc=''
10374 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10378 hardcode_libdir_flag_spec='-R$libdir'
10379 hardcode_shlibpath_var=no
10380 case $host_os in
10381 solaris2.[0-5] | solaris2.[0-5].*) ;;
10383 # The compiler driver will combine linker options so we
10384 # cannot just pass the convience library names through
10385 # without $wl, iff we do not link with $LD.
10386 # Luckily, gcc supports the same syntax we need for Sun Studio.
10387 # Supported since Solaris 2.6 (maybe 2.5.1?)
10388 case $wlarc in
10390 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10392 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' ;;
10393 esac ;;
10394 esac
10395 link_all_deplibs=yes
10398 sunos4*)
10399 if test "x$host_vendor" = xsequent; then
10400 # Use $CC to link under sequent, because it throws in some extra .o
10401 # files that make .init and .fini sections work.
10402 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10403 else
10404 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_libdir_flag_spec='-L$libdir'
10407 hardcode_direct=yes
10408 hardcode_minus_L=yes
10409 hardcode_shlibpath_var=no
10412 sysv4)
10413 case $host_vendor in
10414 sni)
10415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_direct=yes # is this really true???
10418 siemens)
10419 ## LD is ld it makes a PLAMLIB
10420 ## CC just makes a GrossModule.
10421 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10422 reload_cmds='$CC -r -o $output$reload_objs'
10423 hardcode_direct=no
10425 motorola)
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10429 esac
10430 runpath_var='LD_RUN_PATH'
10431 hardcode_shlibpath_var=no
10434 sysv4.3*)
10435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436 hardcode_shlibpath_var=no
10437 export_dynamic_flag_spec='-Bexport'
10440 sysv4*MP*)
10441 if test -d /usr/nec; then
10442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443 hardcode_shlibpath_var=no
10444 runpath_var=LD_RUN_PATH
10445 hardcode_runpath_var=yes
10446 ld_shlibs=yes
10450 sysv4.2uw2*)
10451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_direct=yes
10453 hardcode_minus_L=no
10454 hardcode_shlibpath_var=no
10455 hardcode_runpath_var=yes
10456 runpath_var=LD_RUN_PATH
10459 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10460 no_undefined_flag='${wl}-z ${wl}text'
10461 if test "$GCC" = yes; then
10462 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 else
10464 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10466 runpath_var='LD_RUN_PATH'
10467 hardcode_shlibpath_var=no
10470 sysv5*)
10471 no_undefined_flag=' -z text'
10472 # $CC -shared without GNU ld will not create a library from C++
10473 # object files and a static libstdc++, better avoid it by now
10474 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10477 hardcode_libdir_flag_spec=
10478 hardcode_shlibpath_var=no
10479 runpath_var='LD_RUN_PATH'
10482 uts4*)
10483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_libdir_flag_spec='-L$libdir'
10485 hardcode_shlibpath_var=no
10489 ld_shlibs=no
10491 esac
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10495 $as_echo "$ld_shlibs" >&6; }
10496 test "$ld_shlibs" = no && can_build_shared=no
10498 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10499 if test "$GCC" = yes; then
10500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10504 # Do we need to explicitly link libc?
10506 case "x$archive_cmds_need_lc" in
10507 x|xyes)
10508 # Assume -lc should be added
10509 archive_cmds_need_lc=yes
10511 if test "$enable_shared" = yes && test "$GCC" = yes; then
10512 case $archive_cmds in
10513 *'~'*)
10514 # FIXME: we may have to deal with multi-command sequences.
10516 '$CC '*)
10517 # Test whether the compiler implicitly links with -lc since on some
10518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10519 # to ld, don't add -lc before -lgcc.
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10521 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10522 $rm conftest*
10523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10526 (eval $ac_compile) 2>&5
10527 ac_status=$?
10528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10529 test $ac_status = 0; } 2>conftest.err; then
10530 soname=conftest
10531 lib=conftest
10532 libobjs=conftest.$ac_objext
10533 deplibs=
10534 wl=$lt_prog_compiler_wl
10535 compiler_flags=-v
10536 linker_flags=-v
10537 verstring=
10538 output_objdir=.
10539 libname=conftest
10540 lt_save_allow_undefined_flag=$allow_undefined_flag
10541 allow_undefined_flag=
10542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10543 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10544 ac_status=$?
10545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10546 test $ac_status = 0; }
10547 then
10548 archive_cmds_need_lc=no
10549 else
10550 archive_cmds_need_lc=yes
10552 allow_undefined_flag=$lt_save_allow_undefined_flag
10553 else
10554 cat conftest.err 1>&5
10556 $rm conftest*
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10558 $as_echo "$archive_cmds_need_lc" >&6; }
10560 esac
10563 esac
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10567 library_names_spec=
10568 libname_spec='lib$name'
10569 soname_spec=
10570 shrext_cmds=".so"
10571 postinstall_cmds=
10572 postuninstall_cmds=
10573 finish_cmds=
10574 finish_eval=
10575 shlibpath_var=
10576 shlibpath_overrides_runpath=unknown
10577 version_type=none
10578 dynamic_linker="$host_os ld.so"
10579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10580 if test "$GCC" = yes; then
10581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10583 # if the path contains ";" then we assume it to be the separator
10584 # otherwise default to the standard path separator (i.e. ":") - it is
10585 # assumed that no part of a normal pathname contains ";" but that should
10586 # okay in the real world where ";" in dirpaths is itself problematic.
10587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10588 else
10589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10591 else
10592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10594 need_lib_prefix=unknown
10595 hardcode_into_libs=no
10597 # when you set need_version to no, make sure it does not cause -set_version
10598 # flags to be left without arguments
10599 need_version=unknown
10601 case $host_os in
10602 aix3*)
10603 version_type=linux
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10605 shlibpath_var=LIBPATH
10607 # AIX 3 has no versioning support, so we append a major version to the name.
10608 soname_spec='${libname}${release}${shared_ext}$major'
10611 aix4* | aix5*)
10612 version_type=linux
10613 need_lib_prefix=no
10614 need_version=no
10615 hardcode_into_libs=yes
10616 if test "$host_cpu" = ia64; then
10617 # AIX 5 supports IA64
10618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 else
10621 # With GCC up to 2.95.x, collect2 would create an import file
10622 # for dependence libraries. The import file would start with
10623 # the line `#! .'. This would cause the generated library to
10624 # depend on `.', always an invalid library. This was fixed in
10625 # development snapshots of GCC prior to 3.0.
10626 case $host_os in
10627 aix4 | aix4.[01] | aix4.[01].*)
10628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10629 echo ' yes '
10630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10632 else
10633 can_build_shared=no
10636 esac
10637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10638 # soname into executable. Probably we can add versioning support to
10639 # collect2, so additional links can be useful in future.
10640 if test "$aix_use_runtimelinking" = yes; then
10641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10642 # instead of lib<name>.a to let people know that these are not
10643 # typical AIX shared libraries.
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645 else
10646 # We preserve .a as extension for shared libraries through AIX4.2
10647 # and later when we are not doing run time linking.
10648 library_names_spec='${libname}${release}.a $libname.a'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LIBPATH
10655 amigaos*)
10656 library_names_spec='$libname.ixlibrary $libname.a'
10657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10658 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'
10661 beos*)
10662 library_names_spec='${libname}${shared_ext}'
10663 dynamic_linker="$host_os ld.so"
10664 shlibpath_var=LIBRARY_PATH
10667 bsdi[45]*)
10668 version_type=linux
10669 need_version=no
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10676 # the default ld.so.conf also contains /usr/contrib/lib and
10677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678 # libtool to hard-code these into programs
10681 cygwin* | mingw* | pw32*)
10682 version_type=windows
10683 shrext_cmds=".dll"
10684 need_version=no
10685 need_lib_prefix=no
10687 case $GCC,$host_os in
10688 yes,cygwin* | yes,mingw* | yes,pw32*)
10689 library_names_spec='$libname.dll.a'
10690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10691 postinstall_cmds='base_file=`basename \${file}`~
10692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10693 dldir=$destdir/`dirname \$dlpath`~
10694 test -d \$dldir || mkdir -p \$dldir~
10695 $install_prog $dir/$dlname \$dldir/$dlname~
10696 chmod a+x \$dldir/$dlname'
10697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10698 dlpath=$dir/\$dldll~
10699 $rm \$dlpath'
10700 shlibpath_overrides_runpath=yes
10702 case $host_os in
10703 cygwin*)
10704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10706 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10708 mingw*)
10709 # MinGW DLLs use traditional 'lib' prefix
10710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10712 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10713 # It is most probably a Windows format PATH printed by
10714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10715 # path with ; separators, and with drive letters. We can handle the
10716 # drive letters (cygwin fileutils understands them), so leave them,
10717 # especially as we might pass files found there to a mingw objdump,
10718 # which wouldn't understand a cygwinified path. Ahh.
10719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10720 else
10721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10724 pw32*)
10725 # pw32 DLLs use 'pw' prefix rather than 'lib'
10726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 esac
10732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10734 esac
10735 dynamic_linker='Win32 ld.exe'
10736 # FIXME: first we should search . and the directory the executable is in
10737 shlibpath_var=PATH
10740 darwin* | rhapsody*)
10741 dynamic_linker="$host_os dyld"
10742 version_type=darwin
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746 soname_spec='${libname}${release}${major}$shared_ext'
10747 shlibpath_overrides_runpath=yes
10748 shlibpath_var=DYLD_LIBRARY_PATH
10749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10750 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10751 if test "$GCC" = yes; then
10752 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"`
10753 else
10754 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10759 dgux*)
10760 version_type=linux
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10768 freebsd1*)
10769 dynamic_linker=no
10772 kfreebsd*-gnu)
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=no
10780 hardcode_into_libs=yes
10781 dynamic_linker='GNU ld.so'
10784 freebsd* | dragonfly*)
10785 # DragonFly does not have aout. When/if they implement a new
10786 # versioning mechanism, adjust this.
10787 if test -x /usr/bin/objformat; then
10788 objformat=`/usr/bin/objformat`
10789 else
10790 case $host_os in
10791 freebsd[123]*) objformat=aout ;;
10792 *) objformat=elf ;;
10793 esac
10795 version_type=freebsd-$objformat
10796 case $version_type in
10797 freebsd-elf*)
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10799 need_version=no
10800 need_lib_prefix=no
10802 freebsd-*)
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10804 need_version=yes
10806 esac
10807 shlibpath_var=LD_LIBRARY_PATH
10808 case $host_os in
10809 freebsd2*)
10810 shlibpath_overrides_runpath=yes
10812 freebsd3.[01]* | freebsdelf3.[01]*)
10813 shlibpath_overrides_runpath=yes
10814 hardcode_into_libs=yes
10816 *) # from 3.2 on
10817 shlibpath_overrides_runpath=no
10818 hardcode_into_libs=yes
10820 esac
10823 gnu*)
10824 version_type=linux
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 hardcode_into_libs=yes
10833 hpux9* | hpux10* | hpux11*)
10834 # Give a soname corresponding to the major version so that dld.sl refuses to
10835 # link against other versions.
10836 version_type=sunos
10837 need_lib_prefix=no
10838 need_version=no
10839 case $host_cpu in
10840 ia64*)
10841 shrext_cmds='.so'
10842 hardcode_into_libs=yes
10843 dynamic_linker="$host_os dld.so"
10844 shlibpath_var=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 if test "X$HPUX_IA64_MODE" = X32; then
10849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10850 else
10851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855 hppa*64*)
10856 shrext_cmds='.sl'
10857 hardcode_into_libs=yes
10858 dynamic_linker="$host_os dld.sl"
10859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867 shrext_cmds='.sl'
10868 dynamic_linker="$host_os dld.sl"
10869 shlibpath_var=SHLIB_PATH
10870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10874 esac
10875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10876 postinstall_cmds='chmod 555 $lib'
10879 irix5* | irix6* | nonstopux*)
10880 case $host_os in
10881 nonstopux*) version_type=nonstopux ;;
10883 if test "$lt_cv_prog_gnu_ld" = yes; then
10884 version_type=linux
10885 else
10886 version_type=irix
10887 fi ;;
10888 esac
10889 need_lib_prefix=no
10890 need_version=no
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10893 case $host_os in
10894 irix5* | nonstopux*)
10895 libsuff= shlibsuff=
10898 case $LD in # libtool.m4 will add one of these switches to LD
10899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10900 libsuff= shlibsuff= libmagic=32-bit;;
10901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10902 libsuff=32 shlibsuff=N32 libmagic=N32;;
10903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10905 *) libsuff= shlibsuff= libmagic=never-match;;
10906 esac
10908 esac
10909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10910 shlibpath_overrides_runpath=no
10911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10913 hardcode_into_libs=yes
10916 # No shared lib support for Linux oldld, aout, or coff.
10917 linux*oldld* | linux*aout* | linux*coff*)
10918 dynamic_linker=no
10921 # This must be Linux ELF.
10922 linux*)
10923 version_type=linux
10924 need_lib_prefix=no
10925 need_version=no
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 # This implies no fast_install, which is unacceptable.
10932 # Some rework will be needed to allow for fast_install
10933 # before this can be enabled.
10934 hardcode_into_libs=yes
10936 # Append ld.so.conf contents to the search path
10937 if test -f /etc/ld.so.conf; then
10938 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' ' '`
10939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10942 # We used to test for /lib/ld.so.1 and disable shared libraries on
10943 # powerpc, because MkLinux only supported shared libraries with the
10944 # GNU dynamic linker. Since this was broken with cross compilers,
10945 # most powerpc-linux boxes support dynamic linking these days and
10946 # people can always --disable-shared, the test was removed, and we
10947 # assume the GNU/Linux dynamic linker is in use.
10948 dynamic_linker='GNU/Linux ld.so'
10951 knetbsd*-gnu)
10952 version_type=linux
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=no
10959 hardcode_into_libs=yes
10960 dynamic_linker='GNU ld.so'
10963 netbsd*)
10964 version_type=sunos
10965 need_lib_prefix=no
10966 need_version=no
10967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10970 dynamic_linker='NetBSD (a.out) ld.so'
10971 else
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 dynamic_linker='NetBSD ld.elf_so'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 hardcode_into_libs=yes
10981 newsos6)
10982 version_type=linux
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10988 nto-qnx*)
10989 version_type=linux
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath=yes
10998 openbsd*)
10999 version_type=sunos
11000 need_lib_prefix=no
11001 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11002 case $host_os in
11003 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11004 *) need_version=no ;;
11005 esac
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11010 case $host_os in
11011 openbsd2.[89] | openbsd2.[89].*)
11012 shlibpath_overrides_runpath=no
11015 shlibpath_overrides_runpath=yes
11017 esac
11018 else
11019 shlibpath_overrides_runpath=yes
11023 os2*)
11024 libname_spec='$name'
11025 shrext_cmds=".dll"
11026 need_lib_prefix=no
11027 library_names_spec='$libname${shared_ext} $libname.a'
11028 dynamic_linker='OS/2 ld.exe'
11029 shlibpath_var=LIBPATH
11032 osf3* | osf4* | osf5*)
11033 version_type=osf
11034 need_lib_prefix=no
11035 need_version=no
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11040 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11043 sco3.2v5*)
11044 version_type=osf
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var=LD_LIBRARY_PATH
11050 solaris*)
11051 version_type=linux
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11059 # ldd complains unless libraries are executable
11060 postinstall_cmds='chmod +x $lib'
11063 sunos4*)
11064 version_type=sunos
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes
11069 if test "$with_gnu_ld" = yes; then
11070 need_lib_prefix=no
11072 need_version=yes
11075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11076 version_type=linux
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 case $host_vendor in
11081 sni)
11082 shlibpath_overrides_runpath=no
11083 need_lib_prefix=no
11084 export_dynamic_flag_spec='${wl}-Blargedynsym'
11085 runpath_var=LD_RUN_PATH
11087 siemens)
11088 need_lib_prefix=no
11090 motorola)
11091 need_lib_prefix=no
11092 need_version=no
11093 shlibpath_overrides_runpath=no
11094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11096 esac
11099 sysv4*MP*)
11100 if test -d /usr/nec ;then
11101 version_type=linux
11102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11103 soname_spec='$libname${shared_ext}.$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11108 uts4*)
11109 version_type=linux
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11116 dynamic_linker=no
11118 esac
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no && can_build_shared=no
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11125 hardcode_action=
11126 if test -n "$hardcode_libdir_flag_spec" || \
11127 test -n "$runpath_var" || \
11128 test "X$hardcode_automatic" = "Xyes" ; then
11130 # We can hardcode non-existant directories.
11131 if test "$hardcode_direct" != no &&
11132 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133 # have to relink, otherwise we might link with an installed library
11134 # when we should be linking with a yet-to-be-installed one
11135 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136 test "$hardcode_minus_L" != no; then
11137 # Linking always hardcodes the temporary library directory.
11138 hardcode_action=relink
11139 else
11140 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141 hardcode_action=immediate
11143 else
11144 # We cannot hardcode anything, or else we can only hardcode existing
11145 # directories.
11146 hardcode_action=unsupported
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149 $as_echo "$hardcode_action" >&6; }
11151 if test "$hardcode_action" = relink; then
11152 # Fast installation is not supported
11153 enable_fast_install=no
11154 elif test "$shlibpath_overrides_runpath" = yes ||
11155 test "$enable_shared" = no; then
11156 # Fast installation is not necessary
11157 enable_fast_install=needless
11160 striplib=
11161 old_striplib=
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11163 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11164 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11165 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11166 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168 $as_echo "yes" >&6; }
11169 else
11170 # FIXME - insert some real tests, host_os isn't really good enough
11171 case $host_os in
11172 darwin*)
11173 if test -n "$STRIP" ; then
11174 striplib="$STRIP -x"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11186 esac
11189 if test "x$enable_dlopen" != xyes; then
11190 enable_dlopen=unknown
11191 enable_dlopen_self=unknown
11192 enable_dlopen_self_static=unknown
11193 else
11194 lt_cv_dlopen=no
11195 lt_cv_dlopen_libs=
11197 case $host_os in
11198 beos*)
11199 lt_cv_dlopen="load_add_on"
11200 lt_cv_dlopen_libs=
11201 lt_cv_dlopen_self=yes
11204 mingw* | pw32*)
11205 lt_cv_dlopen="LoadLibrary"
11206 lt_cv_dlopen_libs=
11209 cygwin*)
11210 lt_cv_dlopen="dlopen"
11211 lt_cv_dlopen_libs=
11214 darwin*)
11215 # if libdl is installed we need to link against it
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-ldl $LIBS"
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char dlopen ();
11234 main ()
11236 return dlopen ();
11238 return 0;
11240 _ACEOF
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_lib_dl_dlopen=yes
11243 else
11244 ac_cv_lib_dl_dlopen=no
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11254 else
11256 lt_cv_dlopen="dyld"
11257 lt_cv_dlopen_libs=
11258 lt_cv_dlopen_self=yes
11265 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11266 if test "x$ac_cv_func_shl_load" = x""yes; then :
11267 lt_cv_dlopen="shl_load"
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11270 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11271 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 ac_check_lib_save_LIBS=$LIBS
11275 LIBS="-ldld $LIBS"
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char shl_load ();
11287 main ()
11289 return shl_load ();
11291 return 0;
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 ac_cv_lib_dld_shl_load=yes
11296 else
11297 ac_cv_lib_dld_shl_load=no
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11304 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11305 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11307 else
11308 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11309 if test "x$ac_cv_func_dlopen" = x""yes; then :
11310 lt_cv_dlopen="dlopen"
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-ldl $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char dlopen ();
11330 main ()
11332 return dlopen ();
11334 return 0;
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_dl_dlopen=yes
11339 else
11340 ac_cv_lib_dl_dlopen=no
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11348 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11352 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11353 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 ac_check_lib_save_LIBS=$LIBS
11357 LIBS="-lsvld $LIBS"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char dlopen ();
11369 main ()
11371 return dlopen ();
11373 return 0;
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_lib_svld_dlopen=yes
11378 else
11379 ac_cv_lib_svld_dlopen=no
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11386 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11387 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11391 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11392 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 ac_check_lib_save_LIBS=$LIBS
11396 LIBS="-ldld $LIBS"
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 char dld_link ();
11408 main ()
11410 return dld_link ();
11412 return 0;
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 ac_cv_lib_dld_dld_link=yes
11417 else
11418 ac_cv_lib_dld_dld_link=no
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LIBS=$ac_check_lib_save_LIBS
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11425 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11426 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11427 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11446 esac
11448 if test "x$lt_cv_dlopen" != xno; then
11449 enable_dlopen=yes
11450 else
11451 enable_dlopen=no
11454 case $lt_cv_dlopen in
11455 dlopen)
11456 save_CPPFLAGS="$CPPFLAGS"
11457 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11459 save_LDFLAGS="$LDFLAGS"
11460 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11462 save_LIBS="$LIBS"
11463 LIBS="$lt_cv_dlopen_libs $LIBS"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11466 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11467 if test "${lt_cv_dlopen_self+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test "$cross_compiling" = yes; then :
11471 lt_cv_dlopen_self=cross
11472 else
11473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11474 lt_status=$lt_dlunknown
11475 cat > conftest.$ac_ext <<EOF
11476 #line 11476 "configure"
11477 #include "confdefs.h"
11479 #if HAVE_DLFCN_H
11480 #include <dlfcn.h>
11481 #endif
11483 #include <stdio.h>
11485 #ifdef RTLD_GLOBAL
11486 # define LT_DLGLOBAL RTLD_GLOBAL
11487 #else
11488 # ifdef DL_GLOBAL
11489 # define LT_DLGLOBAL DL_GLOBAL
11490 # else
11491 # define LT_DLGLOBAL 0
11492 # endif
11493 #endif
11495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11496 find out it does not work in some platform. */
11497 #ifndef LT_DLLAZY_OR_NOW
11498 # ifdef RTLD_LAZY
11499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11500 # else
11501 # ifdef DL_LAZY
11502 # define LT_DLLAZY_OR_NOW DL_LAZY
11503 # else
11504 # ifdef RTLD_NOW
11505 # define LT_DLLAZY_OR_NOW RTLD_NOW
11506 # else
11507 # ifdef DL_NOW
11508 # define LT_DLLAZY_OR_NOW DL_NOW
11509 # else
11510 # define LT_DLLAZY_OR_NOW 0
11511 # endif
11512 # endif
11513 # endif
11514 # endif
11515 #endif
11517 #ifdef __cplusplus
11518 extern "C" void exit (int);
11519 #endif
11521 void fnord() { int i=42;}
11522 int main ()
11524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11525 int status = $lt_dlunknown;
11527 if (self)
11529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11530 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11531 /* dlclose (self); */
11534 exit (status);
11537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11538 (eval $ac_link) 2>&5
11539 ac_status=$?
11540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11542 (./conftest; exit; ) >&5 2>/dev/null
11543 lt_status=$?
11544 case x$lt_status in
11545 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11546 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11547 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11548 esac
11549 else :
11550 # compilation failed
11551 lt_cv_dlopen_self=no
11554 rm -fr conftest*
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11559 $as_echo "$lt_cv_dlopen_self" >&6; }
11561 if test "x$lt_cv_dlopen_self" = xyes; then
11562 LDFLAGS="$LDFLAGS $link_static_flag"
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11564 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11565 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 if test "$cross_compiling" = yes; then :
11569 lt_cv_dlopen_self_static=cross
11570 else
11571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572 lt_status=$lt_dlunknown
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11574 "configure"
11575 #include "confdefs.h"
11577 #if HAVE_DLFCN_H
11578 #include <dlfcn.h>
11579 #endif
11581 #include <stdio.h>
11583 #ifdef RTLD_GLOBAL
11584 # define LT_DLGLOBAL RTLD_GLOBAL
11585 #else
11586 # ifdef DL_GLOBAL
11587 # define LT_DLGLOBAL DL_GLOBAL
11588 # else
11589 # define LT_DLGLOBAL 0
11590 # endif
11591 #endif
11593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595 #ifndef LT_DLLAZY_OR_NOW
11596 # ifdef RTLD_LAZY
11597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11598 # else
11599 # ifdef DL_LAZY
11600 # define LT_DLLAZY_OR_NOW DL_LAZY
11601 # else
11602 # ifdef RTLD_NOW
11603 # define LT_DLLAZY_OR_NOW RTLD_NOW
11604 # else
11605 # ifdef DL_NOW
11606 # define LT_DLLAZY_OR_NOW DL_NOW
11607 # else
11608 # define LT_DLLAZY_OR_NOW 0
11609 # endif
11610 # endif
11611 # endif
11612 # endif
11613 #endif
11615 #ifdef __cplusplus
11616 extern "C" void exit (int);
11617 #endif
11619 void fnord() { int i=42;}
11620 int main ()
11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623 int status = $lt_dlunknown;
11625 if (self)
11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11629 /* dlclose (self); */
11632 exit (status);
11635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11636 (eval $ac_link) 2>&5
11637 ac_status=$?
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11640 (./conftest; exit; ) >&5 2>/dev/null
11641 lt_status=$?
11642 case x$lt_status in
11643 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11644 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11645 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11646 esac
11647 else :
11648 # compilation failed
11649 lt_cv_dlopen_self_static=no
11652 rm -fr conftest*
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11657 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11660 CPPFLAGS="$save_CPPFLAGS"
11661 LDFLAGS="$save_LDFLAGS"
11662 LIBS="$save_LIBS"
11664 esac
11666 case $lt_cv_dlopen_self in
11667 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11668 *) enable_dlopen_self=unknown ;;
11669 esac
11671 case $lt_cv_dlopen_self_static in
11672 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11673 *) enable_dlopen_self_static=unknown ;;
11674 esac
11678 # Report which librarie types wil actually be built
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11680 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11682 $as_echo "$can_build_shared" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11685 $as_echo_n "checking whether to build shared libraries... " >&6; }
11686 test "$can_build_shared" = "no" && enable_shared=no
11688 # On AIX, shared libraries and static libraries use the same namespace, and
11689 # are all built from PIC.
11690 case $host_os in
11691 aix3*)
11692 test "$enable_shared" = yes && enable_static=no
11693 if test -n "$RANLIB"; then
11694 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11695 postinstall_cmds='$RANLIB $lib'
11699 aix4* | aix5*)
11700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11701 test "$enable_shared" = yes && enable_static=no
11704 esac
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11706 $as_echo "$enable_shared" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11709 $as_echo_n "checking whether to build static libraries... " >&6; }
11710 # Make sure either enable_shared or enable_static is yes.
11711 test "$enable_shared" = yes || enable_static=yes
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11713 $as_echo "$enable_static" >&6; }
11715 # The else clause should only fire when bootstrapping the
11716 # libtool distribution, otherwise you forgot to ship ltmain.sh
11717 # with your package, and you will get complaints that there are
11718 # no rules to generate ltmain.sh.
11719 if test -f "$ltmain"; then
11720 # See if we are running on zsh, and set the options which allow our commands through
11721 # without removal of \ escapes.
11722 if test -n "${ZSH_VERSION+set}" ; then
11723 setopt NO_GLOB_SUBST
11725 # Now quote all the things that may contain metacharacters while being
11726 # careful not to overquote the AC_SUBSTed values. We take copies of the
11727 # variables and quote the copies for generation of the libtool script.
11728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11729 SED SHELL STRIP \
11730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11732 deplibs_check_method reload_flag reload_cmds need_locks \
11733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11734 lt_cv_sys_global_symbol_to_c_name_address \
11735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11736 old_postinstall_cmds old_postuninstall_cmds \
11737 compiler \
11738 CC \
11739 LD \
11740 lt_prog_compiler_wl \
11741 lt_prog_compiler_pic \
11742 lt_prog_compiler_static \
11743 lt_prog_compiler_no_builtin_flag \
11744 export_dynamic_flag_spec \
11745 thread_safe_flag_spec \
11746 whole_archive_flag_spec \
11747 enable_shared_with_static_runtimes \
11748 old_archive_cmds \
11749 old_archive_from_new_cmds \
11750 predep_objects \
11751 postdep_objects \
11752 predeps \
11753 postdeps \
11754 compiler_lib_search_path \
11755 archive_cmds \
11756 archive_expsym_cmds \
11757 postinstall_cmds \
11758 postuninstall_cmds \
11759 old_archive_from_expsyms_cmds \
11760 allow_undefined_flag \
11761 no_undefined_flag \
11762 export_symbols_cmds \
11763 hardcode_libdir_flag_spec \
11764 hardcode_libdir_flag_spec_ld \
11765 hardcode_libdir_separator \
11766 hardcode_automatic \
11767 module_cmds \
11768 module_expsym_cmds \
11769 lt_cv_prog_compiler_c_o \
11770 exclude_expsyms \
11771 include_expsyms; do
11773 case $var in
11774 old_archive_cmds | \
11775 old_archive_from_new_cmds | \
11776 archive_cmds | \
11777 archive_expsym_cmds | \
11778 module_cmds | \
11779 module_expsym_cmds | \
11780 old_archive_from_expsyms_cmds | \
11781 export_symbols_cmds | \
11782 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11783 postinstall_cmds | postuninstall_cmds | \
11784 old_postinstall_cmds | old_postuninstall_cmds | \
11785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11786 # Double-quote double-evaled strings.
11787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11792 esac
11793 done
11795 case $lt_echo in
11796 *'\$0 --fallback-echo"')
11797 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11799 esac
11801 cfgfile="${ofile}T"
11802 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11803 $rm -f "$cfgfile"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11805 $as_echo "$as_me: creating $ofile" >&6;}
11807 cat <<__EOF__ >> "$cfgfile"
11808 #! $SHELL
11810 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11811 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11812 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11814 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11815 # Free Software Foundation, Inc.
11817 # This file is part of GNU Libtool:
11818 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11820 # This program is free software; you can redistribute it and/or modify
11821 # it under the terms of the GNU General Public License as published by
11822 # the Free Software Foundation; either version 2 of the License, or
11823 # (at your option) any later version.
11825 # This program is distributed in the hope that it will be useful, but
11826 # WITHOUT ANY WARRANTY; without even the implied warranty of
11827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11828 # General Public License for more details.
11830 # You should have received a copy of the GNU General Public License
11831 # along with this program; if not, write to the Free Software
11832 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11834 # As a special exception to the GNU General Public License, if you
11835 # distribute this file as part of a program that contains a
11836 # configuration script generated by Autoconf, you may include it under
11837 # the same distribution terms that you use for the rest of that program.
11839 # A sed program that does not truncate output.
11840 SED=$lt_SED
11842 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11843 Xsed="$SED -e 1s/^X//"
11845 # The HP-UX ksh and POSIX shell print the target directory to stdout
11846 # if CDPATH is set.
11847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11849 # The names of the tagged configurations supported by this script.
11850 available_tags=
11852 # ### BEGIN LIBTOOL CONFIG
11854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11856 # Shell to use when invoking shell scripts.
11857 SHELL=$lt_SHELL
11859 # Whether or not to build shared libraries.
11860 build_libtool_libs=$enable_shared
11862 # Whether or not to build static libraries.
11863 build_old_libs=$enable_static
11865 # Whether or not to add -lc for building shared libraries.
11866 build_libtool_need_lc=$archive_cmds_need_lc
11868 # Whether or not to disallow shared libs when runtime libs are static
11869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11871 # Whether or not to optimize for fast installation.
11872 fast_install=$enable_fast_install
11874 # The host system.
11875 host_alias=$host_alias
11876 host=$host
11877 host_os=$host_os
11879 # The build system.
11880 build_alias=$build_alias
11881 build=$build
11882 build_os=$build_os
11884 # An echo program that does not interpret backslashes.
11885 echo=$lt_echo
11887 # The archiver.
11888 AR=$lt_AR
11889 AR_FLAGS=$lt_AR_FLAGS
11891 # A C compiler.
11892 LTCC=$lt_LTCC
11894 # A language-specific compiler.
11895 CC=$lt_compiler
11897 # Is the compiler the GNU C compiler?
11898 with_gcc=$GCC
11900 # An ERE matcher.
11901 EGREP=$lt_EGREP
11903 # The linker used to build libraries.
11904 LD=$lt_LD
11906 # Whether we need hard or soft links.
11907 LN_S=$lt_LN_S
11909 # A BSD-compatible nm program.
11910 NM=$lt_NM
11912 # A symbol stripping program
11913 STRIP=$lt_STRIP
11915 # Used to examine libraries when file_magic_cmd begins "file"
11916 MAGIC_CMD=$MAGIC_CMD
11918 # Used on cygwin: DLL creation program.
11919 DLLTOOL="$DLLTOOL"
11921 # Used on cygwin: object dumper.
11922 OBJDUMP="$OBJDUMP"
11924 # Used on cygwin: assembler.
11925 AS="$AS"
11927 # The name of the directory that contains temporary libtool files.
11928 objdir=$objdir
11930 # How to create reloadable object files.
11931 reload_flag=$lt_reload_flag
11932 reload_cmds=$lt_reload_cmds
11934 # How to pass a linker flag through the compiler.
11935 wl=$lt_lt_prog_compiler_wl
11937 # Object file suffix (normally "o").
11938 objext="$ac_objext"
11940 # Old archive suffix (normally "a").
11941 libext="$libext"
11943 # Shared library suffix (normally ".so").
11944 shrext_cmds='$shrext_cmds'
11946 # Executable file suffix (normally "").
11947 exeext="$exeext"
11949 # Additional compiler flags for building library objects.
11950 pic_flag=$lt_lt_prog_compiler_pic
11951 pic_mode=$pic_mode
11953 # What is the maximum length of a command?
11954 max_cmd_len=$lt_cv_sys_max_cmd_len
11956 # Does compiler simultaneously support -c and -o options?
11957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11959 # Must we lock files when doing compilation?
11960 need_locks=$lt_need_locks
11962 # Do we need the lib prefix for modules?
11963 need_lib_prefix=$need_lib_prefix
11965 # Do we need a version for libraries?
11966 need_version=$need_version
11968 # Whether dlopen is supported.
11969 dlopen_support=$enable_dlopen
11971 # Whether dlopen of programs is supported.
11972 dlopen_self=$enable_dlopen_self
11974 # Whether dlopen of statically linked programs is supported.
11975 dlopen_self_static=$enable_dlopen_self_static
11977 # Compiler flag to prevent dynamic linking.
11978 link_static_flag=$lt_lt_prog_compiler_static
11980 # Compiler flag to turn off builtin functions.
11981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11983 # Compiler flag to allow reflexive dlopens.
11984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11986 # Compiler flag to generate shared objects directly from archives.
11987 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11989 # Compiler flag to generate thread-safe objects.
11990 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11992 # Library versioning type.
11993 version_type=$version_type
11995 # Format of library name prefix.
11996 libname_spec=$lt_libname_spec
11998 # List of archive names. First name is the real one, the rest are links.
11999 # The last name is the one that the linker finds with -lNAME.
12000 library_names_spec=$lt_library_names_spec
12002 # The coded name of the library, if different from the real name.
12003 soname_spec=$lt_soname_spec
12005 # Commands used to build and install an old-style archive.
12006 RANLIB=$lt_RANLIB
12007 old_archive_cmds=$lt_old_archive_cmds
12008 old_postinstall_cmds=$lt_old_postinstall_cmds
12009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12011 # Create an old-style archive from a shared archive.
12012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12014 # Create a temporary old-style archive to link instead of a shared archive.
12015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12017 # Commands used to build and install a shared archive.
12018 archive_cmds=$lt_archive_cmds
12019 archive_expsym_cmds=$lt_archive_expsym_cmds
12020 postinstall_cmds=$lt_postinstall_cmds
12021 postuninstall_cmds=$lt_postuninstall_cmds
12023 # Commands used to build a loadable module (assumed same as above if empty)
12024 module_cmds=$lt_module_cmds
12025 module_expsym_cmds=$lt_module_expsym_cmds
12027 # Commands to strip libraries.
12028 old_striplib=$lt_old_striplib
12029 striplib=$lt_striplib
12031 # Dependencies to place before the objects being linked to create a
12032 # shared library.
12033 predep_objects=$lt_predep_objects
12035 # Dependencies to place after the objects being linked to create a
12036 # shared library.
12037 postdep_objects=$lt_postdep_objects
12039 # Dependencies to place before the objects being linked to create a
12040 # shared library.
12041 predeps=$lt_predeps
12043 # Dependencies to place after the objects being linked to create a
12044 # shared library.
12045 postdeps=$lt_postdeps
12047 # The library search path used internally by the compiler when linking
12048 # a shared library.
12049 compiler_lib_search_path=$lt_compiler_lib_search_path
12051 # Method to check whether dependent libraries are shared objects.
12052 deplibs_check_method=$lt_deplibs_check_method
12054 # Command to use when deplibs_check_method == file_magic.
12055 file_magic_cmd=$lt_file_magic_cmd
12057 # Flag that allows shared libraries with undefined symbols to be built.
12058 allow_undefined_flag=$lt_allow_undefined_flag
12060 # Flag that forces no undefined symbols.
12061 no_undefined_flag=$lt_no_undefined_flag
12063 # Commands used to finish a libtool library installation in a directory.
12064 finish_cmds=$lt_finish_cmds
12066 # Same as above, but a single script fragment to be evaled but not shown.
12067 finish_eval=$lt_finish_eval
12069 # Take the output of nm and produce a listing of raw symbols and C names.
12070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12072 # Transform the output of nm in a proper C declaration
12073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12075 # Transform the output of nm in a C name address pair
12076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12078 # This is the shared library runtime path variable.
12079 runpath_var=$runpath_var
12081 # This is the shared library path variable.
12082 shlibpath_var=$shlibpath_var
12084 # Is shlibpath searched before the hard-coded library search path?
12085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12087 # How to hardcode a shared library path into an executable.
12088 hardcode_action=$hardcode_action
12090 # Whether we should hardcode library paths into libraries.
12091 hardcode_into_libs=$hardcode_into_libs
12093 # Flag to hardcode \$libdir into a binary during linking.
12094 # This must work even if \$libdir does not exist.
12095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12097 # If ld is used when linking, flag to hardcode \$libdir into
12098 # a binary during linking. This must work even if \$libdir does
12099 # not exist.
12100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12102 # Whether we need a single -rpath flag with a separated argument.
12103 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12106 # resulting binary.
12107 hardcode_direct=$hardcode_direct
12109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12110 # resulting binary.
12111 hardcode_minus_L=$hardcode_minus_L
12113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12114 # the resulting binary.
12115 hardcode_shlibpath_var=$hardcode_shlibpath_var
12117 # Set to yes if building a shared library automatically hardcodes DIR into the library
12118 # and all subsequent libraries and executables linked against it.
12119 hardcode_automatic=$hardcode_automatic
12121 # Variables whose values should be saved in libtool wrapper scripts and
12122 # restored at relink time.
12123 variables_saved_for_relink="$variables_saved_for_relink"
12125 # Whether libtool must link a program against all its dependency libraries.
12126 link_all_deplibs=$link_all_deplibs
12128 # Compile-time system search path for libraries
12129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12131 # Run-time system search path for libraries
12132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12134 # Fix the shell variable \$srcfile for the compiler.
12135 fix_srcfile_path="$fix_srcfile_path"
12137 # Set to yes if exported symbols are required.
12138 always_export_symbols=$always_export_symbols
12140 # The commands to list exported symbols.
12141 export_symbols_cmds=$lt_export_symbols_cmds
12143 # The commands to extract the exported symbol list from a shared archive.
12144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12146 # Symbols that should not be listed in the preloaded symbols.
12147 exclude_expsyms=$lt_exclude_expsyms
12149 # Symbols that must always be exported.
12150 include_expsyms=$lt_include_expsyms
12152 # ### END LIBTOOL CONFIG
12154 __EOF__
12157 case $host_os in
12158 aix3*)
12159 cat <<\EOF >> "$cfgfile"
12161 # AIX sometimes has problems with the GCC collect2 program. For some
12162 # reason, if we set the COLLECT_NAMES environment variable, the problems
12163 # vanish in a puff of smoke.
12164 if test "X${COLLECT_NAMES+set}" != Xset; then
12165 COLLECT_NAMES=
12166 export COLLECT_NAMES
12170 esac
12172 # We use sed instead of cat because bash on DJGPP gets confused if
12173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12174 # text mode, it properly converts lines to CR/LF. This bash problem
12175 # is reportedly fixed, but why not run on old versions too?
12176 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12178 mv -f "$cfgfile" "$ofile" || \
12179 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12180 chmod +x "$ofile"
12182 else
12183 # If there is no Makefile yet, we rely on a make rule to execute
12184 # `config.status --recheck' to rerun these tests and create the
12185 # libtool script then.
12186 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12187 if test -f "$ltmain_in"; then
12188 test -f Makefile && make "$ltmain"
12193 ac_ext=c
12194 ac_cpp='$CPP $CPPFLAGS'
12195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12199 CC="$lt_save_CC"
12202 # Check whether --with-tags was given.
12203 if test "${with_tags+set}" = set; then :
12204 withval=$with_tags; tagnames="$withval"
12208 if test -f "$ltmain" && test -n "$tagnames"; then
12209 if test ! -f "${ofile}"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
12211 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12214 if test -z "$LTCC"; then
12215 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12216 if test -z "$LTCC"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12218 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12221 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12225 # Extract list of available tagged configurations in $ofile.
12226 # Note that this assumes the entire list is on one line.
12227 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12230 for tagname in $tagnames; do
12231 IFS="$lt_save_ifs"
12232 # Check whether tagname contains only valid characters
12233 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12234 "") ;;
12235 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
12237 esac
12239 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12240 then
12241 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
12244 # Update the list of available tags.
12245 if test -n "$tagname"; then
12246 echo appending configuration tag \"$tagname\" to $ofile
12248 case $tagname in
12249 CXX)
12250 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12251 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12252 (test "X$CXX" != "Xg++"))) ; then
12254 else
12255 tagname=""
12259 F77)
12260 if test -n "$F77" && test "X$F77" != "Xno"; then
12262 else
12263 tagname=""
12267 GCJ)
12268 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12271 # Source file extension for Java test sources.
12272 ac_ext=java
12274 # Object file extension for compiled Java test sources.
12275 objext=o
12276 objext_GCJ=$objext
12278 # Code to be used in simple compile tests
12279 lt_simple_compile_test_code="class foo {}\n"
12281 # Code to be used in simple link tests
12282 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12286 # If no C compiler was specified, use CC.
12287 LTCC=${LTCC-"$CC"}
12289 # Allow CC to be a program name with arguments.
12290 compiler=$CC
12293 # save warnings/boilerplate of simple test code
12294 ac_outfile=conftest.$ac_objext
12295 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12297 _lt_compiler_boilerplate=`cat conftest.err`
12298 $rm conftest*
12300 ac_outfile=conftest.$ac_objext
12301 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12303 _lt_linker_boilerplate=`cat conftest.err`
12304 $rm conftest*
12307 # Allow CC to be a program name with arguments.
12308 lt_save_CC="$CC"
12309 CC=${GCJ-"gcj"}
12310 compiler=$CC
12311 compiler_GCJ=$CC
12312 for cc_temp in $compiler""; do
12313 case $cc_temp in
12314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12316 \-*) ;;
12317 *) break;;
12318 esac
12319 done
12320 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12324 archive_cmds_need_lc_GCJ=no
12326 old_archive_cmds_GCJ=$old_archive_cmds
12329 lt_prog_compiler_no_builtin_flag_GCJ=
12331 if test "$GCC" = yes; then
12332 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12336 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 lt_cv_prog_compiler_rtti_exceptions=no
12341 ac_outfile=conftest.$ac_objext
12342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12343 lt_compiler_flag="-fno-rtti -fno-exceptions"
12344 # Insert the option either (1) after the last *FLAGS variable, or
12345 # (2) before a word containing "conftest.", or (3) at the end.
12346 # Note that $ac_compile itself does not contain backslashes and begins
12347 # with a dollar sign (not a hyphen), so the echo should work correctly.
12348 # The option is referenced via a variable to avoid confusing sed.
12349 lt_compile=`echo "$ac_compile" | $SED \
12350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12352 -e 's:$: $lt_compiler_flag:'`
12353 (eval echo "\"\$as_me:12353: $lt_compile\"" >&5)
12354 (eval "$lt_compile" 2>conftest.err)
12355 ac_status=$?
12356 cat conftest.err >&5
12357 echo "$as_me:12357: \$? = $ac_status" >&5
12358 if (exit $ac_status) && test -s "$ac_outfile"; then
12359 # The compiler can only warn and ignore the option if not recognized
12360 # So say no if there are warnings other than the usual output.
12361 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12362 $SED '/^$/d' conftest.err >conftest.er2
12363 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12364 lt_cv_prog_compiler_rtti_exceptions=yes
12367 $rm conftest*
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12371 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12374 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12375 else
12381 lt_prog_compiler_wl_GCJ=
12382 lt_prog_compiler_pic_GCJ=
12383 lt_prog_compiler_static_GCJ=
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12386 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12388 if test "$GCC" = yes; then
12389 lt_prog_compiler_wl_GCJ='-Wl,'
12390 lt_prog_compiler_static_GCJ='-static'
12392 case $host_os in
12393 aix*)
12394 # All AIX code is PIC.
12395 if test "$host_cpu" = ia64; then
12396 # AIX 5 now supports IA64 processor
12397 lt_prog_compiler_static_GCJ='-Bstatic'
12401 amigaos*)
12402 # FIXME: we need at least 68020 code to build shared libraries, but
12403 # adding the `-m68020' flag to GCC prevents building anything better,
12404 # like `-m68040'.
12405 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12408 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12409 # PIC is the default for these OSes.
12412 mingw* | pw32* | os2*)
12413 # This hack is so that the source file can tell whether it is being
12414 # built for inclusion in a dll (and should export symbols for example).
12415 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12418 darwin* | rhapsody*)
12419 # PIC is the default on this platform
12420 # Common symbols not allowed in MH_DYLIB files
12421 lt_prog_compiler_pic_GCJ='-fno-common'
12424 msdosdjgpp*)
12425 # Just because we use GCC doesn't mean we suddenly get shared libraries
12426 # on systems that don't support them.
12427 lt_prog_compiler_can_build_shared_GCJ=no
12428 enable_shared=no
12431 sysv4*MP*)
12432 if test -d /usr/nec; then
12433 lt_prog_compiler_pic_GCJ=-Kconform_pic
12437 hpux*)
12438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12439 # not for PA HP-UX.
12440 case $host_cpu in
12441 hppa*64*|ia64*)
12442 # +Z the default
12445 lt_prog_compiler_pic_GCJ='-fPIC'
12447 esac
12451 lt_prog_compiler_pic_GCJ='-fPIC'
12453 esac
12454 else
12455 # PORTME Check for flag to pass linker flags through the system compiler.
12456 case $host_os in
12457 aix*)
12458 lt_prog_compiler_wl_GCJ='-Wl,'
12459 if test "$host_cpu" = ia64; then
12460 # AIX 5 now supports IA64 processor
12461 lt_prog_compiler_static_GCJ='-Bstatic'
12462 else
12463 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12466 darwin*)
12467 # PIC is the default on this platform
12468 # Common symbols not allowed in MH_DYLIB files
12469 case $cc_basename in
12470 xlc*)
12471 lt_prog_compiler_pic_GCJ='-qnocommon'
12472 lt_prog_compiler_wl_GCJ='-Wl,'
12474 esac
12477 mingw* | pw32* | os2*)
12478 # This hack is so that the source file can tell whether it is being
12479 # built for inclusion in a dll (and should export symbols for example).
12480 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12483 hpux9* | hpux10* | hpux11*)
12484 lt_prog_compiler_wl_GCJ='-Wl,'
12485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12486 # not for PA HP-UX.
12487 case $host_cpu in
12488 hppa*64*|ia64*)
12489 # +Z the default
12492 lt_prog_compiler_pic_GCJ='+Z'
12494 esac
12495 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12496 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12499 irix5* | irix6* | nonstopux*)
12500 lt_prog_compiler_wl_GCJ='-Wl,'
12501 # PIC (with -KPIC) is the default.
12502 lt_prog_compiler_static_GCJ='-non_shared'
12505 newsos6)
12506 lt_prog_compiler_pic_GCJ='-KPIC'
12507 lt_prog_compiler_static_GCJ='-Bstatic'
12510 linux*)
12511 case $cc_basename in
12512 icc* | ecc*)
12513 lt_prog_compiler_wl_GCJ='-Wl,'
12514 lt_prog_compiler_pic_GCJ='-KPIC'
12515 lt_prog_compiler_static_GCJ='-static'
12517 pgcc* | pgf77* | pgf90* | pgf95*)
12518 # Portland Group compilers (*not* the Pentium gcc compiler,
12519 # which looks to be a dead project)
12520 lt_prog_compiler_wl_GCJ='-Wl,'
12521 lt_prog_compiler_pic_GCJ='-fpic'
12522 lt_prog_compiler_static_GCJ='-Bstatic'
12524 ccc*)
12525 lt_prog_compiler_wl_GCJ='-Wl,'
12526 # All Alpha code is PIC.
12527 lt_prog_compiler_static_GCJ='-non_shared'
12529 esac
12532 osf3* | osf4* | osf5*)
12533 lt_prog_compiler_wl_GCJ='-Wl,'
12534 # All OSF/1 code is PIC.
12535 lt_prog_compiler_static_GCJ='-non_shared'
12538 sco3.2v5*)
12539 lt_prog_compiler_pic_GCJ='-Kpic'
12540 lt_prog_compiler_static_GCJ='-dn'
12543 solaris*)
12544 lt_prog_compiler_pic_GCJ='-KPIC'
12545 lt_prog_compiler_static_GCJ='-Bstatic'
12546 case $cc_basename in
12547 f77* | f90* | f95*)
12548 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12550 lt_prog_compiler_wl_GCJ='-Wl,';;
12551 esac
12554 sunos4*)
12555 lt_prog_compiler_wl_GCJ='-Qoption ld '
12556 lt_prog_compiler_pic_GCJ='-PIC'
12557 lt_prog_compiler_static_GCJ='-Bstatic'
12560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12561 lt_prog_compiler_wl_GCJ='-Wl,'
12562 lt_prog_compiler_pic_GCJ='-KPIC'
12563 lt_prog_compiler_static_GCJ='-Bstatic'
12566 sysv4*MP*)
12567 if test -d /usr/nec ;then
12568 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12569 lt_prog_compiler_static_GCJ='-Bstatic'
12573 unicos*)
12574 lt_prog_compiler_wl_GCJ='-Wl,'
12575 lt_prog_compiler_can_build_shared_GCJ=no
12578 uts4*)
12579 lt_prog_compiler_pic_GCJ='-pic'
12580 lt_prog_compiler_static_GCJ='-Bstatic'
12584 lt_prog_compiler_can_build_shared_GCJ=no
12586 esac
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
12590 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
12593 # Check to make sure the PIC flag actually works.
12595 if test -n "$lt_prog_compiler_pic_GCJ"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
12599 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 lt_prog_compiler_pic_works_GCJ=no
12603 ac_outfile=conftest.$ac_objext
12604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12605 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12606 # Insert the option either (1) after the last *FLAGS variable, or
12607 # (2) before a word containing "conftest.", or (3) at the end.
12608 # Note that $ac_compile itself does not contain backslashes and begins
12609 # with a dollar sign (not a hyphen), so the echo should work correctly.
12610 # The option is referenced via a variable to avoid confusing sed.
12611 lt_compile=`echo "$ac_compile" | $SED \
12612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12614 -e 's:$: $lt_compiler_flag:'`
12615 (eval echo "\"\$as_me:12615: $lt_compile\"" >&5)
12616 (eval "$lt_compile" 2>conftest.err)
12617 ac_status=$?
12618 cat conftest.err >&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 if (exit $ac_status) && test -s "$ac_outfile"; then
12621 # The compiler can only warn and ignore the option if not recognized
12622 # So say no if there are warnings other than the usual output.
12623 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12624 $SED '/^$/d' conftest.err >conftest.er2
12625 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12626 lt_prog_compiler_pic_works_GCJ=yes
12629 $rm conftest*
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
12633 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
12635 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12636 case $lt_prog_compiler_pic_GCJ in
12637 "" | " "*) ;;
12638 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12639 esac
12640 else
12641 lt_prog_compiler_pic_GCJ=
12642 lt_prog_compiler_can_build_shared_GCJ=no
12646 case $host_os in
12647 # For platforms which do not support PIC, -DPIC is meaningless:
12648 *djgpp*)
12649 lt_prog_compiler_pic_GCJ=
12652 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
12654 esac
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12658 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 lt_cv_prog_compiler_c_o_GCJ=no
12662 $rm -r conftest 2>/dev/null
12663 mkdir conftest
12664 cd conftest
12665 mkdir out
12666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12668 lt_compiler_flag="-o out/conftest2.$ac_objext"
12669 # Insert the option either (1) after the last *FLAGS variable, or
12670 # (2) before a word containing "conftest.", or (3) at the end.
12671 # Note that $ac_compile itself does not contain backslashes and begins
12672 # with a dollar sign (not a hyphen), so the echo should work correctly.
12673 lt_compile=`echo "$ac_compile" | $SED \
12674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12676 -e 's:$: $lt_compiler_flag:'`
12677 (eval echo "\"\$as_me:12677: $lt_compile\"" >&5)
12678 (eval "$lt_compile" 2>out/conftest.err)
12679 ac_status=$?
12680 cat out/conftest.err >&5
12681 echo "$as_me:12681: \$? = $ac_status" >&5
12682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12683 then
12684 # The compiler can only warn and ignore the option if not recognized
12685 # So say no if there are warnings
12686 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12687 $SED '/^$/d' out/conftest.err >out/conftest.er2
12688 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12689 lt_cv_prog_compiler_c_o_GCJ=yes
12692 chmod u+w . 2>&5
12693 $rm conftest*
12694 # SGI C++ compiler will create directory out/ii_files/ for
12695 # template instantiation
12696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12697 $rm out/* && rmdir out
12698 cd ..
12699 rmdir conftest
12700 $rm conftest*
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
12704 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
12707 hard_links="nottested"
12708 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
12709 # do not overwrite the value of need_locks provided by the user
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12711 $as_echo_n "checking if we can lock with hard links... " >&6; }
12712 hard_links=yes
12713 $rm conftest*
12714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12715 touch conftest.a
12716 ln conftest.a conftest.b 2>&5 || hard_links=no
12717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12719 $as_echo "$hard_links" >&6; }
12720 if test "$hard_links" = no; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12722 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12723 need_locks=warn
12725 else
12726 need_locks=no
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12730 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12732 runpath_var=
12733 allow_undefined_flag_GCJ=
12734 enable_shared_with_static_runtimes_GCJ=no
12735 archive_cmds_GCJ=
12736 archive_expsym_cmds_GCJ=
12737 old_archive_From_new_cmds_GCJ=
12738 old_archive_from_expsyms_cmds_GCJ=
12739 export_dynamic_flag_spec_GCJ=
12740 whole_archive_flag_spec_GCJ=
12741 thread_safe_flag_spec_GCJ=
12742 hardcode_libdir_flag_spec_GCJ=
12743 hardcode_libdir_flag_spec_ld_GCJ=
12744 hardcode_libdir_separator_GCJ=
12745 hardcode_direct_GCJ=no
12746 hardcode_minus_L_GCJ=no
12747 hardcode_shlibpath_var_GCJ=unsupported
12748 link_all_deplibs_GCJ=unknown
12749 hardcode_automatic_GCJ=no
12750 module_cmds_GCJ=
12751 module_expsym_cmds_GCJ=
12752 always_export_symbols_GCJ=no
12753 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12754 # include_expsyms should be a list of space-separated symbols to be *always*
12755 # included in the symbol list
12756 include_expsyms_GCJ=
12757 # exclude_expsyms can be an extended regexp of symbols to exclude
12758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12760 # as well as any symbol that contains `d'.
12761 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
12762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12763 # platforms (ab)use it in PIC code, but their linkers get confused if
12764 # the symbol is explicitly referenced. Since portable code cannot
12765 # rely on this symbol name, it's probably fine to never include it in
12766 # preloaded symbol tables.
12767 extract_expsyms_cmds=
12768 # Just being paranoid about ensuring that cc_basename is set.
12769 for cc_temp in $compiler""; do
12770 case $cc_temp in
12771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12773 \-*) ;;
12774 *) break;;
12775 esac
12776 done
12777 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12779 case $host_os in
12780 cygwin* | mingw* | pw32*)
12781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12782 # When not using gcc, we currently assume that we are using
12783 # Microsoft Visual C++.
12784 if test "$GCC" != yes; then
12785 with_gnu_ld=no
12788 openbsd*)
12789 with_gnu_ld=no
12791 esac
12793 ld_shlibs_GCJ=yes
12794 if test "$with_gnu_ld" = yes; then
12795 # If archive_cmds runs LD, not CC, wlarc should be empty
12796 wlarc='${wl}'
12798 # Set some defaults for GNU ld with shared library support. These
12799 # are reset later if shared libraries are not supported. Putting them
12800 # here allows them to be overridden if necessary.
12801 runpath_var=LD_RUN_PATH
12802 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
12803 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
12804 # ancient GNU ld didn't support --whole-archive et. al.
12805 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12806 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12807 else
12808 whole_archive_flag_spec_GCJ=
12810 supports_anon_versioning=no
12811 case `$LD -v 2>/dev/null` in
12812 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12813 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12814 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12815 *\ 2.11.*) ;; # other 2.11 versions
12816 *) supports_anon_versioning=yes ;;
12817 esac
12819 # See if GNU ld supports shared libraries.
12820 case $host_os in
12821 aix3* | aix4* | aix5*)
12822 # On AIX/PPC, the GNU linker is very broken
12823 if test "$host_cpu" != ia64; then
12824 ld_shlibs_GCJ=no
12825 cat <<EOF 1>&2
12827 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12828 *** to be unable to reliably create shared libraries on AIX.
12829 *** Therefore, libtool is disabling shared libraries support. If you
12830 *** really care for shared libraries, you may want to modify your PATH
12831 *** so that a non-GNU linker is found, and then restart.
12837 amigaos*)
12838 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)'
12839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12840 hardcode_minus_L_GCJ=yes
12842 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12843 # that the semantics of dynamic libraries on AmigaOS, at least up
12844 # to version 4, is to share data among multiple programs linked
12845 # with the same dynamic library. Since this doesn't match the
12846 # behavior of shared libraries on other platforms, we can't use
12847 # them.
12848 ld_shlibs_GCJ=no
12851 beos*)
12852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12853 allow_undefined_flag_GCJ=unsupported
12854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12855 # support --undefined. This deserves some investigation. FIXME
12856 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12857 else
12858 ld_shlibs_GCJ=no
12862 cygwin* | mingw* | pw32*)
12863 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
12864 # as there is no search path for DLLs.
12865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
12866 allow_undefined_flag_GCJ=unsupported
12867 always_export_symbols_GCJ=no
12868 enable_shared_with_static_runtimes_GCJ=yes
12869 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12871 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12872 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12873 # If the export-symbols file already is a .def file (1st line
12874 # is EXPORTS), use it as is; otherwise, prepend...
12875 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12876 cp $export_symbols $output_objdir/$soname.def;
12877 else
12878 echo EXPORTS > $output_objdir/$soname.def;
12879 cat $export_symbols >> $output_objdir/$soname.def;
12881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12882 else
12883 ld_shlibs_GCJ=no
12887 linux*)
12888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12889 tmp_addflag=
12890 case $cc_basename,$host_cpu in
12891 pgcc*) # Portland Group C compiler
12892 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'
12893 tmp_addflag=' $pic_flag'
12895 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12896 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'
12897 tmp_addflag=' $pic_flag -Mnomain' ;;
12898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12899 tmp_addflag=' -i_dynamic' ;;
12900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12901 tmp_addflag=' -i_dynamic -nofor_main' ;;
12902 ifc* | ifort*) # Intel Fortran compiler
12903 tmp_addflag=' -nofor_main' ;;
12904 esac
12905 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 if test $supports_anon_versioning = yes; then
12908 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
12909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12910 $echo "local: *; };" >> $output_objdir/$libname.ver~
12911 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12913 else
12914 ld_shlibs_GCJ=no
12918 netbsd*)
12919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12920 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12921 wlarc=
12922 else
12923 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928 solaris* | sysv5*)
12929 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12930 ld_shlibs_GCJ=no
12931 cat <<EOF 1>&2
12933 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12934 *** create shared libraries on Solaris systems. Therefore, libtool
12935 *** is disabling shared libraries support. We urge you to upgrade GNU
12936 *** binutils to release 2.9.1 or newer. Another option is to modify
12937 *** your PATH or compiler configuration so that the native linker is
12938 *** used, and then restart.
12941 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944 else
12945 ld_shlibs_GCJ=no
12949 sunos4*)
12950 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12951 wlarc=
12952 hardcode_direct_GCJ=yes
12953 hardcode_shlibpath_var_GCJ=no
12957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12958 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12959 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12960 else
12961 ld_shlibs_GCJ=no
12964 esac
12966 if test "$ld_shlibs_GCJ" = no; then
12967 runpath_var=
12968 hardcode_libdir_flag_spec_GCJ=
12969 export_dynamic_flag_spec_GCJ=
12970 whole_archive_flag_spec_GCJ=
12972 else
12973 # PORTME fill in a description of your system's linker (not GNU ld)
12974 case $host_os in
12975 aix3*)
12976 allow_undefined_flag_GCJ=unsupported
12977 always_export_symbols_GCJ=yes
12978 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'
12979 # Note: this linker hardcodes the directories in LIBPATH if there
12980 # are no directories specified by -L.
12981 hardcode_minus_L_GCJ=yes
12982 if test "$GCC" = yes && test -z "$link_static_flag"; then
12983 # Neither direct hardcoding nor static linking is supported with a
12984 # broken collect2.
12985 hardcode_direct_GCJ=unsupported
12989 aix4* | aix5*)
12990 if test "$host_cpu" = ia64; then
12991 # On IA64, the linker does run time linking by default, so we don't
12992 # have to do anything special.
12993 aix_use_runtimelinking=no
12994 exp_sym_flag='-Bexport'
12995 no_entry_flag=""
12996 else
12997 # If we're using GNU nm, then we don't want the "-C" option.
12998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12999 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13000 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'
13001 else
13002 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'
13004 aix_use_runtimelinking=no
13006 # Test if we are trying to use run time linking or normal
13007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008 # need to do runtime linking.
13009 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13010 for ld_flag in $LDFLAGS; do
13011 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13012 aix_use_runtimelinking=yes
13013 break
13015 done
13016 esac
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13028 archive_cmds_GCJ=''
13029 hardcode_direct_GCJ=yes
13030 hardcode_libdir_separator_GCJ=':'
13031 link_all_deplibs_GCJ=yes
13033 if test "$GCC" = yes; then
13034 case $host_os in aix4.[012]|aix4.[012].*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name=`${CC} -print-prog-name=collect2`
13038 if test -f "$collect2name" && \
13039 strings "$collect2name" | grep resolve_lib_name >/dev/null
13040 then
13041 # We have reworked collect2
13042 hardcode_direct_GCJ=yes
13043 else
13044 # We have old collect2
13045 hardcode_direct_GCJ=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L_GCJ=yes
13050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13051 hardcode_libdir_separator_GCJ=
13053 esac
13054 shared_flag='-shared'
13055 if test "$aix_use_runtimelinking" = yes; then
13056 shared_flag="$shared_flag "'${wl}-G'
13058 else
13059 # not using gcc
13060 if test "$host_cpu" = ia64; then
13061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13062 # chokes on -Wl,-G. The following line is correct:
13063 shared_flag='-G'
13064 else
13065 if test "$aix_use_runtimelinking" = yes; then
13066 shared_flag='${wl}-G'
13067 else
13068 shared_flag='${wl}-bM:SRE'
13073 # It seems that -bexpall does not export symbols beginning with
13074 # underscore (_), so it is better to generate a list of symbols to export.
13075 always_export_symbols_GCJ=yes
13076 if test "$aix_use_runtimelinking" = yes; then
13077 # Warning - without using the other runtime loading flags (-brtl),
13078 # -berok will link without error, but may produce a broken library.
13079 allow_undefined_flag_GCJ='-berok'
13080 # Determine the default libpath from the value encoded in an empty executable.
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13085 main ()
13089 return 0;
13091 _ACEOF
13092 if ac_fn_c_try_link "$LINENO"; then :
13094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13096 # Check for a 64-bit object if we didn't find anything.
13097 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; }
13098 }'`; fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13104 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13105 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"
13106 else
13107 if test "$host_cpu" = ia64; then
13108 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13109 allow_undefined_flag_GCJ="-z nodefs"
13110 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"
13111 else
13112 # Determine the default libpath from the value encoded in an empty executable.
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13117 main ()
13121 return 0;
13123 _ACEOF
13124 if ac_fn_c_try_link "$LINENO"; then :
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13128 # Check for a 64-bit object if we didn't find anything.
13129 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; }
13130 }'`; fi
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13136 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13137 # Warning - without using the other run time loading flags,
13138 # -berok will link without error, but may produce a broken library.
13139 no_undefined_flag_GCJ=' ${wl}-bernotok'
13140 allow_undefined_flag_GCJ=' ${wl}-berok'
13141 # -bexpall does not export symbols beginning with underscore (_)
13142 always_export_symbols_GCJ=yes
13143 # Exported symbols can be pulled into shared objects from archives
13144 whole_archive_flag_spec_GCJ=' '
13145 archive_cmds_need_lc_GCJ=yes
13146 # This is similar to how AIX traditionally builds its shared libraries.
13147 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'
13152 amigaos*)
13153 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)'
13154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13155 hardcode_minus_L_GCJ=yes
13156 # see comment about different semantics on the GNU ld section
13157 ld_shlibs_GCJ=no
13160 bsdi[45]*)
13161 export_dynamic_flag_spec_GCJ=-rdynamic
13164 cygwin* | mingw* | pw32*)
13165 # When not using gcc, we currently assume that we are using
13166 # Microsoft Visual C++.
13167 # hardcode_libdir_flag_spec is actually meaningless, as there is
13168 # no search path for DLLs.
13169 hardcode_libdir_flag_spec_GCJ=' '
13170 allow_undefined_flag_GCJ=unsupported
13171 # Tell ltmain to make .lib files, not .a files.
13172 libext=lib
13173 # Tell ltmain to make .dll files, not .so files.
13174 shrext_cmds=".dll"
13175 # FIXME: Setting linknames here is a bad hack.
13176 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13177 # The linker will automatically build a .lib file if we build a DLL.
13178 old_archive_From_new_cmds_GCJ='true'
13179 # FIXME: Should let the user specify the lib program.
13180 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13181 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13182 enable_shared_with_static_runtimes_GCJ=yes
13185 darwin* | rhapsody*)
13186 case $host_os in
13187 rhapsody* | darwin1.[012])
13188 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13190 *) # Darwin 1.3 on
13191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13192 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13193 else
13194 case ${MACOSX_DEPLOYMENT_TARGET} in
13195 10.[012])
13196 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13198 10.*)
13199 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13201 esac
13204 esac
13205 archive_cmds_need_lc_GCJ=no
13206 hardcode_direct_GCJ=no
13207 hardcode_automatic_GCJ=yes
13208 hardcode_shlibpath_var_GCJ=unsupported
13209 whole_archive_flag_spec_GCJ=''
13210 link_all_deplibs_GCJ=yes
13211 if test "$GCC" = yes ; then
13212 output_verbose_link_cmd='echo'
13213 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13214 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13216 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}'
13217 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}'
13218 else
13219 case $cc_basename in
13220 xlc*)
13221 output_verbose_link_cmd='echo'
13222 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13223 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13225 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}'
13226 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}'
13229 ld_shlibs_GCJ=no
13231 esac
13235 dgux*)
13236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13237 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13238 hardcode_shlibpath_var_GCJ=no
13241 freebsd1*)
13242 ld_shlibs_GCJ=no
13245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246 # support. Future versions do this automatically, but an explicit c++rt0.o
13247 # does not break anything, and helps significantly (at the cost of a little
13248 # extra space).
13249 freebsd2.2*)
13250 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13252 hardcode_direct_GCJ=yes
13253 hardcode_shlibpath_var_GCJ=no
13256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13257 freebsd2*)
13258 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_direct_GCJ=yes
13260 hardcode_minus_L_GCJ=yes
13261 hardcode_shlibpath_var_GCJ=no
13264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13265 freebsd* | kfreebsd*-gnu | dragonfly*)
13266 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13267 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13268 hardcode_direct_GCJ=yes
13269 hardcode_shlibpath_var_GCJ=no
13272 hpux9*)
13273 if test "$GCC" = yes; then
13274 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'
13275 else
13276 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'
13278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13279 hardcode_libdir_separator_GCJ=:
13280 hardcode_direct_GCJ=yes
13282 # hardcode_minus_L: Not really in the search PATH,
13283 # but as the default location of the library.
13284 hardcode_minus_L_GCJ=yes
13285 export_dynamic_flag_spec_GCJ='${wl}-E'
13288 hpux10* | hpux11*)
13289 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13290 case $host_cpu in
13291 hppa*64*|ia64*)
13292 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13295 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13297 esac
13298 else
13299 case $host_cpu in
13300 hppa*64*|ia64*)
13301 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13306 esac
13308 if test "$with_gnu_ld" = no; then
13309 case $host_cpu in
13310 hppa*64*)
13311 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13313 hardcode_libdir_separator_GCJ=:
13314 hardcode_direct_GCJ=no
13315 hardcode_shlibpath_var_GCJ=no
13317 ia64*)
13318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13319 hardcode_direct_GCJ=no
13320 hardcode_shlibpath_var_GCJ=no
13322 # hardcode_minus_L: Not really in the search PATH,
13323 # but as the default location of the library.
13324 hardcode_minus_L_GCJ=yes
13327 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13328 hardcode_libdir_separator_GCJ=:
13329 hardcode_direct_GCJ=yes
13330 export_dynamic_flag_spec_GCJ='${wl}-E'
13332 # hardcode_minus_L: Not really in the search PATH,
13333 # but as the default location of the library.
13334 hardcode_minus_L_GCJ=yes
13336 esac
13340 irix5* | irix6* | nonstopux*)
13341 if test "$GCC" = yes; then
13342 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'
13343 else
13344 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'
13345 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13348 hardcode_libdir_separator_GCJ=:
13349 link_all_deplibs_GCJ=yes
13352 netbsd*)
13353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13355 else
13356 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13358 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13359 hardcode_direct_GCJ=yes
13360 hardcode_shlibpath_var_GCJ=no
13363 newsos6)
13364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365 hardcode_direct_GCJ=yes
13366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13367 hardcode_libdir_separator_GCJ=:
13368 hardcode_shlibpath_var_GCJ=no
13371 openbsd*)
13372 hardcode_direct_GCJ=yes
13373 hardcode_shlibpath_var_GCJ=no
13374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13375 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_GCJ='${wl}-E'
13379 else
13380 case $host_os in
13381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13386 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13387 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13389 esac
13393 os2*)
13394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13395 hardcode_minus_L_GCJ=yes
13396 allow_undefined_flag_GCJ=unsupported
13397 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'
13398 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13401 osf3*)
13402 if test "$GCC" = yes; then
13403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13404 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'
13405 else
13406 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13407 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'
13409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13410 hardcode_libdir_separator_GCJ=:
13413 osf4* | osf5*) # as osf3* with the addition of -msym flag
13414 if test "$GCC" = yes; then
13415 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13416 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'
13417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13418 else
13419 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13420 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'
13421 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~
13422 $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'
13424 # Both c and cxx compiler support -rpath directly
13425 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13427 hardcode_libdir_separator_GCJ=:
13430 sco3.2v5*)
13431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_shlibpath_var_GCJ=no
13433 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
13434 runpath_var=LD_RUN_PATH
13435 hardcode_runpath_var=yes
13438 solaris*)
13439 no_undefined_flag_GCJ=' -z text'
13440 if test "$GCC" = yes; then
13441 wlarc='${wl}'
13442 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13443 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13444 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13445 else
13446 wlarc=''
13447 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13451 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13452 hardcode_shlibpath_var_GCJ=no
13453 case $host_os in
13454 solaris2.[0-5] | solaris2.[0-5].*) ;;
13456 # The compiler driver will combine linker options so we
13457 # cannot just pass the convience library names through
13458 # without $wl, iff we do not link with $LD.
13459 # Luckily, gcc supports the same syntax we need for Sun Studio.
13460 # Supported since Solaris 2.6 (maybe 2.5.1?)
13461 case $wlarc in
13463 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13465 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' ;;
13466 esac ;;
13467 esac
13468 link_all_deplibs_GCJ=yes
13471 sunos4*)
13472 if test "x$host_vendor" = xsequent; then
13473 # Use $CC to link under sequent, because it throws in some extra .o
13474 # files that make .init and .fini sections work.
13475 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13476 else
13477 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13480 hardcode_direct_GCJ=yes
13481 hardcode_minus_L_GCJ=yes
13482 hardcode_shlibpath_var_GCJ=no
13485 sysv4)
13486 case $host_vendor in
13487 sni)
13488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_direct_GCJ=yes # is this really true???
13491 siemens)
13492 ## LD is ld it makes a PLAMLIB
13493 ## CC just makes a GrossModule.
13494 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13495 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
13496 hardcode_direct_GCJ=no
13498 motorola)
13499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
13502 esac
13503 runpath_var='LD_RUN_PATH'
13504 hardcode_shlibpath_var_GCJ=no
13507 sysv4.3*)
13508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_shlibpath_var_GCJ=no
13510 export_dynamic_flag_spec_GCJ='-Bexport'
13513 sysv4*MP*)
13514 if test -d /usr/nec; then
13515 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_shlibpath_var_GCJ=no
13517 runpath_var=LD_RUN_PATH
13518 hardcode_runpath_var=yes
13519 ld_shlibs_GCJ=yes
13523 sysv4.2uw2*)
13524 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_direct_GCJ=yes
13526 hardcode_minus_L_GCJ=no
13527 hardcode_shlibpath_var_GCJ=no
13528 hardcode_runpath_var=yes
13529 runpath_var=LD_RUN_PATH
13532 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13533 no_undefined_flag_GCJ='${wl}-z ${wl}text'
13534 if test "$GCC" = yes; then
13535 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13536 else
13537 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13539 runpath_var='LD_RUN_PATH'
13540 hardcode_shlibpath_var_GCJ=no
13543 sysv5*)
13544 no_undefined_flag_GCJ=' -z text'
13545 # $CC -shared without GNU ld will not create a library from C++
13546 # object files and a static libstdc++, better avoid it by now
13547 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13549 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13550 hardcode_libdir_flag_spec_GCJ=
13551 hardcode_shlibpath_var_GCJ=no
13552 runpath_var='LD_RUN_PATH'
13555 uts4*)
13556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13558 hardcode_shlibpath_var_GCJ=no
13562 ld_shlibs_GCJ=no
13564 esac
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
13568 $as_echo "$ld_shlibs_GCJ" >&6; }
13569 test "$ld_shlibs_GCJ" = no && can_build_shared=no
13571 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13572 if test "$GCC" = yes; then
13573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13577 # Do we need to explicitly link libc?
13579 case "x$archive_cmds_need_lc_GCJ" in
13580 x|xyes)
13581 # Assume -lc should be added
13582 archive_cmds_need_lc_GCJ=yes
13584 if test "$enable_shared" = yes && test "$GCC" = yes; then
13585 case $archive_cmds_GCJ in
13586 *'~'*)
13587 # FIXME: we may have to deal with multi-command sequences.
13589 '$CC '*)
13590 # Test whether the compiler implicitly links with -lc since on some
13591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13592 # to ld, don't add -lc before -lgcc.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13594 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13595 $rm conftest*
13596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13599 (eval $ac_compile) 2>&5
13600 ac_status=$?
13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13602 test $ac_status = 0; } 2>conftest.err; then
13603 soname=conftest
13604 lib=conftest
13605 libobjs=conftest.$ac_objext
13606 deplibs=
13607 wl=$lt_prog_compiler_wl_GCJ
13608 compiler_flags=-v
13609 linker_flags=-v
13610 verstring=
13611 output_objdir=.
13612 libname=conftest
13613 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
13614 allow_undefined_flag_GCJ=
13615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13616 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13617 ac_status=$?
13618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619 test $ac_status = 0; }
13620 then
13621 archive_cmds_need_lc_GCJ=no
13622 else
13623 archive_cmds_need_lc_GCJ=yes
13625 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
13626 else
13627 cat conftest.err 1>&5
13629 $rm conftest*
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
13631 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
13633 esac
13636 esac
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13639 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13640 library_names_spec=
13641 libname_spec='lib$name'
13642 soname_spec=
13643 shrext_cmds=".so"
13644 postinstall_cmds=
13645 postuninstall_cmds=
13646 finish_cmds=
13647 finish_eval=
13648 shlibpath_var=
13649 shlibpath_overrides_runpath=unknown
13650 version_type=none
13651 dynamic_linker="$host_os ld.so"
13652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13653 if test "$GCC" = yes; then
13654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13655 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13656 # if the path contains ";" then we assume it to be the separator
13657 # otherwise default to the standard path separator (i.e. ":") - it is
13658 # assumed that no part of a normal pathname contains ";" but that should
13659 # okay in the real world where ";" in dirpaths is itself problematic.
13660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13661 else
13662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13664 else
13665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13667 need_lib_prefix=unknown
13668 hardcode_into_libs=no
13670 # when you set need_version to no, make sure it does not cause -set_version
13671 # flags to be left without arguments
13672 need_version=unknown
13674 case $host_os in
13675 aix3*)
13676 version_type=linux
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13678 shlibpath_var=LIBPATH
13680 # AIX 3 has no versioning support, so we append a major version to the name.
13681 soname_spec='${libname}${release}${shared_ext}$major'
13684 aix4* | aix5*)
13685 version_type=linux
13686 need_lib_prefix=no
13687 need_version=no
13688 hardcode_into_libs=yes
13689 if test "$host_cpu" = ia64; then
13690 # AIX 5 supports IA64
13691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13692 shlibpath_var=LD_LIBRARY_PATH
13693 else
13694 # With GCC up to 2.95.x, collect2 would create an import file
13695 # for dependence libraries. The import file would start with
13696 # the line `#! .'. This would cause the generated library to
13697 # depend on `.', always an invalid library. This was fixed in
13698 # development snapshots of GCC prior to 3.0.
13699 case $host_os in
13700 aix4 | aix4.[01] | aix4.[01].*)
13701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13702 echo ' yes '
13703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13705 else
13706 can_build_shared=no
13709 esac
13710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13711 # soname into executable. Probably we can add versioning support to
13712 # collect2, so additional links can be useful in future.
13713 if test "$aix_use_runtimelinking" = yes; then
13714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13715 # instead of lib<name>.a to let people know that these are not
13716 # typical AIX shared libraries.
13717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718 else
13719 # We preserve .a as extension for shared libraries through AIX4.2
13720 # and later when we are not doing run time linking.
13721 library_names_spec='${libname}${release}.a $libname.a'
13722 soname_spec='${libname}${release}${shared_ext}$major'
13724 shlibpath_var=LIBPATH
13728 amigaos*)
13729 library_names_spec='$libname.ixlibrary $libname.a'
13730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13731 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'
13734 beos*)
13735 library_names_spec='${libname}${shared_ext}'
13736 dynamic_linker="$host_os ld.so"
13737 shlibpath_var=LIBRARY_PATH
13740 bsdi[45]*)
13741 version_type=linux
13742 need_version=no
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 soname_spec='${libname}${release}${shared_ext}$major'
13745 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13749 # the default ld.so.conf also contains /usr/contrib/lib and
13750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13751 # libtool to hard-code these into programs
13754 cygwin* | mingw* | pw32*)
13755 version_type=windows
13756 shrext_cmds=".dll"
13757 need_version=no
13758 need_lib_prefix=no
13760 case $GCC,$host_os in
13761 yes,cygwin* | yes,mingw* | yes,pw32*)
13762 library_names_spec='$libname.dll.a'
13763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13764 postinstall_cmds='base_file=`basename \${file}`~
13765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13766 dldir=$destdir/`dirname \$dlpath`~
13767 test -d \$dldir || mkdir -p \$dldir~
13768 $install_prog $dir/$dlname \$dldir/$dlname~
13769 chmod a+x \$dldir/$dlname'
13770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13771 dlpath=$dir/\$dldll~
13772 $rm \$dlpath'
13773 shlibpath_overrides_runpath=yes
13775 case $host_os in
13776 cygwin*)
13777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13779 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13781 mingw*)
13782 # MinGW DLLs use traditional 'lib' prefix
13783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13785 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13786 # It is most probably a Windows format PATH printed by
13787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13788 # path with ; separators, and with drive letters. We can handle the
13789 # drive letters (cygwin fileutils understands them), so leave them,
13790 # especially as we might pass files found there to a mingw objdump,
13791 # which wouldn't understand a cygwinified path. Ahh.
13792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13793 else
13794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13797 pw32*)
13798 # pw32 DLLs use 'pw' prefix rather than 'lib'
13799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13801 esac
13805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13807 esac
13808 dynamic_linker='Win32 ld.exe'
13809 # FIXME: first we should search . and the directory the executable is in
13810 shlibpath_var=PATH
13813 darwin* | rhapsody*)
13814 dynamic_linker="$host_os dyld"
13815 version_type=darwin
13816 need_lib_prefix=no
13817 need_version=no
13818 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13819 soname_spec='${libname}${release}${major}$shared_ext'
13820 shlibpath_overrides_runpath=yes
13821 shlibpath_var=DYLD_LIBRARY_PATH
13822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13823 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13824 if test "$GCC" = yes; then
13825 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"`
13826 else
13827 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13832 dgux*)
13833 version_type=linux
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13841 freebsd1*)
13842 dynamic_linker=no
13845 kfreebsd*-gnu)
13846 version_type=linux
13847 need_lib_prefix=no
13848 need_version=no
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 shlibpath_overrides_runpath=no
13853 hardcode_into_libs=yes
13854 dynamic_linker='GNU ld.so'
13857 freebsd* | dragonfly*)
13858 # DragonFly does not have aout. When/if they implement a new
13859 # versioning mechanism, adjust this.
13860 if test -x /usr/bin/objformat; then
13861 objformat=`/usr/bin/objformat`
13862 else
13863 case $host_os in
13864 freebsd[123]*) objformat=aout ;;
13865 *) objformat=elf ;;
13866 esac
13868 version_type=freebsd-$objformat
13869 case $version_type in
13870 freebsd-elf*)
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13872 need_version=no
13873 need_lib_prefix=no
13875 freebsd-*)
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13877 need_version=yes
13879 esac
13880 shlibpath_var=LD_LIBRARY_PATH
13881 case $host_os in
13882 freebsd2*)
13883 shlibpath_overrides_runpath=yes
13885 freebsd3.[01]* | freebsdelf3.[01]*)
13886 shlibpath_overrides_runpath=yes
13887 hardcode_into_libs=yes
13889 *) # from 3.2 on
13890 shlibpath_overrides_runpath=no
13891 hardcode_into_libs=yes
13893 esac
13896 gnu*)
13897 version_type=linux
13898 need_lib_prefix=no
13899 need_version=no
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13901 soname_spec='${libname}${release}${shared_ext}$major'
13902 shlibpath_var=LD_LIBRARY_PATH
13903 hardcode_into_libs=yes
13906 hpux9* | hpux10* | hpux11*)
13907 # Give a soname corresponding to the major version so that dld.sl refuses to
13908 # link against other versions.
13909 version_type=sunos
13910 need_lib_prefix=no
13911 need_version=no
13912 case $host_cpu in
13913 ia64*)
13914 shrext_cmds='.so'
13915 hardcode_into_libs=yes
13916 dynamic_linker="$host_os dld.so"
13917 shlibpath_var=LD_LIBRARY_PATH
13918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 if test "X$HPUX_IA64_MODE" = X32; then
13922 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13923 else
13924 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13928 hppa*64*)
13929 shrext_cmds='.sl'
13930 hardcode_into_libs=yes
13931 dynamic_linker="$host_os dld.sl"
13932 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13940 shrext_cmds='.sl'
13941 dynamic_linker="$host_os dld.sl"
13942 shlibpath_var=SHLIB_PATH
13943 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 soname_spec='${libname}${release}${shared_ext}$major'
13947 esac
13948 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13949 postinstall_cmds='chmod 555 $lib'
13952 irix5* | irix6* | nonstopux*)
13953 case $host_os in
13954 nonstopux*) version_type=nonstopux ;;
13956 if test "$lt_cv_prog_gnu_ld" = yes; then
13957 version_type=linux
13958 else
13959 version_type=irix
13960 fi ;;
13961 esac
13962 need_lib_prefix=no
13963 need_version=no
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13966 case $host_os in
13967 irix5* | nonstopux*)
13968 libsuff= shlibsuff=
13971 case $LD in # libtool.m4 will add one of these switches to LD
13972 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13973 libsuff= shlibsuff= libmagic=32-bit;;
13974 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13975 libsuff=32 shlibsuff=N32 libmagic=N32;;
13976 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13977 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13978 *) libsuff= shlibsuff= libmagic=never-match;;
13979 esac
13981 esac
13982 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13983 shlibpath_overrides_runpath=no
13984 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13985 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13986 hardcode_into_libs=yes
13989 # No shared lib support for Linux oldld, aout, or coff.
13990 linux*oldld* | linux*aout* | linux*coff*)
13991 dynamic_linker=no
13994 # This must be Linux ELF.
13995 linux*)
13996 version_type=linux
13997 need_lib_prefix=no
13998 need_version=no
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 shlibpath_overrides_runpath=no
14004 # This implies no fast_install, which is unacceptable.
14005 # Some rework will be needed to allow for fast_install
14006 # before this can be enabled.
14007 hardcode_into_libs=yes
14009 # Append ld.so.conf contents to the search path
14010 if test -f /etc/ld.so.conf; then
14011 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' ' '`
14012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14015 # We used to test for /lib/ld.so.1 and disable shared libraries on
14016 # powerpc, because MkLinux only supported shared libraries with the
14017 # GNU dynamic linker. Since this was broken with cross compilers,
14018 # most powerpc-linux boxes support dynamic linking these days and
14019 # people can always --disable-shared, the test was removed, and we
14020 # assume the GNU/Linux dynamic linker is in use.
14021 dynamic_linker='GNU/Linux ld.so'
14024 knetbsd*-gnu)
14025 version_type=linux
14026 need_lib_prefix=no
14027 need_version=no
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath=no
14032 hardcode_into_libs=yes
14033 dynamic_linker='GNU ld.so'
14036 netbsd*)
14037 version_type=sunos
14038 need_lib_prefix=no
14039 need_version=no
14040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14043 dynamic_linker='NetBSD (a.out) ld.so'
14044 else
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 dynamic_linker='NetBSD ld.elf_so'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath=yes
14051 hardcode_into_libs=yes
14054 newsos6)
14055 version_type=linux
14056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=yes
14061 nto-qnx*)
14062 version_type=linux
14063 need_lib_prefix=no
14064 need_version=no
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14071 openbsd*)
14072 version_type=sunos
14073 need_lib_prefix=no
14074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14075 case $host_os in
14076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14077 *) need_version=no ;;
14078 esac
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14083 case $host_os in
14084 openbsd2.[89] | openbsd2.[89].*)
14085 shlibpath_overrides_runpath=no
14088 shlibpath_overrides_runpath=yes
14090 esac
14091 else
14092 shlibpath_overrides_runpath=yes
14096 os2*)
14097 libname_spec='$name'
14098 shrext_cmds=".dll"
14099 need_lib_prefix=no
14100 library_names_spec='$libname${shared_ext} $libname.a'
14101 dynamic_linker='OS/2 ld.exe'
14102 shlibpath_var=LIBPATH
14105 osf3* | osf4* | osf5*)
14106 version_type=osf
14107 need_lib_prefix=no
14108 need_version=no
14109 soname_spec='${libname}${release}${shared_ext}$major'
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111 shlibpath_var=LD_LIBRARY_PATH
14112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14116 sco3.2v5*)
14117 version_type=osf
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 shlibpath_var=LD_LIBRARY_PATH
14123 solaris*)
14124 version_type=linux
14125 need_lib_prefix=no
14126 need_version=no
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14131 hardcode_into_libs=yes
14132 # ldd complains unless libraries are executable
14133 postinstall_cmds='chmod +x $lib'
14136 sunos4*)
14137 version_type=sunos
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 shlibpath_overrides_runpath=yes
14142 if test "$with_gnu_ld" = yes; then
14143 need_lib_prefix=no
14145 need_version=yes
14148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14149 version_type=linux
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 soname_spec='${libname}${release}${shared_ext}$major'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 case $host_vendor in
14154 sni)
14155 shlibpath_overrides_runpath=no
14156 need_lib_prefix=no
14157 export_dynamic_flag_spec='${wl}-Blargedynsym'
14158 runpath_var=LD_RUN_PATH
14160 siemens)
14161 need_lib_prefix=no
14163 motorola)
14164 need_lib_prefix=no
14165 need_version=no
14166 shlibpath_overrides_runpath=no
14167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14169 esac
14172 sysv4*MP*)
14173 if test -d /usr/nec ;then
14174 version_type=linux
14175 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14176 soname_spec='$libname${shared_ext}.$major'
14177 shlibpath_var=LD_LIBRARY_PATH
14181 uts4*)
14182 version_type=linux
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 shlibpath_var=LD_LIBRARY_PATH
14189 dynamic_linker=no
14191 esac
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14193 $as_echo "$dynamic_linker" >&6; }
14194 test "$dynamic_linker" = no && can_build_shared=no
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14198 hardcode_action_GCJ=
14199 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14200 test -n "$runpath_var_GCJ" || \
14201 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14203 # We can hardcode non-existant directories.
14204 if test "$hardcode_direct_GCJ" != no &&
14205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14206 # have to relink, otherwise we might link with an installed library
14207 # when we should be linking with a yet-to-be-installed one
14208 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14209 test "$hardcode_minus_L_GCJ" != no; then
14210 # Linking always hardcodes the temporary library directory.
14211 hardcode_action_GCJ=relink
14212 else
14213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14214 hardcode_action_GCJ=immediate
14216 else
14217 # We cannot hardcode anything, or else we can only hardcode existing
14218 # directories.
14219 hardcode_action_GCJ=unsupported
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
14222 $as_echo "$hardcode_action_GCJ" >&6; }
14224 if test "$hardcode_action_GCJ" = relink; then
14225 # Fast installation is not supported
14226 enable_fast_install=no
14227 elif test "$shlibpath_overrides_runpath" = yes ||
14228 test "$enable_shared" = no; then
14229 # Fast installation is not necessary
14230 enable_fast_install=needless
14233 striplib=
14234 old_striplib=
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14236 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14238 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14239 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14241 $as_echo "yes" >&6; }
14242 else
14243 # FIXME - insert some real tests, host_os isn't really good enough
14244 case $host_os in
14245 darwin*)
14246 if test -n "$STRIP" ; then
14247 striplib="$STRIP -x"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250 else
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 $as_echo "no" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14259 esac
14262 if test "x$enable_dlopen" != xyes; then
14263 enable_dlopen=unknown
14264 enable_dlopen_self=unknown
14265 enable_dlopen_self_static=unknown
14266 else
14267 lt_cv_dlopen=no
14268 lt_cv_dlopen_libs=
14270 case $host_os in
14271 beos*)
14272 lt_cv_dlopen="load_add_on"
14273 lt_cv_dlopen_libs=
14274 lt_cv_dlopen_self=yes
14277 mingw* | pw32*)
14278 lt_cv_dlopen="LoadLibrary"
14279 lt_cv_dlopen_libs=
14282 cygwin*)
14283 lt_cv_dlopen="dlopen"
14284 lt_cv_dlopen_libs=
14287 darwin*)
14288 # if libdl is installed we need to link against it
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 ac_check_lib_save_LIBS=$LIBS
14295 LIBS="-ldl $LIBS"
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char dlopen ();
14307 main ()
14309 return dlopen ();
14311 return 0;
14313 _ACEOF
14314 if ac_fn_c_try_link "$LINENO"; then :
14315 ac_cv_lib_dl_dlopen=yes
14316 else
14317 ac_cv_lib_dl_dlopen=no
14319 rm -f core conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext conftest.$ac_ext
14321 LIBS=$ac_check_lib_save_LIBS
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14325 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14327 else
14329 lt_cv_dlopen="dyld"
14330 lt_cv_dlopen_libs=
14331 lt_cv_dlopen_self=yes
14338 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14339 if test "x$ac_cv_func_shl_load" = x""yes; then :
14340 lt_cv_dlopen="shl_load"
14341 else
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14343 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-ldld $LIBS"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 char shl_load ();
14360 main ()
14362 return shl_load ();
14364 return 0;
14366 _ACEOF
14367 if ac_fn_c_try_link "$LINENO"; then :
14368 ac_cv_lib_dld_shl_load=yes
14369 else
14370 ac_cv_lib_dld_shl_load=no
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 LIBS=$ac_check_lib_save_LIBS
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14377 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14378 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14379 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14380 else
14381 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14382 if test "x$ac_cv_func_dlopen" = x""yes; then :
14383 lt_cv_dlopen="dlopen"
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14387 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 ac_check_lib_save_LIBS=$LIBS
14391 LIBS="-ldl $LIBS"
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char dlopen ();
14403 main ()
14405 return dlopen ();
14407 return 0;
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"; then :
14411 ac_cv_lib_dl_dlopen=yes
14412 else
14413 ac_cv_lib_dl_dlopen=no
14415 rm -f core conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14421 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14423 else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14425 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-lsvld $LIBS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply. */
14437 #ifdef __cplusplus
14438 extern "C"
14439 #endif
14440 char dlopen ();
14442 main ()
14444 return dlopen ();
14446 return 0;
14448 _ACEOF
14449 if ac_fn_c_try_link "$LINENO"; then :
14450 ac_cv_lib_svld_dlopen=yes
14451 else
14452 ac_cv_lib_svld_dlopen=no
14454 rm -f core conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14456 LIBS=$ac_check_lib_save_LIBS
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14459 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14460 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14464 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14465 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 ac_check_lib_save_LIBS=$LIBS
14469 LIBS="-ldld $LIBS"
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char dld_link ();
14481 main ()
14483 return dld_link ();
14485 return 0;
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14489 ac_cv_lib_dld_dld_link=yes
14490 else
14491 ac_cv_lib_dld_dld_link=no
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14495 LIBS=$ac_check_lib_save_LIBS
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14498 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14499 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14500 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14519 esac
14521 if test "x$lt_cv_dlopen" != xno; then
14522 enable_dlopen=yes
14523 else
14524 enable_dlopen=no
14527 case $lt_cv_dlopen in
14528 dlopen)
14529 save_CPPFLAGS="$CPPFLAGS"
14530 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14532 save_LDFLAGS="$LDFLAGS"
14533 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14535 save_LIBS="$LIBS"
14536 LIBS="$lt_cv_dlopen_libs $LIBS"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14539 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14540 if test "${lt_cv_dlopen_self+set}" = set; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 if test "$cross_compiling" = yes; then :
14544 lt_cv_dlopen_self=cross
14545 else
14546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14547 lt_status=$lt_dlunknown
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14549 "configure"
14550 #include "confdefs.h"
14552 #if HAVE_DLFCN_H
14553 #include <dlfcn.h>
14554 #endif
14556 #include <stdio.h>
14558 #ifdef RTLD_GLOBAL
14559 # define LT_DLGLOBAL RTLD_GLOBAL
14560 #else
14561 # ifdef DL_GLOBAL
14562 # define LT_DLGLOBAL DL_GLOBAL
14563 # else
14564 # define LT_DLGLOBAL 0
14565 # endif
14566 #endif
14568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569 find out it does not work in some platform. */
14570 #ifndef LT_DLLAZY_OR_NOW
14571 # ifdef RTLD_LAZY
14572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14573 # else
14574 # ifdef DL_LAZY
14575 # define LT_DLLAZY_OR_NOW DL_LAZY
14576 # else
14577 # ifdef RTLD_NOW
14578 # define LT_DLLAZY_OR_NOW RTLD_NOW
14579 # else
14580 # ifdef DL_NOW
14581 # define LT_DLLAZY_OR_NOW DL_NOW
14582 # else
14583 # define LT_DLLAZY_OR_NOW 0
14584 # endif
14585 # endif
14586 # endif
14587 # endif
14588 #endif
14590 #ifdef __cplusplus
14591 extern "C" void exit (int);
14592 #endif
14594 void fnord() { int i=42;}
14595 int main ()
14597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14598 int status = $lt_dlunknown;
14600 if (self)
14602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14603 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14604 /* dlclose (self); */
14607 exit (status);
14610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14611 (eval $ac_link) 2>&5
14612 ac_status=$?
14613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14615 (./conftest; exit; ) >&5 2>/dev/null
14616 lt_status=$?
14617 case x$lt_status in
14618 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14619 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14620 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14621 esac
14622 else :
14623 # compilation failed
14624 lt_cv_dlopen_self=no
14627 rm -fr conftest*
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14632 $as_echo "$lt_cv_dlopen_self" >&6; }
14634 if test "x$lt_cv_dlopen_self" = xyes; then
14635 LDFLAGS="$LDFLAGS $link_static_flag"
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14637 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14638 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 if test "$cross_compiling" = yes; then :
14642 lt_cv_dlopen_self_static=cross
14643 else
14644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14645 lt_status=$lt_dlunknown
14646 cat > conftest.$ac_ext <<EOF
14647 #line 14647 "configure"
14648 #include "confdefs.h"
14650 #if HAVE_DLFCN_H
14651 #include <dlfcn.h>
14652 #endif
14654 #include <stdio.h>
14656 #ifdef RTLD_GLOBAL
14657 # define LT_DLGLOBAL RTLD_GLOBAL
14658 #else
14659 # ifdef DL_GLOBAL
14660 # define LT_DLGLOBAL DL_GLOBAL
14661 # else
14662 # define LT_DLGLOBAL 0
14663 # endif
14664 #endif
14666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14667 find out it does not work in some platform. */
14668 #ifndef LT_DLLAZY_OR_NOW
14669 # ifdef RTLD_LAZY
14670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14671 # else
14672 # ifdef DL_LAZY
14673 # define LT_DLLAZY_OR_NOW DL_LAZY
14674 # else
14675 # ifdef RTLD_NOW
14676 # define LT_DLLAZY_OR_NOW RTLD_NOW
14677 # else
14678 # ifdef DL_NOW
14679 # define LT_DLLAZY_OR_NOW DL_NOW
14680 # else
14681 # define LT_DLLAZY_OR_NOW 0
14682 # endif
14683 # endif
14684 # endif
14685 # endif
14686 #endif
14688 #ifdef __cplusplus
14689 extern "C" void exit (int);
14690 #endif
14692 void fnord() { int i=42;}
14693 int main ()
14695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14696 int status = $lt_dlunknown;
14698 if (self)
14700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14701 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14702 /* dlclose (self); */
14705 exit (status);
14708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14709 (eval $ac_link) 2>&5
14710 ac_status=$?
14711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14713 (./conftest; exit; ) >&5 2>/dev/null
14714 lt_status=$?
14715 case x$lt_status in
14716 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14717 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14718 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14719 esac
14720 else :
14721 # compilation failed
14722 lt_cv_dlopen_self_static=no
14725 rm -fr conftest*
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14730 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14733 CPPFLAGS="$save_CPPFLAGS"
14734 LDFLAGS="$save_LDFLAGS"
14735 LIBS="$save_LIBS"
14737 esac
14739 case $lt_cv_dlopen_self in
14740 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14741 *) enable_dlopen_self=unknown ;;
14742 esac
14744 case $lt_cv_dlopen_self_static in
14745 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14746 *) enable_dlopen_self_static=unknown ;;
14747 esac
14751 # The else clause should only fire when bootstrapping the
14752 # libtool distribution, otherwise you forgot to ship ltmain.sh
14753 # with your package, and you will get complaints that there are
14754 # no rules to generate ltmain.sh.
14755 if test -f "$ltmain"; then
14756 # See if we are running on zsh, and set the options which allow our commands through
14757 # without removal of \ escapes.
14758 if test -n "${ZSH_VERSION+set}" ; then
14759 setopt NO_GLOB_SUBST
14761 # Now quote all the things that may contain metacharacters while being
14762 # careful not to overquote the AC_SUBSTed values. We take copies of the
14763 # variables and quote the copies for generation of the libtool script.
14764 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14765 SED SHELL STRIP \
14766 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14767 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14768 deplibs_check_method reload_flag reload_cmds need_locks \
14769 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14770 lt_cv_sys_global_symbol_to_c_name_address \
14771 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14772 old_postinstall_cmds old_postuninstall_cmds \
14773 compiler_GCJ \
14774 CC_GCJ \
14775 LD_GCJ \
14776 lt_prog_compiler_wl_GCJ \
14777 lt_prog_compiler_pic_GCJ \
14778 lt_prog_compiler_static_GCJ \
14779 lt_prog_compiler_no_builtin_flag_GCJ \
14780 export_dynamic_flag_spec_GCJ \
14781 thread_safe_flag_spec_GCJ \
14782 whole_archive_flag_spec_GCJ \
14783 enable_shared_with_static_runtimes_GCJ \
14784 old_archive_cmds_GCJ \
14785 old_archive_from_new_cmds_GCJ \
14786 predep_objects_GCJ \
14787 postdep_objects_GCJ \
14788 predeps_GCJ \
14789 postdeps_GCJ \
14790 compiler_lib_search_path_GCJ \
14791 archive_cmds_GCJ \
14792 archive_expsym_cmds_GCJ \
14793 postinstall_cmds_GCJ \
14794 postuninstall_cmds_GCJ \
14795 old_archive_from_expsyms_cmds_GCJ \
14796 allow_undefined_flag_GCJ \
14797 no_undefined_flag_GCJ \
14798 export_symbols_cmds_GCJ \
14799 hardcode_libdir_flag_spec_GCJ \
14800 hardcode_libdir_flag_spec_ld_GCJ \
14801 hardcode_libdir_separator_GCJ \
14802 hardcode_automatic_GCJ \
14803 module_cmds_GCJ \
14804 module_expsym_cmds_GCJ \
14805 lt_cv_prog_compiler_c_o_GCJ \
14806 exclude_expsyms_GCJ \
14807 include_expsyms_GCJ; do
14809 case $var in
14810 old_archive_cmds_GCJ | \
14811 old_archive_from_new_cmds_GCJ | \
14812 archive_cmds_GCJ | \
14813 archive_expsym_cmds_GCJ | \
14814 module_cmds_GCJ | \
14815 module_expsym_cmds_GCJ | \
14816 old_archive_from_expsyms_cmds_GCJ | \
14817 export_symbols_cmds_GCJ | \
14818 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14819 postinstall_cmds | postuninstall_cmds | \
14820 old_postinstall_cmds | old_postuninstall_cmds | \
14821 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14822 # Double-quote double-evaled strings.
14823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14828 esac
14829 done
14831 case $lt_echo in
14832 *'\$0 --fallback-echo"')
14833 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14835 esac
14837 cfgfile="$ofile"
14839 cat <<__EOF__ >> "$cfgfile"
14840 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14844 # Shell to use when invoking shell scripts.
14845 SHELL=$lt_SHELL
14847 # Whether or not to build shared libraries.
14848 build_libtool_libs=$enable_shared
14850 # Whether or not to build static libraries.
14851 build_old_libs=$enable_static
14853 # Whether or not to add -lc for building shared libraries.
14854 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14856 # Whether or not to disallow shared libs when runtime libs are static
14857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14859 # Whether or not to optimize for fast installation.
14860 fast_install=$enable_fast_install
14862 # The host system.
14863 host_alias=$host_alias
14864 host=$host
14865 host_os=$host_os
14867 # The build system.
14868 build_alias=$build_alias
14869 build=$build
14870 build_os=$build_os
14872 # An echo program that does not interpret backslashes.
14873 echo=$lt_echo
14875 # The archiver.
14876 AR=$lt_AR
14877 AR_FLAGS=$lt_AR_FLAGS
14879 # A C compiler.
14880 LTCC=$lt_LTCC
14882 # A language-specific compiler.
14883 CC=$lt_compiler_GCJ
14885 # Is the compiler the GNU C compiler?
14886 with_gcc=$GCC_GCJ
14888 # An ERE matcher.
14889 EGREP=$lt_EGREP
14891 # The linker used to build libraries.
14892 LD=$lt_LD_GCJ
14894 # Whether we need hard or soft links.
14895 LN_S=$lt_LN_S
14897 # A BSD-compatible nm program.
14898 NM=$lt_NM
14900 # A symbol stripping program
14901 STRIP=$lt_STRIP
14903 # Used to examine libraries when file_magic_cmd begins "file"
14904 MAGIC_CMD=$MAGIC_CMD
14906 # Used on cygwin: DLL creation program.
14907 DLLTOOL="$DLLTOOL"
14909 # Used on cygwin: object dumper.
14910 OBJDUMP="$OBJDUMP"
14912 # Used on cygwin: assembler.
14913 AS="$AS"
14915 # The name of the directory that contains temporary libtool files.
14916 objdir=$objdir
14918 # How to create reloadable object files.
14919 reload_flag=$lt_reload_flag
14920 reload_cmds=$lt_reload_cmds
14922 # How to pass a linker flag through the compiler.
14923 wl=$lt_lt_prog_compiler_wl_GCJ
14925 # Object file suffix (normally "o").
14926 objext="$ac_objext"
14928 # Old archive suffix (normally "a").
14929 libext="$libext"
14931 # Shared library suffix (normally ".so").
14932 shrext_cmds='$shrext_cmds'
14934 # Executable file suffix (normally "").
14935 exeext="$exeext"
14937 # Additional compiler flags for building library objects.
14938 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14939 pic_mode=$pic_mode
14941 # What is the maximum length of a command?
14942 max_cmd_len=$lt_cv_sys_max_cmd_len
14944 # Does compiler simultaneously support -c and -o options?
14945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14947 # Must we lock files when doing compilation?
14948 need_locks=$lt_need_locks
14950 # Do we need the lib prefix for modules?
14951 need_lib_prefix=$need_lib_prefix
14953 # Do we need a version for libraries?
14954 need_version=$need_version
14956 # Whether dlopen is supported.
14957 dlopen_support=$enable_dlopen
14959 # Whether dlopen of programs is supported.
14960 dlopen_self=$enable_dlopen_self
14962 # Whether dlopen of statically linked programs is supported.
14963 dlopen_self_static=$enable_dlopen_self_static
14965 # Compiler flag to prevent dynamic linking.
14966 link_static_flag=$lt_lt_prog_compiler_static_GCJ
14968 # Compiler flag to turn off builtin functions.
14969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
14971 # Compiler flag to allow reflexive dlopens.
14972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
14974 # Compiler flag to generate shared objects directly from archives.
14975 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
14977 # Compiler flag to generate thread-safe objects.
14978 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
14980 # Library versioning type.
14981 version_type=$version_type
14983 # Format of library name prefix.
14984 libname_spec=$lt_libname_spec
14986 # List of archive names. First name is the real one, the rest are links.
14987 # The last name is the one that the linker finds with -lNAME.
14988 library_names_spec=$lt_library_names_spec
14990 # The coded name of the library, if different from the real name.
14991 soname_spec=$lt_soname_spec
14993 # Commands used to build and install an old-style archive.
14994 RANLIB=$lt_RANLIB
14995 old_archive_cmds=$lt_old_archive_cmds_GCJ
14996 old_postinstall_cmds=$lt_old_postinstall_cmds
14997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14999 # Create an old-style archive from a shared archive.
15000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15002 # Create a temporary old-style archive to link instead of a shared archive.
15003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15005 # Commands used to build and install a shared archive.
15006 archive_cmds=$lt_archive_cmds_GCJ
15007 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15008 postinstall_cmds=$lt_postinstall_cmds
15009 postuninstall_cmds=$lt_postuninstall_cmds
15011 # Commands used to build a loadable module (assumed same as above if empty)
15012 module_cmds=$lt_module_cmds_GCJ
15013 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15015 # Commands to strip libraries.
15016 old_striplib=$lt_old_striplib
15017 striplib=$lt_striplib
15019 # Dependencies to place before the objects being linked to create a
15020 # shared library.
15021 predep_objects=$lt_predep_objects_GCJ
15023 # Dependencies to place after the objects being linked to create a
15024 # shared library.
15025 postdep_objects=$lt_postdep_objects_GCJ
15027 # Dependencies to place before the objects being linked to create a
15028 # shared library.
15029 predeps=$lt_predeps_GCJ
15031 # Dependencies to place after the objects being linked to create a
15032 # shared library.
15033 postdeps=$lt_postdeps_GCJ
15035 # The library search path used internally by the compiler when linking
15036 # a shared library.
15037 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15039 # Method to check whether dependent libraries are shared objects.
15040 deplibs_check_method=$lt_deplibs_check_method
15042 # Command to use when deplibs_check_method == file_magic.
15043 file_magic_cmd=$lt_file_magic_cmd
15045 # Flag that allows shared libraries with undefined symbols to be built.
15046 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15048 # Flag that forces no undefined symbols.
15049 no_undefined_flag=$lt_no_undefined_flag_GCJ
15051 # Commands used to finish a libtool library installation in a directory.
15052 finish_cmds=$lt_finish_cmds
15054 # Same as above, but a single script fragment to be evaled but not shown.
15055 finish_eval=$lt_finish_eval
15057 # Take the output of nm and produce a listing of raw symbols and C names.
15058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15060 # Transform the output of nm in a proper C declaration
15061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15063 # Transform the output of nm in a C name address pair
15064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15066 # This is the shared library runtime path variable.
15067 runpath_var=$runpath_var
15069 # This is the shared library path variable.
15070 shlibpath_var=$shlibpath_var
15072 # Is shlibpath searched before the hard-coded library search path?
15073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15075 # How to hardcode a shared library path into an executable.
15076 hardcode_action=$hardcode_action_GCJ
15078 # Whether we should hardcode library paths into libraries.
15079 hardcode_into_libs=$hardcode_into_libs
15081 # Flag to hardcode \$libdir into a binary during linking.
15082 # This must work even if \$libdir does not exist.
15083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15085 # If ld is used when linking, flag to hardcode \$libdir into
15086 # a binary during linking. This must work even if \$libdir does
15087 # not exist.
15088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15090 # Whether we need a single -rpath flag with a separated argument.
15091 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15093 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15094 # resulting binary.
15095 hardcode_direct=$hardcode_direct_GCJ
15097 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15098 # resulting binary.
15099 hardcode_minus_L=$hardcode_minus_L_GCJ
15101 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15102 # the resulting binary.
15103 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15105 # Set to yes if building a shared library automatically hardcodes DIR into the library
15106 # and all subsequent libraries and executables linked against it.
15107 hardcode_automatic=$hardcode_automatic_GCJ
15109 # Variables whose values should be saved in libtool wrapper scripts and
15110 # restored at relink time.
15111 variables_saved_for_relink="$variables_saved_for_relink"
15113 # Whether libtool must link a program against all its dependency libraries.
15114 link_all_deplibs=$link_all_deplibs_GCJ
15116 # Compile-time system search path for libraries
15117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15119 # Run-time system search path for libraries
15120 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15122 # Fix the shell variable \$srcfile for the compiler.
15123 fix_srcfile_path="$fix_srcfile_path_GCJ"
15125 # Set to yes if exported symbols are required.
15126 always_export_symbols=$always_export_symbols_GCJ
15128 # The commands to list exported symbols.
15129 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15131 # The commands to extract the exported symbol list from a shared archive.
15132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15134 # Symbols that should not be listed in the preloaded symbols.
15135 exclude_expsyms=$lt_exclude_expsyms_GCJ
15137 # Symbols that must always be exported.
15138 include_expsyms=$lt_include_expsyms_GCJ
15140 # ### END LIBTOOL TAG CONFIG: $tagname
15142 __EOF__
15145 else
15146 # If there is no Makefile yet, we rely on a make rule to execute
15147 # `config.status --recheck' to rerun these tests and create the
15148 # libtool script then.
15149 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15150 if test -f "$ltmain_in"; then
15151 test -f Makefile && make "$ltmain"
15156 ac_ext=c
15157 ac_cpp='$CPP $CPPFLAGS'
15158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15162 CC="$lt_save_CC"
15164 else
15165 tagname=""
15172 # Source file extension for RC test sources.
15173 ac_ext=rc
15175 # Object file extension for compiled RC test sources.
15176 objext=o
15177 objext_RC=$objext
15179 # Code to be used in simple compile tests
15180 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15182 # Code to be used in simple link tests
15183 lt_simple_link_test_code="$lt_simple_compile_test_code"
15185 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15187 # If no C compiler was specified, use CC.
15188 LTCC=${LTCC-"$CC"}
15190 # Allow CC to be a program name with arguments.
15191 compiler=$CC
15194 # save warnings/boilerplate of simple test code
15195 ac_outfile=conftest.$ac_objext
15196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15198 _lt_compiler_boilerplate=`cat conftest.err`
15199 $rm conftest*
15201 ac_outfile=conftest.$ac_objext
15202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15204 _lt_linker_boilerplate=`cat conftest.err`
15205 $rm conftest*
15208 # Allow CC to be a program name with arguments.
15209 lt_save_CC="$CC"
15210 CC=${RC-"windres"}
15211 compiler=$CC
15212 compiler_RC=$CC
15213 for cc_temp in $compiler""; do
15214 case $cc_temp in
15215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15217 \-*) ;;
15218 *) break;;
15219 esac
15220 done
15221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15223 lt_cv_prog_compiler_c_o_RC=yes
15225 # The else clause should only fire when bootstrapping the
15226 # libtool distribution, otherwise you forgot to ship ltmain.sh
15227 # with your package, and you will get complaints that there are
15228 # no rules to generate ltmain.sh.
15229 if test -f "$ltmain"; then
15230 # See if we are running on zsh, and set the options which allow our commands through
15231 # without removal of \ escapes.
15232 if test -n "${ZSH_VERSION+set}" ; then
15233 setopt NO_GLOB_SUBST
15235 # Now quote all the things that may contain metacharacters while being
15236 # careful not to overquote the AC_SUBSTed values. We take copies of the
15237 # variables and quote the copies for generation of the libtool script.
15238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15239 SED SHELL STRIP \
15240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15242 deplibs_check_method reload_flag reload_cmds need_locks \
15243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15244 lt_cv_sys_global_symbol_to_c_name_address \
15245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15246 old_postinstall_cmds old_postuninstall_cmds \
15247 compiler_RC \
15248 CC_RC \
15249 LD_RC \
15250 lt_prog_compiler_wl_RC \
15251 lt_prog_compiler_pic_RC \
15252 lt_prog_compiler_static_RC \
15253 lt_prog_compiler_no_builtin_flag_RC \
15254 export_dynamic_flag_spec_RC \
15255 thread_safe_flag_spec_RC \
15256 whole_archive_flag_spec_RC \
15257 enable_shared_with_static_runtimes_RC \
15258 old_archive_cmds_RC \
15259 old_archive_from_new_cmds_RC \
15260 predep_objects_RC \
15261 postdep_objects_RC \
15262 predeps_RC \
15263 postdeps_RC \
15264 compiler_lib_search_path_RC \
15265 archive_cmds_RC \
15266 archive_expsym_cmds_RC \
15267 postinstall_cmds_RC \
15268 postuninstall_cmds_RC \
15269 old_archive_from_expsyms_cmds_RC \
15270 allow_undefined_flag_RC \
15271 no_undefined_flag_RC \
15272 export_symbols_cmds_RC \
15273 hardcode_libdir_flag_spec_RC \
15274 hardcode_libdir_flag_spec_ld_RC \
15275 hardcode_libdir_separator_RC \
15276 hardcode_automatic_RC \
15277 module_cmds_RC \
15278 module_expsym_cmds_RC \
15279 lt_cv_prog_compiler_c_o_RC \
15280 exclude_expsyms_RC \
15281 include_expsyms_RC; do
15283 case $var in
15284 old_archive_cmds_RC | \
15285 old_archive_from_new_cmds_RC | \
15286 archive_cmds_RC | \
15287 archive_expsym_cmds_RC | \
15288 module_cmds_RC | \
15289 module_expsym_cmds_RC | \
15290 old_archive_from_expsyms_cmds_RC | \
15291 export_symbols_cmds_RC | \
15292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15293 postinstall_cmds | postuninstall_cmds | \
15294 old_postinstall_cmds | old_postuninstall_cmds | \
15295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15296 # Double-quote double-evaled strings.
15297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15302 esac
15303 done
15305 case $lt_echo in
15306 *'\$0 --fallback-echo"')
15307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15309 esac
15311 cfgfile="$ofile"
15313 cat <<__EOF__ >> "$cfgfile"
15314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15318 # Shell to use when invoking shell scripts.
15319 SHELL=$lt_SHELL
15321 # Whether or not to build shared libraries.
15322 build_libtool_libs=$enable_shared
15324 # Whether or not to build static libraries.
15325 build_old_libs=$enable_static
15327 # Whether or not to add -lc for building shared libraries.
15328 build_libtool_need_lc=$archive_cmds_need_lc_RC
15330 # Whether or not to disallow shared libs when runtime libs are static
15331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15333 # Whether or not to optimize for fast installation.
15334 fast_install=$enable_fast_install
15336 # The host system.
15337 host_alias=$host_alias
15338 host=$host
15339 host_os=$host_os
15341 # The build system.
15342 build_alias=$build_alias
15343 build=$build
15344 build_os=$build_os
15346 # An echo program that does not interpret backslashes.
15347 echo=$lt_echo
15349 # The archiver.
15350 AR=$lt_AR
15351 AR_FLAGS=$lt_AR_FLAGS
15353 # A C compiler.
15354 LTCC=$lt_LTCC
15356 # A language-specific compiler.
15357 CC=$lt_compiler_RC
15359 # Is the compiler the GNU C compiler?
15360 with_gcc=$GCC_RC
15362 # An ERE matcher.
15363 EGREP=$lt_EGREP
15365 # The linker used to build libraries.
15366 LD=$lt_LD_RC
15368 # Whether we need hard or soft links.
15369 LN_S=$lt_LN_S
15371 # A BSD-compatible nm program.
15372 NM=$lt_NM
15374 # A symbol stripping program
15375 STRIP=$lt_STRIP
15377 # Used to examine libraries when file_magic_cmd begins "file"
15378 MAGIC_CMD=$MAGIC_CMD
15380 # Used on cygwin: DLL creation program.
15381 DLLTOOL="$DLLTOOL"
15383 # Used on cygwin: object dumper.
15384 OBJDUMP="$OBJDUMP"
15386 # Used on cygwin: assembler.
15387 AS="$AS"
15389 # The name of the directory that contains temporary libtool files.
15390 objdir=$objdir
15392 # How to create reloadable object files.
15393 reload_flag=$lt_reload_flag
15394 reload_cmds=$lt_reload_cmds
15396 # How to pass a linker flag through the compiler.
15397 wl=$lt_lt_prog_compiler_wl_RC
15399 # Object file suffix (normally "o").
15400 objext="$ac_objext"
15402 # Old archive suffix (normally "a").
15403 libext="$libext"
15405 # Shared library suffix (normally ".so").
15406 shrext_cmds='$shrext_cmds'
15408 # Executable file suffix (normally "").
15409 exeext="$exeext"
15411 # Additional compiler flags for building library objects.
15412 pic_flag=$lt_lt_prog_compiler_pic_RC
15413 pic_mode=$pic_mode
15415 # What is the maximum length of a command?
15416 max_cmd_len=$lt_cv_sys_max_cmd_len
15418 # Does compiler simultaneously support -c and -o options?
15419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15421 # Must we lock files when doing compilation?
15422 need_locks=$lt_need_locks
15424 # Do we need the lib prefix for modules?
15425 need_lib_prefix=$need_lib_prefix
15427 # Do we need a version for libraries?
15428 need_version=$need_version
15430 # Whether dlopen is supported.
15431 dlopen_support=$enable_dlopen
15433 # Whether dlopen of programs is supported.
15434 dlopen_self=$enable_dlopen_self
15436 # Whether dlopen of statically linked programs is supported.
15437 dlopen_self_static=$enable_dlopen_self_static
15439 # Compiler flag to prevent dynamic linking.
15440 link_static_flag=$lt_lt_prog_compiler_static_RC
15442 # Compiler flag to turn off builtin functions.
15443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15445 # Compiler flag to allow reflexive dlopens.
15446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15448 # Compiler flag to generate shared objects directly from archives.
15449 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15451 # Compiler flag to generate thread-safe objects.
15452 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15454 # Library versioning type.
15455 version_type=$version_type
15457 # Format of library name prefix.
15458 libname_spec=$lt_libname_spec
15460 # List of archive names. First name is the real one, the rest are links.
15461 # The last name is the one that the linker finds with -lNAME.
15462 library_names_spec=$lt_library_names_spec
15464 # The coded name of the library, if different from the real name.
15465 soname_spec=$lt_soname_spec
15467 # Commands used to build and install an old-style archive.
15468 RANLIB=$lt_RANLIB
15469 old_archive_cmds=$lt_old_archive_cmds_RC
15470 old_postinstall_cmds=$lt_old_postinstall_cmds
15471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15473 # Create an old-style archive from a shared archive.
15474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15476 # Create a temporary old-style archive to link instead of a shared archive.
15477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15479 # Commands used to build and install a shared archive.
15480 archive_cmds=$lt_archive_cmds_RC
15481 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15482 postinstall_cmds=$lt_postinstall_cmds
15483 postuninstall_cmds=$lt_postuninstall_cmds
15485 # Commands used to build a loadable module (assumed same as above if empty)
15486 module_cmds=$lt_module_cmds_RC
15487 module_expsym_cmds=$lt_module_expsym_cmds_RC
15489 # Commands to strip libraries.
15490 old_striplib=$lt_old_striplib
15491 striplib=$lt_striplib
15493 # Dependencies to place before the objects being linked to create a
15494 # shared library.
15495 predep_objects=$lt_predep_objects_RC
15497 # Dependencies to place after the objects being linked to create a
15498 # shared library.
15499 postdep_objects=$lt_postdep_objects_RC
15501 # Dependencies to place before the objects being linked to create a
15502 # shared library.
15503 predeps=$lt_predeps_RC
15505 # Dependencies to place after the objects being linked to create a
15506 # shared library.
15507 postdeps=$lt_postdeps_RC
15509 # The library search path used internally by the compiler when linking
15510 # a shared library.
15511 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15513 # Method to check whether dependent libraries are shared objects.
15514 deplibs_check_method=$lt_deplibs_check_method
15516 # Command to use when deplibs_check_method == file_magic.
15517 file_magic_cmd=$lt_file_magic_cmd
15519 # Flag that allows shared libraries with undefined symbols to be built.
15520 allow_undefined_flag=$lt_allow_undefined_flag_RC
15522 # Flag that forces no undefined symbols.
15523 no_undefined_flag=$lt_no_undefined_flag_RC
15525 # Commands used to finish a libtool library installation in a directory.
15526 finish_cmds=$lt_finish_cmds
15528 # Same as above, but a single script fragment to be evaled but not shown.
15529 finish_eval=$lt_finish_eval
15531 # Take the output of nm and produce a listing of raw symbols and C names.
15532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15534 # Transform the output of nm in a proper C declaration
15535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15537 # Transform the output of nm in a C name address pair
15538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15540 # This is the shared library runtime path variable.
15541 runpath_var=$runpath_var
15543 # This is the shared library path variable.
15544 shlibpath_var=$shlibpath_var
15546 # Is shlibpath searched before the hard-coded library search path?
15547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15549 # How to hardcode a shared library path into an executable.
15550 hardcode_action=$hardcode_action_RC
15552 # Whether we should hardcode library paths into libraries.
15553 hardcode_into_libs=$hardcode_into_libs
15555 # Flag to hardcode \$libdir into a binary during linking.
15556 # This must work even if \$libdir does not exist.
15557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15559 # If ld is used when linking, flag to hardcode \$libdir into
15560 # a binary during linking. This must work even if \$libdir does
15561 # not exist.
15562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15564 # Whether we need a single -rpath flag with a separated argument.
15565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15568 # resulting binary.
15569 hardcode_direct=$hardcode_direct_RC
15571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15572 # resulting binary.
15573 hardcode_minus_L=$hardcode_minus_L_RC
15575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15576 # the resulting binary.
15577 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15579 # Set to yes if building a shared library automatically hardcodes DIR into the library
15580 # and all subsequent libraries and executables linked against it.
15581 hardcode_automatic=$hardcode_automatic_RC
15583 # Variables whose values should be saved in libtool wrapper scripts and
15584 # restored at relink time.
15585 variables_saved_for_relink="$variables_saved_for_relink"
15587 # Whether libtool must link a program against all its dependency libraries.
15588 link_all_deplibs=$link_all_deplibs_RC
15590 # Compile-time system search path for libraries
15591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15593 # Run-time system search path for libraries
15594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15596 # Fix the shell variable \$srcfile for the compiler.
15597 fix_srcfile_path="$fix_srcfile_path_RC"
15599 # Set to yes if exported symbols are required.
15600 always_export_symbols=$always_export_symbols_RC
15602 # The commands to list exported symbols.
15603 export_symbols_cmds=$lt_export_symbols_cmds_RC
15605 # The commands to extract the exported symbol list from a shared archive.
15606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15608 # Symbols that should not be listed in the preloaded symbols.
15609 exclude_expsyms=$lt_exclude_expsyms_RC
15611 # Symbols that must always be exported.
15612 include_expsyms=$lt_include_expsyms_RC
15614 # ### END LIBTOOL TAG CONFIG: $tagname
15616 __EOF__
15619 else
15620 # If there is no Makefile yet, we rely on a make rule to execute
15621 # `config.status --recheck' to rerun these tests and create the
15622 # libtool script then.
15623 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15624 if test -f "$ltmain_in"; then
15625 test -f Makefile && make "$ltmain"
15630 ac_ext=c
15631 ac_cpp='$CPP $CPPFLAGS'
15632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15636 CC="$lt_save_CC"
15641 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
15643 esac
15645 # Append the new tag name to the list of available tags.
15646 if test -n "$tagname" ; then
15647 available_tags="$available_tags $tagname"
15650 done
15651 IFS="$lt_save_ifs"
15653 # Now substitute the updated list of available tags.
15654 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15655 mv "${ofile}T" "$ofile"
15656 chmod +x "$ofile"
15657 else
15658 rm -f "${ofile}T"
15659 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
15665 # This can be used to rebuild libtool when needed
15666 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15668 # Always use our own libtool.
15669 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15671 # Prevent multiple expansion
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
15683 $as_echo_n "checking for directory path separator... " >&6; }
15684 if test "${ac_cv_dir_sep+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15686 else
15688 case "$ac_cv_dir_sep" in
15690 case "$target_os" in
15691 *djgpp | *mingw32* | *emx*) ac_cv_dir_sep="'\\'" ;;
15692 *) ac_cv_dir_sep="'/'" ;;
15693 esac
15695 esac
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dir_sep" >&5
15699 $as_echo "$ac_cv_dir_sep" >&6; }
15701 cat >>confdefs.h <<_ACEOF
15702 #define DIR_SEP $ac_cv_dir_sep
15703 _ACEOF
15706 # Checks for libraries.
15708 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
15709 if test "x$ac_cv_func_gethostent" = x""yes; then :
15711 else
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
15713 $as_echo_n "checking for library containing gethostent... " >&6; }
15714 if test "${ac_cv_search_gethostent+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15716 else
15717 ac_func_search_save_LIBS=$LIBS
15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15724 #ifdef __cplusplus
15725 extern "C"
15726 #endif
15727 char gethostent ();
15729 main ()
15731 return gethostent ();
15733 return 0;
15735 _ACEOF
15736 for ac_lib in '' nsl; do
15737 if test -z "$ac_lib"; then
15738 ac_res="none required"
15739 else
15740 ac_res=-l$ac_lib
15741 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15743 if ac_fn_c_try_link "$LINENO"; then :
15744 ac_cv_search_gethostent=$ac_res
15746 rm -f core conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext
15748 if test "${ac_cv_search_gethostent+set}" = set; then :
15749 break
15751 done
15752 if test "${ac_cv_search_gethostent+set}" = set; then :
15754 else
15755 ac_cv_search_gethostent=no
15757 rm conftest.$ac_ext
15758 LIBS=$ac_func_search_save_LIBS
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
15761 $as_echo "$ac_cv_search_gethostent" >&6; }
15762 ac_res=$ac_cv_search_gethostent
15763 if test "$ac_res" != no; then :
15764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15770 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
15771 if test "x$ac_cv_func_openlog" = x""yes; then :
15773 else
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15775 $as_echo_n "checking for library containing openlog... " >&6; }
15776 if test "${ac_cv_search_openlog+set}" = set; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 ac_func_search_save_LIBS=$LIBS
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15783 /* Override any GCC internal prototype to avoid an error.
15784 Use char because int might match the return type of a GCC
15785 builtin and then its argument prototype would still apply. */
15786 #ifdef __cplusplus
15787 extern "C"
15788 #endif
15789 char openlog ();
15791 main ()
15793 return openlog ();
15795 return 0;
15797 _ACEOF
15798 for ac_lib in '' gen; do
15799 if test -z "$ac_lib"; then
15800 ac_res="none required"
15801 else
15802 ac_res=-l$ac_lib
15803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15805 if ac_fn_c_try_link "$LINENO"; then :
15806 ac_cv_search_openlog=$ac_res
15808 rm -f core conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext
15810 if test "${ac_cv_search_openlog+set}" = set; then :
15811 break
15813 done
15814 if test "${ac_cv_search_openlog+set}" = set; then :
15816 else
15817 ac_cv_search_openlog=no
15819 rm conftest.$ac_ext
15820 LIBS=$ac_func_search_save_LIBS
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15823 $as_echo "$ac_cv_search_openlog" >&6; }
15824 ac_res=$ac_cv_search_openlog
15825 if test "$ac_res" != no; then :
15826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15828 else
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
15830 $as_echo_n "checking for library containing openlog... " >&6; }
15831 if test "${ac_cv_search_openlog+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 ac_func_search_save_LIBS=$LIBS
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 char openlog ();
15846 main ()
15848 return openlog ();
15850 return 0;
15852 _ACEOF
15853 for ac_lib in '' syslog; do
15854 if test -z "$ac_lib"; then
15855 ac_res="none required"
15856 else
15857 ac_res=-l$ac_lib
15858 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
15860 if ac_fn_c_try_link "$LINENO"; then :
15861 ac_cv_search_openlog=$ac_res
15863 rm -f core conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext
15865 if test "${ac_cv_search_openlog+set}" = set; then :
15866 break
15868 done
15869 if test "${ac_cv_search_openlog+set}" = set; then :
15871 else
15872 ac_cv_search_openlog=no
15874 rm conftest.$ac_ext
15875 LIBS=$ac_func_search_save_LIBS
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
15878 $as_echo "$ac_cv_search_openlog" >&6; }
15879 ac_res=$ac_cv_search_openlog
15880 if test "$ac_res" != no; then :
15881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15891 $as_echo_n "checking for library containing setsockopt... " >&6; }
15892 if test "${ac_cv_search_setsockopt+set}" = set; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 ac_func_search_save_LIBS=$LIBS
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15899 /* Override any GCC internal prototype to avoid an error.
15900 Use char because int might match the return type of a GCC
15901 builtin and then its argument prototype would still apply. */
15902 #ifdef __cplusplus
15903 extern "C"
15904 #endif
15905 char setsockopt ();
15907 main ()
15909 return setsockopt ();
15911 return 0;
15913 _ACEOF
15914 for ac_lib in '' socket xnet; do
15915 if test -z "$ac_lib"; then
15916 ac_res="none required"
15917 else
15918 ac_res=-l$ac_lib
15919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15921 if ac_fn_c_try_link "$LINENO"; then :
15922 ac_cv_search_setsockopt=$ac_res
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext
15926 if test "${ac_cv_search_setsockopt+set}" = set; then :
15927 break
15929 done
15930 if test "${ac_cv_search_setsockopt+set}" = set; then :
15932 else
15933 ac_cv_search_setsockopt=no
15935 rm conftest.$ac_ext
15936 LIBS=$ac_func_search_save_LIBS
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
15939 $as_echo "$ac_cv_search_setsockopt" >&6; }
15940 ac_res=$ac_cv_search_setsockopt
15941 if test "$ac_res" != no; then :
15942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15947 # Checks for header files.
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15949 $as_echo_n "checking for ANSI C header files... " >&6; }
15950 if test "${ac_cv_header_stdc+set}" = set; then :
15951 $as_echo_n "(cached) " >&6
15952 else
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 #include <stdlib.h>
15956 #include <stdarg.h>
15957 #include <string.h>
15958 #include <float.h>
15961 main ()
15965 return 0;
15967 _ACEOF
15968 if ac_fn_c_try_compile "$LINENO"; then :
15969 ac_cv_header_stdc=yes
15970 else
15971 ac_cv_header_stdc=no
15973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 if test $ac_cv_header_stdc = yes; then
15976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #include <string.h>
15981 _ACEOF
15982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15983 $EGREP "memchr" >/dev/null 2>&1; then :
15985 else
15986 ac_cv_header_stdc=no
15988 rm -f conftest*
15992 if test $ac_cv_header_stdc = yes; then
15993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 #include <stdlib.h>
15998 _ACEOF
15999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16000 $EGREP "free" >/dev/null 2>&1; then :
16002 else
16003 ac_cv_header_stdc=no
16005 rm -f conftest*
16009 if test $ac_cv_header_stdc = yes; then
16010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16011 if test "$cross_compiling" = yes; then :
16013 else
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016 #include <ctype.h>
16017 #include <stdlib.h>
16018 #if ((' ' & 0x0FF) == 0x020)
16019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16021 #else
16022 # define ISLOWER(c) \
16023 (('a' <= (c) && (c) <= 'i') \
16024 || ('j' <= (c) && (c) <= 'r') \
16025 || ('s' <= (c) && (c) <= 'z'))
16026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16027 #endif
16029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16031 main ()
16033 int i;
16034 for (i = 0; i < 256; i++)
16035 if (XOR (islower (i), ISLOWER (i))
16036 || toupper (i) != TOUPPER (i))
16037 return 2;
16038 return 0;
16040 _ACEOF
16041 if ac_fn_c_try_run "$LINENO"; then :
16043 else
16044 ac_cv_header_stdc=no
16046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16047 conftest.$ac_objext conftest.beam conftest.$ac_ext
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16053 $as_echo "$ac_cv_header_stdc" >&6; }
16054 if test $ac_cv_header_stdc = yes; then
16056 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16060 for ac_header in netdb.h netinet/in.h stdlib.h string.h strings.h syslog.h
16061 do :
16062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16063 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16064 eval as_val=\$$as_ac_Header
16065 if test "x$as_val" = x""yes; then :
16066 cat >>confdefs.h <<_ACEOF
16067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16068 _ACEOF
16072 done
16074 for ac_header in sys/socket.h sys/time.h
16075 do :
16076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16078 eval as_val=\$$as_ac_Header
16079 if test "x$as_val" = x""yes; then :
16080 cat >>confdefs.h <<_ACEOF
16081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 _ACEOF
16086 done
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16089 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16090 if test "${ac_cv_header_time+set}" = set; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16095 #include <sys/types.h>
16096 #include <sys/time.h>
16097 #include <time.h>
16100 main ()
16102 if ((struct tm *) 0)
16103 return 0;
16105 return 0;
16107 _ACEOF
16108 if ac_fn_c_try_compile "$LINENO"; then :
16109 ac_cv_header_time=yes
16110 else
16111 ac_cv_header_time=no
16113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16116 $as_echo "$ac_cv_header_time" >&6; }
16117 if test $ac_cv_header_time = yes; then
16119 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16124 # Checks for typedefs, structures, and compiler characteristics.
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16126 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16127 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16128 $as_echo_n "(cached) " >&6
16129 else
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16133 #include <stdbool.h>
16134 #ifndef bool
16135 "error: bool is not defined"
16136 #endif
16137 #ifndef false
16138 "error: false is not defined"
16139 #endif
16140 #if false
16141 "error: false is not 0"
16142 #endif
16143 #ifndef true
16144 "error: true is not defined"
16145 #endif
16146 #if true != 1
16147 "error: true is not 1"
16148 #endif
16149 #ifndef __bool_true_false_are_defined
16150 "error: __bool_true_false_are_defined is not defined"
16151 #endif
16153 struct s { _Bool s: 1; _Bool t; } s;
16155 char a[true == 1 ? 1 : -1];
16156 char b[false == 0 ? 1 : -1];
16157 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16158 char d[(bool) 0.5 == true ? 1 : -1];
16159 bool e = &s;
16160 char f[(_Bool) 0.0 == false ? 1 : -1];
16161 char g[true];
16162 char h[sizeof (_Bool)];
16163 char i[sizeof s.t];
16164 enum { j = false, k = true, l = false * true, m = true * 256 };
16165 /* The following fails for
16166 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16167 _Bool n[m];
16168 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16169 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16170 # if defined __xlc__ || defined __GNUC__
16171 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16172 reported by James Lemley on 2005-10-05; see
16173 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16174 This test is not quite right, since xlc is allowed to
16175 reject this program, as the initializer for xlcbug is
16176 not one of the forms that C requires support for.
16177 However, doing the test right would require a runtime
16178 test, and that would make cross-compilation harder.
16179 Let us hope that IBM fixes the xlc bug, and also adds
16180 support for this kind of constant expression. In the
16181 meantime, this test will reject xlc, which is OK, since
16182 our stdbool.h substitute should suffice. We also test
16183 this with GCC, where it should work, to detect more
16184 quickly whether someone messes up the test in the
16185 future. */
16186 char digs[] = "0123456789";
16187 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16188 # endif
16189 /* Catch a bug in an HP-UX C compiler. See
16190 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16191 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16193 _Bool q = true;
16194 _Bool *pq = &q;
16197 main ()
16200 *pq |= q;
16201 *pq |= ! q;
16202 /* Refer to every declared value, to avoid compiler optimizations. */
16203 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16204 + !m + !n + !o + !p + !q + !pq);
16207 return 0;
16209 _ACEOF
16210 if ac_fn_c_try_compile "$LINENO"; then :
16211 ac_cv_header_stdbool_h=yes
16212 else
16213 ac_cv_header_stdbool_h=no
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16218 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16219 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16220 if test "x$ac_cv_type__Bool" = x""yes; then :
16222 cat >>confdefs.h <<_ACEOF
16223 #define HAVE__BOOL 1
16224 _ACEOF
16229 if test $ac_cv_header_stdbool_h = yes; then
16231 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16236 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16237 if test "${ac_cv_c_const+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16244 main ()
16246 /* FIXME: Include the comments suggested by Paul. */
16247 #ifndef __cplusplus
16248 /* Ultrix mips cc rejects this. */
16249 typedef int charset[2];
16250 const charset cs;
16251 /* SunOS 4.1.1 cc rejects this. */
16252 char const *const *pcpcc;
16253 char **ppc;
16254 /* NEC SVR4.0.2 mips cc rejects this. */
16255 struct point {int x, y;};
16256 static struct point const zero = {0,0};
16257 /* AIX XL C 1.02.0.0 rejects this.
16258 It does not let you subtract one const X* pointer from another in
16259 an arm of an if-expression whose if-part is not a constant
16260 expression */
16261 const char *g = "string";
16262 pcpcc = &g + (g ? g-g : 0);
16263 /* HPUX 7.0 cc rejects these. */
16264 ++pcpcc;
16265 ppc = (char**) pcpcc;
16266 pcpcc = (char const *const *) ppc;
16267 { /* SCO 3.2v4 cc rejects this. */
16268 char *t;
16269 char const *s = 0 ? (char *) 0 : (char const *) 0;
16271 *t++ = 0;
16272 if (s) return 0;
16274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16275 int x[] = {25, 17};
16276 const int *foo = &x[0];
16277 ++foo;
16279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16280 typedef const int *iptr;
16281 iptr p = 0;
16282 ++p;
16284 { /* AIX XL C 1.02.0.0 rejects this saying
16285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16286 struct s { int j; const int *ap[3]; };
16287 struct s *b; b->j = 5;
16289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16290 const int foo = 10;
16291 if (!foo) return 0;
16293 return !cs[0] && !zero.x;
16294 #endif
16297 return 0;
16299 _ACEOF
16300 if ac_fn_c_try_compile "$LINENO"; then :
16301 ac_cv_c_const=yes
16302 else
16303 ac_cv_c_const=no
16305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16308 $as_echo "$ac_cv_c_const" >&6; }
16309 if test $ac_cv_c_const = no; then
16311 $as_echo "#define const /**/" >>confdefs.h
16315 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16316 if test "x$ac_cv_type_size_t" = x""yes; then :
16318 else
16320 cat >>confdefs.h <<_ACEOF
16321 #define size_t unsigned int
16322 _ACEOF
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16328 $as_echo_n "checking for inline... " >&6; }
16329 if test "${ac_cv_c_inline+set}" = set; then :
16330 $as_echo_n "(cached) " >&6
16331 else
16332 ac_cv_c_inline=no
16333 for ac_kw in inline __inline__ __inline; do
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #ifndef __cplusplus
16337 typedef int foo_t;
16338 static $ac_kw foo_t static_foo () {return 0; }
16339 $ac_kw foo_t foo () {return 0; }
16340 #endif
16342 _ACEOF
16343 if ac_fn_c_try_compile "$LINENO"; then :
16344 ac_cv_c_inline=$ac_kw
16346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16347 test "$ac_cv_c_inline" != no && break
16348 done
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16352 $as_echo "$ac_cv_c_inline" >&6; }
16354 case $ac_cv_c_inline in
16355 inline | yes) ;;
16357 case $ac_cv_c_inline in
16358 no) ac_val=;;
16359 *) ac_val=$ac_cv_c_inline;;
16360 esac
16361 cat >>confdefs.h <<_ACEOF
16362 #ifndef __cplusplus
16363 #define inline $ac_val
16364 #endif
16365 _ACEOF
16367 esac
16370 case "$ac_cv_c_inline" in
16375 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
16378 esac
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
16381 $as_echo_n "checking whether char is unsigned... " >&6; }
16382 if test "${ac_cv_c_char_unsigned+set}" = set; then :
16383 $as_echo_n "(cached) " >&6
16384 else
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 $ac_includes_default
16389 main ()
16391 static int test_array [1 - 2 * !(((char) -1) < 0)];
16392 test_array [0] = 0
16395 return 0;
16397 _ACEOF
16398 if ac_fn_c_try_compile "$LINENO"; then :
16399 ac_cv_c_char_unsigned=no
16400 else
16401 ac_cv_c_char_unsigned=yes
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
16406 $as_echo "$ac_cv_c_char_unsigned" >&6; }
16407 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
16408 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
16411 # The cast to long int works around a bug in the HP C Compiler
16412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16414 # This bug is HP SR number 8606223364.
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
16416 $as_echo_n "checking size of signed char... " >&6; }
16417 if test "${ac_cv_sizeof_signed_char+set}" = set; then :
16418 $as_echo_n "(cached) " >&6
16419 else
16420 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
16422 else
16423 if test "$ac_cv_type_signed_char" = yes; then
16424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16426 { as_fn_set_status 77
16427 as_fn_error "cannot compute sizeof (signed char)
16428 See \`config.log' for more details." "$LINENO" 5; }; }
16429 else
16430 ac_cv_sizeof_signed_char=0
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
16436 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
16440 cat >>confdefs.h <<_ACEOF
16441 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
16442 _ACEOF
16445 # The cast to long int works around a bug in the HP C Compiler
16446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16448 # This bug is HP SR number 8606223364.
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16450 $as_echo_n "checking size of int... " >&6; }
16451 if test "${ac_cv_sizeof_int+set}" = set; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16456 else
16457 if test "$ac_cv_type_int" = yes; then
16458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16460 { as_fn_set_status 77
16461 as_fn_error "cannot compute sizeof (int)
16462 See \`config.log' for more details." "$LINENO" 5; }; }
16463 else
16464 ac_cv_sizeof_int=0
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16470 $as_echo "$ac_cv_sizeof_int" >&6; }
16474 cat >>confdefs.h <<_ACEOF
16475 #define SIZEOF_INT $ac_cv_sizeof_int
16476 _ACEOF
16479 # The cast to long int works around a bug in the HP C Compiler
16480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16482 # This bug is HP SR number 8606223364.
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16484 $as_echo_n "checking size of long... " >&6; }
16485 if test "${ac_cv_sizeof_long+set}" = set; then :
16486 $as_echo_n "(cached) " >&6
16487 else
16488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16490 else
16491 if test "$ac_cv_type_long" = yes; then
16492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16494 { as_fn_set_status 77
16495 as_fn_error "cannot compute sizeof (long)
16496 See \`config.log' for more details." "$LINENO" 5; }; }
16497 else
16498 ac_cv_sizeof_long=0
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16504 $as_echo "$ac_cv_sizeof_long" >&6; }
16508 cat >>confdefs.h <<_ACEOF
16509 #define SIZEOF_LONG $ac_cv_sizeof_long
16510 _ACEOF
16514 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
16515 if test "x$ac_cv_type_s_char" = x""yes; then :
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_S_CHAR 1
16519 _ACEOF
16524 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
16525 *yes)
16526 # We have a typedef for s_char. Might as well believe it...
16528 no0no)
16529 # We have signed chars, can't say 'signed char', no s_char typedef.
16531 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16534 no1no)
16535 # We have signed chars, can say 'signed char', no s_char typedef.
16536 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16539 yes0no)
16540 # We have unsigned chars, can't say 'signed char', no s_char typedef.
16541 as_fn_error "No way to specify a signed character!" "$LINENO" 5
16543 yes1no)
16544 # We have unsigned chars, can say 'signed char', no s_char typedef.
16545 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
16548 esac
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16550 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16551 if test "${ac_cv_type_uid_t+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16558 _ACEOF
16559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16560 $EGREP "uid_t" >/dev/null 2>&1; then :
16561 ac_cv_type_uid_t=yes
16562 else
16563 ac_cv_type_uid_t=no
16565 rm -f conftest*
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16569 $as_echo "$ac_cv_type_uid_t" >&6; }
16570 if test $ac_cv_type_uid_t = no; then
16572 $as_echo "#define uid_t int" >>confdefs.h
16575 $as_echo "#define gid_t int" >>confdefs.h
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
16581 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
16582 if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
16586 $as_echo_n "(cached) " >&6
16587 else
16588 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
16589 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 #ifdef HAVE_SYS_TYPES_H
16593 #include <sys/types.h>
16594 #endif
16595 #ifdef HAVE_SYS_SOCKET_H
16596 #include <sys/socket.h>
16597 #endif
16598 extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
16600 main ()
16604 return 0;
16606 _ACEOF
16607 if ac_fn_c_try_compile "$LINENO"; then :
16608 ac_not_found=no ; break 2
16609 else
16610 ac_not_found=yes
16612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16613 done
16614 done
16619 if test "$ac_not_found" = yes; then
16620 ac_cv_func_getsockname_socklen_type='socklen_t'
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
16623 $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
16625 cat >>confdefs.h <<_ACEOF
16626 #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
16627 _ACEOF
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
16631 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16632 if test "${ntp_cv_sockaddr_storage+set}" = set; then :
16633 $as_echo_n "(cached) " >&6
16634 else
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16639 #ifdef HAVE_SYS_TYPES_H
16640 # include <sys/types.h>
16641 #endif
16642 #ifdef HAVE_SYS_SOCKET_H
16643 # include <sys/socket.h>
16644 #endif
16645 #ifdef HAVE_NETINET_IN_H
16646 # include <netinet/in.h>
16647 #endif
16650 main ()
16653 struct sockaddr_storage n;
16656 return 0;
16658 _ACEOF
16659 if ac_fn_c_try_compile "$LINENO"; then :
16660 ntp_cv_sockaddr_storage="yes"
16661 else
16662 ntp_cv_sockaddr_storage="no"
16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
16670 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
16671 case "$ntp_cv_sockaddr_storage" in
16672 yes)
16674 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16676 esac
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_family" >&5
16679 $as_echo_n "checking for sockaddr_storage.ss_family... " >&6; }
16680 if test "${ntp_cv_have_ss_family+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16687 #ifdef HAVE_SYS_TYPES_H
16688 # include <sys/types.h>
16689 #endif
16690 #ifdef HAVE_SYS_SOCKET_H
16691 # include <sys/socket.h>
16692 #endif
16693 #ifdef HAVE_NETINET_IN_H
16694 # include <netinet/in.h>
16695 #endif
16698 main ()
16701 struct sockaddr_storage s;
16702 s.ss_family = 1;
16705 return 0;
16707 _ACEOF
16708 if ac_fn_c_try_compile "$LINENO"; then :
16709 ntp_cv_have_ss_family="yes"
16710 else
16711 ntp_cv_have_ss_family="no"
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_family" >&5
16719 $as_echo "$ntp_cv_have_ss_family" >&6; }
16721 case "$ntp_cv_have_ss_family" in
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
16724 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
16725 if test "${ntp_cv_have___ss_family+set}" = set; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16732 #ifdef HAVE_SYS_TYPES_H
16733 # include <sys/types.h>
16734 #endif
16735 #ifdef HAVE_SYS_SOCKET_H
16736 # include <sys/socket.h>
16737 #endif
16738 #ifdef HAVE_NETINET_IN_H
16739 # include <netinet/in.h>
16740 #endif
16743 main ()
16746 struct sockaddr_storage s;
16747 s.__ss_family = 1;
16750 return 0;
16752 _ACEOF
16753 if ac_fn_c_try_compile "$LINENO"; then :
16754 ntp_cv_have___ss_family="yes"
16755 else
16756 ntp_cv_have___ss_family="no"
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
16764 $as_echo "$ntp_cv_have___ss_family" >&6; }
16765 case "$ntp_cv_have___ss_family" in
16766 yes)
16768 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
16770 esac
16771 esac
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.ss_len" >&5
16776 $as_echo_n "checking for sockaddr_storage.ss_len... " >&6; }
16777 if test "${ntp_cv_have_ss_len+set}" = set; then :
16778 $as_echo_n "(cached) " >&6
16779 else
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16784 #ifdef HAVE_SYS_TYPES_H
16785 # include <sys/types.h>
16786 #endif
16787 #ifdef HAVE_SYS_SOCKET_H
16788 # include <sys/socket.h>
16789 #endif
16790 #ifdef HAVE_NETINET_IN_H
16791 # include <netinet/in.h>
16792 #endif
16795 main ()
16798 struct sockaddr_storage s;
16799 s.ss_len = 1;
16802 return 0;
16804 _ACEOF
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 ntp_cv_have_ss_len="yes"
16807 else
16808 ntp_cv_have_ss_len="no"
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have_ss_len" >&5
16816 $as_echo "$ntp_cv_have_ss_len" >&6; }
16818 case "$ntp_cv_have_ss_len" in
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_len" >&5
16821 $as_echo_n "checking for sockaddr_storage.__ss_len... " >&6; }
16822 if test "${ntp_cv_have___ss_len+set}" = set; then :
16823 $as_echo_n "(cached) " >&6
16824 else
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16829 #ifdef HAVE_SYS_TYPES_H
16830 # include <sys/types.h>
16831 #endif
16832 #ifdef HAVE_SYS_SOCKET_H
16833 # include <sys/socket.h>
16834 #endif
16835 #ifdef HAVE_NETINET_IN_H
16836 # include <netinet/in.h>
16837 #endif
16840 main ()
16843 struct sockaddr_storage s;
16844 s.__ss_len = 1;
16847 return 0;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 ntp_cv_have___ss_len="yes"
16852 else
16853 ntp_cv_have___ss_len="no"
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_len" >&5
16861 $as_echo "$ntp_cv_have___ss_len" >&6; }
16862 case "$ntp_cv_have___ss_len" in
16863 yes)
16865 $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
16867 esac
16868 esac
16873 # Look for in_port_t.
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
16876 $as_echo_n "checking for in_port_t... " >&6; }
16877 if test "${isc_cv_have_in_port_t+set}" = set; then :
16878 $as_echo_n "(cached) " >&6
16879 else
16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h. */
16884 #include <sys/types.h>
16885 #include <netinet/in.h>
16888 main ()
16891 in_port_t port = 25;
16892 return (0);
16895 return 0;
16897 _ACEOF
16898 if ac_fn_c_try_compile "$LINENO"; then :
16899 isc_cv_have_in_port_t=yes
16900 else
16901 isc_cv_have_in_port_t=no
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
16909 $as_echo "$isc_cv_have_in_port_t" >&6; }
16910 case "$isc_cv_have_in_port_t" in
16913 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
16915 esac
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
16918 $as_echo_n "checking for library containing inet_ntop... " >&6; }
16919 if test "${ac_cv_search_inet_ntop+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16921 else
16922 ac_func_search_save_LIBS=$LIBS
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h. */
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16929 #ifdef __cplusplus
16930 extern "C"
16931 #endif
16932 char inet_ntop ();
16934 main ()
16936 return inet_ntop ();
16938 return 0;
16940 _ACEOF
16941 for ac_lib in '' resolv; do
16942 if test -z "$ac_lib"; then
16943 ac_res="none required"
16944 else
16945 ac_res=-l$ac_lib
16946 LIBS="-l$ac_lib -lsocket -lnsl $ac_func_search_save_LIBS"
16948 if ac_fn_c_try_link "$LINENO"; then :
16949 ac_cv_search_inet_ntop=$ac_res
16951 rm -f core conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext
16953 if test "${ac_cv_search_inet_ntop+set}" = set; then :
16954 break
16956 done
16957 if test "${ac_cv_search_inet_ntop+set}" = set; then :
16959 else
16960 ac_cv_search_inet_ntop=no
16962 rm conftest.$ac_ext
16963 LIBS=$ac_func_search_save_LIBS
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
16966 $as_echo "$ac_cv_search_inet_ntop" >&6; }
16967 ac_res=$ac_cv_search_inet_ntop
16968 if test "$ac_res" != no; then :
16969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16973 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16974 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
16976 else
16978 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
16982 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16983 if test "x$ac_cv_func_inet_pton" = x""yes; then :
16985 else
16987 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
16992 # Check whether --enable-ipv6 was given.
16993 if test "${enable_ipv6+set}" = set; then :
16994 enableval=$enable_ipv6;
16998 case "$enable_ipv6" in
16999 yes|''|autodetect)
17000 case "$host" in
17001 powerpc-ibm-aix4*) ;;
17004 $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
17007 esac
17011 esac
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
17014 $as_echo_n "checking for IPv6 structures... " >&6; }
17015 if test "${ac_cv_isc_found_ipv6+set}" = set; then :
17016 $as_echo_n "(cached) " >&6
17017 else
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17023 #include <sys/types.h>
17024 #include <sys/socket.h>
17025 #include <netinet/in.h>
17028 main ()
17031 struct sockaddr_in6 sin6;
17035 return 0;
17038 _ACEOF
17039 if ac_fn_c_try_compile "$LINENO"; then :
17040 ac_cv_isc_found_ipv6=yes
17041 else
17042 ac_cv_isc_found_ipv6=no
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
17050 $as_echo "$ac_cv_isc_found_ipv6" >&6; }
17053 # See whether IPv6 support is provided via a Kame add-on.
17054 # This is done before other IPv6 linking tests so LIBS is properly set.
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
17057 $as_echo_n "checking for Kame IPv6 support... " >&6; }
17059 # Check whether --with-kame was given.
17060 if test "${with_kame+set}" = set; then :
17061 withval=$with_kame; use_kame="$withval"
17062 else
17063 use_kame="no"
17067 case "$use_kame" in
17070 yes)
17071 kame_path=/usr/local/v6
17074 kame_path="$use_kame"
17076 esac
17078 case "$use_kame" in
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17084 if test -f $kame_path/lib/libinet6.a; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
17086 $as_echo "$kame_path/lib/libinet6.a" >&6; }
17087 LIBS="-L$kame_path/lib -linet6 $LIBS"
17088 else
17089 as_fn_error "$kame_path/lib/libinet6.a not found.
17091 Please choose the proper path with the following command:
17093 configure --with-kame=PATH
17094 " "$LINENO" 5
17097 esac
17100 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
17101 # Including it on Kame-using platforms is very bad, though, because
17102 # Kame uses #error against direct inclusion. So include it on only
17103 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
17104 # This is done before the in6_pktinfo check because that's what
17105 # netinet6/in6.h is needed for.
17107 case "$host" in
17108 *-bsdi4.[01]*)
17110 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
17112 # does anything use LWRES_PLATFORM_NEEDNETINET6IN6H? Can't it use above?
17114 $as_echo "#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
17116 isc_netinet6in6_hack="#include <netinet6/in6.h>"
17119 isc_netinet6in6_hack=""
17120 esac
17123 # This is similar to the netinet6/in6.h issue.
17125 case "$host" in
17126 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
17128 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
17130 isc_netinetin6_hack="#include <netinet/in6.h>"
17133 isc_netinetin6_hack=""
17134 esac
17137 case "$ac_cv_isc_found_ipv6" in
17138 yes)
17140 $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
17144 $as_echo_n "checking for in6_pktinfo... " >&6; }
17145 if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17153 #include <sys/types.h>
17154 #include <sys/socket.h>
17155 #include <netinet/in.h>
17156 $isc_netinetin6_hack
17157 $isc_netinet6in6_hack
17160 main ()
17163 struct in6_pktinfo xyzzy;
17167 return 0;
17170 _ACEOF
17171 if ac_fn_c_try_compile "$LINENO"; then :
17172 ac_cv_have_in6_pktinfo=yes
17173 else
17174 ac_cv_have_in6_pktinfo=no
17177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
17182 $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
17184 case "$ac_cv_have_in6_pktinfo" in
17185 yes)
17187 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
17189 esac
17192 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
17194 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
17195 if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
17196 $as_echo_n "(cached) " >&6
17197 else
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17203 #include <sys/types.h>
17204 #include <sys/socket.h>
17205 #include <netinet/in.h>
17206 $isc_netinetin6_hack
17207 $isc_netinet6in6_hack
17210 main ()
17213 struct sockaddr_in6 xyzzy;
17214 xyzzy.sin6_scope_id = 0;
17218 return 0;
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"; then :
17223 ac_cv_have_sin6_scope_id=yes
17224 else
17225 ac_cv_have_sin6_scope_id=no
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
17233 $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
17235 case "$ac_cv_have_sin6_scope_id" in
17236 yes)
17238 $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
17240 esac
17241 esac
17244 # We need this check run even without ac_cv_isc_found_ipv6=yes
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
17247 $as_echo_n "checking for in6addr_any... " >&6; }
17248 if test "${isc_cv_have_in6addr_any+set}" = set; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17256 #include <sys/types.h>
17257 #include <sys/socket.h>
17258 #include <netinet/in.h>
17259 $isc_netinetin6_hack
17260 $isc_netinet6in6_hack
17263 main ()
17266 struct in6_addr in6;
17267 in6 = in6addr_any;
17271 return 0;
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"; then :
17276 isc_cv_have_in6addr_any=yes
17277 else
17278 isc_cv_have_in6addr_any=no
17281 rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6addr_any" >&5
17287 $as_echo "$isc_cv_have_in6addr_any" >&6; }
17289 case "$isc_cv_have_in6addr_any" in
17292 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
17294 esac
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
17298 $as_echo_n "checking for struct if_laddrconf... " >&6; }
17299 if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
17300 $as_echo_n "(cached) " >&6
17301 else
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17307 #include <sys/types.h>
17308 #include <net/if6.h>
17311 main ()
17314 struct if_laddrconf a;
17318 return 0;
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323 ac_cv_isc_struct_if_laddrconf=yes
17324 else
17325 ac_cv_isc_struct_if_laddrconf=no
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
17333 $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
17335 case "$ac_cv_isc_struct_if_laddrconf" in
17336 yes)
17338 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
17340 esac
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
17343 $as_echo_n "checking for struct if_laddrreq... " >&6; }
17344 if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
17345 $as_echo_n "(cached) " >&6
17346 else
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17352 #include <sys/types.h>
17353 #include <net/if6.h>
17356 main ()
17359 struct if_laddrreq a;
17363 return 0;
17366 _ACEOF
17367 if ac_fn_c_try_compile "$LINENO"; then :
17368 ac_cv_isc_struct_if_laddrreq=yes
17369 else
17370 ac_cv_isc_struct_if_laddrreq=no
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
17378 $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
17380 case "$ac_cv_isc_struct_if_laddrreq" in
17381 yes)
17383 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
17385 esac
17390 # Hacks
17392 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
17395 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
17398 # Checks for library functions.
17399 for ac_func in atexit memset socket
17400 do :
17401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17403 eval as_val=\$$as_ac_var
17404 if test "x$as_val" = x""yes; then :
17405 cat >>confdefs.h <<_ACEOF
17406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17407 _ACEOF
17410 done
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
17414 $as_echo_n "checking for bin subdirectory... " >&6; }
17416 # Check whether --with-binsubdir was given.
17417 if test "${with_binsubdir+set}" = set; then :
17418 withval=$with_binsubdir; use_binsubdir="$withval"
17419 else
17420 use_binsubdir="bin"
17424 case "$use_binsubdir" in
17425 bin)
17427 sbin)
17430 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
17432 esac
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
17434 $as_echo "$use_binsubdir" >&6; }
17435 BINSUBDIR=$use_binsubdir
17438 ac_config_files="$ac_config_files Makefile"
17440 cat >confcache <<\_ACEOF
17441 # This file is a shell script that caches the results of configure
17442 # tests run on this system so they can be shared between configure
17443 # scripts and configure runs, see configure's option --config-cache.
17444 # It is not useful on other systems. If it contains results you don't
17445 # want to keep, you may remove or edit it.
17447 # config.status only pays attention to the cache file if you give it
17448 # the --recheck option to rerun configure.
17450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17452 # following values.
17454 _ACEOF
17456 # The following way of writing the cache mishandles newlines in values,
17457 # but we know of no workaround that is simple, portable, and efficient.
17458 # So, we kill variables containing newlines.
17459 # Ultrix sh set writes to stderr and can't be redirected directly,
17460 # and sets the high bit in the cache file unless we assign to the vars.
17462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17463 eval ac_val=\$$ac_var
17464 case $ac_val in #(
17465 *${as_nl}*)
17466 case $ac_var in #(
17467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17469 esac
17470 case $ac_var in #(
17471 _ | IFS | as_nl) ;; #(
17472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17473 *) { eval $ac_var=; unset $ac_var;} ;;
17474 esac ;;
17475 esac
17476 done
17478 (set) 2>&1 |
17479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17480 *${as_nl}ac_space=\ *)
17481 # `set' does not quote correctly, so add quotes: double-quote
17482 # substitution turns \\\\ into \\, and sed turns \\ into \.
17483 sed -n \
17484 "s/'/'\\\\''/g;
17485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17486 ;; #(
17488 # `set' quotes correctly as required by POSIX, so do not add quotes.
17489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17491 esac |
17492 sort
17494 sed '
17495 /^ac_cv_env_/b end
17496 t clear
17497 :clear
17498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17499 t end
17500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17501 :end' >>confcache
17502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17503 if test -w "$cache_file"; then
17504 test "x$cache_file" != "x/dev/null" &&
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17506 $as_echo "$as_me: updating cache $cache_file" >&6;}
17507 cat confcache >$cache_file
17508 else
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17513 rm -f confcache
17515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17516 # Let make expand exec_prefix.
17517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17519 DEFS=-DHAVE_CONFIG_H
17521 ac_libobjs=
17522 ac_ltlibobjs=
17523 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17524 # 1. Remove the extension, and $U if already installed.
17525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17526 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17528 # will be set to the directory where LIBOBJS objects are built.
17529 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17530 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17531 done
17532 LIBOBJS=$ac_libobjs
17534 LTLIBOBJS=$ac_ltlibobjs
17537 if test -n "$EXEEXT"; then
17538 am__EXEEXT_TRUE=
17539 am__EXEEXT_FALSE='#'
17540 else
17541 am__EXEEXT_TRUE='#'
17542 am__EXEEXT_FALSE=
17545 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17546 as_fn_error "conditional \"AMDEP\" was never defined.
17547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17550 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17553 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
17554 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
17555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17557 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
17558 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
17559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17562 : ${CONFIG_STATUS=./config.status}
17563 ac_write_fail=0
17564 ac_clean_files_save=$ac_clean_files
17565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17567 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17568 as_write_fail=0
17569 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17570 #! $SHELL
17571 # Generated by $as_me.
17572 # Run this file to recreate the current configuration.
17573 # Compiler output produced by configure, useful for debugging
17574 # configure, is in config.log if it exists.
17576 debug=false
17577 ac_cs_recheck=false
17578 ac_cs_silent=false
17580 SHELL=\${CONFIG_SHELL-$SHELL}
17581 export SHELL
17582 _ASEOF
17583 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17584 ## -------------------- ##
17585 ## M4sh Initialization. ##
17586 ## -------------------- ##
17588 # Be more Bourne compatible
17589 DUALCASE=1; export DUALCASE # for MKS sh
17590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17591 emulate sh
17592 NULLCMD=:
17593 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17594 # is contrary to our usage. Disable this feature.
17595 alias -g '${1+"$@"}'='"$@"'
17596 setopt NO_GLOB_SUBST
17597 else
17598 case `(set -o) 2>/dev/null` in #(
17599 *posix*) :
17600 set -o posix ;; #(
17601 *) :
17603 esac
17607 as_nl='
17609 export as_nl
17610 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17611 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17614 # Prefer a ksh shell builtin over an external printf program on Solaris,
17615 # but without wasting forks for bash or zsh.
17616 if test -z "$BASH_VERSION$ZSH_VERSION" \
17617 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17618 as_echo='print -r --'
17619 as_echo_n='print -rn --'
17620 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17621 as_echo='printf %s\n'
17622 as_echo_n='printf %s'
17623 else
17624 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17625 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17626 as_echo_n='/usr/ucb/echo -n'
17627 else
17628 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17629 as_echo_n_body='eval
17630 arg=$1;
17631 case $arg in #(
17632 *"$as_nl"*)
17633 expr "X$arg" : "X\\(.*\\)$as_nl";
17634 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17635 esac;
17636 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17638 export as_echo_n_body
17639 as_echo_n='sh -c $as_echo_n_body as_echo'
17641 export as_echo_body
17642 as_echo='sh -c $as_echo_body as_echo'
17645 # The user is always right.
17646 if test "${PATH_SEPARATOR+set}" != set; then
17647 PATH_SEPARATOR=:
17648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17649 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17650 PATH_SEPARATOR=';'
17655 # IFS
17656 # We need space, tab and new line, in precisely that order. Quoting is
17657 # there to prevent editors from complaining about space-tab.
17658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17659 # splitting by setting IFS to empty value.)
17660 IFS=" "" $as_nl"
17662 # Find who we are. Look in the path if we contain no directory separator.
17663 case $0 in #((
17664 *[\\/]* ) as_myself=$0 ;;
17665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666 for as_dir in $PATH
17668 IFS=$as_save_IFS
17669 test -z "$as_dir" && as_dir=.
17670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17671 done
17672 IFS=$as_save_IFS
17675 esac
17676 # We did not find ourselves, most probably we were run as `sh COMMAND'
17677 # in which case we are not to be found in the path.
17678 if test "x$as_myself" = x; then
17679 as_myself=$0
17681 if test ! -f "$as_myself"; then
17682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17683 exit 1
17686 # Unset variables that we do not need and which cause bugs (e.g. in
17687 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17688 # suppresses any "Segmentation fault" message there. '((' could
17689 # trigger a bug in pdksh 5.2.14.
17690 for as_var in BASH_ENV ENV MAIL MAILPATH
17691 do eval test x\${$as_var+set} = xset \
17692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17693 done
17694 PS1='$ '
17695 PS2='> '
17696 PS4='+ '
17698 # NLS nuisances.
17699 LC_ALL=C
17700 export LC_ALL
17701 LANGUAGE=C
17702 export LANGUAGE
17704 # CDPATH.
17705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17708 # as_fn_error ERROR [LINENO LOG_FD]
17709 # ---------------------------------
17710 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17711 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17712 # script with status $?, using 1 if that was 0.
17713 as_fn_error ()
17715 as_status=$?; test $as_status -eq 0 && as_status=1
17716 if test "$3"; then
17717 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17720 $as_echo "$as_me: error: $1" >&2
17721 as_fn_exit $as_status
17722 } # as_fn_error
17725 # as_fn_set_status STATUS
17726 # -----------------------
17727 # Set $? to STATUS, without forking.
17728 as_fn_set_status ()
17730 return $1
17731 } # as_fn_set_status
17733 # as_fn_exit STATUS
17734 # -----------------
17735 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17736 as_fn_exit ()
17738 set +e
17739 as_fn_set_status $1
17740 exit $1
17741 } # as_fn_exit
17743 # as_fn_unset VAR
17744 # ---------------
17745 # Portably unset VAR.
17746 as_fn_unset ()
17748 { eval $1=; unset $1;}
17750 as_unset=as_fn_unset
17751 # as_fn_append VAR VALUE
17752 # ----------------------
17753 # Append the text in VALUE to the end of the definition contained in VAR. Take
17754 # advantage of any shell optimizations that allow amortized linear growth over
17755 # repeated appends, instead of the typical quadratic growth present in naive
17756 # implementations.
17757 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17758 eval 'as_fn_append ()
17760 eval $1+=\$2
17762 else
17763 as_fn_append ()
17765 eval $1=\$$1\$2
17767 fi # as_fn_append
17769 # as_fn_arith ARG...
17770 # ------------------
17771 # Perform arithmetic evaluation on the ARGs, and store the result in the
17772 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17773 # must be portable across $(()) and expr.
17774 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17775 eval 'as_fn_arith ()
17777 as_val=$(( $* ))
17779 else
17780 as_fn_arith ()
17782 as_val=`expr "$@" || test $? -eq 1`
17784 fi # as_fn_arith
17787 if expr a : '\(a\)' >/dev/null 2>&1 &&
17788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17789 as_expr=expr
17790 else
17791 as_expr=false
17794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17795 as_basename=basename
17796 else
17797 as_basename=false
17800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17801 as_dirname=dirname
17802 else
17803 as_dirname=false
17806 as_me=`$as_basename -- "$0" ||
17807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17808 X"$0" : 'X\(//\)$' \| \
17809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17810 $as_echo X/"$0" |
17811 sed '/^.*\/\([^/][^/]*\)\/*$/{
17812 s//\1/
17815 /^X\/\(\/\/\)$/{
17816 s//\1/
17819 /^X\/\(\/\).*/{
17820 s//\1/
17823 s/.*/./; q'`
17825 # Avoid depending upon Character Ranges.
17826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17829 as_cr_digits='0123456789'
17830 as_cr_alnum=$as_cr_Letters$as_cr_digits
17832 ECHO_C= ECHO_N= ECHO_T=
17833 case `echo -n x` in #(((((
17834 -n*)
17835 case `echo 'xy\c'` in
17836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17837 xy) ECHO_C='\c';;
17838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17839 ECHO_T=' ';;
17840 esac;;
17842 ECHO_N='-n';;
17843 esac
17845 rm -f conf$$ conf$$.exe conf$$.file
17846 if test -d conf$$.dir; then
17847 rm -f conf$$.dir/conf$$.file
17848 else
17849 rm -f conf$$.dir
17850 mkdir conf$$.dir 2>/dev/null
17852 if (echo >conf$$.file) 2>/dev/null; then
17853 if ln -s conf$$.file conf$$ 2>/dev/null; then
17854 as_ln_s='ln -s'
17855 # ... but there are two gotchas:
17856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17858 # In both cases, we have to default to `cp -p'.
17859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17860 as_ln_s='cp -p'
17861 elif ln conf$$.file conf$$ 2>/dev/null; then
17862 as_ln_s=ln
17863 else
17864 as_ln_s='cp -p'
17866 else
17867 as_ln_s='cp -p'
17869 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17870 rmdir conf$$.dir 2>/dev/null
17873 # as_fn_mkdir_p
17874 # -------------
17875 # Create "$as_dir" as a directory, including parents if necessary.
17876 as_fn_mkdir_p ()
17879 case $as_dir in #(
17880 -*) as_dir=./$as_dir;;
17881 esac
17882 test -d "$as_dir" || eval $as_mkdir_p || {
17883 as_dirs=
17884 while :; do
17885 case $as_dir in #(
17886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17887 *) as_qdir=$as_dir;;
17888 esac
17889 as_dirs="'$as_qdir' $as_dirs"
17890 as_dir=`$as_dirname -- "$as_dir" ||
17891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17892 X"$as_dir" : 'X\(//\)[^/]' \| \
17893 X"$as_dir" : 'X\(//\)$' \| \
17894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17895 $as_echo X"$as_dir" |
17896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17897 s//\1/
17900 /^X\(\/\/\)[^/].*/{
17901 s//\1/
17904 /^X\(\/\/\)$/{
17905 s//\1/
17908 /^X\(\/\).*/{
17909 s//\1/
17912 s/.*/./; q'`
17913 test -d "$as_dir" && break
17914 done
17915 test -z "$as_dirs" || eval "mkdir $as_dirs"
17916 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17919 } # as_fn_mkdir_p
17920 if mkdir -p . 2>/dev/null; then
17921 as_mkdir_p='mkdir -p "$as_dir"'
17922 else
17923 test -d ./-p && rmdir ./-p
17924 as_mkdir_p=false
17927 if test -x / >/dev/null 2>&1; then
17928 as_test_x='test -x'
17929 else
17930 if ls -dL / >/dev/null 2>&1; then
17931 as_ls_L_option=L
17932 else
17933 as_ls_L_option=
17935 as_test_x='
17936 eval sh -c '\''
17937 if test -d "$1"; then
17938 test -d "$1/.";
17939 else
17940 case $1 in #(
17941 -*)set "./$1";;
17942 esac;
17943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17944 ???[sx]*):;;*)false;;esac;fi
17945 '\'' sh
17948 as_executable_p=$as_test_x
17950 # Sed expression to map a string onto a valid CPP name.
17951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17953 # Sed expression to map a string onto a valid variable name.
17954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17957 exec 6>&1
17958 ## ----------------------------------- ##
17959 ## Main body of $CONFIG_STATUS script. ##
17960 ## ----------------------------------- ##
17961 _ASEOF
17962 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965 # Save the log message, to keep $0 and so on meaningful, and to
17966 # report actual input values of CONFIG_FILES etc. instead of their
17967 # values after options handling.
17968 ac_log="
17969 This file was extended by sntp $as_me 4.2.6, which was
17970 generated by GNU Autoconf 2.65. Invocation command line was
17972 CONFIG_FILES = $CONFIG_FILES
17973 CONFIG_HEADERS = $CONFIG_HEADERS
17974 CONFIG_LINKS = $CONFIG_LINKS
17975 CONFIG_COMMANDS = $CONFIG_COMMANDS
17976 $ $0 $@
17978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17981 _ACEOF
17983 case $ac_config_files in *"
17984 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17985 esac
17987 case $ac_config_headers in *"
17988 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17989 esac
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 # Files that config.status was made for.
17994 config_files="$ac_config_files"
17995 config_headers="$ac_config_headers"
17996 config_commands="$ac_config_commands"
17998 _ACEOF
18000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18001 ac_cs_usage="\
18002 \`$as_me' instantiates files and other configuration actions
18003 from templates according to the current configuration. Unless the files
18004 and actions are specified as TAGs, all are instantiated by default.
18006 Usage: $0 [OPTION]... [TAG]...
18008 -h, --help print this help, then exit
18009 -V, --version print version number and configuration settings, then exit
18010 --config print configuration, then exit
18011 -q, --quiet, --silent
18012 do not print progress messages
18013 -d, --debug don't remove temporary files
18014 --recheck update $as_me by reconfiguring in the same conditions
18015 --file=FILE[:TEMPLATE]
18016 instantiate the configuration file FILE
18017 --header=FILE[:TEMPLATE]
18018 instantiate the configuration header FILE
18020 Configuration files:
18021 $config_files
18023 Configuration headers:
18024 $config_headers
18026 Configuration commands:
18027 $config_commands
18029 Report bugs to the package provider."
18031 _ACEOF
18032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18034 ac_cs_version="\\
18035 sntp config.status 4.2.6
18036 configured by $0, generated by GNU Autoconf 2.65,
18037 with options \\"\$ac_cs_config\\"
18039 Copyright (C) 2009 Free Software Foundation, Inc.
18040 This config.status script is free software; the Free Software Foundation
18041 gives unlimited permission to copy, distribute and modify it."
18043 ac_pwd='$ac_pwd'
18044 srcdir='$srcdir'
18045 INSTALL='$INSTALL'
18046 MKDIR_P='$MKDIR_P'
18047 AWK='$AWK'
18048 test -n "\$AWK" || AWK=awk
18049 _ACEOF
18051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 # The default lists apply if the user does not specify any file.
18053 ac_need_defaults=:
18054 while test $# != 0
18056 case $1 in
18057 --*=*)
18058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18060 ac_shift=:
18063 ac_option=$1
18064 ac_optarg=$2
18065 ac_shift=shift
18067 esac
18069 case $ac_option in
18070 # Handling of the options.
18071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18072 ac_cs_recheck=: ;;
18073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18074 $as_echo "$ac_cs_version"; exit ;;
18075 --config | --confi | --conf | --con | --co | --c )
18076 $as_echo "$ac_cs_config"; exit ;;
18077 --debug | --debu | --deb | --de | --d | -d )
18078 debug=: ;;
18079 --file | --fil | --fi | --f )
18080 $ac_shift
18081 case $ac_optarg in
18082 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18083 esac
18084 as_fn_append CONFIG_FILES " '$ac_optarg'"
18085 ac_need_defaults=false;;
18086 --header | --heade | --head | --hea )
18087 $ac_shift
18088 case $ac_optarg in
18089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18090 esac
18091 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18092 ac_need_defaults=false;;
18093 --he | --h)
18094 # Conflict between --help and --header
18095 as_fn_error "ambiguous option: \`$1'
18096 Try \`$0 --help' for more information.";;
18097 --help | --hel | -h )
18098 $as_echo "$ac_cs_usage"; exit ;;
18099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18100 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18101 ac_cs_silent=: ;;
18103 # This is an error.
18104 -*) as_fn_error "unrecognized option: \`$1'
18105 Try \`$0 --help' for more information." ;;
18107 *) as_fn_append ac_config_targets " $1"
18108 ac_need_defaults=false ;;
18110 esac
18111 shift
18112 done
18114 ac_configure_extra_args=
18116 if $ac_cs_silent; then
18117 exec 6>/dev/null
18118 ac_configure_extra_args="$ac_configure_extra_args --silent"
18121 _ACEOF
18122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123 if \$ac_cs_recheck; then
18124 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18125 shift
18126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18127 CONFIG_SHELL='$SHELL'
18128 export CONFIG_SHELL
18129 exec "\$@"
18132 _ACEOF
18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18134 exec 5>>config.log
18136 echo
18137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18138 ## Running $as_me. ##
18139 _ASBOX
18140 $as_echo "$ac_log"
18141 } >&5
18143 _ACEOF
18144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18146 # INIT-COMMANDS
18148 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18150 _ACEOF
18152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18154 # Handling of arguments.
18155 for ac_config_target in $ac_config_targets
18157 case $ac_config_target in
18158 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18159 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18160 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
18161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18163 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18164 esac
18165 done
18168 # If the user did not use the arguments to specify the items to instantiate,
18169 # then the envvar interface is used. Set only those that are not.
18170 # We use the long form for the default assignment because of an extremely
18171 # bizarre bug on SunOS 4.1.3.
18172 if $ac_need_defaults; then
18173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18178 # Have a temporary directory for convenience. Make it in the build tree
18179 # simply because there is no reason against having it here, and in addition,
18180 # creating and moving files from /tmp can sometimes cause problems.
18181 # Hook for its removal unless debugging.
18182 # Note that there is a small window in which the directory will not be cleaned:
18183 # after its creation but before its name has been assigned to `$tmp'.
18184 $debug ||
18186 tmp=
18187 trap 'exit_status=$?
18188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18190 trap 'as_fn_exit 1' 1 2 13 15
18192 # Create a (secure) tmp directory for tmp files.
18195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18196 test -n "$tmp" && test -d "$tmp"
18197 } ||
18199 tmp=./conf$$-$RANDOM
18200 (umask 077 && mkdir "$tmp")
18201 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18203 # Set up the scripts for CONFIG_FILES section.
18204 # No need to generate them if there are no CONFIG_FILES.
18205 # This happens for instance with `./config.status config.h'.
18206 if test -n "$CONFIG_FILES"; then
18209 ac_cr=`echo X | tr X '\015'`
18210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18211 # But we know of no other shell where ac_cr would be empty at this
18212 # point, so we can use a bashism as a fallback.
18213 if test "x$ac_cr" = x; then
18214 eval ac_cr=\$\'\\r\'
18216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18218 ac_cs_awk_cr='\r'
18219 else
18220 ac_cs_awk_cr=$ac_cr
18223 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18224 _ACEOF
18228 echo "cat >conf$$subs.awk <<_ACEOF" &&
18229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18230 echo "_ACEOF"
18231 } >conf$$subs.sh ||
18232 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18234 ac_delim='%!_!# '
18235 for ac_last_try in false false false false false :; do
18236 . ./conf$$subs.sh ||
18237 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18240 if test $ac_delim_n = $ac_delim_num; then
18241 break
18242 elif $ac_last_try; then
18243 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18244 else
18245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18247 done
18248 rm -f conf$$subs.sh
18250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18251 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18252 _ACEOF
18253 sed -n '
18255 s/^/S["/; s/!.*/"]=/
18258 s/^[^!]*!//
18259 :repl
18260 t repl
18261 s/'"$ac_delim"'$//
18262 t delim
18265 s/\(.\{148\}\)..*/\1/
18266 t more1
18267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18270 b repl
18271 :more1
18272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18275 s/.\{148\}//
18276 t nl
18277 :delim
18279 s/\(.\{148\}\)..*/\1/
18280 t more2
18281 s/["\\]/\\&/g; s/^/"/; s/$/"/
18284 :more2
18285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18288 s/.\{148\}//
18289 t delim
18290 ' <conf$$subs.awk | sed '
18291 /^[^""]/{
18293 s/\n//
18295 ' >>$CONFIG_STATUS || ac_write_fail=1
18296 rm -f conf$$subs.awk
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298 _ACAWK
18299 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18300 for (key in S) S_is_set[key] = 1
18301 FS = "\a"
18305 line = $ 0
18306 nfields = split(line, field, "@")
18307 substed = 0
18308 len = length(field[1])
18309 for (i = 2; i < nfields; i++) {
18310 key = field[i]
18311 keylen = length(key)
18312 if (S_is_set[key]) {
18313 value = S[key]
18314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18315 len += length(value) + length(field[++i])
18316 substed = 1
18317 } else
18318 len += 1 + keylen
18321 print line
18324 _ACAWK
18325 _ACEOF
18326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18329 else
18331 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18332 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18333 _ACEOF
18335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18337 # trailing colons and then remove the whole line if VPATH becomes empty
18338 # (actually we leave an empty line to preserve line numbers).
18339 if test "x$srcdir" = x.; then
18340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18341 s/:*\$(srcdir):*/:/
18342 s/:*\${srcdir}:*/:/
18343 s/:*@srcdir@:*/:/
18344 s/^\([^=]*=[ ]*\):*/\1/
18345 s/:*$//
18346 s/^[^=]*=[ ]*$//
18350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351 fi # test -n "$CONFIG_FILES"
18353 # Set up the scripts for CONFIG_HEADERS section.
18354 # No need to generate them if there are no CONFIG_HEADERS.
18355 # This happens for instance with `./config.status Makefile'.
18356 if test -n "$CONFIG_HEADERS"; then
18357 cat >"$tmp/defines.awk" <<\_ACAWK ||
18358 BEGIN {
18359 _ACEOF
18361 # Transform confdefs.h into an awk script `defines.awk', embedded as
18362 # here-document in config.status, that substitutes the proper values into
18363 # config.h.in to produce config.h.
18365 # Create a delimiter string that does not exist in confdefs.h, to ease
18366 # handling of long lines.
18367 ac_delim='%!_!# '
18368 for ac_last_try in false false :; do
18369 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18370 if test -z "$ac_t"; then
18371 break
18372 elif $ac_last_try; then
18373 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18374 else
18375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18377 done
18379 # For the awk script, D is an array of macro values keyed by name,
18380 # likewise P contains macro parameters if any. Preserve backslash
18381 # newline sequences.
18383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18384 sed -n '
18385 s/.\{148\}/&'"$ac_delim"'/g
18386 t rset
18387 :rset
18388 s/^[ ]*#[ ]*define[ ][ ]*/ /
18389 t def
18391 :def
18392 s/\\$//
18393 t bsnl
18394 s/["\\]/\\&/g
18395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18396 D["\1"]=" \3"/p
18397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18399 :bsnl
18400 s/["\\]/\\&/g
18401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18402 D["\1"]=" \3\\\\\\n"\\/p
18403 t cont
18404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18405 t cont
18407 :cont
18409 s/.\{148\}/&'"$ac_delim"'/g
18410 t clear
18411 :clear
18412 s/\\$//
18413 t bsnlc
18414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18416 :bsnlc
18417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18418 b cont
18419 ' <confdefs.h | sed '
18420 s/'"$ac_delim"'/"\\\
18421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 for (key in D) D_is_set[key] = 1
18425 FS = "\a"
18427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18428 line = \$ 0
18429 split(line, arg, " ")
18430 if (arg[1] == "#") {
18431 defundef = arg[2]
18432 mac1 = arg[3]
18433 } else {
18434 defundef = substr(arg[1], 2)
18435 mac1 = arg[2]
18437 split(mac1, mac2, "(") #)
18438 macro = mac2[1]
18439 prefix = substr(line, 1, index(line, defundef) - 1)
18440 if (D_is_set[macro]) {
18441 # Preserve the white space surrounding the "#".
18442 print prefix "define", macro P[macro] D[macro]
18443 next
18444 } else {
18445 # Replace #undef with comments. This is necessary, for example,
18446 # in the case of _POSIX_SOURCE, which is predefined and required
18447 # on some systems where configure will not decide to define it.
18448 if (defundef == "undef") {
18449 print "/*", prefix defundef, macro, "*/"
18450 next
18454 { print }
18455 _ACAWK
18456 _ACEOF
18457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18458 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18459 fi # test -n "$CONFIG_HEADERS"
18462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18463 shift
18464 for ac_tag
18466 case $ac_tag in
18467 :[FHLC]) ac_mode=$ac_tag; continue;;
18468 esac
18469 case $ac_mode$ac_tag in
18470 :[FHL]*:*);;
18471 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18472 :[FH]-) ac_tag=-:-;;
18473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18474 esac
18475 ac_save_IFS=$IFS
18476 IFS=:
18477 set x $ac_tag
18478 IFS=$ac_save_IFS
18479 shift
18480 ac_file=$1
18481 shift
18483 case $ac_mode in
18484 :L) ac_source=$1;;
18485 :[FH])
18486 ac_file_inputs=
18487 for ac_f
18489 case $ac_f in
18490 -) ac_f="$tmp/stdin";;
18491 *) # Look for the file first in the build tree, then in the source tree
18492 # (if the path is not absolute). The absolute path cannot be DOS-style,
18493 # because $ac_f cannot contain `:'.
18494 test -f "$ac_f" ||
18495 case $ac_f in
18496 [\\/$]*) false;;
18497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18498 esac ||
18499 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18500 esac
18501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18502 as_fn_append ac_file_inputs " '$ac_f'"
18503 done
18505 # Let's still pretend it is `configure' which instantiates (i.e., don't
18506 # use $as_me), people would be surprised to read:
18507 # /* config.h. Generated by config.status. */
18508 configure_input='Generated from '`
18509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18510 `' by configure.'
18511 if test x"$ac_file" != x-; then
18512 configure_input="$ac_file. $configure_input"
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18514 $as_echo "$as_me: creating $ac_file" >&6;}
18516 # Neutralize special characters interpreted by sed in replacement strings.
18517 case $configure_input in #(
18518 *\&* | *\|* | *\\* )
18519 ac_sed_conf_input=`$as_echo "$configure_input" |
18520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18521 *) ac_sed_conf_input=$configure_input;;
18522 esac
18524 case $ac_tag in
18525 *:-:* | *:-) cat >"$tmp/stdin" \
18526 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18527 esac
18529 esac
18531 ac_dir=`$as_dirname -- "$ac_file" ||
18532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533 X"$ac_file" : 'X\(//\)[^/]' \| \
18534 X"$ac_file" : 'X\(//\)$' \| \
18535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536 $as_echo X"$ac_file" |
18537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538 s//\1/
18541 /^X\(\/\/\)[^/].*/{
18542 s//\1/
18545 /^X\(\/\/\)$/{
18546 s//\1/
18549 /^X\(\/\).*/{
18550 s//\1/
18553 s/.*/./; q'`
18554 as_dir="$ac_dir"; as_fn_mkdir_p
18555 ac_builddir=.
18557 case "$ac_dir" in
18558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18561 # A ".." for each directory in $ac_dir_suffix.
18562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18563 case $ac_top_builddir_sub in
18564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18566 esac ;;
18567 esac
18568 ac_abs_top_builddir=$ac_pwd
18569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18570 # for backward compatibility:
18571 ac_top_builddir=$ac_top_build_prefix
18573 case $srcdir in
18574 .) # We are building in place.
18575 ac_srcdir=.
18576 ac_top_srcdir=$ac_top_builddir_sub
18577 ac_abs_top_srcdir=$ac_pwd ;;
18578 [\\/]* | ?:[\\/]* ) # Absolute name.
18579 ac_srcdir=$srcdir$ac_dir_suffix;
18580 ac_top_srcdir=$srcdir
18581 ac_abs_top_srcdir=$srcdir ;;
18582 *) # Relative name.
18583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18584 ac_top_srcdir=$ac_top_build_prefix$srcdir
18585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18586 esac
18587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18590 case $ac_mode in
18593 # CONFIG_FILE
18596 case $INSTALL in
18597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18599 esac
18600 ac_MKDIR_P=$MKDIR_P
18601 case $MKDIR_P in
18602 [\\/$]* | ?:[\\/]* ) ;;
18603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18604 esac
18605 _ACEOF
18607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608 # If the template does not know about datarootdir, expand it.
18609 # FIXME: This hack should be removed a few years after 2.60.
18610 ac_datarootdir_hack=; ac_datarootdir_seen=
18611 ac_sed_dataroot='
18612 /datarootdir/ {
18616 /@datadir@/p
18617 /@docdir@/p
18618 /@infodir@/p
18619 /@localedir@/p
18620 /@mandir@/p'
18621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18622 *datarootdir*) ac_datarootdir_seen=yes;;
18623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18626 _ACEOF
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628 ac_datarootdir_hack='
18629 s&@datadir@&$datadir&g
18630 s&@docdir@&$docdir&g
18631 s&@infodir@&$infodir&g
18632 s&@localedir@&$localedir&g
18633 s&@mandir@&$mandir&g
18634 s&\\\${datarootdir}&$datarootdir&g' ;;
18635 esac
18636 _ACEOF
18638 # Neutralize VPATH when `$srcdir' = `.'.
18639 # Shell code in configure.ac might set extrasub.
18640 # FIXME: do we really want to maintain this feature?
18641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18642 ac_sed_extra="$ac_vpsub
18643 $extrasub
18644 _ACEOF
18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18648 s|@configure_input@|$ac_sed_conf_input|;t t
18649 s&@top_builddir@&$ac_top_builddir_sub&;t t
18650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18651 s&@srcdir@&$ac_srcdir&;t t
18652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18653 s&@top_srcdir@&$ac_top_srcdir&;t t
18654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18655 s&@builddir@&$ac_builddir&;t t
18656 s&@abs_builddir@&$ac_abs_builddir&;t t
18657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18658 s&@INSTALL@&$ac_INSTALL&;t t
18659 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18660 $ac_datarootdir_hack
18662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18663 || as_fn_error "could not create $ac_file" "$LINENO" 5
18665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18669 which seems to be undefined. Please make sure it is defined." >&5
18670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18671 which seems to be undefined. Please make sure it is defined." >&2;}
18673 rm -f "$tmp/stdin"
18674 case $ac_file in
18675 -) cat "$tmp/out" && rm -f "$tmp/out";;
18676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18677 esac \
18678 || as_fn_error "could not create $ac_file" "$LINENO" 5
18682 # CONFIG_HEADER
18684 if test x"$ac_file" != x-; then
18686 $as_echo "/* $configure_input */" \
18687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18688 } >"$tmp/config.h" \
18689 || as_fn_error "could not create $ac_file" "$LINENO" 5
18690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18693 else
18694 rm -f "$ac_file"
18695 mv "$tmp/config.h" "$ac_file" \
18696 || as_fn_error "could not create $ac_file" "$LINENO" 5
18698 else
18699 $as_echo "/* $configure_input */" \
18700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18701 || as_fn_error "could not create -" "$LINENO" 5
18703 # Compute "$ac_file"'s index in $config_headers.
18704 _am_arg="$ac_file"
18705 _am_stamp_count=1
18706 for _am_header in $config_headers :; do
18707 case $_am_header in
18708 $_am_arg | $_am_arg:* )
18709 break ;;
18711 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18712 esac
18713 done
18714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18716 X"$_am_arg" : 'X\(//\)[^/]' \| \
18717 X"$_am_arg" : 'X\(//\)$' \| \
18718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18719 $as_echo X"$_am_arg" |
18720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18721 s//\1/
18724 /^X\(\/\/\)[^/].*/{
18725 s//\1/
18728 /^X\(\/\/\)$/{
18729 s//\1/
18732 /^X\(\/\).*/{
18733 s//\1/
18736 s/.*/./; q'`/stamp-h$_am_stamp_count
18739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18740 $as_echo "$as_me: executing $ac_file commands" >&6;}
18742 esac
18745 case $ac_file$ac_mode in
18746 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18747 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18748 # are listed without --file. Let's play safe and only enable the eval
18749 # if we detect the quoting.
18750 case $CONFIG_FILES in
18751 *\'*) eval set x "$CONFIG_FILES" ;;
18752 *) set x $CONFIG_FILES ;;
18753 esac
18754 shift
18755 for mf
18757 # Strip MF so we end up with the name of the file.
18758 mf=`echo "$mf" | sed -e 's/:.*$//'`
18759 # Check whether this is an Automake generated Makefile or not.
18760 # We used to match only the files named `Makefile.in', but
18761 # some people rename them; so instead we look at the file content.
18762 # Grep'ing the first line is not enough: some people post-process
18763 # each Makefile.in and add a new line on top of each file to say so.
18764 # Grep'ing the whole file is not good either: AIX grep has a line
18765 # limit of 2048, but all sed's we know have understand at least 4000.
18766 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18767 dirpart=`$as_dirname -- "$mf" ||
18768 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18769 X"$mf" : 'X\(//\)[^/]' \| \
18770 X"$mf" : 'X\(//\)$' \| \
18771 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18772 $as_echo X"$mf" |
18773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18774 s//\1/
18777 /^X\(\/\/\)[^/].*/{
18778 s//\1/
18781 /^X\(\/\/\)$/{
18782 s//\1/
18785 /^X\(\/\).*/{
18786 s//\1/
18789 s/.*/./; q'`
18790 else
18791 continue
18793 # Extract the definition of DEPDIR, am__include, and am__quote
18794 # from the Makefile without running `make'.
18795 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18796 test -z "$DEPDIR" && continue
18797 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18798 test -z "am__include" && continue
18799 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18800 # When using ansi2knr, U may be empty or an underscore; expand it
18801 U=`sed -n 's/^U = //p' < "$mf"`
18802 # Find all dependency output files, they are included files with
18803 # $(DEPDIR) in their names. We invoke sed twice because it is the
18804 # simplest approach to changing $(DEPDIR) to its actual value in the
18805 # expansion.
18806 for file in `sed -n "
18807 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18809 # Make sure the directory exists.
18810 test -f "$dirpart/$file" && continue
18811 fdir=`$as_dirname -- "$file" ||
18812 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813 X"$file" : 'X\(//\)[^/]' \| \
18814 X"$file" : 'X\(//\)$' \| \
18815 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18816 $as_echo X"$file" |
18817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18818 s//\1/
18821 /^X\(\/\/\)[^/].*/{
18822 s//\1/
18825 /^X\(\/\/\)$/{
18826 s//\1/
18829 /^X\(\/\).*/{
18830 s//\1/
18833 s/.*/./; q'`
18834 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18835 # echo "creating $dirpart/$file"
18836 echo '# dummy' > "$dirpart/$file"
18837 done
18838 done
18842 esac
18843 done # for ac_tag
18846 as_fn_exit 0
18847 _ACEOF
18848 ac_clean_files=$ac_clean_files_save
18850 test $ac_write_fail = 0 ||
18851 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18854 # configure is writing to config.log, and then calls config.status.
18855 # config.status does its own redirection, appending to config.log.
18856 # Unfortunately, on DOS this fails, as config.log is still kept open
18857 # by configure, so config.status won't be able to write to it; its
18858 # output is simply discarded. So we exec the FD to /dev/null,
18859 # effectively closing config.log, so it can be properly (re)opened and
18860 # appended to by config.status. When coming back to configure, we
18861 # need to make the FD available again.
18862 if test "$no_create" != yes; then
18863 ac_cs_success=:
18864 ac_config_status_args=
18865 test "$silent" = yes &&
18866 ac_config_status_args="$ac_config_status_args --quiet"
18867 exec 5>/dev/null
18868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18869 exec 5>>config.log
18870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18871 # would make configure fail if this is the last instruction.
18872 $ac_cs_success || as_fn_exit $?
18874 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18876 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}