Small fixes to make FreeBSD happy
[jimtcl.git] / configure
blob1f763b9cf37a805bb456a942c17937c5669bf339
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for jim 0.63.
5 # Report bugs to <steveb@workware.net.au>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: steveb@workware.net.au about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='jim'
562 PACKAGE_TARNAME='jim'
563 PACKAGE_VERSION='0.63'
564 PACKAGE_STRING='jim 0.63'
565 PACKAGE_BUGREPORT='steveb@workware.net.au'
566 PACKAGE_URL=''
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
604 ac_subst_vars='LTLIBOBJS
605 LIBOBJS
606 SRCDIR
607 EXTRA_CFLAGS
608 JIM_EXTENSIONS
609 LIBSOCK
610 LIBDL
611 JIM_LIBTYPE
612 CROSS
613 SH_LDFLAGS
614 SH_CFLAGS
615 host_os
616 host_vendor
617 host_cpu
618 host
619 build_os
620 build_vendor
621 build_cpu
622 build
623 EGREP
624 GREP
626 DEFINE_HAVE_LONG_LONG
627 SET_MAKE
628 OBJEXT
629 EXEEXT
630 ac_ct_CC
631 CPPFLAGS
632 LDFLAGS
633 CFLAGS
635 target_alias
636 host_alias
637 build_alias
638 LIBS
639 ECHO_T
640 ECHO_N
641 ECHO_C
642 DEFS
643 mandir
644 localedir
645 libdir
646 psdir
647 pdfdir
648 dvidir
649 htmldir
650 infodir
651 docdir
652 oldincludedir
653 includedir
654 localstatedir
655 sharedstatedir
656 sysconfdir
657 datadir
658 datarootdir
659 libexecdir
660 sbindir
661 bindir
662 program_transform_name
663 prefix
664 exec_prefix
665 PACKAGE_URL
666 PACKAGE_BUGREPORT
667 PACKAGE_STRING
668 PACKAGE_VERSION
669 PACKAGE_TARNAME
670 PACKAGE_NAME
671 PATH_SEPARATOR
672 SHELL'
673 ac_subst_files=''
674 ac_user_opts='
675 enable_option_checking
676 enable_fork
677 enable_math
678 enable_ipv6
679 with_jim_ext
680 with_out_jim_ext
681 with_jim_shared
683 ac_precious_vars='build_alias
684 host_alias
685 target_alias
687 CFLAGS
688 LDFLAGS
689 LIBS
690 CPPFLAGS
692 CPPFLAGS'
695 # Initialize some variables set by options.
696 ac_init_help=
697 ac_init_version=false
698 ac_unrecognized_opts=
699 ac_unrecognized_sep=
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
702 cache_file=/dev/null
703 exec_prefix=NONE
704 no_create=
705 no_recursion=
706 prefix=NONE
707 program_prefix=NONE
708 program_suffix=NONE
709 program_transform_name=s,x,x,
710 silent=
711 site=
712 srcdir=
713 verbose=
714 x_includes=NONE
715 x_libraries=NONE
717 # Installation directory options.
718 # These are left unexpanded so users can "make install exec_prefix=/foo"
719 # and all the variables that are supposed to be based on exec_prefix
720 # by default will actually change.
721 # Use braces instead of parens because sh, perl, etc. also accept them.
722 # (The list follows the same order as the GNU Coding Standards.)
723 bindir='${exec_prefix}/bin'
724 sbindir='${exec_prefix}/sbin'
725 libexecdir='${exec_prefix}/libexec'
726 datarootdir='${prefix}/share'
727 datadir='${datarootdir}'
728 sysconfdir='${prefix}/etc'
729 sharedstatedir='${prefix}/com'
730 localstatedir='${prefix}/var'
731 includedir='${prefix}/include'
732 oldincludedir='/usr/include'
733 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
734 infodir='${datarootdir}/info'
735 htmldir='${docdir}'
736 dvidir='${docdir}'
737 pdfdir='${docdir}'
738 psdir='${docdir}'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
743 ac_prev=
744 ac_dashdash=
745 for ac_option
747 # If the previous option needs an argument, assign it.
748 if test -n "$ac_prev"; then
749 eval $ac_prev=\$ac_option
750 ac_prev=
751 continue
754 case $ac_option in
755 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756 *=) ac_optarg= ;;
757 *) ac_optarg=yes ;;
758 esac
760 # Accept the important Cygnus configure options, so we can diagnose typos.
762 case $ac_dashdash$ac_option in
764 ac_dashdash=yes ;;
766 -bindir | --bindir | --bindi | --bind | --bin | --bi)
767 ac_prev=bindir ;;
768 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769 bindir=$ac_optarg ;;
771 -build | --build | --buil | --bui | --bu)
772 ac_prev=build_alias ;;
773 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774 build_alias=$ac_optarg ;;
776 -cache-file | --cache-file | --cache-fil | --cache-fi \
777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
778 ac_prev=cache_file ;;
779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
781 cache_file=$ac_optarg ;;
783 --config-cache | -C)
784 cache_file=config.cache ;;
786 -datadir | --datadir | --datadi | --datad)
787 ac_prev=datadir ;;
788 -datadir=* | --datadir=* | --datadi=* | --datad=*)
789 datadir=$ac_optarg ;;
791 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792 | --dataroo | --dataro | --datar)
793 ac_prev=datarootdir ;;
794 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796 datarootdir=$ac_optarg ;;
798 -disable-* | --disable-*)
799 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802 as_fn_error $? "invalid feature name: $ac_useropt"
803 ac_useropt_orig=$ac_useropt
804 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805 case $ac_user_opts in
807 "enable_$ac_useropt"
808 "*) ;;
809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810 ac_unrecognized_sep=', ';;
811 esac
812 eval enable_$ac_useropt=no ;;
814 -docdir | --docdir | --docdi | --doc | --do)
815 ac_prev=docdir ;;
816 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
817 docdir=$ac_optarg ;;
819 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820 ac_prev=dvidir ;;
821 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
822 dvidir=$ac_optarg ;;
824 -enable-* | --enable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error $? "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
833 "enable_$ac_useropt"
834 "*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
837 esac
838 eval enable_$ac_useropt=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
851 with_gas=yes ;;
853 -help | --help | --hel | --he | -h)
854 ac_init_help=long ;;
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866 ac_prev=htmldir ;;
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868 | --ht=*)
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
879 ac_prev=infodir ;;
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
884 ac_prev=libdir ;;
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
886 libdir=$ac_optarg ;;
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
896 ac_prev=localedir ;;
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908 ac_prev=mandir ;;
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
910 mandir=$ac_optarg ;;
912 -nfp | --nfp | --nf)
913 # Obsolete; use --without-fp.
914 with_fp=no ;;
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
918 no_create=yes ;;
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
922 no_recursion=yes ;;
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934 ac_prev=prefix ;;
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
936 prefix=$ac_optarg ;;
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970 ac_prev=pdfdir ;;
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972 pdfdir=$ac_optarg ;;
974 -psdir | --psdir | --psdi | --psd | --ps)
975 ac_prev=psdir ;;
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977 psdir=$ac_optarg ;;
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
981 silent=yes ;;
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984 ac_prev=sbindir ;;
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986 | --sbi=* | --sb=*)
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
992 | --sha | --sh)
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997 | --sha=* | --sh=*)
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1001 ac_prev=site ;;
1002 -site=* | --site=* | --sit=*)
1003 site=$ac_optarg ;;
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006 ac_prev=srcdir ;;
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023 verbose=yes ;;
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1028 -with-* | --with-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid package name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "with_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval with_$ac_useropt=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "with_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval with_$ac_useropt=no ;;
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1079 Try \`$0 --help' for more information"
1082 *=*)
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 case $ac_envvar in #(
1086 '' | [0-9]* | *[!_$as_cr_alnum]* )
1087 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1088 esac
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1100 esac
1101 done
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 as_fn_error $? "missing argument to $ac_option"
1108 if test -n "$ac_unrecognized_opts"; then
1109 case $enable_option_checking in
1110 no) ;;
1111 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1112 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1113 esac
1116 # Check all directory arguments for consistency.
1117 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120 libdir localedir mandir
1122 eval ac_val=\$$ac_var
1123 # Remove trailing slashes.
1124 case $ac_val in
1125 */ )
1126 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127 eval $ac_var=\$ac_val;;
1128 esac
1129 # Be sure to have absolute directory names.
1130 case $ac_val in
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133 esac
1134 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1135 done
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1140 build=$build_alias
1141 host=$host_alias
1142 target=$target_alias
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
1148 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1149 If a cross compiler is detected then cross compile mode will be used" >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1151 cross_compiling=yes
1155 ac_tool_prefix=
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158 test "$silent" = yes && exec 6>/dev/null
1161 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di=`ls -di .` &&
1163 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164 as_fn_error $? "working directory cannot be determined"
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 as_fn_error $? "pwd does not report name of working directory"
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$as_myself" ||
1174 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$as_myself" : 'X\(//\)[^/]' \| \
1176 X"$as_myself" : 'X\(//\)$' \| \
1177 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1178 $as_echo X"$as_myself" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1187 /^X\(\/\/\)$/{
1188 s//\1/
1191 /^X\(\/\).*/{
1192 s//\1/
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1200 else
1201 ac_srcdir_defaulted=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1210 pwd)`
1211 # When building in place, set srcdir=.
1212 if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1215 # Remove unnecessary trailing slashes from srcdir.
1216 # Double slashes in file names in object file debugging info
1217 # mess up M-x gdb in Emacs.
1218 case $srcdir in
1219 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220 esac
1221 for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226 done
1229 # Report the --help message.
1231 if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1234 cat <<_ACEOF
1235 \`configure' configures jim 0.63 to adapt to many kinds of systems.
1237 Usage: $0 [OPTION]... [VAR=VALUE]...
1239 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240 VAR=VALUE. See below for descriptions of some of the useful variables.
1242 Defaults for the options are specified in brackets.
1244 Configuration:
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking ...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255 Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1259 [PREFIX]
1261 By default, \`make install' will install all the files in
1262 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264 for instance \`--prefix=\$HOME'.
1266 For better control, use the options below.
1268 Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/jim]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1288 _ACEOF
1290 cat <<\_ACEOF
1292 System types:
1293 --build=BUILD configure for building on BUILD [guessed]
1294 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1295 _ACEOF
1298 if test -n "$ac_init_help"; then
1299 case $ac_init_help in
1300 short | recursive ) echo "Configuration of jim 0.63:";;
1301 esac
1302 cat <<\_ACEOF
1304 Optional Features:
1305 --disable-option-checking ignore unrecognized --enable/--with options
1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1308 --disable-fork do not use fork (no exec, etc.)
1309 --enable-math include support for math functions
1310 --enable-ipv6 include ipv6 support in the aio extension
1312 Optional Packages:
1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1315 --with-jim-ext="ext1 ext2 ..."
1317 Specify additional jim extensions to include.
1318 These are enabled by default:
1320 aio - ANSI I/O, including open and socket
1321 eventloop - after, vwait, update
1322 array - Tcl-compatible array command
1323 clock - Tcl-compatible clock command
1324 exec - Tcl-compatible exec command
1325 file - Tcl-compatible file command
1326 glob - Tcl-compatible glob command
1327 readdir - Required for glob
1328 package - Package management with the package command
1329 load - Load binary extensions at runtime with load or package
1330 posix - Posix APIs including os.fork, os.wait, pid
1331 regexp - Tcl-compatible regexp, regsub commands
1332 signal - Signal handling
1333 stdlib - Built-in commands including lassign, lambda, alias
1334 syslog - System logging with syslog
1335 tclcompat - Tcl compatible read, gets, puts, parray, case, ...
1337 These are disabled by default:
1339 bio - Binary I/O, mostly for bio copy/file copy
1340 nvp - Name-value pairs C-only API
1341 tree - Similar to tcllib ::struct::tree using references
1343 --with-out-jim-ext="default|ext1 ext2 ..."
1345 Specify jim extensions to exclude.
1346 If 'default' is given, the default extensions will not be added.
1348 --with-jim-shared build a shared library instead of a static library
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1358 CPP C preprocessor
1360 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1363 Report bugs to <steveb@workware.net.au>.
1364 _ACEOF
1365 ac_status=$?
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1373 continue
1374 ac_builddir=.
1376 case "$ac_dir" in
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 esac ;;
1386 esac
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1392 case $srcdir in
1393 .) # We are building in place.
1394 ac_srcdir=.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1401 *) # Relative name.
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 esac
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1416 else
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 fi || ac_status=$?
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1420 done
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1425 cat <<\_ACEOF
1426 jim configure 0.63
1427 generated by GNU Autoconf 2.68
1429 Copyright (C) 2010 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1436 ## ------------------------ ##
1437 ## Autoconf initialization. ##
1438 ## ------------------------ ##
1440 # ac_fn_c_try_compile LINENO
1441 # --------------------------
1442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_compile ()
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 rm -f conftest.$ac_objext
1447 if { { ac_try="$ac_compile"
1448 case "(($ac_try" in
1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1451 esac
1452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 $as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1455 ac_status=$?
1456 if test -s conftest.err; then
1457 grep -v '^ *+' conftest.err >conftest.er1
1458 cat conftest.er1 >&5
1459 mv -f conftest.er1 conftest.err
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.$ac_objext; then :
1466 ac_retval=0
1467 else
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.$ac_ext >&5
1471 ac_retval=1
1473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1474 as_fn_set_status $ac_retval
1476 } # ac_fn_c_try_compile
1478 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1479 # -------------------------------------------
1480 # Tests whether TYPE exists after having included INCLUDES, setting cache
1481 # variable VAR accordingly.
1482 ac_fn_c_check_type ()
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1486 $as_echo_n "checking for $2... " >&6; }
1487 if eval \${$3+:} false; then :
1488 $as_echo_n "(cached) " >&6
1489 else
1490 eval "$3=no"
1491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492 /* end confdefs.h. */
1495 main ()
1497 if (sizeof ($2))
1498 return 0;
1500 return 0;
1502 _ACEOF
1503 if ac_fn_c_try_compile "$LINENO"; then :
1504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1505 /* end confdefs.h. */
1508 main ()
1510 if (sizeof (($2)))
1511 return 0;
1513 return 0;
1515 _ACEOF
1516 if ac_fn_c_try_compile "$LINENO"; then :
1518 else
1519 eval "$3=yes"
1521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1525 eval ac_res=\$$3
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1527 $as_echo "$ac_res" >&6; }
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 } # ac_fn_c_check_type
1532 # ac_fn_c_try_cpp LINENO
1533 # ----------------------
1534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_cpp ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 if { { ac_try="$ac_cpp conftest.$ac_ext"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } > conftest.i && {
1554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 }; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=1
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1567 } # ac_fn_c_try_cpp
1569 # ac_fn_c_try_run LINENO
1570 # ----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1572 # that executables *can* be run.
1573 ac_fn_c_try_run ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1587 { { case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_try") 2>&5
1594 ac_status=$?
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; }; }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: program exited with status $ac_status" >&5
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=$ac_status
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_run
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622 else
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 eval "$3=yes"
1630 else
1631 eval "$3=no"
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 } # ac_fn_c_check_header_compile
1642 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645 # the include files in INCLUDES and setting the cache variable VAR
1646 # accordingly.
1647 ac_fn_c_check_header_mongrel ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if eval \${$3+:} false; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 else
1660 # Is the header compilable?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662 $as_echo_n "checking $2 usability... " >&6; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670 else
1671 ac_header_compiler=no
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675 $as_echo "$ac_header_compiler" >&6; }
1677 # Is the header present?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679 $as_echo_n "checking $2 presence... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686 else
1687 ac_header_preproc=no
1689 rm -f conftest.err conftest.i conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691 $as_echo "$ac_header_preproc" >&6; }
1693 # So? What about this header?
1694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 yes:no: )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 no:yes:* )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 ( $as_echo "## ------------------------------------- ##
1713 ## Report this to steveb@workware.net.au ##
1714 ## ------------------------------------- ##"
1715 ) | sed "s/^/$as_me: WARNING: /" >&2
1717 esac
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 eval "$3=\$ac_header_compiler"
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 } # ac_fn_c_check_header_mongrel
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_link ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 $as_test_x conftest$ac_exeext
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=1
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_c_try_link
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1807 #undef $2
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1824 main ()
1826 return $2 ();
1828 return 0;
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_func
1845 cat >config.log <<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1849 It was created by jim $as_me 0.63, which was
1850 generated by GNU Autoconf 2.68. Invocation command line was
1852 $ $0 $@
1854 _ACEOF
1855 exec 5>>config.log
1857 cat <<_ASUNAME
1858 ## --------- ##
1859 ## Platform. ##
1860 ## --------- ##
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879 _ASUNAME
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 $as_echo "PATH: $as_dir"
1887 done
1888 IFS=$as_save_IFS
1890 } >&5
1892 cat >&5 <<_ACEOF
1895 ## ----------- ##
1896 ## Core tests. ##
1897 ## ----------- ##
1899 _ACEOF
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_configure_args=
1908 ac_configure_args0=
1909 ac_configure_args1=
1910 ac_must_keep_next=false
1911 for ac_pass in 1 2
1913 for ac_arg
1915 case $ac_arg in
1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918 | -silent | --silent | --silen | --sile | --sil)
1919 continue ;;
1920 *\'*)
1921 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 esac
1923 case $ac_pass in
1924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1926 as_fn_append ac_configure_args1 " '$ac_arg'"
1927 if test $ac_must_keep_next = true; then
1928 ac_must_keep_next=false # Got value, back to normal.
1929 else
1930 case $ac_arg in
1931 *=* | --config-cache | -C | -disable-* | --disable-* \
1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934 | -with-* | --with-* | -without-* | --without-* | --x)
1935 case "$ac_configure_args0 " in
1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937 esac
1939 -* ) ac_must_keep_next=true ;;
1940 esac
1942 as_fn_append ac_configure_args " '$ac_arg'"
1944 esac
1945 done
1946 done
1947 { ac_configure_args0=; unset ac_configure_args0;}
1948 { ac_configure_args1=; unset ac_configure_args1;}
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log. We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956 # Save into config.log some information that might help in debugging.
1958 echo
1960 $as_echo "## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##"
1963 echo
1964 # The following way of writing the cache mishandles newlines in values,
1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967 eval ac_val=\$$ac_var
1968 case $ac_val in #(
1969 *${as_nl}*)
1970 case $ac_var in #(
1971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973 esac
1974 case $ac_var in #(
1975 _ | IFS | as_nl) ;; #(
1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977 *) { eval $ac_var=; unset $ac_var;} ;;
1978 esac ;;
1979 esac
1980 done
1981 (set) 2>&1 |
1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983 *${as_nl}ac_space=\ *)
1984 sed -n \
1985 "s/'\''/'\''\\\\'\'''\''/g;
1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987 ;; #(
1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1991 esac |
1992 sort
1994 echo
1996 $as_echo "## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##"
1999 echo
2000 for ac_var in $ac_subst_vars
2002 eval ac_val=\$$ac_var
2003 case $ac_val in
2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 esac
2006 $as_echo "$ac_var='\''$ac_val'\''"
2007 done | sort
2008 echo
2010 if test -n "$ac_subst_files"; then
2011 $as_echo "## ------------------- ##
2012 ## File substitutions. ##
2013 ## ------------------- ##"
2014 echo
2015 for ac_var in $ac_subst_files
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2026 if test -s confdefs.h; then
2027 $as_echo "## ----------- ##
2028 ## confdefs.h. ##
2029 ## ----------- ##"
2030 echo
2031 cat confdefs.h
2032 echo
2034 test "$ac_signal" != 0 &&
2035 $as_echo "$as_me: caught signal $ac_signal"
2036 $as_echo "$as_me: exit $exit_status"
2037 } >&5
2038 rm -f core *.core core.conftest.* &&
2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 exit $exit_status
2042 for ac_signal in 1 2 13 15; do
2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2044 done
2045 ac_signal=0
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2050 $as_echo "/* confdefs.h */" > confdefs.h
2052 # Predefined preprocessor variables.
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2056 _ACEOF
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 _ACEOF
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 _ACEOF
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_STRING "$PACKAGE_STRING"
2068 _ACEOF
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 _ACEOF
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_URL "$PACKAGE_URL"
2076 _ACEOF
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2081 ac_site_file1=NONE
2082 ac_site_file2=NONE
2083 if test -n "$CONFIG_SITE"; then
2084 # We do not want a PATH search for config.site.
2085 case $CONFIG_SITE in #((
2086 -*) ac_site_file1=./$CONFIG_SITE;;
2087 */*) ac_site_file1=$CONFIG_SITE;;
2088 *) ac_site_file1=./$CONFIG_SITE;;
2089 esac
2090 elif test "x$prefix" != xNONE; then
2091 ac_site_file1=$prefix/share/config.site
2092 ac_site_file2=$prefix/etc/config.site
2093 else
2094 ac_site_file1=$ac_default_prefix/share/config.site
2095 ac_site_file2=$ac_default_prefix/etc/config.site
2097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 test "x$ac_site_file" = xNONE && continue
2100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2103 sed 's/^/| /' "$ac_site_file" >&5
2104 . "$ac_site_file" \
2105 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2107 as_fn_error $? "failed to load site script $ac_site_file
2108 See \`config.log' for more details" "$LINENO" 5; }
2110 done
2112 if test -r "$cache_file"; then
2113 # Some versions of bash will fail to source /dev/null (special files
2114 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117 $as_echo "$as_me: loading cache $cache_file" >&6;}
2118 case $cache_file in
2119 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120 *) . "./$cache_file";;
2121 esac
2123 else
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125 $as_echo "$as_me: creating cache $cache_file" >&6;}
2126 >$cache_file
2129 # Check that the precious variables saved in the cache have kept the same
2130 # value.
2131 ac_cache_corrupted=false
2132 for ac_var in $ac_precious_vars; do
2133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2134 eval ac_new_set=\$ac_env_${ac_var}_set
2135 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2136 eval ac_new_val=\$ac_env_${ac_var}_value
2137 case $ac_old_set,$ac_new_set in
2138 set,)
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2141 ac_cache_corrupted=: ;;
2142 ,set)
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2145 ac_cache_corrupted=: ;;
2146 ,);;
2148 if test "x$ac_old_val" != "x$ac_new_val"; then
2149 # differences in whitespace do not lead to failure.
2150 ac_old_val_w=`echo x $ac_old_val`
2151 ac_new_val_w=`echo x $ac_new_val`
2152 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155 ac_cache_corrupted=:
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2159 eval $ac_var=\$ac_old_val
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2162 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2164 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2165 fi;;
2166 esac
2167 # Pass precious variables to config.status.
2168 if test "$ac_new_set" = set; then
2169 case $ac_new_val in
2170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 *) ac_arg=$ac_var=$ac_new_val ;;
2172 esac
2173 case " $ac_configure_args " in
2174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2175 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2176 esac
2178 done
2179 if $ac_cache_corrupted; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2184 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186 ## -------------------- ##
2187 ## Main body of script. ##
2188 ## -------------------- ##
2190 ac_ext=c
2191 ac_cpp='$CPP $CPPFLAGS'
2192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 ac_config_headers="$ac_config_headers jimautoconf.h"
2200 # Checks for programs.
2201 ac_ext=c
2202 ac_cpp='$CPP $CPPFLAGS'
2203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206 if test -n "$ac_tool_prefix"; then
2207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if ${ac_cv_prog_CC+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2228 done
2229 done
2230 IFS=$as_save_IFS
2234 CC=$ac_cv_prog_CC
2235 if test -n "$CC"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2237 $as_echo "$CC" >&6; }
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2240 $as_echo "no" >&6; }
2245 if test -z "$ac_cv_prog_CC"; then
2246 ac_ct_CC=$CC
2247 # Extract the first word of "gcc", so it can be a program name with args.
2248 set dummy gcc; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 if test -n "$ac_ct_CC"; then
2255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_ac_ct_CC="gcc"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2268 done
2269 done
2270 IFS=$as_save_IFS
2274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275 if test -n "$ac_ct_CC"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2277 $as_echo "$ac_ct_CC" >&6; }
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280 $as_echo "no" >&6; }
2283 if test "x$ac_ct_CC" = x; then
2284 CC=""
2285 else
2286 case $cross_compiling:$ac_tool_warned in
2287 yes:)
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2290 ac_tool_warned=yes ;;
2291 esac
2292 CC=$ac_ct_CC
2294 else
2295 CC="$ac_cv_prog_CC"
2298 if test -z "$CC"; then
2299 if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}cc; ac_word=$2
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2303 $as_echo_n "checking for $ac_word... " >&6; }
2304 if ${ac_cv_prog_CC+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317 ac_cv_prog_CC="${ac_tool_prefix}cc"
2318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 break 2
2321 done
2322 done
2323 IFS=$as_save_IFS
2327 CC=$ac_cv_prog_CC
2328 if test -n "$CC"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2330 $as_echo "$CC" >&6; }
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2333 $as_echo "no" >&6; }
2339 if test -z "$CC"; then
2340 # Extract the first word of "cc", so it can be a program name with args.
2341 set dummy cc; ac_word=$2
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2343 $as_echo_n "checking for $ac_word... " >&6; }
2344 if ${ac_cv_prog_CC+:} false; then :
2345 $as_echo_n "(cached) " >&6
2346 else
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 else
2350 ac_prog_rejected=no
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2359 ac_prog_rejected=yes
2360 continue
2362 ac_cv_prog_CC="cc"
2363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2366 done
2367 done
2368 IFS=$as_save_IFS
2370 if test $ac_prog_rejected = yes; then
2371 # We found a bogon in the path, so make sure we never use it.
2372 set dummy $ac_cv_prog_CC
2373 shift
2374 if test $# != 0; then
2375 # We chose a different compiler from the bogus one.
2376 # However, it has the same basename, so the bogon will be chosen
2377 # first if we set CC to just the basename; use the full file name.
2378 shift
2379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2387 $as_echo "$CC" >&6; }
2388 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2390 $as_echo "no" >&6; }
2395 if test -z "$CC"; then
2396 if test -n "$ac_tool_prefix"; then
2397 for ac_prog in cl.exe
2399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_CC+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2420 done
2421 done
2422 IFS=$as_save_IFS
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429 $as_echo "$CC" >&6; }
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2436 test -n "$CC" && break
2437 done
2439 if test -z "$CC"; then
2440 ac_ct_CC=$CC
2441 for ac_prog in cl.exe
2443 # Extract the first word of "$ac_prog", so it can be a program name with args.
2444 set dummy $ac_prog; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_ac_ct_CC="$ac_prog"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2464 done
2465 done
2466 IFS=$as_save_IFS
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2473 $as_echo "$ac_ct_CC" >&6; }
2474 else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2480 test -n "$ac_ct_CC" && break
2481 done
2483 if test "x$ac_ct_CC" = x; then
2484 CC=""
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487 yes:)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492 CC=$ac_ct_CC
2499 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 as_fn_error $? "no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details" "$LINENO" 5; }
2504 # Provide some information about the compiler.
2505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2506 set X $ac_compile
2507 ac_compiler=$2
2508 for ac_option in --version -v -V -qversion; do
2509 { { ac_try="$ac_compiler $ac_option >&5"
2510 case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513 esac
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2517 ac_status=$?
2518 if test -s conftest.err; then
2519 sed '10a\
2520 ... rest of stderr output deleted ...
2521 10q' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2524 rm -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; }
2527 done
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2533 main ()
2537 return 0;
2539 _ACEOF
2540 ac_clean_files_save=$ac_clean_files
2541 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2542 # Try to create an executable without -o first, disregard a.out.
2543 # It will help us diagnose broken compilers, and finding out an intuition
2544 # of exeext.
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2546 $as_echo_n "checking whether the C compiler works... " >&6; }
2547 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 # The possible output files:
2550 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2552 ac_rmfiles=
2553 for ac_file in $ac_files
2555 case $ac_file in
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2557 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2558 esac
2559 done
2560 rm -f $ac_rmfiles
2562 if { { ac_try="$ac_link_default"
2563 case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566 esac
2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link_default") 2>&5
2570 ac_status=$?
2571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572 test $ac_status = 0; }; then :
2573 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2574 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2575 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2576 # so that the user can short-circuit this test for compilers unknown to
2577 # Autoconf.
2578 for ac_file in $ac_files ''
2580 test -f "$ac_file" || continue
2581 case $ac_file in
2582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2584 [ab].out )
2585 # We found the default executable, but exeext='' is most
2586 # certainly right.
2587 break;;
2588 *.* )
2589 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2590 then :; else
2591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593 # We set ac_cv_exeext here because the later test for it is not
2594 # safe: cross compilers may not add the suffix if given an `-o'
2595 # argument, so we may need to know it at that point already.
2596 # Even if this section looks crufty: it has the advantage of
2597 # actually working.
2598 break;;
2600 break;;
2601 esac
2602 done
2603 test "$ac_cv_exeext" = no && ac_cv_exeext=
2605 else
2606 ac_file=''
2608 if test -z "$ac_file"; then :
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 $as_echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error 77 "C compiler cannot create executables
2617 See \`config.log' for more details" "$LINENO" 5; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620 $as_echo "yes" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2623 $as_echo_n "checking for C compiler default output file name... " >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2625 $as_echo "$ac_file" >&6; }
2626 ac_exeext=$ac_cv_exeext
2628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2629 ac_clean_files=$ac_clean_files_save
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2631 $as_echo_n "checking for suffix of executables... " >&6; }
2632 if { { ac_try="$ac_link"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_link") 2>&5
2640 ac_status=$?
2641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2642 test $ac_status = 0; }; then :
2643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648 test -f "$ac_file" || continue
2649 case $ac_file in
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 break;;
2653 * ) break;;
2654 esac
2655 done
2656 else
2657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details" "$LINENO" 5; }
2662 rm -f conftest conftest$ac_cv_exeext
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2664 $as_echo "$ac_cv_exeext" >&6; }
2666 rm -f conftest.$ac_ext
2667 EXEEXT=$ac_cv_exeext
2668 ac_exeext=$EXEEXT
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2671 #include <stdio.h>
2673 main ()
2675 FILE *f = fopen ("conftest.out", "w");
2676 return ferror (f) || fclose (f) != 0;
2679 return 0;
2681 _ACEOF
2682 ac_clean_files="$ac_clean_files conftest.out"
2683 # Check that the compiler produces executables we can run. If not, either
2684 # the compiler is broken, or we cross compile.
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2686 $as_echo_n "checking whether we are cross compiling... " >&6; }
2687 if test "$cross_compiling" != yes; then
2688 { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }
2699 if { ac_try='./conftest$ac_cv_exeext'
2700 { { case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_try") 2>&5
2707 ac_status=$?
2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709 test $ac_status = 0; }; }; then
2710 cross_compiling=no
2711 else
2712 if test "$cross_compiling" = maybe; then
2713 cross_compiling=yes
2714 else
2715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 as_fn_error $? "cannot run C compiled programs.
2718 If you meant to cross compile, use \`--host'.
2719 See \`config.log' for more details" "$LINENO" 5; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2724 $as_echo "$cross_compiling" >&6; }
2726 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2727 ac_clean_files=$ac_clean_files_save
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2729 $as_echo_n "checking for suffix of object files... " >&6; }
2730 if ${ac_cv_objext+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2737 main ()
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.o conftest.obj
2745 if { { ac_try="$ac_compile"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2751 $as_echo "$ac_try_echo"; } >&5
2752 (eval "$ac_compile") 2>&5
2753 ac_status=$?
2754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2755 test $ac_status = 0; }; then :
2756 for ac_file in conftest.o conftest.obj conftest.*; do
2757 test -f "$ac_file" || continue;
2758 case $ac_file in
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2760 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2761 break;;
2762 esac
2763 done
2764 else
2765 $as_echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 as_fn_error $? "cannot compute suffix of object files: cannot compile
2771 See \`config.log' for more details" "$LINENO" 5; }
2773 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2776 $as_echo "$ac_cv_objext" >&6; }
2777 OBJEXT=$ac_cv_objext
2778 ac_objext=$OBJEXT
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2780 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2781 if ${ac_cv_c_compiler_gnu+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h. */
2788 main ()
2790 #ifndef __GNUC__
2791 choke me
2792 #endif
2795 return 0;
2797 _ACEOF
2798 if ac_fn_c_try_compile "$LINENO"; then :
2799 ac_compiler_gnu=yes
2800 else
2801 ac_compiler_gnu=no
2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2809 if test $ac_compiler_gnu = yes; then
2810 GCC=yes
2811 else
2812 GCC=
2814 ac_test_CFLAGS=${CFLAGS+set}
2815 ac_save_CFLAGS=$CFLAGS
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2818 if ${ac_cv_prog_cc_g+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 ac_save_c_werror_flag=$ac_c_werror_flag
2822 ac_c_werror_flag=yes
2823 ac_cv_prog_cc_g=no
2824 CFLAGS="-g"
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2829 main ()
2833 return 0;
2835 _ACEOF
2836 if ac_fn_c_try_compile "$LINENO"; then :
2837 ac_cv_prog_cc_g=yes
2838 else
2839 CFLAGS=""
2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2841 /* end confdefs.h. */
2844 main ()
2848 return 0;
2850 _ACEOF
2851 if ac_fn_c_try_compile "$LINENO"; then :
2853 else
2854 ac_c_werror_flag=$ac_save_c_werror_flag
2855 CFLAGS="-g"
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_cv_prog_cc_g=yes
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 ac_c_werror_flag=$ac_save_c_werror_flag
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2878 $as_echo "$ac_cv_prog_cc_g" >&6; }
2879 if test "$ac_test_CFLAGS" = set; then
2880 CFLAGS=$ac_save_CFLAGS
2881 elif test $ac_cv_prog_cc_g = yes; then
2882 if test "$GCC" = yes; then
2883 CFLAGS="-g -O2"
2884 else
2885 CFLAGS="-g"
2887 else
2888 if test "$GCC" = yes; then
2889 CFLAGS="-O2"
2890 else
2891 CFLAGS=
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2896 if ${ac_cv_prog_cc_c89+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 ac_cv_prog_cc_c89=no
2900 ac_save_CC=$CC
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2903 #include <stdarg.h>
2904 #include <stdio.h>
2905 #include <sys/types.h>
2906 #include <sys/stat.h>
2907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2908 struct buf { int x; };
2909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2910 static char *e (p, i)
2911 char **p;
2912 int i;
2914 return p[i];
2916 static char *f (char * (*g) (char **, int), char **p, ...)
2918 char *s;
2919 va_list v;
2920 va_start (v,p);
2921 s = g (p, va_arg (v,int));
2922 va_end (v);
2923 return s;
2926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2927 function prototypes and stuff, but not '\xHH' hex character constants.
2928 These don't provoke an error unfortunately, instead are silently treated
2929 as 'x'. The following induces an error, until -std is added to get
2930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2931 array size at least. It's necessary to write '\x00'==0 to get something
2932 that's true only with -std. */
2933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2936 inside strings and character constants. */
2937 #define FOO(x) 'x'
2938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2940 int test (int i, double x);
2941 struct s1 {int (*f) (int a);};
2942 struct s2 {int (*f) (double a);};
2943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2944 int argc;
2945 char **argv;
2947 main ()
2949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2951 return 0;
2953 _ACEOF
2954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2957 CC="$ac_save_CC $ac_arg"
2958 if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_cv_prog_cc_c89=$ac_arg
2961 rm -f core conftest.err conftest.$ac_objext
2962 test "x$ac_cv_prog_cc_c89" != "xno" && break
2963 done
2964 rm -f conftest.$ac_ext
2965 CC=$ac_save_CC
2968 # AC_CACHE_VAL
2969 case "x$ac_cv_prog_cc_c89" in
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2972 $as_echo "none needed" >&6; } ;;
2973 xno)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2975 $as_echo "unsupported" >&6; } ;;
2977 CC="$CC $ac_cv_prog_cc_c89"
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2979 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2980 esac
2981 if test "x$ac_cv_prog_cc_c89" != xno; then :
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2992 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2993 set x ${MAKE-make}
2994 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2995 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 cat >conftest.make <<\_ACEOF
2999 SHELL = /bin/sh
3000 all:
3001 @echo '@@@%%%=$(MAKE)=@@@%%%'
3002 _ACEOF
3003 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3004 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3005 *@@@%%%=?*=@@@%%%*)
3006 eval ac_cv_prog_make_${ac_make}_set=yes;;
3008 eval ac_cv_prog_make_${ac_make}_set=no;;
3009 esac
3010 rm -f conftest.make
3012 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 $as_echo "yes" >&6; }
3015 SET_MAKE=
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 SET_MAKE="MAKE=${MAKE-make}"
3023 # Checks for types
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3032 # On Suns, sometimes $CPP names a directory.
3033 if test -n "$CPP" && test -d "$CPP"; then
3034 CPP=
3036 if test -z "$CPP"; then
3037 if ${ac_cv_prog_CPP+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 # Double quotes because CPP needs to be expanded
3041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3043 ac_preproc_ok=false
3044 for ac_c_preproc_warn_flag in '' yes
3046 # Use a header file that comes with gcc, so configuring glibc
3047 # with a fresh cross-compiler works.
3048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3049 # <limits.h> exists even on freestanding compilers.
3050 # On the NeXT, cc -E runs the code through the compiler's parser,
3051 # not just through cpp. "Syntax error" is here to catch this case.
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3054 #ifdef __STDC__
3055 # include <limits.h>
3056 #else
3057 # include <assert.h>
3058 #endif
3059 Syntax error
3060 _ACEOF
3061 if ac_fn_c_try_cpp "$LINENO"; then :
3063 else
3064 # Broken: fails on valid input.
3065 continue
3067 rm -f conftest.err conftest.i conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether nonexistent headers
3070 # can be detected and how.
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3073 #include <ac_nonexistent.h>
3074 _ACEOF
3075 if ac_fn_c_try_cpp "$LINENO"; then :
3076 # Broken: success on invalid input.
3077 continue
3078 else
3079 # Passes both tests.
3080 ac_preproc_ok=:
3081 break
3083 rm -f conftest.err conftest.i conftest.$ac_ext
3085 done
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.i conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then :
3089 break
3092 done
3093 ac_cv_prog_CPP=$CPP
3096 CPP=$ac_cv_prog_CPP
3097 else
3098 ac_cv_prog_CPP=$CPP
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3101 $as_echo "$CPP" >&6; }
3102 ac_preproc_ok=false
3103 for ac_c_preproc_warn_flag in '' yes
3105 # Use a header file that comes with gcc, so configuring glibc
3106 # with a fresh cross-compiler works.
3107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3108 # <limits.h> exists even on freestanding compilers.
3109 # On the NeXT, cc -E runs the code through the compiler's parser,
3110 # not just through cpp. "Syntax error" is here to catch this case.
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113 #ifdef __STDC__
3114 # include <limits.h>
3115 #else
3116 # include <assert.h>
3117 #endif
3118 Syntax error
3119 _ACEOF
3120 if ac_fn_c_try_cpp "$LINENO"; then :
3122 else
3123 # Broken: fails on valid input.
3124 continue
3126 rm -f conftest.err conftest.i conftest.$ac_ext
3128 # OK, works on sane cases. Now check whether nonexistent headers
3129 # can be detected and how.
3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131 /* end confdefs.h. */
3132 #include <ac_nonexistent.h>
3133 _ACEOF
3134 if ac_fn_c_try_cpp "$LINENO"; then :
3135 # Broken: success on invalid input.
3136 continue
3137 else
3138 # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3142 rm -f conftest.err conftest.i conftest.$ac_ext
3144 done
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.i conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then :
3149 else
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details" "$LINENO" 5; }
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3165 if ${ac_cv_path_GREP+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -z "$GREP"; then
3169 ac_path_GREP_found=false
3170 # Loop through the user's path and test for each of PROGNAME-LIST
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_prog in grep ggrep; do
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3179 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3180 # Check for GNU ac_path_GREP and select it if it is found.
3181 # Check for GNU $ac_path_GREP
3182 case `"$ac_path_GREP" --version 2>&1` in
3183 *GNU*)
3184 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3186 ac_count=0
3187 $as_echo_n 0123456789 >"conftest.in"
3188 while :
3190 cat "conftest.in" "conftest.in" >"conftest.tmp"
3191 mv "conftest.tmp" "conftest.in"
3192 cp "conftest.in" "conftest.nl"
3193 $as_echo 'GREP' >> "conftest.nl"
3194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3196 as_fn_arith $ac_count + 1 && ac_count=$as_val
3197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3198 # Best one so far, save it but keep looking for a better one
3199 ac_cv_path_GREP="$ac_path_GREP"
3200 ac_path_GREP_max=$ac_count
3202 # 10*(2^10) chars as input seems more than enough
3203 test $ac_count -gt 10 && break
3204 done
3205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3206 esac
3208 $ac_path_GREP_found && break 3
3209 done
3210 done
3211 done
3212 IFS=$as_save_IFS
3213 if test -z "$ac_cv_path_GREP"; then
3214 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3216 else
3217 ac_cv_path_GREP=$GREP
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3222 $as_echo "$ac_cv_path_GREP" >&6; }
3223 GREP="$ac_cv_path_GREP"
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3227 $as_echo_n "checking for egrep... " >&6; }
3228 if ${ac_cv_path_EGREP+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3232 then ac_cv_path_EGREP="$GREP -E"
3233 else
3234 if test -z "$EGREP"; then
3235 ac_path_EGREP_found=false
3236 # Loop through the user's path and test for each of PROGNAME-LIST
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_prog in egrep; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3245 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3246 # Check for GNU ac_path_EGREP and select it if it is found.
3247 # Check for GNU $ac_path_EGREP
3248 case `"$ac_path_EGREP" --version 2>&1` in
3249 *GNU*)
3250 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3252 ac_count=0
3253 $as_echo_n 0123456789 >"conftest.in"
3254 while :
3256 cat "conftest.in" "conftest.in" >"conftest.tmp"
3257 mv "conftest.tmp" "conftest.in"
3258 cp "conftest.in" "conftest.nl"
3259 $as_echo 'EGREP' >> "conftest.nl"
3260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3262 as_fn_arith $ac_count + 1 && ac_count=$as_val
3263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3264 # Best one so far, save it but keep looking for a better one
3265 ac_cv_path_EGREP="$ac_path_EGREP"
3266 ac_path_EGREP_max=$ac_count
3268 # 10*(2^10) chars as input seems more than enough
3269 test $ac_count -gt 10 && break
3270 done
3271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3272 esac
3274 $ac_path_EGREP_found && break 3
3275 done
3276 done
3277 done
3278 IFS=$as_save_IFS
3279 if test -z "$ac_cv_path_EGREP"; then
3280 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3282 else
3283 ac_cv_path_EGREP=$EGREP
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3289 $as_echo "$ac_cv_path_EGREP" >&6; }
3290 EGREP="$ac_cv_path_EGREP"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3294 $as_echo_n "checking for ANSI C header files... " >&6; }
3295 if ${ac_cv_header_stdc+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3300 #include <stdlib.h>
3301 #include <stdarg.h>
3302 #include <string.h>
3303 #include <float.h>
3306 main ()
3310 return 0;
3312 _ACEOF
3313 if ac_fn_c_try_compile "$LINENO"; then :
3314 ac_cv_header_stdc=yes
3315 else
3316 ac_cv_header_stdc=no
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 if test $ac_cv_header_stdc = yes; then
3321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <string.h>
3326 _ACEOF
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 $EGREP "memchr" >/dev/null 2>&1; then :
3330 else
3331 ac_cv_header_stdc=no
3333 rm -f conftest*
3337 if test $ac_cv_header_stdc = yes; then
3338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341 #include <stdlib.h>
3343 _ACEOF
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "free" >/dev/null 2>&1; then :
3347 else
3348 ac_cv_header_stdc=no
3350 rm -f conftest*
3354 if test $ac_cv_header_stdc = yes; then
3355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356 if test "$cross_compiling" = yes; then :
3358 else
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361 #include <ctype.h>
3362 #include <stdlib.h>
3363 #if ((' ' & 0x0FF) == 0x020)
3364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3366 #else
3367 # define ISLOWER(c) \
3368 (('a' <= (c) && (c) <= 'i') \
3369 || ('j' <= (c) && (c) <= 'r') \
3370 || ('s' <= (c) && (c) <= 'z'))
3371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3372 #endif
3374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3376 main ()
3378 int i;
3379 for (i = 0; i < 256; i++)
3380 if (XOR (islower (i), ISLOWER (i))
3381 || toupper (i) != TOUPPER (i))
3382 return 2;
3383 return 0;
3385 _ACEOF
3386 if ac_fn_c_try_run "$LINENO"; then :
3388 else
3389 ac_cv_header_stdc=no
3391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3392 conftest.$ac_objext conftest.beam conftest.$ac_ext
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3398 $as_echo "$ac_cv_header_stdc" >&6; }
3399 if test $ac_cv_header_stdc = yes; then
3401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3405 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3406 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3407 inttypes.h stdint.h unistd.h
3408 do :
3409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3410 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3413 cat >>confdefs.h <<_ACEOF
3414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3415 _ACEOF
3419 done
3422 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
3423 if test "x$ac_cv_type_long_long" = xyes; then :
3425 cat >>confdefs.h <<_ACEOF
3426 #define HAVE_LONG_LONG 1
3427 _ACEOF
3429 DEFINE_HAVE_LONG_LONG="#define HAVE_LONG_LONG 1"
3431 else
3432 DEFINE_HAVE_LONG_LONG="#undef HAVE_LONG_LONG"
3437 # Shared library support. Because we don't believe in automake!
3438 ac_aux_dir=
3439 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3440 if test -f "$ac_dir/install-sh"; then
3441 ac_aux_dir=$ac_dir
3442 ac_install_sh="$ac_aux_dir/install-sh -c"
3443 break
3444 elif test -f "$ac_dir/install.sh"; then
3445 ac_aux_dir=$ac_dir
3446 ac_install_sh="$ac_aux_dir/install.sh -c"
3447 break
3448 elif test -f "$ac_dir/shtool"; then
3449 ac_aux_dir=$ac_dir
3450 ac_install_sh="$ac_aux_dir/shtool install -c"
3451 break
3453 done
3454 if test -z "$ac_aux_dir"; then
3455 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3458 # These three variables are undocumented and unsupported,
3459 # and are intended to be withdrawn in a future Autoconf release.
3460 # They can cause serious problems if a builder's source tree is in a directory
3461 # whose full name contains unusual characters.
3462 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3463 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3464 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3467 # Make sure we can run config.sub.
3468 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3469 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3472 $as_echo_n "checking build system type... " >&6; }
3473 if ${ac_cv_build+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_build_alias=$build_alias
3477 test "x$ac_build_alias" = x &&
3478 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3479 test "x$ac_build_alias" = x &&
3480 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3486 $as_echo "$ac_cv_build" >&6; }
3487 case $ac_cv_build in
3488 *-*-*) ;;
3489 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3490 esac
3491 build=$ac_cv_build
3492 ac_save_IFS=$IFS; IFS='-'
3493 set x $ac_cv_build
3494 shift
3495 build_cpu=$1
3496 build_vendor=$2
3497 shift; shift
3498 # Remember, the first character of IFS is used to create $*,
3499 # except with old shells:
3500 build_os=$*
3501 IFS=$ac_save_IFS
3502 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3506 $as_echo_n "checking host system type... " >&6; }
3507 if ${ac_cv_host+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test "x$host_alias" = x; then
3511 ac_cv_host=$ac_cv_build
3512 else
3513 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3519 $as_echo "$ac_cv_host" >&6; }
3520 case $ac_cv_host in
3521 *-*-*) ;;
3522 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3523 esac
3524 host=$ac_cv_host
3525 ac_save_IFS=$IFS; IFS='-'
3526 set x $ac_cv_host
3527 shift
3528 host_cpu=$1
3529 host_vendor=$2
3530 shift; shift
3531 # Remember, the first character of IFS is used to create $*,
3532 # except with old shells:
3533 host_os=$*
3534 IFS=$ac_save_IFS
3535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3538 case $host in
3539 *-*-darwin*)
3540 SH_CFLAGS=-dynamic
3542 SH_LDFLAGS="-dynamiclib -undefined suppress -flat_namespace"
3545 SH_CFLAGS=-fPIC
3547 SH_LDFLAGS=-shared
3549 esac
3551 if test -n "$host_alias"; then
3552 CROSS=$host_alias-
3556 # Check whether --enable-fork was given.
3557 if test "${enable_fork+set}" = set; then :
3558 enableval=$enable_fork;
3559 if test "x$enableval" = "xno" ; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: * disabling fork" >&5
3561 $as_echo "* disabling fork" >&6; }
3562 EXTRA_CFLAGS="-DJIM_NOFORK"
3567 # Check whether --enable-math was given.
3568 if test "${enable_math+set}" = set; then :
3569 enableval=$enable_math;
3570 if test "x$enableval" = "xyes" ; then
3571 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJIM_MATH_FUNCTIONS"
3577 # Check whether --enable-ipv6 was given.
3578 if test "${enable_ipv6+set}" = set; then :
3579 enableval=$enable_ipv6;
3580 if test "x$enableval" = "xyes" ; then
3581 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJIM_IPV6"
3588 # All extensions
3589 ext_all=$(echo stdlib load package readdir glob array clock exec file posix regexp signal tclcompat aio bio eventloop syslog nvp tree | tr ' ' '\n' | sort)
3591 # Default extensions
3592 ext_default=$(echo stdlib load package readdir glob array clock exec file posix regexp signal tclcompat aio eventloop syslog | tr ' ' '\n' | sort)
3595 # Check whether --with-jim-ext was given.
3596 if test "${with_jim_ext+set}" = set; then :
3597 withval=$with_jim_ext;
3601 # Check whether --with-out-jim-ext was given.
3602 if test "${with_out_jim_ext+set}" = set; then :
3603 withval=$with_out_jim_ext;
3607 if test "$with_out_jim_ext" = "default"; then
3608 # but we always include stdlib
3609 ext_default=stdlib
3610 with_out_jim_ext=
3613 # Check valid extension names
3614 for i in $with_jim_ext $with_out_jim_ext; do
3615 echo "$ext_all" | grep "^$i\$" >/dev/null || as_fn_error $? "Unknown extension: $i" "$LINENO" 5
3616 done
3618 JIM_LIBTYPE=static
3620 # Check whether --with-jim-shared was given.
3621 if test "${with_jim_shared+set}" = set; then :
3622 withval=$with_jim_shared;
3623 if test "x$withval" = "xyes" ; then
3624 JIM_LIBTYPE=shared
3630 JIM_LIBTYPE=$JIM_LIBTYPE
3633 for ac_header in sys/un.h
3634 do :
3635 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
3636 if test "x$ac_cv_header_sys_un_h" = xyes; then :
3637 cat >>confdefs.h <<_ACEOF
3638 #define HAVE_SYS_UN_H 1
3639 _ACEOF
3643 done
3646 for ac_func in ualarm sysinfo lstat fork vfork
3647 do :
3648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3651 cat >>confdefs.h <<_ACEOF
3652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3653 _ACEOF
3656 done
3658 for ac_func in backtrace geteuid mkstemp realpath strptime
3659 do :
3660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3661 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3662 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3663 cat >>confdefs.h <<_ACEOF
3664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3665 _ACEOF
3668 done
3670 for ac_func in regcomp waitpid sigaction sys_signame sys_siglist
3671 do :
3672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3674 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3675 cat >>confdefs.h <<_ACEOF
3676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3677 _ACEOF
3680 done
3682 for ac_func in syslog opendir readlink sleep usleep pipe inet_ntop getaddrinfo
3683 do :
3684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3686 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3687 cat >>confdefs.h <<_ACEOF
3688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3689 _ACEOF
3692 done
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
3696 $as_echo_n "checking for library containing dlopen... " >&6; }
3697 if ${ac_cv_search_dlopen+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_func_search_save_LIBS=$LIBS
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3704 /* Override any GCC internal prototype to avoid an error.
3705 Use char because int might match the return type of a GCC
3706 builtin and then its argument prototype would still apply. */
3707 #ifdef __cplusplus
3708 extern "C"
3709 #endif
3710 char dlopen ();
3712 main ()
3714 return dlopen ();
3716 return 0;
3718 _ACEOF
3719 for ac_lib in '' dl; do
3720 if test -z "$ac_lib"; then
3721 ac_res="none required"
3722 else
3723 ac_res=-l$ac_lib
3724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3726 if ac_fn_c_try_link "$LINENO"; then :
3727 ac_cv_search_dlopen=$ac_res
3729 rm -f core conftest.err conftest.$ac_objext \
3730 conftest$ac_exeext
3731 if ${ac_cv_search_dlopen+:} false; then :
3732 break
3734 done
3735 if ${ac_cv_search_dlopen+:} false; then :
3737 else
3738 ac_cv_search_dlopen=no
3740 rm conftest.$ac_ext
3741 LIBS=$ac_func_search_save_LIBS
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
3744 $as_echo "$ac_cv_search_dlopen" >&6; }
3745 ac_res=$ac_cv_search_dlopen
3746 if test "$ac_res" != no; then :
3747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3748 LIBDL=${ac_cv_search_dlopen%none required}
3751 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3757 ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
3758 if test "x$ac_cv_header_winsock_h" = xyes; then :
3759 LIBSOCK=-lwsock32
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3763 $as_echo_n "checking for library containing socket... " >&6; }
3764 if ${ac_cv_search_socket+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_func_search_save_LIBS=$LIBS
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3771 /* Override any GCC internal prototype to avoid an error.
3772 Use char because int might match the return type of a GCC
3773 builtin and then its argument prototype would still apply. */
3774 #ifdef __cplusplus
3775 extern "C"
3776 #endif
3777 char socket ();
3779 main ()
3781 return socket ();
3783 return 0;
3785 _ACEOF
3786 for ac_lib in '' socket; do
3787 if test -z "$ac_lib"; then
3788 ac_res="none required"
3789 else
3790 ac_res=-l$ac_lib
3791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3793 if ac_fn_c_try_link "$LINENO"; then :
3794 ac_cv_search_socket=$ac_res
3796 rm -f core conftest.err conftest.$ac_objext \
3797 conftest$ac_exeext
3798 if ${ac_cv_search_socket+:} false; then :
3799 break
3801 done
3802 if ${ac_cv_search_socket+:} false; then :
3804 else
3805 ac_cv_search_socket=no
3807 rm conftest.$ac_ext
3808 LIBS=$ac_func_search_save_LIBS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
3811 $as_echo "$ac_cv_search_socket" >&6; }
3812 ac_res=$ac_cv_search_socket
3813 if test "$ac_res" != no; then :
3814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3815 LIBSOCK=${ac_cv_search_socket%none required}
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for environ in unistd.h" >&5
3826 $as_echo_n "checking for environ in unistd.h... " >&6; }
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3830 #define _GNU_SOURCE
3831 #include <unistd.h>
3832 int main(int argc, char **argv) { char **ep = environ; }
3834 _ACEOF
3835 if ac_fn_c_try_compile "$LINENO"; then :
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3838 $as_echo "yes" >&6; }
3839 has_environ=yes
3841 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3846 # Possibility #2: can environ be found in an available library?
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern environ" >&5
3848 $as_echo_n "checking for extern environ... " >&6; }
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3853 extern char **environ;
3854 int main(int argc, char **argv) { char **ep = environ; }
3857 _ACEOF
3858 if ac_fn_c_try_link "$LINENO"; then :
3861 $as_echo "#define NEED_ENVIRON_EXTERN 1" >>confdefs.h
3863 has_environ=yes
3865 else
3867 has_environ=no
3870 rm -f core conftest.err conftest.$ac_objext \
3871 conftest$ac_exeext conftest.$ac_ext
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${has_environ}" >&5
3873 $as_echo "${has_environ}" >&6; }
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 if test "${has_environ}" != "yes" ; then
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "Could find 'environ' in unistd.h or available libraries.
3882 See \`config.log' for more details" "$LINENO" 5; }
3885 # Now that we know what the platform supports:
3887 # For all known extensions:
3888 # - If it is disabled, remove it
3889 # - Otherwise, check to see if it's pre-requisites are met
3890 # - If yes, add it if it is enabled or is a default
3891 # - If no, error if it is enabled, or do nothing otherwise
3893 needs_regexp="ac_cv_func_regcomp"
3894 needs_syslog="ac_cv_func_syslog"
3895 needs_exec="ac_cv_func_vfork"
3896 needs_posix="ac_cv_func_waitpid"
3897 needs_load="ac_cv_search_dlopen"
3898 needs_signal="ac_cv_func_sigaction ac_cv_func_vfork"
3899 needs_readdir="ac_cv_func_opendir"
3901 ext_add=$(echo $with_jim_ext | tr ' ' '\n')
3902 ext_del=$(echo $with_out_jim_ext | tr ' ' '\n')
3903 for i in $ext_all; do
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking extension $i" >&5
3905 $as_echo_n "checking extension $i... " >&6; }
3906 echo "$ext_del" | grep "^$i\$" >/dev/null
3907 if test $? -eq 0; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
3909 $as_echo "disabled" >&6; }
3910 continue
3912 # Check dependencies
3913 eval "dep=\$needs_$i"
3914 met=1
3915 for d in $dep; do
3916 eval "check=\$$d"
3917 if test "$check" = "no" -o -z "$check" ; then
3918 met=0
3919 break
3921 done
3922 echo "$ext_add" | grep "^$i\$" >/dev/null
3923 if test $? -eq 0; then
3924 if test $met -eq 0; then
3925 as_fn_error $? "dependencies not met" "$LINENO" 5
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
3928 $as_echo "enabled" >&6; }
3929 ext="$ext $i"
3930 continue
3932 echo "$ext_default" | grep "^$i\$" >/dev/null
3933 if test $? -eq 0; then
3934 if test $met -eq 0; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled (dependencies)" >&5
3936 $as_echo "disabled (dependencies)" >&6; }
3937 continue
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled (default)" >&5
3940 $as_echo "enabled (default)" >&6; }
3941 ext="$ext $i"
3942 continue
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not enabled" >&5
3945 $as_echo "not enabled" >&6; }
3946 done
3948 ext=$(echo $ext | tr '\n' ' ')
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Jim extensions: $ext" >&5
3950 $as_echo "Jim extensions: $ext" >&6; }
3951 JIM_EXTENSIONS=$ext
3953 for i in $ext; do
3954 EXTRA_CFLAGS="$EXTRA_CFLAGS -Djim_ext_$i"
3955 done
3957 EXTRA_CFLAGS=$EXTRA_CFLAGS
3959 SRCDIR=`dirname $0`
3962 ac_config_files="$ac_config_files Makefile jimautoconfext.h"
3964 cat >confcache <<\_ACEOF
3965 # This file is a shell script that caches the results of configure
3966 # tests run on this system so they can be shared between configure
3967 # scripts and configure runs, see configure's option --config-cache.
3968 # It is not useful on other systems. If it contains results you don't
3969 # want to keep, you may remove or edit it.
3971 # config.status only pays attention to the cache file if you give it
3972 # the --recheck option to rerun configure.
3974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3976 # following values.
3978 _ACEOF
3980 # The following way of writing the cache mishandles newlines in values,
3981 # but we know of no workaround that is simple, portable, and efficient.
3982 # So, we kill variables containing newlines.
3983 # Ultrix sh set writes to stderr and can't be redirected directly,
3984 # and sets the high bit in the cache file unless we assign to the vars.
3986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3987 eval ac_val=\$$ac_var
3988 case $ac_val in #(
3989 *${as_nl}*)
3990 case $ac_var in #(
3991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3993 esac
3994 case $ac_var in #(
3995 _ | IFS | as_nl) ;; #(
3996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3997 *) { eval $ac_var=; unset $ac_var;} ;;
3998 esac ;;
3999 esac
4000 done
4002 (set) 2>&1 |
4003 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4004 *${as_nl}ac_space=\ *)
4005 # `set' does not quote correctly, so add quotes: double-quote
4006 # substitution turns \\\\ into \\, and sed turns \\ into \.
4007 sed -n \
4008 "s/'/'\\\\''/g;
4009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4010 ;; #(
4012 # `set' quotes correctly as required by POSIX, so do not add quotes.
4013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4015 esac |
4016 sort
4018 sed '
4019 /^ac_cv_env_/b end
4020 t clear
4021 :clear
4022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4023 t end
4024 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4025 :end' >>confcache
4026 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4027 if test -w "$cache_file"; then
4028 if test "x$cache_file" != "x/dev/null"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4030 $as_echo "$as_me: updating cache $cache_file" >&6;}
4031 if test ! -f "$cache_file" || test -h "$cache_file"; then
4032 cat confcache >"$cache_file"
4033 else
4034 case $cache_file in #(
4035 */* | ?:*)
4036 mv -f confcache "$cache_file"$$ &&
4037 mv -f "$cache_file"$$ "$cache_file" ;; #(
4039 mv -f confcache "$cache_file" ;;
4040 esac
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4045 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4048 rm -f confcache
4050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4051 # Let make expand exec_prefix.
4052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4054 DEFS=-DHAVE_CONFIG_H
4056 ac_libobjs=
4057 ac_ltlibobjs=
4059 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4060 # 1. Remove the extension, and $U if already installed.
4061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4062 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4064 # will be set to the directory where LIBOBJS objects are built.
4065 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4066 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4067 done
4068 LIBOBJS=$ac_libobjs
4070 LTLIBOBJS=$ac_ltlibobjs
4074 : "${CONFIG_STATUS=./config.status}"
4075 ac_write_fail=0
4076 ac_clean_files_save=$ac_clean_files
4077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4080 as_write_fail=0
4081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4082 #! $SHELL
4083 # Generated by $as_me.
4084 # Run this file to recreate the current configuration.
4085 # Compiler output produced by configure, useful for debugging
4086 # configure, is in config.log if it exists.
4088 debug=false
4089 ac_cs_recheck=false
4090 ac_cs_silent=false
4092 SHELL=\${CONFIG_SHELL-$SHELL}
4093 export SHELL
4094 _ASEOF
4095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4096 ## -------------------- ##
4097 ## M4sh Initialization. ##
4098 ## -------------------- ##
4100 # Be more Bourne compatible
4101 DUALCASE=1; export DUALCASE # for MKS sh
4102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4103 emulate sh
4104 NULLCMD=:
4105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4106 # is contrary to our usage. Disable this feature.
4107 alias -g '${1+"$@"}'='"$@"'
4108 setopt NO_GLOB_SUBST
4109 else
4110 case `(set -o) 2>/dev/null` in #(
4111 *posix*) :
4112 set -o posix ;; #(
4113 *) :
4115 esac
4119 as_nl='
4121 export as_nl
4122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4123 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4126 # Prefer a ksh shell builtin over an external printf program on Solaris,
4127 # but without wasting forks for bash or zsh.
4128 if test -z "$BASH_VERSION$ZSH_VERSION" \
4129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4130 as_echo='print -r --'
4131 as_echo_n='print -rn --'
4132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4133 as_echo='printf %s\n'
4134 as_echo_n='printf %s'
4135 else
4136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4137 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4138 as_echo_n='/usr/ucb/echo -n'
4139 else
4140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4141 as_echo_n_body='eval
4142 arg=$1;
4143 case $arg in #(
4144 *"$as_nl"*)
4145 expr "X$arg" : "X\\(.*\\)$as_nl";
4146 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4147 esac;
4148 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4150 export as_echo_n_body
4151 as_echo_n='sh -c $as_echo_n_body as_echo'
4153 export as_echo_body
4154 as_echo='sh -c $as_echo_body as_echo'
4157 # The user is always right.
4158 if test "${PATH_SEPARATOR+set}" != set; then
4159 PATH_SEPARATOR=:
4160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4161 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4162 PATH_SEPARATOR=';'
4167 # IFS
4168 # We need space, tab and new line, in precisely that order. Quoting is
4169 # there to prevent editors from complaining about space-tab.
4170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4171 # splitting by setting IFS to empty value.)
4172 IFS=" "" $as_nl"
4174 # Find who we are. Look in the path if we contain no directory separator.
4175 as_myself=
4176 case $0 in #((
4177 *[\\/]* ) as_myself=$0 ;;
4178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4184 done
4185 IFS=$as_save_IFS
4188 esac
4189 # We did not find ourselves, most probably we were run as `sh COMMAND'
4190 # in which case we are not to be found in the path.
4191 if test "x$as_myself" = x; then
4192 as_myself=$0
4194 if test ! -f "$as_myself"; then
4195 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4196 exit 1
4199 # Unset variables that we do not need and which cause bugs (e.g. in
4200 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4201 # suppresses any "Segmentation fault" message there. '((' could
4202 # trigger a bug in pdksh 5.2.14.
4203 for as_var in BASH_ENV ENV MAIL MAILPATH
4204 do eval test x\${$as_var+set} = xset \
4205 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4206 done
4207 PS1='$ '
4208 PS2='> '
4209 PS4='+ '
4211 # NLS nuisances.
4212 LC_ALL=C
4213 export LC_ALL
4214 LANGUAGE=C
4215 export LANGUAGE
4217 # CDPATH.
4218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4221 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4222 # ----------------------------------------
4223 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4224 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4225 # script with STATUS, using 1 if that was 0.
4226 as_fn_error ()
4228 as_status=$1; test $as_status -eq 0 && as_status=1
4229 if test "$4"; then
4230 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4231 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4233 $as_echo "$as_me: error: $2" >&2
4234 as_fn_exit $as_status
4235 } # as_fn_error
4238 # as_fn_set_status STATUS
4239 # -----------------------
4240 # Set $? to STATUS, without forking.
4241 as_fn_set_status ()
4243 return $1
4244 } # as_fn_set_status
4246 # as_fn_exit STATUS
4247 # -----------------
4248 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4249 as_fn_exit ()
4251 set +e
4252 as_fn_set_status $1
4253 exit $1
4254 } # as_fn_exit
4256 # as_fn_unset VAR
4257 # ---------------
4258 # Portably unset VAR.
4259 as_fn_unset ()
4261 { eval $1=; unset $1;}
4263 as_unset=as_fn_unset
4264 # as_fn_append VAR VALUE
4265 # ----------------------
4266 # Append the text in VALUE to the end of the definition contained in VAR. Take
4267 # advantage of any shell optimizations that allow amortized linear growth over
4268 # repeated appends, instead of the typical quadratic growth present in naive
4269 # implementations.
4270 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4271 eval 'as_fn_append ()
4273 eval $1+=\$2
4275 else
4276 as_fn_append ()
4278 eval $1=\$$1\$2
4280 fi # as_fn_append
4282 # as_fn_arith ARG...
4283 # ------------------
4284 # Perform arithmetic evaluation on the ARGs, and store the result in the
4285 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4286 # must be portable across $(()) and expr.
4287 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4288 eval 'as_fn_arith ()
4290 as_val=$(( $* ))
4292 else
4293 as_fn_arith ()
4295 as_val=`expr "$@" || test $? -eq 1`
4297 fi # as_fn_arith
4300 if expr a : '\(a\)' >/dev/null 2>&1 &&
4301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4302 as_expr=expr
4303 else
4304 as_expr=false
4307 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4308 as_basename=basename
4309 else
4310 as_basename=false
4313 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4314 as_dirname=dirname
4315 else
4316 as_dirname=false
4319 as_me=`$as_basename -- "$0" ||
4320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4321 X"$0" : 'X\(//\)$' \| \
4322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4323 $as_echo X/"$0" |
4324 sed '/^.*\/\([^/][^/]*\)\/*$/{
4325 s//\1/
4328 /^X\/\(\/\/\)$/{
4329 s//\1/
4332 /^X\/\(\/\).*/{
4333 s//\1/
4336 s/.*/./; q'`
4338 # Avoid depending upon Character Ranges.
4339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4342 as_cr_digits='0123456789'
4343 as_cr_alnum=$as_cr_Letters$as_cr_digits
4345 ECHO_C= ECHO_N= ECHO_T=
4346 case `echo -n x` in #(((((
4347 -n*)
4348 case `echo 'xy\c'` in
4349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4350 xy) ECHO_C='\c';;
4351 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4352 ECHO_T=' ';;
4353 esac;;
4355 ECHO_N='-n';;
4356 esac
4358 rm -f conf$$ conf$$.exe conf$$.file
4359 if test -d conf$$.dir; then
4360 rm -f conf$$.dir/conf$$.file
4361 else
4362 rm -f conf$$.dir
4363 mkdir conf$$.dir 2>/dev/null
4365 if (echo >conf$$.file) 2>/dev/null; then
4366 if ln -s conf$$.file conf$$ 2>/dev/null; then
4367 as_ln_s='ln -s'
4368 # ... but there are two gotchas:
4369 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4370 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4371 # In both cases, we have to default to `cp -p'.
4372 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4373 as_ln_s='cp -p'
4374 elif ln conf$$.file conf$$ 2>/dev/null; then
4375 as_ln_s=ln
4376 else
4377 as_ln_s='cp -p'
4379 else
4380 as_ln_s='cp -p'
4382 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4383 rmdir conf$$.dir 2>/dev/null
4386 # as_fn_mkdir_p
4387 # -------------
4388 # Create "$as_dir" as a directory, including parents if necessary.
4389 as_fn_mkdir_p ()
4392 case $as_dir in #(
4393 -*) as_dir=./$as_dir;;
4394 esac
4395 test -d "$as_dir" || eval $as_mkdir_p || {
4396 as_dirs=
4397 while :; do
4398 case $as_dir in #(
4399 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4400 *) as_qdir=$as_dir;;
4401 esac
4402 as_dirs="'$as_qdir' $as_dirs"
4403 as_dir=`$as_dirname -- "$as_dir" ||
4404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4405 X"$as_dir" : 'X\(//\)[^/]' \| \
4406 X"$as_dir" : 'X\(//\)$' \| \
4407 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4408 $as_echo X"$as_dir" |
4409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4410 s//\1/
4413 /^X\(\/\/\)[^/].*/{
4414 s//\1/
4417 /^X\(\/\/\)$/{
4418 s//\1/
4421 /^X\(\/\).*/{
4422 s//\1/
4425 s/.*/./; q'`
4426 test -d "$as_dir" && break
4427 done
4428 test -z "$as_dirs" || eval "mkdir $as_dirs"
4429 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4432 } # as_fn_mkdir_p
4433 if mkdir -p . 2>/dev/null; then
4434 as_mkdir_p='mkdir -p "$as_dir"'
4435 else
4436 test -d ./-p && rmdir ./-p
4437 as_mkdir_p=false
4440 if test -x / >/dev/null 2>&1; then
4441 as_test_x='test -x'
4442 else
4443 if ls -dL / >/dev/null 2>&1; then
4444 as_ls_L_option=L
4445 else
4446 as_ls_L_option=
4448 as_test_x='
4449 eval sh -c '\''
4450 if test -d "$1"; then
4451 test -d "$1/.";
4452 else
4453 case $1 in #(
4454 -*)set "./$1";;
4455 esac;
4456 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4457 ???[sx]*):;;*)false;;esac;fi
4458 '\'' sh
4461 as_executable_p=$as_test_x
4463 # Sed expression to map a string onto a valid CPP name.
4464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4466 # Sed expression to map a string onto a valid variable name.
4467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4470 exec 6>&1
4471 ## ----------------------------------- ##
4472 ## Main body of $CONFIG_STATUS script. ##
4473 ## ----------------------------------- ##
4474 _ASEOF
4475 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4478 # Save the log message, to keep $0 and so on meaningful, and to
4479 # report actual input values of CONFIG_FILES etc. instead of their
4480 # values after options handling.
4481 ac_log="
4482 This file was extended by jim $as_me 0.63, which was
4483 generated by GNU Autoconf 2.68. Invocation command line was
4485 CONFIG_FILES = $CONFIG_FILES
4486 CONFIG_HEADERS = $CONFIG_HEADERS
4487 CONFIG_LINKS = $CONFIG_LINKS
4488 CONFIG_COMMANDS = $CONFIG_COMMANDS
4489 $ $0 $@
4491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4494 _ACEOF
4496 case $ac_config_files in *"
4497 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4498 esac
4500 case $ac_config_headers in *"
4501 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4502 esac
4505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4506 # Files that config.status was made for.
4507 config_files="$ac_config_files"
4508 config_headers="$ac_config_headers"
4510 _ACEOF
4512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4513 ac_cs_usage="\
4514 \`$as_me' instantiates files and other configuration actions
4515 from templates according to the current configuration. Unless the files
4516 and actions are specified as TAGs, all are instantiated by default.
4518 Usage: $0 [OPTION]... [TAG]...
4520 -h, --help print this help, then exit
4521 -V, --version print version number and configuration settings, then exit
4522 --config print configuration, then exit
4523 -q, --quiet, --silent
4524 do not print progress messages
4525 -d, --debug don't remove temporary files
4526 --recheck update $as_me by reconfiguring in the same conditions
4527 --file=FILE[:TEMPLATE]
4528 instantiate the configuration file FILE
4529 --header=FILE[:TEMPLATE]
4530 instantiate the configuration header FILE
4532 Configuration files:
4533 $config_files
4535 Configuration headers:
4536 $config_headers
4538 Report bugs to <steveb@workware.net.au>."
4540 _ACEOF
4541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4542 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4543 ac_cs_version="\\
4544 jim config.status 0.63
4545 configured by $0, generated by GNU Autoconf 2.68,
4546 with options \\"\$ac_cs_config\\"
4548 Copyright (C) 2010 Free Software Foundation, Inc.
4549 This config.status script is free software; the Free Software Foundation
4550 gives unlimited permission to copy, distribute and modify it."
4552 ac_pwd='$ac_pwd'
4553 srcdir='$srcdir'
4554 test -n "\$AWK" || AWK=awk
4555 _ACEOF
4557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4558 # The default lists apply if the user does not specify any file.
4559 ac_need_defaults=:
4560 while test $# != 0
4562 case $1 in
4563 --*=?*)
4564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4565 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4566 ac_shift=:
4568 --*=)
4569 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4570 ac_optarg=
4571 ac_shift=:
4574 ac_option=$1
4575 ac_optarg=$2
4576 ac_shift=shift
4578 esac
4580 case $ac_option in
4581 # Handling of the options.
4582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4583 ac_cs_recheck=: ;;
4584 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4585 $as_echo "$ac_cs_version"; exit ;;
4586 --config | --confi | --conf | --con | --co | --c )
4587 $as_echo "$ac_cs_config"; exit ;;
4588 --debug | --debu | --deb | --de | --d | -d )
4589 debug=: ;;
4590 --file | --fil | --fi | --f )
4591 $ac_shift
4592 case $ac_optarg in
4593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4594 '') as_fn_error $? "missing file argument" ;;
4595 esac
4596 as_fn_append CONFIG_FILES " '$ac_optarg'"
4597 ac_need_defaults=false;;
4598 --header | --heade | --head | --hea )
4599 $ac_shift
4600 case $ac_optarg in
4601 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4602 esac
4603 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4604 ac_need_defaults=false;;
4605 --he | --h)
4606 # Conflict between --help and --header
4607 as_fn_error $? "ambiguous option: \`$1'
4608 Try \`$0 --help' for more information.";;
4609 --help | --hel | -h )
4610 $as_echo "$ac_cs_usage"; exit ;;
4611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4613 ac_cs_silent=: ;;
4615 # This is an error.
4616 -*) as_fn_error $? "unrecognized option: \`$1'
4617 Try \`$0 --help' for more information." ;;
4619 *) as_fn_append ac_config_targets " $1"
4620 ac_need_defaults=false ;;
4622 esac
4623 shift
4624 done
4626 ac_configure_extra_args=
4628 if $ac_cs_silent; then
4629 exec 6>/dev/null
4630 ac_configure_extra_args="$ac_configure_extra_args --silent"
4633 _ACEOF
4634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4635 if \$ac_cs_recheck; then
4636 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4637 shift
4638 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4639 CONFIG_SHELL='$SHELL'
4640 export CONFIG_SHELL
4641 exec "\$@"
4644 _ACEOF
4645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4646 exec 5>>config.log
4648 echo
4649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4650 ## Running $as_me. ##
4651 _ASBOX
4652 $as_echo "$ac_log"
4653 } >&5
4655 _ACEOF
4656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4657 _ACEOF
4659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4661 # Handling of arguments.
4662 for ac_config_target in $ac_config_targets
4664 case $ac_config_target in
4665 "jimautoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS jimautoconf.h" ;;
4666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4667 "jimautoconfext.h") CONFIG_FILES="$CONFIG_FILES jimautoconfext.h" ;;
4669 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4670 esac
4671 done
4674 # If the user did not use the arguments to specify the items to instantiate,
4675 # then the envvar interface is used. Set only those that are not.
4676 # We use the long form for the default assignment because of an extremely
4677 # bizarre bug on SunOS 4.1.3.
4678 if $ac_need_defaults; then
4679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4683 # Have a temporary directory for convenience. Make it in the build tree
4684 # simply because there is no reason against having it here, and in addition,
4685 # creating and moving files from /tmp can sometimes cause problems.
4686 # Hook for its removal unless debugging.
4687 # Note that there is a small window in which the directory will not be cleaned:
4688 # after its creation but before its name has been assigned to `$tmp'.
4689 $debug ||
4691 tmp= ac_tmp=
4692 trap 'exit_status=$?
4693 : "${ac_tmp:=$tmp}"
4694 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4696 trap 'as_fn_exit 1' 1 2 13 15
4698 # Create a (secure) tmp directory for tmp files.
4701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4702 test -d "$tmp"
4703 } ||
4705 tmp=./conf$$-$RANDOM
4706 (umask 077 && mkdir "$tmp")
4707 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4708 ac_tmp=$tmp
4710 # Set up the scripts for CONFIG_FILES section.
4711 # No need to generate them if there are no CONFIG_FILES.
4712 # This happens for instance with `./config.status config.h'.
4713 if test -n "$CONFIG_FILES"; then
4716 ac_cr=`echo X | tr X '\015'`
4717 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4718 # But we know of no other shell where ac_cr would be empty at this
4719 # point, so we can use a bashism as a fallback.
4720 if test "x$ac_cr" = x; then
4721 eval ac_cr=\$\'\\r\'
4723 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4724 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4725 ac_cs_awk_cr='\\r'
4726 else
4727 ac_cs_awk_cr=$ac_cr
4730 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4731 _ACEOF
4735 echo "cat >conf$$subs.awk <<_ACEOF" &&
4736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4737 echo "_ACEOF"
4738 } >conf$$subs.sh ||
4739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4741 ac_delim='%!_!# '
4742 for ac_last_try in false false false false false :; do
4743 . ./conf$$subs.sh ||
4744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4747 if test $ac_delim_n = $ac_delim_num; then
4748 break
4749 elif $ac_last_try; then
4750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4751 else
4752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4754 done
4755 rm -f conf$$subs.sh
4757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4758 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4759 _ACEOF
4760 sed -n '
4762 s/^/S["/; s/!.*/"]=/
4765 s/^[^!]*!//
4766 :repl
4767 t repl
4768 s/'"$ac_delim"'$//
4769 t delim
4772 s/\(.\{148\}\)..*/\1/
4773 t more1
4774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4777 b repl
4778 :more1
4779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4782 s/.\{148\}//
4783 t nl
4784 :delim
4786 s/\(.\{148\}\)..*/\1/
4787 t more2
4788 s/["\\]/\\&/g; s/^/"/; s/$/"/
4791 :more2
4792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4795 s/.\{148\}//
4796 t delim
4797 ' <conf$$subs.awk | sed '
4798 /^[^""]/{
4800 s/\n//
4802 ' >>$CONFIG_STATUS || ac_write_fail=1
4803 rm -f conf$$subs.awk
4804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4805 _ACAWK
4806 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4807 for (key in S) S_is_set[key] = 1
4808 FS = "\a"
4812 line = $ 0
4813 nfields = split(line, field, "@")
4814 substed = 0
4815 len = length(field[1])
4816 for (i = 2; i < nfields; i++) {
4817 key = field[i]
4818 keylen = length(key)
4819 if (S_is_set[key]) {
4820 value = S[key]
4821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4822 len += length(value) + length(field[++i])
4823 substed = 1
4824 } else
4825 len += 1 + keylen
4828 print line
4831 _ACAWK
4832 _ACEOF
4833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4836 else
4838 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4839 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4840 _ACEOF
4842 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4843 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4844 # trailing colons and then remove the whole line if VPATH becomes empty
4845 # (actually we leave an empty line to preserve line numbers).
4846 if test "x$srcdir" = x.; then
4847 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4849 s///
4850 s/^/:/
4851 s/[ ]*$/:/
4852 s/:\$(srcdir):/:/g
4853 s/:\${srcdir}:/:/g
4854 s/:@srcdir@:/:/g
4855 s/^:*//
4856 s/:*$//
4858 s/\(=[ ]*\).*/\1/
4860 s/\n//
4861 s/^[^=]*=[ ]*$//
4865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4866 fi # test -n "$CONFIG_FILES"
4868 # Set up the scripts for CONFIG_HEADERS section.
4869 # No need to generate them if there are no CONFIG_HEADERS.
4870 # This happens for instance with `./config.status Makefile'.
4871 if test -n "$CONFIG_HEADERS"; then
4872 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4873 BEGIN {
4874 _ACEOF
4876 # Transform confdefs.h into an awk script `defines.awk', embedded as
4877 # here-document in config.status, that substitutes the proper values into
4878 # config.h.in to produce config.h.
4880 # Create a delimiter string that does not exist in confdefs.h, to ease
4881 # handling of long lines.
4882 ac_delim='%!_!# '
4883 for ac_last_try in false false :; do
4884 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4885 if test -z "$ac_tt"; then
4886 break
4887 elif $ac_last_try; then
4888 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4889 else
4890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4892 done
4894 # For the awk script, D is an array of macro values keyed by name,
4895 # likewise P contains macro parameters if any. Preserve backslash
4896 # newline sequences.
4898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4899 sed -n '
4900 s/.\{148\}/&'"$ac_delim"'/g
4901 t rset
4902 :rset
4903 s/^[ ]*#[ ]*define[ ][ ]*/ /
4904 t def
4906 :def
4907 s/\\$//
4908 t bsnl
4909 s/["\\]/\\&/g
4910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4911 D["\1"]=" \3"/p
4912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4914 :bsnl
4915 s/["\\]/\\&/g
4916 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4917 D["\1"]=" \3\\\\\\n"\\/p
4918 t cont
4919 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4920 t cont
4922 :cont
4924 s/.\{148\}/&'"$ac_delim"'/g
4925 t clear
4926 :clear
4927 s/\\$//
4928 t bsnlc
4929 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4931 :bsnlc
4932 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4933 b cont
4934 ' <confdefs.h | sed '
4935 s/'"$ac_delim"'/"\\\
4936 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4939 for (key in D) D_is_set[key] = 1
4940 FS = "\a"
4942 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4943 line = \$ 0
4944 split(line, arg, " ")
4945 if (arg[1] == "#") {
4946 defundef = arg[2]
4947 mac1 = arg[3]
4948 } else {
4949 defundef = substr(arg[1], 2)
4950 mac1 = arg[2]
4952 split(mac1, mac2, "(") #)
4953 macro = mac2[1]
4954 prefix = substr(line, 1, index(line, defundef) - 1)
4955 if (D_is_set[macro]) {
4956 # Preserve the white space surrounding the "#".
4957 print prefix "define", macro P[macro] D[macro]
4958 next
4959 } else {
4960 # Replace #undef with comments. This is necessary, for example,
4961 # in the case of _POSIX_SOURCE, which is predefined and required
4962 # on some systems where configure will not decide to define it.
4963 if (defundef == "undef") {
4964 print "/*", prefix defundef, macro, "*/"
4965 next
4969 { print }
4970 _ACAWK
4971 _ACEOF
4972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4973 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4974 fi # test -n "$CONFIG_HEADERS"
4977 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4978 shift
4979 for ac_tag
4981 case $ac_tag in
4982 :[FHLC]) ac_mode=$ac_tag; continue;;
4983 esac
4984 case $ac_mode$ac_tag in
4985 :[FHL]*:*);;
4986 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4987 :[FH]-) ac_tag=-:-;;
4988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4989 esac
4990 ac_save_IFS=$IFS
4991 IFS=:
4992 set x $ac_tag
4993 IFS=$ac_save_IFS
4994 shift
4995 ac_file=$1
4996 shift
4998 case $ac_mode in
4999 :L) ac_source=$1;;
5000 :[FH])
5001 ac_file_inputs=
5002 for ac_f
5004 case $ac_f in
5005 -) ac_f="$ac_tmp/stdin";;
5006 *) # Look for the file first in the build tree, then in the source tree
5007 # (if the path is not absolute). The absolute path cannot be DOS-style,
5008 # because $ac_f cannot contain `:'.
5009 test -f "$ac_f" ||
5010 case $ac_f in
5011 [\\/$]*) false;;
5012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5013 esac ||
5014 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5015 esac
5016 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5017 as_fn_append ac_file_inputs " '$ac_f'"
5018 done
5020 # Let's still pretend it is `configure' which instantiates (i.e., don't
5021 # use $as_me), people would be surprised to read:
5022 # /* config.h. Generated by config.status. */
5023 configure_input='Generated from '`
5024 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5025 `' by configure.'
5026 if test x"$ac_file" != x-; then
5027 configure_input="$ac_file. $configure_input"
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5029 $as_echo "$as_me: creating $ac_file" >&6;}
5031 # Neutralize special characters interpreted by sed in replacement strings.
5032 case $configure_input in #(
5033 *\&* | *\|* | *\\* )
5034 ac_sed_conf_input=`$as_echo "$configure_input" |
5035 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5036 *) ac_sed_conf_input=$configure_input;;
5037 esac
5039 case $ac_tag in
5040 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5042 esac
5044 esac
5046 ac_dir=`$as_dirname -- "$ac_file" ||
5047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5048 X"$ac_file" : 'X\(//\)[^/]' \| \
5049 X"$ac_file" : 'X\(//\)$' \| \
5050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5051 $as_echo X"$ac_file" |
5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5053 s//\1/
5056 /^X\(\/\/\)[^/].*/{
5057 s//\1/
5060 /^X\(\/\/\)$/{
5061 s//\1/
5064 /^X\(\/\).*/{
5065 s//\1/
5068 s/.*/./; q'`
5069 as_dir="$ac_dir"; as_fn_mkdir_p
5070 ac_builddir=.
5072 case "$ac_dir" in
5073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5076 # A ".." for each directory in $ac_dir_suffix.
5077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5078 case $ac_top_builddir_sub in
5079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5081 esac ;;
5082 esac
5083 ac_abs_top_builddir=$ac_pwd
5084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5085 # for backward compatibility:
5086 ac_top_builddir=$ac_top_build_prefix
5088 case $srcdir in
5089 .) # We are building in place.
5090 ac_srcdir=.
5091 ac_top_srcdir=$ac_top_builddir_sub
5092 ac_abs_top_srcdir=$ac_pwd ;;
5093 [\\/]* | ?:[\\/]* ) # Absolute name.
5094 ac_srcdir=$srcdir$ac_dir_suffix;
5095 ac_top_srcdir=$srcdir
5096 ac_abs_top_srcdir=$srcdir ;;
5097 *) # Relative name.
5098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5099 ac_top_srcdir=$ac_top_build_prefix$srcdir
5100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5101 esac
5102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5105 case $ac_mode in
5108 # CONFIG_FILE
5111 _ACEOF
5113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5114 # If the template does not know about datarootdir, expand it.
5115 # FIXME: This hack should be removed a few years after 2.60.
5116 ac_datarootdir_hack=; ac_datarootdir_seen=
5117 ac_sed_dataroot='
5118 /datarootdir/ {
5122 /@datadir@/p
5123 /@docdir@/p
5124 /@infodir@/p
5125 /@localedir@/p
5126 /@mandir@/p'
5127 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5128 *datarootdir*) ac_datarootdir_seen=yes;;
5129 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5131 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5132 _ACEOF
5133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5134 ac_datarootdir_hack='
5135 s&@datadir@&$datadir&g
5136 s&@docdir@&$docdir&g
5137 s&@infodir@&$infodir&g
5138 s&@localedir@&$localedir&g
5139 s&@mandir@&$mandir&g
5140 s&\\\${datarootdir}&$datarootdir&g' ;;
5141 esac
5142 _ACEOF
5144 # Neutralize VPATH when `$srcdir' = `.'.
5145 # Shell code in configure.ac might set extrasub.
5146 # FIXME: do we really want to maintain this feature?
5147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5148 ac_sed_extra="$ac_vpsub
5149 $extrasub
5150 _ACEOF
5151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5154 s|@configure_input@|$ac_sed_conf_input|;t t
5155 s&@top_builddir@&$ac_top_builddir_sub&;t t
5156 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5157 s&@srcdir@&$ac_srcdir&;t t
5158 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5159 s&@top_srcdir@&$ac_top_srcdir&;t t
5160 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5161 s&@builddir@&$ac_builddir&;t t
5162 s&@abs_builddir@&$ac_abs_builddir&;t t
5163 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5164 $ac_datarootdir_hack
5166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5167 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5170 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5172 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5174 which seems to be undefined. Please make sure it is defined" >&5
5175 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5176 which seems to be undefined. Please make sure it is defined" >&2;}
5178 rm -f "$ac_tmp/stdin"
5179 case $ac_file in
5180 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5181 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5182 esac \
5183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5187 # CONFIG_HEADER
5189 if test x"$ac_file" != x-; then
5191 $as_echo "/* $configure_input */" \
5192 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5193 } >"$ac_tmp/config.h" \
5194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5195 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5197 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5198 else
5199 rm -f "$ac_file"
5200 mv "$ac_tmp/config.h" "$ac_file" \
5201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5203 else
5204 $as_echo "/* $configure_input */" \
5205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5206 || as_fn_error $? "could not create -" "$LINENO" 5
5211 esac
5213 done # for ac_tag
5216 as_fn_exit 0
5217 _ACEOF
5218 ac_clean_files=$ac_clean_files_save
5220 test $ac_write_fail = 0 ||
5221 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5224 # configure is writing to config.log, and then calls config.status.
5225 # config.status does its own redirection, appending to config.log.
5226 # Unfortunately, on DOS this fails, as config.log is still kept open
5227 # by configure, so config.status won't be able to write to it; its
5228 # output is simply discarded. So we exec the FD to /dev/null,
5229 # effectively closing config.log, so it can be properly (re)opened and
5230 # appended to by config.status. When coming back to configure, we
5231 # need to make the FD available again.
5232 if test "$no_create" != yes; then
5233 ac_cs_success=:
5234 ac_config_status_args=
5235 test "$silent" = yes &&
5236 ac_config_status_args="$ac_config_status_args --quiet"
5237 exec 5>/dev/null
5238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5239 exec 5>>config.log
5240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5241 # would make configure fail if this is the last instruction.
5242 $ac_cs_success || as_fn_exit 1
5244 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5246 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}