Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for callisto 1.1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='callisto'
582 PACKAGE_TARNAME='callisto'
583 PACKAGE_VERSION='1.1.0'
584 PACKAGE_STRING='callisto 1.1.0'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/callisto.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_header_list=
626 ac_func_list=
627 ac_subst_vars='am__EXEEXT_FALSE
628 am__EXEEXT_TRUE
629 LTLIBOBJS
630 WARNINGFLAGS
631 LIBOBJS
632 EGREP
633 GREP
634 CPP
635 PTHREAD_CFLAGS
636 PTHREAD_LIBS
637 PTHREAD_CC
638 acx_pthread_config
639 host_os
640 host_vendor
641 host_cpu
642 host
643 build_os
644 build_vendor
645 build_cpu
646 build
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 am__nodep
651 AMDEPBACKSLASH
652 AMDEP_FALSE
653 AMDEP_TRUE
654 am__quote
655 am__include
656 DEPDIR
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 AM_BACKSLASH
665 AM_DEFAULT_VERBOSITY
666 AM_DEFAULT_V
667 AM_V
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
673 AWK
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_silent_rules
733 enable_dependency_tracking
734 enable_largefile
735 '
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CPP'
745
746
747 # Initialize some variables set by options.
748 ac_init_help=
749 ac_init_version=false
750 ac_unrecognized_opts=
751 ac_unrecognized_sep=
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
754 cache_file=/dev/null
755 exec_prefix=NONE
756 no_create=
757 no_recursion=
758 prefix=NONE
759 program_prefix=NONE
760 program_suffix=NONE
761 program_transform_name=s,x,x,
762 silent=
763 site=
764 srcdir=
765 verbose=
766 x_includes=NONE
767 x_libraries=NONE
768
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir='${exec_prefix}/bin'
776 sbindir='${exec_prefix}/sbin'
777 libexecdir='${exec_prefix}/libexec'
778 datarootdir='${prefix}/share'
779 datadir='${datarootdir}'
780 sysconfdir='${prefix}/etc'
781 sharedstatedir='${prefix}/com'
782 localstatedir='${prefix}/var'
783 includedir='${prefix}/include'
784 oldincludedir='/usr/include'
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir='${datarootdir}/info'
787 htmldir='${docdir}'
788 dvidir='${docdir}'
789 pdfdir='${docdir}'
790 psdir='${docdir}'
791 libdir='${exec_prefix}/lib'
792 localedir='${datarootdir}/locale'
793 mandir='${datarootdir}/man'
794
795 ac_prev=
796 ac_dashdash=
797 for ac_option
798 do
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
804 fi
805
806 case $ac_option in
807 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *=) ac_optarg= ;;
809 *) ac_optarg=yes ;;
810 esac
811
812 # Accept the important Cygnus configure options, so we can diagnose typos.
813
814 case $ac_dashdash$ac_option in
815 --)
816 ac_dashdash=yes ;;
817
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 bindir=$ac_optarg ;;
822
823 -build | --build | --buil | --bui | --bu)
824 ac_prev=build_alias ;;
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
826 build_alias=$ac_optarg ;;
827
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
833 cache_file=$ac_optarg ;;
834
835 --config-cache | -C)
836 cache_file=config.cache ;;
837
838 -datadir | --datadir | --datadi | --datad)
839 ac_prev=datadir ;;
840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
841 datadir=$ac_optarg ;;
842
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
849
850 -disable-* | --disable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 as_fn_error $? "invalid feature name: $ac_useropt"
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
858 *"
859 "enable_$ac_useropt"
860 "*) ;;
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
863 esac
864 eval enable_$ac_useropt=no ;;
865
866 -docdir | --docdir | --docdi | --doc | --do)
867 ac_prev=docdir ;;
868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869 docdir=$ac_optarg ;;
870
871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872 ac_prev=dvidir ;;
873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874 dvidir=$ac_optarg ;;
875
876 -enable-* | --enable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=\$ac_optarg ;;
891
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
899 exec_prefix=$ac_optarg ;;
900
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
903 with_gas=yes ;;
904
905 -help | --help | --hel | --he | -h)
906 ac_init_help=long ;;
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
911
912 -host | --host | --hos | --ho)
913 ac_prev=host_alias ;;
914 -host=* | --host=* | --hos=* | --ho=*)
915 host_alias=$ac_optarg ;;
916
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 ac_prev=htmldir ;;
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 | --ht=*)
921 htmldir=$ac_optarg ;;
922
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
928 includedir=$ac_optarg ;;
929
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 ac_prev=infodir ;;
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933 infodir=$ac_optarg ;;
934
935 -libdir | --libdir | --libdi | --libd)
936 ac_prev=libdir ;;
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 libdir=$ac_optarg ;;
939
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
945 libexecdir=$ac_optarg ;;
946
947 -localedir | --localedir | --localedi | --localed | --locale)
948 ac_prev=localedir ;;
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
951
952 -localstatedir | --localstatedir | --localstatedi | --localstated \
953 | --localstate | --localstat | --localsta | --localst | --locals)
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957 localstatedir=$ac_optarg ;;
958
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 ac_prev=mandir ;;
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962 mandir=$ac_optarg ;;
963
964 -nfp | --nfp | --nf)
965 # Obsolete; use --without-fp.
966 with_fp=no ;;
967
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n)
970 no_create=yes ;;
971
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 no_recursion=yes ;;
975
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983 oldincludedir=$ac_optarg ;;
984
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 ac_prev=prefix ;;
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 prefix=$ac_optarg ;;
989
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995 program_prefix=$ac_optarg ;;
996
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002 program_suffix=$ac_optarg ;;
1003
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1019 program_transform_name=$ac_optarg ;;
1020
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 ac_prev=pdfdir ;;
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1025
1026 -psdir | --psdir | --psdi | --psd | --ps)
1027 ac_prev=psdir ;;
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 psdir=$ac_optarg ;;
1030
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 silent=yes ;;
1034
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1039 sbindir=$ac_optarg ;;
1040
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1050 sharedstatedir=$ac_optarg ;;
1051
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1055 site=$ac_optarg ;;
1056
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1061
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1068
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1073
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1076
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1079
1080 -with-* | --with-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid package name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "with_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval with_$ac_useropt=\$ac_optarg ;;
1095
1096 -without-* | --without-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid package name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=no ;;
1111
1112 --x)
1113 # Obsolete; use --with-x.
1114 with_x=yes ;;
1115
1116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117 | --x-incl | --x-inc | --x-in | --x-i)
1118 ac_prev=x_includes ;;
1119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121 x_includes=$ac_optarg ;;
1122
1123 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125 ac_prev=x_libraries ;;
1126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128 x_libraries=$ac_optarg ;;
1129
1130 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1131 Try \`$0 --help' for more information"
1132 ;;
1133
1134 *=*)
1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136 # Reject names that are not valid shell variable names.
1137 case $ac_envvar in #(
1138 '' | [0-9]* | *[!_$as_cr_alnum]* )
1139 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1140 esac
1141 eval $ac_envvar=\$ac_optarg
1142 export $ac_envvar ;;
1143
1144 *)
1145 # FIXME: should be removed in autoconf 3.0.
1146 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 ;;
1151
1152 esac
1153 done
1154
1155 if test -n "$ac_prev"; then
1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157 as_fn_error $? "missing argument to $ac_option"
1158 fi
1159
1160 if test -n "$ac_unrecognized_opts"; then
1161 case $enable_option_checking in
1162 no) ;;
1163 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1164 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165 esac
1166 fi
1167
1168 # Check all directory arguments for consistency.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1173 do
1174 eval ac_val=\$$ac_var
1175 # Remove trailing slashes.
1176 case $ac_val in
1177 */ )
1178 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1179 eval $ac_var=\$ac_val;;
1180 esac
1181 # Be sure to have absolute directory names.
1182 case $ac_val in
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 esac
1186 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1187 done
1188
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1192 build=$build_alias
1193 host=$host_alias
1194 target=$target_alias
1195
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 elif test "x$build_alias" != "x$host_alias"; then
1201 cross_compiling=yes
1202 fi
1203 fi
1204
1205 ac_tool_prefix=
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208 test "$silent" = yes && exec 6>/dev/null
1209
1210
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error $? "working directory cannot be determined"
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error $? "pwd does not report name of working directory"
1217
1218
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\).*/{
1242 s//\1/
1243 q
1244 }
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1249 fi
1250 else
1251 ac_srcdir_defaulted=no
1252 fi
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256 fi
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 ac_abs_confdir=`(
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 \`configure' configures callisto 1.1.0 to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking ...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1310
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/callisto]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338 _ACEOF
1339
1340 cat <<\_ACEOF
1341
1342 Program names:
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346
1347 System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of callisto 1.1.0:";;
1356 esac
1357 cat <<\_ACEOF
1358
1359 Optional Features:
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --enable-silent-rules less verbose build output (undo: "make V=1")
1364 --disable-silent-rules verbose build output (undo: "make V=0")
1365 --enable-dependency-tracking
1366 do not reject slow dependency extractors
1367 --disable-dependency-tracking
1368 speeds up one-time build
1369 --disable-largefile omit support for large files
1370
1371 Some influential environment variables:
1372 CC C compiler command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375 nonstandard directory <lib dir>
1376 LIBS libraries to pass to the linker, e.g. -l<library>
1377 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378 you have headers in a nonstandard directory <include dir>
1379 CPP C preprocessor
1380
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1383
1384 Report bugs to <[email protected]>.
1385 _ACEOF
1386 ac_status=$?
1387 fi
1388
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 continue
1395 ac_builddir=.
1396
1397 case "$ac_dir" in
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *)
1400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407 esac
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1412
1413 case $srcdir in
1414 .) # We are building in place.
1415 ac_srcdir=.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 esac
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1442 fi
1443
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 callisto configure 1.1.0
1448 generated by GNU Autoconf 2.69
1449
1450 Copyright (C) 2012 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1455 fi
1456
1457 ## ------------------------ ##
1458 ## Autoconf initialization. ##
1459 ## ------------------------ ##
1460
1461 # ac_fn_c_try_compile LINENO
1462 # --------------------------
1463 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_compile ()
1465 {
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext
1468 if { { ac_try="$ac_compile"
1469 case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472 esac
1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 $as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1476 ac_status=$?
1477 if test -s conftest.err; then
1478 grep -v '^ *+' conftest.err >conftest.er1
1479 cat conftest.er1 >&5
1480 mv -f conftest.er1 conftest.err
1481 fi
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.$ac_objext; then :
1487 ac_retval=0
1488 else
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1491
1492 ac_retval=1
1493 fi
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status $ac_retval
1496
1497 } # ac_fn_c_try_compile
1498
1499 # ac_fn_c_try_link LINENO
1500 # -----------------------
1501 # Try to link conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_link ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext conftest$ac_exeext
1506 if { { ac_try="$ac_link"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_link") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest$ac_exeext && {
1525 test "$cross_compiling" = yes ||
1526 test -x conftest$ac_exeext
1527 }; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534 fi
1535 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1536 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1537 # interfere with the next link command; also delete a directory that is
1538 # left behind by Apple's compiler. We do this before executing the actions.
1539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541 as_fn_set_status $ac_retval
1542
1543 } # ac_fn_c_try_link
1544
1545 # ac_fn_c_try_cpp LINENO
1546 # ----------------------
1547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_cpp ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } > conftest.i && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_cpp
1581
1582 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1583 # -------------------------------------------------------
1584 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1585 # the include files in INCLUDES and setting the cache variable VAR
1586 # accordingly.
1587 ac_fn_c_check_header_mongrel ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if eval \${$3+:} false; then :
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if eval \${$3+:} false; then :
1594 $as_echo_n "(cached) " >&6
1595 fi
1596 eval ac_res=\$$3
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598 $as_echo "$ac_res" >&6; }
1599 else
1600 # Is the header compilable?
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1602 $as_echo_n "checking $2 usability... " >&6; }
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1605 $4
1606 #include <$2>
1607 _ACEOF
1608 if ac_fn_c_try_compile "$LINENO"; then :
1609 ac_header_compiler=yes
1610 else
1611 ac_header_compiler=no
1612 fi
1613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1615 $as_echo "$ac_header_compiler" >&6; }
1616
1617 # Is the header present?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1619 $as_echo_n "checking $2 presence... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_cpp "$LINENO"; then :
1625 ac_header_preproc=yes
1626 else
1627 ac_header_preproc=no
1628 fi
1629 rm -f conftest.err conftest.i conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1631 $as_echo "$ac_header_preproc" >&6; }
1632
1633 # So? What about this header?
1634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1635 yes:no: )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1637 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 ;;
1641 no:yes:* )
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1643 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1645 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1647 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1649 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652 ( $as_echo "## ------------------------------ ##
1653 ## Report this to [email protected] ##
1654 ## ------------------------------ ##"
1655 ) | sed "s/^/$as_me: WARNING: /" >&2
1656 ;;
1657 esac
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1662 else
1663 eval "$3=\$ac_header_compiler"
1664 fi
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_header_mongrel
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708 fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 $4
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 fi
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744 } # ac_fn_c_check_header_compile
1745
1746 # ac_fn_c_find_intX_t LINENO BITS VAR
1747 # -----------------------------------
1748 # Finds a signed integer type with width BITS, setting cache variable VAR
1749 # accordingly.
1750 ac_fn_c_find_intX_t ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1754 $as_echo_n "checking for int$2_t... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 eval "$3=no"
1759 # Order is important - never check a type that is potentially smaller
1760 # than half of the expected target width.
1761 for ac_type in int$2_t 'int' 'long int' \
1762 'long long int' 'short int' 'signed char'; do
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $ac_includes_default
1766 enum { N = $2 / 2 - 1 };
1767 int
1768 main ()
1769 {
1770 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1771 test_array [0] = 0;
1772 return test_array [0];
1773
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 $ac_includes_default
1782 enum { N = $2 / 2 - 1 };
1783 int
1784 main ()
1785 {
1786 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1787 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1788 test_array [0] = 0;
1789 return test_array [0];
1790
1791 ;
1792 return 0;
1793 }
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796
1797 else
1798 case $ac_type in #(
1799 int$2_t) :
1800 eval "$3=yes" ;; #(
1801 *) :
1802 eval "$3=\$ac_type" ;;
1803 esac
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 if eval test \"x\$"$3"\" = x"no"; then :
1809
1810 else
1811 break
1812 fi
1813 done
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_find_intX_t
1821
1822 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1823 # -------------------------------------------
1824 # Tests whether TYPE exists after having included INCLUDES, setting cache
1825 # variable VAR accordingly.
1826 ac_fn_c_check_type ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 eval "$3=no"
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $4
1838 int
1839 main ()
1840 {
1841 if (sizeof ($2))
1842 return 0;
1843 ;
1844 return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 int
1852 main ()
1853 {
1854 if (sizeof (($2)))
1855 return 0;
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861
1862 else
1863 eval "$3=yes"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_type
1875
1876 # ac_fn_c_find_uintX_t LINENO BITS VAR
1877 # ------------------------------------
1878 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1879 # accordingly.
1880 ac_fn_c_find_uintX_t ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1884 $as_echo_n "checking for uint$2_t... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=no"
1889 # Order is important - never check a type that is potentially smaller
1890 # than half of the expected target width.
1891 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1892 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 $ac_includes_default
1896 int
1897 main ()
1898 {
1899 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1900 test_array [0] = 0;
1901 return test_array [0];
1902
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 case $ac_type in #(
1909 uint$2_t) :
1910 eval "$3=yes" ;; #(
1911 *) :
1912 eval "$3=\$ac_type" ;;
1913 esac
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 if eval test \"x\$"$3"\" = x"no"; then :
1917
1918 else
1919 break
1920 fi
1921 done
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_find_uintX_t
1929
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1946
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1951
1952 #ifdef __STDC__
1953 # include <limits.h>
1954 #else
1955 # include <assert.h>
1956 #endif
1957
1958 #undef $2
1959
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1963 #ifdef __cplusplus
1964 extern "C"
1965 #endif
1966 char $2 ();
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1971 choke me
1972 #endif
1973
1974 int
1975 main ()
1976 {
1977 return $2 ();
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_link "$LINENO"; then :
1983 eval "$3=yes"
1984 else
1985 eval "$3=no"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995 } # ac_fn_c_check_func
1996 cat >config.log <<_ACEOF
1997 This file contains any messages produced by compilers while
1998 running configure, to aid debugging if configure makes a mistake.
1999
2000 It was created by callisto $as_me 1.1.0, which was
2001 generated by GNU Autoconf 2.69. Invocation command line was
2002
2003 $ $0 $@
2004
2005 _ACEOF
2006 exec 5>>config.log
2007 {
2008 cat <<_ASUNAME
2009 ## --------- ##
2010 ## Platform. ##
2011 ## --------- ##
2012
2013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2018
2019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2021
2022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2025 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2029
2030 _ASUNAME
2031
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 $as_echo "PATH: $as_dir"
2038 done
2039 IFS=$as_save_IFS
2040
2041 } >&5
2042
2043 cat >&5 <<_ACEOF
2044
2045
2046 ## ----------- ##
2047 ## Core tests. ##
2048 ## ----------- ##
2049
2050 _ACEOF
2051
2052
2053 # Keep a trace of the command line.
2054 # Strip out --no-create and --no-recursion so they do not pile up.
2055 # Strip out --silent because we don't want to record it for future runs.
2056 # Also quote any args containing shell meta-characters.
2057 # Make two passes to allow for proper duplicate-argument suppression.
2058 ac_configure_args=
2059 ac_configure_args0=
2060 ac_configure_args1=
2061 ac_must_keep_next=false
2062 for ac_pass in 1 2
2063 do
2064 for ac_arg
2065 do
2066 case $ac_arg in
2067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2069 | -silent | --silent | --silen | --sile | --sil)
2070 continue ;;
2071 *\'*)
2072 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 esac
2074 case $ac_pass in
2075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2076 2)
2077 as_fn_append ac_configure_args1 " '$ac_arg'"
2078 if test $ac_must_keep_next = true; then
2079 ac_must_keep_next=false # Got value, back to normal.
2080 else
2081 case $ac_arg in
2082 *=* | --config-cache | -C | -disable-* | --disable-* \
2083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2085 | -with-* | --with-* | -without-* | --without-* | --x)
2086 case "$ac_configure_args0 " in
2087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2088 esac
2089 ;;
2090 -* ) ac_must_keep_next=true ;;
2091 esac
2092 fi
2093 as_fn_append ac_configure_args " '$ac_arg'"
2094 ;;
2095 esac
2096 done
2097 done
2098 { ac_configure_args0=; unset ac_configure_args0;}
2099 { ac_configure_args1=; unset ac_configure_args1;}
2100
2101 # When interrupted or exit'd, cleanup temporary files, and complete
2102 # config.log. We remove comments because anyway the quotes in there
2103 # would cause problems or look ugly.
2104 # WARNING: Use '\'' to represent an apostrophe within the trap.
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2106 trap 'exit_status=$?
2107 # Save into config.log some information that might help in debugging.
2108 {
2109 echo
2110
2111 $as_echo "## ---------------- ##
2112 ## Cache variables. ##
2113 ## ---------------- ##"
2114 echo
2115 # The following way of writing the cache mishandles newlines in values,
2116 (
2117 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2118 eval ac_val=\$$ac_var
2119 case $ac_val in #(
2120 *${as_nl}*)
2121 case $ac_var in #(
2122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2123 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2124 esac
2125 case $ac_var in #(
2126 _ | IFS | as_nl) ;; #(
2127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2128 *) { eval $ac_var=; unset $ac_var;} ;;
2129 esac ;;
2130 esac
2131 done
2132 (set) 2>&1 |
2133 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2134 *${as_nl}ac_space=\ *)
2135 sed -n \
2136 "s/'\''/'\''\\\\'\'''\''/g;
2137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2138 ;; #(
2139 *)
2140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 ;;
2142 esac |
2143 sort
2144 )
2145 echo
2146
2147 $as_echo "## ----------------- ##
2148 ## Output variables. ##
2149 ## ----------------- ##"
2150 echo
2151 for ac_var in $ac_subst_vars
2152 do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2160
2161 if test -n "$ac_subst_files"; then
2162 $as_echo "## ------------------- ##
2163 ## File substitutions. ##
2164 ## ------------------- ##"
2165 echo
2166 for ac_var in $ac_subst_files
2167 do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
2173 done | sort
2174 echo
2175 fi
2176
2177 if test -s confdefs.h; then
2178 $as_echo "## ----------- ##
2179 ## confdefs.h. ##
2180 ## ----------- ##"
2181 echo
2182 cat confdefs.h
2183 echo
2184 fi
2185 test "$ac_signal" != 0 &&
2186 $as_echo "$as_me: caught signal $ac_signal"
2187 $as_echo "$as_me: exit $exit_status"
2188 } >&5
2189 rm -f core *.core core.conftest.* &&
2190 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2191 exit $exit_status
2192 ' 0
2193 for ac_signal in 1 2 13 15; do
2194 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2195 done
2196 ac_signal=0
2197
2198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2199 rm -f -r conftest* confdefs.h
2200
2201 $as_echo "/* confdefs.h */" > confdefs.h
2202
2203 # Predefined preprocessor variables.
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_NAME "$PACKAGE_NAME"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_STRING "$PACKAGE_STRING"
2219 _ACEOF
2220
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2223 _ACEOF
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_URL "$PACKAGE_URL"
2227 _ACEOF
2228
2229
2230 # Let the site file select an alternate cache file if it wants to.
2231 # Prefer an explicitly selected file to automatically selected ones.
2232 ac_site_file1=NONE
2233 ac_site_file2=NONE
2234 if test -n "$CONFIG_SITE"; then
2235 # We do not want a PATH search for config.site.
2236 case $CONFIG_SITE in #((
2237 -*) ac_site_file1=./$CONFIG_SITE;;
2238 */*) ac_site_file1=$CONFIG_SITE;;
2239 *) ac_site_file1=./$CONFIG_SITE;;
2240 esac
2241 elif test "x$prefix" != xNONE; then
2242 ac_site_file1=$prefix/share/config.site
2243 ac_site_file2=$prefix/etc/config.site
2244 else
2245 ac_site_file1=$ac_default_prefix/share/config.site
2246 ac_site_file2=$ac_default_prefix/etc/config.site
2247 fi
2248 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2249 do
2250 test "x$ac_site_file" = xNONE && continue
2251 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2253 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2254 sed 's/^/| /' "$ac_site_file" >&5
2255 . "$ac_site_file" \
2256 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error $? "failed to load site script $ac_site_file
2259 See \`config.log' for more details" "$LINENO" 5; }
2260 fi
2261 done
2262
2263 if test -r "$cache_file"; then
2264 # Some versions of bash will fail to source /dev/null (special files
2265 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2266 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268 $as_echo "$as_me: loading cache $cache_file" >&6;}
2269 case $cache_file in
2270 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2271 *) . "./$cache_file";;
2272 esac
2273 fi
2274 else
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276 $as_echo "$as_me: creating cache $cache_file" >&6;}
2277 >$cache_file
2278 fi
2279
2280 as_fn_append ac_header_list " sys/time.h"
2281 as_fn_append ac_header_list " unistd.h"
2282 as_fn_append ac_func_list " alarm"
2283 # Check that the precious variables saved in the cache have kept the same
2284 # value.
2285 ac_cache_corrupted=false
2286 for ac_var in $ac_precious_vars; do
2287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288 eval ac_new_set=\$ac_env_${ac_var}_set
2289 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290 eval ac_new_val=\$ac_env_${ac_var}_value
2291 case $ac_old_set,$ac_new_set in
2292 set,)
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2295 ac_cache_corrupted=: ;;
2296 ,set)
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2299 ac_cache_corrupted=: ;;
2300 ,);;
2301 *)
2302 if test "x$ac_old_val" != "x$ac_new_val"; then
2303 # differences in whitespace do not lead to failure.
2304 ac_old_val_w=`echo x $ac_old_val`
2305 ac_new_val_w=`echo x $ac_new_val`
2306 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309 ac_cache_corrupted=:
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313 eval $ac_var=\$ac_old_val
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2316 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2318 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2319 fi;;
2320 esac
2321 # Pass precious variables to config.status.
2322 if test "$ac_new_set" = set; then
2323 case $ac_new_val in
2324 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 *) ac_arg=$ac_var=$ac_new_val ;;
2326 esac
2327 case " $ac_configure_args " in
2328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2329 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2330 esac
2331 fi
2332 done
2333 if $ac_cache_corrupted; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 fi
2340 ## -------------------- ##
2341 ## Main body of script. ##
2342 ## -------------------- ##
2343
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350
2351
2352 ac_config_headers="$ac_config_headers config.h"
2353
2354
2355 am__api_version='1.14'
2356
2357 ac_aux_dir=
2358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2359 if test -f "$ac_dir/install-sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install-sh -c"
2362 break
2363 elif test -f "$ac_dir/install.sh"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/install.sh -c"
2366 break
2367 elif test -f "$ac_dir/shtool"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/shtool install -c"
2370 break
2371 fi
2372 done
2373 if test -z "$ac_aux_dir"; then
2374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2375 fi
2376
2377 # These three variables are undocumented and unsupported,
2378 # and are intended to be withdrawn in a future Autoconf release.
2379 # They can cause serious problems if a builder's source tree is in a directory
2380 # whose full name contains unusual characters.
2381 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2382 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2383 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2384
2385
2386 # Find a good install program. We prefer a C program (faster),
2387 # so one script is as good as another. But avoid the broken or
2388 # incompatible versions:
2389 # SysV /etc/install, /usr/sbin/install
2390 # SunOS /usr/etc/install
2391 # IRIX /sbin/install
2392 # AIX /bin/install
2393 # AmigaOS /C/install, which installs bootblocks on floppy discs
2394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2397 # OS/2's system install, which has a completely different semantic
2398 # ./install, which can be erroneously created by make from ./install.sh.
2399 # Reject install programs that cannot install multiple files.
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2401 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2402 if test -z "$INSTALL"; then
2403 if ${ac_cv_path_install+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 # Account for people who put trailing slashes in PATH elements.
2412 case $as_dir/ in #((
2413 ./ | .// | /[cC]/* | \
2414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2416 /usr/ucb/* ) ;;
2417 *)
2418 # OSF1 and SCO ODT 3.0 have their own names for install.
2419 # Don't use installbsd from OSF since it installs stuff as root
2420 # by default.
2421 for ac_prog in ginstall scoinst install; do
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2424 if test $ac_prog = install &&
2425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426 # AIX install. It has an incompatible calling convention.
2427 :
2428 elif test $ac_prog = install &&
2429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430 # program-specific install script used by HP pwplus--don't use.
2431 :
2432 else
2433 rm -rf conftest.one conftest.two conftest.dir
2434 echo one > conftest.one
2435 echo two > conftest.two
2436 mkdir conftest.dir
2437 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2438 test -s conftest.one && test -s conftest.two &&
2439 test -s conftest.dir/conftest.one &&
2440 test -s conftest.dir/conftest.two
2441 then
2442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2443 break 3
2444 fi
2445 fi
2446 fi
2447 done
2448 done
2449 ;;
2450 esac
2451
2452 done
2453 IFS=$as_save_IFS
2454
2455 rm -rf conftest.one conftest.two conftest.dir
2456
2457 fi
2458 if test "${ac_cv_path_install+set}" = set; then
2459 INSTALL=$ac_cv_path_install
2460 else
2461 # As a last resort, use the slow shell script. Don't cache a
2462 # value for INSTALL within a source directory, because that will
2463 # break other packages using the cache if that directory is
2464 # removed, or if the value is a relative name.
2465 INSTALL=$ac_install_sh
2466 fi
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2469 $as_echo "$INSTALL" >&6; }
2470
2471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2472 # It thinks the first close brace ends the variable substitution.
2473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2474
2475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2476
2477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2478
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2480 $as_echo_n "checking whether build environment is sane... " >&6; }
2481 # Reject unsafe characters in $srcdir or the absolute working directory
2482 # name. Accept space and tab only in the latter.
2483 am_lf='
2484 '
2485 case `pwd` in
2486 *[\\\"\#\$\&\'\`$am_lf]*)
2487 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2488 esac
2489 case $srcdir in
2490 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2491 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2492 esac
2493
2494 # Do 'set' in a subshell so we don't clobber the current shell's
2495 # arguments. Must try -L first in case configure is actually a
2496 # symlink; some systems play weird games with the mod time of symlinks
2497 # (eg FreeBSD returns the mod time of the symlink's containing
2498 # directory).
2499 if (
2500 am_has_slept=no
2501 for am_try in 1 2; do
2502 echo "timestamp, slept: $am_has_slept" > conftest.file
2503 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2504 if test "$*" = "X"; then
2505 # -L didn't work.
2506 set X `ls -t "$srcdir/configure" conftest.file`
2507 fi
2508 if test "$*" != "X $srcdir/configure conftest.file" \
2509 && test "$*" != "X conftest.file $srcdir/configure"; then
2510
2511 # If neither matched, then we have a broken ls. This can happen
2512 # if, for instance, CONFIG_SHELL is bash and it inherits a
2513 # broken ls alias from the environment. This has actually
2514 # happened. Such a system could not be considered "sane".
2515 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2516 alias in your environment" "$LINENO" 5
2517 fi
2518 if test "$2" = conftest.file || test $am_try -eq 2; then
2519 break
2520 fi
2521 # Just in case.
2522 sleep 1
2523 am_has_slept=yes
2524 done
2525 test "$2" = conftest.file
2526 )
2527 then
2528 # Ok.
2529 :
2530 else
2531 as_fn_error $? "newly created file is older than distributed files!
2532 Check your system clock" "$LINENO" 5
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2535 $as_echo "yes" >&6; }
2536 # If we didn't sleep, we still need to ensure time stamps of config.status and
2537 # generated files are strictly newer.
2538 am_sleep_pid=
2539 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2540 ( sleep 1 ) &
2541 am_sleep_pid=$!
2542 fi
2543
2544 rm -f conftest.file
2545
2546 test "$program_prefix" != NONE &&
2547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE &&
2550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s,x,x', remove it if useless.
2553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2555
2556 # Expand $ac_aux_dir to an absolute path.
2557 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2558
2559 if test x"${MISSING+set}" != xset; then
2560 case $am_aux_dir in
2561 *\ * | *\ *)
2562 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2563 *)
2564 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2565 esac
2566 fi
2567 # Use eval to expand $SHELL
2568 if eval "$MISSING --is-lightweight"; then
2569 am_missing_run="$MISSING "
2570 else
2571 am_missing_run=
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2573 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2574 fi
2575
2576 if test x"${install_sh}" != xset; then
2577 case $am_aux_dir in
2578 *\ * | *\ *)
2579 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2580 *)
2581 install_sh="\${SHELL} $am_aux_dir/install-sh"
2582 esac
2583 fi
2584
2585 # Installed binaries are usually stripped using 'strip' when the user
2586 # run "make install-strip". However 'strip' might not be the right
2587 # tool to use in cross-compilation environments, therefore Automake
2588 # will honor the 'STRIP' environment variable to overrule this program.
2589 if test "$cross_compiling" != no; then
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}strip; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_STRIP+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$STRIP"; then
2599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2611 fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 STRIP=$ac_cv_prog_STRIP
2619 if test -n "$STRIP"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2621 $as_echo "$STRIP" >&6; }
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627
2628 fi
2629 if test -z "$ac_cv_prog_STRIP"; then
2630 ac_ct_STRIP=$STRIP
2631 # Extract the first word of "strip", so it can be a program name with args.
2632 set dummy strip; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$ac_ct_STRIP"; then
2639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_ac_ct_STRIP="strip"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2659 if test -n "$ac_ct_STRIP"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2661 $as_echo "$ac_ct_STRIP" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2665 fi
2666
2667 if test "x$ac_ct_STRIP" = x; then
2668 STRIP=":"
2669 else
2670 case $cross_compiling:$ac_tool_warned in
2671 yes:)
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2674 ac_tool_warned=yes ;;
2675 esac
2676 STRIP=$ac_ct_STRIP
2677 fi
2678 else
2679 STRIP="$ac_cv_prog_STRIP"
2680 fi
2681
2682 fi
2683 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2686 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2687 if test -z "$MKDIR_P"; then
2688 if ${ac_cv_path_mkdir+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in mkdir gmkdir; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2699 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2700 'mkdir (GNU coreutils) '* | \
2701 'mkdir (coreutils) '* | \
2702 'mkdir (fileutils) '4.1*)
2703 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2704 break 3;;
2705 esac
2706 done
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712
2713 test -d ./--version && rmdir ./--version
2714 if test "${ac_cv_path_mkdir+set}" = set; then
2715 MKDIR_P="$ac_cv_path_mkdir -p"
2716 else
2717 # As a last resort, use the slow shell script. Don't cache a
2718 # value for MKDIR_P within a source directory, because that will
2719 # break other packages using the cache if that directory is
2720 # removed, or if the value is a relative name.
2721 MKDIR_P="$ac_install_sh -d"
2722 fi
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2725 $as_echo "$MKDIR_P" >&6; }
2726
2727 for ac_prog in gawk mawk nawk awk
2728 do
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_AWK+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$AWK"; then
2737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_AWK="$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755 fi
2756 AWK=$ac_cv_prog_AWK
2757 if test -n "$AWK"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759 $as_echo "$AWK" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766 test -n "$AWK" && break
2767 done
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2770 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2771 set x ${MAKE-make}
2772 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2773 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 cat >conftest.make <<\_ACEOF
2777 SHELL = /bin/sh
2778 all:
2779 @echo '@@@%%%=$(MAKE)=@@@%%%'
2780 _ACEOF
2781 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2783 *@@@%%%=?*=@@@%%%*)
2784 eval ac_cv_prog_make_${ac_make}_set=yes;;
2785 *)
2786 eval ac_cv_prog_make_${ac_make}_set=no;;
2787 esac
2788 rm -f conftest.make
2789 fi
2790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2792 $as_echo "yes" >&6; }
2793 SET_MAKE=
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 SET_MAKE="MAKE=${MAKE-make}"
2798 fi
2799
2800 rm -rf .tst 2>/dev/null
2801 mkdir .tst 2>/dev/null
2802 if test -d .tst; then
2803 am__leading_dot=.
2804 else
2805 am__leading_dot=_
2806 fi
2807 rmdir .tst 2>/dev/null
2808
2809 # Check whether --enable-silent-rules was given.
2810 if test "${enable_silent_rules+set}" = set; then :
2811 enableval=$enable_silent_rules;
2812 fi
2813
2814 case $enable_silent_rules in # (((
2815 yes) AM_DEFAULT_VERBOSITY=0;;
2816 no) AM_DEFAULT_VERBOSITY=1;;
2817 *) AM_DEFAULT_VERBOSITY=1;;
2818 esac
2819 am_make=${MAKE-make}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2821 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2822 if ${am_cv_make_support_nested_variables+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if $as_echo 'TRUE=$(BAR$(V))
2826 BAR0=false
2827 BAR1=true
2828 V=1
2829 am__doit:
2830 @$(TRUE)
2831 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2832 am_cv_make_support_nested_variables=yes
2833 else
2834 am_cv_make_support_nested_variables=no
2835 fi
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2838 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2839 if test $am_cv_make_support_nested_variables = yes; then
2840 AM_V='$(V)'
2841 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2842 else
2843 AM_V=$AM_DEFAULT_VERBOSITY
2844 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2845 fi
2846 AM_BACKSLASH='\'
2847
2848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2850 # is not polluted with repeated "-I."
2851 am__isrc=' -I$(srcdir)'
2852 # test to see if srcdir already configured
2853 if test -f $srcdir/config.status; then
2854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2855 fi
2856 fi
2857
2858 # test whether we have cygpath
2859 if test -z "$CYGPATH_W"; then
2860 if (cygpath --version) >/dev/null 2>/dev/null; then
2861 CYGPATH_W='cygpath -w'
2862 else
2863 CYGPATH_W=echo
2864 fi
2865 fi
2866
2867
2868 # Define the identity of the package.
2869 PACKAGE='callisto'
2870 VERSION='1.1.0'
2871
2872
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE "$PACKAGE"
2875 _ACEOF
2876
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define VERSION "$VERSION"
2880 _ACEOF
2881
2882 # Some tools Automake needs.
2883
2884 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2885
2886
2887 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2888
2889
2890 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2891
2892
2893 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2894
2895
2896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2897
2898 # For better backward compatibility. To be removed once Automake 1.9.x
2899 # dies out for good. For more background, see:
2900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2901 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2902 mkdir_p='$(MKDIR_P)'
2903
2904 # We need awk for the "check" target. The system "awk" is bad on
2905 # some platforms.
2906 # Always define AMTAR for backward compatibility. Yes, it's still used
2907 # in the wild :-( We should find a proper way to deprecate it ...
2908 AMTAR='$${TAR-tar}'
2909
2910
2911 # We'll loop over all known methods to create a tar archive until one works.
2912 _am_tools='gnutar pax cpio none'
2913
2914 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2915
2916
2917
2918
2919
2920
2921 # POSIX will say in a future version that running "rm -f" with no argument
2922 # is OK; and we want to be able to make that assumption in our Makefile
2923 # recipes. So use an aggressive probe to check that the usage we want is
2924 # actually supported "in the wild" to an acceptable degree.
2925 # See automake bug#10828.
2926 # To make any issue more visible, cause the running configure to be aborted
2927 # by default if the 'rm' program in use doesn't match our expectations; the
2928 # user can still override this though.
2929 if rm -f && rm -fr && rm -rf; then : OK; else
2930 cat >&2 <<'END'
2931 Oops!
2932
2933 Your 'rm' program seems unable to run without file operands specified
2934 on the command line, even when the '-f' option is present. This is contrary
2935 to the behaviour of most rm programs out there, and not conforming with
2936 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2937
2938 Please tell [email protected] about your system, including the value
2939 of your $PATH and any error possibly output before this message. This
2940 can help us improve future automake versions.
2941
2942 END
2943 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2944 echo 'Configuration will proceed anyway, since you have set the' >&2
2945 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2946 echo >&2
2947 else
2948 cat >&2 <<'END'
2949 Aborting the configuration process, to ensure you take notice of the issue.
2950
2951 You can download and install GNU coreutils to get an 'rm' implementation
2952 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2953
2954 If you want to complete the configuration process using your problematic
2955 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2956 to "yes", and re-run configure.
2957
2958 END
2959 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2960 fi
2961 fi
2962
2963
2964 # Checks for programs.
2965 ac_ext=c
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007
3008 fi
3009 if test -z "$ac_cv_prog_CC"; then
3010 ac_ct_CC=$CC
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012 set dummy gcc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047 if test "x$ac_ct_CC" = x; then
3048 CC=""
3049 else
3050 case $cross_compiling:$ac_tool_warned in
3051 yes:)
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3055 esac
3056 CC=$ac_ct_CC
3057 fi
3058 else
3059 CC="$ac_cv_prog_CC"
3060 fi
3061
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 fi
3102 fi
3103 if test -z "$CC"; then
3104 # Extract the first word of "cc", so it can be a program name with args.
3105 set dummy cc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 ac_prog_rejected=no
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123 ac_prog_rejected=yes
3124 continue
3125 fi
3126 ac_cv_prog_CC="cc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 if test $ac_prog_rejected = yes; then
3135 # We found a bogon in the path, so make sure we never use it.
3136 set dummy $ac_cv_prog_CC
3137 shift
3138 if test $# != 0; then
3139 # We chose a different compiler from the bogus one.
3140 # However, it has the same basename, so the bogon will be chosen
3141 # first if we set CC to just the basename; use the full file name.
3142 shift
3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144 fi
3145 fi
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$CC" && break
3201 done
3202 fi
3203 if test -z "$CC"; then
3204 ac_ct_CC=$CC
3205 for ac_prog in cl.exe
3206 do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_ac_ct_CC="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244 test -n "$ac_ct_CC" && break
3245 done
3246
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251 yes:)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3255 esac
3256 CC=$ac_ct_CC
3257 fi
3258 fi
3259
3260 fi
3261
3262
3263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "no acceptable C compiler found in \$PATH
3266 See \`config.log' for more details" "$LINENO" 5; }
3267
3268 # Provide some information about the compiler.
3269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3270 set X $ac_compile
3271 ac_compiler=$2
3272 for ac_option in --version -v -V -qversion; do
3273 { { ac_try="$ac_compiler $ac_option >&5"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3281 ac_status=$?
3282 if test -s conftest.err; then
3283 sed '10a\
3284 ... rest of stderr output deleted ...
3285 10q' conftest.err >conftest.er1
3286 cat conftest.er1 >&5
3287 fi
3288 rm -f conftest.er1 conftest.err
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3291 done
3292
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295
3296 int
3297 main ()
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 ac_clean_files_save=$ac_clean_files
3305 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306 # Try to create an executable without -o first, disregard a.out.
3307 # It will help us diagnose broken compilers, and finding out an intuition
3308 # of exeext.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3312
3313 # The possible output files:
3314 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3315
3316 ac_rmfiles=
3317 for ac_file in $ac_files
3318 do
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 esac
3323 done
3324 rm -f $ac_rmfiles
3325
3326 if { { ac_try="$ac_link_default"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link_default") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3340 # so that the user can short-circuit this test for compilers unknown to
3341 # Autoconf.
3342 for ac_file in $ac_files ''
3343 do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347 ;;
3348 [ab].out )
3349 # We found the default executable, but exeext='' is most
3350 # certainly right.
3351 break;;
3352 *.* )
3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3354 then :; else
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 fi
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an `-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3361 # actually working.
3362 break;;
3363 * )
3364 break;;
3365 esac
3366 done
3367 test "$ac_cv_exeext" = no && ac_cv_exeext=
3368
3369 else
3370 ac_file=''
3371 fi
3372 if test -z "$ac_file"; then :
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error 77 "C compiler cannot create executables
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389 $as_echo "$ac_file" >&6; }
3390 ac_exeext=$ac_cv_exeext
3391
3392 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395 $as_echo_n "checking for suffix of executables... " >&6; }
3396 if { { ac_try="$ac_link"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409 # work properly (i.e., refer to `conftest.exe'), while it won't with
3410 # `rm'.
3411 for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 break;;
3417 * ) break;;
3418 esac
3419 done
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424 See \`config.log' for more details" "$LINENO" 5; }
3425 fi
3426 rm -f conftest conftest$ac_cv_exeext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428 $as_echo "$ac_cv_exeext" >&6; }
3429
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3432 ac_exeext=$EXEEXT
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435 #include <stdio.h>
3436 int
3437 main ()
3438 {
3439 FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3441
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 ac_clean_files="$ac_clean_files conftest.out"
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 if test "$cross_compiling" != yes; then
3452 { { ac_try="$ac_link"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 if { ac_try='./conftest$ac_cv_exeext'
3464 { { case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_try") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; }; then
3474 cross_compiling=no
3475 else
3476 if test "$cross_compiling" = maybe; then
3477 cross_compiling=yes
3478 else
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot run C compiled programs.
3482 If you meant to cross compile, use \`--host'.
3483 See \`config.log' for more details" "$LINENO" 5; }
3484 fi
3485 fi
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3489
3490 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491 ac_clean_files=$ac_clean_files_save
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493 $as_echo_n "checking for suffix of object files... " >&6; }
3494 if ${ac_cv_objext+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.o conftest.obj
3509 if { { ac_try="$ac_compile"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compile") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525 break;;
3526 esac
3527 done
3528 else
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540 $as_echo "$ac_cv_objext" >&6; }
3541 OBJEXT=$ac_cv_objext
3542 ac_objext=$OBJEXT
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if ${ac_cv_c_compiler_gnu+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554 #ifndef __GNUC__
3555 choke me
3556 #endif
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_compiler_gnu=yes
3564 else
3565 ac_compiler_gnu=no
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3574 GCC=yes
3575 else
3576 GCC=
3577 fi
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if ${ac_cv_prog_cc_g+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3587 ac_cv_prog_cc_g=no
3588 CFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_g=yes
3602 else
3603 CFLAGS=""
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616
3617 else
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3619 CFLAGS="-g"
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622
3623 int
3624 main ()
3625 {
3626
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_g=yes
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3650 fi
3651 else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3656 fi
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if ${ac_cv_prog_cc_c89+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_cv_prog_cc_c89=no
3664 ac_save_CC=$CC
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #include <stdarg.h>
3668 #include <stdio.h>
3669 struct stat;
3670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3671 struct buf { int x; };
3672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673 static char *e (p, i)
3674 char **p;
3675 int i;
3676 {
3677 return p[i];
3678 }
3679 static char *f (char * (*g) (char **, int), char **p, ...)
3680 {
3681 char *s;
3682 va_list v;
3683 va_start (v,p);
3684 s = g (p, va_arg (v,int));
3685 va_end (v);
3686 return s;
3687 }
3688
3689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3690 function prototypes and stuff, but not '\xHH' hex character constants.
3691 These don't provoke an error unfortunately, instead are silently treated
3692 as 'x'. The following induces an error, until -std is added to get
3693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3694 array size at least. It's necessary to write '\x00'==0 to get something
3695 that's true only with -std. */
3696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697
3698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699 inside strings and character constants. */
3700 #define FOO(x) 'x'
3701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702
3703 int test (int i, double x);
3704 struct s1 {int (*f) (int a);};
3705 struct s2 {int (*f) (double a);};
3706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707 int argc;
3708 char **argv;
3709 int
3710 main ()
3711 {
3712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719 do
3720 CC="$ac_save_CC $ac_arg"
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_cv_prog_cc_c89=$ac_arg
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext
3725 test "x$ac_cv_prog_cc_c89" != "xno" && break
3726 done
3727 rm -f conftest.$ac_ext
3728 CC=$ac_save_CC
3729
3730 fi
3731 # AC_CACHE_VAL
3732 case "x$ac_cv_prog_cc_c89" in
3733 x)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 $as_echo "none needed" >&6; } ;;
3736 xno)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;;
3739 *)
3740 CC="$CC $ac_cv_prog_cc_c89"
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743 esac
3744 if test "x$ac_cv_prog_cc_c89" != xno; then :
3745
3746 fi
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3760 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3761 if ${am_cv_prog_cc_c_o+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 int
3768 main ()
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 # Make sure it works both with $CC and with simple cc.
3776 # Following AC_PROG_CC_C_O, we do the test twice because some
3777 # compilers refuse to overwrite an existing .o file with -o,
3778 # though they will create one.
3779 am_cv_prog_cc_c_o=yes
3780 for am_i in 1 2; do
3781 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3782 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } \
3786 && test -f conftest2.$ac_objext; then
3787 : OK
3788 else
3789 am_cv_prog_cc_c_o=no
3790 break
3791 fi
3792 done
3793 rm -f core conftest*
3794 unset am_i
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3797 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3798 if test "$am_cv_prog_cc_c_o" != yes; then
3799 # Losing compiler, so override with the script.
3800 # FIXME: It is wrong to rewrite CC.
3801 # But if we don't then we get into trouble of one sort or another.
3802 # A longer-term fix would be to have automake use am__CC in this case,
3803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3804 CC="$am_aux_dir/compile $CC"
3805 fi
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812 DEPDIR="${am__leading_dot}deps"
3813
3814 ac_config_commands="$ac_config_commands depfiles"
3815
3816
3817 am_make=${MAKE-make}
3818 cat > confinc << 'END'
3819 am__doit:
3820 @echo this is the am__doit target
3821 .PHONY: am__doit
3822 END
3823 # If we don't find an include directive, just comment out the code.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3825 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3826 am__include="#"
3827 am__quote=
3828 _am_result=none
3829 # First try GNU make style include.
3830 echo "include confinc" > confmf
3831 # Ignore all kinds of additional output from 'make'.
3832 case `$am_make -s -f confmf 2> /dev/null` in #(
3833 *the\ am__doit\ target*)
3834 am__include=include
3835 am__quote=
3836 _am_result=GNU
3837 ;;
3838 esac
3839 # Now try BSD make style include.
3840 if test "$am__include" = "#"; then
3841 echo '.include "confinc"' > confmf
3842 case `$am_make -s -f confmf 2> /dev/null` in #(
3843 *the\ am__doit\ target*)
3844 am__include=.include
3845 am__quote="\""
3846 _am_result=BSD
3847 ;;
3848 esac
3849 fi
3850
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3853 $as_echo "$_am_result" >&6; }
3854 rm -f confinc confmf
3855
3856 # Check whether --enable-dependency-tracking was given.
3857 if test "${enable_dependency_tracking+set}" = set; then :
3858 enableval=$enable_dependency_tracking;
3859 fi
3860
3861 if test "x$enable_dependency_tracking" != xno; then
3862 am_depcomp="$ac_aux_dir/depcomp"
3863 AMDEPBACKSLASH='\'
3864 am__nodep='_no'
3865 fi
3866 if test "x$enable_dependency_tracking" != xno; then
3867 AMDEP_TRUE=
3868 AMDEP_FALSE='#'
3869 else
3870 AMDEP_TRUE='#'
3871 AMDEP_FALSE=
3872 fi
3873
3874
3875
3876 depcc="$CC" am_compiler_list=
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3879 $as_echo_n "checking dependency style of $depcc... " >&6; }
3880 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3884 # We make a subdir and do the tests there. Otherwise we can end up
3885 # making bogus files that we don't know about and never remove. For
3886 # instance it was reported that on HP-UX the gcc test will end up
3887 # making a dummy file named 'D' -- because '-MD' means "put the output
3888 # in D".
3889 rm -rf conftest.dir
3890 mkdir conftest.dir
3891 # Copy depcomp to subdir because otherwise we won't find it if we're
3892 # using a relative directory.
3893 cp "$am_depcomp" conftest.dir
3894 cd conftest.dir
3895 # We will build objects and dependencies in a subdirectory because
3896 # it helps to detect inapplicable dependency modes. For instance
3897 # both Tru64's cc and ICC support -MD to output dependencies as a
3898 # side effect of compilation, but ICC will put the dependencies in
3899 # the current directory while Tru64 will put them in the object
3900 # directory.
3901 mkdir sub
3902
3903 am_cv_CC_dependencies_compiler_type=none
3904 if test "$am_compiler_list" = ""; then
3905 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3906 fi
3907 am__universal=false
3908 case " $depcc " in #(
3909 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3910 esac
3911
3912 for depmode in $am_compiler_list; do
3913 # Setup a source with many dependencies, because some compilers
3914 # like to wrap large dependency lists on column 80 (with \), and
3915 # we should not choose a depcomp mode which is confused by this.
3916 #
3917 # We need to recreate these files for each test, as the compiler may
3918 # overwrite some of them when testing with obscure command lines.
3919 # This happens at least with the AIX C compiler.
3920 : > sub/conftest.c
3921 for i in 1 2 3 4 5 6; do
3922 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3923 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3924 # Solaris 10 /bin/sh.
3925 echo '/* dummy */' > sub/conftst$i.h
3926 done
3927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3928
3929 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3930 # mode. It turns out that the SunPro C++ compiler does not properly
3931 # handle '-M -o', and we need to detect this. Also, some Intel
3932 # versions had trouble with output in subdirs.
3933 am__obj=sub/conftest.${OBJEXT-o}
3934 am__minus_obj="-o $am__obj"
3935 case $depmode in
3936 gcc)
3937 # This depmode causes a compiler race in universal mode.
3938 test "$am__universal" = false || continue
3939 ;;
3940 nosideeffect)
3941 # After this tag, mechanisms are not by side-effect, so they'll
3942 # only be used when explicitly requested.
3943 if test "x$enable_dependency_tracking" = xyes; then
3944 continue
3945 else
3946 break
3947 fi
3948 ;;
3949 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3950 # This compiler won't grok '-c -o', but also, the minuso test has
3951 # not run yet. These depmodes are late enough in the game, and
3952 # so weak that their functioning should not be impacted.
3953 am__obj=conftest.${OBJEXT-o}
3954 am__minus_obj=
3955 ;;
3956 none) break ;;
3957 esac
3958 if depmode=$depmode \
3959 source=sub/conftest.c object=$am__obj \
3960 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3961 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3962 >/dev/null 2>conftest.err &&
3963 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3964 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3965 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3966 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3967 # icc doesn't choke on unknown options, it will just issue warnings
3968 # or remarks (even with -Werror). So we grep stderr for any message
3969 # that says an option was ignored or not supported.
3970 # When given -MP, icc 7.0 and 7.1 complain thusly:
3971 # icc: Command line warning: ignoring option '-M'; no argument required
3972 # The diagnosis changed in icc 8.0:
3973 # icc: Command line remark: option '-MP' not supported
3974 if (grep 'ignoring option' conftest.err ||
3975 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3976 am_cv_CC_dependencies_compiler_type=$depmode
3977 break
3978 fi
3979 fi
3980 done
3981
3982 cd ..
3983 rm -rf conftest.dir
3984 else
3985 am_cv_CC_dependencies_compiler_type=none
3986 fi
3987
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3990 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3991 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3992
3993 if
3994 test "x$enable_dependency_tracking" != xno \
3995 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3996 am__fastdepCC_TRUE=
3997 am__fastdepCC_FALSE='#'
3998 else
3999 am__fastdepCC_TRUE='#'
4000 am__fastdepCC_FALSE=
4001 fi
4002
4003
4004
4005 # Checks for libraries.
4006
4007 callisto_have_pthread=n
4008 # Make sure we can run config.sub.
4009 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4010 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4013 $as_echo_n "checking build system type... " >&6; }
4014 if ${ac_cv_build+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 ac_build_alias=$build_alias
4018 test "x$ac_build_alias" = x &&
4019 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4020 test "x$ac_build_alias" = x &&
4021 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4022 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4023 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4024
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4027 $as_echo "$ac_cv_build" >&6; }
4028 case $ac_cv_build in
4029 *-*-*) ;;
4030 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4031 esac
4032 build=$ac_cv_build
4033 ac_save_IFS=$IFS; IFS='-'
4034 set x $ac_cv_build
4035 shift
4036 build_cpu=$1
4037 build_vendor=$2
4038 shift; shift
4039 # Remember, the first character of IFS is used to create $*,
4040 # except with old shells:
4041 build_os=$*
4042 IFS=$ac_save_IFS
4043 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4044
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4047 $as_echo_n "checking host system type... " >&6; }
4048 if ${ac_cv_host+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test "x$host_alias" = x; then
4052 ac_cv_host=$ac_cv_build
4053 else
4054 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4055 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4056 fi
4057
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4060 $as_echo "$ac_cv_host" >&6; }
4061 case $ac_cv_host in
4062 *-*-*) ;;
4063 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4064 esac
4065 host=$ac_cv_host
4066 ac_save_IFS=$IFS; IFS='-'
4067 set x $ac_cv_host
4068 shift
4069 host_cpu=$1
4070 host_vendor=$2
4071 shift; shift
4072 # Remember, the first character of IFS is used to create $*,
4073 # except with old shells:
4074 host_os=$*
4075 IFS=$ac_save_IFS
4076 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4077
4078
4079
4080
4081
4082
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088
4089 acx_pthread_ok=no
4090
4091 # We used to check for pthread.h first, but this fails if pthread.h
4092 # requires special compiler flags (e.g. on True64 or Sequent).
4093 # It gets checked for in the link test anyway.
4094
4095 # First of all, check if the user has set any of the PTHREAD_LIBS,
4096 # etcetera environment variables, and if threads linking works using
4097 # them:
4098 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4099 save_CFLAGS="$CFLAGS"
4100 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4101 save_LIBS="$LIBS"
4102 LIBS="$PTHREAD_LIBS $LIBS"
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4104 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107
4108 /* Override any GCC internal prototype to avoid an error.
4109 Use char because int might match the return type of a GCC
4110 builtin and then its argument prototype would still apply. */
4111 #ifdef __cplusplus
4112 extern "C"
4113 #endif
4114 char pthread_join ();
4115 int
4116 main ()
4117 {
4118 return pthread_join ();
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_link "$LINENO"; then :
4124 acx_pthread_ok=yes
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext \
4127 conftest$ac_exeext conftest.$ac_ext
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4129 $as_echo "$acx_pthread_ok" >&6; }
4130 if test x"$acx_pthread_ok" = xno; then
4131 PTHREAD_LIBS=""
4132 PTHREAD_CFLAGS=""
4133 fi
4134 LIBS="$save_LIBS"
4135 CFLAGS="$save_CFLAGS"
4136 fi
4137
4138 # We must check for the threads library under a number of different
4139 # names; the ordering is very important because some systems
4140 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4141 # libraries is broken (non-POSIX).
4142
4143 # Create a list of thread flags to try. Items starting with a "-" are
4144 # C compiler flags, and other items are library names, except for "none"
4145 # which indicates that we try without any flags at all, and "pthread-config"
4146 # which is a program returning the flags for the Pth emulation library.
4147
4148 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4149
4150 # The ordering *is* (sometimes) important. Some notes on the
4151 # individual items follow:
4152
4153 # pthreads: AIX (must check this before -lpthread)
4154 # none: in case threads are in libc; should be tried before -Kthread and
4155 # other compiler flags to prevent continual compiler warnings
4156 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4157 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4158 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4159 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4160 # -pthreads: Solaris/gcc
4161 # -mthreads: Mingw32/gcc, Lynx/gcc
4162 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4163 # doesn't hurt to check since this sometimes defines pthreads too;
4164 # also defines -D_REENTRANT)
4165 # ... -mt is also the pthreads flag for HP/aCC
4166 # pthread: Linux, etcetera
4167 # --thread-safe: KAI C++
4168 # pthread-config: use pthread-config program (for GNU Pth library)
4169
4170 case "${host_cpu}-${host_os}" in
4171 *solaris*)
4172
4173 # On Solaris (at least, for some versions), libc contains stubbed
4174 # (non-functional) versions of the pthreads routines, so link-based
4175 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
4176 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4177 # a function called by this macro, so we could check for that, but
4178 # who knows whether they'll stub that too in a future libc.) So,
4179 # we'll just look for -pthreads and -lpthread first:
4180
4181 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
4182 ;;
4183 esac
4184
4185 if test x"$acx_pthread_ok" = xno; then
4186 for flag in $acx_pthread_flags; do
4187
4188 case $flag in
4189 none)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4191 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4192 ;;
4193
4194 -*)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4196 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4197 PTHREAD_CFLAGS="$flag"
4198 ;;
4199
4200 pthread-config)
4201 # Extract the first word of "pthread-config", so it can be a program name with args.
4202 set dummy pthread-config; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_acx_pthread_config+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$acx_pthread_config"; then
4209 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_acx_pthread_config="yes"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4227 fi
4228 fi
4229 acx_pthread_config=$ac_cv_prog_acx_pthread_config
4230 if test -n "$acx_pthread_config"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
4232 $as_echo "$acx_pthread_config" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 if test x"$acx_pthread_config" = xno; then continue; fi
4240 PTHREAD_CFLAGS="`pthread-config --cflags`"
4241 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4242 ;;
4243
4244 *)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4246 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4247 PTHREAD_LIBS="-l$flag"
4248 ;;
4249 esac
4250
4251 save_LIBS="$LIBS"
4252 save_CFLAGS="$CFLAGS"
4253 LIBS="$PTHREAD_LIBS $LIBS"
4254 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4255
4256 # Check for various functions. We must include pthread.h,
4257 # since some functions may be macros. (On the Sequent, we
4258 # need a special flag -Kthread to make this header compile.)
4259 # We check for pthread_join because it is in -lpthread on IRIX
4260 # while pthread_create is in libc. We check for pthread_attr_init
4261 # due to DEC craziness with -lpthreads. We check for
4262 # pthread_cleanup_push because it is one of the few pthread
4263 # functions on Solaris that doesn't have a non-functional libc stub.
4264 # We try pthread_create on general principles.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <pthread.h>
4268 int
4269 main ()
4270 {
4271 pthread_t th; pthread_join(th, 0);
4272 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4273 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_link "$LINENO"; then :
4279 acx_pthread_ok=yes
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext \
4282 conftest$ac_exeext conftest.$ac_ext
4283
4284 LIBS="$save_LIBS"
4285 CFLAGS="$save_CFLAGS"
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4288 $as_echo "$acx_pthread_ok" >&6; }
4289 if test "x$acx_pthread_ok" = xyes; then
4290 break;
4291 fi
4292
4293 PTHREAD_LIBS=""
4294 PTHREAD_CFLAGS=""
4295 done
4296 fi
4297
4298 # Various other checks:
4299 if test "x$acx_pthread_ok" = xyes; then
4300 save_LIBS="$LIBS"
4301 LIBS="$PTHREAD_LIBS $LIBS"
4302 save_CFLAGS="$CFLAGS"
4303 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4304
4305 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4307 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4308 attr_name=unknown
4309 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <pthread.h>
4313 int
4314 main ()
4315 {
4316 int attr=$attr; return attr;
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_link "$LINENO"; then :
4322 attr_name=$attr; break
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext \
4325 conftest$ac_exeext conftest.$ac_ext
4326 done
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
4328 $as_echo "$attr_name" >&6; }
4329 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
4330
4331 cat >>confdefs.h <<_ACEOF
4332 #define PTHREAD_CREATE_JOINABLE $attr_name
4333 _ACEOF
4334
4335 fi
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4338 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4339 flag=no
4340 case "${host_cpu}-${host_os}" in
4341 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
4342 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4343 esac
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
4345 $as_echo "${flag}" >&6; }
4346 if test "x$flag" != xno; then
4347 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4348 fi
4349
4350 LIBS="$save_LIBS"
4351 CFLAGS="$save_CFLAGS"
4352
4353 # More AIX lossage: must compile with xlc_r or cc_r
4354 if test x"$GCC" != xyes; then
4355 for ac_prog in xlc_r cc_r
4356 do
4357 # Extract the first word of "$ac_prog", so it can be a program name with args.
4358 set dummy $ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$PTHREAD_CC"; then
4365 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_PTHREAD_CC="$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4385 if test -n "$PTHREAD_CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
4387 $as_echo "$PTHREAD_CC" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394 test -n "$PTHREAD_CC" && break
4395 done
4396 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
4397
4398 else
4399 PTHREAD_CC=$CC
4400 fi
4401 else
4402 PTHREAD_CC="$CC"
4403 fi
4404
4405
4406
4407
4408
4409 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4410 if test x"$acx_pthread_ok" = xyes; then
4411 callisto_have_pthread=y
4412 :
4413 else
4414 acx_pthread_ok=no
4415
4416 fi
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422
4423
4424 ac_ext=c
4425 ac_cpp='$CPP $CPPFLAGS'
4426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4431 # On Suns, sometimes $CPP names a directory.
4432 if test -n "$CPP" && test -d "$CPP"; then
4433 CPP=
4434 fi
4435 if test -z "$CPP"; then
4436 if ${ac_cv_prog_CPP+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 # Double quotes because CPP needs to be expanded
4440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4441 do
4442 ac_preproc_ok=false
4443 for ac_c_preproc_warn_flag in '' yes
4444 do
4445 # Use a header file that comes with gcc, so configuring glibc
4446 # with a fresh cross-compiler works.
4447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4448 # <limits.h> exists even on freestanding compilers.
4449 # On the NeXT, cc -E runs the code through the compiler's parser,
4450 # not just through cpp. "Syntax error" is here to catch this case.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #ifdef __STDC__
4454 # include <limits.h>
4455 #else
4456 # include <assert.h>
4457 #endif
4458 Syntax error
4459 _ACEOF
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461
4462 else
4463 # Broken: fails on valid input.
4464 continue
4465 fi
4466 rm -f conftest.err conftest.i conftest.$ac_ext
4467
4468 # OK, works on sane cases. Now check whether nonexistent headers
4469 # can be detected and how.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #include <ac_nonexistent.h>
4473 _ACEOF
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4475 # Broken: success on invalid input.
4476 continue
4477 else
4478 # Passes both tests.
4479 ac_preproc_ok=:
4480 break
4481 fi
4482 rm -f conftest.err conftest.i conftest.$ac_ext
4483
4484 done
4485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486 rm -f conftest.i conftest.err conftest.$ac_ext
4487 if $ac_preproc_ok; then :
4488 break
4489 fi
4490
4491 done
4492 ac_cv_prog_CPP=$CPP
4493
4494 fi
4495 CPP=$ac_cv_prog_CPP
4496 else
4497 ac_cv_prog_CPP=$CPP
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4500 $as_echo "$CPP" >&6; }
4501 ac_preproc_ok=false
4502 for ac_c_preproc_warn_flag in '' yes
4503 do
4504 # Use a header file that comes with gcc, so configuring glibc
4505 # with a fresh cross-compiler works.
4506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507 # <limits.h> exists even on freestanding compilers.
4508 # On the NeXT, cc -E runs the code through the compiler's parser,
4509 # not just through cpp. "Syntax error" is here to catch this case.
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #ifdef __STDC__
4513 # include <limits.h>
4514 #else
4515 # include <assert.h>
4516 #endif
4517 Syntax error
4518 _ACEOF
4519 if ac_fn_c_try_cpp "$LINENO"; then :
4520
4521 else
4522 # Broken: fails on valid input.
4523 continue
4524 fi
4525 rm -f conftest.err conftest.i conftest.$ac_ext
4526
4527 # OK, works on sane cases. Now check whether nonexistent headers
4528 # can be detected and how.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4534 # Broken: success on invalid input.
4535 continue
4536 else
4537 # Passes both tests.
4538 ac_preproc_ok=:
4539 break
4540 fi
4541 rm -f conftest.err conftest.i conftest.$ac_ext
4542
4543 done
4544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4545 rm -f conftest.i conftest.err conftest.$ac_ext
4546 if $ac_preproc_ok; then :
4547
4548 else
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4552 See \`config.log' for more details" "$LINENO" 5; }
4553 fi
4554
4555 ac_ext=c
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4563 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4564 if ${ac_cv_path_GREP+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -z "$GREP"; then
4568 ac_path_GREP_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_prog in grep ggrep; do
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4578 as_fn_executable_p "$ac_path_GREP" || continue
4579 # Check for GNU ac_path_GREP and select it if it is found.
4580 # Check for GNU $ac_path_GREP
4581 case `"$ac_path_GREP" --version 2>&1` in
4582 *GNU*)
4583 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4584 *)
4585 ac_count=0
4586 $as_echo_n 0123456789 >"conftest.in"
4587 while :
4588 do
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 $as_echo 'GREP' >> "conftest.nl"
4593 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595 as_fn_arith $ac_count + 1 && ac_count=$as_val
4596 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_GREP="$ac_path_GREP"
4599 ac_path_GREP_max=$ac_count
4600 fi
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4603 done
4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4606
4607 $ac_path_GREP_found && break 3
4608 done
4609 done
4610 done
4611 IFS=$as_save_IFS
4612 if test -z "$ac_cv_path_GREP"; then
4613 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614 fi
4615 else
4616 ac_cv_path_GREP=$GREP
4617 fi
4618
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4621 $as_echo "$ac_cv_path_GREP" >&6; }
4622 GREP="$ac_cv_path_GREP"
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4626 $as_echo_n "checking for egrep... " >&6; }
4627 if ${ac_cv_path_EGREP+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4631 then ac_cv_path_EGREP="$GREP -E"
4632 else
4633 if test -z "$EGREP"; then
4634 ac_path_EGREP_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4638 do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_prog in egrep; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4644 as_fn_executable_p "$ac_path_EGREP" || continue
4645 # Check for GNU ac_path_EGREP and select it if it is found.
4646 # Check for GNU $ac_path_EGREP
4647 case `"$ac_path_EGREP" --version 2>&1` in
4648 *GNU*)
4649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4650 *)
4651 ac_count=0
4652 $as_echo_n 0123456789 >"conftest.in"
4653 while :
4654 do
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo 'EGREP' >> "conftest.nl"
4659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
4662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_EGREP="$ac_path_EGREP"
4665 ac_path_EGREP_max=$ac_count
4666 fi
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
4669 done
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 esac
4672
4673 $ac_path_EGREP_found && break 3
4674 done
4675 done
4676 done
4677 IFS=$as_save_IFS
4678 if test -z "$ac_cv_path_EGREP"; then
4679 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4680 fi
4681 else
4682 ac_cv_path_EGREP=$EGREP
4683 fi
4684
4685 fi
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4688 $as_echo "$ac_cv_path_EGREP" >&6; }
4689 EGREP="$ac_cv_path_EGREP"
4690
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4693 $as_echo_n "checking for ANSI C header files... " >&6; }
4694 if ${ac_cv_header_stdc+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <stdlib.h>
4700 #include <stdarg.h>
4701 #include <string.h>
4702 #include <float.h>
4703
4704 int
4705 main ()
4706 {
4707
4708 ;
4709 return 0;
4710 }
4711 _ACEOF
4712 if ac_fn_c_try_compile "$LINENO"; then :
4713 ac_cv_header_stdc=yes
4714 else
4715 ac_cv_header_stdc=no
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718
4719 if test $ac_cv_header_stdc = yes; then
4720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723 #include <string.h>
4724
4725 _ACEOF
4726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4727 $EGREP "memchr" >/dev/null 2>&1; then :
4728
4729 else
4730 ac_cv_header_stdc=no
4731 fi
4732 rm -f conftest*
4733
4734 fi
4735
4736 if test $ac_cv_header_stdc = yes; then
4737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <stdlib.h>
4741
4742 _ACEOF
4743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4744 $EGREP "free" >/dev/null 2>&1; then :
4745
4746 else
4747 ac_cv_header_stdc=no
4748 fi
4749 rm -f conftest*
4750
4751 fi
4752
4753 if test $ac_cv_header_stdc = yes; then
4754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4755 if test "$cross_compiling" = yes; then :
4756 :
4757 else
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 #include <ctype.h>
4761 #include <stdlib.h>
4762 #if ((' ' & 0x0FF) == 0x020)
4763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4765 #else
4766 # define ISLOWER(c) \
4767 (('a' <= (c) && (c) <= 'i') \
4768 || ('j' <= (c) && (c) <= 'r') \
4769 || ('s' <= (c) && (c) <= 'z'))
4770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4771 #endif
4772
4773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4774 int
4775 main ()
4776 {
4777 int i;
4778 for (i = 0; i < 256; i++)
4779 if (XOR (islower (i), ISLOWER (i))
4780 || toupper (i) != TOUPPER (i))
4781 return 2;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_run "$LINENO"; then :
4786
4787 else
4788 ac_cv_header_stdc=no
4789 fi
4790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4791 conftest.$ac_objext conftest.beam conftest.$ac_ext
4792 fi
4793
4794 fi
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4797 $as_echo "$ac_cv_header_stdc" >&6; }
4798 if test $ac_cv_header_stdc = yes; then
4799
4800 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4801
4802 fi
4803
4804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4805 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4806 inttypes.h stdint.h unistd.h
4807 do :
4808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4809 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4810 "
4811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4812 cat >>confdefs.h <<_ACEOF
4813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814 _ACEOF
4815
4816 fi
4817
4818 done
4819
4820
4821 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
4822 if test "x$ac_cv_header_pthread_h" = xyes; then :
4823
4824 else
4825 callisto_have_pthread=n
4826 fi
4827
4828
4829 if test "x$callisto_have_pthread" = "xn" ; then
4830 as_fn_error $? "working POSIX threads not found" "$LINENO" 5
4831 fi
4832 CC="$PTHREAD_CC"
4833 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4834 LIBS="$LIBS $PTHREAD_LIBS"
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffopen in -lcfitsio" >&5
4837 $as_echo_n "checking for ffopen in -lcfitsio... " >&6; }
4838 if ${ac_cv_lib_cfitsio_ffopen+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 ac_check_lib_save_LIBS=$LIBS
4842 LIBS="-lcfitsio $LIBS"
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 /* Override any GCC internal prototype to avoid an error.
4847 Use char because int might match the return type of a GCC
4848 builtin and then its argument prototype would still apply. */
4849 #ifdef __cplusplus
4850 extern "C"
4851 #endif
4852 char ffopen ();
4853 int
4854 main ()
4855 {
4856 return ffopen ();
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_c_try_link "$LINENO"; then :
4862 ac_cv_lib_cfitsio_ffopen=yes
4863 else
4864 ac_cv_lib_cfitsio_ffopen=no
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext \
4867 conftest$ac_exeext conftest.$ac_ext
4868 LIBS=$ac_check_lib_save_LIBS
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffopen" >&5
4871 $as_echo "$ac_cv_lib_cfitsio_ffopen" >&6; }
4872 if test "x$ac_cv_lib_cfitsio_ffopen" = xyes; then :
4873 cat >>confdefs.h <<_ACEOF
4874 #define HAVE_LIBCFITSIO 1
4875 _ACEOF
4876
4877 LIBS="-lcfitsio $LIBS"
4878
4879 else
4880 as_fn_error $? "CFITSIO library not found" "$LINENO" 5
4881 fi
4882
4883
4884 # Checks for header files.
4885 for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h stdlib.h string.h sys/file.h sys/ioctl.h sys/time.h syslog.h sys/socket.h termios.h unistd.h fitsio.h
4886 do :
4887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4888 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4890 cat >>confdefs.h <<_ACEOF
4891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 _ACEOF
4893
4894 else
4895 as_fn_error $? "required headers not found" "$LINENO" 5
4896 fi
4897
4898 done
4899
4900
4901 # Checks for typedefs, structures, and compiler characteristics.
4902 # Check whether --enable-largefile was given.
4903 if test "${enable_largefile+set}" = set; then :
4904 enableval=$enable_largefile;
4905 fi
4906
4907 if test "$enable_largefile" != no; then
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4910 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4911 if ${ac_cv_sys_largefile_CC+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 ac_cv_sys_largefile_CC=no
4915 if test "$GCC" != yes; then
4916 ac_save_CC=$CC
4917 while :; do
4918 # IRIX 6.2 and later do not support large files by default,
4919 # so use the C compiler's -n32 option if that helps.
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 #include <sys/types.h>
4923 /* Check that off_t can represent 2**63 - 1 correctly.
4924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4925 since some C++ compilers masquerading as C compilers
4926 incorrectly reject 9223372036854775807. */
4927 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4929 && LARGE_OFF_T % 2147483647 == 1)
4930 ? 1 : -1];
4931 int
4932 main ()
4933 {
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 break
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext
4943 CC="$CC -n32"
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_sys_largefile_CC=' -n32'; break
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext
4948 break
4949 done
4950 CC=$ac_save_CC
4951 rm -f conftest.$ac_ext
4952 fi
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4955 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4956 if test "$ac_cv_sys_largefile_CC" != no; then
4957 CC=$CC$ac_cv_sys_largefile_CC
4958 fi
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4961 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4962 if ${ac_cv_sys_file_offset_bits+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 while :; do
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #include <sys/types.h>
4969 /* Check that off_t can represent 2**63 - 1 correctly.
4970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4971 since some C++ compilers masquerading as C compilers
4972 incorrectly reject 9223372036854775807. */
4973 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4975 && LARGE_OFF_T % 2147483647 == 1)
4976 ? 1 : -1];
4977 int
4978 main ()
4979 {
4980
4981 ;
4982 return 0;
4983 }
4984 _ACEOF
4985 if ac_fn_c_try_compile "$LINENO"; then :
4986 ac_cv_sys_file_offset_bits=no; break
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #define _FILE_OFFSET_BITS 64
4992 #include <sys/types.h>
4993 /* Check that off_t can represent 2**63 - 1 correctly.
4994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4995 since some C++ compilers masquerading as C compilers
4996 incorrectly reject 9223372036854775807. */
4997 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4999 && LARGE_OFF_T % 2147483647 == 1)
5000 ? 1 : -1];
5001 int
5002 main ()
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_sys_file_offset_bits=64; break
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cv_sys_file_offset_bits=unknown
5014 break
5015 done
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5018 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5019 case $ac_cv_sys_file_offset_bits in #(
5020 no | unknown) ;;
5021 *)
5022 cat >>confdefs.h <<_ACEOF
5023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5024 _ACEOF
5025 ;;
5026 esac
5027 rm -rf conftest*
5028 if test $ac_cv_sys_file_offset_bits = unknown; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5030 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5031 if ${ac_cv_sys_large_files+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 while :; do
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <sys/types.h>
5038 /* Check that off_t can represent 2**63 - 1 correctly.
5039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5040 since some C++ compilers masquerading as C compilers
5041 incorrectly reject 9223372036854775807. */
5042 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5044 && LARGE_OFF_T % 2147483647 == 1)
5045 ? 1 : -1];
5046 int
5047 main ()
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 ac_cv_sys_large_files=no; break
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #define _LARGE_FILES 1
5061 #include <sys/types.h>
5062 /* Check that off_t can represent 2**63 - 1 correctly.
5063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5064 since some C++ compilers masquerading as C compilers
5065 incorrectly reject 9223372036854775807. */
5066 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5068 && LARGE_OFF_T % 2147483647 == 1)
5069 ? 1 : -1];
5070 int
5071 main ()
5072 {
5073
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_sys_large_files=1; break
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 ac_cv_sys_large_files=unknown
5083 break
5084 done
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5087 $as_echo "$ac_cv_sys_large_files" >&6; }
5088 case $ac_cv_sys_large_files in #(
5089 no | unknown) ;;
5090 *)
5091 cat >>confdefs.h <<_ACEOF
5092 #define _LARGE_FILES $ac_cv_sys_large_files
5093 _ACEOF
5094 ;;
5095 esac
5096 rm -rf conftest*
5097 fi
5098
5099
5100 fi
5101
5102 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5103 case $ac_cv_c_int64_t in #(
5104 no|yes) ;; #(
5105 *)
5106
5107 cat >>confdefs.h <<_ACEOF
5108 #define int64_t $ac_cv_c_int64_t
5109 _ACEOF
5110 ;;
5111 esac
5112
5113 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5114 if test "x$ac_cv_type_ssize_t" = xyes; then :
5115
5116 else
5117
5118 cat >>confdefs.h <<_ACEOF
5119 #define ssize_t int
5120 _ACEOF
5121
5122 fi
5123
5124 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5125 case $ac_cv_c_uint64_t in #(
5126 no|yes) ;; #(
5127 *)
5128
5129 $as_echo "#define _UINT64_T 1" >>confdefs.h
5130
5131
5132 cat >>confdefs.h <<_ACEOF
5133 #define uint64_t $ac_cv_c_uint64_t
5134 _ACEOF
5135 ;;
5136 esac
5137
5138 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5139 case $ac_cv_c_uint8_t in #(
5140 no|yes) ;; #(
5141 *)
5142
5143 $as_echo "#define _UINT8_T 1" >>confdefs.h
5144
5145
5146 cat >>confdefs.h <<_ACEOF
5147 #define uint8_t $ac_cv_c_uint8_t
5148 _ACEOF
5149 ;;
5150 esac
5151
5152 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5153 case $ac_cv_c_uint16_t in #(
5154 no|yes) ;; #(
5155 *)
5156
5157
5158 cat >>confdefs.h <<_ACEOF
5159 #define uint16_t $ac_cv_c_uint16_t
5160 _ACEOF
5161 ;;
5162 esac
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5165 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5166 if ${ac_cv_type_uid_t+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <sys/types.h>
5172
5173 _ACEOF
5174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5175 $EGREP "uid_t" >/dev/null 2>&1; then :
5176 ac_cv_type_uid_t=yes
5177 else
5178 ac_cv_type_uid_t=no
5179 fi
5180 rm -f conftest*
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5184 $as_echo "$ac_cv_type_uid_t" >&6; }
5185 if test $ac_cv_type_uid_t = no; then
5186
5187 $as_echo "#define uid_t int" >>confdefs.h
5188
5189
5190 $as_echo "#define gid_t int" >>confdefs.h
5191
5192 fi
5193
5194 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5195 if test "x$ac_cv_type_pid_t" = xyes; then :
5196
5197 else
5198
5199 cat >>confdefs.h <<_ACEOF
5200 #define pid_t int
5201 _ACEOF
5202
5203 fi
5204
5205
5206 # Checks for library functions.
5207 for ac_header in stdlib.h
5208 do :
5209 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5210 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5211 cat >>confdefs.h <<_ACEOF
5212 #define HAVE_STDLIB_H 1
5213 _ACEOF
5214
5215 fi
5216
5217 done
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5220 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5221 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test "$cross_compiling" = yes; then :
5225 ac_cv_func_malloc_0_nonnull=no
5226 else
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5230 # include <stdlib.h>
5231 #else
5232 char *malloc ();
5233 #endif
5234
5235 int
5236 main ()
5237 {
5238 return ! malloc (0);
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_run "$LINENO"; then :
5244 ac_cv_func_malloc_0_nonnull=yes
5245 else
5246 ac_cv_func_malloc_0_nonnull=no
5247 fi
5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249 conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5254 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5255 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5256
5257 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5258
5259 else
5260 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5261
5262 case " $LIBOBJS " in
5263 *" malloc.$ac_objext "* ) ;;
5264 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5265 ;;
5266 esac
5267
5268
5269 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5270
5271 fi
5272
5273
5274 for ac_header in vfork.h
5275 do :
5276 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5277 if test "x$ac_cv_header_vfork_h" = xyes; then :
5278 cat >>confdefs.h <<_ACEOF
5279 #define HAVE_VFORK_H 1
5280 _ACEOF
5281
5282 fi
5283
5284 done
5285
5286 for ac_func in fork vfork
5287 do :
5288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5290 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5291 cat >>confdefs.h <<_ACEOF
5292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5293 _ACEOF
5294
5295 fi
5296 done
5297
5298 if test "x$ac_cv_func_fork" = xyes; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5300 $as_echo_n "checking for working fork... " >&6; }
5301 if ${ac_cv_func_fork_works+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test "$cross_compiling" = yes; then :
5305 ac_cv_func_fork_works=cross
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 $ac_includes_default
5310 int
5311 main ()
5312 {
5313
5314 /* By Ruediger Kuhlmann. */
5315 return fork () < 0;
5316
5317 ;
5318 return 0;
5319 }
5320 _ACEOF
5321 if ac_fn_c_try_run "$LINENO"; then :
5322 ac_cv_func_fork_works=yes
5323 else
5324 ac_cv_func_fork_works=no
5325 fi
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327 conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 fi
5329
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5332 $as_echo "$ac_cv_func_fork_works" >&6; }
5333
5334 else
5335 ac_cv_func_fork_works=$ac_cv_func_fork
5336 fi
5337 if test "x$ac_cv_func_fork_works" = xcross; then
5338 case $host in
5339 *-*-amigaos* | *-*-msdosdjgpp*)
5340 # Override, as these systems have only a dummy fork() stub
5341 ac_cv_func_fork_works=no
5342 ;;
5343 *)
5344 ac_cv_func_fork_works=yes
5345 ;;
5346 esac
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5348 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5349 fi
5350 ac_cv_func_vfork_works=$ac_cv_func_vfork
5351 if test "x$ac_cv_func_vfork" = xyes; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5353 $as_echo_n "checking for working vfork... " >&6; }
5354 if ${ac_cv_func_vfork_works+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test "$cross_compiling" = yes; then :
5358 ac_cv_func_vfork_works=cross
5359 else
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 /* Thanks to Paul Eggert for this test. */
5363 $ac_includes_default
5364 #include <sys/wait.h>
5365 #ifdef HAVE_VFORK_H
5366 # include <vfork.h>
5367 #endif
5368 /* On some sparc systems, changes by the child to local and incoming
5369 argument registers are propagated back to the parent. The compiler
5370 is told about this with #include <vfork.h>, but some compilers
5371 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5372 static variable whose address is put into a register that is
5373 clobbered by the vfork. */
5374 static void
5375 #ifdef __cplusplus
5376 sparc_address_test (int arg)
5377 # else
5378 sparc_address_test (arg) int arg;
5379 #endif
5380 {
5381 static pid_t child;
5382 if (!child) {
5383 child = vfork ();
5384 if (child < 0) {
5385 perror ("vfork");
5386 _exit(2);
5387 }
5388 if (!child) {
5389 arg = getpid();
5390 write(-1, "", 0);
5391 _exit (arg);
5392 }
5393 }
5394 }
5395
5396 int
5397 main ()
5398 {
5399 pid_t parent = getpid ();
5400 pid_t child;
5401
5402 sparc_address_test (0);
5403
5404 child = vfork ();
5405
5406 if (child == 0) {
5407 /* Here is another test for sparc vfork register problems. This
5408 test uses lots of local variables, at least as many local
5409 variables as main has allocated so far including compiler
5410 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5411 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5412 reuse the register of parent for one of the local variables,
5413 since it will think that parent can't possibly be used any more
5414 in this routine. Assigning to the local variable will thus
5415 munge parent in the parent process. */
5416 pid_t
5417 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5418 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5419 /* Convince the compiler that p..p7 are live; otherwise, it might
5420 use the same hardware register for all 8 local variables. */
5421 if (p != p1 || p != p2 || p != p3 || p != p4
5422 || p != p5 || p != p6 || p != p7)
5423 _exit(1);
5424
5425 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5426 from child file descriptors. If the child closes a descriptor
5427 before it execs or exits, this munges the parent's descriptor
5428 as well. Test for this by closing stdout in the child. */
5429 _exit(close(fileno(stdout)) != 0);
5430 } else {
5431 int status;
5432 struct stat st;
5433
5434 while (wait(&status) != child)
5435 ;
5436 return (
5437 /* Was there some problem with vforking? */
5438 child < 0
5439
5440 /* Did the child fail? (This shouldn't happen.) */
5441 || status
5442
5443 /* Did the vfork/compiler bug occur? */
5444 || parent != getpid()
5445
5446 /* Did the file descriptor bug occur? */
5447 || fstat(fileno(stdout), &st) != 0
5448 );
5449 }
5450 }
5451 _ACEOF
5452 if ac_fn_c_try_run "$LINENO"; then :
5453 ac_cv_func_vfork_works=yes
5454 else
5455 ac_cv_func_vfork_works=no
5456 fi
5457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5458 conftest.$ac_objext conftest.beam conftest.$ac_ext
5459 fi
5460
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5463 $as_echo "$ac_cv_func_vfork_works" >&6; }
5464
5465 fi;
5466 if test "x$ac_cv_func_fork_works" = xcross; then
5467 ac_cv_func_vfork_works=$ac_cv_func_vfork
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5469 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5470 fi
5471
5472 if test "x$ac_cv_func_vfork_works" = xyes; then
5473
5474 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5475
5476 else
5477
5478 $as_echo "#define vfork fork" >>confdefs.h
5479
5480 fi
5481 if test "x$ac_cv_func_fork_works" = xyes; then
5482
5483 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5484
5485 fi
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5488 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5489 if ${ac_cv_header_time+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 #include <sys/time.h>
5496 #include <time.h>
5497
5498 int
5499 main ()
5500 {
5501 if ((struct tm *) 0)
5502 return 0;
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_header_time=yes
5509 else
5510 ac_cv_header_time=no
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5515 $as_echo "$ac_cv_header_time" >&6; }
5516 if test $ac_cv_header_time = yes; then
5517
5518 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5519
5520 fi
5521
5522
5523
5524
5525 for ac_header in $ac_header_list
5526 do :
5527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5529 "
5530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5531 cat >>confdefs.h <<_ACEOF
5532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 _ACEOF
5534
5535 fi
5536
5537 done
5538
5539
5540
5541
5542
5543
5544
5545
5546 for ac_func in $ac_func_list
5547 do :
5548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5551 cat >>confdefs.h <<_ACEOF
5552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5553 _ACEOF
5554
5555 fi
5556 done
5557
5558
5559
5560
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
5563 $as_echo_n "checking for working mktime... " >&6; }
5564 if ${ac_cv_func_working_mktime+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test "$cross_compiling" = yes; then :
5568 ac_cv_func_working_mktime=no
5569 else
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 /* Test program from Paul Eggert and Tony Leneis. */
5573 #ifdef TIME_WITH_SYS_TIME
5574 # include <sys/time.h>
5575 # include <time.h>
5576 #else
5577 # ifdef HAVE_SYS_TIME_H
5578 # include <sys/time.h>
5579 # else
5580 # include <time.h>
5581 # endif
5582 #endif
5583
5584 #include <limits.h>
5585 #include <stdlib.h>
5586
5587 #ifdef HAVE_UNISTD_H
5588 # include <unistd.h>
5589 #endif
5590
5591 #ifndef HAVE_ALARM
5592 # define alarm(X) /* empty */
5593 #endif
5594
5595 /* Work around redefinition to rpl_putenv by other config tests. */
5596 #undef putenv
5597
5598 static time_t time_t_max;
5599 static time_t time_t_min;
5600
5601 /* Values we'll use to set the TZ environment variable. */
5602 static const char *tz_strings[] = {
5603 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5604 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5605 };
5606 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5607
5608 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
5609 Based on a problem report from Andreas Jaeger. */
5610 static int
5611 spring_forward_gap ()
5612 {
5613 /* glibc (up to about 1998-10-07) failed this test. */
5614 struct tm tm;
5615
5616 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5617 instead of "TZ=America/Vancouver" in order to detect the bug even
5618 on systems that don't support the Olson extension, or don't have the
5619 full zoneinfo tables installed. */
5620 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
5621
5622 tm.tm_year = 98;
5623 tm.tm_mon = 3;
5624 tm.tm_mday = 5;
5625 tm.tm_hour = 2;
5626 tm.tm_min = 0;
5627 tm.tm_sec = 0;
5628 tm.tm_isdst = -1;
5629 return mktime (&tm) != (time_t) -1;
5630 }
5631
5632 static int
5633 mktime_test1 (time_t now)
5634 {
5635 struct tm *lt;
5636 return ! (lt = localtime (&now)) || mktime (lt) == now;
5637 }
5638
5639 static int
5640 mktime_test (time_t now)
5641 {
5642 return (mktime_test1 (now)
5643 && mktime_test1 ((time_t) (time_t_max - now))
5644 && mktime_test1 ((time_t) (time_t_min + now)));
5645 }
5646
5647 static int
5648 irix_6_4_bug ()
5649 {
5650 /* Based on code from Ariel Faigon. */
5651 struct tm tm;
5652 tm.tm_year = 96;
5653 tm.tm_mon = 3;
5654 tm.tm_mday = 0;
5655 tm.tm_hour = 0;
5656 tm.tm_min = 0;
5657 tm.tm_sec = 0;
5658 tm.tm_isdst = -1;
5659 mktime (&tm);
5660 return tm.tm_mon == 2 && tm.tm_mday == 31;
5661 }
5662
5663 static int
5664 bigtime_test (int j)
5665 {
5666 struct tm tm;
5667 time_t now;
5668 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5669 now = mktime (&tm);
5670 if (now != (time_t) -1)
5671 {
5672 struct tm *lt = localtime (&now);
5673 if (! (lt
5674 && lt->tm_year == tm.tm_year
5675 && lt->tm_mon == tm.tm_mon
5676 && lt->tm_mday == tm.tm_mday
5677 && lt->tm_hour == tm.tm_hour
5678 && lt->tm_min == tm.tm_min
5679 && lt->tm_sec == tm.tm_sec
5680 && lt->tm_yday == tm.tm_yday
5681 && lt->tm_wday == tm.tm_wday
5682 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5683 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5684 return 0;
5685 }
5686 return 1;
5687 }
5688
5689 static int
5690 year_2050_test ()
5691 {
5692 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
5693 ignoring leap seconds. */
5694 unsigned long int answer = 2527315200UL;
5695
5696 struct tm tm;
5697 time_t t;
5698 tm.tm_year = 2050 - 1900;
5699 tm.tm_mon = 2 - 1;
5700 tm.tm_mday = 1;
5701 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
5702 tm.tm_isdst = -1;
5703
5704 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5705 instead of "TZ=America/Vancouver" in order to detect the bug even
5706 on systems that don't support the Olson extension, or don't have the
5707 full zoneinfo tables installed. */
5708 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
5709
5710 t = mktime (&tm);
5711
5712 /* Check that the result is either a failure, or close enough
5713 to the correct answer that we can assume the discrepancy is
5714 due to leap seconds. */
5715 return (t == (time_t) -1
5716 || (0 < t && answer - 120 <= t && t <= answer + 120));
5717 }
5718
5719 int
5720 main ()
5721 {
5722 time_t t, delta;
5723 int i, j;
5724
5725 /* This test makes some buggy mktime implementations loop.
5726 Give up after 60 seconds; a mktime slower than that
5727 isn't worth using anyway. */
5728 alarm (60);
5729
5730 for (;;)
5731 {
5732 t = (time_t_max << 1) + 1;
5733 if (t <= time_t_max)
5734 break;
5735 time_t_max = t;
5736 }
5737 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
5738
5739 delta = time_t_max / 997; /* a suitable prime number */
5740 for (i = 0; i < N_STRINGS; i++)
5741 {
5742 if (tz_strings[i])
5743 putenv ((char*) tz_strings[i]);
5744
5745 for (t = 0; t <= time_t_max - delta; t += delta)
5746 if (! mktime_test (t))
5747 return 1;
5748 if (! (mktime_test ((time_t) 1)
5749 && mktime_test ((time_t) (60 * 60))
5750 && mktime_test ((time_t) (60 * 60 * 24))))
5751 return 1;
5752
5753 for (j = 1; ; j <<= 1)
5754 if (! bigtime_test (j))
5755 return 1;
5756 else if (INT_MAX / 2 < j)
5757 break;
5758 if (! bigtime_test (INT_MAX))
5759 return 1;
5760 }
5761 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
5762 }
5763 _ACEOF
5764 if ac_fn_c_try_run "$LINENO"; then :
5765 ac_cv_func_working_mktime=yes
5766 else
5767 ac_cv_func_working_mktime=no
5768 fi
5769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5770 conftest.$ac_objext conftest.beam conftest.$ac_ext
5771 fi
5772
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
5775 $as_echo "$ac_cv_func_working_mktime" >&6; }
5776 if test $ac_cv_func_working_mktime = no; then
5777 case " $LIBOBJS " in
5778 *" mktime.$ac_objext "* ) ;;
5779 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
5780 ;;
5781 esac
5782
5783 fi
5784
5785 for ac_func in dup2 ftruncate gettimeofday localtime_r memset setenv socket strcasecmp strchr strdup strerror strrchr strspn strstr strtol timegm tzset
5786 do :
5787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5789 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5790 cat >>confdefs.h <<_ACEOF
5791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5792 _ACEOF
5793
5794 fi
5795 done
5796
5797
5798 if test "x$GCC" = "xyes" ; then
5799 WARNINGFLAGS="-Wall"
5800
5801 CFLAGS="-std=gnu99 $CFLAGS"
5802 fi
5803
5804 CPPFLAGS="$CPPFLAGS -DETCDIR='\"\$(sysconfdir)/callisto\"'"
5805
5806
5807 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
5808
5809 cat >confcache <<\_ACEOF
5810 # This file is a shell script that caches the results of configure
5811 # tests run on this system so they can be shared between configure
5812 # scripts and configure runs, see configure's option --config-cache.
5813 # It is not useful on other systems. If it contains results you don't
5814 # want to keep, you may remove or edit it.
5815 #
5816 # config.status only pays attention to the cache file if you give it
5817 # the --recheck option to rerun configure.
5818 #
5819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5821 # following values.
5822
5823 _ACEOF
5824
5825 # The following way of writing the cache mishandles newlines in values,
5826 # but we know of no workaround that is simple, portable, and efficient.
5827 # So, we kill variables containing newlines.
5828 # Ultrix sh set writes to stderr and can't be redirected directly,
5829 # and sets the high bit in the cache file unless we assign to the vars.
5830 (
5831 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5832 eval ac_val=\$$ac_var
5833 case $ac_val in #(
5834 *${as_nl}*)
5835 case $ac_var in #(
5836 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5837 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5838 esac
5839 case $ac_var in #(
5840 _ | IFS | as_nl) ;; #(
5841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5842 *) { eval $ac_var=; unset $ac_var;} ;;
5843 esac ;;
5844 esac
5845 done
5846
5847 (set) 2>&1 |
5848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5849 *${as_nl}ac_space=\ *)
5850 # `set' does not quote correctly, so add quotes: double-quote
5851 # substitution turns \\\\ into \\, and sed turns \\ into \.
5852 sed -n \
5853 "s/'/'\\\\''/g;
5854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5855 ;; #(
5856 *)
5857 # `set' quotes correctly as required by POSIX, so do not add quotes.
5858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5859 ;;
5860 esac |
5861 sort
5862 ) |
5863 sed '
5864 /^ac_cv_env_/b end
5865 t clear
5866 :clear
5867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5868 t end
5869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5870 :end' >>confcache
5871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5872 if test -w "$cache_file"; then
5873 if test "x$cache_file" != "x/dev/null"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5875 $as_echo "$as_me: updating cache $cache_file" >&6;}
5876 if test ! -f "$cache_file" || test -h "$cache_file"; then
5877 cat confcache >"$cache_file"
5878 else
5879 case $cache_file in #(
5880 */* | ?:*)
5881 mv -f confcache "$cache_file"$$ &&
5882 mv -f "$cache_file"$$ "$cache_file" ;; #(
5883 *)
5884 mv -f confcache "$cache_file" ;;
5885 esac
5886 fi
5887 fi
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5890 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5891 fi
5892 fi
5893 rm -f confcache
5894
5895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5896 # Let make expand exec_prefix.
5897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5898
5899 DEFS=-DHAVE_CONFIG_H
5900
5901 ac_libobjs=
5902 ac_ltlibobjs=
5903 U=
5904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5905 # 1. Remove the extension, and $U if already installed.
5906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5907 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5909 # will be set to the directory where LIBOBJS objects are built.
5910 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5911 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5912 done
5913 LIBOBJS=$ac_libobjs
5914
5915 LTLIBOBJS=$ac_ltlibobjs
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5919 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5920 if test -n "$am_sleep_pid"; then
5921 # Hide warnings about reused PIDs.
5922 wait $am_sleep_pid 2>/dev/null
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5925 $as_echo "done" >&6; }
5926 if test -n "$EXEEXT"; then
5927 am__EXEEXT_TRUE=
5928 am__EXEEXT_FALSE='#'
5929 else
5930 am__EXEEXT_TRUE='#'
5931 am__EXEEXT_FALSE=
5932 fi
5933
5934 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5935 as_fn_error $? "conditional \"AMDEP\" was never defined.
5936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5937 fi
5938 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5939 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5941 fi
5942
5943 : "${CONFIG_STATUS=./config.status}"
5944 ac_write_fail=0
5945 ac_clean_files_save=$ac_clean_files
5946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5948 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5949 as_write_fail=0
5950 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5951 #! $SHELL
5952 # Generated by $as_me.
5953 # Run this file to recreate the current configuration.
5954 # Compiler output produced by configure, useful for debugging
5955 # configure, is in config.log if it exists.
5956
5957 debug=false
5958 ac_cs_recheck=false
5959 ac_cs_silent=false
5960
5961 SHELL=\${CONFIG_SHELL-$SHELL}
5962 export SHELL
5963 _ASEOF
5964 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5965 ## -------------------- ##
5966 ## M4sh Initialization. ##
5967 ## -------------------- ##
5968
5969 # Be more Bourne compatible
5970 DUALCASE=1; export DUALCASE # for MKS sh
5971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5972 emulate sh
5973 NULLCMD=:
5974 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5975 # is contrary to our usage. Disable this feature.
5976 alias -g '${1+"$@"}'='"$@"'
5977 setopt NO_GLOB_SUBST
5978 else
5979 case `(set -o) 2>/dev/null` in #(
5980 *posix*) :
5981 set -o posix ;; #(
5982 *) :
5983 ;;
5984 esac
5985 fi
5986
5987
5988 as_nl='
5989 '
5990 export as_nl
5991 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5992 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5995 # Prefer a ksh shell builtin over an external printf program on Solaris,
5996 # but without wasting forks for bash or zsh.
5997 if test -z "$BASH_VERSION$ZSH_VERSION" \
5998 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5999 as_echo='print -r --'
6000 as_echo_n='print -rn --'
6001 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6002 as_echo='printf %s\n'
6003 as_echo_n='printf %s'
6004 else
6005 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6006 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6007 as_echo_n='/usr/ucb/echo -n'
6008 else
6009 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6010 as_echo_n_body='eval
6011 arg=$1;
6012 case $arg in #(
6013 *"$as_nl"*)
6014 expr "X$arg" : "X\\(.*\\)$as_nl";
6015 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6016 esac;
6017 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6018 '
6019 export as_echo_n_body
6020 as_echo_n='sh -c $as_echo_n_body as_echo'
6021 fi
6022 export as_echo_body
6023 as_echo='sh -c $as_echo_body as_echo'
6024 fi
6025
6026 # The user is always right.
6027 if test "${PATH_SEPARATOR+set}" != set; then
6028 PATH_SEPARATOR=:
6029 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6030 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6031 PATH_SEPARATOR=';'
6032 }
6033 fi
6034
6035
6036 # IFS
6037 # We need space, tab and new line, in precisely that order. Quoting is
6038 # there to prevent editors from complaining about space-tab.
6039 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6040 # splitting by setting IFS to empty value.)
6041 IFS=" "" $as_nl"
6042
6043 # Find who we are. Look in the path if we contain no directory separator.
6044 as_myself=
6045 case $0 in #((
6046 *[\\/]* ) as_myself=$0 ;;
6047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6053 done
6054 IFS=$as_save_IFS
6055
6056 ;;
6057 esac
6058 # We did not find ourselves, most probably we were run as `sh COMMAND'
6059 # in which case we are not to be found in the path.
6060 if test "x$as_myself" = x; then
6061 as_myself=$0
6062 fi
6063 if test ! -f "$as_myself"; then
6064 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6065 exit 1
6066 fi
6067
6068 # Unset variables that we do not need and which cause bugs (e.g. in
6069 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6070 # suppresses any "Segmentation fault" message there. '((' could
6071 # trigger a bug in pdksh 5.2.14.
6072 for as_var in BASH_ENV ENV MAIL MAILPATH
6073 do eval test x\${$as_var+set} = xset \
6074 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6075 done
6076 PS1='$ '
6077 PS2='> '
6078 PS4='+ '
6079
6080 # NLS nuisances.
6081 LC_ALL=C
6082 export LC_ALL
6083 LANGUAGE=C
6084 export LANGUAGE
6085
6086 # CDPATH.
6087 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6088
6089
6090 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6091 # ----------------------------------------
6092 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6093 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6094 # script with STATUS, using 1 if that was 0.
6095 as_fn_error ()
6096 {
6097 as_status=$1; test $as_status -eq 0 && as_status=1
6098 if test "$4"; then
6099 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6100 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6101 fi
6102 $as_echo "$as_me: error: $2" >&2
6103 as_fn_exit $as_status
6104 } # as_fn_error
6105
6106
6107 # as_fn_set_status STATUS
6108 # -----------------------
6109 # Set $? to STATUS, without forking.
6110 as_fn_set_status ()
6111 {
6112 return $1
6113 } # as_fn_set_status
6114
6115 # as_fn_exit STATUS
6116 # -----------------
6117 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6118 as_fn_exit ()
6119 {
6120 set +e
6121 as_fn_set_status $1
6122 exit $1
6123 } # as_fn_exit
6124
6125 # as_fn_unset VAR
6126 # ---------------
6127 # Portably unset VAR.
6128 as_fn_unset ()
6129 {
6130 { eval $1=; unset $1;}
6131 }
6132 as_unset=as_fn_unset
6133 # as_fn_append VAR VALUE
6134 # ----------------------
6135 # Append the text in VALUE to the end of the definition contained in VAR. Take
6136 # advantage of any shell optimizations that allow amortized linear growth over
6137 # repeated appends, instead of the typical quadratic growth present in naive
6138 # implementations.
6139 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6140 eval 'as_fn_append ()
6141 {
6142 eval $1+=\$2
6143 }'
6144 else
6145 as_fn_append ()
6146 {
6147 eval $1=\$$1\$2
6148 }
6149 fi # as_fn_append
6150
6151 # as_fn_arith ARG...
6152 # ------------------
6153 # Perform arithmetic evaluation on the ARGs, and store the result in the
6154 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6155 # must be portable across $(()) and expr.
6156 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6157 eval 'as_fn_arith ()
6158 {
6159 as_val=$(( $* ))
6160 }'
6161 else
6162 as_fn_arith ()
6163 {
6164 as_val=`expr "$@" || test $? -eq 1`
6165 }
6166 fi # as_fn_arith
6167
6168
6169 if expr a : '\(a\)' >/dev/null 2>&1 &&
6170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6171 as_expr=expr
6172 else
6173 as_expr=false
6174 fi
6175
6176 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6177 as_basename=basename
6178 else
6179 as_basename=false
6180 fi
6181
6182 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6183 as_dirname=dirname
6184 else
6185 as_dirname=false
6186 fi
6187
6188 as_me=`$as_basename -- "$0" ||
6189 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6190 X"$0" : 'X\(//\)$' \| \
6191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6192 $as_echo X/"$0" |
6193 sed '/^.*\/\([^/][^/]*\)\/*$/{
6194 s//\1/
6195 q
6196 }
6197 /^X\/\(\/\/\)$/{
6198 s//\1/
6199 q
6200 }
6201 /^X\/\(\/\).*/{
6202 s//\1/
6203 q
6204 }
6205 s/.*/./; q'`
6206
6207 # Avoid depending upon Character Ranges.
6208 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6211 as_cr_digits='0123456789'
6212 as_cr_alnum=$as_cr_Letters$as_cr_digits
6213
6214 ECHO_C= ECHO_N= ECHO_T=
6215 case `echo -n x` in #(((((
6216 -n*)
6217 case `echo 'xy\c'` in
6218 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6219 xy) ECHO_C='\c';;
6220 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6221 ECHO_T=' ';;
6222 esac;;
6223 *)
6224 ECHO_N='-n';;
6225 esac
6226
6227 rm -f conf$$ conf$$.exe conf$$.file
6228 if test -d conf$$.dir; then
6229 rm -f conf$$.dir/conf$$.file
6230 else
6231 rm -f conf$$.dir
6232 mkdir conf$$.dir 2>/dev/null
6233 fi
6234 if (echo >conf$$.file) 2>/dev/null; then
6235 if ln -s conf$$.file conf$$ 2>/dev/null; then
6236 as_ln_s='ln -s'
6237 # ... but there are two gotchas:
6238 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6239 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6240 # In both cases, we have to default to `cp -pR'.
6241 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6242 as_ln_s='cp -pR'
6243 elif ln conf$$.file conf$$ 2>/dev/null; then
6244 as_ln_s=ln
6245 else
6246 as_ln_s='cp -pR'
6247 fi
6248 else
6249 as_ln_s='cp -pR'
6250 fi
6251 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6252 rmdir conf$$.dir 2>/dev/null
6253
6254
6255 # as_fn_mkdir_p
6256 # -------------
6257 # Create "$as_dir" as a directory, including parents if necessary.
6258 as_fn_mkdir_p ()
6259 {
6260
6261 case $as_dir in #(
6262 -*) as_dir=./$as_dir;;
6263 esac
6264 test -d "$as_dir" || eval $as_mkdir_p || {
6265 as_dirs=
6266 while :; do
6267 case $as_dir in #(
6268 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6269 *) as_qdir=$as_dir;;
6270 esac
6271 as_dirs="'$as_qdir' $as_dirs"
6272 as_dir=`$as_dirname -- "$as_dir" ||
6273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6274 X"$as_dir" : 'X\(//\)[^/]' \| \
6275 X"$as_dir" : 'X\(//\)$' \| \
6276 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6277 $as_echo X"$as_dir" |
6278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6279 s//\1/
6280 q
6281 }
6282 /^X\(\/\/\)[^/].*/{
6283 s//\1/
6284 q
6285 }
6286 /^X\(\/\/\)$/{
6287 s//\1/
6288 q
6289 }
6290 /^X\(\/\).*/{
6291 s//\1/
6292 q
6293 }
6294 s/.*/./; q'`
6295 test -d "$as_dir" && break
6296 done
6297 test -z "$as_dirs" || eval "mkdir $as_dirs"
6298 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6299
6300
6301 } # as_fn_mkdir_p
6302 if mkdir -p . 2>/dev/null; then
6303 as_mkdir_p='mkdir -p "$as_dir"'
6304 else
6305 test -d ./-p && rmdir ./-p
6306 as_mkdir_p=false
6307 fi
6308
6309
6310 # as_fn_executable_p FILE
6311 # -----------------------
6312 # Test if FILE is an executable regular file.
6313 as_fn_executable_p ()
6314 {
6315 test -f "$1" && test -x "$1"
6316 } # as_fn_executable_p
6317 as_test_x='test -x'
6318 as_executable_p=as_fn_executable_p
6319
6320 # Sed expression to map a string onto a valid CPP name.
6321 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6322
6323 # Sed expression to map a string onto a valid variable name.
6324 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6325
6326
6327 exec 6>&1
6328 ## ----------------------------------- ##
6329 ## Main body of $CONFIG_STATUS script. ##
6330 ## ----------------------------------- ##
6331 _ASEOF
6332 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6333
6334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6335 # Save the log message, to keep $0 and so on meaningful, and to
6336 # report actual input values of CONFIG_FILES etc. instead of their
6337 # values after options handling.
6338 ac_log="
6339 This file was extended by callisto $as_me 1.1.0, which was
6340 generated by GNU Autoconf 2.69. Invocation command line was
6341
6342 CONFIG_FILES = $CONFIG_FILES
6343 CONFIG_HEADERS = $CONFIG_HEADERS
6344 CONFIG_LINKS = $CONFIG_LINKS
6345 CONFIG_COMMANDS = $CONFIG_COMMANDS
6346 $ $0 $@
6347
6348 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6349 "
6350
6351 _ACEOF
6352
6353 case $ac_config_files in *"
6354 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6355 esac
6356
6357 case $ac_config_headers in *"
6358 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6359 esac
6360
6361
6362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6363 # Files that config.status was made for.
6364 config_files="$ac_config_files"
6365 config_headers="$ac_config_headers"
6366 config_commands="$ac_config_commands"
6367
6368 _ACEOF
6369
6370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6371 ac_cs_usage="\
6372 \`$as_me' instantiates files and other configuration actions
6373 from templates according to the current configuration. Unless the files
6374 and actions are specified as TAGs, all are instantiated by default.
6375
6376 Usage: $0 [OPTION]... [TAG]...
6377
6378 -h, --help print this help, then exit
6379 -V, --version print version number and configuration settings, then exit
6380 --config print configuration, then exit
6381 -q, --quiet, --silent
6382 do not print progress messages
6383 -d, --debug don't remove temporary files
6384 --recheck update $as_me by reconfiguring in the same conditions
6385 --file=FILE[:TEMPLATE]
6386 instantiate the configuration file FILE
6387 --header=FILE[:TEMPLATE]
6388 instantiate the configuration header FILE
6389
6390 Configuration files:
6391 $config_files
6392
6393 Configuration headers:
6394 $config_headers
6395
6396 Configuration commands:
6397 $config_commands
6398
6399 Report bugs to <[email protected]>."
6400
6401 _ACEOF
6402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6403 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6404 ac_cs_version="\\
6405 callisto config.status 1.1.0
6406 configured by $0, generated by GNU Autoconf 2.69,
6407 with options \\"\$ac_cs_config\\"
6408
6409 Copyright (C) 2012 Free Software Foundation, Inc.
6410 This config.status script is free software; the Free Software Foundation
6411 gives unlimited permission to copy, distribute and modify it."
6412
6413 ac_pwd='$ac_pwd'
6414 srcdir='$srcdir'
6415 INSTALL='$INSTALL'
6416 MKDIR_P='$MKDIR_P'
6417 AWK='$AWK'
6418 test -n "\$AWK" || AWK=awk
6419 _ACEOF
6420
6421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6422 # The default lists apply if the user does not specify any file.
6423 ac_need_defaults=:
6424 while test $# != 0
6425 do
6426 case $1 in
6427 --*=?*)
6428 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6430 ac_shift=:
6431 ;;
6432 --*=)
6433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6434 ac_optarg=
6435 ac_shift=:
6436 ;;
6437 *)
6438 ac_option=$1
6439 ac_optarg=$2
6440 ac_shift=shift
6441 ;;
6442 esac
6443
6444 case $ac_option in
6445 # Handling of the options.
6446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6447 ac_cs_recheck=: ;;
6448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6449 $as_echo "$ac_cs_version"; exit ;;
6450 --config | --confi | --conf | --con | --co | --c )
6451 $as_echo "$ac_cs_config"; exit ;;
6452 --debug | --debu | --deb | --de | --d | -d )
6453 debug=: ;;
6454 --file | --fil | --fi | --f )
6455 $ac_shift
6456 case $ac_optarg in
6457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6458 '') as_fn_error $? "missing file argument" ;;
6459 esac
6460 as_fn_append CONFIG_FILES " '$ac_optarg'"
6461 ac_need_defaults=false;;
6462 --header | --heade | --head | --hea )
6463 $ac_shift
6464 case $ac_optarg in
6465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6466 esac
6467 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6468 ac_need_defaults=false;;
6469 --he | --h)
6470 # Conflict between --help and --header
6471 as_fn_error $? "ambiguous option: \`$1'
6472 Try \`$0 --help' for more information.";;
6473 --help | --hel | -h )
6474 $as_echo "$ac_cs_usage"; exit ;;
6475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6476 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6477 ac_cs_silent=: ;;
6478
6479 # This is an error.
6480 -*) as_fn_error $? "unrecognized option: \`$1'
6481 Try \`$0 --help' for more information." ;;
6482
6483 *) as_fn_append ac_config_targets " $1"
6484 ac_need_defaults=false ;;
6485
6486 esac
6487 shift
6488 done
6489
6490 ac_configure_extra_args=
6491
6492 if $ac_cs_silent; then
6493 exec 6>/dev/null
6494 ac_configure_extra_args="$ac_configure_extra_args --silent"
6495 fi
6496
6497 _ACEOF
6498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6499 if \$ac_cs_recheck; then
6500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6501 shift
6502 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6503 CONFIG_SHELL='$SHELL'
6504 export CONFIG_SHELL
6505 exec "\$@"
6506 fi
6507
6508 _ACEOF
6509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6510 exec 5>>config.log
6511 {
6512 echo
6513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6514 ## Running $as_me. ##
6515 _ASBOX
6516 $as_echo "$ac_log"
6517 } >&5
6518
6519 _ACEOF
6520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6521 #
6522 # INIT-COMMANDS
6523 #
6524 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6525
6526 _ACEOF
6527
6528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6529
6530 # Handling of arguments.
6531 for ac_config_target in $ac_config_targets
6532 do
6533 case $ac_config_target in
6534 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6535 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6537 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6538 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6539
6540 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6541 esac
6542 done
6543
6544
6545 # If the user did not use the arguments to specify the items to instantiate,
6546 # then the envvar interface is used. Set only those that are not.
6547 # We use the long form for the default assignment because of an extremely
6548 # bizarre bug on SunOS 4.1.3.
6549 if $ac_need_defaults; then
6550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6553 fi
6554
6555 # Have a temporary directory for convenience. Make it in the build tree
6556 # simply because there is no reason against having it here, and in addition,
6557 # creating and moving files from /tmp can sometimes cause problems.
6558 # Hook for its removal unless debugging.
6559 # Note that there is a small window in which the directory will not be cleaned:
6560 # after its creation but before its name has been assigned to `$tmp'.
6561 $debug ||
6562 {
6563 tmp= ac_tmp=
6564 trap 'exit_status=$?
6565 : "${ac_tmp:=$tmp}"
6566 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6567 ' 0
6568 trap 'as_fn_exit 1' 1 2 13 15
6569 }
6570 # Create a (secure) tmp directory for tmp files.
6571
6572 {
6573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6574 test -d "$tmp"
6575 } ||
6576 {
6577 tmp=./conf$$-$RANDOM
6578 (umask 077 && mkdir "$tmp")
6579 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6580 ac_tmp=$tmp
6581
6582 # Set up the scripts for CONFIG_FILES section.
6583 # No need to generate them if there are no CONFIG_FILES.
6584 # This happens for instance with `./config.status config.h'.
6585 if test -n "$CONFIG_FILES"; then
6586
6587
6588 ac_cr=`echo X | tr X '\015'`
6589 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6590 # But we know of no other shell where ac_cr would be empty at this
6591 # point, so we can use a bashism as a fallback.
6592 if test "x$ac_cr" = x; then
6593 eval ac_cr=\$\'\\r\'
6594 fi
6595 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6597 ac_cs_awk_cr='\\r'
6598 else
6599 ac_cs_awk_cr=$ac_cr
6600 fi
6601
6602 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6603 _ACEOF
6604
6605
6606 {
6607 echo "cat >conf$$subs.awk <<_ACEOF" &&
6608 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6609 echo "_ACEOF"
6610 } >conf$$subs.sh ||
6611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6612 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6613 ac_delim='%!_!# '
6614 for ac_last_try in false false false false false :; do
6615 . ./conf$$subs.sh ||
6616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6617
6618 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6619 if test $ac_delim_n = $ac_delim_num; then
6620 break
6621 elif $ac_last_try; then
6622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6623 else
6624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6625 fi
6626 done
6627 rm -f conf$$subs.sh
6628
6629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6630 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6631 _ACEOF
6632 sed -n '
6633 h
6634 s/^/S["/; s/!.*/"]=/
6635 p
6636 g
6637 s/^[^!]*!//
6638 :repl
6639 t repl
6640 s/'"$ac_delim"'$//
6641 t delim
6642 :nl
6643 h
6644 s/\(.\{148\}\)..*/\1/
6645 t more1
6646 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6647 p
6648 n
6649 b repl
6650 :more1
6651 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6652 p
6653 g
6654 s/.\{148\}//
6655 t nl
6656 :delim
6657 h
6658 s/\(.\{148\}\)..*/\1/
6659 t more2
6660 s/["\\]/\\&/g; s/^/"/; s/$/"/
6661 p
6662 b
6663 :more2
6664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6665 p
6666 g
6667 s/.\{148\}//
6668 t delim
6669 ' <conf$$subs.awk | sed '
6670 /^[^""]/{
6671 N
6672 s/\n//
6673 }
6674 ' >>$CONFIG_STATUS || ac_write_fail=1
6675 rm -f conf$$subs.awk
6676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6677 _ACAWK
6678 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6679 for (key in S) S_is_set[key] = 1
6680 FS = ""
6681
6682 }
6683 {
6684 line = $ 0
6685 nfields = split(line, field, "@")
6686 substed = 0
6687 len = length(field[1])
6688 for (i = 2; i < nfields; i++) {
6689 key = field[i]
6690 keylen = length(key)
6691 if (S_is_set[key]) {
6692 value = S[key]
6693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6694 len += length(value) + length(field[++i])
6695 substed = 1
6696 } else
6697 len += 1 + keylen
6698 }
6699
6700 print line
6701 }
6702
6703 _ACAWK
6704 _ACEOF
6705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6706 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6708 else
6709 cat
6710 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6711 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6712 _ACEOF
6713
6714 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6715 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6716 # trailing colons and then remove the whole line if VPATH becomes empty
6717 # (actually we leave an empty line to preserve line numbers).
6718 if test "x$srcdir" = x.; then
6719 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6720 h
6721 s///
6722 s/^/:/
6723 s/[ ]*$/:/
6724 s/:\$(srcdir):/:/g
6725 s/:\${srcdir}:/:/g
6726 s/:@srcdir@:/:/g
6727 s/^:*//
6728 s/:*$//
6729 x
6730 s/\(=[ ]*\).*/\1/
6731 G
6732 s/\n//
6733 s/^[^=]*=[ ]*$//
6734 }'
6735 fi
6736
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 fi # test -n "$CONFIG_FILES"
6739
6740 # Set up the scripts for CONFIG_HEADERS section.
6741 # No need to generate them if there are no CONFIG_HEADERS.
6742 # This happens for instance with `./config.status Makefile'.
6743 if test -n "$CONFIG_HEADERS"; then
6744 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6745 BEGIN {
6746 _ACEOF
6747
6748 # Transform confdefs.h into an awk script `defines.awk', embedded as
6749 # here-document in config.status, that substitutes the proper values into
6750 # config.h.in to produce config.h.
6751
6752 # Create a delimiter string that does not exist in confdefs.h, to ease
6753 # handling of long lines.
6754 ac_delim='%!_!# '
6755 for ac_last_try in false false :; do
6756 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6757 if test -z "$ac_tt"; then
6758 break
6759 elif $ac_last_try; then
6760 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6761 else
6762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6763 fi
6764 done
6765
6766 # For the awk script, D is an array of macro values keyed by name,
6767 # likewise P contains macro parameters if any. Preserve backslash
6768 # newline sequences.
6769
6770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6771 sed -n '
6772 s/.\{148\}/&'"$ac_delim"'/g
6773 t rset
6774 :rset
6775 s/^[ ]*#[ ]*define[ ][ ]*/ /
6776 t def
6777 d
6778 :def
6779 s/\\$//
6780 t bsnl
6781 s/["\\]/\\&/g
6782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6783 D["\1"]=" \3"/p
6784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6785 d
6786 :bsnl
6787 s/["\\]/\\&/g
6788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6789 D["\1"]=" \3\\\\\\n"\\/p
6790 t cont
6791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6792 t cont
6793 d
6794 :cont
6795 n
6796 s/.\{148\}/&'"$ac_delim"'/g
6797 t clear
6798 :clear
6799 s/\\$//
6800 t bsnlc
6801 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6802 d
6803 :bsnlc
6804 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6805 b cont
6806 ' <confdefs.h | sed '
6807 s/'"$ac_delim"'/"\\\
6808 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6809
6810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6811 for (key in D) D_is_set[key] = 1
6812 FS = ""
6813 }
6814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6815 line = \$ 0
6816 split(line, arg, " ")
6817 if (arg[1] == "#") {
6818 defundef = arg[2]
6819 mac1 = arg[3]
6820 } else {
6821 defundef = substr(arg[1], 2)
6822 mac1 = arg[2]
6823 }
6824 split(mac1, mac2, "(") #)
6825 macro = mac2[1]
6826 prefix = substr(line, 1, index(line, defundef) - 1)
6827 if (D_is_set[macro]) {
6828 # Preserve the white space surrounding the "#".
6829 print prefix "define", macro P[macro] D[macro]
6830 next
6831 } else {
6832 # Replace #undef with comments. This is necessary, for example,
6833 # in the case of _POSIX_SOURCE, which is predefined and required
6834 # on some systems where configure will not decide to define it.
6835 if (defundef == "undef") {
6836 print "/*", prefix defundef, macro, "*/"
6837 next
6838 }
6839 }
6840 }
6841 { print }
6842 _ACAWK
6843 _ACEOF
6844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6845 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6846 fi # test -n "$CONFIG_HEADERS"
6847
6848
6849 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6850 shift
6851 for ac_tag
6852 do
6853 case $ac_tag in
6854 :[FHLC]) ac_mode=$ac_tag; continue;;
6855 esac
6856 case $ac_mode$ac_tag in
6857 :[FHL]*:*);;
6858 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6859 :[FH]-) ac_tag=-:-;;
6860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6861 esac
6862 ac_save_IFS=$IFS
6863 IFS=:
6864 set x $ac_tag
6865 IFS=$ac_save_IFS
6866 shift
6867 ac_file=$1
6868 shift
6869
6870 case $ac_mode in
6871 :L) ac_source=$1;;
6872 :[FH])
6873 ac_file_inputs=
6874 for ac_f
6875 do
6876 case $ac_f in
6877 -) ac_f="$ac_tmp/stdin";;
6878 *) # Look for the file first in the build tree, then in the source tree
6879 # (if the path is not absolute). The absolute path cannot be DOS-style,
6880 # because $ac_f cannot contain `:'.
6881 test -f "$ac_f" ||
6882 case $ac_f in
6883 [\\/$]*) false;;
6884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6885 esac ||
6886 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6887 esac
6888 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6889 as_fn_append ac_file_inputs " '$ac_f'"
6890 done
6891
6892 # Let's still pretend it is `configure' which instantiates (i.e., don't
6893 # use $as_me), people would be surprised to read:
6894 # /* config.h. Generated by config.status. */
6895 configure_input='Generated from '`
6896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6897 `' by configure.'
6898 if test x"$ac_file" != x-; then
6899 configure_input="$ac_file. $configure_input"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6901 $as_echo "$as_me: creating $ac_file" >&6;}
6902 fi
6903 # Neutralize special characters interpreted by sed in replacement strings.
6904 case $configure_input in #(
6905 *\&* | *\|* | *\\* )
6906 ac_sed_conf_input=`$as_echo "$configure_input" |
6907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6908 *) ac_sed_conf_input=$configure_input;;
6909 esac
6910
6911 case $ac_tag in
6912 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6914 esac
6915 ;;
6916 esac
6917
6918 ac_dir=`$as_dirname -- "$ac_file" ||
6919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6920 X"$ac_file" : 'X\(//\)[^/]' \| \
6921 X"$ac_file" : 'X\(//\)$' \| \
6922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6923 $as_echo X"$ac_file" |
6924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6925 s//\1/
6926 q
6927 }
6928 /^X\(\/\/\)[^/].*/{
6929 s//\1/
6930 q
6931 }
6932 /^X\(\/\/\)$/{
6933 s//\1/
6934 q
6935 }
6936 /^X\(\/\).*/{
6937 s//\1/
6938 q
6939 }
6940 s/.*/./; q'`
6941 as_dir="$ac_dir"; as_fn_mkdir_p
6942 ac_builddir=.
6943
6944 case "$ac_dir" in
6945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6946 *)
6947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6948 # A ".." for each directory in $ac_dir_suffix.
6949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6950 case $ac_top_builddir_sub in
6951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6953 esac ;;
6954 esac
6955 ac_abs_top_builddir=$ac_pwd
6956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6957 # for backward compatibility:
6958 ac_top_builddir=$ac_top_build_prefix
6959
6960 case $srcdir in
6961 .) # We are building in place.
6962 ac_srcdir=.
6963 ac_top_srcdir=$ac_top_builddir_sub
6964 ac_abs_top_srcdir=$ac_pwd ;;
6965 [\\/]* | ?:[\\/]* ) # Absolute name.
6966 ac_srcdir=$srcdir$ac_dir_suffix;
6967 ac_top_srcdir=$srcdir
6968 ac_abs_top_srcdir=$srcdir ;;
6969 *) # Relative name.
6970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6971 ac_top_srcdir=$ac_top_build_prefix$srcdir
6972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6973 esac
6974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6975
6976
6977 case $ac_mode in
6978 :F)
6979 #
6980 # CONFIG_FILE
6981 #
6982
6983 case $INSTALL in
6984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6986 esac
6987 ac_MKDIR_P=$MKDIR_P
6988 case $MKDIR_P in
6989 [\\/$]* | ?:[\\/]* ) ;;
6990 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6991 esac
6992 _ACEOF
6993
6994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6995 # If the template does not know about datarootdir, expand it.
6996 # FIXME: This hack should be removed a few years after 2.60.
6997 ac_datarootdir_hack=; ac_datarootdir_seen=
6998 ac_sed_dataroot='
6999 /datarootdir/ {
7000 p
7001 q
7002 }
7003 /@datadir@/p
7004 /@docdir@/p
7005 /@infodir@/p
7006 /@localedir@/p
7007 /@mandir@/p'
7008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7009 *datarootdir*) ac_datarootdir_seen=yes;;
7010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7013 _ACEOF
7014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7015 ac_datarootdir_hack='
7016 s&@datadir@&$datadir&g
7017 s&@docdir@&$docdir&g
7018 s&@infodir@&$infodir&g
7019 s&@localedir@&$localedir&g
7020 s&@mandir@&$mandir&g
7021 s&\\\${datarootdir}&$datarootdir&g' ;;
7022 esac
7023 _ACEOF
7024
7025 # Neutralize VPATH when `$srcdir' = `.'.
7026 # Shell code in configure.ac might set extrasub.
7027 # FIXME: do we really want to maintain this feature?
7028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7029 ac_sed_extra="$ac_vpsub
7030 $extrasub
7031 _ACEOF
7032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7033 :t
7034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7035 s|@configure_input@|$ac_sed_conf_input|;t t
7036 s&@top_builddir@&$ac_top_builddir_sub&;t t
7037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7038 s&@srcdir@&$ac_srcdir&;t t
7039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7040 s&@top_srcdir@&$ac_top_srcdir&;t t
7041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7042 s&@builddir@&$ac_builddir&;t t
7043 s&@abs_builddir@&$ac_abs_builddir&;t t
7044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7045 s&@INSTALL@&$ac_INSTALL&;t t
7046 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7047 $ac_datarootdir_hack
7048 "
7049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7050 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7051
7052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7055 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7057 which seems to be undefined. Please make sure it is defined" >&5
7058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7059 which seems to be undefined. Please make sure it is defined" >&2;}
7060
7061 rm -f "$ac_tmp/stdin"
7062 case $ac_file in
7063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7065 esac \
7066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7067 ;;
7068 :H)
7069 #
7070 # CONFIG_HEADER
7071 #
7072 if test x"$ac_file" != x-; then
7073 {
7074 $as_echo "/* $configure_input */" \
7075 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7076 } >"$ac_tmp/config.h" \
7077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7078 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7081 else
7082 rm -f "$ac_file"
7083 mv "$ac_tmp/config.h" "$ac_file" \
7084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7085 fi
7086 else
7087 $as_echo "/* $configure_input */" \
7088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7089 || as_fn_error $? "could not create -" "$LINENO" 5
7090 fi
7091 # Compute "$ac_file"'s index in $config_headers.
7092 _am_arg="$ac_file"
7093 _am_stamp_count=1
7094 for _am_header in $config_headers :; do
7095 case $_am_header in
7096 $_am_arg | $_am_arg:* )
7097 break ;;
7098 * )
7099 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7100 esac
7101 done
7102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7104 X"$_am_arg" : 'X\(//\)[^/]' \| \
7105 X"$_am_arg" : 'X\(//\)$' \| \
7106 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7107 $as_echo X"$_am_arg" |
7108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7109 s//\1/
7110 q
7111 }
7112 /^X\(\/\/\)[^/].*/{
7113 s//\1/
7114 q
7115 }
7116 /^X\(\/\/\)$/{
7117 s//\1/
7118 q
7119 }
7120 /^X\(\/\).*/{
7121 s//\1/
7122 q
7123 }
7124 s/.*/./; q'`/stamp-h$_am_stamp_count
7125 ;;
7126
7127 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7128 $as_echo "$as_me: executing $ac_file commands" >&6;}
7129 ;;
7130 esac
7131
7132
7133 case $ac_file$ac_mode in
7134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7135 # Older Autoconf quotes --file arguments for eval, but not when files
7136 # are listed without --file. Let's play safe and only enable the eval
7137 # if we detect the quoting.
7138 case $CONFIG_FILES in
7139 *\'*) eval set x "$CONFIG_FILES" ;;
7140 *) set x $CONFIG_FILES ;;
7141 esac
7142 shift
7143 for mf
7144 do
7145 # Strip MF so we end up with the name of the file.
7146 mf=`echo "$mf" | sed -e 's/:.*$//'`
7147 # Check whether this is an Automake generated Makefile or not.
7148 # We used to match only the files named 'Makefile.in', but
7149 # some people rename them; so instead we look at the file content.
7150 # Grep'ing the first line is not enough: some people post-process
7151 # each Makefile.in and add a new line on top of each file to say so.
7152 # Grep'ing the whole file is not good either: AIX grep has a line
7153 # limit of 2048, but all sed's we know have understand at least 4000.
7154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7155 dirpart=`$as_dirname -- "$mf" ||
7156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7157 X"$mf" : 'X\(//\)[^/]' \| \
7158 X"$mf" : 'X\(//\)$' \| \
7159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7160 $as_echo X"$mf" |
7161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7162 s//\1/
7163 q
7164 }
7165 /^X\(\/\/\)[^/].*/{
7166 s//\1/
7167 q
7168 }
7169 /^X\(\/\/\)$/{
7170 s//\1/
7171 q
7172 }
7173 /^X\(\/\).*/{
7174 s//\1/
7175 q
7176 }
7177 s/.*/./; q'`
7178 else
7179 continue
7180 fi
7181 # Extract the definition of DEPDIR, am__include, and am__quote
7182 # from the Makefile without running 'make'.
7183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7184 test -z "$DEPDIR" && continue
7185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7186 test -z "$am__include" && continue
7187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7188 # Find all dependency output files, they are included files with
7189 # $(DEPDIR) in their names. We invoke sed twice because it is the
7190 # simplest approach to changing $(DEPDIR) to its actual value in the
7191 # expansion.
7192 for file in `sed -n "
7193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7195 # Make sure the directory exists.
7196 test -f "$dirpart/$file" && continue
7197 fdir=`$as_dirname -- "$file" ||
7198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7199 X"$file" : 'X\(//\)[^/]' \| \
7200 X"$file" : 'X\(//\)$' \| \
7201 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7202 $as_echo X"$file" |
7203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7204 s//\1/
7205 q
7206 }
7207 /^X\(\/\/\)[^/].*/{
7208 s//\1/
7209 q
7210 }
7211 /^X\(\/\/\)$/{
7212 s//\1/
7213 q
7214 }
7215 /^X\(\/\).*/{
7216 s//\1/
7217 q
7218 }
7219 s/.*/./; q'`
7220 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7221 # echo "creating $dirpart/$file"
7222 echo '# dummy' > "$dirpart/$file"
7223 done
7224 done
7225 }
7226 ;;
7227
7228 esac
7229 done # for ac_tag
7230
7231
7232 as_fn_exit 0
7233 _ACEOF
7234 ac_clean_files=$ac_clean_files_save
7235
7236 test $ac_write_fail = 0 ||
7237 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7238
7239
7240 # configure is writing to config.log, and then calls config.status.
7241 # config.status does its own redirection, appending to config.log.
7242 # Unfortunately, on DOS this fails, as config.log is still kept open
7243 # by configure, so config.status won't be able to write to it; its
7244 # output is simply discarded. So we exec the FD to /dev/null,
7245 # effectively closing config.log, so it can be properly (re)opened and
7246 # appended to by config.status. When coming back to configure, we
7247 # need to make the FD available again.
7248 if test "$no_create" != yes; then
7249 ac_cs_success=:
7250 ac_config_status_args=
7251 test "$silent" = yes &&
7252 ac_config_status_args="$ac_config_status_args --quiet"
7253 exec 5>/dev/null
7254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7255 exec 5>>config.log
7256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7257 # would make configure fail if this is the last instruction.
7258 $ac_cs_success || as_fn_exit 1
7259 fi
7260 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7262 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7263 fi
7264